simulation

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountKeeperProxy

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

AccountKeeper defines the expected account keeper interface

func NewAccountKeeperProxy

func NewAccountKeeperProxy(qoc QueryOnChainProxy) AccountKeeperProxy

func (AccountKeeperProxy) GetAccount

func (AccountKeeperProxy) GetAllAccounts

func (a AccountKeeperProxy) GetAllAccounts(ctx sdk.Context) (accounts []authexported.Account)

func (AccountKeeperProxy) IterateAccounts

func (a AccountKeeperProxy) IterateAccounts(ctx sdk.Context, cb func(account authexported.Account) bool)

func (AccountKeeperProxy) NewAccountWithAddress

func (a AccountKeeperProxy) NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) authexported.Account

func (AccountKeeperProxy) RemoveAccount

func (a AccountKeeperProxy) RemoveAccount(ctx sdk.Context, account authexported.Account)

func (AccountKeeperProxy) SetAccount

func (a AccountKeeperProxy) SetAccount(ctx sdk.Context, account authexported.Account)

func (AccountKeeperProxy) SetObserverKeeper

func (a AccountKeeperProxy) SetObserverKeeper(observer auth.ObserverI)

type BankKeeperProxy

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

func NewBankKeeperProxy

func NewBankKeeperProxy() BankKeeperProxy

func (BankKeeperProxy) BlacklistedAddr

func (b BankKeeperProxy) BlacklistedAddr(addr sdk.AccAddress) bool

type BlockHashStore added in v0.18.8

type BlockHashStore struct {
}

func (BlockHashStore) Delete added in v0.18.8

func (s BlockHashStore) Delete(key []byte)

func (BlockHashStore) Get added in v0.18.8

func (s BlockHashStore) Get(key []byte) []byte

func (BlockHashStore) Has added in v0.18.8

func (s BlockHashStore) Has(key []byte) bool

func (BlockHashStore) Set added in v0.18.8

func (s BlockHashStore) Set(key, value []byte)

type BloomStore

type BloomStore struct {
}

func (BloomStore) Delete

func (s BloomStore) Delete(key []byte)

func (BloomStore) Get

func (s BloomStore) Get(key []byte) []byte

func (BloomStore) Has

func (s BloomStore) Has(key []byte) bool

func (BloomStore) Set

func (s BloomStore) Set(key, value []byte)

type CodeStore

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

func (CodeStore) Delete

func (s CodeStore) Delete(key []byte)

func (CodeStore) Get

func (s CodeStore) Get(key []byte) []byte

func (CodeStore) Has

func (s CodeStore) Has(key []byte) bool

func (CodeStore) Set

func (s CodeStore) Set(key, value []byte)

type ConfigStore

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

func (ConfigStore) Delete

func (s ConfigStore) Delete(key []byte)

func (ConfigStore) Get

func (s ConfigStore) Get(key []byte) []byte

func (ConfigStore) Has

func (s ConfigStore) Has(key []byte) bool

func (ConfigStore) Set

func (s ConfigStore) Set(key, value []byte)

type ContractBlockedListStore

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

func (ContractBlockedListStore) Delete

func (s ContractBlockedListStore) Delete(key []byte)

func (ContractBlockedListStore) Get

func (s ContractBlockedListStore) Get(key []byte) []byte

func (ContractBlockedListStore) Has

func (s ContractBlockedListStore) Has(key []byte) bool

func (ContractBlockedListStore) Set

func (s ContractBlockedListStore) Set(key, value []byte)

type ContractDeploymentWhitelist

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

func (ContractDeploymentWhitelist) Delete

func (s ContractDeploymentWhitelist) Delete(key []byte)

func (ContractDeploymentWhitelist) Get

func (s ContractDeploymentWhitelist) Get(key []byte) []byte

func (ContractDeploymentWhitelist) Has

func (s ContractDeploymentWhitelist) Has(key []byte) bool

func (ContractDeploymentWhitelist) Set

func (s ContractDeploymentWhitelist) Set(key, value []byte)

type EvmFactory

type EvmFactory struct {
	ChainId        string
	WrappedQuerier *watcher.Querier
	// contains filtered or unexported fields
}

func NewEvmFactory added in v0.18.8

func NewEvmFactory(chainId string, q *watcher.Querier) EvmFactory

func (EvmFactory) BuildSimulator

func (ef EvmFactory) BuildSimulator(qoc QueryOnChainProxy) *EvmSimulator

func (*EvmFactory) PutBackStorePool added in v1.5.6

func (ef *EvmFactory) PutBackStorePool(multiStore sdk.CacheMultiStore)

type EvmSimulator

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

func (*EvmSimulator) DoCall

func (es *EvmSimulator) DoCall(msg *evmtypes.MsgEthereumTx, sender string, overridesBytes []byte, callBack func(sdk.CacheMultiStore)) (*sdk.SimulationResponse, error)

DoCall call simulate tx. we pass the sender by args to reduce address convert

type HeightHashStore added in v0.18.8

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

func (HeightHashStore) Delete added in v0.18.8

func (s HeightHashStore) Delete(key []byte)

func (HeightHashStore) Get added in v0.18.8

func (s HeightHashStore) Get(key []byte) []byte

func (HeightHashStore) Has added in v0.18.8

func (s HeightHashStore) Has(key []byte) bool

func (HeightHashStore) Set added in v0.18.8

func (s HeightHashStore) Set(key, value []byte)

type InternalDba

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

func NewInternalDba

func NewInternalDba(qoc QueryOnChainProxy) InternalDba

func (InternalDba) NewStore

func (i InternalDba) NewStore(parent store.KVStore, Prefix []byte) evmtypes.StoreProxy

type QueryOnChainProxy

type QueryOnChainProxy interface {
	GetAccount(address common.Address) (*types.EthAccount, error)
	GetStorageAtInternal(address common.Address, key []byte) (hexutil.Bytes, error)
	GetCodeByHash(hash common.Hash) (hexutil.Bytes, error)
	GetCodec() *codec.Codec
}

type StakingKeeperProxy added in v1.6.6

type StakingKeeperProxy struct {
}

func (StakingKeeperProxy) IsValidator added in v1.6.6

func (s StakingKeeperProxy) IsValidator(ctx sdk.Context, addr sdk.AccAddress) bool

type StateStore

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

func (StateStore) Delete

func (s StateStore) Delete(key []byte)

func (StateStore) Get

func (s StateStore) Get(key []byte) []byte

func (StateStore) Has

func (s StateStore) Has(key []byte) bool

func (StateStore) Set

func (s StateStore) Set(key, value []byte)

type SubspaceProxy

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

func NewSubspaceProxy

func NewSubspaceProxy() SubspaceProxy

func (SubspaceProxy) CustomKVStore added in v1.5.4

func (p SubspaceProxy) CustomKVStore(ctx sdk.Context) sdk.KVStore

func (SubspaceProxy) GetParamSet

func (p SubspaceProxy) GetParamSet(ctx sdk.Context, ps params.ParamSet)

func (SubspaceProxy) RegisterSignal added in v1.1.10

func (p SubspaceProxy) RegisterSignal(handler func())

func (SubspaceProxy) SetParamSet

func (p SubspaceProxy) SetParamSet(ctx sdk.Context, ps params.ParamSet)

type SupplyKeeperProxy

type SupplyKeeperProxy struct {
}

func (SupplyKeeperProxy) SendCoinsFromModuleToAccount

func (s SupplyKeeperProxy) SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error

Jump to

Keyboard shortcuts

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