Documentation ¶
Index ¶
- type AccountAPI
- type BrokerAPI
- func (b *BrokerAPI) AddPier(key string) (chan *pb.InterchainTxWrapper, error)
- func (b *BrokerAPI) GetBlock(mode string, value string) (*pb.Block, error)
- func (b *BrokerAPI) GetBlockHeader(begin, end uint64, ch chan<- *pb.BlockHeader) error
- func (b *BrokerAPI) GetBlocks(start uint64, end uint64) ([]*pb.Block, error)
- func (b *BrokerAPI) GetInterchainTxWrapper(pid string, begin, end uint64, ch chan<- *pb.InterchainTxWrapper) error
- func (b *BrokerAPI) GetReceipt(hash types.Hash) (*pb.Receipt, error)
- func (b *BrokerAPI) GetTransaction(hash types.Hash) (*pb.Transaction, error)
- func (b *BrokerAPI) GetTransactionMeta(hash types.Hash) (*pb.TransactionMeta, error)
- func (b *BrokerAPI) HandleTransaction(tx *pb.Transaction) error
- func (b *BrokerAPI) OrderReady() bool
- func (b *BrokerAPI) RemovePier(key string)
- type ChainAPI
- type CoreAPI
- type FeedAPI
- type NetworkAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountAPI ¶
type AccountAPI CoreAPI
func (*AccountAPI) GetAccount ¶
func (api *AccountAPI) GetAccount(addr types.Address) *ledger.Account
type BrokerAPI ¶
type BrokerAPI CoreAPI
func (*BrokerAPI) AddPier ¶
func (b *BrokerAPI) AddPier(key string) (chan *pb.InterchainTxWrapper, error)
func (*BrokerAPI) GetBlockHeader ¶
func (b *BrokerAPI) GetBlockHeader(begin, end uint64, ch chan<- *pb.BlockHeader) error
func (*BrokerAPI) GetInterchainTxWrapper ¶
func (*BrokerAPI) GetTransaction ¶
func (*BrokerAPI) GetTransactionMeta ¶
func (*BrokerAPI) HandleTransaction ¶
func (b *BrokerAPI) HandleTransaction(tx *pb.Transaction) error
func (*BrokerAPI) OrderReady ¶
func (*BrokerAPI) RemovePier ¶
type CoreAPI ¶
type CoreAPI struct {
// contains filtered or unexported fields
}
func (*CoreAPI) Account ¶
func (api *CoreAPI) Account() api.AccountAPI
func (*CoreAPI) Network ¶
func (api *CoreAPI) Network() api.NetworkAPI
type FeedAPI ¶
type FeedAPI CoreAPI
func (*FeedAPI) SubscribeNewBlockEvent ¶
func (api *FeedAPI) SubscribeNewBlockEvent(ch chan<- events.NewBlockEvent) event.Subscription
type NetworkAPI ¶
type NetworkAPI CoreAPI
func (*NetworkAPI) PeerInfo ¶
func (network *NetworkAPI) PeerInfo() ([]byte, error)
PeerInfo collects the peers' info in p2p network.
Click to show internal directories.
Click to hide internal directories.