Skip to content

Commit

Permalink
Feature/community upgrades (#136)
Browse files Browse the repository at this point in the history
Co-authored-by: Eduard Dumea <[email protected]>
  • Loading branch information
dumedco and Eduard Dumea committed Apr 12, 2023
1 parent 09af200 commit 6e9f58a
Show file tree
Hide file tree
Showing 6 changed files with 925 additions and 134 deletions.
24 changes: 12 additions & 12 deletions deploy/prod/helpers/release.upgradeCommunityAdmin&Community.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ import * as ethersTypes from "ethers";
const { deploy } = deployments;
let deployer: SignerWithAddress;

//alfajores
const governanceDelegatorAddress = "0x5c27e2600a3eDEF53DE0Ec32F01efCF145419eDF";
const proxyAdminAddress = "0x79f9ca5f1A01e1768b9C24AD37FF63A0199E3Fe5";
const communityAdminProxyAddress = "0x1c33D75bcE52132c7a0e220c1C338B9db7cf3f3A";
const communityTestAddress = "0xDFFCace49060DFdADF3e28A6125Bf67298F7c88A";
// //alfajores
// const governanceDelegatorAddress = "0x5c27e2600a3eDEF53DE0Ec32F01efCF145419eDF";
// const proxyAdminAddress = "0x79f9ca5f1A01e1768b9C24AD37FF63A0199E3Fe5";
// const communityAdminProxyAddress = "0x1c33D75bcE52132c7a0e220c1C338B9db7cf3f3A";
// const communityTestAddress = "0xDFFCace49060DFdADF3e28A6125Bf67298F7c88A";


// // mainnet
// const governanceDelegatorAddress = "0x8f8BB984e652Cb8D0aa7C9D6712Ec2020EB1BAb4";
// const proxyAdminAddress = "0xFC641CE792c242EACcD545B7bee2028f187f61EC";
// const communityAdminProxyAddress = "0xd61c407c3A00dFD8C355973f7a14c55ebaFDf6F9";
// const communityTestAddress = "0xd61c407c3A00dFD8C355973f7a14c55ebaFDf6F9";
// mainnet
const governanceDelegatorAddress = "0x8f8BB984e652Cb8D0aa7C9D6712Ec2020EB1BAb4";
const proxyAdminAddress = "0xFC641CE792c242EACcD545B7bee2028f187f61EC";
const communityAdminProxyAddress = "0xd61c407c3A00dFD8C355973f7a14c55ebaFDf6F9";
const communityTestAddress = "0xaac71b9ae81d9847e8dc322c42e52ffa76783b39"; //communityId = 200

let newCommunityAdminImplementationAddress: string;
let newCommunityImplementationAddress: string;
Expand Down Expand Up @@ -97,8 +97,8 @@ async function createUpgradeImplementation() {
[
[communityAdminProxyAddress, newCommunityAdminImplementationAddress],
[newCommunityImplementationAddress],
[10000],
[4]
[200],
[20]
],
'Upgrade CommunityAdmin implementation and CommunityImplementation'
);
Expand Down
187 changes: 130 additions & 57 deletions deployments/mainnet/CommunityAdminImplementation.json

Large diffs are not rendered by default.

360 changes: 297 additions & 63 deletions deployments/mainnet/CommunityImplementation.json

Large diffs are not rendered by default.

484 changes: 484 additions & 0 deletions deployments/mainnet/solcInputs/a3bc9e0b3099c39c3f46d7881179c5bc.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/deposit/deposit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const MTokenABI = require("../../integrations/moola/abi/MToken.json");
chai.use(chaiAsPromised);
const expect = chai.expect;

describe("Deposit", () => {
describe.only("Deposit", () => {
const LENDING_POOL_ADDRESS = "0x970b12522CA9b4054807a2c5B736149a5BE6f670"; //mainnet
const CELO_ADDRESS = "0x471EcE3750Da237f93B8E339c536989b8978a438"; //mainnet
const CUSD_ADDRESS = "0x765DE816845861e75A25fCA122bb6898B8B1282a"; //mainnet
Expand Down

0 comments on commit 6e9f58a

Please sign in to comment.