Documentation
¶
Index ¶
- Variables
- type Account
- type AccountKeeper
- func (_m *AccountKeeper) AddressCodec() address.Codec
- func (_m *AccountKeeper) GetAccount(ctx context.Context, addr cosmos_sdktypes.AccAddress) cosmos_sdktypes.AccountI
- func (_m *AccountKeeper) GetModuleAddress(moduleName string) cosmos_sdktypes.AccAddress
- func (_m *AccountKeeper) GetParams(ctx context.Context) authtypes.Params
- func (_m *AccountKeeper) GetSequence(ctx context.Context, account cosmos_sdktypes.AccAddress) (uint64, error)
- func (_m *AccountKeeper) HasAccount(ctx context.Context, addr cosmos_sdktypes.AccAddress) bool
- func (_m *AccountKeeper) NewAccountWithAddress(ctx context.Context, addr cosmos_sdktypes.AccAddress) cosmos_sdktypes.AccountI
- func (_m *AccountKeeper) RemoveAccount(ctx context.Context, account cosmos_sdktypes.AccountI)
- func (_m *AccountKeeper) RemoveExpiredUnorderedNonces(ctx cosmos_sdktypes.Context) error
- func (_m *AccountKeeper) SetAccount(ctx context.Context, account cosmos_sdktypes.AccountI)
- func (_m *AccountKeeper) TryAddUnorderedNonce(ctx cosmos_sdktypes.Context, sender []byte, timestamp time.Time) error
- func (_m *AccountKeeper) UnorderedTransactionsEnabled() bool
- type BankKeeper
- func (_m *BankKeeper) BlockedAddr(addr types.AccAddress) bool
- func (_m *BankKeeper) BurnCoins(ctx context.Context, moduleName string, amt types.Coins) error
- func (_m *BankKeeper) GetAllBalances(ctx context.Context, addr types.AccAddress) types.Coins
- func (_m *BankKeeper) GetBalance(ctx context.Context, addr types.AccAddress, denom string) types.Coin
- func (_m *BankKeeper) GetDenomMetaData(ctx context.Context, denom string) (banktypes.Metadata, bool)
- func (_m *BankKeeper) GetSupply(ctx context.Context, denom string) types.Coin
- func (_m *BankKeeper) IsSendEnabledCoin(ctx context.Context, coin types.Coin) bool
- func (_m *BankKeeper) IsSendEnabledCoins(ctx context.Context, coins ...types.Coin) error
- func (_m *BankKeeper) IterateAccountBalances(ctx context.Context, account types.AccAddress, cb func(coin types.Coin) bool)
- func (_m *BankKeeper) IterateAllBalances(ctx context.Context, ...)
- func (_m *BankKeeper) IterateTotalSupply(ctx context.Context, cb func(coin types.Coin) bool)
- func (_m *BankKeeper) MintCoins(ctx context.Context, moduleName string, amt types.Coins) error
- func (_m *BankKeeper) SendCoins(ctx context.Context, from types.AccAddress, to types.AccAddress, ...) error
- func (_m *BankKeeper) SendCoinsFromAccountToModule(ctx context.Context, senderAddr types.AccAddress, recipientModule string, ...) error
- func (_m *BankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types.AccAddress, ...) error
- func (_m *BankKeeper) SendCoinsFromModuleToModule(ctx context.Context, senderModule string, recipientModule string, ...) error
- func (_m *BankKeeper) SetDenomMetaData(ctx context.Context, denomMetaData banktypes.Metadata)
- func (_m *BankKeeper) SpendableCoin(ctx context.Context, addr types.AccAddress, denom string) types.Coin
- type ConsensusParamsKeeper
- type EVMKeeper
- func (k EVMKeeper) Clone() *EVMKeeper
- func (k EVMKeeper) DeleteAccount(_ sdk.Context, addr common.Address) error
- func (k EVMKeeper) DeleteCode(_ sdk.Context, codeHash []byte)
- func (k EVMKeeper) DeleteState(_ sdk.Context, addr common.Address, key common.Hash)
- func (k EVMKeeper) ForEachStorage(_ sdk.Context, addr common.Address, cb func(key, value common.Hash) bool)
- func (k EVMKeeper) GetAccount(_ sdk.Context, addr common.Address) *statedb.Account
- func (k EVMKeeper) GetCode(_ sdk.Context, codeHash common.Hash) []byte
- func (k EVMKeeper) GetCodeHash(_ sdk.Context, _ common.Address) common.Hash
- func (k EVMKeeper) GetState(_ sdk.Context, addr common.Address, key common.Hash) common.Hash
- func (k EVMKeeper) KVStoreKeys() map[string]*storetypes.KVStoreKey
- func (k EVMKeeper) SetAccount(_ sdk.Context, addr common.Address, account statedb.Account) error
- func (k EVMKeeper) SetCode(_ sdk.Context, codeHash []byte, code []byte)
- func (k EVMKeeper) SetState(_ sdk.Context, addr common.Address, key common.Hash, value []byte)
- type Erc20Keeper
- type FeeMarketKeeper
- type StakingKeeper
- func (_m *StakingKeeper) GetHistoricalInfo(ctx context.Context, height int64) (types.HistoricalInfo, error)
- func (_m *StakingKeeper) GetValidatorByConsAddr(ctx context.Context, consAddr cosmos_sdktypes.ConsAddress) (types.Validator, error)
- func (_m *StakingKeeper) ValidatorAddressCodec() address.Codec
Constants ¶
This section is empty.
Variables ¶
var ( ErrAddress common.Address = common.BigToAddress(big.NewInt(100)) EmptyCodeHash = crypto.Keccak256(nil) )
Functions ¶
This section is empty.
Types ¶
type AccountKeeper ¶ added in v0.4.0
AccountKeeper is an autogenerated mock type for the AccountKeeper type
func NewAccountKeeper ¶ added in v0.4.0
func NewAccountKeeper(t interface { mock.TestingT Cleanup(func()) }, ) *AccountKeeper
NewAccountKeeper creates a new instance of AccountKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AccountKeeper) AddressCodec ¶ added in v0.4.0
func (_m *AccountKeeper) AddressCodec() address.Codec
AddressCodec provides a mock function with given fields:
func (*AccountKeeper) GetAccount ¶ added in v0.4.0
func (_m *AccountKeeper) GetAccount(ctx context.Context, addr cosmos_sdktypes.AccAddress) cosmos_sdktypes.AccountI
GetAccount provides a mock function with given fields: ctx, addr
func (*AccountKeeper) GetModuleAddress ¶ added in v0.4.0
func (_m *AccountKeeper) GetModuleAddress(moduleName string) cosmos_sdktypes.AccAddress
GetModuleAddress provides a mock function with given fields: moduleName
func (*AccountKeeper) GetParams ¶ added in v0.4.0
func (_m *AccountKeeper) GetParams(ctx context.Context) authtypes.Params
GetParams provides a mock function with given fields: ctx
func (*AccountKeeper) GetSequence ¶ added in v0.4.0
func (_m *AccountKeeper) GetSequence(ctx context.Context, account cosmos_sdktypes.AccAddress) (uint64, error)
GetSequence provides a mock function with given fields: ctx, account
func (*AccountKeeper) HasAccount ¶ added in v0.4.0
func (_m *AccountKeeper) HasAccount(ctx context.Context, addr cosmos_sdktypes.AccAddress) bool
HasAccount provides a mock function with given fields: ctx, addr
func (*AccountKeeper) NewAccountWithAddress ¶ added in v0.4.0
func (_m *AccountKeeper) NewAccountWithAddress(ctx context.Context, addr cosmos_sdktypes.AccAddress) cosmos_sdktypes.AccountI
NewAccountWithAddress provides a mock function with given fields: ctx, addr
func (*AccountKeeper) RemoveAccount ¶ added in v0.4.0
func (_m *AccountKeeper) RemoveAccount(ctx context.Context, account cosmos_sdktypes.AccountI)
RemoveAccount provides a mock function with given fields: ctx, account
func (*AccountKeeper) RemoveExpiredUnorderedNonces ¶ added in v0.4.0
func (_m *AccountKeeper) RemoveExpiredUnorderedNonces(ctx cosmos_sdktypes.Context) error
RemoveExpiredUnorderedNonces provides a mock function with given fields: ctx
func (*AccountKeeper) SetAccount ¶ added in v0.4.0
func (_m *AccountKeeper) SetAccount(ctx context.Context, account cosmos_sdktypes.AccountI)
SetAccount provides a mock function with given fields: ctx, account
func (*AccountKeeper) TryAddUnorderedNonce ¶ added in v0.4.0
func (_m *AccountKeeper) TryAddUnorderedNonce(ctx cosmos_sdktypes.Context, sender []byte, timestamp time.Time) error
TryAddUnorderedNonce provides a mock function with given fields: ctx, sender, timestamp
func (*AccountKeeper) UnorderedTransactionsEnabled ¶ added in v0.4.0
func (_m *AccountKeeper) UnorderedTransactionsEnabled() bool
UnorderedTransactionsEnabled provides a mock function with given fields:
type BankKeeper ¶ added in v0.4.0
BankKeeper is an autogenerated mock type for the BankKeeper type
func NewBankKeeper ¶ added in v0.4.0
func NewBankKeeper(t interface { mock.TestingT Cleanup(func()) }, ) *BankKeeper
NewBankKeeper creates a new instance of BankKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*BankKeeper) BlockedAddr ¶ added in v0.4.0
func (_m *BankKeeper) BlockedAddr(addr types.AccAddress) bool
BlockedAddr provides a mock function with given fields: addr
func (*BankKeeper) BurnCoins ¶ added in v0.4.0
BurnCoins provides a mock function with given fields: ctx, moduleName, amt
func (*BankKeeper) GetAllBalances ¶ added in v0.4.0
func (_m *BankKeeper) GetAllBalances(ctx context.Context, addr types.AccAddress) types.Coins
GetAllBalances provides a mock function with given fields: ctx, addr
func (*BankKeeper) GetBalance ¶ added in v0.4.0
func (_m *BankKeeper) GetBalance(ctx context.Context, addr types.AccAddress, denom string) types.Coin
GetBalance provides a mock function with given fields: ctx, addr, denom
func (*BankKeeper) GetDenomMetaData ¶ added in v0.4.0
func (_m *BankKeeper) GetDenomMetaData(ctx context.Context, denom string) (banktypes.Metadata, bool)
GetDenomMetaData provides a mock function with given fields: ctx, denom
func (*BankKeeper) GetSupply ¶ added in v0.4.0
GetSupply provides a mock function with given fields: ctx, denom
func (*BankKeeper) IsSendEnabledCoin ¶ added in v0.4.0
IsSendEnabledCoin provides a mock function with given fields: ctx, coin
func (*BankKeeper) IsSendEnabledCoins ¶ added in v0.4.0
IsSendEnabledCoins provides a mock function with given fields: ctx, coins
func (*BankKeeper) IterateAccountBalances ¶ added in v0.4.0
func (_m *BankKeeper) IterateAccountBalances(ctx context.Context, account types.AccAddress, cb func(coin types.Coin) bool)
IterateAccountBalances provides a mock function with given fields: ctx, account, cb
func (*BankKeeper) IterateAllBalances ¶ added in v0.4.0
func (_m *BankKeeper) IterateAllBalances(ctx context.Context, cb func(address types.AccAddress, coin types.Coin) (stop bool))
IterateAllBalances provides a mock function with given fields: ctx, cb
func (*BankKeeper) IterateTotalSupply ¶ added in v0.4.0
IterateTotalSupply provides a mock function with given fields: ctx, cb
func (*BankKeeper) MintCoins ¶ added in v0.4.0
MintCoins provides a mock function with given fields: ctx, moduleName, amt
func (*BankKeeper) SendCoins ¶ added in v0.4.0
func (_m *BankKeeper) SendCoins(ctx context.Context, from types.AccAddress, to types.AccAddress, amt types.Coins) error
SendCoins provides a mock function with given fields: ctx, from, to, amt
func (*BankKeeper) SendCoinsFromAccountToModule ¶ added in v0.4.0
func (_m *BankKeeper) SendCoinsFromAccountToModule(ctx context.Context, senderAddr types.AccAddress, recipientModule string, amt types.Coins) error
SendCoinsFromAccountToModule provides a mock function with given fields: ctx, senderAddr, recipientModule, amt
func (*BankKeeper) SendCoinsFromModuleToAccount ¶ added in v0.4.0
func (_m *BankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types.AccAddress, amt types.Coins) error
SendCoinsFromModuleToAccount provides a mock function with given fields: ctx, senderModule, recipientAddr, amt
func (*BankKeeper) SendCoinsFromModuleToModule ¶ added in v0.4.0
func (_m *BankKeeper) SendCoinsFromModuleToModule(ctx context.Context, senderModule string, recipientModule string, amt types.Coins) error
SendCoinsFromModuleToModule provides a mock function with given fields: ctx, senderModule, recipientModule, amt
func (*BankKeeper) SetDenomMetaData ¶ added in v0.4.0
func (_m *BankKeeper) SetDenomMetaData(ctx context.Context, denomMetaData banktypes.Metadata)
SetDenomMetaData provides a mock function with given fields: ctx, denomMetaData
func (*BankKeeper) SpendableCoin ¶ added in v0.4.0
func (_m *BankKeeper) SpendableCoin(ctx context.Context, addr types.AccAddress, denom string) types.Coin
SpendableCoin provides a mock function with given fields: ctx, addr, denom
type ConsensusParamsKeeper ¶ added in v0.4.0
ConsensusParamsKeeper is an autogenerated mock type for the ConsensusParamsKeeper type
func NewConsensusParamsKeeper ¶ added in v0.4.0
func NewConsensusParamsKeeper(t interface { mock.TestingT Cleanup(func()) }, ) *ConsensusParamsKeeper
NewConsensusParamsKeeper creates a new instance of ConsensusParamsKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ConsensusParamsKeeper) Params ¶ added in v0.4.0
func (_m *ConsensusParamsKeeper) Params(ctx context.Context, request *consensustypes.QueryParamsRequest) (*consensustypes.QueryParamsResponse, error)
Params provides a mock function with given fields: ctx, request
type EVMKeeper ¶
type EVMKeeper struct {
// contains filtered or unexported fields
}
func NewEVMKeeper ¶
func NewEVMKeeper() *EVMKeeper
func (EVMKeeper) DeleteAccount ¶
func (EVMKeeper) DeleteState ¶
func (EVMKeeper) ForEachStorage ¶
func (EVMKeeper) GetAccount ¶
func (EVMKeeper) GetCodeHash ¶ added in v0.4.0
func (EVMKeeper) KVStoreKeys ¶
func (k EVMKeeper) KVStoreKeys() map[string]*storetypes.KVStoreKey
func (EVMKeeper) SetAccount ¶
type Erc20Keeper ¶ added in v0.4.0
Erc20Keeper is an autogenerated mock type for the Erc20Keeper type
func NewErc20Keeper ¶ added in v0.4.0
func NewErc20Keeper(t interface { mock.TestingT Cleanup(func()) }, ) *Erc20Keeper
NewErc20Keeper creates a new instance of Erc20Keeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Erc20Keeper) GetERC20PrecompileInstance ¶ added in v0.4.0
func (_m *Erc20Keeper) GetERC20PrecompileInstance(ctx types.Context, address common.Address) (vm.PrecompiledContract, bool, error)
GetERC20PrecompileInstance provides a mock function with given fields: ctx, address
type FeeMarketKeeper ¶ added in v0.4.0
FeeMarketKeeper is an autogenerated mock type for the FeeMarketKeeper type
func NewFeeMarketKeeper ¶ added in v0.4.0
func NewFeeMarketKeeper(t interface { mock.TestingT Cleanup(func()) }, ) *FeeMarketKeeper
NewFeeMarketKeeper creates a new instance of FeeMarketKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*FeeMarketKeeper) CalculateBaseFee ¶ added in v0.4.0
func (_m *FeeMarketKeeper) CalculateBaseFee(ctx types.Context) math.LegacyDec
CalculateBaseFee provides a mock function with given fields: ctx
func (*FeeMarketKeeper) GetBaseFee ¶ added in v0.4.0
func (_m *FeeMarketKeeper) GetBaseFee(ctx types.Context) math.LegacyDec
GetBaseFee provides a mock function with given fields: ctx
func (*FeeMarketKeeper) GetParams ¶ added in v0.4.0
func (_m *FeeMarketKeeper) GetParams(ctx types.Context) feemarkettypes.Params
GetParams provides a mock function with given fields: ctx
type StakingKeeper ¶ added in v0.4.0
StakingKeeper is an autogenerated mock type for the StakingKeeper type
func NewStakingKeeper ¶ added in v0.4.0
func NewStakingKeeper(t interface { mock.TestingT Cleanup(func()) }, ) *StakingKeeper
NewStakingKeeper creates a new instance of StakingKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*StakingKeeper) GetHistoricalInfo ¶ added in v0.4.0
func (_m *StakingKeeper) GetHistoricalInfo(ctx context.Context, height int64) (types.HistoricalInfo, error)
GetHistoricalInfo provides a mock function with given fields: ctx, height
func (*StakingKeeper) GetValidatorByConsAddr ¶ added in v0.4.0
func (_m *StakingKeeper) GetValidatorByConsAddr(ctx context.Context, consAddr cosmos_sdktypes.ConsAddress) (types.Validator, error)
GetValidatorByConsAddr provides a mock function with given fields: ctx, consAddr
func (*StakingKeeper) ValidatorAddressCodec ¶ added in v0.4.0
func (_m *StakingKeeper) ValidatorAddressCodec() address.Codec
ValidatorAddressCodec provides a mock function with given fields: