Documentation ¶
Index ¶
- Constants
- Variables
- func DecodeAccount(bz []byte) (*app.EthAccount, error)
- func EncodeAccount(acc *app.EthAccount) ([]byte, error)
- func GetMsgAccountKey(addr []byte) []byte
- func GetMsgStateKey(addr common.Address, key []byte) []byte
- func GetWatchLruSize() int
- func IsRpcNode() bool
- func IsWatcherEnabled() bool
- func NewBlock(height uint64, blockBloom ethtypes.Bloom, header abci.Header, gasLimit uint64, ...) (types.Block, common.Hash)
- func NewEvmTx(msgEvmTx *types.MsgEthereumTx, txHash ethcmn.Hash, blockHash ethcmn.Hash, ...) *evmTx
- type Batch
- type CodeInfo
- type DelAccMsg
- type LazyValueMarshaler
- type MsgAccount
- type MsgBlock
- type MsgBlockInfo
- type MsgBlockStdTxHash
- type MsgCode
- type MsgCodeByHash
- type MsgContractBlockedListItem
- type MsgContractDeploymentWhitelistItem
- type MsgContractMethodBlockedListItem
- type MsgDelContractBlockedListItem
- type MsgDelContractDeploymentWhitelistItem
- type MsgEthTx
- type MsgLatestHeight
- type MsgParams
- type MsgState
- type MsgStdTransactionResponse
- type MsgTransactionReceipt
- type Querier
- func (q Querier) DeleteAccountFromRdb(addr sdk.AccAddress)
- func (q Querier) DeleteStateFromRdb(addr common.Address, key []byte)
- func (q *Querier) Enable(sw bool)
- func (q Querier) GetAccount(addr sdk.AccAddress) (*types.EthAccount, error)
- func (q Querier) GetAccountFromRdb(addr sdk.AccAddress) (*types.EthAccount, error)
- func (q Querier) GetBlockByHash(hash common.Hash, fullTx bool) (*evmtypes.Block, error)
- func (q Querier) GetBlockByNumber(number uint64, fullTx bool) (*evmtypes.Block, error)
- func (q Querier) GetBlockHashByNumber(number uint64) (common.Hash, error)
- func (q Querier) GetCode(contractAddr common.Address, height uint64) ([]byte, error)
- func (q Querier) GetCodeByHash(codeHash []byte) ([]byte, error)
- func (q Querier) GetContractMethodBlockedList(key []byte) ([]byte, error)
- func (q Querier) GetLatestBlockNumber() (uint64, error)
- func (q Querier) GetParams() (*evmtypes.Params, error)
- func (q Querier) GetState(key []byte) ([]byte, error)
- func (q Querier) GetStateFromRdb(key []byte) ([]byte, error)
- func (q Querier) GetStdTxHashByBlockHash(hash common.Hash) ([]common.Hash, error)
- func (q Querier) GetTransactionByBlockHashAndIndex(hash common.Hash, idx uint) (*Transaction, error)
- func (q Querier) GetTransactionByBlockNumberAndIndex(number uint64, idx uint) (*Transaction, error)
- func (q Querier) GetTransactionByHash(hash common.Hash) (*Transaction, error)
- func (q Querier) GetTransactionReceipt(hash common.Hash) (*TransactionReceipt, error)
- func (q Querier) GetTransactionResponse(hash common.Hash) (*TransactionResponse, error)
- func (q Querier) GetTransactionsByBlockNumber(number, offset, limit uint64) ([]*Transaction, error)
- func (q Querier) GetTxResultByBlock(clientCtx clientcontext.CLIContext, height, offset, limit uint64) ([]*TransactionResult, error)
- func (q Querier) HasContractBlockedList(key []byte) bool
- func (q Querier) HasContractDeploymentWhitelist(key []byte) bool
- func (q Querier) MustGetAccount(addr sdk.AccAddress) (*types.EthAccount, error)
- func (q Querier) MustGetState(addr common.Address, key []byte) ([]byte, error)
- type Transaction
- type TransactionReceipt
- type TransactionResponse
- type TransactionResult
- type TxWatcher
- func (w *TxWatcher) DeleteAccount(account interface{})
- func (w *TxWatcher) DeleteContractBlockedList(addr interface{})
- func (w *TxWatcher) DeleteContractDeploymentWhitelist(addr interface{})
- func (w *TxWatcher) Destruct() []WatchMessage
- func (w *TxWatcher) Enabled() bool
- func (w *TxWatcher) Finalize()
- func (w *TxWatcher) SaveAccount(account interface{})
- func (w *TxWatcher) SaveContractBlockedListItem(addr interface{})
- func (w *TxWatcher) SaveContractCode(addr common.Address, code []byte, height uint64)
- func (w *TxWatcher) SaveContractCodeByHash(hash []byte, code []byte)
- func (w *TxWatcher) SaveContractDeploymentWhitelistItem(addr interface{})
- func (w *TxWatcher) SaveContractMethodBlockedListItem(addr interface{}, methods []byte)
- func (w *TxWatcher) SaveState(addr common.Address, key, value []byte)
- type WatchData
- type WatchMessage
- type WatchStore
- func (w WatchStore) Delete(key []byte)
- func (w WatchStore) Get(key []byte) ([]byte, error)
- func (w WatchStore) GetEvmParams() evmtypes.Params
- func (w WatchStore) GetUnsafe(key []byte, processor dbm.UnsafeValueProcessor) (interface{}, error)
- func (w WatchStore) Has(key []byte) bool
- func (w WatchStore) Iterator(start, end []byte) dbm.Iterator
- func (w WatchStore) Set(key []byte, value []byte)
- func (w *WatchStore) SetEvmParams(params evmtypes.Params)
- type WatchTx
- type Watcher
- func (w *Watcher) ApplyWatchData(watchData interface{})
- func (w *Watcher) CheckWatchDB(keys [][]byte, mode string)
- func (w *Watcher) Collect(watchers ...sdk.IWatcher)
- func (w *Watcher) Commit()
- func (w *Watcher) CommitAccountToRpcDb(account auth.Account)
- func (w *Watcher) CommitCodeHashToDb(hash []byte, code []byte)
- func (w *Watcher) CommitReceiptToDb(txHash common.Hash, receipt *TransactionReceipt)
- func (w *Watcher) CommitStateToRpcDb(addr common.Address, key, value []byte)
- func (w *Watcher) CommitWatchData(data WatchData)
- func (w *Watcher) CreateWatchDataGenerator() func() ([]byte, error)
- func (w *Watcher) DelayEraseKey()
- func (w *Watcher) DeleteAccount(addr sdk.AccAddress)
- func (w *Watcher) Enable(enable bool)
- func (w *Watcher) Enabled() bool
- func (w *Watcher) ExecuteDelayEraseKey(delayEraseKey [][]byte)
- func (w *Watcher) GetBloomDataPoint() *[]*evmtypes.KV
- func (w *Watcher) GetEvmTxIndex() uint64
- func (w *Watcher) Height() uint64
- func (w *Watcher) IsFirstUse() bool
- func (w *Watcher) IsRealEvmTx(resp *tm.ResponseDeliverTx) bool
- func (w *Watcher) NewHeight(height uint64, blockHash common.Hash, header types.Header)
- func (w *Watcher) RecordTxAndFailedReceipt(tx tm.TxEssentials, resp *tm.ResponseDeliverTx, txDecoder sdk.TxDecoder)
- func (w *Watcher) SaveAccount(account auth.Account)
- func (w *Watcher) SaveBlock(block evmtypes.Block)
- func (w *Watcher) SaveBlockStdTxHash()
- func (w *Watcher) SaveContractBlockedListItem(addr sdk.AccAddress)
- func (w *Watcher) SaveContractDeploymentWhitelistItem(addr sdk.AccAddress)
- func (w *Watcher) SaveContractMethodBlockedListItem(addr sdk.AccAddress, methods []byte)
- func (w *Watcher) SaveLatestHeight(height uint64)
- func (w *Watcher) SaveParallelTx(realTx sdk.Tx, resultData *types.ResultData, resp tm.ResponseDeliverTx)
- func (w *Watcher) SaveParams(params evmtypes.Params)
- func (w *Watcher) SaveTransactionReceipt(status uint32, msg *evmtypes.MsgEthereumTx, txHash common.Hash, txIndex uint64, ...)
- func (w *Watcher) SetFirstUse(v bool)
- func (w *Watcher) SetWatchDataManager()
- func (w *Watcher) Stop()
- func (w *Watcher) UnmarshalWatchData(wdByte []byte) (interface{}, error)
- func (w *Watcher) UpdateCumulativeGas(txIndex, gasUsed uint64)
- func (w *Watcher) Used()
- type WrappedResponseWithCodec
Constants ¶
View Source
const ( FlagFastQuery = "fast-query" FlagFastQueryForWasm = "wasm-fast-query" FlagFastQueryLru = "fast-lru" FlagCheckWd = "check_watchdb" WatchDbDir = "data" WatchDBName = "watch" )
View Source
const ( TypeOthers = uint32(1) TypeState = uint32(2) TypeDelete = uint32(3) TypeEvmParams = uint32(4) EthReceipt = uint64(0) StdResponse = uint64(1) )
View Source
const MsgFunctionDisable = "fast query function has been disabled"
Variables ¶
View Source
var ( PrefixState = []byte{0x08} KeyLatestHeight = "LatestHeight" TransactionSuccess = uint32(1) TransactionFailed = uint32(0) )
View Source
var WatchCdc *codec.Codec
Functions ¶
func DecodeAccount ¶
func DecodeAccount(bz []byte) (*app.EthAccount, error)
func EncodeAccount ¶
func EncodeAccount(acc *app.EthAccount) ([]byte, error)
func GetMsgAccountKey ¶
func GetWatchLruSize ¶
func GetWatchLruSize() int
func IsWatcherEnabled ¶
func IsWatcherEnabled() bool
Types ¶
type Batch ¶
type Batch struct { Key []byte `json:"key"` Value []byte `json:"value"` TypeValue uint32 `json:"type_value"` }
func (*Batch) MarshalToAmino ¶
MarshalToAmino marshal batch data to amino bytes
func (*Batch) UnmarshalFromAmino ¶
UnmarshalFromAmino unmarshal amino bytes to this object
type DelAccMsg ¶
type DelAccMsg struct {
// contains filtered or unexported fields
}
func NewDelAccMsg ¶
type LazyValueMarshaler ¶
type LazyValueMarshaler interface {
GetValue() string
}
type MsgAccount ¶
type MsgAccount struct {
// contains filtered or unexported fields
}
func NewMsgAccount ¶
func NewMsgAccount(acc auth.Account) *MsgAccount
func (*MsgAccount) GetKey ¶
func (msgAccount *MsgAccount) GetKey() []byte
func (*MsgAccount) GetType ¶
func (msgAccount *MsgAccount) GetType() uint32
func (*MsgAccount) GetValue ¶
func (msgAccount *MsgAccount) GetValue() string
type MsgBlockInfo ¶
type MsgBlockInfo struct {
// contains filtered or unexported fields
}
func NewMsgBlockInfo ¶
func NewMsgBlockInfo(height uint64, blockHash common.Hash) *MsgBlockInfo
func (MsgBlockInfo) GetKey ¶
func (b MsgBlockInfo) GetKey() []byte
func (MsgBlockInfo) GetType ¶
func (b MsgBlockInfo) GetType() uint32
func (MsgBlockInfo) GetValue ¶
func (b MsgBlockInfo) GetValue() string
type MsgBlockStdTxHash ¶
type MsgBlockStdTxHash struct {
// contains filtered or unexported fields
}
func NewMsgBlockStdTxHash ¶
func NewMsgBlockStdTxHash(stdTxHash []common.Hash, blockHash common.Hash) *MsgBlockStdTxHash
func (*MsgBlockStdTxHash) GetKey ¶
func (m *MsgBlockStdTxHash) GetKey() []byte
func (*MsgBlockStdTxHash) GetType ¶
func (m *MsgBlockStdTxHash) GetType() uint32
func (*MsgBlockStdTxHash) GetValue ¶
func (m *MsgBlockStdTxHash) GetValue() string
type MsgCodeByHash ¶
func NewMsgCodeByHash ¶
func NewMsgCodeByHash(hash []byte, code []byte) *MsgCodeByHash
func (MsgCodeByHash) GetKey ¶
func (m MsgCodeByHash) GetKey() []byte
func (MsgCodeByHash) GetType ¶
func (m MsgCodeByHash) GetType() uint32
func (MsgCodeByHash) GetValue ¶
func (m MsgCodeByHash) GetValue() string
type MsgContractBlockedListItem ¶
type MsgContractBlockedListItem struct {
// contains filtered or unexported fields
}
func NewMsgContractBlockedListItem ¶
func NewMsgContractBlockedListItem(addr sdk.AccAddress) *MsgContractBlockedListItem
func (*MsgContractBlockedListItem) GetKey ¶
func (msgItem *MsgContractBlockedListItem) GetKey() []byte
func (*MsgContractBlockedListItem) GetType ¶
func (msgItem *MsgContractBlockedListItem) GetType() uint32
func (*MsgContractBlockedListItem) GetValue ¶
func (msgItem *MsgContractBlockedListItem) GetValue() string
type MsgContractDeploymentWhitelistItem ¶
type MsgContractDeploymentWhitelistItem struct {
// contains filtered or unexported fields
}
func NewMsgContractDeploymentWhitelistItem ¶
func NewMsgContractDeploymentWhitelistItem(addr sdk.AccAddress) *MsgContractDeploymentWhitelistItem
func (*MsgContractDeploymentWhitelistItem) GetKey ¶
func (msgItem *MsgContractDeploymentWhitelistItem) GetKey() []byte
func (*MsgContractDeploymentWhitelistItem) GetType ¶
func (msgItem *MsgContractDeploymentWhitelistItem) GetType() uint32
func (*MsgContractDeploymentWhitelistItem) GetValue ¶
func (msgItem *MsgContractDeploymentWhitelistItem) GetValue() string
type MsgContractMethodBlockedListItem ¶
type MsgContractMethodBlockedListItem struct {
// contains filtered or unexported fields
}
func NewMsgContractMethodBlockedListItem ¶
func NewMsgContractMethodBlockedListItem(addr sdk.AccAddress, methods []byte) *MsgContractMethodBlockedListItem
func (*MsgContractMethodBlockedListItem) GetKey ¶
func (msgItem *MsgContractMethodBlockedListItem) GetKey() []byte
func (*MsgContractMethodBlockedListItem) GetType ¶
func (msgItem *MsgContractMethodBlockedListItem) GetType() uint32
func (*MsgContractMethodBlockedListItem) GetValue ¶
func (msgItem *MsgContractMethodBlockedListItem) GetValue() string
type MsgDelContractBlockedListItem ¶
type MsgDelContractBlockedListItem struct {
// contains filtered or unexported fields
}
func NewMsgDelContractBlockedListItem ¶
func NewMsgDelContractBlockedListItem(addr sdk.AccAddress) *MsgDelContractBlockedListItem
func (*MsgDelContractBlockedListItem) GetKey ¶
func (msgItem *MsgDelContractBlockedListItem) GetKey() []byte
func (*MsgDelContractBlockedListItem) GetType ¶
func (msgItem *MsgDelContractBlockedListItem) GetType() uint32
func (*MsgDelContractBlockedListItem) GetValue ¶
func (msgItem *MsgDelContractBlockedListItem) GetValue() string
type MsgDelContractDeploymentWhitelistItem ¶
type MsgDelContractDeploymentWhitelistItem struct {
// contains filtered or unexported fields
}
func NewMsgDelContractDeploymentWhitelistItem ¶
func NewMsgDelContractDeploymentWhitelistItem(addr sdk.AccAddress) *MsgDelContractDeploymentWhitelistItem
func (*MsgDelContractDeploymentWhitelistItem) GetKey ¶
func (msgItem *MsgDelContractDeploymentWhitelistItem) GetKey() []byte
func (*MsgDelContractDeploymentWhitelistItem) GetType ¶
func (msgItem *MsgDelContractDeploymentWhitelistItem) GetType() uint32
func (*MsgDelContractDeploymentWhitelistItem) GetValue ¶
func (msgItem *MsgDelContractDeploymentWhitelistItem) GetValue() string
type MsgEthTx ¶
type MsgEthTx struct { *Transaction Key []byte }
type MsgLatestHeight ¶
type MsgLatestHeight struct {
// contains filtered or unexported fields
}
func NewMsgLatestHeight ¶
func NewMsgLatestHeight(height uint64) *MsgLatestHeight
func (MsgLatestHeight) GetKey ¶
func (b MsgLatestHeight) GetKey() []byte
func (MsgLatestHeight) GetType ¶
func (b MsgLatestHeight) GetType() uint32
func (MsgLatestHeight) GetValue ¶
func (b MsgLatestHeight) GetValue() string
type MsgParams ¶
func NewMsgParams ¶
type MsgStdTransactionResponse ¶
type MsgStdTransactionResponse struct {
// contains filtered or unexported fields
}
func (*MsgStdTransactionResponse) GetKey ¶
func (tr *MsgStdTransactionResponse) GetKey() []byte
func (*MsgStdTransactionResponse) GetType ¶
func (tr *MsgStdTransactionResponse) GetType() uint32
func (*MsgStdTransactionResponse) GetValue ¶
func (tr *MsgStdTransactionResponse) GetValue() string
type MsgTransactionReceipt ¶
type MsgTransactionReceipt struct { *TransactionReceipt // contains filtered or unexported fields }
func NewMsgTransactionReceipt ¶
func NewMsgTransactionReceipt(tr *TransactionReceipt, txHash common.Hash) *MsgTransactionReceipt
func (MsgTransactionReceipt) GetKey ¶
func (m MsgTransactionReceipt) GetKey() []byte
func (MsgTransactionReceipt) GetType ¶
func (m MsgTransactionReceipt) GetType() uint32
type Querier ¶
type Querier struct {
// contains filtered or unexported fields
}
func NewQuerier ¶
func NewQuerier() *Querier
func (Querier) DeleteAccountFromRdb ¶
func (q Querier) DeleteAccountFromRdb(addr sdk.AccAddress)
func (Querier) DeleteStateFromRdb ¶
func (Querier) GetAccount ¶
func (q Querier) GetAccount(addr sdk.AccAddress) (*types.EthAccount, error)
func (Querier) GetAccountFromRdb ¶
func (q Querier) GetAccountFromRdb(addr sdk.AccAddress) (*types.EthAccount, error)
func (Querier) GetBlockByHash ¶
func (Querier) GetBlockByNumber ¶
func (Querier) GetBlockHashByNumber ¶
func (Querier) GetContractMethodBlockedList ¶
func (Querier) GetLatestBlockNumber ¶
func (Querier) GetStdTxHashByBlockHash ¶
func (Querier) GetTransactionByBlockHashAndIndex ¶
func (Querier) GetTransactionByBlockNumberAndIndex ¶
func (q Querier) GetTransactionByBlockNumberAndIndex(number uint64, idx uint) (*Transaction, error)
func (Querier) GetTransactionByHash ¶
func (q Querier) GetTransactionByHash(hash common.Hash) (*Transaction, error)
func (Querier) GetTransactionReceipt ¶
func (q Querier) GetTransactionReceipt(hash common.Hash) (*TransactionReceipt, error)
func (Querier) GetTransactionResponse ¶
func (q Querier) GetTransactionResponse(hash common.Hash) (*TransactionResponse, error)
func (Querier) GetTransactionsByBlockNumber ¶
func (q Querier) GetTransactionsByBlockNumber(number, offset, limit uint64) ([]*Transaction, error)
func (Querier) GetTxResultByBlock ¶
func (q Querier) GetTxResultByBlock(clientCtx clientcontext.CLIContext, height, offset, limit uint64) ([]*TransactionResult, error)
func (Querier) HasContractBlockedList ¶
func (Querier) HasContractDeploymentWhitelist ¶
func (Querier) MustGetAccount ¶
func (q Querier) MustGetAccount(addr sdk.AccAddress) (*types.EthAccount, error)
type Transaction ¶
type Transaction struct { BlockHash *common.Hash `json:"blockHash"` BlockNumber *hexutil.Big `json:"blockNumber"` From common.Address `json:"from"` Gas hexutil.Uint64 `json:"gas"` GasPrice *hexutil.Big `json:"gasPrice"` Hash common.Hash `json:"hash"` Input hexutil.Bytes `json:"input"` Nonce hexutil.Uint64 `json:"nonce"` To *common.Address `json:"to"` TransactionIndex *hexutil.Uint64 `json:"transactionIndex"` Value *hexutil.Big `json:"value"` V *hexutil.Big `json:"v"` R *hexutil.Big `json:"r"` S *hexutil.Big `json:"s"` // contains filtered or unexported fields }
Transaction represents a transaction returned to RPC clients.
func NewTransaction ¶
func NewTransaction(tx *evmtypes.MsgEthereumTx, txHash, blockHash common.Hash, blockNumber, index uint64) (*Transaction, error)
NewTransaction returns a transaction that will serialize to the RPC representation, with the given location metadata set (if available).
func (*Transaction) GetValue ¶
func (tr *Transaction) GetValue() string
type TransactionReceipt ¶
type TransactionReceipt struct { Status hexutil.Uint64 `json:"status"` CumulativeGasUsed hexutil.Uint64 `json:"cumulativeGasUsed"` LogsBloom ethtypes.Bloom `json:"logsBloom"` Logs []*ethtypes.Log `json:"logs"` TransactionHash string `json:"transactionHash"` ContractAddress *common.Address `json:"contractAddress"` GasUsed hexutil.Uint64 `json:"gasUsed"` BlockHash string `json:"blockHash"` BlockNumber hexutil.Uint64 `json:"blockNumber"` TransactionIndex hexutil.Uint64 `json:"transactionIndex"` From string `json:"from"` To *common.Address `json:"to"` // contains filtered or unexported fields }
func NewTransactionReceiptResponse ¶
func NewTransactionReceiptResponse(status uint32, tx *types.MsgEthereumTx, txHash, blockHash common.Hash, txIndex, height uint64, data *types.ResultData, cumulativeGas, gasUsed uint64) *TransactionReceipt
func (*TransactionReceipt) GetBlockHash ¶
func (tr *TransactionReceipt) GetBlockHash() string
func (*TransactionReceipt) GetFrom ¶
func (tr *TransactionReceipt) GetFrom() string
func (*TransactionReceipt) GetHash ¶
func (tr *TransactionReceipt) GetHash() string
func (*TransactionReceipt) GetTo ¶
func (tr *TransactionReceipt) GetTo() *common.Address
func (*TransactionReceipt) GetValue ¶
func (tr *TransactionReceipt) GetValue() string
type TransactionResult ¶
type TransactionResult struct { TxType hexutil.Uint64 `json:"type"` EthTx *Transaction `json:"ethTx"` EthTxLog string `json:"ethTxLog"` Receipt *TransactionReceipt `json:"receipt"` Response *WrappedResponseWithCodec `json:"response"` }
func RawTxResultToStdResponse ¶
func RawTxResultToStdResponse(clientCtx clientcontext.CLIContext, tr *ctypes.ResultTx, tx sdk.Tx, timestamp time.Time) (*TransactionResult, error)
type TxWatcher ¶
type TxWatcher struct {
// contains filtered or unexported fields
}
TxWatcher cache watch data when run tx Use Enabled() to check if watcher is enable when call methods of TxWatcher
func NewTxWatcher ¶
func NewTxWatcher() *TxWatcher
func (*TxWatcher) DeleteAccount ¶
func (w *TxWatcher) DeleteAccount(account interface{})
func (*TxWatcher) DeleteContractBlockedList ¶
func (w *TxWatcher) DeleteContractBlockedList(addr interface{})
func (*TxWatcher) DeleteContractDeploymentWhitelist ¶
func (w *TxWatcher) DeleteContractDeploymentWhitelist(addr interface{})
func (*TxWatcher) Destruct ¶
func (w *TxWatcher) Destruct() []WatchMessage
func (*TxWatcher) SaveAccount ¶
func (w *TxWatcher) SaveAccount(account interface{})
func (*TxWatcher) SaveContractBlockedListItem ¶
func (w *TxWatcher) SaveContractBlockedListItem(addr interface{})
func (*TxWatcher) SaveContractCode ¶
func (*TxWatcher) SaveContractCodeByHash ¶
func (*TxWatcher) SaveContractDeploymentWhitelistItem ¶
func (w *TxWatcher) SaveContractDeploymentWhitelistItem(addr interface{})
func (*TxWatcher) SaveContractMethodBlockedListItem ¶
type WatchData ¶
type WatchData struct { DirtyAccount []*sdk.AccAddress `json:"dirty_account"` Batches []*Batch `json:"batches"` DelayEraseKey [][]byte `json:"delay_erase_key"` BloomData []*types.KV `json:"bloom_data"` DirtyList [][]byte `json:"dirty_list"` }
func (*WatchData) MarshalToAmino ¶
MarshalToAmino marshal to amino bytes
func (*WatchData) UnmarshalFromAmino ¶
UnmarshalFromAmino unmarshal from amino bytes
type WatchMessage ¶
type WatchMessage = sdk.WatchMessage
type WatchStore ¶
type WatchStore struct {
// contains filtered or unexported fields
}
func InstanceOfWatchStore ¶
func InstanceOfWatchStore() *WatchStore
func (WatchStore) Delete ¶
func (w WatchStore) Delete(key []byte)
func (WatchStore) GetEvmParams ¶
func (w WatchStore) GetEvmParams() evmtypes.Params
func (WatchStore) GetUnsafe ¶
func (w WatchStore) GetUnsafe(key []byte, processor dbm.UnsafeValueProcessor) (interface{}, error)
func (WatchStore) Has ¶
func (w WatchStore) Has(key []byte) bool
func (WatchStore) Set ¶
func (w WatchStore) Set(key []byte, value []byte)
func (*WatchStore) SetEvmParams ¶
func (w *WatchStore) SetEvmParams(params evmtypes.Params)
type WatchTx ¶
type WatchTx interface { GetTxWatchMessage() WatchMessage GetTransaction() *Transaction GetTxHash() common.Hash GetFailedReceipts(cumulativeGas, gasUsed uint64) *TransactionReceipt GetIndex() uint64 }
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
func NewWatcher ¶
func (*Watcher) ApplyWatchData ¶
func (w *Watcher) ApplyWatchData(watchData interface{})
func (*Watcher) CheckWatchDB ¶
func (*Watcher) CommitAccountToRpcDb ¶
func (*Watcher) CommitCodeHashToDb ¶
func (*Watcher) CommitReceiptToDb ¶
func (w *Watcher) CommitReceiptToDb(txHash common.Hash, receipt *TransactionReceipt)
func (*Watcher) CommitStateToRpcDb ¶
func (*Watcher) CommitWatchData ¶
func (*Watcher) CreateWatchDataGenerator ¶
func (*Watcher) DelayEraseKey ¶
func (w *Watcher) DelayEraseKey()
func (*Watcher) DeleteAccount ¶
func (w *Watcher) DeleteAccount(addr sdk.AccAddress)
func (*Watcher) ExecuteDelayEraseKey ¶
func (*Watcher) GetBloomDataPoint ¶
func (*Watcher) GetEvmTxIndex ¶
func (*Watcher) IsFirstUse ¶
func (*Watcher) IsRealEvmTx ¶
func (w *Watcher) IsRealEvmTx(resp *tm.ResponseDeliverTx) bool
func (*Watcher) RecordTxAndFailedReceipt ¶
func (w *Watcher) RecordTxAndFailedReceipt(tx tm.TxEssentials, resp *tm.ResponseDeliverTx, txDecoder sdk.TxDecoder)
func (*Watcher) SaveAccount ¶
func (*Watcher) SaveBlockStdTxHash ¶
func (w *Watcher) SaveBlockStdTxHash()
func (*Watcher) SaveContractBlockedListItem ¶
func (w *Watcher) SaveContractBlockedListItem(addr sdk.AccAddress)
func (*Watcher) SaveContractDeploymentWhitelistItem ¶
func (w *Watcher) SaveContractDeploymentWhitelistItem(addr sdk.AccAddress)
func (*Watcher) SaveContractMethodBlockedListItem ¶
func (w *Watcher) SaveContractMethodBlockedListItem(addr sdk.AccAddress, methods []byte)
func (*Watcher) SaveLatestHeight ¶
func (*Watcher) SaveParallelTx ¶
func (w *Watcher) SaveParallelTx(realTx sdk.Tx, resultData *types.ResultData, resp tm.ResponseDeliverTx)
SaveParallelTx saves parallel transactions and transactionReceipts to watcher
func (*Watcher) SaveParams ¶
func (*Watcher) SaveTransactionReceipt ¶
func (w *Watcher) SaveTransactionReceipt(status uint32, msg *evmtypes.MsgEthereumTx, txHash common.Hash, txIndex uint64, data *evmtypes.ResultData, gasUsed uint64)
func (*Watcher) SetFirstUse ¶
SetFirstUse sets fistUse of Watcher only could use for ut
func (*Watcher) SetWatchDataManager ¶
func (w *Watcher) SetWatchDataManager()
func (*Watcher) UnmarshalWatchData ¶
func (*Watcher) UpdateCumulativeGas ¶
type WrappedResponseWithCodec ¶
type WrappedResponseWithCodec struct { Response sdk.TxResponse Codec *codec.Codec `json:"-"` }
type WrappedResponseWithCodec
func (*WrappedResponseWithCodec) MarshalJSON ¶
func (wr *WrappedResponseWithCodec) MarshalJSON() ([]byte, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.