github.com/status-im/status-go@v1.1.0/services/wallet/thirdparty/mercuryo/types.go (about) 1 package mercuryo 2 3 import walletCommon "github.com/status-im/status-go/services/wallet/common" 4 5 func NetworkToCommonChainID(network string) uint64 { 6 switch network { 7 case "ETHEREUM": 8 return walletCommon.EthereumMainnet 9 case "OPTIMISM": 10 return walletCommon.OptimismMainnet 11 case "ARBITRUM": 12 return walletCommon.ArbitrumMainnet 13 } 14 return walletCommon.UnknownChainID 15 } 16 17 func CommonChainIDToNetwork(chainID uint64) string { 18 switch chainID { 19 case walletCommon.EthereumMainnet: 20 return "ETHEREUM" 21 case walletCommon.ArbitrumMainnet: 22 return "ARBITRUM" 23 case walletCommon.OptimismMainnet: 24 return "OPTIMISM" 25 default: 26 return "" 27 } 28 }