Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProposalStatusInactive uint8 = iota ProposalStatusActive ProposalStatusPassed // Ready to be executed ProposalStatusExecuted ProposalStatusCanceled )
Variables ¶
View Source
var (
StatusMap = map[uint8]string{ProposalStatusInactive: "inactive", ProposalStatusActive: "active", ProposalStatusPassed: "passed", ProposalStatusExecuted: "executed", ProposalStatusCanceled: "canceled"}
)
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Source uint8 // Source where message was initiated Destination uint8 // Destination chain of message DepositNonce uint64 // Nonce for the deposit ResourceId types.ResourceID Payload []interface{} // data associated with event sequence Metadata Metadata // Arbitrary data that will be most likely be used by the relayer Type TransferType }
func NewMessage ¶
func NewMessage( source uint8, destination uint8, depositNonce uint64, resourceId types.ResourceID, transferType TransferType, payload []interface{}, metadata Metadata, ) *Message
type Message2 ¶
type Message2 struct { Source uint8 // Source where message was initiated Destination uint8 // Destination chain of message DepositNonce uint64 // Nonce for the deposit ResourceId types.ResourceID Sourcehandler common.Address Desthandler common.Address DestBridgeAddress common.Address SourceBrigeAddress common.Address SourceTokenAddress common.Address DestTokenAddress common.Address }
func NewMessage1 ¶
func NewMessage1( source uint8, destination uint8, depositNonce uint64, resourceId types.ResourceID, sourcehandler common.Address, Desthandler common.Address, DestBridgeAddress common.Address, SourceBrigeAddress common.Address, SourceTokenAddress common.Address, DestTokenAddress common.Address, ) *Message2
type MessageProcessor ¶
func AdjustDecimalsForERC20AmountMessageProcessor ¶
func AdjustDecimalsForERC20AmountMessageProcessor(args ...interface{}) MessageProcessor
AdjustDecimalsForERC20AmountMessageProcessor is a function, that accepts message and map[domainID uint8]{decimal uint} using this params processor converts amount for one chain to another for provided decimals with floor rounding
type ProposalStatus ¶
type TransferType ¶
type TransferType string
const ( FungibleTransfer TransferType = "FungibleTransfer" NonFungibleTransfer TransferType = "NonFungibleTransfer" GenericTransfer TransferType = "GenericTransfer" )
Click to show internal directories.
Click to hide internal directories.