Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CronosNamespace is the extension RPC namespace of cronos module. CronosNamespace = "cronos" ExceedBlockGasLimitError = "out of gas in location: block gas meter; gasWanted:" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CronosAPI ¶
type CronosAPI struct {
// contains filtered or unexported fields
}
CronosAPI is the extension jsonrpc apis prefixed with cronos_.
func NewCronosAPI ¶
func NewCronosAPI( logger log.Logger, clientCtx client.Context, backend backend.Backend, ) *CronosAPI
NewCronosAPI creates an instance of the cronos web3 extension apis.
func (*CronosAPI) GetTransactionReceiptsByBlock ¶ added in v0.7.0
func (api *CronosAPI) GetTransactionReceiptsByBlock(blockNrOrHash rpctypes.BlockNumberOrHash) ([]map[string]interface{}, error)
GetTransactionReceiptsByBlock returns all the transaction receipts included in the block.
func (*CronosAPI) ReplayBlock ¶
func (api *CronosAPI) ReplayBlock(blockNrOrHash rpctypes.BlockNumberOrHash, postUpgrade bool) ([]map[string]interface{}, error)
ReplayBlock return tx receipts by replay all the eth transactions, if postUpgrade is true, the tx that exceeded block gas limit is treated as reverted, otherwise as committed.
type EthMsgEventParsed ¶ added in v0.7.0
EthMsgEventParsed defines the attributes parsed from tx event.
func ParseEthTxEvents ¶ added in v0.7.0
func ParseEthTxEvents(events []abci.Event) ([]EthMsgEventParsed, error)
ParseEthTxEvents parse eth attributes and logs for all messages in cosmos events.
Click to show internal directories.
Click to hide internal directories.