it is now broken

This commit is contained in:
2018-10-31 20:35:30 -07:00
parent df7f53e7d6
commit 33b759d15f
6 changed files with 189 additions and 185 deletions
+8 -5
View File
@@ -3,6 +3,8 @@ package main
import "encoding/json"
import "github.com/joeshaw/iso8601"
type BlockNumber uint64
type OperationObject struct {
BlockNumber BlockNumber `json:"block"`
OpInTx int `json:"op_in_trx"`
@@ -18,6 +20,11 @@ type GetOpsInBlockRequestParams struct {
VirtualOps bool
}
func (r *GetOpsInBlockRequestParams) MarshalJSON() ([]byte, error) {
arr := []interface{}{r.BlockNum, r.VirtualOps}
return json.Marshal(arr)
}
type DynamicGlobalProperties struct {
ConfidentialSbdSupply string `json:"confidential_sbd_supply"`
ConfidentialSupply string `json:"confidential_supply"`
@@ -51,9 +58,5 @@ type DynamicGlobalProperties struct {
}
type GetOpsInBlockResponse *[]OperationObject
type GetDynamicGlobalPropertiesResponse *DynamicGlobalProperties
func (r *GetOpsInBlockRequestParams) MarshalJSON() ([]byte, error) {
arr := []interface{}{r.BlockNum, r.VirtualOps}
return json.Marshal(arr)
}
type GetDynamicGlobalPropertiesResponse *DynamicGlobalProperties