aboutsummaryrefslogtreecommitdiffstats
path: root/test/artifacts_test.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-09-28 20:42:48 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-09-28 20:42:48 +0800
commitdb419ffcc76eb4e11f84aad3a51efe7fa900ef57 (patch)
tree4a1c88b95356da06f81d23387dfbf1be84d1a274 /test/artifacts_test.ts
parentb537636b427a16d50bfd5d48fb627e2b64d4944c (diff)
downloaddexon-sol-tools-db419ffcc76eb4e11f84aad3a51efe7fa900ef57.tar
dexon-sol-tools-db419ffcc76eb4e11f84aad3a51efe7fa900ef57.tar.gz
dexon-sol-tools-db419ffcc76eb4e11f84aad3a51efe7fa900ef57.tar.bz2
dexon-sol-tools-db419ffcc76eb4e11f84aad3a51efe7fa900ef57.tar.lz
dexon-sol-tools-db419ffcc76eb4e11f84aad3a51efe7fa900ef57.tar.xz
dexon-sol-tools-db419ffcc76eb4e11f84aad3a51efe7fa900ef57.tar.zst
dexon-sol-tools-db419ffcc76eb4e11f84aad3a51efe7fa900ef57.zip
Add tests for ropsten artifacts
Diffstat (limited to 'test/artifacts_test.ts')
-rw-r--r--test/artifacts_test.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/artifacts_test.ts b/test/artifacts_test.ts
index bd34a6b91..b2866a1d6 100644
--- a/test/artifacts_test.ts
+++ b/test/artifacts_test.ts
@@ -29,4 +29,21 @@ describe('Artifacts', () => {
await zeroEx.exchange.getContractAddressAsync();
}).timeout(TIMEOUT);
});
+ describe('contracts are deployed on ropsten', () => {
+ const ropstenRpcUrl = constants.ROPSTEN_RPC_URL;
+ const packageJSONContent = fs.readFileSync('package.json', 'utf-8');
+ const packageJSON = JSON.parse(packageJSONContent);
+ const mnemonic = packageJSON.config.mnemonic;
+ const web3Provider = new HDWalletProvider(mnemonic, ropstenRpcUrl);
+ const zeroEx = new ZeroEx(web3Provider);
+ it('token registry contract is deployed', async () => {
+ await (zeroEx.tokenRegistry as any)._getTokenRegistryContractAsync();
+ }).timeout(TIMEOUT);
+ it('proxy contract is deployed', async () => {
+ await (zeroEx.token as any)._getTokenTransferProxyAddressAsync();
+ }).timeout(TIMEOUT);
+ it('exchange contract is deployed', async () => {
+ await zeroEx.exchange.getContractAddressAsync();
+ }).timeout(TIMEOUT);
+ });
});