From 1fa1df36d407f15d36e95299e1e2ee597c4b06cc Mon Sep 17 00:00:00 2001 From: Andrey Beletsky Date: Thu, 14 May 2020 23:56:35 +0700 Subject: [PATCH 1/2] Remove a reference to points_paid field in get response --- extras/jsonrpc/daemon_types.go | 1 - go.sum | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/jsonrpc/daemon_types.go b/extras/jsonrpc/daemon_types.go index 267828c..8e57b20 100644 --- a/extras/jsonrpc/daemon_types.go +++ b/extras/jsonrpc/daemon_types.go @@ -53,7 +53,6 @@ type File struct { MimeType string `json:"mime_type"` Nout int `json:"nout"` Outpoint string `json:"outpoint"` - PointsPaid decimal.Decimal `json:"points_paid"` Protobuf string `json:"protobuf"` PurchaseReceipt interface{} `json:"purchase_receipt"` ReflectorProgress int `json:"reflector_progress"` diff --git a/go.sum b/go.sum index 13fabb7..776cc6b 100644 --- a/go.sum +++ b/go.sum @@ -84,6 +84,7 @@ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/lbryio/errors.go v0.0.0-20180223142025-ad03d3cc6a5c/go.mod h1:muH7wpUqE8hRA3OrYYosw9+Sl681BF9cwcjzE+OCNK8= github.com/lbryio/lbry.go v1.1.2 h1:Dyxc+glT/rVWJwHfIf7vjlPYYbjzrQz5ARmJd5Hp69c= github.com/lbryio/lbry.go v1.1.2/go.mod h1:JtyI30bU51rm0LZ/po3mQuzf++14OWb6kR/6mMRAmKU= +github.com/lbryio/lbrycrd.go v0.0.0-20200203050410-e1076f12bf19 h1:/zWD8dVIl7bV1TdJWqPqy9tpqixzX2Qxgit48h3hQcY= github.com/lbryio/lbrycrd.go v0.0.0-20200203050410-e1076f12bf19/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= github.com/lbryio/lbryschema.go v0.0.0-20190428231007-c54836bca002/go.mod h1:dAzPCBj3CKKWBGYBZxK6tKBP5SCgY2tqd9SnQd/OyKo= github.com/lbryio/lbryschema.go v0.0.0-20190602173230-6d2f69a36f46 h1:LemfR+rMxhf7nnOrzy2HqS7Me7SZ5gEwOcNFzKC8ySQ= -- 2.45.2 From ccef4d8e4d768aaeb9609f1eaff9c00dbca3b1d6 Mon Sep 17 00:00:00 2001 From: Andrey Beletsky Date: Thu, 21 May 2020 00:18:19 +0700 Subject: [PATCH 2/2] Add PurchaseReceipt to Claim --- extras/jsonrpc/daemon_types.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/extras/jsonrpc/daemon_types.go b/extras/jsonrpc/daemon_types.go index 8e57b20..34d2610 100644 --- a/extras/jsonrpc/daemon_types.go +++ b/extras/jsonrpc/daemon_types.go @@ -304,6 +304,18 @@ type Support struct { Txid string `json:"txid"` } +type PurchaseReceipt struct { + Address string `json:"file_name"` + Amount string `json:"amount"` + ClaimID string `json:"claim_id"` + Confirmations int `json:"confirmations"` + Height int `json:"height"` + Nout uint64 `json:"nout"` + Timestamp uint64 `json:"timestamp"` + Txid string `json:"txid"` + Type string `json:"purchase"` +} + type Claim struct { Address string `json:"address"` Amount string `json:"amount"` @@ -323,6 +335,7 @@ type Claim struct { NormalizedName string `json:"normalized_name"` Nout uint64 `json:"nout"` PermanentURL string `json:"permanent_url"` + PurchaseReceipt *PurchaseReceipt `json:"purchase_receipt,omitempty"` ShortURL string `json:"short_url"` SigningChannel *Claim `json:"signing_channel,omitempty"` Timestamp int `json:"timestamp"` -- 2.45.2