Cosmjs types for users of the Neutron chain.
Version of this package is synced with the Neutron chain version.
This section is for maintainers of this repo, not users.
# Pull external code
git submodule update --remote
git submodule update --init --recursive
# Install dependencies
npm install
# Set specified versions for submodules
# Submodules versions (commits or tags) should be set in the ./scripts/set-versions.sh script for the corresponding *_REV constants
npm run set-versionsGenerate updated protos directories in protos/*-src folders: npm run precodegen
# Generate .ts files into ./src
npm run codegen
# Build .js/.d.ts files
npm run buildBefore publishing, make sure package and dependency versions are aligned with Neutron core:
package.jsonversion must match the Neutron core version exactly. In other words,@neutron-org/[email protected]must correspond to Neutron corevX.Y.Zrelease.- All
*_REVvalues inscripts/set-versions.shmust match the versions pinned in Neutron core go.mod.
Publish a stable release as latest:
# package.json version: X.Y.Z
npm publish ./build --access public --tag latestPublish a release candidate as next:
# package.json version: X.Y.Z-rc.N
npm publish ./build --access public --tag nextYou can safely check the release content using
npm pack --dry-run ./build 2>&1 | less