Socket
Socket
Sign inDemoInstall

@shapeshiftoss/proto-tx-builder

Package Overview
Dependencies
122
Maintainers
12
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @shapeshiftoss/proto-tx-builder

Builds and signs new-style protobuf SIGN_MODE_DIRECT Cosmos SDK transactions


Version published
Weekly downloads
1.5K
increased by183.94%
Maintainers
12
Install size
59.5 MB
Created
Weekly downloads
 

Readme

Source

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.

FAQs

Last updated on 02 May 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc