diff --git a/proto/observer/observer.proto b/proto/observer/observer.proto index 575eea04f1..b796a6705b 100644 --- a/proto/observer/observer.proto +++ b/proto/observer/observer.proto @@ -22,6 +22,7 @@ enum ObserverUpdateReason { AdminUpdate = 2; } +// Deprecated: Use ObserverSet instead to get the list of observers message ObserverMapper { string index = 1; chains.Chain observer_chain = 2; diff --git a/proto/pkg/chains/chains.proto b/proto/pkg/chains/chains.proto index 2acee4565a..43473ca276 100644 --- a/proto/pkg/chains/chains.proto +++ b/proto/pkg/chains/chains.proto @@ -11,7 +11,7 @@ enum ReceiveStatus { Success = 1; Failed = 2; } - +// ChainName represents the name of the chain enum ChainName { option (gogoproto.goproto_enum_stringer) = true; empty = 0; @@ -33,7 +33,7 @@ enum ChainName { btc_regtest = 15; amoy_testnet = 16; } - +// Network represents the network type of the chain enum Network { option (gogoproto.goproto_enum_stringer) = true; ETH = 0; @@ -42,7 +42,7 @@ enum Network { POLYGON = 3; BSC = 4; } - +// NetworkType represents the network type of the chain enum NetworkType { option (gogoproto.goproto_enum_stringer) = true; MAINNET = 0; @@ -50,13 +50,13 @@ enum NetworkType { PRIVNET = 2; DEVNET = 3; } - +// Vm represents the virtual machine type of the chain to support smart contracts enum Vm { option (gogoproto.goproto_enum_stringer) = true; NO_VM = 0; EVM = 1; } - +// Consensus represents the consensus algorithm used by the chain enum Consensus { option (gogoproto.goproto_enum_stringer) = true; Ethereum = 0; @@ -64,6 +64,16 @@ enum Consensus { Bitcoin = 2; } +// Chain represents a blockchain network with its unique chain ID +// ChainName is the name of the chain +// ChainId is the unique identifier of the chain +// Network is the network type of the chain , this can be ZETA, ETH, BSC, BTC, POLYGON +// NetworkType is the network type of the chain, this can be MAINNET, TESTNET, DEVNET, PRIVNET +// Vm is the virtual machine type of the chain to support smart contracts, this can be EVM, NO_VM +// Consensus is the consensus algorithm used by the chain, this can be Tendermint, Ethereum, Bitcoin +// IsExternal is a boolean value to determine if the chain is external to Zeta +// IsHeaderSupported is a boolean value to determine if the chain supports headers + message Chain { ChainName chain_name = 1; int64 chain_id = 2;