Documentation ¶
Overview ¶
Utilities to interact with native ZCN smart contract functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizerSignature ¶
type BurnEvent ¶ added in v1.8.15
type BurnEvent struct {
Burneds []BurnTicket `json:"burneds"`
}
BurnEvent represents WZCN burn event
type BurnPayload ¶
type BurnPayload struct {
EthereumAddress string `json:"ethereum_address"`
}
BurnPayload Payload to submit to ZCN chain `burn` smart contract
func (*BurnPayload) Decode ¶
func (bp *BurnPayload) Decode(input []byte) error
func (*BurnPayload) Encode ¶
func (bp *BurnPayload) Encode() []byte
type BurnTicket ¶ added in v1.8.15
type BurnTicket struct { TransactionHash string `json:"transactionHash"` Nonce string `json:"nonce"` }
BurnTicket represents WZCN burn ticket details
type MintPayload ¶
type MintPayload struct { EthereumTxnID string `json:"ethereum_txn_id"` Amount common.Balance `json:"amount"` Nonce int64 `json:"nonce"` Signatures []*AuthorizerSignature `json:"signatures"` ReceivingClientID string `json:"receiving_client_id"` }
MintPayload Payload to submit to ZCN chain `mint` smart contract
func (*MintPayload) Encode ¶
func (mp *MintPayload) Encode() []byte
Click to show internal directories.
Click to hide internal directories.