Node: Add Noble support over IBC (#4195)

This commit is contained in:
bruce-riley 2024-12-18 08:37:24 -06:00 committed by GitHub
parent 8624e5ae9a
commit 3797ed0821
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 0 deletions

View File

@ -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.

View File

@ -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:
@ -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":
@ -431,6 +435,7 @@ func GetAllNetworkIDs() []ChainID {
ChainIDSeda,
ChainIDDymension,
ChainIDProvenance,
ChainIDNoble,
ChainIDSepolia,
ChainIDArbitrumSepolia,
ChainIDBaseSepolia,
@ -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

View File

@ -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},
@ -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},