Skip to content

Commit

Permalink
Node: Add Noble support over IBC (wormhole-foundation#4195)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-riley authored Dec 18, 2024
1 parent 8624e5a commit 3797ed0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions node/pkg/watchers/ibc/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ var (
vaa.ChainIDSeda,
vaa.ChainIDDymension,
vaa.ChainIDProvenance,
vaa.ChainIDNoble,
}

// features is the feature string to be published in the gossip heartbeat messages. It will include all chains that are actually enabled on IBC.
Expand Down
7 changes: 7 additions & 0 deletions sdk/vaa/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ func (c ChainID) String() string {
return "dymension"
case ChainIDProvenance:
return "provenance"
case ChainIDNoble:
return "noble"
case ChainIDSepolia:
return "sepolia"
case ChainIDArbitrumSepolia:
Expand Down Expand Up @@ -360,6 +362,8 @@ func ChainIDFromString(s string) (ChainID, error) {
return ChainIDDymension, nil
case "provenance":
return ChainIDProvenance, nil
case "noble":
return ChainIDNoble, nil
case "sepolia":
return ChainIDSepolia, nil
case "arbitrum_sepolia":
Expand Down Expand Up @@ -431,6 +435,7 @@ func GetAllNetworkIDs() []ChainID {
ChainIDSeda,
ChainIDDymension,
ChainIDProvenance,
ChainIDNoble,
ChainIDSepolia,
ChainIDArbitrumSepolia,
ChainIDBaseSepolia,
Expand Down Expand Up @@ -546,6 +551,8 @@ const (
ChainIDDymension ChainID = 4007
// ChainIDProvenance is the ChainID of Provenance
ChainIDProvenance ChainID = 4008
// ChainIDNoble is the ChainID of Noble
ChainIDNoble ChainID = 4009
// ChainIDSepolia is the ChainID of Sepolia
ChainIDSepolia ChainID = 10002
// ChainIDArbitrumSepolia is the ChainID of Arbitrum on Sepolia
Expand Down
2 changes: 2 additions & 0 deletions sdk/vaa/structs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func TestChainIDFromString(t *testing.T) {
{input: "seda", output: ChainIDSeda},
{input: "dymension", output: ChainIDDymension},
{input: "provenance", output: ChainIDProvenance},
{input: "noble", output: ChainIDNoble},
{input: "sepolia", output: ChainIDSepolia},
{input: "arbitrum_sepolia", output: ChainIDArbitrumSepolia},
{input: "base_sepolia", output: ChainIDBaseSepolia},
Expand Down Expand Up @@ -139,6 +140,7 @@ func TestChainIDFromString(t *testing.T) {
{input: "Seda", output: ChainIDSeda},
{input: "Dymension", output: ChainIDDymension},
{input: "Provenance", output: ChainIDProvenance},
{input: "Noble", output: ChainIDNoble},
{input: "Sepolia", output: ChainIDSepolia},
{input: "Arbitrum_Sepolia", output: ChainIDArbitrumSepolia},
{input: "Base_Sepolia", output: ChainIDBaseSepolia},
Expand Down

0 comments on commit 3797ed0

Please sign in to comment.