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

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.