coreapi

package
v1.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2022 License: GPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

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 AuditAPI added in v1.16.0

type AuditAPI CoreAPI

func (AuditAPI) HandleAuditNodeSubscription added in v1.16.0

func (api AuditAPI) HandleAuditNodeSubscription(dataCh chan<- *pb.AuditTxInfo, auditNodeID string, blockStart uint64) error

func (*AuditAPI) SubscribeAuditEvent added in v1.16.0

func (api *AuditAPI) SubscribeAuditEvent(ch chan<- *pb.AuditTxInfo) event.Subscription

type BrokerAPI

type BrokerAPI CoreAPI

func (*BrokerAPI) AddPier

func (b *BrokerAPI) AddPier(pierID string) (chan *pb.InterchainTxWrappers, error)

func (*BrokerAPI) FetchSignsFromOtherPeers added in v1.0.1

func (b *BrokerAPI) FetchSignsFromOtherPeers(req *pb.GetSignsRequest) map[string][]byte

func (*BrokerAPI) FetchTssInfoFromOtherPeers added in v1.23.0

func (b *BrokerAPI) FetchTssInfoFromOtherPeers() []*pb.TssInfo

func (*BrokerAPI) GetBlock

func (b *BrokerAPI) GetBlock(mode string, value string) (*pb.Block, error)

func (*BrokerAPI) GetBlockHeader

func (b *BrokerAPI) GetBlockHeader(begin, end uint64, ch chan<- *pb.BlockHeader) error

func (*BrokerAPI) GetBlockHeaders added in v1.4.0

func (b *BrokerAPI) GetBlockHeaders(start uint64, end uint64) ([]*pb.BlockHeader, error)

func (*BrokerAPI) GetBlocks

func (b *BrokerAPI) GetBlocks(start uint64, end uint64) ([]*pb.Block, error)

func (*BrokerAPI) GetInterchainTxWrappers added in v1.0.1

func (b *BrokerAPI) GetInterchainTxWrappers(appchainID string, begin, end uint64, ch chan<- *pb.InterchainTxWrappers) error

func (BrokerAPI) GetPendingNonceByAccount added in v1.0.1

func (b BrokerAPI) GetPendingNonceByAccount(account string) uint64

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) GetPrivKey added in v1.23.0

func (b *BrokerAPI) GetPrivKey() *repo.Key

func (*BrokerAPI) GetQuorum added in v1.22.0

func (b *BrokerAPI) GetQuorum() uint64

func (*BrokerAPI) GetReceipt

func (b *BrokerAPI) GetReceipt(hash *types.Hash) (*pb.Receipt, error)

func (*BrokerAPI) GetSign added in v1.0.1

func (b *BrokerAPI) GetSign(req *pb.GetSignsRequest, signers []string) (string, []byte, []string, error)

func (BrokerAPI) GetStateLedger added in v1.9.0

func (b BrokerAPI) GetStateLedger() ledger.StateLedger

func (*BrokerAPI) GetTransaction

func (b *BrokerAPI) GetTransaction(hash *types.Hash) (pb.Transaction, error)

func (*BrokerAPI) GetTransactionMeta

func (b *BrokerAPI) GetTransactionMeta(hash *types.Hash) (*pb.TransactionMeta, error)

func (*BrokerAPI) GetTssInfo added in v1.23.0

func (b *BrokerAPI) GetTssInfo() (*pb.TssInfo, error)

func (*BrokerAPI) GetTssPubkey added in v1.22.0

func (b *BrokerAPI) GetTssPubkey() (string, *ecdsa.PublicKey, error)

func (*BrokerAPI) HandleTransaction

func (b *BrokerAPI) HandleTransaction(tx pb.Transaction) error

func (*BrokerAPI) HandleView added in v1.0.1

func (b *BrokerAPI) HandleView(tx pb.Transaction) (*pb.Receipt, error)

func (*BrokerAPI) OrderReady

func (b *BrokerAPI) OrderReady() error

func (*BrokerAPI) RemovePier

func (b *BrokerAPI) RemovePier(pierID string)

type ChainAPI

type ChainAPI CoreAPI

func (*ChainAPI) Meta

func (api *ChainAPI) Meta() (*pb.ChainMeta, error)

func (*ChainAPI) Status

func (api *ChainAPI) Status() string

func (*ChainAPI) TPS added in v1.0.1

func (api *ChainAPI) TPS(begin, end uint64) (uint64, error)

type CoreAPI

type CoreAPI struct {
	// contains filtered or unexported fields
}

func New

func New(bxh *app.BitXHub) (*CoreAPI, error)

func (*CoreAPI) Account

func (api *CoreAPI) Account() api.AccountAPI

func (*CoreAPI) Audit added in v1.16.0

func (api *CoreAPI) Audit() api.AuditAPI

func (*CoreAPI) Broker

func (api *CoreAPI) Broker() api.BrokerAPI

func (*CoreAPI) Chain

func (api *CoreAPI) Chain() api.ChainAPI

func (*CoreAPI) Feed

func (api *CoreAPI) Feed() api.FeedAPI

func (*CoreAPI) Network

func (api *CoreAPI) Network() api.NetworkAPI

type FeedAPI

type FeedAPI CoreAPI

func (*FeedAPI) BloomStatus added in v1.8.0

func (api *FeedAPI) BloomStatus() (uint64, uint64)

func (*FeedAPI) SubscribeAuditEvent added in v1.16.0

func (api *FeedAPI) SubscribeAuditEvent(ch chan<- *pb.AuditTxInfo) event.Subscription

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

func (*FeedAPI) SubscribeTssSignRes added in v1.22.0

func (api *FeedAPI) SubscribeTssSignRes(ch chan<- *pb.Message) 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) OtherPeers added in v1.22.0

func (network *NetworkAPI) OtherPeers() map[uint64]*peer.AddrInfo

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL