Documentation
¶
Index ¶
- type ChainId
- type Message
- func NewProposal(fromChainID, toChainID ChainId, payloads []interface{}, ch chan<- struct{}) Message
- func NewSolProof(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 ¶
func NewSolProof ¶
func NewSwapWithMapProof ¶
func NewSwapWithMerlin ¶
func NewSwapWithProof ¶
func NewSyncFromMap ¶
func NewSyncToMap ¶
type TransferType ¶
type TransferType string
var ( SyncToMap TransferType = "SyncToMap" SyncFromMap TransferType = "SyncFromMap" SwapWithProof TransferType = "SwapWithProof" SwapWithMapProof TransferType = "SwapWithMapProof" SwapWithMerlin TransferType = "SwapWithMerlin" Proposal TransferType = "Proposal" SwapSolProof TransferType = "SwapSolProof" )
Click to show internal directories.
Click to hide internal directories.