satellite/payments/storjscan: payment API type add USD value
Change-Id: I6e06a5557df795b4f91dd52b191384d7e6b4b07c
This commit is contained in:
parent
18666b078a
commit
91ea659298
@ -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
|
||||
|
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user