Versions in this module Expand all Collapse all v0 v0.2.1 Oct 27, 2021 v0.2.0 Oct 21, 2021 Changes in this version + const DefaultGasPerIota + const FieldAddress + const FieldAgentID + const FieldBlockHash + const FieldBlockNumber + const FieldCallArguments + const FieldCallMsg + const FieldChainID + const FieldEvmOwner + const FieldFilterQuery + const FieldGasFee + const FieldGasPerIota + const FieldGasUsed + const FieldGenesisAlloc + const FieldKey + const FieldNextEvmOwner + const FieldResult + const FieldTransaction + const FieldTransactionData + const FieldTransactionDataBlobHash + const FieldTransactionHash + const FieldTransactionIndex + var Contract = coreutil.NewContract("evmchain", "EVM chain smart contract") + var FuncCallContract = coreutil.ViewFunc("callContract") + var FuncClaimOwnership = coreutil.Func("claimOwnership") + var FuncEstimateGas = coreutil.ViewFunc("estimateGas") + var FuncGetBalance = coreutil.ViewFunc("getBalance") + var FuncGetBlockByHash = coreutil.ViewFunc("getBlockByHash") + var FuncGetBlockByNumber = coreutil.ViewFunc("getBlockByNumber") + var FuncGetBlockNumber = coreutil.ViewFunc("getBlockNumber") + var FuncGetBlockTransactionCountByHash = coreutil.ViewFunc("getBlockTransactionCountByHash") + var FuncGetBlockTransactionCountByNumber = coreutil.ViewFunc("getBlockTransactionCountByNumber") + var FuncGetCode = coreutil.ViewFunc("getCode") + var FuncGetGasPerIota = coreutil.ViewFunc("getGasPerIota") + var FuncGetLogs = coreutil.ViewFunc("getLogs") + var FuncGetNonce = coreutil.ViewFunc("getNonce") + var FuncGetOwner = coreutil.ViewFunc("getOwner") + var FuncGetReceipt = coreutil.ViewFunc("getReceipt") + var FuncGetStorage = coreutil.ViewFunc("getStorage") + var FuncGetTransactionByBlockHashAndIndex = coreutil.ViewFunc("getTransactionByBlockHashAndIndex") + var FuncGetTransactionByBlockNumberAndIndex = coreutil.ViewFunc("getTransactionByBlockNumberAndIndex") + var FuncGetTransactionByHash = coreutil.ViewFunc("getTransactionByHash") + var FuncSendTransaction = coreutil.Func("sendTransaction") + var FuncSetGasPerIota = coreutil.Func("setGasPerIota") + var FuncSetNextOwner = coreutil.Func("setNextOwner") + var FuncWithdrawGasFees = coreutil.Func("withdrawGasFees") + var Processor = Contract.Processor(initialize, FuncSendTransaction.WithHandler(applyTransaction), ...) + func DecodeBlock(b []byte) (*types.Block, error) + func DecodeCallMsg(callArgsBytes []byte) (ret ethereum.CallMsg, err error) + func DecodeFilterQuery(b []byte) (*ethereum.FilterQuery, error) + func DecodeGenesisAlloc(b []byte) (core.GenesisAlloc, error) + func DecodeLog(b []byte, includeDerivedFields bool) (*types.Log, error) + func DecodeLogs(b []byte) ([]*types.Log, error) + func DecodeTransaction(b []byte) (*types.Transaction, error) + func EncodeBlock(block *types.Block) []byte + func EncodeCallMsg(c ethereum.CallMsg) []byte + func EncodeFilterQuery(q *ethereum.FilterQuery) []byte + func EncodeGenesisAlloc(alloc core.GenesisAlloc) []byte + func EncodeLog(log *types.Log, includeDerivedFields bool) []byte + func EncodeLogs(logs []*types.Log) []byte + func EncodeTransaction(tx *types.Transaction) []byte + type Receipt struct + BlockHash common.Hash + BlockNumber *big.Int + Bloom types.Bloom + ContractAddress *common.Address + CumulativeGasUsed uint64 + From common.Address + GasUsed uint64 + Logs []*types.Log + Status uint64 + To *common.Address + TransactionIndex uint32 + TxHash common.Hash + func DecodeReceipt(receiptBytes []byte) (*Receipt, error) + func NewReceipt(r *types.Receipt, tx *types.Transaction) *Receipt + func (r *Receipt) Bytes() []byte