@milkywaylabs/milkyway.proto
v2.0.2
Published
JS and TS types relating to Protocol Buffers used by the MilkyWay chain
Downloads
742
Readme
@milkywaylabs/milkyway.proto
JavaScript/TypeScript MilkyWay Protobuf Definitions
How to generate the definitions
In order to generate the Protobuf definitions for MilkyWay, you will need to have the following dependencies installed. You can do that by running the following command:
yarn install
Then, you will have to select the version of the MilkyWay Protobuf definitions you want to generate.
You can do this by editing the rev
field inside the clone_repo.ts
file.
Finally, once you have selected the version you want to generate, you can run the following command:
yarn run build
Deploy on NPM
After generating the definitions, you may want to publish them to NPM. To do this, you can run:
yarn publish