satellite/payments/storjscan: payment API type add USD value

Change-Id: I6e06a5557df795b4f91dd52b191384d7e6b4b07c
This commit is contained in:
Yaroslav Vorobiov 2022-06-18 18:47:43 +01:00
parent 18666b078a
commit 91ea659298
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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(),