coreapi

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokerAPI

type BrokerAPI CoreAPI

func (*BrokerAPI) ChainConfig

func (b *BrokerAPI) ChainConfig() *params.ChainConfig

func (*BrokerAPI) ConsensusReady

func (b *BrokerAPI) ConsensusReady() error

func (*BrokerAPI) GetBlock

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

func (*BrokerAPI) GetBlockHeaders

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

func (*BrokerAPI) GetBlockTxHashList added in v0.4.1

func (b *BrokerAPI) GetBlockTxHashList(height uint64) ([]*types.Hash, error)

func (*BrokerAPI) GetBlockTxList added in v0.4.1

func (b *BrokerAPI) GetBlockTxList(height uint64) ([]*types.Transaction, error)

func (*BrokerAPI) GetBlockWithoutTx added in v0.4.1

func (b *BrokerAPI) GetBlockWithoutTx(mode string, key string) (*types.Block, error)

func (*BrokerAPI) GetBlocks

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

func (*BrokerAPI) GetEvm

func (b *BrokerAPI) GetEvm(mes *vm.Message, vmConfig *vm.Config) (*vm.EVM, error)

func (*BrokerAPI) GetReceipt

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

func (*BrokerAPI) GetSystemContract

func (b *BrokerAPI) GetSystemContract(addr *ethcommon.Address) (common.SystemContract, bool)

func (*BrokerAPI) GetTransaction

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

func (*BrokerAPI) GetTransactionMeta

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

func (*BrokerAPI) GetViewStateLedger

func (b *BrokerAPI) GetViewStateLedger() ledger.StateLedger

func (*BrokerAPI) HandleTransaction

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

func (*BrokerAPI) StateAtTransaction

func (b *BrokerAPI) StateAtTransaction(block *types.Block, txIndex int, reexec uint64) (*vm.Message, vm.BlockContext, *ledger.StateLedger, error)

type ChainAPI

type ChainAPI CoreAPI

func (*ChainAPI) Meta

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

func (*ChainAPI) Status

func (api *ChainAPI) Status() string

func (*ChainAPI) TPS

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

type CoreAPI

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

func New

func New(axiomLedger *app.AxiomLedger) (*CoreAPI, error)

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

func (api *CoreAPI) Gas() api.GasAPI

func (*CoreAPI) TxPool

func (api *CoreAPI) TxPool() api.TxPoolAPI

type FeedAPI

type FeedAPI CoreAPI

func (*FeedAPI) BloomStatus

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

TODO: check it

func (*FeedAPI) SubscribeLogsEvent

func (api *FeedAPI) SubscribeLogsEvent(ch chan<- []*types.EvmLog) event.Subscription

func (*FeedAPI) SubscribeNewBlockEvent

func (api *FeedAPI) SubscribeNewBlockEvent(ch chan<- events.ExecutedEvent) event.Subscription

func (*FeedAPI) SubscribeNewTxEvent

func (api *FeedAPI) SubscribeNewTxEvent(ch chan<- []*types.Transaction) event.Subscription

todo: subscribe from txpool?

type GasAPI

type GasAPI CoreAPI

func (*GasAPI) GetCurrentGasPrice

func (gas *GasAPI) GetCurrentGasPrice(blockHeight uint64) (uint64, error)

func (*GasAPI) GetGasPrice

func (gas *GasAPI) GetGasPrice() (uint64, error)

type TxPoolAPI

type TxPoolAPI CoreAPI

func (*TxPoolAPI) GetAccountMeta

func (api *TxPoolAPI) GetAccountMeta(account string, full bool) any

func (*TxPoolAPI) GetMeta

func (api *TxPoolAPI) GetMeta(full bool) any

func (*TxPoolAPI) GetPendingTxCountByAccount

func (api *TxPoolAPI) GetPendingTxCountByAccount(account string) uint64

func (*TxPoolAPI) GetTotalPendingTxCount

func (api *TxPoolAPI) GetTotalPendingTxCount() uint64

func (*TxPoolAPI) GetTransaction

func (api *TxPoolAPI) GetTransaction(hash *types.Hash) *types.Transaction

Directories

Path Synopsis
api
mock_api
Package mock_api is a generated GoMock package.
Package mock_api is a generated GoMock package.

Jump to

Keyboard shortcuts

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