Skip to content

Instantly share code, notes, and snippets.

@rahuldamodar94
Last active August 25, 2020 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahuldamodar94/eee63b75ae24f63297667fd7d88eb5f5 to your computer and use it in GitHub Desktop.
Save rahuldamodar94/eee63b75ae24f63297667fd7d88eb5f5 to your computer and use it in GitHub Desktop.
After you install dependecies, go to node_modules/@0x/contract-addresses/lib/addresses.json
and add the following to the list of addresses
"80001":{
"erc20Proxy": "0x0b47076aaa5246411458fcf85494f41bbfdb8470",
"erc721Proxy": "0xff7ca10af37178bdd056628ef42fd7f799fac77c",
"erc1155Proxy": "0x53d791f18155c211ff8b58671d0f7e9b50e596ad",
"zrxToken": "0x5af2b282779c7d4ffc69ca4e6e16676747f5c56b",
"etherToken": "0x5b5e11e4818cceba3e82ca9b97cd0ab80be75ad3",
"exchange": "0x533dc89624dcc012c7323b41f286bd2df478800b",
"erc20BridgeProxy": "0x5638a4b19f121adc4436de3f0e845173b33b594c",
"forwarder": "0x6dcf02d3a963f22dbf85c4025b86a834fef16c15",
"coordinatorRegistry": "0x6f5b9e0456c4849224c7b59dc15f05c48641c4e3",
"coordinator": "0x6669d66979f729445826fee33021090599ad7bd2",
"multiAssetProxy": "0x14f346789675cea7ac3aefd9a5522649c305331b",
"staticCallProxy": "0x4338ef5217239aa2096e83fdba729d782da46790",
"devUtils": "0x7a2d89c4cb4b28b9cef9f269d48b3aecf0f549b7",
"zrxVault": "0xe01ac7c9eb19c63b063134ed2bb5eb7dcc847be9",
"staking": "0x68ec2c09eb634ae0fdbf023c0127c5f4bf3dd92d",
"stakingProxy": "0xb0da4ecb2f7cba700e49c1161bd229cd7c75929e"
}
Then go to node_modules/@0x/contract-addresses/lib/src/index.js and add the following after the ganache config
ChainId[ChainId["Matic"] = 80001] = "Matic";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment