You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added hardhat config for L1 testnet and mainnet Alchemy as a provider
Fixing a mistake
Quick undo
Latest changes for L1 mainnet deploy
L1testnet run details
Added a dummy transfer script
A minor tidy up of step 0 and step 1
Further fixes to the deployment README
Added a step0.ts
Copy file name to clipboardExpand all lines: scripts/README.md
+15-2Lines changed: 15 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,14 +48,26 @@ Create a `.env` file. Use the `env.example` as a template. Set the following val
48
48
49
49
## Execution steps
50
50
51
+
### `step0.ts`
52
+
53
+
In this step we deploy the `MultiCallDeploy` only. We use the standard deployment key (Orange key) for this deployment, as the address of the MultiCallDeploy strictly does
54
+
not need to be the same across all the environments.
55
+
56
+
* Set the value of RELAYER_SUBMITTER_EOA_PUB_KEY to match the EOA of the primary Relayer submitter. The Submitter EOA is granted execute permission on the MultiCallDeploy.
57
+
* Set the value of MULTICALL_ADMIN_PUB_KEY
58
+
* Set the `accountIndex` to 0 in `wallet-options.ts`.
59
+
* Execute the command `npx hardhat run scripts/step0.ts --network <ENV>`
60
+
51
61
### `step1.ts`
52
62
53
-
In this step we deploy the `MultiCallDeploy`, and the `Factory`contracts. We use the Passport Nonce reserver
63
+
In this step we deploy the `Factory`contract. We use the Passport Nonce reserver
54
64
in this step because we want the `Factory` contract to have the same address across all our chains, as
55
65
this address is used to produce a deterministic counter factual address for the smart contract wallets across
56
66
all the chains.
57
67
58
68
* Set the value of RELAYER_SUBMITTER_EOA_PUB_KEY to match the EOA of the primary Relayer submitter.
69
+
* Set the value of the FACTORY_ADMIN_PUB_KEY to the privileged mulstisig pub key (Purple ledger)
70
+
* Set the value of `multiCallDeployAddress` to match the address of the contract deployed in Step0.
59
71
* Set the `accountIndex` to 10 in `wallet-options.ts`.
60
72
* Execute the command `npx hardhat run scripts/step1.ts --network <ENV>`
61
73
@@ -64,7 +76,8 @@ all the chains.
64
76
In this step we deploy the contract that tracks the location of the latest wallet implementation. As this step
65
77
just uses the CREATE2 contract factory we use the standard deployment key (Orange Key!!!).
66
78
67
-
* Set the value of WALLET_IMPL_LOCATOR_ADMIN, and WALLET_IMPL_CHANGER_ADMIN environment variables to the public key of the Priveleged key.
79
+
* Set the value of DEPLOYER_CONTRACT_ADDRESS to the address of the CREATE2 factory contract.
80
+
* Set the value of WALLET_IMPL_LOCATOR_ADMIN, and WALLET_IMPL_CHANGER_ADMIN environment variables to the public key of the Privileged key.
68
81
* Set the `accountIndex` to 0.
69
82
* Execute the command `npx hardhat run scripts/step2.ts --network <ENV>`
0 commit comments