-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(wallet)_: returns last timestamps of successful GetWalletToken updates #5988
base: develop
Are you sure you want to change the base?
Conversation
Jenkins Builds
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5988 +/- ##
===========================================
+ Coverage 60.97% 60.99% +0.02%
===========================================
Files 814 814
Lines 109253 109264 +11
===========================================
+ Hits 66619 66649 +30
+ Misses 34794 34782 -12
+ Partials 7840 7833 -7
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -137,6 +137,10 @@ func (api *API) GetWalletToken(ctx context.Context, addresses []common.Address) | |||
return api.reader.GetWalletToken(ctx, clients, addresses, currency) | |||
} | |||
|
|||
func (api *API) GetLastWalletTokenUpdate() map[common.Address]time.Time { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we tend to use unix timestamps everywhere. What does a time.Time
look like in JSON?
@friofry hi. Could you please rebase the current PR? Thanx! |
f9f96c9
to
9ea9bea
Compare
In
wallet/reader.go
we already have a mechanism to store timestamps when token info is updated inFetchBalances
andGetWalletToken
.In this PR I just expose this map (address -> last update timestamp) to the API.
This should help @alwx with status-im/status-mobile#21401
Closed #5957