Documentation ¶
Index ¶
- Constants
- Variables
- type EVMClient
- func (c *EVMClient) ExecuteProposal(bridgeAddress string, proposal *evm.Proposal) error
- func (c *EVMClient) FetchDepositLogs(ctx context.Context, contractAddress string, sig string, startBlock *big.Int, ...) ([]*coreListener.DepositLogs, error)
- func (c *EVMClient) GetEthClient() *ethclient.Client
- func (c *EVMClient) LatestBlock() (*big.Int, error)
- func (c *EVMClient) MatchResourceIDToHandlerAddress(bridgeAddress string, rID [32]byte) (string, error)
- func (c *EVMClient) ProposalStatus(bridgeAddress string, p *evm.Proposal) (relayer.ProposalStatus, error)
- func (c *EVMClient) ReturnErc20HandlerFabric() listener.EventHandler
- func (c *EVMClient) ReturnErc721HandlerFabric() listener.EventHandler
- func (c *EVMClient) ReturnGenericHandlerFabric() listener.EventHandler
- func (c *EVMClient) VoteProposal(bridgeAddress string, proposal *evm.Proposal) error
- func (c *EVMClient) VotedBy(bridgeAddress string, p *evm.Proposal) bool
- type Sender
Constants ¶
View Source
const DefaultGasLimit = 6721975
View Source
const DefaultGasPrice = 20000000000
View Source
const TxRetryInterval = time.Second * 2
Time between retrying a failed tx
View Source
const TxRetryLimit = 10
Tries to retry sending transaction
Variables ¶
View Source
var ErrFatalTx = errors.New("submission of transaction failed")
View Source
var ErrNonceTooLow = errors.New("nonce too low")
View Source
var ErrTxUnderpriced = errors.New("replacement transaction underpriced")
Functions ¶
This section is empty.
Types ¶
type EVMClient ¶
func NewEVMClient ¶
func (*EVMClient) ExecuteProposal ¶
func (*EVMClient) FetchDepositLogs ¶
func (*EVMClient) GetEthClient ¶
func (*EVMClient) LatestBlock ¶
LatestBlock returns the latest block from the current chain
func (*EVMClient) MatchResourceIDToHandlerAddress ¶
func (*EVMClient) ProposalStatus ¶
func (*EVMClient) ReturnErc20HandlerFabric ¶
func (c *EVMClient) ReturnErc20HandlerFabric() listener.EventHandler
func (*EVMClient) ReturnErc721HandlerFabric ¶
func (c *EVMClient) ReturnErc721HandlerFabric() listener.EventHandler
func (*EVMClient) ReturnGenericHandlerFabric ¶
func (c *EVMClient) ReturnGenericHandlerFabric() listener.EventHandler
func (*EVMClient) VoteProposal ¶
type Sender ¶
type Sender interface { PrivateKey() *ecdsa.PrivateKey Address() string }
Click to show internal directories.
Click to hide internal directories.