aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sra-report
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-03-09 00:24:37 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-03-09 00:44:45 +0800
commitcaf1a22084e9b633f903c493841129c43b8b598b (patch)
tree40e233f248760a3f562ea860ca6f41353b7d6415 /packages/sra-report
parent29abc5e921a0eb78234759ca9ec2a72b5e35160e (diff)
downloaddexon-sol-tools-caf1a22084e9b633f903c493841129c43b8b598b.tar
dexon-sol-tools-caf1a22084e9b633f903c493841129c43b8b598b.tar.gz
dexon-sol-tools-caf1a22084e9b633f903c493841129c43b8b598b.tar.bz2
dexon-sol-tools-caf1a22084e9b633f903c493841129c43b8b598b.tar.lz
dexon-sol-tools-caf1a22084e9b633f903c493841129c43b8b598b.tar.xz
dexon-sol-tools-caf1a22084e9b633f903c493841129c43b8b598b.tar.zst
dexon-sol-tools-caf1a22084e9b633f903c493841129c43b8b598b.zip
Add support for ropsten and rinkeby
Diffstat (limited to 'packages/sra-report')
-rw-r--r--packages/sra-report/src/contract_addresses/rinkeby_addresses.ts5
-rw-r--r--packages/sra-report/src/contract_addresses/ropsten_addresses.ts5
-rw-r--r--packages/sra-report/src/index.ts2
-rw-r--r--packages/sra-report/src/postman_environment_factory.ts6
4 files changed, 17 insertions, 1 deletions
diff --git a/packages/sra-report/src/contract_addresses/rinkeby_addresses.ts b/packages/sra-report/src/contract_addresses/rinkeby_addresses.ts
new file mode 100644
index 000000000..b1e0848d0
--- /dev/null
+++ b/packages/sra-report/src/contract_addresses/rinkeby_addresses.ts
@@ -0,0 +1,5 @@
+export const addresses = {
+ WETH: '0xc778417e063141139fce010982780140aa0cd5ab',
+ ZRX: '0x00f58d6d585f84b2d7267940cede30ce2fe6eae8',
+ EXCHANGE: '0x1d16ef40fac01cec8adac2ac49427b9384192c05',
+};
diff --git a/packages/sra-report/src/contract_addresses/ropsten_addresses.ts b/packages/sra-report/src/contract_addresses/ropsten_addresses.ts
new file mode 100644
index 000000000..80e6e5e7e
--- /dev/null
+++ b/packages/sra-report/src/contract_addresses/ropsten_addresses.ts
@@ -0,0 +1,5 @@
+export const addresses = {
+ WETH: '0xc778417e063141139fce010982780140aa0cd5ab',
+ ZRX: '0xa8e9fa8f91e5ae138c74648c9c304f1c75003a8d',
+ EXCHANGE: '0x479cc461fecd078f766ecc58533d6f69580cf3ac',
+};
diff --git a/packages/sra-report/src/index.ts b/packages/sra-report/src/index.ts
index 83fb25d6c..d23549916 100644
--- a/packages/sra-report/src/index.ts
+++ b/packages/sra-report/src/index.ts
@@ -14,7 +14,7 @@ import { utils } from './utils';
const newmanRunAsync = promisify<void>(newman.run);
const DEFAULT_NETWORK_ID = 1;
-const SUPPORTED_NETWORK_IDS = [1, 42];
+const SUPPORTED_NETWORK_IDS = [1, 3, 4, 42];
// extract command line arguments
const args = yargs
diff --git a/packages/sra-report/src/postman_environment_factory.ts b/packages/sra-report/src/postman_environment_factory.ts
index f4094315e..ffac7ac2e 100644
--- a/packages/sra-report/src/postman_environment_factory.ts
+++ b/packages/sra-report/src/postman_environment_factory.ts
@@ -6,6 +6,8 @@ import * as _ from 'lodash';
import { addresses as kovanAddresses } from './contract_addresses/kovan_addresses';
import { addresses as mainnetAddresses } from './contract_addresses/mainnet_addresses';
+import { addresses as rinkebyAddresses } from './contract_addresses/rinkeby_addresses';
+import { addresses as ropstenAddresses } from './contract_addresses/ropsten_addresses';
import { utils } from './utils';
const ENVIRONMENT_NAME = 'SRA Report';
@@ -93,6 +95,10 @@ function getContractAddresses(networkId: number) {
switch (networkId) {
case 1:
return mainnetAddresses;
+ case 3:
+ return ropstenAddresses;
+ case 4:
+ return rinkebyAddresses;
case 42:
return kovanAddresses;
default: