aboutsummaryrefslogtreecommitdiffstats
path: root/packages/migrations/src/migrate.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-09-05 06:31:48 +0800
committerGitHub <noreply@github.com>2018-09-05 06:31:48 +0800
commit447f16fc4f2910b5a69f1c2f0b4122c295898b2f (patch)
treed1911de176ef55dfccbd1367927513c79766de56 /packages/migrations/src/migrate.ts
parent3524efc41cacbd1de8f7006d231e21b9f55f2509 (diff)
parent176960924528379511d427d635d1506ba1e09bc9 (diff)
downloaddexon-sol-tools-447f16fc4f2910b5a69f1c2f0b4122c295898b2f.tar
dexon-sol-tools-447f16fc4f2910b5a69f1c2f0b4122c295898b2f.tar.gz
dexon-sol-tools-447f16fc4f2910b5a69f1c2f0b4122c295898b2f.tar.bz2
dexon-sol-tools-447f16fc4f2910b5a69f1c2f0b4122c295898b2f.tar.lz
dexon-sol-tools-447f16fc4f2910b5a69f1c2f0b4122c295898b2f.tar.xz
dexon-sol-tools-447f16fc4f2910b5a69f1c2f0b4122c295898b2f.tar.zst
dexon-sol-tools-447f16fc4f2910b5a69f1c2f0b4122c295898b2f.zip
Merge pull request #1057 from 0xProject/deployment/copy-testnet-artifacts
Remove/rename/update all artifacts in preparation for v2 launch
Diffstat (limited to 'packages/migrations/src/migrate.ts')
-rw-r--r--packages/migrations/src/migrate.ts30
1 files changed, 0 insertions, 30 deletions
diff --git a/packages/migrations/src/migrate.ts b/packages/migrations/src/migrate.ts
index e3651f2dc..338832feb 100644
--- a/packages/migrations/src/migrate.ts
+++ b/packages/migrations/src/migrate.ts
@@ -1,22 +1,15 @@
#!/usr/bin/env node
import { devConstants, web3Factory } from '@0xproject/dev-utils';
import { logUtils } from '@0xproject/utils';
-import { Web3Wrapper } from '@0xproject/web3-wrapper';
import { Provider } from 'ethereum-types';
import * as yargs from 'yargs';
import { runV1MigrationsAsync } from './1.0.0/migration';
-import { runV2TestnetMigrationsAsync } from './2.0.0-beta-testnet/migration';
-import { runV2MainnetMigrationsAsync } from './2.0.0-mainnet/migration';
import { runV2MigrationsAsync } from './2.0.0/migration';
-import { providerFactory } from './utils/provider_factory';
-
enum ContractVersions {
V1 = '1.0.0',
V2 = '2.0.0',
- V2Testnet = '2.0.0-beta-testnet',
- V2Mainnet = '2.0.0-mainnet',
}
const args = yargs.argv;
@@ -26,8 +19,6 @@ const args = yargs.argv;
let providerConfigs;
let provider: Provider;
let txDefaults;
- let web3Wrapper: Web3Wrapper;
- let accounts: string[];
switch (contractsVersion) {
case ContractVersions.V1:
providerConfigs = { shouldUseInProcessGanache: false };
@@ -45,27 +36,6 @@ const args = yargs.argv;
};
await runV2MigrationsAsync(provider, artifactsDir, txDefaults);
break;
- case ContractVersions.V2Testnet:
- provider = await providerFactory.getKovanLedgerProviderAsync();
- web3Wrapper = new Web3Wrapper(provider);
- accounts = await web3Wrapper.getAvailableAddressesAsync();
- txDefaults = {
- from: accounts[0],
- gas: devConstants.GAS_LIMIT,
- };
- await runV2TestnetMigrationsAsync(provider, artifactsDir, txDefaults);
- break;
- case ContractVersions.V2Mainnet:
- provider = await providerFactory.getMainnetLedgerProviderAsync();
- web3Wrapper = new Web3Wrapper(provider);
- accounts = await web3Wrapper.getAvailableAddressesAsync();
- txDefaults = {
- from: accounts[2],
- gas: devConstants.GAS_LIMIT,
- gasPrice: 6000000000,
- };
- await runV2MainnetMigrationsAsync(provider, artifactsDir, txDefaults);
- break;
default:
throw new Error(`Unsupported contract version: ${contractsVersion}`);
}