coral_xyz 1.0.0-beta.5 copy "coral_xyz: ^1.0.0-beta.5" to clipboard
coral_xyz: ^1.0.0-beta.5 copied to clipboard

A Dart client for Anchor programs on Solana. Provides type-safe program interactions, IDL parsing, and seamless integration with Solana's Anchor framework.

130/ 160
pub points
237
downloads

We analyzed this package 19 hours ago, and awarded it 130 pub points (of a possible 160):

Partially passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Partially passed check 10/10 points: Provide a valid pubspec.yaml

Homepage URL doesn't exist.

At the time of the analysis https://github.com/coral-xyz/dart-coral-xyz was unreachable. Make sure that the website is reachable via HEAD requests.

Repository URL doesn't exist.

At the time of the analysis https://github.com/coral-xyz/dart-coral-xyz was unreachable. Make sure that the website is reachable via HEAD requests.

Issue tracker URL doesn't exist.

At the time of the analysis https://github.com/coral-xyz/dart-coral-xyz/issues was unreachable. Make sure that the website is reachable via HEAD requests.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

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

3326 out of 4592 API elements (72.4 %) have documentation comments.

Some symbols that are missing documentation: coral_xyz.AccountCacheConfig.AccountCacheConfig.new, coral_xyz.AccountCacheManager.AccountCacheManager.new, coral_xyz.AccountChangeNotification.AccountChangeNotification.new, coral_xyz.AccountClient.AccountClient.new, coral_xyz.AccountCoderError.AccountCoderError.new.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
20 / 20trigger folding of the section

Passed check 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:coral_xyz/coral_xyz.dart that imports:
  • package:coral_xyz/src/provider/anchor_provider.dart that imports:
  • package:coral_xyz/src/utils/logger.dart that imports:
  • dart:io

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:coral_xyz/coral_xyz.dart that imports:
  • package:coral_xyz/src/provider/anchor_provider.dart that imports:
  • package:coral_xyz/src/utils/logger.dart that imports:
  • dart:io

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.cn/web/wasm for details.

Failed report section
Pass static analysis
30 / 50trigger folding of the section

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

Found 74 issues. Showing the first 2:

WARNING: The operand can't be 'null', so the condition is always 'true'.

lib/src/account/account_definition.dart:124:51

    ╷
124 │       requireDiscriminator: account.discriminator != null,
    │                                                   ^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/account/account_definition.dart

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

lib/src/event/event_listener.dart:19:14

   ╷
19 │   final int? _maxBufferSize;
   │              ^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/event/event_listener.dart

Failed report section
Support up-to-date dependencies
30 / 40trigger folding of the section

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

Package Constraint Compatible Latest Notes
analyzer ^6.4.1 6.4.1 8.2.0
base_codecs ^1.0.1 1.0.1 1.0.1
blockchain_utils ^5.0.0 5.2.0 5.2.0
borsh ^0.3.2 0.3.2 0.3.2
borsh_annotation ^0.3.2 0.3.2 0.3.2
bs58 ^1.0.2 1.0.2 1.0.2
build ^2.4.1 2.4.1 4.0.1
convert ^3.1.1 3.1.2 3.1.2
crypto ^3.0.3 3.0.6 3.0.6
cryptography ^2.7.0 2.7.0 2.7.0
ed25519_hd_key ^2.3.0 2.3.0 2.3.0
equatable ^2.0.5 2.0.7 2.0.7
http ^1.1.0 1.5.0 1.5.0
logging ^1.3.0 1.3.0 1.3.0
meta ^1.9.1 1.17.0 1.17.0
path ^1.8.0 1.9.1 1.9.1
solana ^0.31.2+1 0.31.2+1 0.31.2+1
source_gen ^1.5.0 1.5.0 4.0.1
toml ^0.16.0 0.16.0 0.16.0
web_socket_channel ^3.0.0 3.0.3 3.0.3
Transitive dependencies
Package Constraint Compatible Latest Notes
_fe_analyzer_shared - 67.0.0 89.0.0
args - 2.7.0 2.7.0
async - 2.13.0 2.13.0
base_x - 2.0.1 2.0.1
bip39 - 1.0.6 1.0.6
clock - 1.1.2 1.1.2
collection - 1.19.1 1.19.1
dart_style - 2.3.6 3.1.2
decimal - 3.2.4 3.2.4
ffi - 2.1.4 2.1.4
file - 7.0.1 7.0.1
freezed_annotation - 2.4.4 3.1.0
glob - 2.1.3 2.1.3
hex - 0.2.0 0.2.0
http_parser - 4.1.2 4.1.2
intl - 0.20.2 0.20.2
js - 0.6.7 0.7.2 Discontinued
json_annotation - 4.9.0 4.9.0
package_config - 2.2.0 2.2.0
petitparser - 6.1.0 7.0.1
pinenacl - 0.6.0 0.6.0
pointycastle - 3.9.1 4.0.0
pub_semver - 2.2.0 2.2.0
rational - 2.2.3 2.2.3
source_helper - 1.3.5 1.3.8
source_span - 1.10.1 1.10.1
stream_channel - 2.1.4 2.1.4
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
watcher - 1.1.3 1.1.3
web - 1.1.1 1.1.1
web_socket - 1.0.1 1.0.1
yaml - 3.1.3 3.1.3

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

Found 3 issues. Showing the first 2:

The constraint `^6.4.1` on analyzer does not support the stable version `7.0.0`.

Try running dart pub upgrade --major-versions analyzer to update the constraint.

The constraint `^2.4.1` on build does not support the stable version `3.0.0`.

Try running dart pub upgrade --major-versions build to update the constraint.

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.23, Dart 3.9.3.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
2
likes
130
points
237
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart client for Anchor programs on Solana. Provides type-safe program interactions, IDL parsing, and seamless integration with Solana's Anchor framework.

Repository (GitHub)
View/report issues

Topics

#solana #anchor #blockchain #web3 #crypto

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, base_codecs, blockchain_utils, borsh, borsh_annotation, bs58, build, convert, crypto, cryptography, ed25519_hd_key, equatable, http, logging, meta, path, solana, source_gen, toml, web_socket_channel

More

Packages that depend on coral_xyz