@@ -40,6 +40,12 @@ cp .env.template .env
40
40
41
41
- Add your own keys in your ` .env ` file
42
42
- Edit the ` dao.config.ts ` file (optional)
43
+ - Check if the main account has a sufficient wallet balance:
44
+
45
+ ```
46
+ pnpm bal
47
+ ```
48
+
43
49
- Then deploy to Sepolia:
44
50
45
51
``` bash
@@ -94,42 +100,13 @@ The following functions are `onlyOwner`, and since the NFT contract ownership is
94
100
95
101
### Crosschain
96
102
97
- Make sure the main account, Bob and Alice have sufficient balance on OP Sepolia and Arbitrum Sepolia:
103
+ - Make sure the main account, as well as Alice and Bob accounts have a sufficient balance on OP Sepolia, Arbitrum Sepolia and Base Sepolia
104
+ - Set the initial parameters of the test DAO in ` dao.config.ts `
105
+ - Run the ` deploy-and-test.sh ` script:
98
106
99
107
```
100
- # Deploy to OP Sepolia and Arbitrum Sepolia
101
- pnpm deploy:op-sepolia
102
- pnpm deploy:arbitrum-sepolia
103
-
104
- # Add a new member
105
- npx hardhat run scripts/propose.ts --network op-sepolia
106
- npx hardhat run scripts/verify-proof.ts --network op-sepolia
107
- npx hardhat run scripts/claim-membership.ts --network arbitrum-sepolia
108
-
109
- # Ban a member
110
- npx hardhat run scripts/propose-burn.ts --network op-sepolia
111
- npx hardhat run scripts/verify-burn-proof.ts --network op-sepolia
112
- npx hardhat run scripts/claim-burn.ts --network arbitrum-sepolia
113
-
114
- # Edit 1 membership NFT metadata
115
- npx hardhat run scripts/propose-metadata.ts --network op-sepolia
116
- npx hardhat run scripts/verify-metadata-proof.ts --network op-sepolia
117
- npx hardhat run scripts/claim-metadata.ts --network arbitrum-sepolia
118
-
119
- # Edit the manifesto
120
- npx hardhat run scripts/propose-manifesto.ts --network op-sepolia
121
- npx hardhat run scripts/verify-manifesto-proof.ts --network op-sepolia
122
- npx hardhat run scripts/claim-manifesto.ts --network arbitrum-sepolia
123
-
124
- # Change 1 voting parameter
125
- npx hardhat run scripts/propose-voting-delay.ts --network op-sepolia
126
- npx hardhat run scripts/verify-voting-delay-proof.ts --network op-sepolia
127
- npx hardhat run scripts/claim-voting-delay.ts --network arbitrum-sepolia
128
-
129
- # Change delegation
130
- npx hardhat run scripts/propose-delegation.ts --network op-sepolia
131
- npx hardhat run scripts/verify-delegation-proof.ts --network op-sepolia
132
- npx hardhat run scripts/claim-delegation.ts --network arbitrum-sepolia
108
+ chmod +x scripts/deploy-and-test.sh
109
+ ./scripts/deploy-and-test.sh --salt "<CUSTOM_SALT_HERE>"
133
110
```
134
111
135
112
## Core Dependencies
0 commit comments