Documentation ¶
Index ¶
Constants ¶
View Source
const ( FieldChainID = "chid" FieldGenesisAlloc = "g" FieldAddress = "a" FieldKey = "k" FieldAgentID = "i" FieldTransaction = "tx" FieldTransactionIndex = "ti" FieldTransactionHash = "h" FieldTransactionData = "t" FieldTransactionDataBlobHash = "th" FieldCallArguments = "c" FieldResult = "r" FieldBlockNumber = "bn" FieldBlockHash = "bh" FieldCallMsg = "c" FieldNextEVMOwner = "n" FieldGasPerIota = "w" FieldGasFee = "f" FieldGasUsed = "gu" FieldGasLimit = "gl" FieldFilterQuery = "fq" FieldBlockTime = "bt" // uint32, avg block time in seconds FieldBlockKeepAmount = "bk" // int32 )
View Source
const ( DefaultChainID = 1074 // IOTA -- get it? DefaultGasPerIota uint64 = 1000 GasLimitDefault = uint64(15000000) BlockKeepAll = -1 BlockKeepAmountDefault = BlockKeepAll )
Variables ¶
View Source
var ( // Ethereum blockchain FuncGetBalance = coreutil.ViewFunc("getBalance") FuncSendTransaction = coreutil.Func("sendTransaction") FuncCallContract = coreutil.ViewFunc("callContract") FuncEstimateGas = coreutil.ViewFunc("estimateGas") FuncGetNonce = coreutil.ViewFunc("getNonce") FuncGetReceipt = coreutil.ViewFunc("getReceipt") FuncGetCode = coreutil.ViewFunc("getCode") FuncGetBlockNumber = coreutil.ViewFunc("getBlockNumber") FuncGetBlockByNumber = coreutil.ViewFunc("getBlockByNumber") FuncGetBlockByHash = coreutil.ViewFunc("getBlockByHash") FuncGetTransactionByHash = coreutil.ViewFunc("getTransactionByHash") FuncGetTransactionByBlockHashAndIndex = coreutil.ViewFunc("getTransactionByBlockHashAndIndex") FuncGetTransactionByBlockNumberAndIndex = coreutil.ViewFunc("getTransactionByBlockNumberAndIndex") FuncGetTransactionCountByBlockHash = coreutil.ViewFunc("getTransactionCountByBlockHash") FuncGetTransactionCountByBlockNumber = coreutil.ViewFunc("getTransactionCountByBlockNumber") FuncGetStorage = coreutil.ViewFunc("getStorage") FuncGetLogs = coreutil.ViewFunc("getLogs") // EVMchain SC management FuncSetNextOwner = coreutil.Func("setNextOwner") FuncClaimOwnership = coreutil.Func("claimOwnership") FuncGetOwner = coreutil.ViewFunc("getOwner") FuncSetGasPerIota = coreutil.Func("setGasPerIota") FuncGetGasPerIota = coreutil.ViewFunc("getGasPerIota") FuncWithdrawGasFees = coreutil.Func("withdrawGasFees") FuncSetBlockTime = coreutil.Func("setBlockTime") // only implemented by evmlight FuncMintBlock = coreutil.Func("mintBlock") // only implemented by evmlight )
View Source
var GasPrice = big.NewInt(0)
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
package evmchain provides the `evmchain` contract, which allows to emulate an Ethereum blockchain on top of ISCP.
|
package evmchain provides the `evmchain` contract, which allows to emulate an Ethereum blockchain on top of ISCP. |
emulator
package emulator provides tools to emulate Ethereum chains and contracts.
|
package emulator provides tools to emulate Ethereum chains and contracts. |
package evmlight provides the `evmlight` contract, which allows to run EVM code
|
package evmlight provides the `evmlight` contract, which allows to run EVM code |
Click to show internal directories.
Click to hide internal directories.