@gooddollar/goodprotocol 2.0.20 → 2.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
mkdir /tmp/goodprotocol
|
|
3
|
+
cp -R node_modules/@gooddollar/goodprotocol /tmp/goodprotocol
|
|
4
|
+
pushd /tmp/goodprotocol
|
|
5
|
+
export CI=false
|
|
6
|
+
export MNEMONIC='test test test test test test test test test test test junk'
|
|
7
|
+
export ADMIN_MNEMONIC='test test test test test test test test test test test junk'
|
|
8
|
+
yarn set version 3.6.0
|
|
9
|
+
echo "nodeLinker: node-modules" >> .yarnrc.yml
|
|
10
|
+
yarn --immutable
|
|
11
|
+
npx patch-package
|
|
12
|
+
yarn runNode &
|
|
13
|
+
sleep 30
|
|
14
|
+
yarn deployTest
|
|
15
|
+
yarn minimize
|
|
16
|
+
popd
|
|
17
|
+
cp -R /tmp/goodprotocol/artifacts node_modules/@gooddollar/goodprotocol/
|
|
18
|
+
cp -R /tmp/goodprotocol/releases node_modules/@gooddollar/goodprotocol/
|
package/scripts/deployFullDAO.ts
CHANGED
|
@@ -249,6 +249,26 @@ export const createDAO = async () => {
|
|
|
249
249
|
|
|
250
250
|
console.log("deploying v2...");
|
|
251
251
|
const v2 = await deployV2(network.name, false, olddao);
|
|
252
|
+
if (isMainnet) {
|
|
253
|
+
let distHelper = await upgrades.deployProxy(
|
|
254
|
+
await ethers.getContractFactory("DistributionHelper"),
|
|
255
|
+
[v2.NameService],
|
|
256
|
+
{
|
|
257
|
+
initializer: "initialize(address)",
|
|
258
|
+
kind: "uups"
|
|
259
|
+
}
|
|
260
|
+
);
|
|
261
|
+
|
|
262
|
+
const goodReserve = await ethers.getContractFactory("GoodReserveCDai");
|
|
263
|
+
console.log("setting distribution helper...");
|
|
264
|
+
|
|
265
|
+
await genericCall(
|
|
266
|
+
v2.GoodReserveCDai,
|
|
267
|
+
goodReserve.interface.encodeFunctionData("setDistributionHelper", [
|
|
268
|
+
distHelper.address
|
|
269
|
+
])
|
|
270
|
+
);
|
|
271
|
+
}
|
|
252
272
|
console.log("deploying adminWallet...");
|
|
253
273
|
const adminWallet = await deployAdminWallet(Identity.address, v2.NameService);
|
|
254
274
|
console.log("setting up identity:", {
|
|
@@ -345,6 +365,7 @@ const deployBridge = async (Avatar, gd, setSchemes, isMainnet) => {
|
|
|
345
365
|
|
|
346
366
|
const deployMainnet = async (Avatar, Identity) => {
|
|
347
367
|
console.log("deploying mainnet...");
|
|
368
|
+
|
|
348
369
|
const [root] = await ethers.getSigners();
|
|
349
370
|
|
|
350
371
|
const cdaiFactory = await ethers.getContractFactory("cDAIMock");
|