Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendService ¶
type BackendService interface { FilterService GetTx(txHash common.Hash) (*types.Transaction, [65]byte, error) GetTxListByHeight(height uint32) (tx []*motypes.Transaction, sigs [][65]byte, err error) GetRpcMaxLogResults() int BlockByNumber(number int64) (*motypes.Block, error) BlockByHash(hash common.Hash) (*types.Block, error) LatestHeight() int64 QueryLogs(addresses []common.Address, topics [][]common.Hash, startHeight, endHeight uint32, filter types.FilterFunc) ([]types.Log, error) ChainId() *big.Int }
func NewBackend ¶
func NewBackend(vc *chains.VirtualChain) BackendService
type CallDetail ¶
type CallDetail struct { Status int GasUsed uint64 OutData []byte Logs []motypes.EvmLog CreatedContractAddress common.Address InternalTxCalls []motypes.InternalTxCall InternalTxReturns []motypes.InternalTxReturn RwLists *motypes.ReadWriteLists }
type FilterService ¶
type FilterService interface { SubscribeNewTxsEvent(chan<- core.NewTxsEvent) event.Subscription SubscribeChainEvent(ch chan<- motypes.ChainEvent) event.Subscription SubscribeRemovedLogsEvent(ch chan<- core.RemovedLogsEvent) event.Subscription SubscribeLogsEvent(ch chan<- []*gethtypes.Log) event.Subscription }
Click to show internal directories.
Click to hide internal directories.