Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
b83f9bc
controller to fetch the token list from metaswaps api
NiranjanaBinoy May 26, 2021
3c9e6f0
integrating TokenListcontroller with AssetsDetectioncontroller and test
NiranjanaBinoy May 27, 2021
eb4c114
fixing lint error
NiranjanaBinoy May 27, 2021
f9ad337
updating the tests
NiranjanaBinoy May 28, 2021
bb1040c
fixing fetchOptions.headers check in TokenListController and check fo…
NiranjanaBinoy May 31, 2021
720eac3
separating the api interaction from controller
NiranjanaBinoy Jun 1, 2021
62ca7b4
fixing the lint and test errors after the rebase
NiranjanaBinoy Jun 3, 2021
07227be
fixing the type for defaultstate from any
NiranjanaBinoy Jun 4, 2021
8f76dbf
exporting the controller
NiranjanaBinoy Jun 5, 2021
bedcbd3
adding new api end points and related functions
NiranjanaBinoy Jun 16, 2021
aeed783
change in fetchtokenList logic and removing topAssets endpoint and re…
NiranjanaBinoy Jun 16, 2021
bfa6485
changing the state variable from to to avoid overwriting in extension
NiranjanaBinoy Jun 22, 2021
239e12c
adding cache and removing tokens with less than 2 occurance and symbo…
NiranjanaBinoy Jun 25, 2021
f5a1209
removing console.log
NiranjanaBinoy Jun 25, 2021
be997b5
updating cache on sync and updation if data avalable is undefined, fe…
NiranjanaBinoy Jun 27, 2021
5b7f953
updating DEFAULT_INTERVAL to 1 hour and DEFAULT_THRESHOLD to 30 minutes
NiranjanaBinoy Jun 27, 2021
57a1799
fixing test failure
NiranjanaBinoy Jun 27, 2021
084cae7
fixing duplicate symbol filtering and adding related test cases
NiranjanaBinoy Jun 28, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixing the type for defaultstate from any
  • Loading branch information
NiranjanaBinoy committed Jun 17, 2021
commit 07227be41c8dd58098ea3ac8e3d78e06099bba4e
2 changes: 1 addition & 1 deletion src/assets/TokenListController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export type GetTokenListState = {
const metadata = {
tokens: { persist: true, anonymous: true },
};
const defaultState: any = {
const defaultState: TokenListState = {
tokens: {},
};
/**
Expand Down