Skip to content

Commit

Permalink
some change
Browse files Browse the repository at this point in the history
  • Loading branch information
dumedco committed Nov 15, 2023
1 parent cded51c commit 3d8b63c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
14 changes: 7 additions & 7 deletions deploy/prod/helpers/impactLabsVesting_upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let deployer: SignerWithAddress;
const governanceDelegatorAddress = "0x8f8BB984e652Cb8D0aa7C9D6712Ec2020EB1BAb4";
const proxyAdminAddress = "0xFC641CE792c242EACcD545B7bee2028f187f61EC";
const impactLabsVestingProxyAddress = "0x767DA1d208DDA5bc517dcd4ba2A83591D68A5535";
const newImpactLabsAddress = '0x10FB65dc26a7aCC7CFB4eA3b6E007c8C77591486';
const newImpactLabsAddress = '0xE6662E970CD54c154af8b9dEd54C95a69b133A5a';

let newImpactLabsVestingImplementationAddress: string;

Expand All @@ -29,7 +29,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const accounts: SignerWithAddress[] = await ethers.getSigners();
deployer = accounts[0];

await deployNewImpactLabsImplementation();
// await deployNewImpactLabsImplementation();
await createUpgradeImplementation();
};

Expand All @@ -51,20 +51,20 @@ async function createUpgradeImplementation() {
governanceDelegatorAddress,
deployer,
[
proxyAdminAddress,
// proxyAdminAddress,
impactLabsVestingProxyAddress,
],
[0, 0],
[0],
[
"upgrade(address,address)",
// "upgrade(address,address)",
"updateImpactLabs(address)",
],
[
["address", "address"],
// ["address", "address"],
["address"],
],
[
[impactLabsVestingProxyAddress, newImpactLabsVestingImplementationAddress],
// [impactLabsVestingProxyAddress, newImpactLabsVestingImplementationAddress],
[newImpactLabsAddress],
],
'Upgrade ImpactLabsVesting implementation'
Expand Down
10 changes: 6 additions & 4 deletions script/community/getBeneficiaries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ async function getCommunities() {
);

communityListLength = (await communityAdmin.communityListLength()).toNumber();
// const communityListLength = 2;
// communityListLength = 2;

console.log('communityListLength 1: ', communityListLength);
console.log('communityListLength: ', communityListLength);

let getCommunityAddressPromises = [];

Expand All @@ -64,6 +64,8 @@ async function getCommunities() {

await Promise.all(getCommunityAddressPromises);

console.log('after getCommunityAddressPromises');

let maxBeneficiariesNumber = 0
let totalBeneficiariesNumber = 0
let totalValidBeneficiariesNumber = 0
Expand All @@ -77,7 +79,7 @@ async function getCommunities() {

console.log('maxBeneficiariesNumber: ', maxBeneficiariesNumber);
console.log('totalBeneficiariesNumber: ', totalBeneficiariesNumber);
console.log('totalValidBeneficiariesNumber 1: ', totalValidBeneficiariesNumber);
console.log('totalValidBeneficiariesNumber: ', totalValidBeneficiariesNumber);

fs.writeFileSync("results/communities.json", JSON.stringify(communities), function (err: any) {
if (err) {
Expand Down Expand Up @@ -118,7 +120,7 @@ async function getBeneficiaries(communities: any) {
}
}

// await Promise.all(getCommunityBeneficiaryPromises);
await Promise.all(getCommunityBeneficiaryPromises);

// let chunkSize = 100;
// let counter = 0;
Expand Down
Loading

0 comments on commit 3d8b63c

Please sign in to comment.