|
|
2 semanas atrás | |
|---|---|---|
| .. | ||
| js | 8 meses atrás | |
| js-proto-node | 8 meses atrás | |
| js-proto-web | 8 meses atrás | |
| js-query | 8 meses atrás | |
| js-wasm | 8 meses atrás | |
| rust | 2 semanas atrás | |
| vaa | 3 semanas atrás | |
| Makefile | 4 meses atrás | |
| README.md | 4 meses atrás | |
| chainid_generator.go | 4 meses atrás | |
| devnet_consts.go | 3 semanas atrás | |
| go.mod | 2 anos atrás | |
| go.sum | 2 anos atrás | |
| mainnet_consts.go | 4 semanas atrás | |
| p2p_consts.go | 3 anos atrás | |
| testnet_consts.go | 3 semanas atrás | |
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