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

feat: add deploy script and Dockerfile #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

0xArdi
Copy link
Collaborator

@0xArdi 0xArdi commented Sep 19, 2022

No description provided.

networks: {
hardhat: {
allowUnlimitedContractSize: true,
accounts: [
{
privateKey: '0x6cbed15c793ce57650b9877cf6fa156fbef513c4e6134f022a85b1ffdd59b2a1',

Choose a reason for hiding this comment

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

Is this needed? I think default hardhat keys are always the same...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I wasn't sure about the addresses, and I didn't want to take any chances as building + pushing a fix would take 1hr. This setup we have in the elcollectoorr contracts as well.

Comment on lines +19 to +20
# in case the build fails because it cannot download the solidity compilers
# run these commands locally, and comment them out from here. Notice the path!
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This has happened a couple of time already on my local while building the image, with the same error as here: NomicFoundation/hardhat#1280
I haven't encountered it while building without docker.

Comment on lines +164 to +166
const { gnosisSafeFactory, gnosisSafeL2, defaultCallbackHandler } = await deploySafeContractDeps();
const configuredSafeAddress = await deploySafeContract(gnosisSafeL2, gnosisSafeFactory, defaultCallbackHandler);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Regardless if used or not, we deploy the contracts. In this way we ensure that the balancer contracts will always have the same address.

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