sui-bcs
v1.0.1
Published
This tool generates BCS types for the Sui blockchain. It fetches the normalized Move modules from a specified package and creates the corresponding BCS type definitions in JavaScript.
Downloads
4
Readme
Sui BCS Type Generator
This tool generates BCS types for the Sui blockchain. It fetches the normalized Move modules from a specified package and creates the corresponding BCS type definitions in JavaScript.
Usage
To generate BCS types, use the following command:
npx sui-bcs gen --package <package_address> --file <output_file> --network <network_name>
--package <package_address>
: The address of the package from which to fetch the Move modules.--file <output_file>
: The name of the file to write the generated BCS types to.--network <network_name>
: The network to use (default:testnet
).
Example:
npx sui-bcs gen --package 0x2 --file sui-bcs.js --network testnet