-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81b2ad1
commit 58366d7
Showing
8 changed files
with
70 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
docs/pages/solutions/technical-references/internals/v1/01-deploy.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import { Callout } from "vocs/components"; | ||
|
||
# Deploy Process V1 | ||
|
||
The following steps are required to deploy the [Sequence Wallet V1 Context](#TODO) on a new network. | ||
|
||
<Callout type="info"> | ||
Notice <br /> | ||
For most popular networks this process **is not** required; due to the wallet contracts | ||
being already deployed. To see if a configuration already exists for a given chain | ||
go to [Networks](/solutions/technical-references/chain-support). | ||
</Callout> | ||
|
||
A complete code example of this deployment flow can be found in the [0xSequence.js test suite](https://github.com/0xsequence/sequence.js/blob/91ed0df67fc5ddc47abf727ae8b94a8ca4f66912/packages/0xsequence/tests/browser/testutils/deploy-wallet-context.ts) | ||
and [Wallet Contracts repository](https://github.com/0xsequence/wallet-contracts/blob/38e0719690eee3c4d7d8fa2ceff4ea22b0409f38/utils/deploy-contracts.ts). | ||
|
||
### 1 - Deploy NanoUniversalDeployer | ||
|
||
Pre-found Nick's method address with funds required to pay for the deployment of contracts. | ||
|
||
``` | ||
Address: 0x9c5a87452d4FAC0cbd53BDCA580b20A45526B3AB | ||
Funds: 0.02170000000014 | ||
``` | ||
|
||
**Do not send additional funds to the address, as funds can't be refunded.** | ||
|
||
Once the address is funded, you can deploy the NanoUniversalDeployer by executing the following pre-signed transaction: | ||
|
||
``` | ||
0xf9010880852416b84e01830222e08080b8b66080604052348015600f57600080fd5b50609980601d6000396000f3fe60a06020601f369081018290049091028201604052608081815260009260609284918190838280828437600092018290525084519495509392505060208401905034f5604080516001600160a01b0383168152905191935081900360200190a0505000fea26469706673582212205a310755225e3c740b2f013fb6343f4c205e7141fcdf15947f5f0e0e818727fb64736f6c634300060a00331ca01820182018201820182018201820182018201820182018201820182018201820a01820182018201820182018201820182018201820182018201820182018201820 | ||
``` | ||
|
||
After the transaction is confirmed, you should see the address of the NanoUniversalDeployer: | ||
|
||
``` | ||
NanoUniversalDeployer: 0x9c5a87452d4FAC0cbd53BDCA580b20A45526B3AB | ||
``` | ||
|
||
See more about the [NanoUniversalDeployer](https://gist.github.com/Agusx1211/de05dabf918d448d315aa018e2572031). | ||
|
||
### 2 - Deploy UniversalDeployer2 | ||
|
||
In order to deploy contracts with an instance identifier, we need to deploy the UniversalDeployer2 contract. To ensure address consistency | ||
we use the UniversalDeployer contract to deploy the UniversalDeployer contract. | ||
|
||
Send the following data to the UniversalDeployer deployed in the previous step. | ||
|
||
``` | ||
0x608060405234801561001057600080fd5b5061013d806100206000396000f3fe60806040526004361061001e5760003560e01c80639c4ae2d014610023575b600080fd5b6100cb6004803603604081101561003957600080fd5b81019060208101813564010000000081111561005457600080fd5b82018360208201111561006657600080fd5b8035906020019184600183028401116401000000008311171561008857600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506100cd915050565b005b60008183516020850134f56040805173ffffffffffffffffffffffffffffffffffffffff83168152905191925081900360200190a050505056fea264697066735822122033609f614f03931b92d88c309d698449bb77efcd517328d341fa4f923c5d8c7964736f6c63430007060033 | ||
``` | ||
|
||
After the transaction is confirmed, you should see the address of the UniversalDeployer2: | ||
|
||
``` | ||
UniversalDeployer2: 0x8a5bc19e22d6ad55a2c763b93a75d09f321fe764 | ||
``` | ||
|
||
### 3 - Deploy Wallet Context | ||
|
||
Compile and deploy the contracts in the [Sequence Wallet Context](/solutions/technical-references/chain-support) using the UniversalDeployer2. | ||
|
||
Refer to the [0xSequence.js test suite](https://github.com/0xsequence/sequence.js/blob/91ed0df67fc5ddc47abf727ae8b94a8ca4f66912/packages/0xsequence/tests/browser/testutils/deploy-wallet-context.ts) | ||
or [Wallet Contracts repository](https://github.com/0xsequence/wallet-contracts/blob/38e0719690eee3c4d7d8fa2ceff4ea22b0409f38/utils/deploy-contracts.ts) | ||
for the Wallet Contract context codebase. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters