@verana-labs/verana-types
v0.9.1
Published
Generated TypeScript protobuf codecs for the Verana blockchain.
Readme
@verana-labs/verana-types
TypeScript protobuf codecs generated from the Verana blockchain protobufs with ts-proto.
Generate locally
From the repository root:
cd proto
buf generate --template buf.gen.ts.yaml # writes to ../ts-proto/src/codec
cd ../ts-proto
npm install
npm run build # emits dist/ for publishingYou can also use make proto-ts once dependencies are installed.
Publish
- Bump the version in
package.jsonto match the chain tag you are releasing (e.g.v0.7.0->0.7.0). - Regenerate and build as above.
npm publish(ornpm packand upload the tarball to the GitHub release assets).
Consume
npm install @verana-labs/verana-typesImport directly from the codec paths:
import { MsgAddDID } from "@verana-labs/verana-types/codec/verana/dd/v1/tx";