-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Runtime V14 scale codec parser #487
base: main
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Also please bump substrate_metadata to v2.0.0 as that will be a breaking change from what we talked about |
User description
PR Type
enhancement, other
Description
RuntimeMetadataV14
class to handle runtime metadata version 14.StateApi
to useRuntimeMetadataPrefixed
for metadata operations.substrate_metadata
.Changes walkthrough 📝
20 files
apis.dart
Update imports for metadata handling
packages/polkadart/lib/apis/apis.dart
substrate_metadata
package.polkadart
.state.dart
Update state API to use prefixed metadata
packages/polkadart/lib/apis/state.dart
RuntimeMetadata
toRuntimeMetadataPrefixed
.RuntimeMetadataPrefixed
.get_metadata.dart
Add script for fetching chain metadata
packages/polkadart_cli/bin/get_metadata.dart
ChainProperties
class to handle metadata and version.chain.dart
Update chain generator for metadata v14
packages/polkadart_cli/lib/src/generator/chain.dart
RuntimeMetadataV14
fromsubstrate_metadata
.metadata.types
.field.dart
Add Field class for scale info
packages/polkadart_cli/lib/src/scale_info/field.dart
Field
to represent struct-like data fields.Field
.scale_info.dart
Introduce scale info library
packages/polkadart_cli/lib/src/scale_info/scale_info.dart
type_definition.dart
Add type definition handling for scale info
packages/polkadart_cli/lib/src/scale_info/type_definition.dart
type_parameter.dart
Add TypeParameter class for scale info
packages/polkadart_cli/lib/src/scale_info/type_parameter.dart
TypeParameter
class for handling generic type parameters.TypeParameter
.variant.dart
Add Variant class for scale info
packages/polkadart_cli/lib/src/scale_info/variant.dart
Variant
class to represent enum variants.Variant
.common.dart
Add common metadata handling classes
packages/substrate_metadata/lib/metadata/common.dart
RuntimeMetadata
andRuntimeMetadataPrefixed
classes.metadata.dart
Introduce metadata handling library
packages/substrate_metadata/lib/metadata/metadata.dart
v14.dart
Implement RuntimeMetadataV14 and codecs
packages/substrate_metadata/lib/metadata/v14.dart
RuntimeMetadataV14
class for handling v14 metadata.field.dart
Add Field class with codec for scale info
packages/substrate_metadata/lib/scale_info/field.dart
Field
class for scale info with codec support.Field
.portable.dart
Add PortableType class with codec
packages/substrate_metadata/lib/scale_info/portable.dart
PortableType
class for portable type representation.PortableType
.scale_info.dart
Introduce scale info library with codecs
packages/substrate_metadata/lib/scale_info/scale_info.dart
type_definition.dart
Add type definition classes with codec
packages/substrate_metadata/lib/scale_info/type_definition.dart
type_metadata.dart
Add TypeMetadata class for detailed type info
packages/substrate_metadata/lib/scale_info/type_metadata.dart
TypeMetadata
class for detailed type information.TypeMetadata
.type_parameter.dart
Add TypeParameter class with codec
packages/substrate_metadata/lib/scale_info/type_parameter.dart
TypeParameter
class for generic type handling.TypeParameter
.variant.dart
Add Variant class with codec
packages/substrate_metadata/lib/scale_info/variant.dart
Variant
class for enum variant representation.Variant
.substrate_metadata.dart
Update exports for substrate metadata library
packages/substrate_metadata/lib/substrate_metadata.dart
1 files
pubspec.yaml
Update dependencies to include substrate_metadata
packages/polkadart_cli/pubspec.yaml
substrate_metadata
as a dependency.