Documentation ¶
Index ¶
- type AccountAPI
- type BrokerAPI
- func (b *BrokerAPI) AddPier(did bitxid.DID, pierID string, isUnion bool) (chan *pb.InterchainTxWrappers, error)
- func (b *BrokerAPI) FetchSignsFromOtherPeers(id string, typ pb.GetMultiSignsRequest_Type) map[string][]byte
- 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) GetBlockHeaders(start uint64, end uint64) ([]*pb.BlockHeader, error)
- func (b *BrokerAPI) GetBlocks(start uint64, end uint64) ([]*pb.Block, error)
- func (b *BrokerAPI) GetInterchainTxWrappers(did string, begin, end uint64, ch chan<- *pb.InterchainTxWrappers) error
- func (b BrokerAPI) GetPendingNonceByAccount(account string) uint64
- func (b BrokerAPI) GetPendingTransactions(max int) []pb.Transaction
- func (b BrokerAPI) GetPoolTransaction(hash *types.Hash) pb.Transaction
- func (b *BrokerAPI) GetReceipt(hash *types.Hash) (*pb.Receipt, error)
- func (b *BrokerAPI) GetSign(content string, typ pb.GetMultiSignsRequest_Type) (string, []byte, error)
- func (b BrokerAPI) GetStateLedger() ledger.StateLedger
- 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) HandleView(tx pb.Transaction) (*pb.Receipt, error)
- func (b *BrokerAPI) OrderReady() error
- func (b *BrokerAPI) RemovePier(did bitxid.DID, pierID string, isUnion bool)
- type ChainAPI
- type CoreAPI
- type FeedAPI
- func (api *FeedAPI) BloomStatus() (uint64, uint64)
- func (api *FeedAPI) SubscribeLogsEvent(ch chan<- []*pb.EvmLog) event.Subscription
- func (api *FeedAPI) SubscribeNewBlockEvent(ch chan<- events.ExecutedEvent) event.Subscription
- func (api *FeedAPI) SubscribeNewTxEvent(ch chan<- pb.Transactions) event.Subscription
- 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.IAccount
type BrokerAPI ¶
type BrokerAPI CoreAPI
func (*BrokerAPI) FetchSignsFromOtherPeers ¶ added in v1.0.1
func (*BrokerAPI) GetBlockHeader ¶
func (b *BrokerAPI) GetBlockHeader(begin, end uint64, ch chan<- *pb.BlockHeader) error
func (*BrokerAPI) GetBlockHeaders ¶ added in v1.4.0
func (*BrokerAPI) GetInterchainTxWrappers ¶ added in v1.0.1
func (BrokerAPI) GetPendingNonceByAccount ¶ added in v1.0.1
func (BrokerAPI) GetPendingTransactions ¶ added in v1.8.0
func (b BrokerAPI) GetPendingTransactions(max int) []pb.Transaction
func (BrokerAPI) GetPoolTransaction ¶ added in v1.8.0
func (b BrokerAPI) GetPoolTransaction(hash *types.Hash) pb.Transaction
func (*BrokerAPI) GetReceipt ¶
func (BrokerAPI) GetStateLedger ¶ added in v1.9.0
func (b BrokerAPI) GetStateLedger() ledger.StateLedger
func (*BrokerAPI) GetTransaction ¶
func (*BrokerAPI) GetTransactionMeta ¶
func (*BrokerAPI) HandleTransaction ¶
func (b *BrokerAPI) HandleTransaction(tx pb.Transaction) error
func (*BrokerAPI) HandleView ¶ added in v1.0.1
func (*BrokerAPI) OrderReady ¶
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) BloomStatus ¶ added in v1.8.0
func (*FeedAPI) SubscribeLogsEvent ¶ added in v1.8.0
func (api *FeedAPI) SubscribeLogsEvent(ch chan<- []*pb.EvmLog) event.Subscription
func (*FeedAPI) SubscribeNewBlockEvent ¶
func (api *FeedAPI) SubscribeNewBlockEvent(ch chan<- events.ExecutedEvent) event.Subscription
func (*FeedAPI) SubscribeNewTxEvent ¶ added in v1.8.0
func (api *FeedAPI) SubscribeNewTxEvent(ch chan<- pb.Transactions) event.Subscription
type NetworkAPI ¶
type NetworkAPI CoreAPI
func (*NetworkAPI) DelVPNode ¶ added in v1.4.0
func (network *NetworkAPI) DelVPNode(pid string) ([]byte, error)
func (*NetworkAPI) PeerInfo ¶
func (network *NetworkAPI) PeerInfo() ([]byte, error)
PeerInfo collects the peers' info in p2p network.
func (*NetworkAPI) PierManager ¶ added in v1.5.0
func (network *NetworkAPI) PierManager() peermgr.PierManager
Click to show internal directories.
Click to hide internal directories.