|
|
před 2 týdny | |
|---|---|---|
| .. | ||
| js | před 8 měsíci | |
| js-proto-node | před 8 měsíci | |
| js-proto-web | před 8 měsíci | |
| js-query | před 8 měsíci | |
| js-wasm | před 8 měsíci | |
| rust | před 2 týdny | |
| vaa | před 3 týdny | |
| Makefile | před 4 měsíci | |
| README.md | před 4 měsíci | |
| chainid_generator.go | před 4 měsíci | |
| devnet_consts.go | před 3 týdny | |
| go.mod | před 2 roky | |
| go.sum | před 2 roky | |
| mainnet_consts.go | před 4 týdny | |
| p2p_consts.go | před 3 roky | |
| testnet_consts.go | před 3 týdny | |
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