Versions in this module Expand all Collapse all v0 v0.1.0 Jan 19, 2024 Changes in this version + const AttributeKeyContractAddress + const AttributeKeyRecipient + const AttributeValueCategory + const BloomBitsBlocks + const BloomFilterThreads + const BloomRetrievalBatch + const BloomRetrievalWait + const BloomServiceThreads + const ChainConfigName + const CodeGetBlockTxHashesFailed + const CodeGetChainHeightFailed + const ContractMethodBlockedCacheSize + const ContractStateCache + const DefaultCodespace + const DefaultMaxGasLimitPerTx + const DefaultParamspace + const EventTypeEthereumTx + const FlagEnableBloomFilter + const FlagTrieUseCompositeKey + const IGNORE_HEIGHT_CHECKING + const ManageContractBlockedListProposalName + const ManageContractDeploymentWhitelistProposalName + const ModuleName + const MsgEthereumTxName + const QueryAccount + const QueryBalance + const QueryBlockNumber + const QueryBloom + const QueryCode + const QueryCodeByHash + const QueryContractBlockedList + const QueryContractDeploymentWhitelist + const QueryContractMethodBlockedList + const QueryEthBlockByHash + const QueryEthBlockByHeight + const QueryExportAccount + const QueryHashToHeight + const QueryHeightToHash + const QueryNonce + const QueryParameters + const QuerySection + const QueryStorage + const QueryStorageByKey + const QueryStorageProof + const QueryStorageRoot + const QuerySysContractAddress + const RouterKey + const SysContractAddressKey + const TxDataName + const TypeMsgEthereumTx + const Uint64Length + var CodeSpaceEvmCallFailed = uint32(7) + var DefaultDeployContractFnSignature = ethcmn.Hex2Bytes("0000000000000000000000000000000000000000000000000000000000000001") + var DefaultGuFactor = sdk.NewDec(-1) + var DefaultSendCoinFnSignature = ethcmn.Hex2Bytes("0000000000000000000000000000000000000000000000000000000000000010") + var ErrCallDisabled = sdkerrors.Register(ModuleName, 6, "EVM Call operation is disabled") + var ErrChainConfigNotFound = sdkerrors.Register(ModuleName, 3, "chain configuration not found") + var ErrCreateDisabled = sdkerrors.Register(ModuleName, 5, "EVM Create operation is disabled") + var ErrDuplicatedAddr = sdkerrors.Register(ModuleName, 12, "Duplicated address in address list") + var ErrDuplicatedMethod = sdkerrors.Register(ModuleName, 17, "Duplicated contract method in address list") + var ErrEmptyAddr = sdkerrors.Register(ModuleName, 25, "Empty address in list") + var ErrEmptyAddressBlockedContract = sdkerrors.Register(ModuleName, 19, "Empty address in contract method blocked list is not allowed") + var ErrEmptyAddressList = sdkerrors.Register(ModuleName, 11, "Empty account address list") + var ErrEmptyMethod = sdkerrors.Register(ModuleName, 18, "Empty contract method blocked is not allowed") + var ErrGUFactor = sdkerrors.Register(ModuleName, 24, "gu_factor should non-negative") + var ErrInvalidChainConfig = sdkerrors.Register(ModuleName, 4, "invalid chain configuration") + var ErrInvalidState = sdkerrors.Register(ModuleName, 2, "invalid storage state") + var ErrKeyNotFound = sdkerrors.Register(ModuleName, 8, "Key not found in database") + var ErrOperation = sdkerrors.Register(ModuleName, 16, ...) + var ErrStrConvertFailed = sdkerrors.Register(ModuleName, 9, "Failed to convert string") + var ErrUnexpectedProposalType = sdkerrors.Register(ModuleName, 10, "Unsupported proposal type of evm module") + var ErrorContractMethodBlockedIsNotExist = errors.New("it's not exist in contract method blocked list") + var ErrorHexData = "HexData" + var EventTypeContractUpdateByProposal = "contract-update-by-proposal" + var KeyPrefixBlockHash = []byte + var KeyPrefixBloom = []byte + var KeyPrefixChainConfig = []byte + var KeyPrefixCode = []byte + var KeyPrefixContractBlockedList = []byte + var KeyPrefixContractCodeHash = []byte + var KeyPrefixContractDeploymentWhitelist = []byte + var KeyPrefixEthBlockByHash = []byte + var KeyPrefixEthBlockByHeight = []byte + var KeyPrefixEvmRootHash = []byte("evmRootHash") + var KeyPrefixHeightHash = []byte + var KeyPrefixStorage = []byte + var KeyPrefixSysContractAddress = []byte + var ModuleCdc = codec.New() + var ParamStoreKeyContractBlockedList = []byte("EnableContractBlockedList") + var ParamStoreKeyContractDeploymentWhitelist = []byte("EnableContractDeploymentWhitelist") + var ParamStoreKeyEnableCall = []byte("EnableCall") + var ParamStoreKeyEnableCreate = []byte("EnableCreate") + var ParamStoreKeyExtraEIPs = []byte("EnableExtraEIPs") + var ParamStoreKeyMaxGasLimitPerTx = []byte("MaxGasLimitPerTx") + func AddressStoragePrefix(address ethcmn.Address) []byte + func AppendBlockByHashKey(blockHash []byte) []byte + func AppendBlockByHeightKey(height uint64) []byte + func AppendBlockHashKey(blockHash []byte) []byte + func AppendBloomKey(height int64) []byte + func AppendHeightHashKey(height uint64) []byte + func BlockedContractListIsEqual(t *testing.T, src, dst BlockedContractList) bool + func BloomDb() dbm.DB + func BloomKey(height int64) []byte + func CloseIndexer() + func ContractMethodsIsEqual(src, dst ContractMethods) bool + func EncodeResultData(data *ResultData) ([]byte, error) + func ErrBlockedContractMethodIsNotExist(address sdk.Address, err error) sdk.EnvelopedErr + func ErrCallBlockedContract(descriptor string) sdk.EnvelopedErr + func ErrCodeProposerMustBeValidator() sdk.Error + func ErrContractCodeNotBeenUpdated(addr string) sdk.EnvelopedErr + func ErrNotContracAddress(err error) sdk.EnvelopedErr + func ErrOversizeAddrList(length int) sdk.EnvelopedErr + func ErrSysContractAddressIsNotExist(err error) sdk.EnvelopedErr + func ErrUnauthorizedAccount(distributorAddr sdk.AccAddress) sdk.EnvelopedErr + func EthAddressToString(address *ethcmn.Address) string + func GenerateEthAddress() ethcmn.Address + func GetContractBlockedListMemberKey(contractAddr sdk.AccAddress) []byte + func GetContractDeploymentWhitelistMemberKey(distributorAddr sdk.AccAddress) []byte + func GetEnableBloomFilter() bool + func GetHashFn(ctx sdk.Context, csdb *CommitStateDB) vm.GetHashFunc + func GetInitContractCodeHashKey(contractAddr sdk.AccAddress) []byte + func GetSysContractAddressKey() []byte + func GetTracerResult(tracer tracers.Tracer, result *core.ExecutionResult) ([]byte, error) + func HeightKey(height uint64) []byte + func InitIndexer(db dbm.DB) + func IsBlockHashKey(key []byte) bool + func IsBloomKey(key []byte) bool + func IsEvmEvent(txResult *abci.ResponseDeliverTx) bool + func Keccak256HashWithCache(compositeKey []byte) ethcmn.Hash + func MarshalEthLogToAmino(log *ethtypes.Log) ([]byte, error) + func MarshalLogs(logs []*ethtypes.Log) ([]byte, error) + func NewNoOpTracer() tracers.Tracer + func ParamKeyTable() params.KeyTable + func ReadBloomBits(db ethdb.KeyValueReader, bit uint, section uint64, head common.Hash) ([]byte, error) + func RegisterCodec(cdc *codec.Codec) + func ResetCommitStateDB(csdb *CommitStateDB, csdbParams CommitStateDBParams, ctx *sdk.Context) + func SetEvmParamsNeedUpdate() + func SortContractMethods(cms []ContractMethod) + func TestTracerConfig(traceConfig *TraceConfig) error + func TxDecoder(cdc codec.CdcAbstraction) sdk.TxDecoder + func UnmarshalEthLogFromAmino(data []byte) (*ethtypes.Log, error) + func UnmarshalLogs(in []byte) ([]*ethtypes.Log, error) + func ValidateLog(log *ethtypes.Log) error + func ValidateSigner(signBytes, sig []byte, signer ethcmn.Address) error + func WriteBloomBits(batch dbm.Batch, bit uint, section uint64, head common.Hash, bits []byte) + type ABI struct + func NewABI(data string) (*ABI, error) + func (a *ABI) DecodeInputParam(methodName string, data []byte) ([]interface{}, error) + func (a *ABI) EncodeOutput(methodName string, data []byte) ([]byte, error) + func (a *ABI) GetMethodById(calldata []byte) (*abi.Method, error) + func (a *ABI) IsMatchFunction(methodName string, data []byte) bool + type AccountKeeper interface + GetAccount func(ctx sdk.Context, addr sdk.AccAddress) authexported.Account + GetAllAccounts func(ctx sdk.Context) (accounts []authexported.Account) + IterateAccounts func(ctx sdk.Context, cb func(account authexported.Account) bool) + NewAccountWithAddress func(ctx sdk.Context, addr sdk.AccAddress) authexported.Account + RemoveAccount func(ctx sdk.Context, account authexported.Account) + SetAccount func(ctx sdk.Context, account authexported.Account) + SetObserverKeeper func(observer auth.ObserverI) + type AddressList []sdk.AccAddress + func (al AddressList) String() string + type BankKeeper interface + BlacklistedAddr func(addr sdk.AccAddress) bool + type Block struct + Difficulty hexutil.Uint64 + ExtraData hexutil.Bytes + GasLimit hexutil.Uint64 + GasUsed *hexutil.Big + Hash common.Hash + LogsBloom ethtypes.Bloom + Miner common.Address + MixHash common.Hash + Nonce BlockNonce + Number hexutil.Uint64 + ParentHash common.Hash + ReceiptsRoot common.Hash + Size hexutil.Uint64 + StateRoot common.Hash + Timestamp hexutil.Uint64 + TotalDifficulty hexutil.Uint64 + Transactions interface{} + TransactionsRoot common.Hash + UncleHash common.Hash + Uncles []common.Hash + func (b *Block) EthHash() common.Hash + type BlockNonce [8]byte + func EncodeNonce(i uint64) BlockNonce + func (n *BlockNonce) UnmarshalText(input []byte) error + func (n BlockNonce) MarshalText() ([]byte, error) + func (n BlockNonce) Uint64() uint64 + type BlockedContract struct + Address sdk.AccAddress + BlockMethods ContractMethods + func NewBlockContract(addr sdk.AccAddress, methods ContractMethods) *BlockedContract + func (bc BlockedContract) IsAllMethodBlocked() bool + func (bc BlockedContract) IsMethodBlocked(method string) bool + func (bc BlockedContract) String() string + func (bc BlockedContract) ValidateBasic() sdk.Error + func (bc BlockedContract) ValidateExtra() sdk.Error + type BlockedContractList []BlockedContract + func (bl BlockedContractList) GetBlockedContract(addr sdk.AccAddress) *BlockedContract + func (bl BlockedContractList) String() string + func (bl BlockedContractList) ValidateBasic() sdk.Error + func (bl BlockedContractList) ValidateExtra() sdk.Error + type Cache struct + func GetEvmParamsCache() *Cache + func NewCache() *Cache + func (c *Cache) GetBlockedContractMethod(addr string) (contract *BlockedContract) + func (c *Cache) GetParams() Params + func (c *Cache) IsNeedBlockedUpdate() bool + func (c *Cache) IsNeedParamsUpdate() bool + func (c *Cache) SetNeedBlockedUpdate() + func (c *Cache) SetNeedParamsUpdate() + func (c *Cache) UpdateBlockedContractMethod(bcl BlockedContractList, isCheckTx bool) + func (c *Cache) UpdateParams(params Params, isCheckTx bool) + type CacheCode struct + Code []byte + CodeHash []byte + type ChainConfig struct + ByzantiumBlock sdk.Int + ConstantinopleBlock sdk.Int + DAOForkBlock sdk.Int + DAOForkSupport bool + EIP150Block sdk.Int + EIP150Hash string + EIP155Block sdk.Int + EIP158Block sdk.Int + EWASMBlock sdk.Int + HomesteadBlock sdk.Int + IstanbulBlock sdk.Int + MuirGlacierBlock sdk.Int + PetersburgBlock sdk.Int + YoloV2Block sdk.Int + func DefaultChainConfig() ChainConfig + func (cc ChainConfig) EthereumConfig(chainID *big.Int) *params.ChainConfig + func (cc ChainConfig) IsHomestead() bool + func (cc ChainConfig) IsIstanbul() bool + func (cc ChainConfig) String() string + func (cc ChainConfig) Validate() error + func (config *ChainConfig) UnmarshalFromAmino(cdc *amino.Codec, data []byte) error + type CommitStateDB struct + GuFactor sdk.Dec + func CreateEmptyCommitStateDB(csdbParams CommitStateDBParams, ctx sdk.Context) *CommitStateDB + func NewCommitStateDB(csdbParams CommitStateDBParams) *CommitStateDB + func (csdb *CommitStateDB) AddAddressToAccessList(addr ethcmn.Address) + func (csdb *CommitStateDB) AddBalance(addr ethcmn.Address, amount *big.Int) + func (csdb *CommitStateDB) AddLog(log *ethtypes.Log) + func (csdb *CommitStateDB) AddPreimage(hash ethcmn.Hash, preimage []byte) + func (csdb *CommitStateDB) AddRefund(gas uint64) + func (csdb *CommitStateDB) AddSlotToAccessList(addr ethcmn.Address, slot ethcmn.Hash) + func (csdb *CommitStateDB) AddressInAccessList(addr ethcmn.Address) bool + func (csdb *CommitStateDB) BlockHash() ethcmn.Hash + func (csdb *CommitStateDB) CMChangeCommit(writeCacheWithRWSet func() types.MultiSnapshotWSet) + func (csdb *CommitStateDB) ClearStateObjects() + func (csdb *CommitStateDB) Commit(deleteEmptyObjects bool) (ethcmn.Hash, error) + func (csdb *CommitStateDB) CommitMpt(prefetcher *mpt.TriePrefetcher) (ethcmn.Hash, error) + func (csdb *CommitStateDB) CreateAccount(addr ethcmn.Address) + func (csdb *CommitStateDB) Database() ethstate.Database + func (csdb *CommitStateDB) DeleteContractBlockedList(addrList AddressList) + func (csdb *CommitStateDB) DeleteContractDeploymentWhitelist(addrList AddressList) + func (csdb *CommitStateDB) DeleteContractMethodBlockedList(contractList BlockedContractList) sdk.Error + func (csdb *CommitStateDB) DeleteLogs(hash ethcmn.Hash) + func (csdb *CommitStateDB) Empty(addr ethcmn.Address) bool + func (csdb *CommitStateDB) Error() error + func (csdb *CommitStateDB) Exist(addr ethcmn.Address) bool + func (csdb *CommitStateDB) Finalise(deleteEmptyObjects bool) + func (csdb *CommitStateDB) ForEachStorage(addr ethcmn.Address, cb func(key, value ethcmn.Hash) (stop bool)) error + func (csdb *CommitStateDB) ForEachStorageMpt(so *stateObject, cb func(key, value ethcmn.Hash) (stop bool)) error + func (csdb *CommitStateDB) GetAccount(addr ethcmn.Address) *ethermint.EthAccount + func (csdb *CommitStateDB) GetBalance(addr ethcmn.Address) *big.Int + func (csdb *CommitStateDB) GetCacheCode(addr ethcmn.Address) *CacheCode + func (csdb *CommitStateDB) GetCode(addr ethcmn.Address) []byte + func (csdb *CommitStateDB) GetCodeByHash(hash ethcmn.Hash) []byte + func (csdb *CommitStateDB) GetCodeByHashInRawDB(hash ethcmn.Hash) []byte + func (csdb *CommitStateDB) GetCodeHash(addr ethcmn.Address) ethcmn.Hash + func (csdb *CommitStateDB) GetCodeSize(addr ethcmn.Address) int + func (csdb *CommitStateDB) GetCommittedState(addr ethcmn.Address, hash ethcmn.Hash) ethcmn.Hash + func (csdb *CommitStateDB) GetCommittedStateForQuery(addr ethcmn.Address, hash ethcmn.Hash) []byte + func (csdb *CommitStateDB) GetContractBlockedList() (blockedList AddressList) + func (csdb *CommitStateDB) GetContractDeploymentWhitelist() (whitelist AddressList) + func (csdb *CommitStateDB) GetContractMethodBlockedByAddress(contractAddr sdk.AccAddress) *BlockedContract + func (csdb *CommitStateDB) GetContractMethodBlockedList() (blockedContractList BlockedContractList) + func (csdb *CommitStateDB) GetHeightHash(height uint64) ethcmn.Hash + func (csdb *CommitStateDB) GetLogSize() uint + func (csdb *CommitStateDB) GetLogs(hash ethcmn.Hash) ([]*ethtypes.Log, error) + func (csdb *CommitStateDB) GetNonce(addr ethcmn.Address) uint64 + func (csdb *CommitStateDB) GetOrNewStateObject(addr ethcmn.Address) StateObject + func (csdb *CommitStateDB) GetParams() Params + func (csdb *CommitStateDB) GetProof(addr ethcmn.Address) ([][]byte, error) + func (csdb *CommitStateDB) GetProofByHash(addrHash ethcmn.Hash) ([][]byte, error) + func (csdb *CommitStateDB) GetRefund() uint64 + func (csdb *CommitStateDB) GetState(addr ethcmn.Address, hash ethcmn.Hash) ethcmn.Hash + func (csdb *CommitStateDB) GetStorageProof(a ethcmn.Address, key ethcmn.Hash) ([][]byte, error) + func (csdb *CommitStateDB) HasSuicided(addr ethcmn.Address) bool + func (csdb *CommitStateDB) InsertContractMethodBlockedList(contractList BlockedContractList) sdk.Error + func (csdb *CommitStateDB) IntermediateRoot(deleteEmptyObjects bool) ethcmn.Hash + func (csdb *CommitStateDB) IsContractInBlockedList(contractAddr sdk.AccAddress) bool + func (csdb *CommitStateDB) IsContractMethodBlocked(contractAddr sdk.AccAddress, method string) bool + func (csdb *CommitStateDB) IsDeployerInWhitelist(deployerAddr sdk.AccAddress) bool + func (csdb *CommitStateDB) IteratorCode(cb func(addr ethcmn.Address, c CacheCode) bool) + func (csdb *CommitStateDB) Logger() log.Logger + func (csdb *CommitStateDB) MarkUpdatedAcc(addList []ethcmn.Address) + func (csdb *CommitStateDB) Preimages() map[ethcmn.Hash][]byte + func (csdb *CommitStateDB) Prepare(thash, bhash ethcmn.Hash, txi int) + func (csdb *CommitStateDB) PrepareAccessList(sender ethcmn.Address, dest *ethcmn.Address, precompiles []ethcmn.Address, ...) + func (csdb *CommitStateDB) ProtectStateDBEnvironment(ctx sdk.Context) + func (csdb *CommitStateDB) RawDump() ethstate.Dump + func (csdb *CommitStateDB) Reset(_ ethcmn.Hash) error + func (csdb *CommitStateDB) RevertToSnapshot(revID int) + func (csdb *CommitStateDB) SetBalance(addr ethcmn.Address, amount *big.Int) + func (csdb *CommitStateDB) SetBlockHash(hash ethcmn.Hash) + func (csdb *CommitStateDB) SetCode(addr ethcmn.Address, code []byte) + func (csdb *CommitStateDB) SetContractBlockedList(addrList AddressList) + func (csdb *CommitStateDB) SetContractDeploymentWhitelist(addrList AddressList) + func (csdb *CommitStateDB) SetContractMethodBlocked(contract BlockedContract) + func (csdb *CommitStateDB) SetError(err error) + func (csdb *CommitStateDB) SetHeightHash(height uint64, hash ethcmn.Hash) + func (csdb *CommitStateDB) SetInternalDb(dba DbAdapter) + func (csdb *CommitStateDB) SetLogSize(logSize uint) + func (csdb *CommitStateDB) SetLogs(hash ethcmn.Hash, logs []*ethtypes.Log) error + func (csdb *CommitStateDB) SetNonce(addr ethcmn.Address, nonce uint64) + func (csdb *CommitStateDB) SetParams(params Params) + func (csdb *CommitStateDB) SetState(addr ethcmn.Address, key, value ethcmn.Hash) + func (csdb *CommitStateDB) SetStorage(addr common.Address, storage map[common.Hash]common.Hash) + func (csdb *CommitStateDB) SetTransactionHash(thash ethcmn.Hash) + func (csdb *CommitStateDB) SlotInAccessList(addr ethcmn.Address, slot ethcmn.Hash) (bool, bool) + func (csdb *CommitStateDB) Snapshot() int + func (csdb *CommitStateDB) StartPrefetcher(namespace string) + func (csdb *CommitStateDB) StopPrefetcher() + func (csdb *CommitStateDB) StorageTrie(addr ethcmn.Address) ethstate.Trie + func (csdb *CommitStateDB) SubBalance(addr ethcmn.Address, amount *big.Int) + func (csdb *CommitStateDB) SubRefund(gas uint64) + func (csdb *CommitStateDB) Suicide(addr ethcmn.Address) bool + func (csdb *CommitStateDB) TxIndex() int + func (csdb *CommitStateDB) UpdateContractBytecode(ctx sdk.Context, p ManageContractByteCodeProposal) sdk.Error + func (csdb *CommitStateDB) WithContext(ctx sdk.Context) *CommitStateDB + type CommitStateDBParams struct + AccountKeeper AccountKeeper + Ada DbAdapter + BankKeeper BankKeeper + Cdc *codec.Codec + DB ethstate.Database + ParamSpace Subspace + StateCache *fastcache.Cache + StoreKey sdk.StoreKey + SupplyKeeper SupplyKeeper + type ContractMethod struct + Extra string + Sign string + func (cm ContractMethod) GetGuFactor() *GuFactor + func (cm ContractMethod) String() string + type ContractMethodBlockedCache struct + func NewContractMethodBlockedCache() *ContractMethodBlockedCache + func (cmbc *ContractMethodBlockedCache) GetContractMethod(keyData []byte) (ContractMethods, bool) + func (cmbc *ContractMethodBlockedCache) SetContractMethod(keyData []byte, bc ContractMethods) + type ContractMethods []ContractMethod + func (cms *ContractMethods) DeleteContractMethodMap(methods ContractMethods) (ContractMethods, error) + func (cms *ContractMethods) InsertContractMethods(methods ContractMethods) (ContractMethods, error) + func (cms ContractMethods) GetContractMethodsMap() map[string]ContractMethod + func (cms ContractMethods) GetMethod(method string) *ContractMethod + func (cms ContractMethods) IsContain(method string) bool + func (cms ContractMethods) String() string + func (cms ContractMethods) ValidateBasic() sdk.Error + func (cms ContractMethods) ValidateExtra() sdk.Error + type ContractVerifier struct + func NewContractVerifier(params Params) *ContractVerifier + func (cv ContractVerifier) Verify(stateDB vm.StateDB, op vm.OpCode, from, to common.Address, input []byte, ...) error + type DbAdapter interface + NewStore func(parent types.KVStore, prefix []byte) StoreProxy + type DefaultPrefixDb struct + func (d DefaultPrefixDb) NewStore(parent types.KVStore, Prefix []byte) StoreProxy + type ErrContractBlockedVerify struct + Descriptor string + type EthAddressStringer ethcmn.Address + func (address EthAddressStringer) String() string + type EthHashStringer ethcmn.Hash + func (h EthHashStringer) String() string + type EvmHooks interface + PostTxProcessing func(ctx sdk.Context, st *StateTransition, receipt *ethtypes.Receipt) error + type EvmLogHandler interface + EventID func() common.Hash + Handle func(ctx sdk.Context, contract common.Address, data []byte) error + type ExecutionResult struct + Bloom *big.Int + GasInfo GasInfo + Logs []*ethtypes.Log + Result *sdk.Result + TraceLogs []byte + type GasInfo struct + GasConsumed uint64 + GasLimit uint64 + type GenesisAccount struct + Address string + Code hexutil.Bytes + Storage Storage + func (ga *GenesisAccount) UnmarshalJSON(input []byte) error + func (ga GenesisAccount) MarshalJSON() ([]byte, error) + func (ga GenesisAccount) Validate() error + type GenesisState struct + Accounts []GenesisAccount + ChainConfig ChainConfig + ContractBlockedList AddressList + ContractDeploymentWhitelist AddressList + ContractMethodBlockedList BlockedContractList + Params Params + TxsLogs []TransactionLogs + func DefaultGenesisState() GenesisState + func (gs GenesisState) Validate() error + type GuFactor struct + Factor sdk.Dec + func UnmarshalGuFactor(data string) (GuFactor, error) + func (factor GuFactor) ValidateBasic() error + type GuFactorHook struct + func (hook GuFactorHook) UpdateGuFactor(csdb *CommitStateDB, op vm.OpCode, from, to common.Address, input []byte, ...) + type Indexer struct + func GetIndexer() *Indexer + func (b *Indexer) GetDB() dbm.DB + func (i *Indexer) GetValidSections() uint64 + func (i *Indexer) IsProcessing() bool + func (i *Indexer) NotifyNewHeight(ctx sdk.Context) + func (i *Indexer) ProcessSection(ctx sdk.Context, k Keeper, interval uint64, bloomData *[]*KV) + func (i *Indexer) StoredSection() uint64 + type KV struct + Key []byte + Value []byte + func (k *KV) MarshalToAmino(cdc *amino.Codec) ([]byte, error) + func (k *KV) UnmarshalFromAmino(_ *amino.Codec, data []byte) error + type Keeper interface + GetBlockBloom func(ctx sdk.Context, height int64) ethtypes.Bloom + GetHeightHash func(ctx sdk.Context, height uint64) common.Hash + type ManageContractBlockedListProposal struct + ContractAddrs AddressList + Description string + IsAdded bool + Title string + func NewManageContractBlockedListProposal(title, description string, contractAddrs AddressList, isAdded bool) ManageContractBlockedListProposal + func (mp ManageContractBlockedListProposal) GetDescription() string + func (mp ManageContractBlockedListProposal) GetTitle() string + func (mp ManageContractBlockedListProposal) ProposalRoute() string + func (mp ManageContractBlockedListProposal) ProposalType() string + func (mp ManageContractBlockedListProposal) String() string + func (mp ManageContractBlockedListProposal) ValidateBasic() sdk.Error + type ManageContractByteCodeProposal struct + Contract sdk.AccAddress + Description string + SubstituteContract sdk.AccAddress + Title string + func NewManageContractByteCodeProposal(title, description string, Contract sdk.AccAddress, ...) ManageContractByteCodeProposal + func (mp ManageContractByteCodeProposal) GetDescription() string + func (mp ManageContractByteCodeProposal) GetTitle() string + func (mp ManageContractByteCodeProposal) ProposalRoute() string + func (mp ManageContractByteCodeProposal) ProposalType() string + func (mp ManageContractByteCodeProposal) String() string + func (mp ManageContractByteCodeProposal) ValidateBasic() sdk.Error + type ManageContractDeploymentWhitelistProposal struct + Description string + DistributorAddrs AddressList + IsAdded bool + Title string + func NewManageContractDeploymentWhitelistProposal(title, description string, distributorAddrs []sdk.AccAddress, isAdded bool) ManageContractDeploymentWhitelistProposal + func (mp ManageContractDeploymentWhitelistProposal) GetDescription() string + func (mp ManageContractDeploymentWhitelistProposal) GetTitle() string + func (mp ManageContractDeploymentWhitelistProposal) ProposalRoute() string + func (mp ManageContractDeploymentWhitelistProposal) ProposalType() string + func (mp ManageContractDeploymentWhitelistProposal) String() string + func (mp ManageContractDeploymentWhitelistProposal) ValidateBasic() sdk.Error + type ManageContractMethodBlockedListProposal struct + ContractList BlockedContractList + Description string + IsAdded bool + Title string + func NewManageContractMethodBlockedListProposal(title, description string, contractList BlockedContractList, isAdded bool) ManageContractMethodBlockedListProposal + func (mp *ManageContractMethodBlockedListProposal) FixShortAddr() + func (mp ManageContractMethodBlockedListProposal) GetDescription() string + func (mp ManageContractMethodBlockedListProposal) GetTitle() string + func (mp ManageContractMethodBlockedListProposal) ProposalRoute() string + func (mp ManageContractMethodBlockedListProposal) ProposalType() string + func (mp ManageContractMethodBlockedListProposal) String() string + func (mp ManageContractMethodBlockedListProposal) ValidateBasic() sdk.Error + type ManageSysContractAddressProposal struct + ContractAddr sdk.AccAddress + Description string + IsAdded bool + Title string + func NewManageSysContractAddressProposal(title, description string, addr sdk.AccAddress, isAdded bool) ManageSysContractAddressProposal + func (mp ManageSysContractAddressProposal) GetDescription() string + func (mp ManageSysContractAddressProposal) GetTitle() string + func (mp ManageSysContractAddressProposal) ProposalRoute() string + func (mp ManageSysContractAddressProposal) ProposalType() string + func (mp ManageSysContractAddressProposal) String() string + func (mp ManageSysContractAddressProposal) ValidateBasic() sdk.Error + type MsgEthereumTx struct + Data TxData + func NewMsgEthereumTx(nonce uint64, to *ethcmn.Address, amount *big.Int, gasLimit uint64, ...) *MsgEthereumTx + func NewMsgEthereumTxContract(nonce uint64, amount *big.Int, gasLimit uint64, gasPrice *big.Int, ...) *MsgEthereumTx + func (msg *MsgEthereumTx) AccountAddress() sdk.AccAddress + func (msg *MsgEthereumTx) CalcCostTo(total *big.Int) *big.Int + func (msg *MsgEthereumTx) CalcFee(fee *big.Int) *big.Int + func (msg *MsgEthereumTx) ChainID() *big.Int + func (msg *MsgEthereumTx) Cost() *big.Int + func (msg *MsgEthereumTx) DecodeRLP(s *rlp.Stream) error + func (msg *MsgEthereumTx) EncodeRLP(w io.Writer) error + func (msg *MsgEthereumTx) EthereumAddress() ethcmn.Address + func (msg *MsgEthereumTx) Fee() *big.Int + func (msg *MsgEthereumTx) GetFee() sdk.Coins + func (msg *MsgEthereumTx) GetGas() uint64 + func (msg *MsgEthereumTx) GetGasPrice() *big.Int + func (msg *MsgEthereumTx) GetMsgs() []sdk.Msg + func (msg *MsgEthereumTx) GetNonce() uint64 + func (msg *MsgEthereumTx) GetSignBytes() []byte + func (msg *MsgEthereumTx) GetSigners() []sdk.AccAddress + func (msg *MsgEthereumTx) GetTxFnSignatureInfo() ([]byte, int) + func (msg *MsgEthereumTx) HomesteadSignHash() ethcmn.Hash + func (msg *MsgEthereumTx) Protected() bool + func (msg *MsgEthereumTx) RLPSignBytes(chainID *big.Int) (h ethcmn.Hash) + func (msg *MsgEthereumTx) RawSignatureValues() (v, r, s *big.Int) + func (msg *MsgEthereumTx) Route() string + func (msg *MsgEthereumTx) Sign(chainID *big.Int, priv *ecdsa.PrivateKey) error + func (msg *MsgEthereumTx) String() string + func (msg *MsgEthereumTx) To() *ethcmn.Address + func (msg *MsgEthereumTx) Type() string + func (msg *MsgEthereumTx) UnmarshalFromAmino(cdc *amino.Codec, data []byte) error + func (msg *MsgEthereumTx) ValidateBasic() error + func (msg *MsgEthereumTx) VerifySig(chainID *big.Int, height int64) error + func (msg MsgEthereumTx) FeePayer(ctx sdk.Context) sdk.AccAddress + func (msg MsgEthereumTx) GetSender(ctx sdk.Context) string + func (tx *MsgEthereumTx) GetEthAddr() string + func (tx *MsgEthereumTx) GetFrom() string + func (tx *MsgEthereumTx) GetType() sdk.TransactionType + func (tx *MsgEthereumTx) SetFrom(addr string) + type NoOpTracer struct + func (dt NoOpTracer) CaptureEnd(output []byte, gasUsed uint64, t time.Duration, err error) + func (dt NoOpTracer) CaptureEnter(typ vm.OpCode, from common.Address, to common.Address, input []byte, ...) + func (dt NoOpTracer) CaptureExit(output []byte, gasUsed uint64, err error) + func (dt NoOpTracer) CaptureFault(pc uint64, op vm.OpCode, gas, cost uint64, scope *vm.ScopeContext, depth int, ...) + func (dt NoOpTracer) CaptureStart(env *vm.EVM, from, to common.Address, create bool, input []byte, gas uint64, ...) + func (dt NoOpTracer) CaptureState(pc uint64, op vm.OpCode, gas, cost uint64, scope *vm.ScopeContext, ...) + func (dt NoOpTracer) CaptureTxEnd(restGas uint64) + func (dt NoOpTracer) CaptureTxStart(gasLimit uint64) + func (dt NoOpTracer) GetResult() (json2.RawMessage, error) + func (dt NoOpTracer) Stop(err error) + type OverrideAccount struct + Balance **hexutil.Big + Code *hexutil.Bytes + Nonce *hexutil.Uint64 + State *map[common.Hash]common.Hash + StateDiff *map[common.Hash]common.Hash + type Params struct + EnableCall bool + EnableContractBlockedList bool + EnableContractDeploymentWhitelist bool + EnableCreate bool + ExtraEIPs []int + MaxGasLimitPerTx uint64 + func DefaultParams() Params + func NewParams(enableCreate, enableCall, enableContractDeploymentWhitelist, ... bool, ...) Params + func TestParams() Params + func (p *Params) ParamSetPairs() params.ParamSetPairs + func (p Params) String() string + func (p Params) Validate() error + type QueryBloomFilter struct + Bloom ethtypes.Bloom + func (q QueryBloomFilter) String() string + type QueryETHLogs struct + Logs []*ethtypes.Log + func (q QueryETHLogs) String() string + type QueryResAccount struct + Balance string + CodeHash []byte + Nonce uint64 + type QueryResBalance struct + Balance string + func (q QueryResBalance) String() string + type QueryResBlockNumber struct + Number int64 + func (q QueryResBlockNumber) String() string + type QueryResCode struct + Code []byte + func (q QueryResCode) String() string + type QueryResExportAccount = GenesisAccount + type QueryResNonce struct + Nonce uint64 + func (q QueryResNonce) String() string + type QueryResStorage struct + Value []byte + func (q QueryResStorage) String() string + type QueryResStorageProof struct + Proof [][]byte + Value []byte + func (q QueryResStorageProof) String() string + type ResultData struct + Bloom ethtypes.Bloom + ContractAddress ethcmn.Address + Logs []*ethtypes.Log + Ret []byte + TxHash ethcmn.Hash + func DecodeResultData(in []byte) (ResultData, error) + func (rd *ResultData) MarshalToAmino(_ *amino.Codec) ([]byte, error) + func (rd *ResultData) UnmarshalFromAmino(_ *amino.Codec, data []byte) error + func (rd ResultData) String() string + type StakingKeeper interface + IsValidator func(ctx sdk.Context, addr sdk.AccAddress) bool + type State struct + Key ethcmn.Hash + Value ethcmn.Hash + func NewState(key, value ethcmn.Hash) State + func (s *State) UnmarshalJSON(input []byte) error + func (s State) MarshalJSON() ([]byte, error) + func (s State) Validate() error + type StateObject interface + AddBalance func(amount *big.Int) + Address func() ethcmn.Address + Balance func() *big.Int + Code func(db ethstate.Database) []byte + CodeHash func() []byte + GetCommittedState func(db ethstate.Database, key ethcmn.Hash) ethcmn.Hash + GetState func(db ethstate.Database, key ethcmn.Hash) ethcmn.Hash + Nonce func() uint64 + ReturnGas func(gas *big.Int) + SetBalance func(amount *big.Int) + SetCode func(codeHash ethcmn.Hash, code []byte) + SetNonce func(nonce uint64) + SetState func(db ethstate.Database, key, value ethcmn.Hash) + SetStorage func(storage map[ethcmn.Hash]ethcmn.Hash) + SubBalance func(amount *big.Int) + type StateOverrides map[common.Address]OverrideAccount + func (diff *StateOverrides) Apply(state *CommitStateDB) + func (diff *StateOverrides) Check() error + func (diff *StateOverrides) GetBytes() ([]byte, error) + func (diff *StateOverrides) ToString() (string, error) + type StateTransition struct + AccountNonce uint64 + Amount *big.Int + ChainID *big.Int + Csdb *CommitStateDB + GasLimit uint64 + Payload []byte + Price *big.Int + Recipient *common.Address + Sender common.Address + Simulate bool + TraceTx bool + TraceTxLog bool + TxHash *common.Hash + func (st *StateTransition) SetCallToCM(callToCM vm.CallToWasmByPrecompile) + func (st StateTransition) GetCallToCM() vm.CallToWasmByPrecompile + func (st StateTransition) TransitionDb(ctx sdk.Context, config ChainConfig) (exeRes *ExecutionResult, resData *ResultData, err error, ...) + type Storage []State + func (s Storage) Copy() Storage + func (s Storage) String() string + func (s Storage) Validate() error + type StoreProxy interface + Delete func(key []byte) + Get func(key []byte) []byte + Has func(key []byte) bool + Set func(key, value []byte) + type StructLogRes struct + Depth int + Error error + Gas uint64 + GasCost uint64 + Memory *[]string + Op string + Pc uint64 + Stack *[]string + Storage *map[string]string + func FormatLogs(logs []logger.StructLog) []*StructLogRes + type Subspace interface + CustomKVStore func(ctx sdk.Context) sdk.KVStore + GetParamSet func(ctx sdk.Context, ps params.ParamSet) + SetParamSet func(ctx sdk.Context, ps params.ParamSet) + type SupplyKeeper interface + SendCoinsFromModuleToAccount func(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, ...) error + type TraceConfig struct + Debug bool + DisableMemory bool + DisableReturnData bool + DisableStack bool + DisableStorage bool + Tracer string + type TraceExecutionResult struct + Failed bool + Gas uint64 + ReturnValue string + StructLogs []*StructLogRes + type TransactionLogs struct + Hash ethcmn.Hash + Logs []*ethtypes.Log + func NewTransactionLogs(hash ethcmn.Hash, logs []*ethtypes.Log) TransactionLogs + func (tx TransactionLogs) Validate() error + type TxData struct + AccountNonce uint64 + Amount *big.Int + BTCFee *big.Int + GasLimit uint64 + Hash *ethcmn.Hash + Payload []byte + Price *big.Int + R *big.Int + Recipient *ethcmn.Address + S *big.Int + V *big.Int + func (td *TxData) UnmarshalAmino(data []byte) error + func (td *TxData) UnmarshalFromAmino(cdc *amino.Codec, data []byte) error + func (td TxData) MarshalAmino() ([]byte, error) + func (td TxData) String() string + type Unmarshaler func(bytes []byte, ptr interface{}) error + type Watcher interface + AddDelAccMsg func(account auth.Account, isDirectly bool) + DeleteContractBlockedList func(addr sdk.AccAddress) + DeleteContractDeploymentWhitelist func(addr sdk.AccAddress) + Enabled func() bool + SaveAccount func(account auth.Account, isDirectly bool) + SaveContractBlockedListItem func(addr sdk.AccAddress) + SaveContractDeploymentWhitelistItem func(addr sdk.AccAddress) + SaveContractMethodBlockedListItem func(addr sdk.AccAddress, methods []byte) + SaveState func(addr ethcmn.Address, key, value []byte)