Documentation ¶
Index ¶
- Constants
- Variables
- func MakeTestCodec() *codec.Codec
- func NewPubKey(pk string) (res crypto.PubKey)
- func ParamKeyTable() params.KeyTable
- func TestAddr(addr string, bech string) sdk.AccAddress
- type Keeper
- func (k *Keeper) GetAllHostContractAddresses(ctx sdk.Context) []sdk.AccAddress
- func (k *Keeper) GetCode(ctx sdk.Context, addr sdk.AccAddress) []byte
- func (k *Keeper) GetLogs(ctx sdk.Context, hash sdk.Hash) []*types.Log
- func (k Keeper) GetMaxCallCreateDepth(ctx sdk.Context) (res uint64)
- func (k Keeper) GetMaxCodeSize(ctx sdk.Context) (res uint64)
- func (k Keeper) GetParams(ctx sdk.Context) (res types.Params)
- func (k Keeper) GetState(ctx sdk.Context, addr sdk.AccAddress, hash sdk.Hash) sdk.Hash
- func (k Keeper) GetVMContractCreationGasParams(ctx sdk.Context) (params types.VMContractCreationGasParams)
- func (k Keeper) GetVMOpGasParams(ctx sdk.Context) (params [256]uint64)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetMaxCallCreateDepth(ctx sdk.Context, maxCallCreateDepth uint64)
- func (k Keeper) SetMaxCodeSize(ctx sdk.Context, maxCodeSize uint64)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetVMContractCreationGasParams(ctx sdk.Context, params types.VMContractCreationGasParams)
- func (k Keeper) SetVMOpGasParams(ctx sdk.Context, params [256]uint64)
Constants ¶
View Source
const (
DefaultParamspace = types.ModuleName
)
Variables ¶
View Source
var ( Addrs = createTestAddrs(500) PKs = createTestPubKeys(500) )
Functions ¶
func ParamKeyTable ¶
Types ¶
type Keeper ¶
type Keeper struct { Cdc *codec.Codec StateDB *types.CommitStateDB // contains filtered or unexported fields }
func CreateTestInput ¶
func NewKeeper ¶
func NewKeeper(cdc *codec.Codec, storeKey sdk.StoreKey, paramstore params.Subspace, ak auth.AccountKeeper) Keeper
NewKeeper returns vm keeper
func (*Keeper) GetAllHostContractAddresses ¶
func (k *Keeper) GetAllHostContractAddresses(ctx sdk.Context) []sdk.AccAddress
func (Keeper) GetMaxCallCreateDepth ¶
GetMaxCallCreateDepth return MaxCallCreateDepth from store
func (Keeper) GetVMContractCreationGasParams ¶
func (k Keeper) GetVMContractCreationGasParams(ctx sdk.Context) (params types.VMContractCreationGasParams)
GetVMContractCreationGasParams return VMContractCreationGasParams from store
func (Keeper) GetVMOpGasParams ¶
func (Keeper) SetMaxCallCreateDepth ¶
SetMaxCallCreateDepth save MaxCallCreateDepth to store
func (Keeper) SetVMContractCreationGasParams ¶
func (k Keeper) SetVMContractCreationGasParams(ctx sdk.Context, params types.VMContractCreationGasParams)
SetVMContractCreationGasParams save VMContractCreationGasParams to store
Click to show internal directories.
Click to hide internal directories.