@gooddollar/goodprotocol 1.0.26 → 1.0.27

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.
Files changed (115) hide show
  1. package/artifacts/contracts/DAOStackInterfaces.sol/Avatar.dbg.json +1 -1
  2. package/artifacts/contracts/DAOStackInterfaces.sol/Controller.dbg.json +1 -1
  3. package/artifacts/contracts/DAOStackInterfaces.sol/GlobalConstraintInterface.dbg.json +1 -1
  4. package/artifacts/contracts/DAOStackInterfaces.sol/IntVoteInterface.dbg.json +1 -1
  5. package/artifacts/contracts/DAOStackInterfaces.sol/ReputationInterface.dbg.json +1 -1
  6. package/artifacts/contracts/DAOStackInterfaces.sol/SchemeRegistrar.dbg.json +1 -1
  7. package/artifacts/contracts/Interfaces.sol/AggregatorV3Interface.dbg.json +1 -1
  8. package/artifacts/contracts/Interfaces.sol/ERC20.dbg.json +1 -1
  9. package/artifacts/contracts/Interfaces.sol/IAaveIncentivesController.dbg.json +1 -1
  10. package/artifacts/contracts/Interfaces.sol/IAdminWallet.dbg.json +1 -1
  11. package/artifacts/contracts/Interfaces.sol/IDonationStaking.dbg.json +1 -1
  12. package/artifacts/contracts/Interfaces.sol/IERC2917.dbg.json +1 -1
  13. package/artifacts/contracts/Interfaces.sol/IFirstClaimPool.dbg.json +1 -1
  14. package/artifacts/contracts/Interfaces.sol/IGoodDollar.dbg.json +1 -1
  15. package/artifacts/contracts/Interfaces.sol/IGoodStaking.dbg.json +1 -1
  16. package/artifacts/contracts/Interfaces.sol/IHasRouter.dbg.json +1 -1
  17. package/artifacts/contracts/Interfaces.sol/IIdentity.dbg.json +1 -1
  18. package/artifacts/contracts/Interfaces.sol/ILendingPool.dbg.json +1 -1
  19. package/artifacts/contracts/Interfaces.sol/INameService.dbg.json +1 -1
  20. package/artifacts/contracts/Interfaces.sol/IUBIScheme.dbg.json +1 -1
  21. package/artifacts/contracts/Interfaces.sol/ProxyAdmin.dbg.json +1 -1
  22. package/artifacts/contracts/Interfaces.sol/Reserve.dbg.json +1 -1
  23. package/artifacts/contracts/Interfaces.sol/Staking.dbg.json +1 -1
  24. package/artifacts/contracts/Interfaces.sol/Uniswap.dbg.json +1 -1
  25. package/artifacts/contracts/Interfaces.sol/UniswapFactory.dbg.json +1 -1
  26. package/artifacts/contracts/Interfaces.sol/UniswapPair.dbg.json +1 -1
  27. package/artifacts/contracts/Interfaces.sol/cERC20.dbg.json +1 -1
  28. package/artifacts/contracts/fuseFaucet/FuseFaucet.sol/FuseFaucet.dbg.json +1 -1
  29. package/artifacts/contracts/governance/ClaimersDistribution.sol/ClaimersDistribution.dbg.json +1 -1
  30. package/artifacts/contracts/governance/CompoundVotingMachine.sol/CompoundVotingMachine.dbg.json +1 -1
  31. package/artifacts/contracts/governance/GReputation.sol/GReputation.dbg.json +1 -1
  32. package/artifacts/contracts/governance/GovernanceStaking.sol/GovernanceStaking.dbg.json +1 -1
  33. package/artifacts/contracts/governance/MultiBaseGovernanceShareField.sol/MultiBaseGovernanceShareField.dbg.json +1 -1
  34. package/artifacts/contracts/governance/Reputation.sol/Reputation.dbg.json +1 -1
  35. package/artifacts/contracts/governance/StakersDistribution.sol/StakersDistribution.dbg.json +1 -1
  36. package/artifacts/contracts/invite/InvitesV1.sol/InvitesV1.dbg.json +1 -1
  37. package/artifacts/contracts/mocks/AaveMock.sol/AaveMock.dbg.json +1 -1
  38. package/artifacts/contracts/mocks/AaveUSDMockOracle.sol/AaveUSDMockOracle.dbg.json +1 -1
  39. package/artifacts/contracts/mocks/BatUSDMockOracle.sol/BatUSDMockOracle.dbg.json +1 -1
  40. package/artifacts/contracts/mocks/CompUsdMockOracle.sol/CompUSDMockOracle.dbg.json +1 -1
  41. package/artifacts/contracts/mocks/DAIMock.sol/DAIMock.dbg.json +1 -1
  42. package/artifacts/contracts/mocks/DaiEthPriceMockOracle.sol/DaiEthPriceMockOracle.dbg.json +1 -1
  43. package/artifacts/contracts/mocks/DecimalsMock.sol/DecimalsMock.dbg.json +1 -1
  44. package/artifacts/contracts/mocks/EthUSDMockOracle.sol/EthUSDMockOracle.dbg.json +1 -1
  45. package/artifacts/contracts/mocks/GasPriceMockOracle.sol/GasPriceMockOracle.dbg.json +1 -1
  46. package/artifacts/contracts/mocks/GoodCompoundStakingTest.sol/GoodCompoundStakingTest.dbg.json +1 -1
  47. package/artifacts/contracts/mocks/GoodFundManagerTest.sol/GoodFundManagerTest.dbg.json +1 -1
  48. package/artifacts/contracts/mocks/IncentiveControllerMock.sol/IncentiveControllerMock.dbg.json +1 -1
  49. package/artifacts/contracts/mocks/LendingPoolMock.sol/LendingPoolMock.dbg.json +1 -1
  50. package/artifacts/contracts/mocks/OverMintTester.sol/OverMintTester.dbg.json +1 -1
  51. package/artifacts/contracts/mocks/OverMintTesterRegularStake.sol/OverMintTesterRegularStake.dbg.json +1 -1
  52. package/artifacts/contracts/mocks/SixteenDecimalsTokenMock.sol/SixteenDecimalsTokenMock.dbg.json +1 -1
  53. package/artifacts/contracts/mocks/SwapHelperTest.sol/SwapHelperTest.dbg.json +1 -1
  54. package/artifacts/contracts/mocks/TwentyDecimalsTokenMock.sol/TwentyDecimalsTokenMock.dbg.json +1 -1
  55. package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock.dbg.json +1 -1
  56. package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock2.dbg.json +1 -1
  57. package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock3.dbg.json +1 -1
  58. package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock4.dbg.json +1 -1
  59. package/artifacts/contracts/mocks/UsdcMock.sol/USDCMock.dbg.json +1 -1
  60. package/artifacts/contracts/mocks/cBATMock.sol/cBATMock.dbg.json +1 -1
  61. package/artifacts/contracts/mocks/cDAILowWorthMock.sol/cDAILowWorthMock.dbg.json +1 -1
  62. package/artifacts/contracts/mocks/cDAIMock.sol/cDAIMock.dbg.json +1 -1
  63. package/artifacts/contracts/mocks/cDAINonMintableMock.sol/cDAINonMintableMock.dbg.json +1 -1
  64. package/artifacts/contracts/mocks/cDecimalsMock.sol/cDecimalsMock.dbg.json +1 -1
  65. package/artifacts/contracts/mocks/cSDTMock.sol/cSDTMock.dbg.json +1 -1
  66. package/artifacts/contracts/mocks/cUSDCMock.sol/cUSDCMock.dbg.json +1 -1
  67. package/artifacts/contracts/reserve/ExchangeHelper.sol/ExchangeHelper.dbg.json +1 -1
  68. package/artifacts/contracts/reserve/GoodMarketMaker.sol/GoodMarketMaker.dbg.json +1 -1
  69. package/artifacts/contracts/reserve/GoodReserveCDai.sol/ContributionCalc.dbg.json +1 -1
  70. package/artifacts/contracts/reserve/GoodReserveCDai.sol/GoodReserveCDai.dbg.json +1 -1
  71. package/artifacts/contracts/staking/BaseShareField.sol/BaseShareField.dbg.json +1 -1
  72. package/artifacts/contracts/staking/BaseShareFieldV2.sol/BaseShareFieldV2.dbg.json +1 -1
  73. package/artifacts/contracts/staking/DonationsStaking.sol/DonationsStaking.dbg.json +1 -1
  74. package/artifacts/contracts/staking/FuseStakingV3.sol/FuseStakingV3.dbg.json +1 -1
  75. package/artifacts/contracts/staking/FuseStakingV3.sol/IConsensus.dbg.json +1 -1
  76. package/artifacts/contracts/staking/FuseStakingV3.sol/PegSwap.dbg.json +1 -1
  77. package/artifacts/contracts/staking/GoodFundManager.sol/GoodFundManager.dbg.json +1 -1
  78. package/artifacts/contracts/staking/SimpleStaking.sol/SimpleStaking.dbg.json +1 -1
  79. package/artifacts/contracts/staking/SimpleStakingV2.sol/SimpleStakingV2.dbg.json +1 -1
  80. package/artifacts/contracts/staking/UniswapV2SwapHelper.sol/UniswapV2SwapHelper.dbg.json +1 -1
  81. package/artifacts/contracts/staking/aave/AaveStakingFactory.sol/AaveStakingFactory.dbg.json +1 -1
  82. package/artifacts/contracts/staking/aave/GoodAaveStaking.sol/GoodAaveStaking.dbg.json +1 -1
  83. package/artifacts/contracts/staking/aave/GoodAaveStakingV2.sol/GoodAaveStakingV2.dbg.json +1 -1
  84. package/artifacts/contracts/staking/compound/CompoundStakingFactory.sol/CompoundStakingFactory.dbg.json +1 -1
  85. package/artifacts/contracts/staking/compound/GoodCompoundStaking.sol/GoodCompoundStaking.dbg.json +1 -1
  86. package/artifacts/contracts/staking/compound/GoodCompoundStakingV2.sol/GoodCompoundStakingV2.dbg.json +1 -1
  87. package/artifacts/contracts/ubi/UBIScheme.sol/UBIScheme.dbg.json +1 -1
  88. package/artifacts/contracts/utils/BancorFormula.sol/BancorFormula.dbg.json +1 -1
  89. package/artifacts/contracts/utils/BulkProof.sol/BulkProof.dbg.json +1 -1
  90. package/artifacts/contracts/utils/DAOContract.sol/DAOContract.dbg.json +1 -1
  91. package/artifacts/contracts/utils/DAOUpgradeableContract.sol/DAOUpgradeableContract.dbg.json +1 -1
  92. package/artifacts/contracts/utils/DSMath.sol/DSMath.dbg.json +1 -1
  93. package/artifacts/contracts/utils/DataTypes.sol/DataTypes.dbg.json +1 -1
  94. package/artifacts/contracts/utils/MultiCall.sol/Multicall.dbg.json +1 -1
  95. package/artifacts/contracts/utils/NameService.sol/NameService.dbg.json +1 -1
  96. package/artifacts/contracts/utils/ProtocolUpgrade.sol/OldMarketMaker.dbg.json +1 -1
  97. package/artifacts/contracts/utils/ProtocolUpgrade.sol/ProtocolUpgrade.dbg.json +1 -1
  98. package/artifacts/contracts/utils/ProtocolUpgradeFuse.sol/ProtocolUpgradeFuse.dbg.json +1 -1
  99. package/artifacts/contracts/utils/ProtocolUpgradeFuseRecover.sol/ProtocolUpgradeFuseRecover.dbg.json +1 -1
  100. package/artifacts/contracts/utils/ProtocolUpgradeRecover.sol/ProtocolUpgradeRecover.dbg.json +1 -1
  101. package/artifacts/contracts/utils/ProxyFactory1967.sol/ERC1967Proxy.dbg.json +1 -1
  102. package/artifacts/contracts/utils/ProxyFactory1967.sol/ProxyFactory1967.dbg.json +1 -1
  103. package/artifacts/contracts/utils/ReputationTestHelper.sol/ReputationTestHelper.dbg.json +1 -1
  104. package/hardhat.config.ts +11 -1
  105. package/package.json +8 -8
  106. package/scripts/bulkProof.ts +0 -5
  107. package/scripts/multichain-deploy/basicdao-deploy.ts +0 -1
  108. package/scripts/upgradeScheme.ts +7 -12
  109. package/scripts/upgradeToV2/upgradeToV2.ts +0 -8
  110. package/scripts/upgradeToV2/upgradeToV2Recover.ts +0 -8
  111. package/test/utils/ProtocolUpgrade.test.ts +1 -4
  112. package/yarn.lock +320 -217
  113. package/patches/@nomiclabs+hardhat-etherscan+3.0.3.patch +0 -41
  114. package/patches/@openzeppelin+hardhat-upgrades+1.7.0.patch +0 -67
  115. package/patches/@openzeppelin+upgrades-core+1.4.2.patch +0 -21
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/ee3a10370761932044086496103a962a.json"
3
+ "buildInfo": "../../../../build-info/c783464b41f4043ab5b967ed9d631ee1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/ee3a10370761932044086496103a962a.json"
3
+ "buildInfo": "../../../../build-info/c783464b41f4043ab5b967ed9d631ee1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/ee3a10370761932044086496103a962a.json"
3
+ "buildInfo": "../../../../build-info/c783464b41f4043ab5b967ed9d631ee1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/ee3a10370761932044086496103a962a.json"
3
+ "buildInfo": "../../../../build-info/c783464b41f4043ab5b967ed9d631ee1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/ee3a10370761932044086496103a962a.json"
3
+ "buildInfo": "../../../build-info/c783464b41f4043ab5b967ed9d631ee1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/ee3a10370761932044086496103a962a.json"
3
+ "buildInfo": "../../../build-info/c783464b41f4043ab5b967ed9d631ee1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/ee3a10370761932044086496103a962a.json"
3
+ "buildInfo": "../../../build-info/c783464b41f4043ab5b967ed9d631ee1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/ee3a10370761932044086496103a962a.json"
3
+ "buildInfo": "../../../build-info/c783464b41f4043ab5b967ed9d631ee1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/ee3a10370761932044086496103a962a.json"
3
+ "buildInfo": "../../../build-info/c783464b41f4043ab5b967ed9d631ee1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/ee3a10370761932044086496103a962a.json"
3
+ "buildInfo": "../../../build-info/c783464b41f4043ab5b967ed9d631ee1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/ee3a10370761932044086496103a962a.json"
3
+ "buildInfo": "../../../build-info/c783464b41f4043ab5b967ed9d631ee1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d4e700cdf55d89b032a8f9e1eb69212.json"
3
+ "buildInfo": "../../../build-info/0c055b479654142fbe8826f67cd9a986.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/ee3a10370761932044086496103a962a.json"
3
+ "buildInfo": "../../../build-info/c783464b41f4043ab5b967ed9d631ee1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/ee3a10370761932044086496103a962a.json"
3
+ "buildInfo": "../../../build-info/c783464b41f4043ab5b967ed9d631ee1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/ee3a10370761932044086496103a962a.json"
3
+ "buildInfo": "../../../build-info/c783464b41f4043ab5b967ed9d631ee1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/ee3a10370761932044086496103a962a.json"
3
+ "buildInfo": "../../../build-info/c783464b41f4043ab5b967ed9d631ee1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/ee3a10370761932044086496103a962a.json"
3
+ "buildInfo": "../../../build-info/c783464b41f4043ab5b967ed9d631ee1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/ee3a10370761932044086496103a962a.json"
3
+ "buildInfo": "../../../build-info/c783464b41f4043ab5b967ed9d631ee1.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/4f8206a440cfa6bac16c5683c5407b03.json"
3
+ "buildInfo": "../../../build-info/28efded0f4a09672715b1b4a8245eaa4.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/4f8206a440cfa6bac16c5683c5407b03.json"
3
+ "buildInfo": "../../../build-info/28efded0f4a09672715b1b4a8245eaa4.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/ee3a10370761932044086496103a962a.json"
3
+ "buildInfo": "../../../build-info/c783464b41f4043ab5b967ed9d631ee1.json"
4
4
  }
