Skip to content

Commit

Permalink
dcrjson: add listtickets command
Browse files Browse the repository at this point in the history
  • Loading branch information
kLkA committed Jun 7, 2018
1 parent 9304fb8 commit 0a85512
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dcrjson/walletsvrresults.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ type ListTicketsResult struct {
type ListTicketsTransactionSummary struct {
Hash string `json:"hash"`
Transaction string `json:"transaction"`
MyInputs []ListTicketsTransactionSummaryInput `json:"my_inputs"`
MyOutputs []ListTicketsTransactionSummaryOutput `json:"my_outputs"`
MyInputs []ListTicketsTransactionSummaryInput `json:"myinputs"`
MyOutputs []ListTicketsTransactionSummaryOutput `json:"myoutputs"`
Fee float64 `json:"fee"`
Timestamp int64 `json:"timestamp"`
Type int8 `json:"type"`
Expand All @@ -188,8 +188,8 @@ type ListTicketsTransactionSummary struct {
// result for the MyInputs field of Ticket and Spender command field.
type ListTicketsTransactionSummaryInput struct {
Index uint32 `json:"index"`
PreviousAccount uint32 `json:"previous_account"`
PreviousAmount float64 `json:"previous_amount"`
PreviousAccount uint32 `json:"previousaccount"`
PreviousAmount float64 `json:"previousamount"`
}

// ListTicketsTransactionSummaryOutput defines the type used in the listtickets JSON-RPC
Expand All @@ -200,7 +200,7 @@ type ListTicketsTransactionSummaryOutput struct {
Internal bool `json:"internal"`
Amount float64 `json:"amount"`
Address dcrutil.Address `json:"address"`
OutputScript string `json:"output_script"`
OutputScript string `json:"outputscript"`
}

// ListTransactionsTxType defines the type used in the listtransactions JSON-RPC
Expand Down

0 comments on commit 0a85512

Please sign in to comment.