substrate_metadata 1.6.0 copy "substrate_metadata: ^1.6.0" to clipboard
substrate_metadata: ^1.6.0 copied to clipboard

A package able to provide metadata types, encode and decode storage entries, extrinsics, events, and constants for Substrate runtimes.

130/ 160
pub points
2.15k
downloads

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

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

Passed check 10/10 points: Provide a valid pubspec.yaml

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: Apache-2.0.

Failed report section
Provide documentation
0 / 20trigger folding of the section

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

OUT: Documenting substrate_metadata... Discovering libraries... Linking elements... Precaching local docs for 756394 elements... Initialized dartdoc with 1103 libraries Generating docs for library metadata/merkleize.dart from package:substrate_metadata/metadata/merkleize.dart... Generating docs for library metadata/metadata.dart from package:substrate_metadata/metadata/metadata.dart... Generating docs for library core/chain.dart from package:substrate_metadata/core/chain.dart... Generating docs for library core/metadata_decoder.dart from package:substrate_metadata/core/metadata_decoder.dart... Generating docs for library substrate_metadata.dart from package:substrate_metadata/substrate_metadata.dart... [15 more lines] ERR: warning: metadata has no library level documentation comments from metadata: (file:///tmp/pana_FYPTHQ/lib/metadata/metadata.dart:1:1) warning: substrate_metadata has no library level documentation comments from substrate_metadata: (file:///tmp/pana_FYPTHQ/lib/substrate_metadata.dart:1:1) warning: unresolved doc reference [bitvec::vec::BitVec] from scale_info.TypeDefBitSequence: (file:///tmp/pana_FYPTHQ/lib/scale_info/scale_info.dart:624:7) warning: unresolved doc reference [Compact] from scale_info.TypeDefCompact: (file:///tmp/pana_FYPTHQ/lib/scale_info/scale_info.dart:361:7) warning: scale_info has no library level documentation comments from scale_info: (file:///tmp/pana_FYPTHQ/lib/scale_info/scale_info.dart:1:1) [34 more lines]

Failed check 0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

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

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

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

Passed check 0/0 points: WASM compatibility

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

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

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 76 issues. Showing the first 2:

INFO: The part-of directive uses a library name.

lib/definitions/metadata/base.dart:1:1

  ╷
1 │ ┌ /// (From Tag: @subsquid/substrate-metadata_v1.1.0)
2 │ │ ///
3 │ │ /// Referenced from: https://github.com/subsquid/squid/blob/%40subsquid/substrate-metadata_v1.1.0/substrate-metadata/src/old/definitions/metadata/base.ts
4 │ │ 
5 │ │ // ignore_for_file: constant_identifier_names
6 │ │ 
7 │ └ part of metadata;
  ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/definitions/metadata/base.dart

INFO: The part-of directive uses a library name.

lib/definitions/metadata/src.dart:1:1

  ╷
1 │ part of metadata;
  │ ^^^^^^^^^^^^^^^^^
  ╵

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

Partially passed report section
Support up-to-date dependencies
40 / 40trigger folding of the section

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

Package Constraint Compatible Latest Notes
convert ^3.1.1 3.1.2 3.1.2
cross_file ^0.3.4+2 0.3.5+1 0.3.5+1
equatable ^2.0.5 2.0.7 2.0.7
json_schema ^5.2.1 5.2.2 5.2.2
pointycastle ^4.0.0 4.0.0 4.0.0
polkadart ^0.7.2 0.7.3 1.0.0
polkadart_scale_codec ^1.6.0 1.6.0 2.0.0
utility ^1.0.3 1.0.3 1.0.3
Transitive dependencies
Package Constraint Compatible Latest Notes
adaptive_number - 1.0.0 1.0.0
async - 2.13.0 2.13.0
base_x - 2.0.1 2.0.1
bip39_mnemonic - 4.0.1 4.0.1
boolean_selector - 2.1.2 2.1.2
collection - 1.19.1 1.19.1
crypto - 3.0.7 3.0.7
cryptography - 2.9.0 2.9.0
ed25519_edwards - 0.3.1 0.3.1
edwards25519 - 1.0.5 1.0.5
ffi - 2.1.4 2.1.4
fixnum - 1.1.1 1.1.1
flutter_curve25519 - 0.1.2 0.1.2
hashlib_codecs - 3.0.1 3.0.1
http - 1.6.0 1.6.0
http_parser - 4.1.2 4.1.2
logging - 1.3.0 1.3.0
matcher - 0.12.18 0.12.18
merlin - 1.0.3 1.0.3
meta - 1.17.0 1.17.0
path - 1.9.1 1.9.1
polkadart_keyring - 0.7.1 0.7.2
quiver - 3.2.2 3.2.2
rfc_6901 - 0.2.1 0.2.1
ristretto255 - 1.0.2 1.0.2
secp256k1_ecdsa - 0.6.3 0.6.3
source_span - 1.10.1 1.10.1
sr25519 - 0.7.1 0.7.2
ss58 - 1.3.1 2.0.0
stack_trace - 1.12.1 1.12.1
stream_channel - 2.1.4 2.1.4
string_scanner - 1.4.1 1.4.1
strobe - 1.0.5 1.0.5
substrate_bip39 - 0.7.1 0.7.2
term_glyph - 1.2.2 1.2.2
test_api - 0.7.8 0.7.8
typed_data - 1.4.0 1.4.0
unorm_dart - 0.3.2 0.3.2
uri - 1.0.0 1.0.0
web - 1.1.1 1.1.1
web_socket - 1.0.1 1.0.1
web_socket_channel - 3.0.3 3.0.3
web_socket_client - 0.2.1 0.2.1

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

The constraint `^0.7.2` on polkadart does not support the stable version `1.0.0`, that was published 1 days ago.

When polkadart is 30 days old, this package will no longer be awarded points in this category.

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

The constraint `^1.6.0` on polkadart_scale_codec does not support the stable version `2.0.0`, that was published 1 days ago.

When polkadart_scale_codec is 30 days old, this package will no longer be awarded points in this category.

Try running dart pub upgrade --major-versions polkadart_scale_codec 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.23.3, Dart 3.10.4.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
2
likes
130
points
2.15k
downloads

Publisher

verified publisherpolkadart.dev

Weekly Downloads

A package able to provide metadata types, encode and decode storage entries, extrinsics, events, and constants for Substrate runtimes.

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

convert, cross_file, equatable, json_schema, pointycastle, polkadart, polkadart_scale_codec, utility

More

Packages that depend on substrate_metadata