Documentation ¶
Index ¶
- type ChainId
- type Message
- func NewProposal(fromChainID, toChainID ChainId, payloads []interface{}, ch chan<- struct{}) Message
- func NewSwapWithMapProof(fromChainID, toChainID ChainId, payloads []interface{}, ch chan<- struct{}) Message
- func NewSwapWithMerlin(fromChainID, toChainID ChainId, payloads []interface{}, ch chan<- struct{}) Message
- func NewSwapWithProof(fromChainID, toChainID ChainId, payloads []interface{}, ch chan<- struct{}) Message
- func NewSyncFromMap(mapChainID, toChainID ChainId, payloads []interface{}, ch chan<- struct{}) Message
- func NewSyncToMap(fromChainID, toChainID ChainId, payloads []interface{}, ch chan<- struct{}) Message
- type TransferType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Idx int Source ChainId // Source where message was initiated Destination ChainId // Destination chain of message Type TransferType // type of bridge transfer Payload []interface{} // data associated with event sequence DoneCh chan<- struct{} // notify message is handled }
Message is used as a generic format to communicate between chains
func NewProposal ¶ added in v1.2.2
func NewSwapWithMapProof ¶
func NewSwapWithMerlin ¶ added in v1.2.0
func NewSwapWithProof ¶
func NewSyncFromMap ¶
func NewSyncToMap ¶
type TransferType ¶
type TransferType string
var ( SyncToMap TransferType = "SyncToMap" SwapWithProof TransferType = "SwapWithProof" SyncFromMap TransferType = "SyncFromMap" SwapWithMapProof TransferType = "SwapWithMapProof" SwapWithMerlin TransferType = "SwapWithMerlin" Proposal TransferType = "proposal" )
Click to show internal directories.
Click to hide internal directories.