keeper

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: Apache-2.0 Imports: 69 Imported by: 0

Documentation

Index

Constants

View Source
const BaseDenom = "ukii"
View Source
const CoinbaseNonce = 42
View Source
const CoinbaseSeedAddress = "0000000000000000000000000000000000000001"

Variables

View Source
var ErrorPointerToPointerNotAllowed = sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "cannot create a pointer to a pointer")
View Source
var MaxUint64BigInt = new(big.Int).SetUint64(math.MaxUint64)

Functions

func ConvertEthLog

func ConvertEthLog(l *ethtypes.Log) *types.Log

func ConvertSyntheticEthLog

func ConvertSyntheticEthLog(l *ethtypes.Log) *types.Log

func GetCoinbaseAddress

func GetCoinbaseAddress() common.Address

func GetLogsForTx

func GetLogsForTx(receipt *types.Receipt) []*ethtypes.Log

func IsPayablePrecompile

func IsPayablePrecompile(addr *common.Address) bool

func NewMsgServerImpl

func NewMsgServerImpl(keeper *Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

Types

type AddressNoncePair

type AddressNoncePair struct {
	Address common.Address
	Nonce   uint64
}

type EVMCallFunc

type EVMCallFunc func(caller vm.ContractRef, addr *common.Address, input []byte, gas uint64, value *big.Int) (ret []byte, leftOverGas uint64, err error)

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 (k *Keeper) AddAnteSurplus(ctx sdk.Context, txHash common.Hash, surplus sdk.Int) error

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

func (k *Keeper) AdjustDynamicBaseFeePerGas(ctx sdk.Context, blockGasUsed uint64) *sdk.Dec

modified eip-1559 adjustment using target gas used

func (*Keeper) AppendToEvmTxDeferredInfo

func (k *Keeper) AppendToEvmTxDeferredInfo(ctx sdk.Context, bloom ethtypes.Bloom, txHash common.Hash, surplus sdk.Int)

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

func (k *Keeper) CallEVM(ctx sdk.Context, from common.Address, to *common.Address, val *sdk.Int, data []byte) (retdata []byte, reterr error)

func (*Keeper) CanAddressReceive

func (k *Keeper) CanAddressReceive(ctx sdk.Context, addr sdk.AccAddress) bool

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

func (k *Keeper) ChainID(ctx sdk.Context) *big.Int

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 (k *Keeper) DeleteAddressMapping(ctx sdk.Context, kiiAddress sdk.AccAddress, evmAddress common.Address)

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

func (k *Keeper) DeleteERC20CW20Pointer(ctx sdk.Context, cw20Address string, version uint16)

ERC20 -> CW20

func (*Keeper) DeleteERC20NativePointer

func (k *Keeper) DeleteERC20NativePointer(ctx sdk.Context, token string, version uint16)

ERC20 -> Native Token

func (*Keeper) DeleteERC721CW721Pointer

func (k *Keeper) DeleteERC721CW721Pointer(ctx sdk.Context, cw721Address string, version uint16)

ERC721 -> CW721

func (*Keeper) DeleteTransientReceipt

func (k *Keeper) DeleteTransientReceipt(ctx sdk.Context, txHash common.Hash)

func (*Keeper) FlushTransientReceipts

func (k *Keeper) FlushTransientReceipts(ctx sdk.Context) error

func (*Keeper) GetAllEVMTxDeferredInfo

func (k *Keeper) GetAllEVMTxDeferredInfo(ctx sdk.Context) (res []*types.DeferredInfo)

func (*Keeper) GetAnteSurplusSum

func (k *Keeper) GetAnteSurplusSum(ctx sdk.Context) sdk.Int

func (*Keeper) GetBalance

func (k *Keeper) GetBalance(ctx sdk.Context, addr sdk.AccAddress) *big.Int

func (*Keeper) GetBaseDenom

func (k *Keeper) GetBaseDenom(ctx sdk.Context) string

func (*Keeper) GetBaseFee

func (k *Keeper) GetBaseFee(ctx sdk.Context) *big.Int

func (*Keeper) GetBaseFeePerGas

func (k *Keeper) GetBaseFeePerGas(ctx sdk.Context) sdk.Dec

func (*Keeper) GetBlockBloom

func (k *Keeper) GetBlockBloom(ctx sdk.Context) (res ethtypes.Bloom)

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 (k *Keeper) GetCW20Pointee(ctx sdk.Context, erc20Address common.Address) (cw20Address string, version uint16, exists bool)

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 (k *Keeper) GetCW721Pointee(ctx sdk.Context, erc721Address common.Address) (cw721Address string, version uint16, exists bool)

func (*Keeper) GetCode

func (k *Keeper) GetCode(ctx sdk.Context, addr common.Address) []byte

func (*Keeper) GetCodeHash

func (k *Keeper) GetCodeHash(ctx sdk.Context, addr common.Address) common.Hash

func (*Keeper) GetCodeSize

func (k *Keeper) GetCodeSize(ctx sdk.Context, addr common.Address) int

func (*Keeper) GetCosmosGasLimitFromEVMGas

func (k *Keeper) GetCosmosGasLimitFromEVMGas(ctx sdk.Context, evmGas uint64) uint64

func (*Keeper) GetDeliverTxHookWasmGasLimit

func (k *Keeper) GetDeliverTxHookWasmGasLimit(ctx sdk.Context) uint64

func (*Keeper) GetDynamicBaseFeePerGas

func (k *Keeper) GetDynamicBaseFeePerGas(ctx sdk.Context) sdk.Dec

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 (k *Keeper) GetERC20Pointee(ctx sdk.Context, cw20Address string) (erc20Address common.Address, version uint16, exists bool)

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 (k *Keeper) GetERC721Pointee(ctx sdk.Context, cw721Address string) (erc721Address common.Address, version uint16, exists bool)

func (*Keeper) GetEVMAddress

func (k *Keeper) GetEVMAddress(ctx sdk.Context, kiiAddress sdk.AccAddress) (common.Address, bool)

func (*Keeper) GetEVMAddressOrDefault

func (k *Keeper) GetEVMAddressOrDefault(ctx sdk.Context, kiiAddress sdk.AccAddress) common.Address

func (*Keeper) GetEVMGasLimitFromCtx

func (k *Keeper) GetEVMGasLimitFromCtx(ctx sdk.Context) uint64

* kii gas = evm gas * multiplier kii gas price = fee / kii gas = fee / (evm gas * multiplier) = evm gas / multiplier

func (*Keeper) GetEVMMessage

func (k *Keeper) GetEVMMessage(ctx sdk.Context, tx *ethtypes.Transaction, sender common.Address) *core.Message

func (*Keeper) GetEVMTxDeferredInfo

func (k *Keeper) GetEVMTxDeferredInfo(ctx sdk.Context) (*types.DeferredInfo, bool)

func (*Keeper) GetFeeCollectorAddress

func (k *Keeper) GetFeeCollectorAddress(ctx sdk.Context) (common.Address, error)

func (*Keeper) GetGasPool

func (k *Keeper) GetGasPool() core.GasPool

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 (k *Keeper) GetKiiAddress(ctx sdk.Context, evmAddress common.Address) (sdk.AccAddress, bool)

func (*Keeper) GetKiiAddressOrDefault

func (k *Keeper) GetKiiAddressOrDefault(ctx sdk.Context, evmAddress common.Address) sdk.AccAddress

func (*Keeper) GetLegacyBlockBloom

func (k *Keeper) GetLegacyBlockBloom(ctx sdk.Context, height int64) (res ethtypes.Bloom)

func (*Keeper) GetLegacyBlockBloomCutoffHeight

func (k *Keeper) GetLegacyBlockBloomCutoffHeight(ctx sdk.Context) int64

func (*Keeper) GetMaxDynamicBaseFeeDownwardAdjustment

func (k *Keeper) GetMaxDynamicBaseFeeDownwardAdjustment(ctx sdk.Context) sdk.Dec

func (*Keeper) GetMaxDynamicBaseFeeUpwardAdjustment

func (k *Keeper) GetMaxDynamicBaseFeeUpwardAdjustment(ctx sdk.Context) sdk.Dec

func (*Keeper) GetMinimumFeePerGas

func (k *Keeper) GetMinimumFeePerGas(ctx sdk.Context) sdk.Dec

func (*Keeper) GetNativePointee

func (k *Keeper) GetNativePointee(ctx sdk.Context, erc20Address string) (token string, version uint16, exists bool)

func (*Keeper) GetNonce

func (k *Keeper) GetNonce(ctx sdk.Context, addr common.Address) uint64

func (*Keeper) GetParams

func (k *Keeper) GetParams(ctx sdk.Context) (params types.Params)

func (*Keeper) GetParamsIfExists

func (k *Keeper) GetParamsIfExists(ctx sdk.Context) types.Params

func (*Keeper) GetPendingTxs

func (k *Keeper) GetPendingTxs() map[string][]*PendingTx

Test use only

func (*Keeper) GetPointerInfo

func (k *Keeper) GetPointerInfo(ctx sdk.Context, pref []byte) (addr []byte, version uint16, exists bool)

func (*Keeper) GetPriorityNormalizer

func (k *Keeper) GetPriorityNormalizer(ctx sdk.Context) sdk.Dec

func (*Keeper) GetReceipt

func (k *Keeper) GetReceipt(ctx sdk.Context, txHash common.Hash) (*types.Receipt, error)

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 (k *Keeper) GetReplayInitialHeight(ctx sdk.Context) int64

func (*Keeper) GetReplayedHeight

func (k *Keeper) GetReplayedHeight(ctx sdk.Context) int64

func (*Keeper) GetState

func (k *Keeper) GetState(ctx sdk.Context, addr common.Address, hash common.Hash) common.Hash

func (*Keeper) GetStoreKey

func (k *Keeper) GetStoreKey() sdk.StoreKey

func (*Keeper) GetStoredPointerCodeID

func (k *Keeper) GetStoredPointerCodeID(ctx sdk.Context, pointerType types.PointerType) uint64

func (*Keeper) GetTargetGasUsedPerBlock

func (k *Keeper) GetTargetGasUsedPerBlock(ctx sdk.Context) uint64

func (*Keeper) GetTransientReceipt

func (k *Keeper) GetTransientReceipt(ctx sdk.Context, txHash common.Hash) (*types.Receipt, error)

func (*Keeper) GetTxHashesOnHeight

func (k *Keeper) GetTxHashesOnHeight(ctx sdk.Context, height int64) (res []common.Hash)

func (*Keeper) GetVMBlockContext

func (k *Keeper) GetVMBlockContext(ctx sdk.Context, gp core.GasPool) (*vm.BlockContext, error)

func (*Keeper) HandleInternalEVMCall

func (k *Keeper) HandleInternalEVMCall(ctx sdk.Context, req *types.MsgInternalEVMCall) (*sdk.Result, error)

func (*Keeper) HandleInternalEVMDelegateCall

func (k *Keeper) HandleInternalEVMDelegateCall(ctx sdk.Context, req *types.MsgInternalEVMDelegateCall) (*sdk.Result, error)

func (*Keeper) InitGenesis

func (k *Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)

func (*Keeper) IterateAll

func (k *Keeper) IterateAll(ctx sdk.Context, pref []byte, cb func(key, val []byte) bool)

func (*Keeper) IterateAllCode

func (k *Keeper) IterateAllCode(ctx sdk.Context, cb func(addr common.Address, code []byte) bool)

func (*Keeper) IterateAllNonces

func (k *Keeper) IterateAllNonces(ctx sdk.Context, cb func(addr common.Address, nonce uint64) bool)

func (*Keeper) IterateKiiAddressMapping added in v1.3.0

func (k *Keeper) IterateKiiAddressMapping(ctx sdk.Context, cb func(evmAddr common.Address, kiiAddr sdk.AccAddress) bool)

func (*Keeper) IterateState

func (k *Keeper) IterateState(ctx sdk.Context, cb func(addr common.Address, key common.Hash, val common.Hash) bool)

func (*Keeper) MockReceipt

func (k *Keeper) MockReceipt(ctx sdk.Context, txHash common.Hash, receipt *types.Receipt) error
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 (k *Keeper) OpenEthDatabase() *ethtypes.Header

func (*Keeper) PrefixStore

func (k *Keeper) PrefixStore(ctx sdk.Context, pref []byte) sdk.KVStore

func (*Keeper) PrepareReplayedAddr

func (k *Keeper) PrepareReplayedAddr(ctx sdk.Context, addr common.Address)

Only used in ETH replay

func (*Keeper) PurgePrefix

func (k *Keeper) PurgePrefix(ctx sdk.Context, pref []byte)

func (*Keeper) QueryERCSingleOutput

func (k *Keeper) QueryERCSingleOutput(ctx sdk.Context, typ string, addr common.Address, query string) (interface{}, error)

func (*Keeper) RemovePendingNonce

func (k *Keeper) RemovePendingNonce(key tmtypes.TxKey)

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 (k *Keeper) RunWithOneOffEVMInstance(
	ctx sdk.Context, runner func(*vm.EVM) error, logger func(string, string),
) error

func (*Keeper) SetAddressMapping

func (k *Keeper) SetAddressMapping(ctx sdk.Context, kiiAddress sdk.AccAddress, evmAddress common.Address)

func (*Keeper) SetBlockBloom

func (k *Keeper) SetBlockBloom(ctx sdk.Context, blooms []ethtypes.Bloom)

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

func (k *Keeper) SetCode(ctx sdk.Context, addr common.Address, code []byte)

func (*Keeper) SetDynamicBaseFeePerGas

func (k *Keeper) SetDynamicBaseFeePerGas(ctx sdk.Context, baseFeePerGas sdk.Dec)

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

func (k *Keeper) SetERC20NativePointer(ctx sdk.Context, token string, addr common.Address) error

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 (k *Keeper) SetLegacyBlockBloomCutoffHeight(ctx sdk.Context)

func (*Keeper) SetMsgs

func (k *Keeper) SetMsgs(msgs []*types.MsgEVMTransaction)

func (*Keeper) SetNonce

func (k *Keeper) SetNonce(ctx sdk.Context, addr common.Address, nonce uint64)

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

func (*Keeper) SetReplayInitialHeight

func (k *Keeper) SetReplayInitialHeight(ctx sdk.Context, h int64)

func (*Keeper) SetReplayedHeight

func (k *Keeper) SetReplayedHeight(ctx sdk.Context)

func (*Keeper) SetState

func (k *Keeper) SetState(ctx sdk.Context, addr common.Address, key common.Hash, val common.Hash)

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 (k *Keeper) SetTxHashesOnHeight(ctx sdk.Context, height int64, hashes []common.Hash)

func (*Keeper) SetTxResults

func (k *Keeper) SetTxResults(txResults []*abci.ExecTxResult)

func (*Keeper) StaticCallEVM

func (k *Keeper) StaticCallEVM(ctx sdk.Context, from sdk.AccAddress, to *common.Address, data []byte) ([]byte, error)

func (*Keeper) UpsertERCCW20Pointer

func (k *Keeper) UpsertERCCW20Pointer(
	ctx sdk.Context, evm *vm.EVM, cw20Addr string, metadata utils.ERCMetadata,
) (contractAddr common.Address, err error)

func (*Keeper) UpsertERCCW721Pointer

func (k *Keeper) UpsertERCCW721Pointer(
	ctx sdk.Context, evm *vm.EVM, cw721Addr string, metadata utils.ERCMetadata,
) (contractAddr common.Address, err error)

func (*Keeper) UpsertERCNativePointer

func (k *Keeper) UpsertERCNativePointer(
	ctx sdk.Context, evm *vm.EVM, token string, metadata utils.ERCMetadata,
) (contractAddr common.Address, err error)

func (*Keeper) UpsertERCPointer

func (k *Keeper) UpsertERCPointer(
	ctx sdk.Context, evm *vm.EVM, typ string, args []interface{}, getter PointerGetter, setter PointerSetter,
) (contractAddr common.Address, err error)

func (*Keeper) VerifyAccount

func (k *Keeper) VerifyAccount(ctx sdk.Context, addr common.Address, accountData core.GenesisAccount)

func (*Keeper) VerifyBalance

func (k *Keeper) VerifyBalance(ctx sdk.Context, addr common.Address)

func (*Keeper) VerifyState

func (k *Keeper) VerifyState(ctx sdk.Context, addr common.Address)

func (*Keeper) VerifyTxResult

func (k *Keeper) VerifyTxResult(ctx sdk.Context, hash common.Hash)

func (*Keeper) WasmKeeper

func (k *Keeper) WasmKeeper() *wasmkeeper.PermissionedKeeper

func (*Keeper) WriteReceipt

func (k *Keeper) WriteReceipt(
	ctx sdk.Context,
	stateDB *state.DBImpl,
	msg *core.Message,
	txType uint32,
	txHash common.Hash,
	gasUsed uint64,
	vmError string,
) (*types.Receipt, error)

type PendingTx

type PendingTx struct {
	Key      tmtypes.TxKey
	Nonce    uint64
	Priority int64
}

type PointerGetter

type PointerGetter func(sdk.Context, string) (common.Address, uint16, bool)

type PointerSetter

type PointerSetter func(sdk.Context, string, common.Address) error

type Querier

type Querier struct {
	*Keeper
}

Querier defines a wrapper around the x/mint keeper providing gRPC method handlers.

func NewQuerier

func NewQuerier(k *Keeper) Querier

func (Querier) EVMAddressByKiiAddress added in v1.3.0

func (Querier) KiiAddressByEVMAddress added in v1.3.0

func (Querier) Pointee

func (Querier) Pointer

type ReplayChainContext

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

only used during ETH replay

func (*ReplayChainContext) Engine

func (ctx *ReplayChainContext) Engine() consensus.Engine

func (*ReplayChainContext) GetHeader

func (ctx *ReplayChainContext) GetHeader(hash common.Hash, number uint64) *ethtypes.Header

Jump to

Keyboard shortcuts

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