Skip to content

Commit

Permalink
RELEASE: fix deployTest
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpy committed Nov 14, 2023
1 parent 398a636 commit 078b124
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
18 changes: 18 additions & 0 deletions scripts/blockchainTestSetup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
mkdir /tmp/goodprotocol
cp -R node_modules/@gooddollar/goodprotocol /tmp/goodprotocol
pushd /tmp/goodprotocol
export CI=false
export MNEMONIC='test test test test test test test test test test test junk'
export ADMIN_MNEMONIC='test test test test test test test test test test test junk'
yarn set version 3.6.0
echo "nodeLinker: node-modules" >> .yarnrc.yml
yarn --immutable
npx patch-package
yarn runNode &
sleep 30
yarn deployTest
yarn minimize
popd
cp -R /tmp/goodprotocol/artifacts node_modules/@gooddollar/goodprotocol/
cp -R /tmp/goodprotocol/releases node_modules/@gooddollar/goodprotocol/
21 changes: 21 additions & 0 deletions scripts/deployFullDAO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,26 @@ export const createDAO = async () => {

console.log("deploying v2...");
const v2 = await deployV2(network.name, false, olddao);
if (isMainnet) {
let distHelper = await upgrades.deployProxy(
await ethers.getContractFactory("DistributionHelper"),
[v2.NameService],
{
initializer: "initialize(address)",
kind: "uups"
}
);

const goodReserve = await ethers.getContractFactory("GoodReserveCDai");
console.log("setting distribution helper...");

await genericCall(
v2.GoodReserveCDai,
goodReserve.interface.encodeFunctionData("setDistributionHelper", [
distHelper.address
])
);
}
console.log("deploying adminWallet...");
const adminWallet = await deployAdminWallet(Identity.address, v2.NameService);
console.log("setting up identity:", {
Expand Down Expand Up @@ -345,6 +365,7 @@ const deployBridge = async (Avatar, gd, setSchemes, isMainnet) => {

const deployMainnet = async (Avatar, Identity) => {
console.log("deploying mainnet...");

const [root] = await ethers.getSigners();

const cdaiFactory = await ethers.getContractFactory("cDAIMock");
Expand Down
2 changes: 1 addition & 1 deletion scripts/test/simulateInterest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const simulate = async function () {
simpleStaking
});

await goodFundManager.collectInterest([simpleStaking], false);
await goodFundManager.collectInterest([simpleStaking], true);

console.log("claiming");

Expand Down

0 comments on commit 078b124

Please sign in to comment.