Documentation
¶
Index ¶
- Constants
- Variables
- func ConvertEthLog(l *ethtypes.Log) *types.Log
- func ConvertSyntheticEthLog(l *ethtypes.Log) *types.Log
- func GetCoinbaseAddress() common.Address
- func GetLogsForTx(receipt *types.Receipt) []*ethtypes.Log
- func IsPayablePrecompile(addr *common.Address) bool
- func NewMsgServerImpl(keeper *Keeper) types.MsgServer
- type AddressNoncePair
- type EVMCallFunc
- type Keeper
- func (k *Keeper) AccountKeeper() *authkeeper.AccountKeeper
- func (k *Keeper) AddAnteSurplus(ctx sdk.Context, txHash common.Hash, surplus sdk.Int) error
- func (k *Keeper) AddPendingNonce(key tmtypes.TxKey, addr common.Address, nonce uint64, priority int64)
- func (k *Keeper) AdjustDynamicBaseFeePerGas(ctx sdk.Context, blockGasUsed uint64) *sdk.Dec
- func (k *Keeper) AppendToEvmTxDeferredInfo(ctx sdk.Context, bloom ethtypes.Bloom, txHash common.Hash, surplus sdk.Int)
- func (k *Keeper) BankKeeper() bankkeeper.Keeper
- func (k *Keeper) CalculateNextNonce(ctx sdk.Context, addr common.Address, includePending bool) uint64
- func (k *Keeper) CallEVM(ctx sdk.Context, from common.Address, to *common.Address, val *sdk.Int, ...) (retdata []byte, reterr error)
- func (k *Keeper) CanAddressReceive(ctx sdk.Context, addr sdk.AccAddress) bool
- func (k *Keeper) ChainID(ctx sdk.Context) *big.Int
- func (k *Keeper) ClearCachedFeeCollectorAddress()
- func (k *Keeper) DeleteAddressMapping(ctx sdk.Context, kiiAddress sdk.AccAddress, evmAddress common.Address)
- func (k *Keeper) DeleteCW20ERC20Pointer(ctx sdk.Context, erc20Address common.Address, version uint16)
- func (k *Keeper) DeleteCW721ERC721Pointer(ctx sdk.Context, erc721Address common.Address, version uint16)
- func (k *Keeper) DeleteERC20CW20Pointer(ctx sdk.Context, cw20Address string, version uint16)
- func (k *Keeper) DeleteERC20NativePointer(ctx sdk.Context, token string, version uint16)
- func (k *Keeper) DeleteERC721CW721Pointer(ctx sdk.Context, cw721Address string, version uint16)
- func (k *Keeper) DeleteTransientReceipt(ctx sdk.Context, txHash common.Hash)
- func (k *Keeper) FlushTransientReceipts(ctx sdk.Context) error
- func (k *Keeper) GetAllEVMTxDeferredInfo(ctx sdk.Context) (res []*types.DeferredInfo)
- func (k *Keeper) GetAnteSurplusSum(ctx sdk.Context) sdk.Int
- func (k *Keeper) GetBalance(ctx sdk.Context, addr sdk.AccAddress) *big.Int
- func (k *Keeper) GetBaseDenom(ctx sdk.Context) string
- func (k *Keeper) GetBaseFee(ctx sdk.Context) *big.Int
- func (k *Keeper) GetBaseFeePerGas(ctx sdk.Context) sdk.Dec
- func (k *Keeper) GetBlockBloom(ctx sdk.Context) (res ethtypes.Bloom)
- func (k *Keeper) GetCW20ERC20Pointer(ctx sdk.Context, erc20Address common.Address) (addr sdk.AccAddress, version uint16, exists bool)
- func (k *Keeper) GetCW20Pointee(ctx sdk.Context, erc20Address common.Address) (cw20Address string, version uint16, exists bool)
- func (k *Keeper) GetCW721ERC721Pointer(ctx sdk.Context, erc721Address common.Address) (addr sdk.AccAddress, version uint16, exists bool)
- func (k *Keeper) GetCW721Pointee(ctx sdk.Context, erc721Address common.Address) (cw721Address string, version uint16, exists bool)
- func (k *Keeper) GetCode(ctx sdk.Context, addr common.Address) []byte
- func (k *Keeper) GetCodeHash(ctx sdk.Context, addr common.Address) common.Hash
- func (k *Keeper) GetCodeSize(ctx sdk.Context, addr common.Address) int
- func (k *Keeper) GetCosmosGasLimitFromEVMGas(ctx sdk.Context, evmGas uint64) uint64
- func (k *Keeper) GetDeliverTxHookWasmGasLimit(ctx sdk.Context) uint64
- func (k *Keeper) GetDynamicBaseFeePerGas(ctx sdk.Context) sdk.Dec
- func (k *Keeper) GetERC20CW20Pointer(ctx sdk.Context, cw20Address string) (addr common.Address, version uint16, exists bool)
- func (k *Keeper) GetERC20NativePointer(ctx sdk.Context, token string) (addr common.Address, version uint16, exists bool)
- func (k *Keeper) GetERC20Pointee(ctx sdk.Context, cw20Address string) (erc20Address common.Address, version uint16, exists bool)
- func (k *Keeper) GetERC721CW721Pointer(ctx sdk.Context, cw721Address string) (addr common.Address, version uint16, exists bool)
- func (k *Keeper) GetERC721Pointee(ctx sdk.Context, cw721Address string) (erc721Address common.Address, version uint16, exists bool)
- func (k *Keeper) GetEVMAddress(ctx sdk.Context, kiiAddress sdk.AccAddress) (common.Address, bool)
- func (k *Keeper) GetEVMAddressOrDefault(ctx sdk.Context, kiiAddress sdk.AccAddress) common.Address
- func (k *Keeper) GetEVMGasLimitFromCtx(ctx sdk.Context) uint64
- func (k *Keeper) GetEVMMessage(ctx sdk.Context, tx *ethtypes.Transaction, sender common.Address) *core.Message
- func (k *Keeper) GetEVMTxDeferredInfo(ctx sdk.Context) (*types.DeferredInfo, bool)
- func (k *Keeper) GetFeeCollectorAddress(ctx sdk.Context) (common.Address, error)
- func (k *Keeper) GetGasPool() core.GasPool
- func (k *Keeper) GetHashFn(ctx sdk.Context) vm.GetHashFunc
- func (k *Keeper) GetKeysToNonces() map[tmtypes.TxKey]*AddressNoncePair
- func (k *Keeper) GetKiiAddress(ctx sdk.Context, evmAddress common.Address) (sdk.AccAddress, bool)
- func (k *Keeper) GetKiiAddressOrDefault(ctx sdk.Context, evmAddress common.Address) sdk.AccAddress
- func (k *Keeper) GetLegacyBlockBloom(ctx sdk.Context, height int64) (res ethtypes.Bloom)
- func (k *Keeper) GetLegacyBlockBloomCutoffHeight(ctx sdk.Context) int64
- func (k *Keeper) GetMaxDynamicBaseFeeDownwardAdjustment(ctx sdk.Context) sdk.Dec
- func (k *Keeper) GetMaxDynamicBaseFeeUpwardAdjustment(ctx sdk.Context) sdk.Dec
- func (k *Keeper) GetMinimumFeePerGas(ctx sdk.Context) sdk.Dec
- func (k *Keeper) GetNativePointee(ctx sdk.Context, erc20Address string) (token string, version uint16, exists bool)
- func (k *Keeper) GetNonce(ctx sdk.Context, addr common.Address) uint64
- func (k *Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k *Keeper) GetParamsIfExists(ctx sdk.Context) types.Params
- func (k *Keeper) GetPendingTxs() map[string][]*PendingTx
- func (k *Keeper) GetPointerInfo(ctx sdk.Context, pref []byte) (addr []byte, version uint16, exists bool)
- func (k *Keeper) GetPriorityNormalizer(ctx sdk.Context) sdk.Dec
- func (k *Keeper) GetReceipt(ctx sdk.Context, txHash common.Hash) (*types.Receipt, error)
- func (k *Keeper) GetReplayInitialHeight(ctx sdk.Context) int64
- func (k *Keeper) GetReplayedHeight(ctx sdk.Context) int64
- func (k *Keeper) GetState(ctx sdk.Context, addr common.Address, hash common.Hash) common.Hash
- func (k *Keeper) GetStoreKey() sdk.StoreKey
- func (k *Keeper) GetStoredPointerCodeID(ctx sdk.Context, pointerType types.PointerType) uint64
- func (k *Keeper) GetTargetGasUsedPerBlock(ctx sdk.Context) uint64
- func (k *Keeper) GetTransientReceipt(ctx sdk.Context, txHash common.Hash) (*types.Receipt, error)
- func (k *Keeper) GetTxHashesOnHeight(ctx sdk.Context, height int64) (res []common.Hash)
- func (k *Keeper) GetVMBlockContext(ctx sdk.Context, gp core.GasPool) (*vm.BlockContext, error)
- func (k *Keeper) HandleInternalEVMCall(ctx sdk.Context, req *types.MsgInternalEVMCall) (*sdk.Result, error)
- func (k *Keeper) HandleInternalEVMDelegateCall(ctx sdk.Context, req *types.MsgInternalEVMDelegateCall) (*sdk.Result, error)
- func (k *Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
- func (k *Keeper) IterateAll(ctx sdk.Context, pref []byte, cb func(key, val []byte) bool)
- func (k *Keeper) IterateAllCode(ctx sdk.Context, cb func(addr common.Address, code []byte) bool)
- func (k *Keeper) IterateAllNonces(ctx sdk.Context, cb func(addr common.Address, nonce uint64) bool)
- func (k *Keeper) IterateKiiAddressMapping(ctx sdk.Context, cb func(evmAddr common.Address, kiiAddr sdk.AccAddress) bool)
- func (k *Keeper) IterateState(ctx sdk.Context, ...)
- func (k *Keeper) MockReceipt(ctx sdk.Context, txHash common.Hash, receipt *types.Receipt) error
- func (k *Keeper) OpenEthDatabase() *ethtypes.Header
- func (k *Keeper) PrefixStore(ctx sdk.Context, pref []byte) sdk.KVStore
- func (k *Keeper) PrepareReplayedAddr(ctx sdk.Context, addr common.Address)
- func (k *Keeper) PurgePrefix(ctx sdk.Context, pref []byte)
- func (k *Keeper) QueryERCSingleOutput(ctx sdk.Context, typ string, addr common.Address, query string) (interface{}, error)
- func (k *Keeper) RemovePendingNonce(key tmtypes.TxKey)
- func (k *Keeper) RunWithOneOffEVMInstance(ctx sdk.Context, runner func(*vm.EVM) error, logger func(string, string)) error
- func (k *Keeper) SetAddressMapping(ctx sdk.Context, kiiAddress sdk.AccAddress, evmAddress common.Address)
- func (k *Keeper) SetBlockBloom(ctx sdk.Context, blooms []ethtypes.Bloom)
- func (k *Keeper) SetCW20ERC20Pointer(ctx sdk.Context, erc20Address common.Address, addr string) error
- func (k *Keeper) SetCW20ERC20PointerWithVersion(ctx sdk.Context, erc20Address common.Address, addr string, version uint16) error
- func (k *Keeper) SetCW721ERC721Pointer(ctx sdk.Context, erc721Address common.Address, addr string) error
- func (k *Keeper) SetCW721ERC721PointerWithVersion(ctx sdk.Context, erc721Address common.Address, addr string, version uint16) error
- func (k *Keeper) SetCode(ctx sdk.Context, addr common.Address, code []byte)
- func (k *Keeper) SetDynamicBaseFeePerGas(ctx sdk.Context, baseFeePerGas sdk.Dec)
- func (k *Keeper) SetERC20CW20Pointer(ctx sdk.Context, cw20Address string, addr common.Address) error
- func (k *Keeper) SetERC20CW20PointerWithVersion(ctx sdk.Context, cw20Address string, addr common.Address, version uint16) error
- func (k *Keeper) SetERC20NativePointer(ctx sdk.Context, token string, addr common.Address) error
- func (k *Keeper) SetERC20NativePointerWithVersion(ctx sdk.Context, token string, addr common.Address, version uint16) error
- func (k *Keeper) SetERC721CW721Pointer(ctx sdk.Context, cw721Address string, addr common.Address) error
- func (k *Keeper) SetERC721CW721PointerWithVersion(ctx sdk.Context, cw721Address string, addr common.Address, version uint16) error
- func (k *Keeper) SetLegacyBlockBloomCutoffHeight(ctx sdk.Context)
- func (k *Keeper) SetMsgs(msgs []*types.MsgEVMTransaction)
- func (k *Keeper) SetNonce(ctx sdk.Context, addr common.Address, nonce uint64)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k *Keeper) SetReplayInitialHeight(ctx sdk.Context, h int64)
- func (k *Keeper) SetReplayedHeight(ctx sdk.Context)
- func (k *Keeper) SetState(ctx sdk.Context, addr common.Address, key common.Hash, val common.Hash)
- func (k *Keeper) SetTransientReceipt(ctx sdk.Context, txHash common.Hash, receipt *types.Receipt) error
- func (k *Keeper) SetTxHashesOnHeight(ctx sdk.Context, height int64, hashes []common.Hash)
- func (k *Keeper) SetTxResults(txResults []*abci.ExecTxResult)
- func (k *Keeper) StaticCallEVM(ctx sdk.Context, from sdk.AccAddress, to *common.Address, data []byte) ([]byte, error)
- func (k *Keeper) UpsertERCCW20Pointer(ctx sdk.Context, evm *vm.EVM, cw20Addr string, metadata utils.ERCMetadata) (contractAddr common.Address, err error)
- func (k *Keeper) UpsertERCCW721Pointer(ctx sdk.Context, evm *vm.EVM, cw721Addr string, metadata utils.ERCMetadata) (contractAddr common.Address, err error)
- func (k *Keeper) UpsertERCNativePointer(ctx sdk.Context, evm *vm.EVM, token string, metadata utils.ERCMetadata) (contractAddr common.Address, err error)
- func (k *Keeper) UpsertERCPointer(ctx sdk.Context, evm *vm.EVM, typ string, args []interface{}, ...) (contractAddr common.Address, err error)
- func (k *Keeper) VerifyAccount(ctx sdk.Context, addr common.Address, accountData core.GenesisAccount)
- func (k *Keeper) VerifyBalance(ctx sdk.Context, addr common.Address)
- func (k *Keeper) VerifyState(ctx sdk.Context, addr common.Address)
- func (k *Keeper) VerifyTxResult(ctx sdk.Context, hash common.Hash)
- func (k *Keeper) WasmKeeper() *wasmkeeper.PermissionedKeeper
- func (k *Keeper) WriteReceipt(ctx sdk.Context, stateDB *state.DBImpl, msg *core.Message, txType uint32, ...) (*types.Receipt, error)
- type PendingTx
- type PointerGetter
- type PointerSetter
- type Querier
- func (q Querier) EVMAddressByKiiAddress(c context.Context, req *types.QueryEVMAddressByKiiAddressRequest) (*types.QueryEVMAddressByKiiAddressResponse, error)
- func (q Querier) KiiAddressByEVMAddress(c context.Context, req *types.QueryKiiAddressByEVMAddressRequest) (*types.QueryKiiAddressByEVMAddressResponse, error)
- func (q Querier) Pointee(c context.Context, req *types.QueryPointeeRequest) (*types.QueryPointeeResponse, error)
- func (q Querier) Pointer(c context.Context, req *types.QueryPointerRequest) (*types.QueryPointerResponse, error)
- func (q Querier) PointerVersion(c context.Context, req *types.QueryPointerVersionRequest) (*types.QueryPointerVersionResponse, error)
- func (q Querier) StaticCall(c context.Context, req *types.QueryStaticCallRequest) (*types.QueryStaticCallResponse, error)
- type ReplayChainContext
Constants ¶
const BaseDenom = "ukii"
const CoinbaseNonce = 42
const CoinbaseSeedAddress = "0000000000000000000000000000000000000001"
Variables ¶
var ErrorPointerToPointerNotAllowed = sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "cannot create a pointer to a pointer")
Functions ¶
func GetCoinbaseAddress ¶
func IsPayablePrecompile ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type AddressNoncePair ¶
type EVMCallFunc ¶
type Keeper ¶
type Keeper struct { Paramstore paramtypes.Subspace QueryConfig *querier.Config // only used during ETH replay. Not used in chain critical path. EthClient *ethclient.Client EthReplayConfig replay.Config // only used during blocktest. Not used in chain critical path. EthBlockTestConfig blocktest.Config BlockTest *tests.BlockTest // used for both ETH replay and block tests. Not used in chain critical path. Trie ethstate.Trie DB ethstate.Database Root common.Hash ReplayBlock *ethtypes.Block // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( storeKey sdk.StoreKey, transientStoreKey sdk.StoreKey, paramstore paramtypes.Subspace, receiptStateStore seidbtypes.StateStore, bankKeeper bankkeeper.Keeper, accountKeeper *authkeeper.AccountKeeper, stakingKeeper *stakingkeeper.Keeper, transferKeeper ibctransferkeeper.Keeper, wasmKeeper *wasmkeeper.PermissionedKeeper, wasmViewKeeper *wasmkeeper.Keeper) *Keeper
func (*Keeper) AccountKeeper ¶
func (k *Keeper) AccountKeeper() *authkeeper.AccountKeeper
func (*Keeper) AddAnteSurplus ¶
func (*Keeper) AddPendingNonce ¶
func (k *Keeper) AddPendingNonce(key tmtypes.TxKey, addr common.Address, nonce uint64, priority int64)
AddPendingNonce adds a pending nonce to the keeper
func (*Keeper) AdjustDynamicBaseFeePerGas ¶
modified eip-1559 adjustment using target gas used
func (*Keeper) AppendToEvmTxDeferredInfo ¶
func (*Keeper) BankKeeper ¶
func (k *Keeper) BankKeeper() bankkeeper.Keeper
func (*Keeper) CalculateNextNonce ¶
func (k *Keeper) CalculateNextNonce(ctx sdk.Context, addr common.Address, includePending bool) uint64
CalculateNextNonce calculates the next nonce for an address If includePending is true, it will consider pending nonces If includePending is false, it will only return the next nonce from GetNonce
func (*Keeper) CanAddressReceive ¶
A sdk.AccAddress may not receive funds from bank if it's the result of direct-casting from an EVM address AND the originating EVM address has already been associated with a true (i.e. derived from the same pubkey) sdk.AccAddress.
func (*Keeper) ClearCachedFeeCollectorAddress ¶ added in v1.4.0
func (k *Keeper) ClearCachedFeeCollectorAddress()
ClearCachedFeeCollectorAddress clear the fee collector address from memory This is used in tests
func (*Keeper) DeleteAddressMapping ¶
func (*Keeper) DeleteCW20ERC20Pointer ¶
func (k *Keeper) DeleteCW20ERC20Pointer(ctx sdk.Context, erc20Address common.Address, version uint16)
CW20 -> ERC20
func (*Keeper) DeleteCW721ERC721Pointer ¶
func (k *Keeper) DeleteCW721ERC721Pointer(ctx sdk.Context, erc721Address common.Address, version uint16)
CW721 -> ERC721
func (*Keeper) DeleteERC20CW20Pointer ¶
ERC20 -> CW20
func (*Keeper) DeleteERC20NativePointer ¶
ERC20 -> Native Token
func (*Keeper) DeleteERC721CW721Pointer ¶
ERC721 -> CW721
func (*Keeper) DeleteTransientReceipt ¶
func (*Keeper) FlushTransientReceipts ¶
func (*Keeper) GetAllEVMTxDeferredInfo ¶
func (k *Keeper) GetAllEVMTxDeferredInfo(ctx sdk.Context) (res []*types.DeferredInfo)
func (*Keeper) GetBalance ¶
func (*Keeper) GetCW20ERC20Pointer ¶
func (k *Keeper) GetCW20ERC20Pointer(ctx sdk.Context, erc20Address common.Address) (addr sdk.AccAddress, version uint16, exists bool)
CW20 -> ERC20
func (*Keeper) GetCW20Pointee ¶
func (*Keeper) GetCW721ERC721Pointer ¶
func (k *Keeper) GetCW721ERC721Pointer(ctx sdk.Context, erc721Address common.Address) (addr sdk.AccAddress, version uint16, exists bool)
CW721 -> ERC721
func (*Keeper) GetCW721Pointee ¶
func (*Keeper) GetCodeHash ¶
func (*Keeper) GetCosmosGasLimitFromEVMGas ¶
func (*Keeper) GetDeliverTxHookWasmGasLimit ¶
func (*Keeper) GetDynamicBaseFeePerGas ¶
dont have height be a prefix, just store the current base fee directly
func (*Keeper) GetERC20CW20Pointer ¶
func (k *Keeper) GetERC20CW20Pointer(ctx sdk.Context, cw20Address string) (addr common.Address, version uint16, exists bool)
ERC20 -> CW20
func (*Keeper) GetERC20NativePointer ¶
func (k *Keeper) GetERC20NativePointer(ctx sdk.Context, token string) (addr common.Address, version uint16, exists bool)
ERC20 -> Native Token
func (*Keeper) GetERC20Pointee ¶
func (*Keeper) GetERC721CW721Pointer ¶
func (k *Keeper) GetERC721CW721Pointer(ctx sdk.Context, cw721Address string) (addr common.Address, version uint16, exists bool)
ERC721 -> CW721
func (*Keeper) GetERC721Pointee ¶
func (*Keeper) GetEVMAddress ¶
func (*Keeper) GetEVMAddressOrDefault ¶
func (*Keeper) GetEVMGasLimitFromCtx ¶
* kii gas = evm gas * multiplier kii gas price = fee / kii gas = fee / (evm gas * multiplier) = evm gas / multiplier
func (*Keeper) GetEVMMessage ¶
func (*Keeper) GetEVMTxDeferredInfo ¶
func (*Keeper) GetFeeCollectorAddress ¶
func (*Keeper) GetGasPool ¶
func (*Keeper) GetHashFn ¶
func (k *Keeper) GetHashFn(ctx sdk.Context) vm.GetHashFunc
returns a function that provides block header hash based on block number
func (*Keeper) GetKeysToNonces ¶
func (k *Keeper) GetKeysToNonces() map[tmtypes.TxKey]*AddressNoncePair
Test use only
func (*Keeper) GetKiiAddress ¶
func (*Keeper) GetKiiAddressOrDefault ¶
func (*Keeper) GetLegacyBlockBloom ¶
func (*Keeper) GetLegacyBlockBloomCutoffHeight ¶
func (*Keeper) GetMaxDynamicBaseFeeDownwardAdjustment ¶
func (*Keeper) GetMaxDynamicBaseFeeUpwardAdjustment ¶
func (*Keeper) GetNativePointee ¶
func (*Keeper) GetPendingTxs ¶
Test use only
func (*Keeper) GetPointerInfo ¶
func (*Keeper) GetPriorityNormalizer ¶
func (*Keeper) GetReceipt ¶
GetReceipt returns a data structure that stores EVM specific transaction metadata. Many EVM applications (e.g. MetaMask) relies on being on able to query receipt by EVM transaction hash (not Kii transaction hash) to function properly.
func (*Keeper) GetReplayInitialHeight ¶
func (*Keeper) GetStoreKey ¶
func (*Keeper) GetStoredPointerCodeID ¶
func (*Keeper) GetTargetGasUsedPerBlock ¶
func (*Keeper) GetTransientReceipt ¶
func (*Keeper) GetTxHashesOnHeight ¶
func (*Keeper) GetVMBlockContext ¶
func (*Keeper) HandleInternalEVMCall ¶
func (*Keeper) HandleInternalEVMDelegateCall ¶
func (*Keeper) InitGenesis ¶
func (k *Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
func (*Keeper) IterateAll ¶
func (*Keeper) IterateAllCode ¶
func (*Keeper) IterateAllNonces ¶
func (*Keeper) IterateKiiAddressMapping ¶ added in v1.3.0
func (*Keeper) IterateState ¶
func (*Keeper) MockReceipt ¶
MockReceipt sets a data structure that stores EVM specific transaction metadata.
this is currently used by a number of tests to set receipts at the moment
func (*Keeper) OpenEthDatabase ¶
func (*Keeper) PrepareReplayedAddr ¶
Only used in ETH replay
func (*Keeper) QueryERCSingleOutput ¶
func (*Keeper) RemovePendingNonce ¶
RemovePendingNonce removes a pending nonce from the keeper but leaves a hole so that a future transaction must use this nonce.
func (*Keeper) RunWithOneOffEVMInstance ¶
func (*Keeper) SetAddressMapping ¶
func (*Keeper) SetBlockBloom ¶
func (*Keeper) SetCW20ERC20Pointer ¶
func (k *Keeper) SetCW20ERC20Pointer(ctx sdk.Context, erc20Address common.Address, addr string) error
CW20 -> ERC20
func (*Keeper) SetCW20ERC20PointerWithVersion ¶
func (k *Keeper) SetCW20ERC20PointerWithVersion(ctx sdk.Context, erc20Address common.Address, addr string, version uint16) error
CW20 -> ERC20
func (*Keeper) SetCW721ERC721Pointer ¶
func (k *Keeper) SetCW721ERC721Pointer(ctx sdk.Context, erc721Address common.Address, addr string) error
CW721 -> ERC721
func (*Keeper) SetCW721ERC721PointerWithVersion ¶
func (k *Keeper) SetCW721ERC721PointerWithVersion(ctx sdk.Context, erc721Address common.Address, addr string, version uint16) error
CW721 -> ERC721
func (*Keeper) SetDynamicBaseFeePerGas ¶
func (*Keeper) SetERC20CW20Pointer ¶
func (k *Keeper) SetERC20CW20Pointer(ctx sdk.Context, cw20Address string, addr common.Address) error
ERC20 -> CW20
func (*Keeper) SetERC20CW20PointerWithVersion ¶
func (k *Keeper) SetERC20CW20PointerWithVersion(ctx sdk.Context, cw20Address string, addr common.Address, version uint16) error
ERC20 -> CW20
func (*Keeper) SetERC20NativePointer ¶
ERC20 -> Native Token
func (*Keeper) SetERC20NativePointerWithVersion ¶
func (k *Keeper) SetERC20NativePointerWithVersion(ctx sdk.Context, token string, addr common.Address, version uint16) error
ERC20 -> Native Token
func (*Keeper) SetERC721CW721Pointer ¶
func (k *Keeper) SetERC721CW721Pointer(ctx sdk.Context, cw721Address string, addr common.Address) error
ERC721 -> CW721
func (*Keeper) SetERC721CW721PointerWithVersion ¶
func (k *Keeper) SetERC721CW721PointerWithVersion(ctx sdk.Context, cw721Address string, addr common.Address, version uint16) error
ERC721 -> CW721
func (*Keeper) SetLegacyBlockBloomCutoffHeight ¶
func (*Keeper) SetMsgs ¶
func (k *Keeper) SetMsgs(msgs []*types.MsgEVMTransaction)
func (*Keeper) SetReplayInitialHeight ¶
func (*Keeper) SetReplayedHeight ¶
func (*Keeper) SetTransientReceipt ¶
func (k *Keeper) SetTransientReceipt(ctx sdk.Context, txHash common.Hash, receipt *types.Receipt) error
SetTransientReceipt sets a data structure that stores EVM specific transaction metadata.
func (*Keeper) SetTxHashesOnHeight ¶
func (*Keeper) SetTxResults ¶
func (k *Keeper) SetTxResults(txResults []*abci.ExecTxResult)
func (*Keeper) StaticCallEVM ¶
func (*Keeper) UpsertERCCW20Pointer ¶
func (*Keeper) UpsertERCCW721Pointer ¶
func (*Keeper) UpsertERCNativePointer ¶
func (*Keeper) UpsertERCPointer ¶
func (*Keeper) VerifyAccount ¶
func (*Keeper) WasmKeeper ¶
func (k *Keeper) WasmKeeper() *wasmkeeper.PermissionedKeeper
type Querier ¶
type Querier struct {
*Keeper
}
Querier defines a wrapper around the x/mint keeper providing gRPC method handlers.
func NewQuerier ¶
func (Querier) EVMAddressByKiiAddress ¶ added in v1.3.0
func (q Querier) EVMAddressByKiiAddress(c context.Context, req *types.QueryEVMAddressByKiiAddressRequest) (*types.QueryEVMAddressByKiiAddressResponse, error)
func (Querier) KiiAddressByEVMAddress ¶ added in v1.3.0
func (q Querier) KiiAddressByEVMAddress(c context.Context, req *types.QueryKiiAddressByEVMAddressRequest) (*types.QueryKiiAddressByEVMAddressResponse, error)
func (Querier) Pointee ¶
func (q Querier) Pointee(c context.Context, req *types.QueryPointeeRequest) (*types.QueryPointeeResponse, error)
func (Querier) Pointer ¶
func (q Querier) Pointer(c context.Context, req *types.QueryPointerRequest) (*types.QueryPointerResponse, error)
func (Querier) PointerVersion ¶
func (q Querier) PointerVersion(c context.Context, req *types.QueryPointerVersionRequest) (*types.QueryPointerVersionResponse, error)
func (Querier) StaticCall ¶
func (q Querier) StaticCall(c context.Context, req *types.QueryStaticCallRequest) (*types.QueryStaticCallResponse, error)
type ReplayChainContext ¶
type ReplayChainContext struct {
// contains filtered or unexported fields
}
only used during ETH replay
func (*ReplayChainContext) Engine ¶
func (ctx *ReplayChainContext) Engine() consensus.Engine