diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-09-29 00:18:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-29 00:18:19 +0800 |
commit | cbc9e87d65171ae01a844f160f0b47f790bc3524 (patch) | |
tree | 9722f4823738d5396de61d92c84ce8b3ef8402cf /test/artifacts_test.ts | |
parent | a0af2719963df3313b0eae40952203319ee1e64f (diff) | |
parent | db419ffcc76eb4e11f84aad3a51efe7fa900ef57 (diff) | |
download | dexon-sol-tools-cbc9e87d65171ae01a844f160f0b47f790bc3524.tar dexon-sol-tools-cbc9e87d65171ae01a844f160f0b47f790bc3524.tar.gz dexon-sol-tools-cbc9e87d65171ae01a844f160f0b47f790bc3524.tar.bz2 dexon-sol-tools-cbc9e87d65171ae01a844f160f0b47f790bc3524.tar.lz dexon-sol-tools-cbc9e87d65171ae01a844f160f0b47f790bc3524.tar.xz dexon-sol-tools-cbc9e87d65171ae01a844f160f0b47f790bc3524.tar.zst dexon-sol-tools-cbc9e87d65171ae01a844f160f0b47f790bc3524.zip |
Merge pull request #173 from 0xProject/feature/ropsten-support
Add Ropsten support
Diffstat (limited to 'test/artifacts_test.ts')
-rw-r--r-- | test/artifacts_test.ts | 17 |
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); + }); }); |