-
Notifications
You must be signed in to change notification settings - Fork 312
deterministic proxy deployment docs: draft #2309
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,87 @@ | ||||||
## What is deterministic deployment? | ||||||
|
||||||
Deterministic deployment refers to the ability to deploy smart contracts to the same address across different blockchain networks. This consistency can be particularly useful when deploying the same contract on multiple chains to streamline interactions or ensure interoperability. There are two primary methods to achieve deterministic deployment: | ||||||
|
||||||
- Using a **factory contract that has been deployed keylessly** to deploy your contracts. | ||||||
- The factory usually uses the `CREATE2` opcode to deploy your contracts, precomputing the deployment address and ensuring consistency across all chains. | ||||||
- **Deploying your contracts keylessly** (without using any factory) onto all blockchains. | ||||||
- You must keep the code and constructor arguments unchanged to get the same address. | ||||||
|
||||||
## Creating a deterministic deployment | ||||||
|
||||||
Contract address can be precomputed, before the contract is deployed, using a create opcode. This is one of the options for deterministic deployment. | ||||||
|
Contract address can be precomputed, before the contract is deployed, using a create opcode. This is one of the options for deterministic deployment. | |
A contract address can be precomputed, before the contract is deployed, using a create opcode. This is one of the options for deterministic deployment. |
Outdated
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.
Why not make use of one of the factory contracts listed at the bottom of the document and make this an actual deployment example/tutorial, instead of just a list of steps. I don't think there is much benefit in stating Write the smart contract code for the factory contract
in a document that, as far as I can tell, is aimed at people who don't necessarily know what deterministic deployments are at the start of the document.
Uh oh!
There was an error while loading. Please reload this page.