migrations: Deploy ERC20BridgeSampler
This commit is contained in:
@@ -153,7 +153,7 @@
|
||||
"stakingProxy": "0x59adefa01843c627ba5d6aa350292b4b7ccae67a",
|
||||
"uniswapBridge": "0x0000000000000000000000000000000000000000",
|
||||
"eth2DaiBridge": "0x0000000000000000000000000000000000000000",
|
||||
"erc20BridgeSampler": "0x0000000000000000000000000000000000000000",
|
||||
"erc20BridgeSampler": "0x2c530e4ecc573f11bd72cf5fdf580d134d25f15f",
|
||||
"kyberBridge": "0x0000000000000000000000000000000000000000",
|
||||
"chaiBridge": "0x0000000000000000000000000000000000000000",
|
||||
"dydxBridge": "0x0000000000000000000000000000000000000000",
|
||||
|
||||
@@ -69,6 +69,7 @@
|
||||
"@0x/contracts-dev-utils": "^1.3.3",
|
||||
"@0x/contracts-erc1155": "^2.1.5",
|
||||
"@0x/contracts-erc20": "^3.1.5",
|
||||
"@0x/contracts-erc20-bridge-sampler": "^1.5.1",
|
||||
"@0x/contracts-erc721": "^3.1.5",
|
||||
"@0x/contracts-exchange": "^3.2.5",
|
||||
"@0x/contracts-exchange-forwarder": "^4.2.5",
|
||||
|
||||
@@ -16,6 +16,10 @@ import {
|
||||
import { artifacts as devUtilsArtifacts, DevUtilsContract } from '@0x/contracts-dev-utils';
|
||||
import { artifacts as erc1155Artifacts, ERC1155MintableContract } from '@0x/contracts-erc1155';
|
||||
import { artifacts as erc20Artifacts, DummyERC20TokenContract, WETH9Contract } from '@0x/contracts-erc20';
|
||||
import {
|
||||
artifacts as erc20BridgeSamplerArtifacts,
|
||||
ERC20BridgeSamplerContract,
|
||||
} from '@0x/contracts-erc20-bridge-sampler';
|
||||
import { artifacts as erc721Artifacts, DummyERC721TokenContract } from '@0x/contracts-erc721';
|
||||
import { artifacts as exchangeArtifacts, ExchangeContract } from '@0x/contracts-exchange';
|
||||
import { artifacts as forwarderArtifacts, ForwarderContract } from '@0x/contracts-exchange-forwarder';
|
||||
@@ -42,6 +46,7 @@ const allArtifacts = {
|
||||
...exchangeArtifacts,
|
||||
...forwarderArtifacts,
|
||||
...stakingArtifacts,
|
||||
...erc20BridgeSamplerArtifacts,
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -277,6 +282,14 @@ export async function runMigrationsAsync(
|
||||
etherToken.address,
|
||||
);
|
||||
|
||||
const erc20BridgeSampler = await ERC20BridgeSamplerContract.deployFrom0xArtifactAsync(
|
||||
erc20BridgeSamplerArtifacts.ERC20BridgeSampler,
|
||||
provider,
|
||||
txDefaults,
|
||||
allArtifacts,
|
||||
devUtils.address,
|
||||
);
|
||||
|
||||
const contractAddresses = {
|
||||
erc20Proxy: erc20Proxy.address,
|
||||
erc721Proxy: erc721Proxy.address,
|
||||
@@ -300,7 +313,7 @@ export async function runMigrationsAsync(
|
||||
uniswapBridge: constants.NULL_ADDRESS,
|
||||
eth2DaiBridge: constants.NULL_ADDRESS,
|
||||
kyberBridge: constants.NULL_ADDRESS,
|
||||
erc20BridgeSampler: constants.NULL_ADDRESS,
|
||||
erc20BridgeSampler: erc20BridgeSampler.address,
|
||||
chaiBridge: constants.NULL_ADDRESS,
|
||||
dydxBridge: constants.NULL_ADDRESS,
|
||||
curveBridge: constants.NULL_ADDRESS,
|
||||
|
||||
Reference in New Issue
Block a user