aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/scripts
diff options
context:
space:
mode:
authorJake Ellowitz <wakkadojo@users.noreply.github.com>2018-11-27 06:55:45 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-12-05 06:24:48 +0800
commit1aa3f9d69f7a6570c6fa62c542063fa92fc0bf5a (patch)
tree94780ceb572a82594cf2168606e837053206847d /packages/pipeline/src/scripts
parentdea89c4e221d5b22de97b27573719cd27ce250c7 (diff)
downloaddexon-sol-tools-1aa3f9d69f7a6570c6fa62c542063fa92fc0bf5a.tar
dexon-sol-tools-1aa3f9d69f7a6570c6fa62c542063fa92fc0bf5a.tar.gz
dexon-sol-tools-1aa3f9d69f7a6570c6fa62c542063fa92fc0bf5a.tar.bz2
dexon-sol-tools-1aa3f9d69f7a6570c6fa62c542063fa92fc0bf5a.tar.lz
dexon-sol-tools-1aa3f9d69f7a6570c6fa62c542063fa92fc0bf5a.tar.xz
dexon-sol-tools-1aa3f9d69f7a6570c6fa62c542063fa92fc0bf5a.tar.zst
dexon-sol-tools-1aa3f9d69f7a6570c6fa62c542063fa92fc0bf5a.zip
updating comment for 0x trusted tokens
Diffstat (limited to 'packages/pipeline/src/scripts')
-rw-r--r--packages/pipeline/src/scripts/pull_trusted_tokens.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/pipeline/src/scripts/pull_trusted_tokens.ts b/packages/pipeline/src/scripts/pull_trusted_tokens.ts
index 48e20bea7..b3a4466bb 100644
--- a/packages/pipeline/src/scripts/pull_trusted_tokens.ts
+++ b/packages/pipeline/src/scripts/pull_trusted_tokens.ts
@@ -10,8 +10,7 @@ import { handleError } from '../utils';
const METAMASK_TRUSTED_TOKENS_URL =
'https://raw.githubusercontent.com/MetaMask/eth-contract-metadata/master/contract-map.json';
-const ZEROEX_TRUSTED_TOKENS_URL =
- 'https://website-api.0xproject.com/tokens';
+const ZEROEX_TRUSTED_TOKENS_URL = 'https://website-api.0xproject.com/tokens';
let connection: Connection;
@@ -26,14 +25,16 @@ async function getMetamaskTrustedTokens(): Promise<void> {
// tslint:disable-next-line
console.log('Getting latest metamask trusted tokens list ...');
const trustedTokensRepository = connection.getRepository(TokenMetadata);
- const trustedTokensSource = new TrustedTokenSource<Map<string, MetamaskTrustedTokenMeta>>(METAMASK_TRUSTED_TOKENS_URL);
+ const trustedTokensSource = new TrustedTokenSource<Map<string, MetamaskTrustedTokenMeta>>(
+ METAMASK_TRUSTED_TOKENS_URL,
+ );
const resp = await trustedTokensSource.getTrustedTokenMetaAsync();
const trustedTokens = parseMetamaskTrustedTokens(resp);
// tslint:disable-next-line
console.log('Saving metamask trusted tokens list');
await trustedTokensRepository.save(trustedTokens);
// tslint:disable-next-line
- console.log('Done saving metamask trusted tokens.')
+ console.log('Done saving metamask trusted tokens.');
}
async function getZeroExTrustedTokens(): Promise<void> {