Documentation ¶
Index ¶
Constants ¶
View Source
const CodecVersion = 0
Variables ¶
View Source
var Codec codec.Manager
Functions ¶
This section is empty.
Types ¶
type Export ¶
type Export struct { // ChainID provides cross chain replay protection ChainID ids.ID `serialize:"true" json:"chainID"` // Nonce provides internal chain replay protection Nonce uint64 `serialize:"true" json:"nonce"` MaxFee uint64 `serialize:"true" json:"maxFee"` PeerChainID ids.ID `serialize:"true" json:"peerChainID"` IsReturn bool `serialize:"true" json:"isReturn"` Amount uint64 `serialize:"true" json:"amount"` To ids.ShortID `serialize:"true" json:"to"` }
type Import ¶
type Payload ¶
type Payload struct { // Sender + Nonce provides replay protection Sender ids.ShortID `serialize:"true" json:"sender"` Nonce uint64 `serialize:"true" json:"nonce"` IsReturn bool `serialize:"true" json:"isReturn"` Amount uint64 `serialize:"true" json:"amount"` To ids.ShortID `serialize:"true" json:"to"` // contains filtered or unexported fields }
func NewPayload ¶
func ParsePayload ¶
type Transfer ¶
type Transfer struct { // ChainID provides cross chain replay protection ChainID ids.ID `serialize:"true" json:"chainID"` // Nonce provides internal chain replay protection Nonce uint64 `serialize:"true" json:"nonce"` MaxFee uint64 `serialize:"true" json:"maxFee"` AssetID ids.ID `serialize:"true" json:"assetID"` Amount uint64 `serialize:"true" json:"amount"` To ids.ShortID `serialize:"true" json:"to"` }
Click to show internal directories.
Click to hide internal directories.