solana_web3 0.1.3 copy "solana_web3: ^0.1.3" to clipboard
solana_web3: ^0.1.3 copied to clipboard

Dart implementation of Solana's JSON RPC API with support for common Programs.

13
likes
120/ 140
pub points
82%
popularity

We analyzed this package 7 days ago, and awarded it 120 pub points (of a possible 140):

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

2649 out of 2766 API elements (95.8 %) have documentation comments.

Some symbols that are missing documentation: borsh, buffer, buffer.ByteLength.f32, buffer.ByteLength.f64, buffer.ByteLength.i8.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:solana_web3/solana_web3.dart that imports:
  • package:solana_web3/src/transactions/transaction.dart that imports:
  • package:solana_web3/src/transactions/transaction_instruction.dart that imports:
  • package:solana_web3/src/transactions/account_meta.dart that imports:
  • package:solana_web3/src/crypto/pubkey.dart that imports:
  • package:solana_web3/src/programs/token/program.dart that imports:
  • package:solana_web3/src/programs/program.dart that imports:
  • package:solana_web3/src/rpc/connection.dart that imports:
  • package:solana_web3/src/rpc/websocket_connection.dart that imports:
  • package:solana_web3/src/rpc/methods/unsubscribe.dart that imports:
  • package:solana_web3/src/rpc/interfaces/json_rpc_type_method.dart that imports:
  • package:solana_web3/src/rpc/interfaces/json_rpc_method.dart that imports:
  • package:solana_web3/src/rpc/interfaces/json_rpc_params_mixin.dart that imports:
  • package:solana_jsonrpc/jsonrpc.dart that imports:
  • package:solana_jsonrpc/src/jsonrpc/websocket_client.dart that imports:
  • dart:io
failed
Pass static analysis
30 / 50trigger folding of the section

30/50 points: code has no errors, warnings, lints, or formatting issues

Found 514 issues. Showing the first 2:

WARNING: The value of the field '_' isn't used.

lib/src/programs/token_2022/instruction.dart:5:3

  ╷
5 │   _
  │   ^
  ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/programs/token_2022/instruction.dart

WARNING: Unused import: '../encodings/account_encoding.dart'.

lib/src/rpc/http_connection.dart:9:8

  ╷
9 │ import '../encodings/account_encoding.dart';
  │        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/rpc/http_connection.dart

OK
Support up-to-date dependencies
20 / 20trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
crypto ^3.0.3 3.0.3 3.0.3
flutter flutter 0.0.0 0.0.0
json_annotation ^4.8.0 4.9.0 4.9.0
pinenacl ^0.5.1 0.5.1 0.5.1
solana_borsh ^0.0.1 0.0.1 0.0.1
solana_buffer ^0.0.1 0.0.1 0.0.1
solana_common ^0.1.0 0.1.0+1 0.1.0+1
solana_jsonrpc ^0.0.1 0.0.1 0.0.1
Transitive dependencies
Package Constraint Compatible Latest
async - 2.11.0 2.11.0
base_codecs - 1.0.1 1.0.1
characters - 1.3.0 1.3.0
collection - 1.18.0 1.18.0
http - 1.2.1 1.2.1
http_parser - 4.0.2 4.0.2
material_color_utilities - 0.8.0 0.11.1
meta - 1.11.0 1.14.0
path - 1.9.0 1.9.0
sky_engine - 0.0.99 0.0.99
source_span - 1.10.0 1.10.0
stream_channel - 2.1.2 2.1.2
string_scanner - 1.2.0 1.2.0
synchronized - 3.1.0+1 3.1.0+1
term_glyph - 1.2.1 1.2.1
typed_data - 1.3.2 1.3.2
vector_math - 2.1.4 2.1.4
web - 0.5.1 0.5.1
web_socket_channel - 2.4.5 2.4.5

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

Analyzed with Pana 0.22.3, Flutter 3.19.5, Dart 3.3.3.

Check the analysis log for details.