@keepkey/proto-tx-builder
TypeScript icon, indicating that this package has built-in type declarations

0.9.1 • Public • Published

proto-tx-builder

Constructs and signs protobuf encoded cosmos-sdk

Getting started

# Clone submodules
git submodule update --init --recursive
# Install the required dependencies
yarn

Testing

Bug fixes and features should always come with tests, when applicable. Test files should live next to the file they are testing. Before submitting your changes in a pull request, always run the full test suite.

To run the test suite:

# build all dependent packages
yarn build

# Runs the full test suite
yarn test

TS Proto generation

cosmos-sdk uses protocol buffers to encode txs and other communication between nodes and clients as well as other nodes. proto-tx-builder leverages the protobuf definitions to generate the TypeScript implementation of the custom protobufs required to interact with a given chain.

  • place .proto files for the cosmos-sdk chain in ./proto and ./third_party/proto directories
  • remove existing generated files:
    rm -rf ./proto/generated/*
  • execute the generation script:
    ./gen.sh
    
  • commit the generated content along with your changes

Contributing

Please see the Contributing Guidelines document for this repo's specific contributing guidelines.

Readme

Keywords

none

Package Sidebar

Install

npm i @keepkey/proto-tx-builder

Weekly Downloads

51

Version

0.9.1

License

MIT

Unpacked Size

15.5 MB

Total Files

382

Last publish

Collaborators

  • amitojsingh366
  • markrypto
  • pastaghost
  • tech-keepkey
  • bithighlander
  • mcchadwick