Documentation
¶
Index ¶
- Constants
- type BlockRange
- type ERC20
- type EVMClient
- func (e *EVMClient) GetERC20(tokenAddress string) (*ERC20, error)
- func (e *EVMClient) GetTx(hash string) (*Tx, error)
- func (c *EVMClient) ImportPrivateKey(pk string) (*EVMClient, error)
- func (e *EVMClient) ParseBridgeLogs(eventName string, bridgeAddress string, blocks *BlockRange) ([]*EventLog, error)
- func (e *EVMClient) Submit(gasPrice float64, priorityFee float64, to *common.Address, value int64, ...) (*types.Transaction, error)
- type EventLog
- type Tx
Constants ¶
View Source
const ( GAS_LIMIT_MAINNET = 200000 GAS_LIMIT_GOERLI = 200000 GAS_LIMIT_ARBITRUM = 5000000 GAS_LIMIT_BNB_CHAIN = 200000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockRange ¶ added in v1.0.3
type EVMClient ¶
type EVMClient struct { API string ChainId int PrivateKey *ecdsa.PrivateKey PublicKey common.Address Client *ethclient.Client MaxGasFee float64 MaxPriorityFee float64 GasLimit int64 }
func NewEVMClient ¶
NewEVMClient constructs the EVM client
func (*EVMClient) ImportPrivateKey ¶
ImportPrivateKey imports private key and generates corresponding public key
func (*EVMClient) ParseBridgeLogs ¶
func (e *EVMClient) ParseBridgeLogs(eventName string, bridgeAddress string, blocks *BlockRange) ([]*EventLog, error)
ParseEventLog parses event logs from Ethereum
Click to show internal directories.
Click to hide internal directories.