polkadart_cli 0.4.3 copy "polkadart_cli: ^0.4.3" to clipboard
polkadart_cli: ^0.4.3 copied to clipboard

polkadart_cli is a dart library that generates Dart type code from frame metadata. Generated code relies on Polkadart library.

Polkadart CLI #

Dart package that generates Dart types and definitions from the chain metadata.

Usage #

Follow these steps to get started:

Configure package #

Add package configuration to your pubspec.yaml file. Here is a full configuration for the package:

polkadart:
  output_dir: lib/generated # Optional. Sets the directory of generated files. Provided value should be a valid path on your system. Default: lib/generated
  chains: # Dictionary of chains and endpoints
      polkadot: wss://rpc.polkadot.io
      kusama: wss://kusama-rpc.polkadot.io

Run command #

To generate boilerplate code for substrate node, run the generate program inside directory where your pubspec.yaml file is located:

dart pub run polkadart_cli:generate -v

This will produce files inside lib/generated directory. You can also change the output folder from lib/generated to a custom directory by adding the output_dir line in your pubspec.yaml file.

3
likes
140
pub points
67%
popularity

Publisher

verified publisherpolkadart.dev

polkadart_cli is a dart library that generates Dart type code from frame metadata. Generated code relies on Polkadart library.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

args, code_builder, convert, dart_style, http, path, polkadart, recase, yaml

More

Packages that depend on polkadart_cli