Skip to content
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

Merged
merged 3 commits into from
Mar 12, 2021
Merged

v0.4.0 #84

merged 3 commits into from
Mar 12, 2021

Conversation

josojo
Copy link
Contributor

@josojo josojo commented Mar 11, 2021

New deployment of new contracts with NPM release

  • Sorry, I did not use your new tooling, as I wanted to own the private key and (save some time)
  • Todo: Better dependency for getting canconical weth addresses
  • Contracts are verified on rinkeby, but not yet on xdai

Comment on lines 25 to 34
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";
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Temporary solution only

@josojo josojo requested a review from fedgiac March 12, 2021 07:36
@josojo
Copy link
Contributor Author

josojo commented Mar 12, 2021

Pr is not perfect, but I would like to get it merged and improve later, in order to reduce dependent PRs.

@josojo josojo marked this pull request as ready for review March 12, 2021 07:37
Copy link
Contributor

@fedgiac fedgiac left a 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.

src/deploy/deployer_easyAuction.ts Outdated Show resolved Hide resolved
src/tasks/verify_contracts.ts Outdated Show resolved Hide resolved
src/tasks/verify_contracts.ts Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@josojo josojo merged commit 611e304 into main Mar 12, 2021
@josojo josojo deleted the newDeplyment branch March 12, 2021 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants