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: replace env private keys with keystores #83

Merged
merged 3 commits into from
Sep 17, 2024

Conversation

0xJabberwock
Copy link
Member

@0xJabberwock 0xJabberwock commented Sep 5, 2024

Closes BES-362

@0xJabberwock 0xJabberwock self-assigned this Sep 5, 2024
@@ -104,7 +104,13 @@ yarn coverage

### Setup

Configure the `.env` variables.
Copy link
Member

Choose a reason for hiding this comment

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

Keep this as you still need the rpcs and etherescan api key

README.md Outdated
@@ -104,7 +104,13 @@ yarn coverage

### Setup

Configure the `.env` variables.
```bash
cast wallet import MAINNET_DEPLOYER --interactive
Copy link
Member

Choose a reason for hiding this comment

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

What do you think about giving devs the choice to name the wallet the way they want? We could do it through the .env file.

Copy link
Member

Choose a reason for hiding this comment

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

hmmm seems unnecessary to build an .env to name the deployer, isn't foundry storing it locally?
is "forcing a dev to choose a name" (setting the env), vs "just using MAINNET_DEPLOYER" and allowing the dev to change the package.json

Copy link
Member Author

@0xJabberwock 0xJabberwock Sep 6, 2024

Choose a reason for hiding this comment

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

Changing the package.json would require every dev to declare (or redeclare) such account locally in order to be able to run yarn deploy. However, I agree with that forcing a dev to choose a name is generally undesired. Maybe we could update MAINNET_DEPLOYER at the beginning of each project, setting it to a more ad hoc account name, or use an organization-wide default name.

gas1cent
gas1cent previously approved these changes Sep 6, 2024
0xShaito
0xShaito previously approved these changes Sep 6, 2024
.env.example Outdated Show resolved Hide resolved
wei3erHase
wei3erHase previously approved these changes Sep 6, 2024
Copy link
Member

@wei3erHase wei3erHase left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Member

@wei3erHase wei3erHase left a comment

Choose a reason for hiding this comment

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

😘🤌🏻

Copy link
Member

@wei3erHase wei3erHase left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Member

@gas1cent gas1cent left a comment

Choose a reason for hiding this comment

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

😍

@gas1cent gas1cent merged commit 05323db into main Sep 17, 2024
7 checks passed
@gas1cent gas1cent deleted the feat/remove-env-deployer-pk branch September 17, 2024 11:53
Copy link

linear bot commented Oct 2, 2024

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.

4 participants