Documentation ¶
Index ¶
- type ChainId
- type Message
- func NewFungibleTransfer(source, dest ChainId, nonce Nonce, tokenAddress, amount *big.Int, ...) Message
- func NewGenericTransfer(source, dest ChainId, nonce Nonce, resourceId ResourceId, metadata []byte) Message
- func NewNonFungibleTransfer(source, dest ChainId, nonce Nonce, resourceId ResourceId, tokenId *big.Int, ...) Message
- type Nonce
- type ResourceId
- type TransferType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Source ChainId // Source where message was initiated Destination ChainId // Destination chain of message Type TransferType // type of bridge transfer DepositNonce Nonce // Nonce for the deposit ResourceId ResourceId Payload []interface{} // data associated with event sequence }
Message is used as a generic format to communicate between chains
func NewFungibleTransfer ¶
func NewGenericTransfer ¶
func NewGenericTransfer(source, dest ChainId, nonce Nonce, resourceId ResourceId, metadata []byte) Message
func NewNonFungibleTransfer ¶
type ResourceId ¶
type ResourceId [32]byte
func ResourceIdFromSlice ¶
func ResourceIdFromSlice(in []byte) ResourceId
func (ResourceId) Hex ¶
func (r ResourceId) Hex() string
type TransferType ¶
type TransferType string
var FungibleTransfer TransferType = "FungibleTransfer"
var GenericTransfer TransferType = "GenericTransfer"
var NonFungibleTransfer TransferType = "NonFungibleTransfer"
Click to show internal directories.
Click to hide internal directories.