Documentation ¶
Index ¶
- Variables
- func EnumName(m map[int32]string, v int32) string
- type Blockchain
- func (Blockchain) Descriptor() protoreflect.EnumDescriptor
- func (x Blockchain) Enum() *Blockchain
- func (Blockchain) EnumDescriptor() ([]byte, []int)deprecated
- func (x Blockchain) GetName() string
- func (x Blockchain) Number() protoreflect.EnumNumber
- func (x Blockchain) String() string
- func (Blockchain) Type() protoreflect.EnumType
- type Network
- func (Network) Descriptor() protoreflect.EnumDescriptor
- func (x Network) Enum() *Network
- func (Network) EnumDescriptor() ([]byte, []int)deprecated
- func (n Network) GetName() string
- func (x Network) Number() protoreflect.EnumNumber
- func (x Network) String() string
- func (Network) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Blockchain_name = map[int32]string{ 0: "BLOCKCHAIN_UNKNOWN", 11: "BLOCKCHAIN_SOLANA", 16: "BLOCKCHAIN_BITCOIN", 17: "BLOCKCHAIN_ETHEREUM", 26: "BLOCKCHAIN_DOGECOIN", 31: "BLOCKCHAIN_BSC", 32: "BLOCKCHAIN_AVACCHAIN", 35: "BLOCKCHAIN_POLYGON", 39: "BLOCKCHAIN_OPTIMISM", 41: "BLOCKCHAIN_ARBITRUM", 47: "BLOCKCHAIN_APTOS", 51: "BLOCKCHAIN_FANTOM", 56: "BLOCKCHAIN_BASE", } Blockchain_value = map[string]int32{ "BLOCKCHAIN_UNKNOWN": 0, "BLOCKCHAIN_SOLANA": 11, "BLOCKCHAIN_BITCOIN": 16, "BLOCKCHAIN_ETHEREUM": 17, "BLOCKCHAIN_DOGECOIN": 26, "BLOCKCHAIN_BSC": 31, "BLOCKCHAIN_AVACCHAIN": 32, "BLOCKCHAIN_POLYGON": 35, "BLOCKCHAIN_OPTIMISM": 39, "BLOCKCHAIN_ARBITRUM": 41, "BLOCKCHAIN_APTOS": 47, "BLOCKCHAIN_FANTOM": 51, "BLOCKCHAIN_BASE": 56, } )
Enum value maps for Blockchain.
View Source
var ( Network_name = map[int32]string{ 0: "NETWORK_UNKNOWN", 22: "NETWORK_SOLANA_MAINNET", 23: "NETWORK_SOLANA_TESTNET", 33: "NETWORK_BITCOIN_MAINNET", 34: "NETWORK_BITCOIN_TESTNET", 35: "NETWORK_ETHEREUM_MAINNET", 36: "NETWORK_ETHEREUM_TESTNET", 66: "NETWORK_ETHEREUM_GOERLI", 56: "NETWORK_DOGECOIN_MAINNET", 57: "NETWORK_DOGECOIN_TESTNET", 70: "NETWORK_BSC_MAINNET", 71: "NETWORK_BSC_TESTNET", 72: "NETWORK_AVACCHAIN_MAINNET", 73: "NETWORK_AVACCHAIN_TESTNET", 78: "NETWORK_POLYGON_MAINNET", 79: "NETWORK_POLYGON_TESTNET", 86: "NETWORK_OPTIMISM_MAINNET", 87: "NETWORK_OPTIMISM_TESTNET", 91: "NETWORK_ARBITRUM_MAINNET", 92: "NETWORK_ARBITRUM_TESTNET", 103: "NETWORK_APTOS_MAINNET", 104: "NETWORK_APTOS_TESTNET", 111: "NETWORK_FANTOM_MAINNET", 112: "NETWORK_FANTOM_TESTNET", 123: "NETWORK_BASE_MAINNET", 125: "NETWORK_BASE_GOERLI", 136: "NETWORK_ETHEREUM_HOLESKY", } Network_value = map[string]int32{ "NETWORK_UNKNOWN": 0, "NETWORK_SOLANA_MAINNET": 22, "NETWORK_SOLANA_TESTNET": 23, "NETWORK_BITCOIN_MAINNET": 33, "NETWORK_BITCOIN_TESTNET": 34, "NETWORK_ETHEREUM_MAINNET": 35, "NETWORK_ETHEREUM_TESTNET": 36, "NETWORK_ETHEREUM_GOERLI": 66, "NETWORK_DOGECOIN_MAINNET": 56, "NETWORK_DOGECOIN_TESTNET": 57, "NETWORK_BSC_MAINNET": 70, "NETWORK_BSC_TESTNET": 71, "NETWORK_AVACCHAIN_MAINNET": 72, "NETWORK_AVACCHAIN_TESTNET": 73, "NETWORK_POLYGON_MAINNET": 78, "NETWORK_POLYGON_TESTNET": 79, "NETWORK_OPTIMISM_MAINNET": 86, "NETWORK_OPTIMISM_TESTNET": 87, "NETWORK_ARBITRUM_MAINNET": 91, "NETWORK_ARBITRUM_TESTNET": 92, "NETWORK_APTOS_MAINNET": 103, "NETWORK_APTOS_TESTNET": 104, "NETWORK_FANTOM_MAINNET": 111, "NETWORK_FANTOM_TESTNET": 112, "NETWORK_BASE_MAINNET": 123, "NETWORK_BASE_GOERLI": 125, "NETWORK_ETHEREUM_HOLESKY": 136, } )
Enum value maps for Network.
View Source
var File_coinbase_c3_common_common_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Blockchain ¶
type Blockchain int32
Blockchain defines an enumeration of supported blockchains. The field numbers are not continuous because only a subset is open sourced.
const ( Blockchain_BLOCKCHAIN_UNKNOWN Blockchain = 0 Blockchain_BLOCKCHAIN_SOLANA Blockchain = 11 Blockchain_BLOCKCHAIN_BITCOIN Blockchain = 16 Blockchain_BLOCKCHAIN_ETHEREUM Blockchain = 17 Blockchain_BLOCKCHAIN_DOGECOIN Blockchain = 26 Blockchain_BLOCKCHAIN_BSC Blockchain = 31 Blockchain_BLOCKCHAIN_AVACCHAIN Blockchain = 32 Blockchain_BLOCKCHAIN_POLYGON Blockchain = 35 Blockchain_BLOCKCHAIN_OPTIMISM Blockchain = 39 Blockchain_BLOCKCHAIN_ARBITRUM Blockchain = 41 Blockchain_BLOCKCHAIN_APTOS Blockchain = 47 // L1 network using the Move language (originally created for Libra/Diem) Blockchain_BLOCKCHAIN_FANTOM Blockchain = 51 Blockchain_BLOCKCHAIN_BASE Blockchain = 56 // Coinbase L2 )
func (Blockchain) Descriptor ¶
func (Blockchain) Descriptor() protoreflect.EnumDescriptor
func (Blockchain) Enum ¶
func (x Blockchain) Enum() *Blockchain
func (Blockchain) EnumDescriptor
deprecated
func (Blockchain) EnumDescriptor() ([]byte, []int)
Deprecated: Use Blockchain.Descriptor instead.
func (Blockchain) GetName ¶
func (x Blockchain) GetName() string
GetName returns the canonical blockchain name without the added prefix.
func (Blockchain) Number ¶
func (x Blockchain) Number() protoreflect.EnumNumber
func (Blockchain) String ¶
func (x Blockchain) String() string
func (Blockchain) Type ¶
func (Blockchain) Type() protoreflect.EnumType
type Network ¶
type Network int32
Network defines an enumeration of supported networks. The field numbers are not continuous because only a subset is open sourced.
const ( Network_NETWORK_UNKNOWN Network = 0 Network_NETWORK_SOLANA_MAINNET Network = 22 Network_NETWORK_SOLANA_TESTNET Network = 23 Network_NETWORK_BITCOIN_MAINNET Network = 33 Network_NETWORK_BITCOIN_TESTNET Network = 34 Network_NETWORK_ETHEREUM_MAINNET Network = 35 Network_NETWORK_ETHEREUM_TESTNET Network = 36 Network_NETWORK_ETHEREUM_GOERLI Network = 66 Network_NETWORK_DOGECOIN_MAINNET Network = 56 Network_NETWORK_DOGECOIN_TESTNET Network = 57 Network_NETWORK_BSC_MAINNET Network = 70 Network_NETWORK_BSC_TESTNET Network = 71 Network_NETWORK_AVACCHAIN_MAINNET Network = 72 Network_NETWORK_AVACCHAIN_TESTNET Network = 73 Network_NETWORK_POLYGON_MAINNET Network = 78 Network_NETWORK_POLYGON_TESTNET Network = 79 Network_NETWORK_OPTIMISM_MAINNET Network = 86 Network_NETWORK_OPTIMISM_TESTNET Network = 87 Network_NETWORK_ARBITRUM_MAINNET Network = 91 Network_NETWORK_ARBITRUM_TESTNET Network = 92 Network_NETWORK_APTOS_MAINNET Network = 103 Network_NETWORK_APTOS_TESTNET Network = 104 Network_NETWORK_FANTOM_MAINNET Network = 111 Network_NETWORK_FANTOM_TESTNET Network = 112 Network_NETWORK_BASE_MAINNET Network = 123 // Coinbase L2 running on Ethereum mainnet Network_NETWORK_BASE_GOERLI Network = 125 // Coinbase L2 running on Ethereum Goerli Network_NETWORK_ETHEREUM_HOLESKY Network = 136 )
func (Network) Descriptor ¶
func (Network) Descriptor() protoreflect.EnumDescriptor
func (Network) EnumDescriptor
deprecated
func (Network) Number ¶
func (x Network) Number() protoreflect.EnumNumber
func (Network) Type ¶
func (Network) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.