package/hardhat.config.ts CHANGED
@@ -54,7 +54,17 @@ const hhconfig: HardhatUserConfig = {
54
54
  apiKey: {
55
55
  mainnet: etherscan_key,
56
56
  celo: celoscan_key
57
- }
57
+ },
58
+ customChains: [
59
+ {
60
+ network: "celo",
61
+ chainId: 42220,
62
+ urls: {
63
+ apiURL: "https://api.celoscan.io",
64
+ browserURL: "https://celoscan.io"
65
+ }
66
+ }
67
+ ]
58
68
  },
59
69
  contractSizer: {
60
70
  alphaSort: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddollar/goodprotocol",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "GoodDollar Protocol",
5
5
  "scripts": {
6
6
  "build": "scripts/build.sh deploy",
@@ -59,7 +59,7 @@
59
59
  "@jsier/retrier": "^1.2.4",
60
60
  "@openzeppelin/contracts": "^4.5.0",
61
61
  "@openzeppelin/contracts-upgradeable": "^4.3.2",
62
- "@typechain/hardhat": "^2.2.0",
62
+ "@typechain/hardhat": "^6.1.2",
63
63
  "async-promise-pool": "^1.0.4",
64
64
  "ethers-multicall": "^0.2.1",
65
65
  "openzeppelin-solidity": "^4.3.2",
@@ -73,10 +73,10 @@
73
73
  "@babel/polyfill": "*",
74
74
  "@babel/preset-env": "*",
75
75
  "@babel/register": "*",
76
- "@nomiclabs/hardhat-ethers": "^2.0.5",
77
- "@nomiclabs/hardhat-etherscan": "^3.0.3",
76
+ "@nomiclabs/hardhat-ethers": "^2.1.1",
77
+ "@nomiclabs/hardhat-etherscan": "^3.1.0",
78
78
  "@nomiclabs/hardhat-waffle": "^2.0.3",
79
- "@openzeppelin/hardhat-upgrades": "1.7.0",
79
+ "@openzeppelin/hardhat-upgrades": "^1.20.0",
80
80
  "@typechain/ethers-v5": "^8.0.2",
81
81
  "@types/mocha": "*",
82
82
  "@types/node": "*",
@@ -93,9 +93,9 @@
93
93
  "fs-extra": "9.0.0",
94
94
  "graphql": "^15.5.0",
95
95
  "graphql-request": "^3.4.0",
96
- "hardhat": "^2.9.3",
97
- "hardhat-contract-sizer": "^2.0.3",
98
- "hardhat-gas-reporter": "^1.0.4",
96
+ "hardhat": "^2.10.2",
97
+ "hardhat-contract-sizer": "^2.6.1",
98
+ "hardhat-gas-reporter": "^1.0.8",
99
99
  "lodash": "^4.17.21",
100
100
  "merkle-tree-solidity": "*",
101
101
  "mocha": "^9.1.2",
@@ -1,7 +1,6 @@
1
1
  import fs from "fs";
2
2
  import { chunk } from "lodash";
3
3
  import { ethers, upgrades, network } from "hardhat";
4
- import { networkNames } from "@openzeppelin/upgrades-core";
5
4
  import GReputationABI from "../artifacts/contracts/governance/GReputation.sol/GReputation.json";
6
5
  import BulkProofABI from "../artifacts/contracts/utils/BulkProof.sol/BulkProof.json";
7
6
 
@@ -12,14 +11,10 @@ import MerkleTree, {
12
11
  import { BigNumber } from "ethers";
13
12
 
14
13
  console.log({
15
- networkNames,
16
14
  network: network.name,
17
15
  upgrade: process.env.UPGRADE
18
16
  });
19
17
  const { name: networkName } = network;
20
- networkNames[1] = networkName;
21
- networkNames[122] = networkName;
22
- networkNames[3] = networkName;
23
18
 
24
19
  export const bulkProof = async () => {
25
20
  console.log("signer", await ethers.getSigners());
@@ -1,5 +1,4 @@
1
1
  import { network, ethers, upgrades, run } from "hardhat";
2
- import { networkNames } from "@openzeppelin/upgrades-core";
3
2
  import { isFunction, get, omitBy } from "lodash";
4
3
  import { getImplementationAddress } from "@openzeppelin/upgrades-core";
5
4
  import pressAnyKey from "press-any-key";
@@ -1,14 +1,10 @@
1
1
  import { ethers, upgrades, network } from "hardhat";
2
- import { networkNames } from "@openzeppelin/upgrades-core";
3
2
  import { getSettings, releaser } from "../../scripts/getMigrationSettings";
4
3
  import { SchemeRegistrar } from "../types";
5
4
  import { getFounders } from "./getFounders";
6
5
 
7
- console.log({ networkNames, network: network.name, upgrade: process.env.UPGRADE });
6
+ console.log({ network: network.name, upgrade: process.env.UPGRADE });
8
7
  const { name: networkName } = network;
9
- networkNames[1] = networkName;
10
- networkNames[122] = networkName;
11
- networkNames[3] = networkName;
12
8
 
13
9
  export const proposeUpgradeScheme = async (daoAddresses, schemeAddress) => {
14
10
  console.log("proposing conntract upgrade to DAO", {
@@ -47,7 +43,10 @@ export const voteUpgradeScheme = async (network, daoAddresses, proposalId) => {
47
43
  );
48
44
 
49
45
  const founders = await getFounders(network);
50
- console.log("voteUpgradeScheme", { absoluteVote: absoluteVote.address, founders });
46
+ console.log("voteUpgradeScheme", {
47
+ absoluteVote: absoluteVote.address,
48
+ founders
49
+ });
51
50
  await Promise.all(
52
51
  founders.slice(0, Math.ceil(founders.length / 2)).map(f =>
53
52
  absoluteVote
@@ -59,12 +58,8 @@ export const voteUpgradeScheme = async (network, daoAddresses, proposalId) => {
59
58
  };
60
59
 
61
60
  const main = async () => {
62
- const {
63
- daoAddresses,
64
- modelAddresses,
65
- upgradableAddresses,
66
- founders
67
- } = await getSettings(networkName);
61
+ const { daoAddresses, modelAddresses, upgradableAddresses, founders } =
62
+ await getSettings(networkName);
68
63
 
69
64
  // const implementation = "0x7fca2b3e1047291f65c2c914083d970c027f4290";
70
65
  // const deployedProxy = upgradableAddresses.FuseStaking;
@@ -8,7 +8,6 @@
8
8
  */
9
9
 
10
10
  import { network, ethers, upgrades, run } from "hardhat";
11
- import { networkNames } from "@openzeppelin/upgrades-core";
12
11
  import { isFunction, get, omitBy } from "lodash";
13
12
  import { getImplementationAddress } from "@openzeppelin/upgrades-core";
14
13
  import pressAnyKey from "press-any-key";
@@ -53,7 +52,6 @@ const countTotalGas = async (tx, name) => {
53
52
  };
54
53
 
55
54
  console.log({
56
- networkNames,
57
55
  network: network.name,
58
56
  upgrade: process.env.UPGRADE
59
57
  });
@@ -64,12 +62,6 @@ export const main = async (
64
62
  isPerformUpgrade = true,
65
63
  olddao?
66
64
  ): Promise<{ [key: string]: any }> => {
67
- if (networkName.startsWith("dapptest") === false) {
68
- networkNames[1] = networkName;
69
- networkNames[122] = networkName;
70
- networkNames[3] = networkName;
71
- }
72
-
73
65
  const isProduction = networkName.startsWith("production");
74
66
  if (isProduction && networkName.includes("mainnet")) {
75
67
  GAS_SETTINGS.gasLimit = 6000000;
@@ -8,7 +8,6 @@
8
8
  */
9
9
 
10
10
  import { network, ethers, upgrades, run } from "hardhat";
11
- import { networkNames } from "@openzeppelin/upgrades-core";
12
11
  import { isFunction, get, omitBy } from "lodash";
13
12
  import { getImplementationAddress } from "@openzeppelin/upgrades-core";
14
13
 
@@ -53,7 +52,6 @@ const countTotalGas = async (tx, name) => {
53
52
  };
54
53
 
55
54
  console.log({
56
- networkNames,
57
55
  network: network.name,
58
56
  upgrade: process.env.UPGRADE
59
57
  });
@@ -64,12 +62,6 @@ export const main = async (
64
62
  isPerformUpgrade = true,
65
63
  olddao?
66
64
  ): Promise<{ [key: string]: any }> => {
67
- if (networkName.startsWith("dapptest") === false) {
68
- networkNames[1] = networkName;
69
- networkNames[122] = networkName;
70
- networkNames[3] = networkName;
71
- }
72
-
73
65
  const isProduction = networkName.startsWith("production");
74
66
  if (isProduction && networkName.includes("mainnet")) {
75
67
  GAS_SETTINGS.gasLimit = 6000000;
@@ -2,7 +2,6 @@ import { default as hre, ethers, upgrades, network } from "hardhat";
2
2
  import { BigNumber, Contract, Signer } from "ethers";
3
3
  import { deployMockContract, MockContract } from "ethereum-waffle";
4
4
  import { expect } from "chai";
5
- import { networkNames } from "@openzeppelin/upgrades-core";
6
5
  import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/dist/src/signer-with-address";
7
6
  import { deploy } from "../../scripts/test/localOldDaoDeploy";
8
7
  import deploySettings from "../../releases/deploy-settings.json";
@@ -66,9 +65,7 @@ describe("ProtocolUpgrade - Upgrade old protocol contracts to new ones", () => {
66
65
  fuseController,
67
66
  goodReserve;
68
67
  const { name: networkName } = network;
69
- networkNames[1] = networkName;
70
- networkNames[122] = networkName;
71
- networkNames[3] = networkName;
68
+
72
69
  before(async () => {
73
70
  [founder, ...signers] = await ethers.getSigners();
74
71
  schemeMock = signers.pop();