mirror of https://github.com/poanetwork/gecko.git
updated json for new fxs
This commit is contained in:
parent
9d4be014e9
commit
d63375e83a
|
@ -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 ...
|
||||||
|
|
|
@ -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"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 ...
|
||||||
|
|
|
@ -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"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 ...
|
||||||
|
|
|
@ -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 ...
|
||||||
|
|
Loading…
Reference in New Issue