updated json for new fxs

This commit is contained in:
StephenButtolph 2020-03-31 01:09:49 -04:00
parent 9d4be014e9
commit d63375e83a
6 changed files with 15 additions and 15 deletions

View File

@ -13,10 +13,10 @@ var (
// MintOperation ... // MintOperation ...
type MintOperation struct { type MintOperation struct {
MintInput secp256k1fx.Input `serialize:"true"` MintInput secp256k1fx.Input `serialize:"true" json:"mintInput"`
GroupID uint32 `serialize:"true"` GroupID uint32 `serialize:"true" json:"groupID"`
Payload []byte `serialize:"true"` Payload []byte `serialize:"true" json:"payload"`
Outputs []*secp256k1fx.OutputOwners `serialize:"true"` Outputs []*secp256k1fx.OutputOwners `serialize:"true" json:"outputs"`
} }
// Outs ... // Outs ...

View File

@ -6,6 +6,6 @@ import (
// MintOutput ... // MintOutput ...
type MintOutput struct { type MintOutput struct {
GroupID uint32 `serialize:"true"` GroupID uint32 `serialize:"true" json:"groupID"`
secp256k1fx.OutputOwners `serialize:"true"` secp256k1fx.OutputOwners `serialize:"true"`
} }

View File

@ -13,8 +13,8 @@ var (
// TransferOperation ... // TransferOperation ...
type TransferOperation struct { type TransferOperation struct {
Input secp256k1fx.Input `serialize:"true"` Input secp256k1fx.Input `serialize:"true" json:"input"`
Output TransferOutput `serialize:"true"` Output TransferOutput `serialize:"true" json:"output"`
} }
// Outs ... // Outs ...

View File

@ -18,8 +18,8 @@ var (
// TransferOutput ... // TransferOutput ...
type TransferOutput struct { type TransferOutput struct {
GroupID uint32 `serialize:"true"` GroupID uint32 `serialize:"true" json:"groupID"`
Payload []byte `serialize:"true"` Payload []byte `serialize:"true" json:"payload"`
secp256k1fx.OutputOwners `serialize:"true"` secp256k1fx.OutputOwners `serialize:"true"`
} }

View File

@ -13,9 +13,9 @@ var (
// MintOperation ... // MintOperation ...
type MintOperation struct { type MintOperation struct {
MintInput secp256k1fx.Input `serialize:"true"` MintInput secp256k1fx.Input `serialize:"true" json:"mintInput"`
MintOutput MintOutput `serialize:"true"` MintOutput MintOutput `serialize:"true" json:"mintOutput"`
OwnedOutput OwnedOutput `serialize:"true"` OwnedOutput OwnedOutput `serialize:"true" json:"ownedOutput"`
} }
// Outs ... // Outs ...

View File

@ -15,9 +15,9 @@ var (
// MintOperation ... // MintOperation ...
type MintOperation struct { type MintOperation struct {
MintInput Input `serialize:"true"` MintInput Input `serialize:"true" json:"mintInput"`
MintOutput MintOutput `serialize:"true"` MintOutput MintOutput `serialize:"true" json:"mintOutput"`
TransferOutput TransferOutput `serialize:"true"` TransferOutput TransferOutput `serialize:"true" json:"transferOutput"`
} }
// Outs ... // Outs ...