-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Remove Alethio #351
Remove Alethio #351
Conversation
026abd2
to
f1e28df
Compare
f1e28df
to
ca13b39
Compare
048e8fe
to
ec173c7
Compare
0b2b3fb
to
5e34e57
Compare
45d0c59
to
39d50f9
Compare
@@ -79,74 +79,75 @@ export function getBuyURL(networkCode = '1', address?: string, amount = 5) { | |||
* @param fromBlock? - Block from which transactions are needed | |||
* @returns - URL to fetch the transactions from | |||
*/ | |||
export function getEtherscanApiUrl(networkType: string, address: string, fromBlock?: string): string { | |||
export function getEtherscanApiUrl( | |||
networkType: string, |
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.
This is a pre-existing issue, but the network controller actually exports a type that could be used here to improve the typing: NetworkType
.
Which has brought to my attention that this would break completely for the network types "localhost" and "rpc" 🤔. Also a pre-existing issue, but... that seems less than ideal.
…ba into feature/migrate-to-etherscan * 'feature/migrate-to-etherscan' of github.com:MetaMask/gaba: Update `sinon` and `@types/sinon` to latest versions (#352) Fix `tsconfig.json` indentation (#355) Replace `fetch-mock` with `nock` (#340) Update `ethereumjs-wallet` from v0.6.5 to v1.0.1 (#347) Add `babel-runtime` dependency required by `ethjs-query` (#341) Update `@metamask/eslint-config` from v3 to v4.1.0 (#344) Add `docs` to list of ignored eslint patterns (#345) Update `uuid` from `v3.3.3` to `v8.3.2` (#346) Update approval controller test import (#339) Add Dependabot config (#343) Update `typedoc` (#342) Remove unused test module (#338) Replace `await-semaphore` with `async-mutex` (#334) Update `eth-json-rpc-filters` in lockfile (#336)
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.
LGTM!
* Remove Alethio * Get tests passing * Add util tests * Add some more ignores to get 100 * Update mock to use _not_ alethio * update tests * Fix mocks * Fix lint nit * Remove expect Co-authored-by: Mark Stacey <markjstacey@gmail.com>
* Remove Alethio * Get tests passing * Add util tests * Add some more ignores to get 100 * Update mock to use _not_ alethio * update tests * Fix mocks * Fix lint nit * Remove expect Co-authored-by: Mark Stacey <markjstacey@gmail.com>
This PR removes
alethioApiKey
and all Alethio related code. Instead we now use anetherscanApiKey
and get ERC20 token data from there.