github.com/0chain/gosdk@v1.17.11/zcnbridge/ethereum/mint_payload.go (about) 1 package ethereum 2 3 import "encoding/json" 4 5 // BurnEvent represents received WZCN burn event. 6 type BurnEvent struct { 7 Nonce int64 `json:"nonce"` 8 Amount int64 `json:"amount"` 9 TransactionHash string `json:"hash"` 10 } 11 12 // MintPayload Payload to submit to the ethereum bridge contract 13 type MintPayload struct { 14 ZCNTxnID string `json:"zcn_txn_id"` 15 Amount int64 `json:"amount"` 16 To string `json:"to"` 17 Nonce int64 `json:"nonce"` 18 Signatures []*AuthorizerSignature `json:"signatures"` 19 } 20 21 type AuthorizerSignature struct { 22 ID string `json:"authorizer_id"` 23 Signature []byte `json:"signature"` 24 } 25 26 func (mp *MintPayload) Encode() []byte { 27 buff, _ := json.Marshal(mp) 28 return buff 29 }