Develop a system that can facilitate the minting of wPOKT tokens upon receiving POKT tokens on the Pocket network to a designated address. The system should also enable the return of POKT tokens upon burning wPOKT tokens on the Ethereum Mainnet.
type Order struct {
// Details of an external copper order
}
type Mint struct {
TransactionHash string
Block uint32
Confirmations uint32
FromAddress string
ToAddress string
Amount uint64
CreatedAt time.Time
UpdatedAt time.Time
Status string
Signers []string
Order *Order
}
detected
confirmed
confirmed
started
and also stores order detailsstarted
signed
signed
executed
if successfultype Order struct {
// Details of an external copper order
}
type Burn struct {
TransactionHash string
Block uint32
Confirmations uint32
FromAddress string
ToAddress string
Amount uint64
CreatedAt time.Time
UpdatedAt time.Time
Status string
Signers []string
Order *Order
}
detected
confirmed
confirmed
started
signed
signed
executed
if successful