Documentation ¶
Index ¶
- Constants
- Variables
- func MakeEthGetBlockTransactionCountMsg(ethGetBlockTransactionCountMsg types.EthGetBlockTransactionCountMsg) (types.EthGetBlockTransactionCountMsg, error)
- func MakeEthGetFilterChangesMsg(ethGetFilterChangesMsg types.EthGetFilterChangesMsg) (types.EthGetFilterChangesMsg, error)
- func MakeEthGetFilterLogsMsg(ethGetFilterLogsMsg types.EthGetFilterLogsMsg) (types.EthGetFilterLogsMsg, error)
- func MakeEthUninstallFilterMsg(ethUninstallFilter types.EthUninstallFilterMsg) (types.EthUninstallFilterMsg, error)
- func MakeGetBlockByHashHeightMsg(getBlockByHashHeightMsg types.GetBlockByHashHeightMsg) (types.GetBlockByHashHeightMsg, error)
- func MakeGetTransactionByBlockHashAndIndexMsg(...) (types.GetTransactionByBlockHashAndIndexMsg, error)
- func MakeGetTransactionByHashMsg(getTransactionByHashMsg types.GetTransactionByHashMsg) (types.GetTransactionByHashMsg, error)
- func MakeGetTransactionReceiptMsg(getTransactionReceiptMsg types.GetTransactionReceiptMsg) (types.GetTransactionReceiptMsg, error)
- func MakeInvokeSolContractMsg(InvokeSolContractMsg types.InvokeSolContractMsg) (types.InvokeSolContractMsg, error)
- func MakeQueryAccountInfoMsg(accountInfoMsg types.AccountInfoMsg) (types.AccountInfoMsg, error)
- func MakeSendCoinMsg(sendCoinMsg types.SendCoinMsg) (types.SendCoinMsg, error)
- func MakeWeb3Sha3Msg(web3Sha3Msg types.Web3Sha3Msg) (types.Web3Sha3Msg, error)
- func NewCoreModule() core.CoreModule
- func QueryEvm(i core.QueryClient) (string, error)
- type CallSolContractParseMsg
- type ContractInfo
- type DeploySolTx
- type EthNewFilterParseMsg
- type EvmExternal
- func (e EvmExternal) AccountInfo(accountInfoMsg types.AccountInfoMsg) provider.XplaClient
- func (e EvmExternal) CallSolidityContract(callSolContractMsg types.CallSolContractMsg) provider.XplaClient
- func (e EvmExternal) DeploySolidityContract(deploySolContractMsg types.DeploySolContractMsg) provider.XplaClient
- func (e EvmExternal) EstimateGas(invokeSolContractMsg types.InvokeSolContractMsg) provider.XplaClient
- func (e EvmExternal) EthAccounts() provider.XplaClient
- func (e EvmExternal) EthBlockNumber() provider.XplaClient
- func (e EvmExternal) EthChainID() provider.XplaClient
- func (e EvmExternal) EthCoinbase() provider.XplaClient
- func (e EvmExternal) EthGetBlockTransactionCount(ethGetBlockTransactionCountMsg types.EthGetBlockTransactionCountMsg) provider.XplaClient
- func (e EvmExternal) EthGetFilterChanges(ethGetFilterChangesMsg types.EthGetFilterChangesMsg) provider.XplaClient
- func (e EvmExternal) EthGetFilterLogs(ethGetFilterLogsMsg types.EthGetFilterLogsMsg) provider.XplaClient
- func (e EvmExternal) EthGetLogs(ethGetLogsMsg types.EthGetLogsMsg) provider.XplaClient
- func (e EvmExternal) EthGetTransactionByBlockHashAndIndex(...) provider.XplaClient
- func (e EvmExternal) EthGetTransactionReceipt(getTransactionReceiptMsg types.GetTransactionReceiptMsg) provider.XplaClient
- func (e EvmExternal) EthNewBlockFilter() provider.XplaClient
- func (e EvmExternal) EthNewFilter(ethNewFilterMsg types.EthNewFilterMsg) provider.XplaClient
- func (e EvmExternal) EthNewPendingTransactionFilter() provider.XplaClient
- func (e EvmExternal) EthProtocolVersion() provider.XplaClient
- func (e EvmExternal) EthSyncing() provider.XplaClient
- func (e EvmExternal) EthUninstallFilter(ethUninstallFilterMsg types.EthUninstallFilterMsg) provider.XplaClient
- func (e EvmExternal) EvmSendCoin(sendCoinMsg types.SendCoinMsg) provider.XplaClient
- func (e EvmExternal) GetBlockByHashOrHeight(getBlockByHashHeightMsg types.GetBlockByHashHeightMsg) provider.XplaClient
- func (e EvmExternal) GetTransactionByHash(getTransactionByHashMsg types.GetTransactionByHashMsg) provider.XplaClient
- func (e EvmExternal) InvokeSolidityContract(invokeSolContractMsg types.InvokeSolContractMsg) provider.XplaClient
- func (e EvmExternal) NetListening() provider.XplaClient
- func (e EvmExternal) NetPeerCount() provider.XplaClient
- func (e EvmExternal) NetVersion() provider.XplaClient
- func (e EvmExternal) SuggestGasPrice() provider.XplaClient
- func (e EvmExternal) Web3ClientVersion() provider.XplaClient
- func (e EvmExternal) Web3Sha3(web3Sha3Msg types.Web3Sha3Msg) provider.XplaClient
Constants ¶
const ( EvmModule = "evm" EvmSendCoinMsgType = "evm-send-coin" EvmDeploySolContractMsgType = "deploy-sol-contract" EvmInvokeSolContractMsgType = "invoke-sol-contract" EvmCallSolContractMsgType = "call-sol-contract" EvmGetTransactionByHashMsgType = "evm-get-transaction-by-hash" EvmGetBlockByHashHeightMsgType = "evm-get-block" EvmQueryAccountInfoMsgType = "evm-query-account-info" EvmSuggestGasPriceMsgType = "suggest-gas-price" EvmQueryChainIdMsgType = "evm-chain-id" EvmQueryCurrentBlockNumberMsgType = "current-block-number" EvmWeb3ClientVersionMsgType = "web3-client-version" EvmWeb3Sha3MsgType = "web3-sha" EvmNetVersionMsgType = "net-version" EvmNetPeerCountMsgType = "net-peer-count" EvmNetListeningMsgType = "net-listening" EvmEthProtocolVersionMsgType = "eth-protocol-version" EvmEthSyncingMsgType = "eth-syncing" EvmEthAccountsMsgType = "eth-accounts" EvmEthGetBlockTransactionCountMsgType = "eth-get-block-transaction-count" EvmEthEstimateGasMsgType = "eth-estimate-gas" EvmGetTransactionByBlockHashAndIndexMsgType = "eth-get-transaction-by-block-hash-and-index" EvmGetTransactionReceiptMsgType = "eth-get-transaction-receipt" EvmEthNewFilterMsgType = "eth-new-filter" EvmEthNewBlockFilterMsgType = "eth-new-block-filter" EvmEthNewPendingTransactionFilterMsgType = "eth-new-pending-transaction-filter" EvmEthUninstallFilterMsgType = "eth-uninstall-filter" EvmEthGetFilterChangesMsgType = "eth-get-filter-changes" EvmEthGetFilterLogsMsgType = "eth-get-filter-logs" EvmEthGetLogsMsgType = "eth-get-logs" EvmEthCoinbaseMsgType = "eth-coinbase" )
Variables ¶
var Args []interface{}
Functions ¶
func MakeEthGetBlockTransactionCountMsg ¶
func MakeEthGetBlockTransactionCountMsg(ethGetBlockTransactionCountMsg types.EthGetBlockTransactionCountMsg) (types.EthGetBlockTransactionCountMsg, error)
(Query) make msg - get transaction count of the block number
func MakeEthGetFilterChangesMsg ¶
func MakeEthGetFilterChangesMsg(ethGetFilterChangesMsg types.EthGetFilterChangesMsg) (types.EthGetFilterChangesMsg, error)
(Query) make msg - eth get filter changes
func MakeEthGetFilterLogsMsg ¶
func MakeEthGetFilterLogsMsg(ethGetFilterLogsMsg types.EthGetFilterLogsMsg) (types.EthGetFilterLogsMsg, error)
(Query) make msg - eth get filter logs
func MakeEthUninstallFilterMsg ¶
func MakeEthUninstallFilterMsg(ethUninstallFilter types.EthUninstallFilterMsg) (types.EthUninstallFilterMsg, error)
(Query) make msg - eth uninstall filter
func MakeGetBlockByHashHeightMsg ¶
func MakeGetBlockByHashHeightMsg(getBlockByHashHeightMsg types.GetBlockByHashHeightMsg) (types.GetBlockByHashHeightMsg, error)
(Query) make msg - block by hash or height
func MakeGetTransactionByBlockHashAndIndexMsg ¶
func MakeGetTransactionByBlockHashAndIndexMsg(getTransactionByBlockHashAndIndexMsg types.GetTransactionByBlockHashAndIndexMsg) (types.GetTransactionByBlockHashAndIndexMsg, error)
(Query) make msg - get transaction by block hash and index
func MakeGetTransactionByHashMsg ¶
func MakeGetTransactionByHashMsg(getTransactionByHashMsg types.GetTransactionByHashMsg) (types.GetTransactionByHashMsg, error)
(Query) make msg - transaction by hash
func MakeGetTransactionReceiptMsg ¶
func MakeGetTransactionReceiptMsg(getTransactionReceiptMsg types.GetTransactionReceiptMsg) (types.GetTransactionReceiptMsg, error)
(Query) make msg - get transaction receipt
func MakeInvokeSolContractMsg ¶
func MakeInvokeSolContractMsg(InvokeSolContractMsg types.InvokeSolContractMsg) (types.InvokeSolContractMsg, error)
(Tx) make msg - invoke solidity contract
func MakeQueryAccountInfoMsg ¶
func MakeQueryAccountInfoMsg(accountInfoMsg types.AccountInfoMsg) (types.AccountInfoMsg, error)
(Query) make msg - account info
func MakeSendCoinMsg ¶
func MakeSendCoinMsg(sendCoinMsg types.SendCoinMsg) (types.SendCoinMsg, error)
(Tx) make msg - send coin
func MakeWeb3Sha3Msg ¶
func MakeWeb3Sha3Msg(web3Sha3Msg types.Web3Sha3Msg) (types.Web3Sha3Msg, error)
(Query) make msg - web3 sha3
func NewCoreModule ¶ added in v0.1.2
func NewCoreModule() core.CoreModule
Types ¶
type CallSolContractParseMsg ¶
type CallSolContractParseMsg struct { CallMsg ethereum.CallMsg CallName string ABI string Bytecode string }
func MakeCallSolContractMsg ¶
func MakeCallSolContractMsg(callSolContractMsg types.CallSolContractMsg) (CallSolContractParseMsg, error)
(Query) make msg - call solidity contract
func MakeEstimateGasSolMsg ¶
func MakeEstimateGasSolMsg(invokeSolContractMsg types.InvokeSolContractMsg) (CallSolContractParseMsg, error)
(Query) make msg - sol contract estimate gas
type ContractInfo ¶
func MakeDeploySolContractMsg ¶
func MakeDeploySolContractMsg(deploySolContractMsg types.DeploySolContractMsg) (ContractInfo, error)
(Tx) make msg - deploy solidity contract
type DeploySolTx ¶
type EthNewFilterParseMsg ¶
type EthNewFilterParseMsg struct { BlockHash *common.Hash `json:"blockHash,omitempty"` FromBlock *rpc.BlockNumber `json:"fromBlock"` ToBlock *rpc.BlockNumber `json:"toBlock"` Addresses interface{} `json:"address"` Topics []interface{} `json:"topics"` }
func MakeEthGetLogsMsg ¶
func MakeEthGetLogsMsg(ethGetLogsMsg types.EthGetLogsMsg) (EthNewFilterParseMsg, error)
(Query) make msg - eth get logs
func MakeEthNewFilterMsg ¶
func MakeEthNewFilterMsg(ethNewFilterMsg types.EthNewFilterMsg) (EthNewFilterParseMsg, error)
(Query) make msg - eth new filter
type EvmExternal ¶ added in v0.1.2
type EvmExternal struct {
Xplac provider.XplaClient
}
func NewEvmExternal ¶ added in v0.1.2
func NewEvmExternal(xplac provider.XplaClient) (e EvmExternal)
func (EvmExternal) AccountInfo ¶ added in v0.1.2
func (e EvmExternal) AccountInfo(accountInfoMsg types.AccountInfoMsg) provider.XplaClient
Query a account information which includes account address(hex and bech32), balance and etc.
func (EvmExternal) CallSolidityContract ¶ added in v0.1.2
func (e EvmExternal) CallSolidityContract(callSolContractMsg types.CallSolContractMsg) provider.XplaClient
Call(as query) solidity contract.
func (EvmExternal) DeploySolidityContract ¶ added in v0.1.2
func (e EvmExternal) DeploySolidityContract(deploySolContractMsg types.DeploySolContractMsg) provider.XplaClient
Deploy soldity contract.
func (EvmExternal) EstimateGas ¶ added in v0.1.2
func (e EvmExternal) EstimateGas(invokeSolContractMsg types.InvokeSolContractMsg) provider.XplaClient
Query estimate gas.
func (EvmExternal) EthAccounts ¶ added in v0.1.2
func (e EvmExternal) EthAccounts() provider.XplaClient
Query all eth accounts.
func (EvmExternal) EthBlockNumber ¶ added in v0.1.2
func (e EvmExternal) EthBlockNumber() provider.XplaClient
Query latest block height(as number)
func (EvmExternal) EthChainID ¶ added in v0.1.2
func (e EvmExternal) EthChainID() provider.XplaClient
Query chain ID of ethereum type.
func (EvmExternal) EthCoinbase ¶ added in v0.1.2
func (e EvmExternal) EthCoinbase() provider.XplaClient
Query coinbase.
func (EvmExternal) EthGetBlockTransactionCount ¶ added in v0.1.2
func (e EvmExternal) EthGetBlockTransactionCount(ethGetBlockTransactionCountMsg types.EthGetBlockTransactionCountMsg) provider.XplaClient
Query the number of transaction a given block.
func (EvmExternal) EthGetFilterChanges ¶ added in v0.1.2
func (e EvmExternal) EthGetFilterChanges(ethGetFilterChangesMsg types.EthGetFilterChangesMsg) provider.XplaClient
Query filter changes.
func (EvmExternal) EthGetFilterLogs ¶ added in v0.1.2
func (e EvmExternal) EthGetFilterLogs(ethGetFilterLogsMsg types.EthGetFilterLogsMsg) provider.XplaClient
Query filter logs.
func (EvmExternal) EthGetLogs ¶ added in v0.1.2
func (e EvmExternal) EthGetLogs(ethGetLogsMsg types.EthGetLogsMsg) provider.XplaClient
Get logs.
func (EvmExternal) EthGetTransactionByBlockHashAndIndex ¶ added in v0.1.2
func (e EvmExternal) EthGetTransactionByBlockHashAndIndex(getTransactionByBlockHashAndIndexMsg types.GetTransactionByBlockHashAndIndexMsg) provider.XplaClient
Query transaction by block hash and index.
func (EvmExternal) EthGetTransactionReceipt ¶ added in v0.1.2
func (e EvmExternal) EthGetTransactionReceipt(getTransactionReceiptMsg types.GetTransactionReceiptMsg) provider.XplaClient
Query transaction receipt.
func (EvmExternal) EthNewBlockFilter ¶ added in v0.1.2
func (e EvmExternal) EthNewBlockFilter() provider.XplaClient
Query filter ID by eth new block filter.
func (EvmExternal) EthNewFilter ¶ added in v0.1.2
func (e EvmExternal) EthNewFilter(ethNewFilterMsg types.EthNewFilterMsg) provider.XplaClient
Query filter ID by eth new filter.
func (EvmExternal) EthNewPendingTransactionFilter ¶ added in v0.1.2
func (e EvmExternal) EthNewPendingTransactionFilter() provider.XplaClient
Query filter ID by eth new pending transaction filter.
func (EvmExternal) EthProtocolVersion ¶ added in v0.1.2
func (e EvmExternal) EthProtocolVersion() provider.XplaClient
ethereum protocol version.
func (EvmExternal) EthSyncing ¶ added in v0.1.2
func (e EvmExternal) EthSyncing() provider.XplaClient
Query the sync status object depending on the details of tendermint's sync protocol.
func (EvmExternal) EthUninstallFilter ¶ added in v0.1.2
func (e EvmExternal) EthUninstallFilter(ethUninstallFilterMsg types.EthUninstallFilterMsg) provider.XplaClient
Uninstall filter.
func (EvmExternal) EvmSendCoin ¶ added in v0.1.2
func (e EvmExternal) EvmSendCoin(sendCoinMsg types.SendCoinMsg) provider.XplaClient
Send coind by using evm client.
func (EvmExternal) GetBlockByHashOrHeight ¶ added in v0.1.2
func (e EvmExternal) GetBlockByHashOrHeight(getBlockByHashHeightMsg types.GetBlockByHashHeightMsg) provider.XplaClient
Query a block which is ethereum type information by retrieving hash or block height(as number).
func (EvmExternal) GetTransactionByHash ¶ added in v0.1.2
func (e EvmExternal) GetTransactionByHash(getTransactionByHashMsg types.GetTransactionByHashMsg) provider.XplaClient
Query a transaction which is ethereum type information by retrieving hash.
func (EvmExternal) InvokeSolidityContract ¶ added in v0.1.2
func (e EvmExternal) InvokeSolidityContract(invokeSolContractMsg types.InvokeSolContractMsg) provider.XplaClient
Invoke (as execute) solidity contract.
func (EvmExternal) NetListening ¶ added in v0.1.2
func (e EvmExternal) NetListening() provider.XplaClient
actively listening for network connections.
func (EvmExternal) NetPeerCount ¶ added in v0.1.2
func (e EvmExternal) NetPeerCount() provider.XplaClient
Query the number of peers currently connected to the client.
func (EvmExternal) NetVersion ¶ added in v0.1.2
func (e EvmExternal) NetVersion() provider.XplaClient
Query current network ID.
func (EvmExternal) SuggestGasPrice ¶ added in v0.1.2
func (e EvmExternal) SuggestGasPrice() provider.XplaClient
Query suggested gas price.
func (EvmExternal) Web3ClientVersion ¶ added in v0.1.2
func (e EvmExternal) Web3ClientVersion() provider.XplaClient
Query web3 client version.
func (EvmExternal) Web3Sha3 ¶ added in v0.1.2
func (e EvmExternal) Web3Sha3(web3Sha3Msg types.Web3Sha3Msg) provider.XplaClient
Query web3 sha3.