-
Notifications
You must be signed in to change notification settings - Fork 259
feat!: a new token list approach - wallet sdk token lists integration #6912
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
base: develop
Are you sure you want to change the base?
Conversation
Jenkins BuildsClick to see older builds (73)
|
5fdbea8
to
119e1b7
Compare
119e1b7
to
9e2a878
Compare
@@ -131,3 +131,6 @@ pkg/sentry/SENTRY_PRODUCTION | |||
# Don't ignore generated files in the vendor/ directory | |||
!vendor/**/*.pb.go | |||
!vendor/**/migrations.go | |||
services/wallet/token/local-token-lists/default-lists/status.go |
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 don't need to store initial token lists in the repo. They will be fetched on every build (maybe we should do some smarter approach like download only if there are no local lists or the forceDownload flag is true, by default don't download).
13ad01f
to
c54bd12
Compare
@@ -179,7 +179,7 @@ status-go-deps: | |||
|
|||
|
|||
|
|||
statusgo-library: generate | |||
statusgo-library: generate download-tokens |
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.
@@ -43,6 +43,7 @@ in pkgs.buildGoPackage { | |||
pushd go/src/$goPackagePath | |||
go run cmd/library/*.go > $NIX_BUILD_TOP/main.go | |||
make generate SHELL=$SHELL GO111MODULE=on GO_GENERATE_CMD='go generate' | |||
make download-tokens SHELL=$SHELL GO111MODULE=on |
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 should always download initial tokens when building on CI.
bdcad51
to
41cffc7
Compare
41cffc7
to
96dc9bd
Compare
Depends on:
Changes:
GetTokenByChainAddress
GetTokensByChain(chainID uint64) []*tokenlists.Token
GetTokensByChains(chainIDs []uint64) ([]*tokenlists.Token, error)
GetAllTokens() []*tokenlists.Token
GetTokenList(id string) (*tokenlists.TokenList, bool)
GetAllTokenLists() []*tokenlists.TokenList
GetLastTokenListsRefreshTime() (int64, error)
API changes:
GetTokenList
doesn't returnListWrapper
but[]*tokenlists.TokenList
GetTokens
removedGetCustomTokens
removed