Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing json tag of structs. #42

Merged
merged 3 commits into from
Nov 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions types.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package rpc

type UnsignedTransaction struct {
fee int
networkID string
seq int
action Action
Fee int `json:"fee"`
NetworkID string `json:"network_id"`
Seq int `json:"seq"`
Action Action `json:"action"`
}

type AssetScheme interface{}
type Asset interface{}
type CommonParams interface{}

type Text struct {
content string `json:"content"`
certifier string `json:"certifier"`
Content string `json:"content"`
Certifier string `json:"certifier"`
}

type Action interface {
Expand Down Expand Up @@ -85,16 +85,16 @@ type Custom struct {
}

type Transaction struct {
blockHash string
blockNumber int
transactionIndex int
result bool
seq int
fee int
hash string
networkID string
sig string
action Action
BlockHash string `json:"blockHash"`
BlockNumber int `json:"blockNumber"`
TransactionIndex int `json:"transactionIndex"`
Result bool `json:"result"`
Seq int `json:"seq"`
Fee string `json:"fee"`
Hash string `json:"hash"`
NetworkID string `json:"networkID"`
Sig string `json:"sig"`
Action Action `json:"action"`
} // TODO Handle action details

type Block struct {
Expand Down