John Saigle b6aee18398 ci: Add security-focused clippy lints to various crates (#4568) 2 nedēļas atpakaļ
..
js e90146b321 Update elliptic to >= 6.6.1 (#4272) 8 mēneši atpakaļ
js-proto-node e90146b321 Update elliptic to >= 6.6.1 (#4272) 8 mēneši atpakaļ
js-proto-web e90146b321 Update elliptic to >= 6.6.1 (#4272) 8 mēneši atpakaļ
js-query e90146b321 Update elliptic to >= 6.6.1 (#4272) 8 mēneši atpakaļ
js-wasm e90146b321 Update elliptic to >= 6.6.1 (#4272) 8 mēneši atpakaļ
rust b6aee18398 ci: Add security-focused clippy lints to various crates (#4568) 2 nedēļas atpakaļ
vaa b866766462 feat: moca testnet (#4550) 3 nedēļas atpakaļ
Makefile befd9a6b29 sdk: Auto-generate ChainID methods (#4402) 4 mēneši atpakaļ
README.md befd9a6b29 sdk: Auto-generate ChainID methods (#4402) 4 mēneši atpakaļ
chainid_generator.go befd9a6b29 sdk: Auto-generate ChainID methods (#4402) 4 mēneši atpakaļ
devnet_consts.go 1c2193432e node: Integrate Transfer Verifier into Sui Watcher (#4324) 3 nedēļas atpakaļ
go.mod 3337783c6d wormchain: add ibc-composability-mw to gateway (#3273) 2 gadi atpakaļ
go.sum 3337783c6d wormchain: add ibc-composability-mw to gateway (#3273) 2 gadi atpakaļ
mainnet_consts.go 3700e8647b monad mainnet WTT deployment (#4547) 4 nedēļas atpakaļ
p2p_consts.go 63a5654c02 wormchain: add admin-sign command to continue wormchain validator enrollment 3 gadi atpakaļ
testnet_consts.go b866766462 feat: moca testnet (#4550) 3 nedēļas atpakaļ

README.md

Wormhole Software Development Kit

This directory contains libraries in various languages for developing software that interacts with wormhole.

Adding a New ChainID

To add a new ChainID to Wormhole:

  1. Add the constant in vaa/structs.go:

    // ChainIDNewChain is the ChainID of NewChain
    ChainIDNewChain ChainID = 99
    

    Keep constants in numerical order and follow the naming convention.

  2. Regenerate methods by running:

    make go-generate
    

    This runs chainid_generator.go which auto-generates String(), ChainIDFromString(), and GetAllNetworkIDs() methods.

  3. Update other components as needed:

    • Add to governor chain lists (node/pkg/governor/mainnet_chains.go)
    • Add manual tokens if required (node/pkg/governor/manual_tokens.go)
    • Update any chain-specific configuration files
    • Add the ChainID in proto/publicrpc/v1/publicrpc.proto.
    • If watcher support is necessary, update the guardian code.

Directory Structure

  • sdk/: Go SDK. This package must live in this directory so that clients can use the github.com/wormhole-foundation/wormhole/sdk import path.
  • vaa/: Go package for using VAAs (Verifiable Action Approval).
  • js/: Legacy JavaScript SDK (Deprecated and Unsupported)
  • js-proto-node/: NodeJS client protobuf.
  • js-proto-web/: Web client protobuf.
  • js-wasm/: WebAssembly libraries.
  • rust/: Rust SDK.