diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-08-22 11:43:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-22 11:43:23 +0800 |
commit | 80e52464a6fdf9576776214f77e46d441b959b06 (patch) | |
tree | 964c5c3cb0eeacf70bece4e485b5fddceea2adb4 /packages/migrations/src/2.0.0-beta-testnet/migration.ts | |
parent | f53157414f144a7ea8c24126c9d75d3168228130 (diff) | |
parent | 3760eb5bafcc0980b3a42dd5f10e745390702b16 (diff) | |
download | dexon-sol-tools-80e52464a6fdf9576776214f77e46d441b959b06.tar dexon-sol-tools-80e52464a6fdf9576776214f77e46d441b959b06.tar.gz dexon-sol-tools-80e52464a6fdf9576776214f77e46d441b959b06.tar.bz2 dexon-sol-tools-80e52464a6fdf9576776214f77e46d441b959b06.tar.lz dexon-sol-tools-80e52464a6fdf9576776214f77e46d441b959b06.tar.xz dexon-sol-tools-80e52464a6fdf9576776214f77e46d441b959b06.tar.zst dexon-sol-tools-80e52464a6fdf9576776214f77e46d441b959b06.zip |
Merge pull request #985 from 0xProject/feature/contracts/orderValidator
[contracts] Add contract for batch validating orders
Diffstat (limited to 'packages/migrations/src/2.0.0-beta-testnet/migration.ts')
-rw-r--r-- | packages/migrations/src/2.0.0-beta-testnet/migration.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/migrations/src/2.0.0-beta-testnet/migration.ts b/packages/migrations/src/2.0.0-beta-testnet/migration.ts index 19fe5f02c..cc9f5a859 100644 --- a/packages/migrations/src/2.0.0-beta-testnet/migration.ts +++ b/packages/migrations/src/2.0.0-beta-testnet/migration.ts @@ -12,6 +12,7 @@ import { AssetProxyOwnerContract } from './contract_wrappers/asset_proxy_owner'; import { ERC20ProxyContract } from './contract_wrappers/erc20_proxy'; import { ERC721ProxyContract } from './contract_wrappers/erc721_proxy'; import { ExchangeContract } from './contract_wrappers/exchange'; +import { OrderValidatorContract } from './contract_wrappers/order_validator'; /** * Custom migrations should be defined in this function. This will be called with the CLI 'migrate:v2-beta-testnet' command. @@ -75,6 +76,16 @@ export const runV2TestnetMigrationsAsync = async ( ); artifactsWriter.saveArtifact(assetProxyOwner); + // Deploy OrderValidator + const orderValidator = await OrderValidatorContract.deployFrom0xArtifactAsync( + artifacts.OrderValidator, + provider, + txDefaults, + exchange.address, + zrxAssetData, + ); + artifactsWriter.saveArtifact(orderValidator); + // Authorize Exchange contracts to call AssetProxies txHash = await erc20proxy.addAuthorizedAddress.sendTransactionAsync(exchange.address); logUtils.log(`transactionHash: ${txHash}`); |