-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.4.0 #84
v0.4.0 #84
Conversation
src/deploy/deployer_easyAuction.ts
Outdated
const easyAuctionDeployed = await get(easyAuction); | ||
let weth9Address; | ||
const chainId = (await hre.ethers.provider.getNetwork()).chainId; | ||
if (chainId == 4) { | ||
weth9Address = weth9Networks.WETH9["4"]["address"]; | ||
} else if (chainId == 1) { | ||
weth9Address = weth9Networks.WETH9["1"]["address"]; | ||
} else if (chainId == 100) { | ||
weth9Address = "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d"; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Temporary solution only
Pr is not perfect, but I would like to get it merged and improve later, in order to reduce dependent PRs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Even if it's not fully working yet, you can do a partial verification on xdai with:
$ npx hardhat sourcify --network xdai
verifying AllowListOffChainManaged (0x80b8AcA4689EC911F048c4E0976892cCDE14031E on chain 100) ...
{"error":"Contract name: AllowListOffChainManaged. Verifying contracts with immutable variables is not supported for xDAI Chain."}
verifying DepositAndPlaceOrder (0x69BE2732891A10D6d3d00073A834194Ff3EeB71d on chain 100) ...
{"error":"Contract name: DepositAndPlaceOrder. Verifying contracts with immutable variables is not supported for xDAI Chain."}
verifying EasyAuction (0x9BacE46438b3f3e0c06d67f5C1743826EE8e87DA on chain 100) ...
=> contract EasyAuction is now verified
So at least EasyAuction
is now verified on xdai. For the rest, we need to wait for immutables to be supported by Sourcify.
New deployment of new contracts with NPM release