coreapi

package
v1.0.0-rc3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 12 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.Account

type BrokerAPI

type BrokerAPI CoreAPI

func (*BrokerAPI) AddPier

func (b *BrokerAPI) AddPier(key string) (chan *pb.InterchainTxWrapper, error)

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) GetBlocks

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

func (*BrokerAPI) GetInterchainTxWrapper

func (b *BrokerAPI) GetInterchainTxWrapper(pid string, begin, end uint64, ch chan<- *pb.InterchainTxWrapper) error

func (*BrokerAPI) GetReceipt

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

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) HandleTransaction

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

func (*BrokerAPI) OrderReady

func (b *BrokerAPI) OrderReady() bool

func (*BrokerAPI) RemovePier

func (b *BrokerAPI) RemovePier(key string)

type ChainAPI

type ChainAPI CoreAPI

func (*ChainAPI) Meta

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

func (*ChainAPI) Status

func (api *ChainAPI) Status() string

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) 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) 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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