forked from coinbase/chainstorage
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommon.proto
68 lines (51 loc) · 1.87 KB
/
common.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
syntax = "proto3";
package coinbase.c3.common;
option go_package = "github.com/coinbase/chainstorage/protos/coinbase/c3/common";
// Blockchain defines an enumeration of supported blockchains.
// The field numbers are not continuous because only a subset is open sourced.
enum Blockchain {
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; // L1 network using the Move language (originally created for Libra/Diem)
BLOCKCHAIN_FANTOM = 51;
BLOCKCHAIN_BASE = 56; // Coinbase L2
}
// Network defines an enumeration of supported networks.
// The field numbers are not continuous because only a subset is open sourced.
enum Network {
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; // Coinbase L2 running on Ethereum mainnet
NETWORK_BASE_GOERLI = 125; // Coinbase L2 running on Ethereum Goerli
NETWORK_ETHEREUM_HOLESKY = 136;
}