zcnsc

package
v1.13.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizerSignature

type AuthorizerSignature struct {
	ID        string `json:"authorizer_id"`
	Signature string `json:"signature"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL