MCPcopy
hub / github.com/canopy-network/canopy / RCManagerI

Interface RCManagerI

lib/consensus.go:116–130  ·  view source on GitHub ↗

RootChainClient executes 'on-demand' calls to the root-chain

Source from the content-addressed store, hash-verified

114
115// RootChainClient executes 'on-demand' calls to the root-chain
116type RCManagerI interface {
117 Publish(chainId uint64, info *RootChainInfo) // publish the root chain info to nested chain listeners
118 ChainIds() []uint64 // get the list of chain ids of the nested chain subscribers
119 GetHeight(rootChainId uint64) uint64 // get the height of the root chain
120 GetRootChainInfo(rootChainId, chainId uint64) (rootChainInfo *RootChainInfo, err ErrorI) // get root-chain info 'on-demand'
121 GetValidatorSet(rootChainId, height, id uint64) (ValidatorSet, ErrorI) // get the validator set for a chain id using the RPC API
122 GetLotteryWinner(rootChainId, height, id uint64) (p *LotteryWinner, err ErrorI) // get the delegate 'lottery winner' for a chain id
123 GetOrders(rootChainId, rootHeight, id uint64) (*OrderBook, ErrorI) // get the order book for a specific 'chain id'
124 GetOrder(rootChainId, height uint64, orderId string, chainId uint64) (*SellOrder, ErrorI) // get a specific order from the order book
125 GetDexBatch(rootChainId, height, committee uint64, withPoints bool) (*DexBatch, ErrorI) // get the dex information from the root chain
126 IsValidDoubleSigner(rootChainId, height uint64, address string) (p *bool, err ErrorI) // check if a double signer is valid for an address for a specific 'double sign height'
127 GetMinimumEvidenceHeight(rootChainId, rootHeight uint64) (*uint64, ErrorI) // load the minimum height that evidence is valid
128 GetCheckpoint(rootChainId, height, id uint64) (blockHash HexBytes, i ErrorI) // get a checkpoint at a height and chain id combination
129 Transaction(rootChainId uint64, tx TransactionI) (hash *string, err ErrorI) // submit a transaction to the 'root chain'
130}
131
132// CheckBasic() validates the basic structure and length of the AggregateSignature
133func (x *AggregateSignature) CheckBasic() ErrorI {

Callers 31

CommitCertificateMethod · 0.65
CommitCertificateMethod · 0.65
StartMethod · 0.65
singleNodeNetworkMethod · 0.65
StartMethod · 0.65
LoadCommitteeMethod · 0.65
EcoParametersMethod · 0.65
TestHandleMessageFunction · 0.65

Implementers 2

MockRCManagerfsm/dex_test.go
RCManagercmd/rpc/sock.go

Calls

no outgoing calls

Tested by

no test coverage detected