Documentation ¶
Index ¶
- Constants
- type CommonTransaction
- type EVMClient
- func (c *EVMClient) CallContract(ctx context.Context, callArgs map[string]interface{}, blockNumber *big.Int) ([]byte, error)
- func (c *EVMClient) Configurate(generalConfig *config.GeneralChainConfig, accountPath, password string) error
- func (c *EVMClient) CurrentBlock() (*types.Block, error)
- func (c *EVMClient) Engine() engine.ESCEngine
- func (c *EVMClient) EstimateGasLimit(ctx context.Context, msg ethereum.CallMsg) (uint64, error)
- func (c *EVMClient) FetchUpdateArbitersLogs(ctx context.Context, contractAddress common.Address, startBlock *big.Int, ...) ([]*relayer.SetArbiterListMsg, error)
- func (c *EVMClient) GasPrice() (*big.Int, error)
- func (c *EVMClient) GetClientAddress() common.Address
- func (c *EVMClient) GetConfig() *config.GeneralChainConfig
- func (c *EVMClient) GetNonce() (*big.Int, error)
- func (c *EVMClient) IsContractAddress(address string) bool
- func (c *EVMClient) LatestBlock() (*big.Int, error)
- func (c *EVMClient) LockNonce()
- func (c *EVMClient) PendingCallContract(ctx context.Context, callArgs map[string]interface{}) ([]byte, error)
- func (c *EVMClient) PendingTransaction() ([]ethapi.RPCTransaction, error)
- func (c *EVMClient) SafeEstimateGasPrice(ctx context.Context) (*big.Int, error)
- func (c *EVMClient) SendRawTransaction(ctx context.Context, tx []byte) error
- func (c *EVMClient) SignAndSendTransaction(ctx context.Context, tx CommonTransaction) (common.Hash, error)
- func (c *EVMClient) UnlockNonce()
Constants ¶
View Source
const (
SetAbiterList string = "SetArbiterList(uint256)"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonTransaction ¶
type EVMClient ¶
func NewEVMClient ¶
func (*EVMClient) CallContract ¶
func (*EVMClient) Configurate ¶
func (c *EVMClient) Configurate(generalConfig *config.GeneralChainConfig, accountPath, password string) error
func (*EVMClient) EstimateGasLimit ¶
func (*EVMClient) FetchUpdateArbitersLogs ¶
func (*EVMClient) GetClientAddress ¶
func (*EVMClient) GetConfig ¶
func (c *EVMClient) GetConfig() *config.GeneralChainConfig
func (*EVMClient) IsContractAddress ¶
func (*EVMClient) LatestBlock ¶
LatestBlock returns the latest block from the current chain
func (*EVMClient) PendingCallContract ¶
func (*EVMClient) PendingTransaction ¶
func (c *EVMClient) PendingTransaction() ([]ethapi.RPCTransaction, error)
LatestBlock returns the latest block from the current chain
func (*EVMClient) SafeEstimateGasPrice ¶
func (*EVMClient) SendRawTransaction ¶
SendRawTransaction accepts rlp-encode of signed transaction and sends it via RPC call
func (*EVMClient) SignAndSendTransaction ¶
func (*EVMClient) UnlockNonce ¶
func (c *EVMClient) UnlockNonce()
Click to show internal directories.
Click to hide internal directories.