Versions in this module Expand all Collapse all v1 v1.0.2 Dec 8, 2020 Changes in this version + const DefaultBlockGasLimit + const EventTypeContractCreated + const GasReservedForOutOfVm v1.0.0 Sep 28, 2020 v0 v0.0.0 Oct 19, 2020 Changes in this version + const AttributeKeyAddress + const BalanceGas + const Bn256AddGas + const Bn256PairingBaseGas + const Bn256PairingPerPointGas + const Bn256ScalarMulGas + const CallCreateDepth + const CallGas + const CallNewAccountGas + const CallStipend + const CallValueTransferGas + const CopyGas + const Create2Gas + const CreateBySelfdestructGas + const CreateDataGas + const CreateGas + const DefaultParamspace + const DefaultVMGasLimit + const EcrecoverGas + const EventTypeNewContract + const ExpByte + const ExpByteGas + const ExpGas + const ExtcodeCopyBase + const ExtcodeHashGas + const ExtcodeSizeGas + const GasExtStep + const GasFastStep + const GasFastestStep + const GasLimitBoundDivisor + const GasMidStep + const GasQuickStep + const GasSlowStep + const GenesisGasLimit + const IdentityBaseGas + const IdentityPerWordGas + const JumpdestGas + const LogDataGas + const LogGas + const LogTopicGas + const MaxCodeSize + const MaximumExtraDataSize + const MemoryGas + const MinGasLimit + const ModExpQuadCoeffDiv + const ModuleName + const QuadCoeffDiv + const QuerierRoute + const Ripemd160BaseGas + const Ripemd160PerWordGas + const RouterKey + const SelfdestructGas + const SelfdestructRefundGas + const Sha256BaseGas + const Sha256PerWordGas + const Sha3Gas + const Sha3WordGas + const SloadGas + const SstoreCleanGas + const SstoreCleanRefund + const SstoreClearRefund + const SstoreDirtyGas + const SstoreInitGas + const SstoreInitRefund + const SstoreNoopGas + const SstoreSentryGas + const StackLimit + const StoreKey + const TxDataZeroGas + const TxGas + const TxGasContractCreation + var CodeFromFile = cli.CodeFromFile + var CreateAddress = common.CreateAddress + var CreateAddress2 = common.CreateAddress2 + var DefaultParams = types.DefaultParams + var ErrCodeStoreOutOfGas = types.ErrCodeStoreOutOfGas + var ErrContractAddressCollision = types.ErrContractAddressCollision + var ErrDepth = types.ErrDepth + var ErrEmptyInputs = types.ErrEmptyInputs + var ErrExecutionReverted = types.ErrExecutionReverted + var ErrGasUintOverflow = types.ErrGasUintOverflow + var ErrInsufficientBalance = types.ErrInsufficientBalance + var ErrInvalidJump = types.ErrInvalidJump + var ErrMaxCodeSizeExceeded = types.ErrMaxCodeSizeExceeded + var ErrNoCodeExist = types.ErrNoCodeExist + var ErrNoCompatibleInterpreter = types.ErrNoCompatibleInterpreter + var ErrNoPayload = types.ErrNoPayload + var ErrOutOfGas = types.ErrOutOfGas + var ErrReturnDataOutOfBounds = types.ErrReturnDataOutOfBounds + var ErrTraceLimitReached = types.ErrTraceLimitReached + var ErrWriteProtection = types.ErrWriteProtection + var ErrWrongCtx = types.ErrWrongCtx + var GenPayload = cli.GenPayload + var ModuleCdc = types.ModuleCdc + var NewCommitStateDB = types.NewCommitStateDB + var NewKeeper = keeper.NewKeeper + var NewMsgContract = types.NewMsgContract + var NewParams = types.NewParams + var PrecompiledContracts = map[string]PrecompiledContract + var ValidateGenesis = types.ValidateGenesis + func DoStateTransition(ctx sdk.Context, msg types.MsgContract, k Keeper, readonly bool) (*big.Int, *sdk.Result, error) + func EndBlocker(ctx sdk.Context, keeper keeper.Keeper) []abci.ValidatorUpdate + func NewHandler(k Keeper) sdk.Handler + func NewQuerier(k keeper.Keeper) sdk.Querier + func RightPadBytes(slice []byte, l int) []byte + func RunPrecompiledContract(p PrecompiledContract, input []byte, contract *Contract) (ret []byte, err error) + func WriteLogs(writer io.Writer, logs []*types.Log) + func WriteTrace(writer io.Writer, logs []StructLog) + type AccountKeeper = types.AccountKeeper + type AccountRef sdk.AccAddress + func (ar AccountRef) Address() sdk.AccAddress + type AppModule struct + func NewAppModule(keeper Keeper) AppModule + func (am *AppModule) WithAccountKeeper(ak AccountKeeper) *AppModule + func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock) + func (am AppModule) EndBlock(ctx sdk.Context, end abci.RequestEndBlock) []abci.ValidatorUpdate + func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage + func (am AppModule) GenerateGenesisState(input *module.SimulationState) + func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate + func (am AppModule) NewHandler() sdk.Handler + func (am AppModule) NewQuerierHandler() sdk.Querier + func (am AppModule) ProposalContents(simState module.SimulationState) []simtypes.WeightedProposalContent + func (am AppModule) QuerierRoute() string + func (am AppModule) RandomizedParams(r *rand.Rand) []simtypes.ParamChange + func (am AppModule) RegisterInvariants(sdk.InvariantRegistry) + func (am AppModule) Route() string + func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation + type AppModuleBasic struct + func (a AppModuleBasic) DefaultGenesis() json.RawMessage + func (a AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command + func (a AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command + func (a AppModuleBasic) Name() string + func (a AppModuleBasic) RegisterCodec(cdc *codec.Codec) + func (a AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router) + func (a AppModuleBasic) ValidateGenesis(value json.RawMessage) error + type CanTransferFunc func(sdk.AccAddress, *big.Int) bool + type ChainConfig struct + ChainID string + type CommitStateDB = types.CommitStateDB + type Config struct + ContractCreationGasConfig *types.VMContractCreationGasParams + Debug bool + EVMInterpreter string + EWASMInterpreter string + EnablePreimageRecording bool + JumpTable [256]operation + MaxCallCreateDepth uint64 + MaxCodeSize uint64 + NoRecursion bool + OpConstGasConfig *[256]uint64 + Tracer Tracer + type Context struct + BlockNumber *big.Int + CanTransfer CanTransferFunc + CoinBase sdk.AccAddress + GasLimit uint64 + GasPrice *big.Int + GetHash GetHashFunc + Origin sdk.AccAddress + Time *big.Int + Transfer TransferFunc + type Contract struct + CallerAddress sdk.AccAddress + Code []byte + CodeAddr *sdk.AccAddress + CodeHash sdk.Hash + Gas uint64 + Input []byte + func NewContract(caller ContractRef, object ContractRef, value *big.Int, gas uint64) *Contract + func (c *Contract) Address() sdk.AccAddress + func (c *Contract) AsDelegate() *Contract + func (c *Contract) Caller() sdk.AccAddress + func (c *Contract) GetByte(n uint64) byte + func (c *Contract) GetOp(n uint64) OpCode + func (c *Contract) SetCallCode(addr *sdk.AccAddress, hash sdk.Hash, code []byte) + func (c *Contract) SetCodeOptionalHash(addr *sdk.AccAddress, codeAndHash *codeAndHash) + func (c *Contract) UseGas(gas uint64) (ok bool) + func (c *Contract) Value() *big.Int + type ContractRef interface + Address func() sdk.AccAddress + type EVM struct + StateDB *CommitStateDB + func NewEVM(ctx Context, statedb *CommitStateDB, vmConfig Config) *EVM + func (evm *EVM) Call(caller ContractRef, addr sdk.AccAddress, input []byte, gas uint64, ...) (ret []byte, leftOverGas uint64, err error) + func (evm *EVM) CallCode(caller ContractRef, addr sdk.AccAddress, input []byte, gas uint64, ...) (ret []byte, leftOverGas uint64, err error) + func (evm *EVM) Create(caller ContractRef, code []byte, gas uint64, value *big.Int) (ret []byte, contractAddr sdk.AccAddress, leftOverGas uint64, err error) + func (evm *EVM) Create2(caller ContractRef, code []byte, gas uint64, endowment *big.Int, salt *big.Int) (ret []byte, contractAddr sdk.AccAddress, leftOverGas uint64, err error) + func (evm *EVM) DelegateCall(caller ContractRef, addr sdk.AccAddress, input []byte, gas uint64) (ret []byte, leftOverGas uint64, err error) + func (evm *EVM) Interpreter() Interpreter + func (evm *EVM) StaticCall(caller ContractRef, addr sdk.AccAddress, input []byte, gas uint64) (ret []byte, leftOverGas uint64, err error) + type EVMInterpreter struct + func NewEVMInterpreter(evm *EVM, cfg Config) *EVMInterpreter + func (in *EVMInterpreter) CanRun(code []byte) bool + func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (ret []byte, err error) + func (in *EVMInterpreter) SetReturnData(d []byte) + type GenesisState = types.GenesisState + type GetHashFunc func() sdk.Hash + type Interpreter interface + CanRun func([]byte) bool + Run func(contract *Contract, input []byte, static bool) ([]byte, error) + type JumpTable [256]operation + type Keeper = keeper.Keeper + type Log = types.Log + type LogConfig struct + Debug bool + DisableMemory bool + DisableStack bool + DisableStorage bool + Limit int + type Memory struct + func NewMemory() *Memory + func (m *Memory) Data() []byte + func (m *Memory) Get(offset, size int64) (cpy []byte) + func (m *Memory) GetCopy(offset, size int64) (cpy []byte) + func (m *Memory) GetPtr(offset, size int64) []byte + func (m *Memory) Len() int + func (m *Memory) Print() + func (m *Memory) Resize(size uint64) + func (m *Memory) Set(offset, size uint64, value []byte) + func (m *Memory) Set32(offset uint64, val *big.Int) + type MsgContract = types.MsgContract + type OpCode byte + const ADD + const ADDMOD + const ADDRESS + const AND + const BALANCE + const BLOCKHASH + const BYTE + const CALL + const CALLCODE + const CALLDATACOPY + const CALLDATALOAD + const CALLDATASIZE + const CALLER + const CALLVALUE + const CHAINID + const CODECOPY + const CODESIZE + const COINBASE + const CREATE + const CREATE2 + const DELEGATECALL + const DIFFICULTY + const DIV + const DUP + const DUP1 + const DUP10 + const DUP11 + const DUP12 + const DUP13 + const DUP14 + const DUP15 + const DUP16 + const DUP2 + const DUP3 + const DUP4 + const DUP5 + const DUP6 + const DUP7 + const DUP8 + const DUP9 + const EQ + const EXP + const EXTCODECOPY + const EXTCODEHASH + const EXTCODESIZE + const GAS + const GASLIMIT + const GASPRICE + const GT + const ISZERO + const JUMP + const JUMPDEST + const JUMPI + const LOG0 + const LOG1 + const LOG2 + const LOG3 + const LOG4 + const LT + const MLOAD + const MOD + const MSIZE + const MSTORE + const MSTORE8 + const MUL + const MULMOD + const NOT + const NUMBER + const OR + const ORIGIN + const PC + const POP + const PUSH + const PUSH1 + const PUSH10 + const PUSH11 + const PUSH12 + const PUSH13 + const PUSH14 + const PUSH15 + const PUSH16 + const PUSH17 + const PUSH18 + const PUSH19 + const PUSH2 + const PUSH20 + const PUSH21 + const PUSH22 + const PUSH23 + const PUSH24 + const PUSH25 + const PUSH26 + const PUSH27 + const PUSH28 + const PUSH29 + const PUSH3 + const PUSH30 + const PUSH31 + const PUSH32 + const PUSH4 + const PUSH5 + const PUSH6 + const PUSH7 + const PUSH8 + const PUSH9 + const RETURN + const RETURNDATACOPY + const RETURNDATASIZE + const REVERT + const SAR + const SDIV + const SELFBALANCE + const SELFDESTRUCT + const SGT + const SHA3 + const SHL + const SHR + const SIGNEXTEND + const SLOAD + const SLT + const SMOD + const SSTORE + const STATICCALL + const STOP + const SUB + const SWAP + const SWAP1 + const SWAP10 + const SWAP11 + const SWAP12 + const SWAP13 + const SWAP14 + const SWAP15 + const SWAP16 + const SWAP2 + const SWAP3 + const SWAP4 + const SWAP5 + const SWAP6 + const SWAP7 + const SWAP8 + const SWAP9 + const TIMESTAMP + const XOR + func StringToOp(str string) OpCode + func (op OpCode) IsPush() bool + func (op OpCode) IsStaticJump() bool + func (op OpCode) String() string + type Params = types.Params + type PrecompiledContract interface + RequiredGas func(input []byte) uint64 + Run func(input []byte) ([]byte, error) + type Stack struct + func (st *Stack) Back(n int) *big.Int + func (st *Stack) Data() []*big.Int + func (st *Stack) Print() + type StateTransition struct + Amount sdk.Int + Payload []byte + Recipient sdk.AccAddress + Sender sdk.AccAddress + StateDB *types.CommitStateDB + func (st StateTransition) CanTransfer(acc sdk.AccAddress, amount *big.Int) bool + func (st StateTransition) GetHashFn(header abci.Header) func() sdk.Hash + func (st StateTransition) Transfer(from, to sdk.AccAddress, amount *big.Int) + func (st StateTransition) TransitionCSDB(ctx sdk.Context, k Keeper) (*big.Int, *sdk.Result, error) + type Storage map[sdk.Hash]sdk.Hash + func (s Storage) Copy() Storage + type StructLog struct + Depth uint64 + Err error + Gas uint64 + GasCost uint64 + Memory []byte + MemorySize int + Op OpCode + Pc uint64 + RefundCounter uint64 + Stack []*big.Int + Storage map[sdk.Hash]sdk.Hash + func (s *StructLog) ErrorString() string + func (s *StructLog) OpName() string + type StructLogger struct + func NewStructLogger(cfg *LogConfig) *StructLogger + func (l *StructLogger) CaptureEnd(output []byte, gasUsed uint64, t time.Duration, err error) error + func (l *StructLogger) CaptureFault(env *EVM, pc uint64, op OpCode, gas, cost uint64, memory *Memory, stack *Stack, ...) error + func (l *StructLogger) CaptureStart(from sdk.AccAddress, to sdk.AccAddress, create bool, input []byte, gas uint64, ...) error + func (l *StructLogger) CaptureState(env *EVM, pc uint64, op OpCode, gas, cost uint64, memory *Memory, stack *Stack, ...) error + func (l *StructLogger) Error() error + func (l *StructLogger) Output() []byte + func (l *StructLogger) StructLogs() []StructLog + type Tracer interface + CaptureEnd func(output []byte, gasUsed uint64, t time.Duration, err error) error + CaptureFault func(env *EVM, pc uint64, op OpCode, gas, cost uint64, memory *Memory, stack *Stack, ...) error + CaptureStart func(from sdk.AccAddress, to sdk.AccAddress, call bool, input []byte, gas uint64, ...) error + CaptureState func(env *EVM, pc uint64, op OpCode, gas, cost uint64, memory *Memory, stack *Stack, ...) error + type TransferFunc func(sdk.AccAddress, sdk.AccAddress, *big.Int)