@0x/contract-addresses: Update transformer deployer and transformers for champagne-problems deployment.

`@0x/migrations`: Reorder transformer deployments.
This commit is contained in:
Lawrence Forman
2020-09-02 22:16:53 -04:00
parent 3bb60fee19
commit 7e53b4f834
4 changed files with 45 additions and 37 deletions

View File

@@ -334,20 +334,6 @@ export async function runMigrationsAsync(
const exchangeProxyFlashWalletAddress = await exchangeProxy.getTransformWallet().callAsync();
// Deploy transformers.
const fillQuoteTransformer = await FillQuoteTransformerContract.deployFrom0xArtifactAsync(
exchangeProxyArtifacts.FillQuoteTransformer,
provider,
txDefaults,
allArtifacts,
exchange.address,
bridgeAdapter.address,
);
const payTakerTransformer = await PayTakerTransformerContract.deployFrom0xArtifactAsync(
exchangeProxyArtifacts.PayTakerTransformer,
provider,
txDefaults,
allArtifacts,
);
const wethTransformer = await WethTransformerContract.deployFrom0xArtifactAsync(
exchangeProxyArtifacts.WethTransformer,
provider,
@@ -355,12 +341,26 @@ export async function runMigrationsAsync(
allArtifacts,
etherToken.address,
);
const payTakerTransformer = await PayTakerTransformerContract.deployFrom0xArtifactAsync(
exchangeProxyArtifacts.PayTakerTransformer,
provider,
txDefaults,
allArtifacts,
);
const affiliateFeeTransformer = await AffiliateFeeTransformerContract.deployFrom0xArtifactAsync(
exchangeProxyArtifacts.AffiliateFeeTransformer,
provider,
txDefaults,
allArtifacts,
);
const fillQuoteTransformer = await FillQuoteTransformerContract.deployFrom0xArtifactAsync(
exchangeProxyArtifacts.FillQuoteTransformer,
provider,
txDefaults,
allArtifacts,
exchange.address,
bridgeAdapter.address,
);
const contractAddresses = {
erc20Proxy: erc20Proxy.address,