Skip to content

Commit 203bb9e

Browse files
Krishang NadgaudaKrishang Nadgauda
authored andcommitted
nativeTokenWrapper addresses in /utils
1 parent 58b793f commit 203bb9e

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

contracts/yarn.lock

Lines changed: 0 additions & 4 deletions
This file was deleted.

scripts/deploy/marketplace.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ import hre, { ethers } from "hardhat";
33
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";
44
import { TWFactory, Marketplace } from "typechain";
55

6+
import { nativeTokenWrapper } from "../../utils/nativeTokenWrapper";
7+
68
async function main() {
9+
10+
const chainId: number = hre.network.config.chainId as number;
11+
712
const [caller]: SignerWithAddress[] = await ethers.getSigners();
813

9-
const nativeTokenWrapperAddress: string = ethers.constants.AddressZero; // replace
14+
const nativeTokenWrapperAddress: string = nativeTokenWrapper[chainId]; // replace
1015
const twFeeAddress: string = ethers.constants.AddressZero; // replace
1116
const twFactoryAddress: string = ethers.constants.AddressZero; // replace
1217

utils/nativeTokenWrapper.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export const nativeTokenWrapper: Record<number, string> = {
2+
1: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
3+
4: "0xc778417E063141139Fce010982780140Aa0cD5Ab", // rinkeby
4+
5: "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6", // goerli
5+
137: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
6+
80001: "0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889",
7+
43114: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",
8+
43113: "0xd00ae08403B9bbb9124bB305C09058E32C39A48c",
9+
250: "0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",
10+
4002: "0xf1277d1Ed8AD466beddF92ef448A132661956621",
11+
};

0 commit comments

Comments
 (0)