Skip to content

Commit

Permalink
Merge pull request #231 from 0xsequence/chain/immutable
Browse files Browse the repository at this point in the history
Added skale mainnet and immutable mainnet + testnet
  • Loading branch information
BellringerQuinn authored Nov 4, 2024
2 parents 132aa4b + 12111e4 commit c7387d4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ class SEQUENCEPLUGIN_API USequenceSupport : public UObject

static inline TMap<int64, FString> NetworkIdToUrlMap = {
FIdName(1,TEXT("mainnet")),
FIdName(13371,TEXT("immutable-zkevm")),
FIdName(1482601649,TEXT("skale-nebula")),
FIdName(10,TEXT("optimism")),
FIdName(56,TEXT("bsc")),
FIdName(100,TEXT("gnosis")),
Expand All @@ -66,6 +68,7 @@ class SEQUENCEPLUGIN_API USequenceSupport : public UObject
FIdName(81457,TEXT("blast")),
FIdName(660279,TEXT("xai")),

FIdName(13473,TEXT("immutable-zkevm-testnet")),
FIdName(97,TEXT("bsc-testnet")),
FIdName(1946,TEXT("soneium-minato")),
FIdName(1993,TEXT("b3-sepolia")),
Expand All @@ -86,6 +89,8 @@ class SEQUENCEPLUGIN_API USequenceSupport : public UObject

static inline TMap<int64, FString> NetworkIdToNameMap = {
FIdName(1,TEXT("Ethereum")),
FIdName(13371,TEXT("Immutable")),
FIdName(1482601649,TEXT("SKALE Nebula")),
FIdName(10,TEXT("Optimism")),
FIdName(56,TEXT("BNB Smart Chain")),
FIdName(100,TEXT("Gnosis Chain")),
Expand All @@ -101,6 +106,7 @@ class SEQUENCEPLUGIN_API USequenceSupport : public UObject
FIdName(81457,TEXT("Blast")),
FIdName(660279,TEXT("Xai")),

FIdName(13473,TEXT("Immutable Testnet")),
FIdName(97,TEXT("BNB Smart Chain Testnet")),
FIdName(1946,TEXT("Soneium Minato Testnet")),
FIdName(1993,TEXT("B3 Sepolia")),
Expand All @@ -121,6 +127,8 @@ class SEQUENCEPLUGIN_API USequenceSupport : public UObject

static inline TMap<FString, int64> NetworkNameToIdMap = {
FNameId(TEXT("ethereum"),1),
FNameId(TEXT("immutable"),13371),
FNameId(TEXT("skale-nebula"),1482601649),
FNameId(TEXT("optimism"),10),
FNameId(TEXT("bnbsmartchain"),56),
FNameId(TEXT("gnosischain"),100),
Expand All @@ -136,6 +144,7 @@ class SEQUENCEPLUGIN_API USequenceSupport : public UObject
FNameId(TEXT("blast"),81457),
FNameId(TEXT("xai"),660279),

FNameId(TEXT("immutable-testnet"),13473),
FNameId(TEXT("bnbsmartchaintestnet"),97),
FNameId(TEXT("soneiumminato"),1946),
FNameId(TEXT("b3sepolia"),1993),
Expand All @@ -156,6 +165,8 @@ class SEQUENCEPLUGIN_API USequenceSupport : public UObject

static inline TMap<ENetwork, int64> NetworkEnumToIdMap = {
{ENetwork::Ethereum, 1},
{ENetwork::Immutable, 13371},
{ENetwork::SkaleNebula, 1482601649},
{ENetwork::Optimism, 10},
{ENetwork::BNBSmartChain, 56},
{ENetwork::GnosisChain, 100},
Expand All @@ -171,6 +182,7 @@ class SEQUENCEPLUGIN_API USequenceSupport : public UObject
{ENetwork::Blast, 81457},
{ENetwork::Xai, 660279},

{ENetwork::ImmutableTestnet, 13473},
{ENetwork::BNBSmartChainTestnet, 97},
{ENetwork::SoneiumMinatoTestnet, 1946},
{ENetwork::B3Sepolia, 1993},
Expand All @@ -192,6 +204,8 @@ class SEQUENCEPLUGIN_API USequenceSupport : public UObject

static inline TMap<ENetwork, FString> NetworkEnumToNameMap = {
{ENetwork::Ethereum, TEXT("Ethereum")},
{ENetwork::Immutable, TEXT("Immutable")},
{ENetwork::SkaleNebula, TEXT("SKALE Nebula")},
{ENetwork::Optimism, TEXT("Optimism")},
{ENetwork::BNBSmartChain, TEXT("BNB Smart Chain")},
{ENetwork::GnosisChain, TEXT("Gnosis Chain")},
Expand All @@ -207,6 +221,7 @@ class SEQUENCEPLUGIN_API USequenceSupport : public UObject
{ENetwork::Blast, TEXT("Blast")},
{ENetwork::Xai, TEXT("Xai")},

{ENetwork::ImmutableTestnet, TEXT("Immutable Testnet")},
{ENetwork::BNBSmartChainTestnet, TEXT("BNB Smart Chain Testnet")},
{ENetwork::SoneiumMinatoTestnet, TEXT("Soneium Minato Testnet")},
{ENetwork::B3Sepolia, TEXT("B3 Sepolia")},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ UENUM(BlueprintType)
enum ENetwork
{
Ethereum UMETA(DisplayName = "Ethereum"),
Immutable UMETA(DisplayName = "Immutable"),
SkaleNebula UMETA(DisplayName = "SKALE Nebula"),
Optimism UMETA(DisplayName = "Optimism"),
BNBSmartChain UMETA(DisplayName = "BNB Smart Chain"),
GnosisChain UMETA(DisplayName = "Gnosis Chain"),
Expand All @@ -31,7 +33,8 @@ enum ENetwork
Avalanche UMETA(DisplayName = "Avalanche"),
Blast UMETA(DisplayName = "Blast"),
Xai UMETA(DisplayName = "Xai"),


ImmutableTestnet UMETA(DisplayName = "Immutable Testnet"),
BNBSmartChainTestnet UMETA(DisplayName = "BNB Smart Chain Testnet"),
SoneiumMinatoTestnet UMETA(DisplayName = "Soneium Minato Testnet"),
B3Sepolia UMETA(DisplayName = "B3 Sepolia"),
Expand Down

0 comments on commit c7387d4

Please sign in to comment.