This directory contains libraries in various languages for developing software that interacts with wormhole.
To add a new ChainID to Wormhole:
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.
Regenerate methods by running:
make go-generate
This runs chainid_generator.go which auto-generates String(), ChainIDFromString(), and GetAllNetworkIDs() methods.
Update other components as needed:
node/pkg/governor/mainnet_chains.go)node/pkg/governor/manual_tokens.go)proto/publicrpc/v1/publicrpc.proto.github.com/wormhole-foundation/wormhole/sdk import path.@wormhole-foundation/sdk