-
Notifications
You must be signed in to change notification settings - Fork 103
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
New protocol-deployments
package - separate versioning of contracts from publishing deployment updates
#305
Conversation
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
dd57509
to
3c1992b
Compare
3c1992b
to
4594a5d
Compare
4594a5d
to
d85a071
Compare
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.
todo:
- add readme to
protocol-deployments
with examples
0de4781
to
c2ce1d2
Compare
57134a6
to
ca30120
Compare
ca30120
to
5753fda
Compare
protocol-deployments
package - separate versioning of contracts from publishing package containing addresses where they are deployed
protocol-deployments
package - separate versioning of contracts from publishing package containing addresses where they are deployedprotocol-deployments
package - separate versioning of contracts from publishing deployment updates
Would be great to create folders to separate the scripts. Given the complexity of the deployment what are your thoughts on creating different packages for each project deployments with a standard pattern? |
yeah maybe imports could be project specific ? eg |
d554799
to
c19731f
Compare
sounds good will do this in a v2 |
… from publishing deployment updates (#305) Created new package `protocol-deployments` * deployment scripts for 1155 contracts have been moved from `1155-contracts` to this new package * deployed 1155 contract addresses have been moved from `1155-contracts` to this new package. Problem this solves: * every time we deployed a contract and want to to publish the changes in a package we had to bump the contract version, since we require the package version to match the contract version. With this change, we can version the contracts independently from the deployed addresses. You can see this in action in the upstream branch "Deploy zora sepolia" where we deployed the contracts to the new Zora Sepolia chain, and just bumped the `protocol-deployments` version without needing to bump the `1155-contracts` version. * The `1155-contracts` wagmi generator now just generates abis to bundle in the package json. * The `protocol-deployments` wagmi generator imports the abis from `1155-contracts` and bundles them with the deployed addresses. * `premint-sdk` imports from `protocol-deployments` to get contract abis and addresses from it
Created new package
protocol-deployments
1155-contracts
to this new package1155-contracts
to this new package.Problem this solves:
With this change, we can version the contracts independently from the deployed addresses.
You can see this in action in the upstream branch "Deploy zora sepolia" where we deployed the contracts to the new Zora Sepolia chain, and just bumped the
protocol-deployments
version without needing to bump the1155-contracts
version.1155-contracts
wagmi generator now just generates abis to bundle in the package json.protocol-deployments
wagmi generator imports the abis from1155-contracts
and bundles them with the deployed addresses.premint-sdk
imports fromprotocol-deployments
to get contract abis and addresses from it