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 ChugSplash config parsing via Handlebars #739

Merged
merged 3 commits into from
May 3, 2021

Conversation

smartcontracts
Copy link
Contributor

Description
Adds a simple helper function for parsing ChugSplash config files via https://handlebarsjs.com/.

@changeset-bot
Copy link

changeset-bot bot commented May 3, 2021

⚠️ No Changeset found

Latest commit: 4e94b7a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@smartcontracts smartcontracts added A-contracts C-feature Category: features labels May 3, 2021
@tynes
Copy link
Contributor

tynes commented May 3, 2021

Good set of tests

Copy link
Contributor

@karlfloersch karlfloersch left a comment

Choose a reason for hiding this comment

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

Had a couple questions that I left on the PR but overall this looks suuuper dope! Great callout @tynes to use a templating library

).to.deep.equal({
contracts: {
MyContract: {
address: `0x${'11'.repeat(20)}`,
Copy link
Contributor

@karlfloersch karlfloersch May 3, 2021

Choose a reason for hiding this comment

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

Btw @smartcontracts real quick -- is address optional (at least when deploying to L1)? / What is it used for? I wrote in the doc that it was used for specifying the L2 address of contracts & I just want to verify that we are on the same page about that

Copy link
Contributor

Choose a reason for hiding this comment

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

And if you leave it as optional chugsplash should CREATE2 calculate what the address will be & fill it in right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, correct. Chugsplash will CREATE2 and fill it in for L1. Just not adding that logic yet since we'll want a whole suite of tests around making sure that's working correctly.

@smartcontracts smartcontracts merged commit dda6de6 into v0.4.0-rc May 3, 2021
@smartcontracts smartcontracts deleted the feat/chugsplash-config-parsing branch May 3, 2021 23:22
ben-chain pushed a commit to ben-chain/optimism that referenced this pull request May 6, 2021
…#739)

* feat: Add ChugSplash config parsing with handlebars

* break out validation function

* fix: minor typo in config tests
smartcontracts added a commit that referenced this pull request May 17, 2021
* feat: Add ChugSplash config parsing with handlebars

* break out validation function

* fix: minor typo in config tests
ben-chain pushed a commit to ben-chain/optimism that referenced this pull request May 18, 2021
…#739)

* feat: Add ChugSplash config parsing with handlebars

* break out validation function

* fix: minor typo in config tests
gakonst pushed a commit that referenced this pull request May 20, 2021
* feat: Add ChugSplash config parsing with handlebars

* break out validation function

* fix: minor typo in config tests
gakonst pushed a commit that referenced this pull request May 21, 2021
* feat: Add ChugSplash config parsing with handlebars

* break out validation function

* fix: minor typo in config tests
smartcontracts added a commit that referenced this pull request May 30, 2021
* feat: Add ChugSplash config parsing with handlebars

* break out validation function

* fix: minor typo in config tests
ben-chain pushed a commit to ben-chain/optimism that referenced this pull request Jun 23, 2021
…#739)

* feat: Add ChugSplash config parsing with handlebars

* break out validation function

* fix: minor typo in config tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants