fastbridge

package
v0.21.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package fastbridge contains the contract bindings for the SynapseRFQ contract.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventLog

type EventLog interface {
	// GetTxHash returns the transaction hash of the log.
	GetTxHash() common.Hash
	// GetContractAddress returns the contract address of the log.
	GetContractAddress() common.Address
	// GetBlockNumber returns the block number of the log.
	GetBlockNumber() uint64
	// GetEventType returns the event type of the log.
	GetEventType() EventType
	// GetEventIndex returns the index of the log.
	GetEventIndex() uint64
	// GetTransactionID returns the transaction id of the RFQ transfer.
	GetTransactionID() [32]byte
	// GetRelayer returns the address of the RFQ relayer.
	GetRelayer() *string
	// GetTo returns the Dest address of the RFQ transfer.
	GetTo() *string
	// GetSender returns the sender of the RFQ transfer.
	GetSender() *string
	// GetRequest returns the request info of the RFQ transfer.
	GetRequest() *[]byte
	// GetOriginChainID returns the chain id of the RFQ transfer.
	GetOriginChainID() *big.Int
	// GetDestChainID returns the chain id of the RFQ transfer.
	GetDestChainID() *big.Int
	// GetOriginToken returns the origin token of the RFQ transfer.
	GetOriginToken() common.Address
	// GetDestToken returns the Dest token of the RFQ transfer.
	GetDestToken() common.Address
	// GetOriginAmount returns the origin amount of the RFQ transfer.
	GetOriginAmount() *big.Int
	// GetDestAmount returns the Dest amount of the RFQ transfer.
	GetDestAmount() *big.Int
	// GetChainGasAmount returns the chain gas amount of the RFQ transfer.
	GetChainGasAmount() *big.Int
	// GetSendChainGas returns if the RFQ transfer will send gas to the recipient.
	GetSendChainGas() *bool
}

EventLog is the interface for all cctp events.

type EventType

type EventType uint8

EventType is the type of the rfq event.

const (
	// BridgeRequestedEvent is emitted when a RFQ request is broadcasted.
	BridgeRequestedEvent EventType = iota
	// BridgeRelayedEvent is emitted when a RFQ request is relayed to the destination chain.
	BridgeRelayedEvent
)

func AllEventTypes

func AllEventTypes() []EventType

AllEventTypes is a list of the event types.

func (EventType) Int

func (i EventType) Int() uint8

Int gets the int value of the event type.

func (EventType) String

func (i EventType) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL