From 91ea659298bf2dde67a27990a93e7e9e06b4bf0b Mon Sep 17 00:00:00 2001 From: Yaroslav Vorobiov Date: Sat, 18 Jun 2022 18:47:43 +0100 Subject: [PATCH] satellite/payments/storjscan: payment API type add USD value Change-Id: I6e06a5557df795b4f91dd52b191384d7e6b4b07c --- satellite/payments/storjscan/client.go | 1 + satellite/payments/storjscan/client_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/satellite/payments/storjscan/client.go b/satellite/payments/storjscan/client.go index 465baa16a..09a6c3434 100644 --- a/satellite/payments/storjscan/client.go +++ b/satellite/payments/storjscan/client.go @@ -35,6 +35,7 @@ type Payment struct { From blockchain.Address To blockchain.Address TokenValue *big.Int + USDValue float64 BlockHash blockchain.Hash BlockNumber int64 Transaction blockchain.Hash diff --git a/satellite/payments/storjscan/client_test.go b/satellite/payments/storjscan/client_test.go index d78def13e..1d09f1ca6 100644 --- a/satellite/payments/storjscan/client_test.go +++ b/satellite/payments/storjscan/client_test.go @@ -30,6 +30,7 @@ func TestClientMocked(t *testing.T) { From: blockchaintest.NewAddress(), To: blockchaintest.NewAddress(), TokenValue: new(big.Int).SetInt64(int64(i)), + USDValue: float64(i) + 0.1, BlockHash: blockchaintest.NewHash(), BlockNumber: int64(i), Transaction: blockchaintest.NewHash(),