Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainClient ¶
type Deposit ¶
type Deposit struct { // ID of chain deposit will be bridged to DestinationDomainID uint8 // ResourceID used to find address of handler to be used for deposit ResourceID types.ResourceID // Nonce of deposit DepositNonce uint64 // Address of sender (msg.sender: user) SenderAddress common.Address // Additional data to be passed to specified handler Data []byte // ERC20Handler: responds with empty data // ERC721Handler: responds with deposited token metadata acquired by calling a tokenURI method in the token contract // GenericHandler: responds with the raw bytes returned from the call to the target contract HandlerResponse []byte }
Deposit struct holds event data with all necessary parameters and a handler response https://github.com/ChainSafe/chainbridge-solidity/blob/develop/contracts/Bridge.sol#L47
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
func NewListener ¶
func NewListener(client ChainClient) *Listener
func (*Listener) FetchDeposits ¶
Click to show internal directories.
Click to hide internal directories.