@gooddollar/goodprotocol 2.0.29 → 2.0.31-beta.0

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 (186) hide show
  1. package/artifacts/abis/SuperfluidFaucet.min.json +1 -1
  2. package/artifacts/contracts/DAOStackInterfaces.sol/Avatar.dbg.json +1 -1
  3. package/artifacts/contracts/DAOStackInterfaces.sol/Controller.dbg.json +1 -1
  4. package/artifacts/contracts/DAOStackInterfaces.sol/GlobalConstraintInterface.dbg.json +1 -1
  5. package/artifacts/contracts/DAOStackInterfaces.sol/IntVoteInterface.dbg.json +1 -1
  6. package/artifacts/contracts/DAOStackInterfaces.sol/ReputationInterface.dbg.json +1 -1
  7. package/artifacts/contracts/DAOStackInterfaces.sol/SchemeRegistrar.dbg.json +1 -1
  8. package/artifacts/contracts/Interfaces.sol/AggregatorV3Interface.dbg.json +1 -1
  9. package/artifacts/contracts/Interfaces.sol/ERC20.dbg.json +1 -1
  10. package/artifacts/contracts/Interfaces.sol/IAaveIncentivesController.dbg.json +1 -1
  11. package/artifacts/contracts/Interfaces.sol/IAdminWallet.dbg.json +1 -1
  12. package/artifacts/contracts/Interfaces.sol/IDonationStaking.dbg.json +1 -1
  13. package/artifacts/contracts/Interfaces.sol/IERC2917.dbg.json +1 -1
  14. package/artifacts/contracts/Interfaces.sol/IFirstClaimPool.dbg.json +1 -1
  15. package/artifacts/contracts/Interfaces.sol/IGoodDollar.dbg.json +1 -1
  16. package/artifacts/contracts/Interfaces.sol/IGoodStaking.dbg.json +1 -1
  17. package/artifacts/contracts/Interfaces.sol/IHasRouter.dbg.json +1 -1
  18. package/artifacts/contracts/Interfaces.sol/IIdentity.dbg.json +1 -1
  19. package/artifacts/contracts/Interfaces.sol/IIdentityV2.dbg.json +1 -1
  20. package/artifacts/contracts/Interfaces.sol/ILendingPool.dbg.json +1 -1
  21. package/artifacts/contracts/Interfaces.sol/IMultichainRouter.dbg.json +1 -1
  22. package/artifacts/contracts/Interfaces.sol/INameService.dbg.json +1 -1
  23. package/artifacts/contracts/Interfaces.sol/IQuoterV2.dbg.json +1 -1
  24. package/artifacts/contracts/Interfaces.sol/ISwapRouter.dbg.json +1 -1
  25. package/artifacts/contracts/Interfaces.sol/IUBIScheme.dbg.json +1 -1
  26. package/artifacts/contracts/Interfaces.sol/ProxyAdmin.dbg.json +1 -1
  27. package/artifacts/contracts/Interfaces.sol/Reserve.dbg.json +1 -1
  28. package/artifacts/contracts/Interfaces.sol/Staking.dbg.json +1 -1
  29. package/artifacts/contracts/Interfaces.sol/Uniswap.dbg.json +1 -1
  30. package/artifacts/contracts/Interfaces.sol/UniswapFactory.dbg.json +1 -1
  31. package/artifacts/contracts/Interfaces.sol/UniswapPair.dbg.json +1 -1
  32. package/artifacts/contracts/Interfaces.sol/cERC20.dbg.json +1 -1
  33. package/artifacts/contracts/fuseFaucet/Faucet.sol/Faucet.dbg.json +1 -1
  34. package/artifacts/contracts/fuseFaucet/FuseFaucet.sol/FuseFaucet.dbg.json +1 -1
  35. package/artifacts/contracts/fuseFaucet/FuseFaucetV2.sol/FuseFaucetV2.dbg.json +1 -1
  36. package/artifacts/contracts/fuseFaucet/SuperfluidFacuet.sol/SuperfluidFaucet.dbg.json +1 -1
  37. package/artifacts/contracts/fuseFaucet/SuperfluidFacuet.sol/SuperfluidFaucet.json +2 -7
  38. package/artifacts/contracts/governance/ClaimersDistribution.sol/ClaimersDistribution.dbg.json +1 -1
  39. package/artifacts/contracts/governance/CompoundVotingMachine.sol/CompoundVotingMachine.dbg.json +1 -1
  40. package/artifacts/contracts/governance/GReputation.sol/GReputation.dbg.json +1 -1
  41. package/artifacts/contracts/governance/GoodDollarStaking.sol/GoodDollarStaking.dbg.json +1 -1
  42. package/artifacts/contracts/governance/GoodDollarStaking.sol/IGovernanceStaking.dbg.json +1 -1
  43. package/artifacts/contracts/governance/GoodDollarStaking.sol/IStakingUpgrade.dbg.json +1 -1
  44. package/artifacts/contracts/governance/GoodDollarStaking.sol/RewardsMinter.dbg.json +1 -1
  45. package/artifacts/contracts/governance/GovernanceStaking.sol/GovernanceStaking.dbg.json +1 -1
  46. package/artifacts/contracts/governance/MultiBaseGovernanceShareField.sol/MultiBaseGovernanceShareField.dbg.json +1 -1
  47. package/artifacts/contracts/governance/Reputation.sol/Reputation.dbg.json +1 -1
  48. package/artifacts/contracts/governance/StakersDistribution.sol/StakersDistribution.dbg.json +1 -1
  49. package/artifacts/contracts/identity/IdentityV2.sol/IdentityV2.dbg.json +1 -1
  50. package/artifacts/contracts/invite/InvitesFuseV2.sol/InvitesFuseV2.dbg.json +1 -1
  51. package/artifacts/contracts/invite/InvitesV1.sol/InvitesV1.dbg.json +1 -1
  52. package/artifacts/contracts/invite/InvitesV2.sol/InvitesV2.dbg.json +1 -1
  53. package/artifacts/contracts/invite/OneTimeReward.sol/OneTimeReward.dbg.json +1 -1
  54. package/artifacts/contracts/mocks/AaveMock.sol/AaveMock.dbg.json +1 -1
  55. package/artifacts/contracts/mocks/AaveUSDMockOracle.sol/AaveUSDMockOracle.dbg.json +1 -1
  56. package/artifacts/contracts/mocks/BatUSDMockOracle.sol/BatUSDMockOracle.dbg.json +1 -1
  57. package/artifacts/contracts/mocks/CompUsdMockOracle.sol/CompUSDMockOracle.dbg.json +1 -1
  58. package/artifacts/contracts/mocks/DAIMock.sol/DAIMock.dbg.json +1 -1
  59. package/artifacts/contracts/mocks/DaiEthPriceMockOracle.sol/DaiEthPriceMockOracle.dbg.json +1 -1
  60. package/artifacts/contracts/mocks/DecimalsMock.sol/DecimalsMock.dbg.json +1 -1
  61. package/artifacts/contracts/mocks/DistributionBridgeMock.sol/DistributionBridgeMock.dbg.json +1 -1
  62. package/artifacts/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTest.dbg.json +1 -1
  63. package/artifacts/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTestHelper.dbg.json +1 -1
  64. package/artifacts/contracts/mocks/EthUSDMockOracle.sol/EthUSDMockOracle.dbg.json +1 -1
  65. package/artifacts/contracts/mocks/FeesFormularMock.sol/FeesFormulaMock.dbg.json +1 -1
  66. package/artifacts/contracts/mocks/GasPriceMockOracle.sol/GasPriceMockOracle.dbg.json +1 -1
  67. package/artifacts/contracts/mocks/GoodCompoundStakingTest.sol/GoodCompoundStakingTest.dbg.json +1 -1
  68. package/artifacts/contracts/mocks/GoodDollarStakingMock.sol/GoodDollarStakingMock.dbg.json +1 -1
  69. package/artifacts/contracts/mocks/GoodFundManagerTest.sol/GoodFundManagerTest.dbg.json +1 -1
  70. package/artifacts/contracts/mocks/IdentityMock.sol/IdentityMock.dbg.json +1 -1
  71. package/artifacts/contracts/mocks/IncentiveControllerMock.sol/IncentiveControllerMock.dbg.json +1 -1
  72. package/artifacts/contracts/mocks/LendingPoolMock.sol/LendingPoolMock.dbg.json +1 -1
  73. package/artifacts/contracts/mocks/MultichainRouterMock.sol/IWrapper.dbg.json +1 -1
  74. package/artifacts/contracts/mocks/MultichainRouterMock.sol/MultichainRouterMock.dbg.json +1 -1
  75. package/artifacts/contracts/mocks/OverMintTester.sol/IGoodDollarStakingTest.dbg.json +1 -1
  76. package/artifacts/contracts/mocks/OverMintTester.sol/OverMintTester.dbg.json +1 -1
  77. package/artifacts/contracts/mocks/OverMintTesterRegularStake.sol/OverMintTesterRegularStake.dbg.json +1 -1
  78. package/artifacts/contracts/mocks/PayableMock.sol/PayableMock.dbg.json +1 -1
  79. package/artifacts/contracts/mocks/SixteenDecimalsTokenMock.sol/SixteenDecimalsTokenMock.dbg.json +1 -1
  80. package/artifacts/contracts/mocks/StakingMockFixedAPY.sol/StakingMockFixedAPY.dbg.json +1 -1
  81. package/artifacts/contracts/mocks/SwapHelperTest.sol/SwapHelperTest.dbg.json +1 -1
  82. package/artifacts/contracts/mocks/TwentyDecimalsTokenMock.sol/TwentyDecimalsTokenMock.dbg.json +1 -1
  83. package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock.dbg.json +1 -1
  84. package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock2.dbg.json +1 -1
  85. package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock3.dbg.json +1 -1
  86. package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock4.dbg.json +1 -1
  87. package/artifacts/contracts/mocks/UsdcMock.sol/USDCMock.dbg.json +1 -1
  88. package/artifacts/contracts/mocks/cBATMock.sol/cBATMock.dbg.json +1 -1
  89. package/artifacts/contracts/mocks/cDAILowWorthMock.sol/cDAILowWorthMock.dbg.json +1 -1
  90. package/artifacts/contracts/mocks/cDAIMock.sol/cDAIMock.dbg.json +1 -1
  91. package/artifacts/contracts/mocks/cDAINonMintableMock.sol/cDAINonMintableMock.dbg.json +1 -1
  92. package/artifacts/contracts/mocks/cDecimalsMock.sol/cDecimalsMock.dbg.json +1 -1
  93. package/artifacts/contracts/mocks/cSDTMock.sol/cSDTMock.dbg.json +1 -1
  94. package/artifacts/contracts/mocks/cUSDCMock.sol/cUSDCMock.dbg.json +1 -1
  95. package/artifacts/contracts/reserve/DistributionHelper.sol/DistributionHelper.dbg.json +1 -1
  96. package/artifacts/contracts/reserve/ExchangeHelper.sol/ExchangeHelper.dbg.json +1 -1
  97. package/artifacts/contracts/reserve/GoodMarketMaker.sol/GoodMarketMaker.dbg.json +1 -1
  98. package/artifacts/contracts/reserve/GoodReserveCDai.sol/ContributionCalc.dbg.json +1 -1
  99. package/artifacts/contracts/reserve/GoodReserveCDai.sol/GoodReserveCDai.dbg.json +1 -1
  100. package/artifacts/contracts/staking/BaseShareField.sol/BaseShareField.dbg.json +1 -1
  101. package/artifacts/contracts/staking/BaseShareFieldV2.sol/BaseShareFieldV2.dbg.json +1 -1
  102. package/artifacts/contracts/staking/DonationsStaking.sol/DonationsStaking.dbg.json +1 -1
  103. package/artifacts/contracts/staking/FuseStakingV3.sol/FuseStakingV3.dbg.json +1 -1
  104. package/artifacts/contracts/staking/FuseStakingV3.sol/IConsensus.dbg.json +1 -1
  105. package/artifacts/contracts/staking/FuseStakingV3.sol/PegSwap.dbg.json +1 -1
  106. package/artifacts/contracts/staking/GoodFundManager.sol/GoodFundManager.dbg.json +1 -1
  107. package/artifacts/contracts/staking/SimpleStaking.sol/SimpleStaking.dbg.json +1 -1
  108. package/artifacts/contracts/staking/SimpleStakingV2.sol/SimpleStakingV2.dbg.json +1 -1
  109. package/artifacts/contracts/staking/UniswapV2SwapHelper.sol/UniswapV2SwapHelper.dbg.json +1 -1
  110. package/artifacts/contracts/staking/aave/AaveStakingFactory.sol/AaveStakingFactory.dbg.json +1 -1
  111. package/artifacts/contracts/staking/aave/GoodAaveStaking.sol/GoodAaveStaking.dbg.json +1 -1
  112. package/artifacts/contracts/staking/aave/GoodAaveStakingV2.sol/GoodAaveStakingV2.dbg.json +1 -1
  113. package/artifacts/contracts/staking/compound/CompoundStakingFactory.sol/CompoundStakingFactory.dbg.json +1 -1
  114. package/artifacts/contracts/staking/compound/GoodCompoundStaking.sol/GoodCompoundStaking.dbg.json +1 -1
  115. package/artifacts/contracts/staking/compound/GoodCompoundStakingV2.sol/GoodCompoundStakingV2.dbg.json +1 -1
  116. package/artifacts/contracts/staking/utils/Math64X64.sol/Math64x64.dbg.json +1 -1
  117. package/artifacts/contracts/staking/utils/StakingRewardsFixedAPY.sol/StakingRewardsFixedAPY.dbg.json +1 -1
  118. package/artifacts/contracts/token/ERC20PresetMinterPauserUpgradeable.sol/ERC20PresetMinterPauserUpgradeable.dbg.json +1 -1
  119. package/artifacts/contracts/token/ERC677.sol/ERC677.dbg.json +1 -1
  120. package/artifacts/contracts/token/ERC677.sol/ERC677Receiver.dbg.json +1 -1
  121. package/artifacts/contracts/token/GoodDollar.sol/GoodDollar.dbg.json +1 -1
  122. package/artifacts/contracts/token/IFeesFormula.sol/IFeesFormula.dbg.json +1 -1
  123. package/artifacts/contracts/token/MultichainFeeFormula.sol/MultichainFeeFormula.dbg.json +1 -1
  124. package/artifacts/contracts/token/superfluid/ERC20Permit.sol/ERC20Permit.dbg.json +1 -1
  125. package/artifacts/contracts/token/superfluid/ERC20Permit.sol/SelfApprove.dbg.json +1 -1
  126. package/artifacts/contracts/token/superfluid/ISuperGoodDollar.sol/IGoodDollarCustom.dbg.json +1 -1
  127. package/artifacts/contracts/token/superfluid/ISuperGoodDollar.sol/ISuperGoodDollar.dbg.json +1 -1
  128. package/artifacts/contracts/token/superfluid/ISuperToken.sol/ISuperToken.dbg.json +1 -1
  129. package/artifacts/contracts/token/superfluid/SuperGoodDollar.sol/SuperGoodDollar.dbg.json +1 -1
  130. package/artifacts/contracts/token/superfluid/SuperToken.sol/SuperToken.dbg.json +1 -1
  131. package/artifacts/contracts/token/superfluid/SuperfluidToken.sol/SuperfluidToken.dbg.json +1 -1
  132. package/artifacts/contracts/token/superfluid/UUPSProxiable.sol/UUPSProxiable.dbg.json +1 -1
  133. package/artifacts/contracts/token/superfluid/UUPSProxy.sol/Proxy.dbg.json +1 -1
  134. package/artifacts/contracts/token/superfluid/UUPSProxy.sol/UUPSProxy.dbg.json +1 -1
  135. package/artifacts/contracts/token/superfluid/UUPSProxy.sol/UUPSUtils.dbg.json +1 -1
  136. package/artifacts/contracts/ubi/UBIScheme.sol/UBIScheme.dbg.json +1 -1
  137. package/artifacts/contracts/ubi/UBISchemeV2.sol/UBISchemeV2.dbg.json +1 -1
  138. package/artifacts/contracts/utils/AdminWallet.sol/AdminWallet.dbg.json +1 -1
  139. package/artifacts/contracts/utils/AdminWalletFuse.sol/AdminWalletFuse.dbg.json +1 -1
  140. package/artifacts/contracts/utils/BancorFormula.sol/BancorFormula.dbg.json +1 -1
  141. package/artifacts/contracts/utils/BulkProof.sol/BulkProof.dbg.json +1 -1
  142. package/artifacts/contracts/utils/BulkWhitelist.sol/BulkWhitelist.dbg.json +1 -1
  143. package/artifacts/contracts/utils/BuyAndBridgeHelper.sol/BuyAndBridgeHelper.dbg.json +1 -1
  144. package/artifacts/contracts/utils/BuyGDClone.sol/BuyGDClone.dbg.json +1 -1
  145. package/artifacts/contracts/utils/BuyGDClone.sol/BuyGDCloneFactory.dbg.json +1 -1
  146. package/artifacts/contracts/utils/BuyGDClone.sol/DonateGDClone.dbg.json +1 -1
  147. package/artifacts/contracts/utils/DAOContract.sol/DAOContract.dbg.json +1 -1
  148. package/artifacts/contracts/utils/DAOUpgradeableContract.sol/DAOUpgradeableContract.dbg.json +1 -1
  149. package/artifacts/contracts/utils/DSMath.sol/DSMath.dbg.json +1 -1
  150. package/artifacts/contracts/utils/DataTypes.sol/DataTypes.dbg.json +1 -1
  151. package/artifacts/contracts/utils/FuseOldBridgeKill.sol/EternalStorage.dbg.json +1 -1
  152. package/artifacts/contracts/utils/FuseOldBridgeKill.sol/FuseOldBridgeKill.dbg.json +1 -1
  153. package/artifacts/contracts/utils/FuseOldBridgeKill.sol/IUpgradeabilityOwnerStorage.dbg.json +1 -1
  154. package/artifacts/contracts/utils/FuseOldBridgeKill.sol/Initializable.dbg.json +1 -1
  155. package/artifacts/contracts/utils/FuseOldBridgeKill.sol/Ownable.dbg.json +1 -1
  156. package/artifacts/contracts/utils/FuseOldBridgeKill.sol/Upgradeable.dbg.json +1 -1
  157. package/artifacts/contracts/utils/GDFaucet.sol/GDFaucet.dbg.json +1 -1
  158. package/artifacts/contracts/utils/GoodDollarMintBurnWrapper.sol/GoodDollarMintBurnWrapper.dbg.json +1 -1
  159. package/artifacts/contracts/utils/GoodDollarMintBurnWrapper.sol/IRouter.dbg.json +1 -1
  160. package/artifacts/contracts/utils/GoodDollarMintBurnWrapper.sol/PausableControl.dbg.json +1 -1
  161. package/artifacts/contracts/utils/GoodDollarMintBurnWrapper.sol/TokenOperation.dbg.json +1 -1
  162. package/artifacts/contracts/utils/IdentityFix.sol/IdentityFix.dbg.json +1 -1
  163. package/artifacts/contracts/utils/LastauthReduction.sol/LastauthReduction.dbg.json +1 -1
  164. package/artifacts/contracts/utils/MultiCall.sol/Multicall.dbg.json +1 -1
  165. package/artifacts/contracts/utils/MultichainBridgeHelper.sol/MultichainBridgeHelper.dbg.json +1 -1
  166. package/artifacts/contracts/utils/NameService.sol/NameService.dbg.json +1 -1
  167. package/artifacts/contracts/utils/OneTimePayments.sol/OneTimePayments.dbg.json +1 -1
  168. package/artifacts/contracts/utils/OneTimePaymentsV2.sol/OneTimePaymentsV2.dbg.json +1 -1
  169. package/artifacts/contracts/utils/ProtocolUpgrade.sol/OldMarketMaker.dbg.json +1 -1
  170. package/artifacts/contracts/utils/ProtocolUpgrade.sol/ProtocolUpgrade.dbg.json +1 -1
  171. package/artifacts/contracts/utils/ProtocolUpgradeFuse.sol/ProtocolUpgradeFuse.dbg.json +1 -1
  172. package/artifacts/contracts/utils/ProtocolUpgradeFuseRecover.sol/ProtocolUpgradeFuseRecover.dbg.json +1 -1
  173. package/artifacts/contracts/utils/ProtocolUpgradeRecover.sol/ProtocolUpgradeRecover.dbg.json +1 -1
  174. package/artifacts/contracts/utils/ProxyFactory1967.sol/ERC1967Proxy.dbg.json +1 -1
  175. package/artifacts/contracts/utils/ProxyFactory1967.sol/ProxyFactory1967.dbg.json +1 -1
  176. package/artifacts/contracts/utils/ReputationTestHelper.sol/ReputationTestHelper.dbg.json +1 -1
  177. package/artifacts/contracts/utils/ReserveRestore.sol/ReserveRestore.dbg.json +1 -1
  178. package/contracts/fuseFaucet/SuperfluidFacuet.sol +14 -11
  179. package/hardhat.config.ts +6 -0
  180. package/package.json +1 -1
  181. package/releases/deployment.json +5 -0
  182. package/scripts/fv.ts +34 -1
  183. package/scripts/multichain-deploy/0_proxyFactory-deploy.ts +4 -2
  184. package/scripts/multichain-deploy/7_superfluidfaucet-deploy.ts +3 -2
  185. package/types/contracts/fuseFaucet/SuperfluidFacuet.sol/SuperfluidFaucet.ts +6 -26
  186. package/types/factories/contracts/fuseFaucet/SuperfluidFacuet.sol/SuperfluidFaucet__factory.ts +1 -6
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/1d00c8f5ccad05da26a8e493df2356f6.json"
3
+ "buildInfo": "../../../build-info/9236021cc12c9bb47d79682ca39f483a.json"
4
4
  }
@@ -63,43 +63,46 @@ contract SuperfluidFaucet is
63
63
  emit SettingsUpdated(_maxValuePerPeriod, _toppingPeriod);
64
64
  }
65
65
 
66
- function canTop(address recipient, uint amount) public view returns (bool) {
66
+ function canTop(address recipient) public view returns (bool) {
67
+ RecipientInfo memory info = recipientInfo[recipient];
68
+ bool firstTime = info.lastWithdrawalPeriod == 0;
69
+ uint amount = getToppingValue(firstTime);
67
70
  if (recipient == address(0)) return false;
68
- if (recipient.balance >= amount / 2) return false;
71
+ if (recipient.balance >= amount) return false;
69
72
 
70
73
  uint256 amountToSend = amount.sub(recipient.balance);
71
74
  if (address(this).balance < amountToSend) return false;
72
75
 
73
76
  uint256 currentPeriod = block.timestamp / toppingPeriod;
74
- RecipientInfo memory info = recipientInfo[recipient];
75
77
 
76
78
  if (currentPeriod > info.lastWithdrawalPeriod) {
77
79
  return true; // New period, reset counters
78
80
  }
79
81
 
80
- if (info.totalWithdrawnThisPeriod.add(amountToSend) > maxValuePerPeriod)
81
- return false;
82
+ // first time has larger amount so we skip this check
83
+ if (
84
+ !firstTime &&
85
+ info.totalWithdrawnThisPeriod.add(amountToSend) > maxValuePerPeriod
86
+ ) return false;
82
87
 
83
88
  return true;
84
89
  }
85
90
 
86
91
  function getToppingValue(bool firstTime) public view returns (uint) {
92
+ //on eth_call basefee is always 0, so use some kind of default
93
+ uint blockFee = block.basefee == 0 ? 1e8 : block.basefee;
87
94
  //top wallet with current base fee + 10% for priority fee and l1 fees
88
95
  return
89
96
  ((firstTime ? FIRST_GAS_TOPPING_AMOUNT : GAS_TOPPING_AMOUNT) *
90
- block.basefee *
97
+ blockFee *
91
98
  110) / 100;
92
99
  }
93
100
 
94
101
  function topWallet(address payable recipient) external onlyRole(ADMIN_ROLE) {
102
+ require(canTop(recipient), "Recipient cannot be topped up");
95
103
  RecipientInfo storage info = recipientInfo[recipient];
96
104
  bool firstTime = info.lastWithdrawalPeriod == 0;
97
105
  uint amount = getToppingValue(firstTime);
98
- //first time we always allow, no canTop check required
99
- if (!firstTime) {
100
- require(canTop(recipient, amount), "Recipient cannot be topped up");
101
- }
102
-
103
106
  uint256 currentPeriod = block.timestamp / toppingPeriod;
104
107
 
105
108
  if (currentPeriod > info.lastWithdrawalPeriod) {
package/hardhat.config.ts CHANGED
@@ -253,6 +253,12 @@ const hhconfig: HardhatUserConfig = {
253
253
  initialBaseFeePerGas: 0,
254
254
  gasPrice: 8e6
255
255
  },
256
+ "production-base": {
257
+ accounts: [deployerPrivateKey],
258
+ url: "https://mainnet.base.org",
259
+ initialBaseFeePerGas: 0,
260
+ gasPrice: 8e6
261
+ },
256
262
  gnosis: {
257
263
  accounts: [deployerPrivateKey],
258
264
  url: "https://rpc.gnosischain.com",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddollar/goodprotocol",
3
- "version": "2.0.29",
3
+ "version": "2.0.31-beta.0",
4
4
  "description": "GoodDollar Protocol",
5
5
  "engines": {
6
6
  "node": ">=16.x"
@@ -614,5 +614,10 @@
614
614
  "ProxyFactory": "0x5B22F5623ECB00E288539346F389E05f65e226ae",
615
615
  "AdminWallet": "0x6672C998C49635aA6825Be355fF2e731f417B674",
616
616
  "SuperfluidFaucet": "0x0c86C82eb8d6a8E991bbc37C58e23344b20520a2"
617
+ },
618
+ "production-base": {
619
+ "ProxyFactory": "0xD86cd6Bb3c2a576b2C2CEF4e047b1A7adC5Be62D",
620
+ "SuperfluidFaucet": "0x51A073a0F910B3902a98a584397101211F01d81F",
621
+ "AdminWallet": "0x7119CD89D4792aF90277d84cDffa3F2Ab22a0022"
617
622
  }
618
623
  }
package/scripts/fv.ts CHANGED
@@ -5,6 +5,18 @@ import { bulkIsWhitelisted, bulkLastAuth } from "./utils";
5
5
 
6
6
  //create tunnel to fv server ssh -L 9090:server:8080 -N user@server -i sshkey
7
7
 
8
+ const saveImage = async (id, idx) => {
9
+ const age = await fetch("http://localhost:9090/estimate-age-3d-v2", {
10
+ method: "POST",
11
+ body: JSON.stringify({ externalDatabaseRefID: id }),
12
+ headers: { "content-type": "applcation/json" }
13
+ }).then(_ => _.json());
14
+ console.log({ age });
15
+ const i1 = await fetch("http://localhost:9090/enrollment-3d/" + id).then(_ => _.json());
16
+ fs.writeFileSync("fvimages/" + id + "_" + idx + ".jpg", i1.auditTrailBase64, {
17
+ encoding: "base64"
18
+ });
19
+ };
8
20
  const saveImages = async a => {
9
21
  const i1 = await fetch("http://localhost:9090/enrollment-3d/" + a[1]).then(_ => _.json());
10
22
  const i2 = await fetch("http://localhost:9090/enrollment-3d/" + a[2]).then(_ => _.json());
@@ -206,8 +218,29 @@ const deleteIdentifiers = async password => {
206
218
  const res = await Promise.all(ps);
207
219
  console.log(res);
208
220
  };
221
+
222
+ const exportScans = async ids => {
223
+ console.log(ids.length, "unique:", uniqBy(ids).length);
224
+ const exports = ids.map(async (_, idx) => {
225
+ if (fs.existsSync("fvimages/" + idx + ".jpg")) return;
226
+ const { faceMapBase64, auditTrailBase64 } = await fetch("http://localhost:9090/enrollment-3d/" + _).then(_ =>
227
+ _.json()
228
+ );
229
+ const { exportedFaceTecDataForDebugBase64 } = await fetch("http://localhost:9090/export-for-facetec/", {
230
+ method: "POST",
231
+ headers: { "content-type": "application/json" },
232
+ body: JSON.stringify({ faceScanOrFaceMapOrIDScan: faceMapBase64 })
233
+ }).then(_ => _.json());
234
+ console.log(_, exportedFaceTecDataForDebugBase64.length);
235
+ fs.writeFileSync("fvimages/export_" + idx + ".txt", exportedFaceTecDataForDebugBase64);
236
+ fs.writeFileSync("fvimages/" + idx + ".jpg", auditTrailBase64, {
237
+ encoding: "base64"
238
+ });
239
+ });
240
+ await Promise.all(exports);
241
+ };
209
242
  // checkIndexedOrDelete();
210
- fixInvalidIndexed();
243
+ // fixInvalidIndexed();
211
244
  // console.log(process.env.ADMIN_PASSWORD);
212
245
  // deleteIdentifiers(process.env.ADMIN_PASSWORD);
213
246
  // main();
@@ -6,15 +6,17 @@ import releaser from "../../scripts/releaser";
6
6
  import dao from "../../releases/deployment.json";
7
7
 
8
8
  const { name } = network;
9
-
9
+ const celoProxyByteCode =
10
+ "0x608060405234801561001057600080fd5b5060405161002060208201610044565b601f1982820381018352601f90910116604052805160209190910120600055610051565b6105c680610d8383390190565b610d23806100606000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80630bf61a011461005c5780631b903b841461008557806340ad200d1461009857806381ae1f5b146100ab578063b3eeb5e2146100be575b600080fd5b61006f61006a366004610512565b6100d1565b60405161007c9190610568565b60405180910390f35b61006f61009336600461057c565b6100e7565b61006f6100a63660046105f7565b61016c565b61006f6100b936600461062c565b6101df565b61006f6100cc366004610658565b6101f5565b60006100df848484336102f2565b949350505050565b60008061012b853386868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506103cd92505050565b90507fcf78cf0d6f3d8371e1075c69c492ab4ec5d8cf23a1a239b6a51a1d00be7ca3128160405161015c9190610568565b60405180910390a1949350505050565b60008061017985856103fe565b6040516001600160f81b031960208201526001600160601b03193060601b166021820152603581018290526055810185905290915060009060750160408051808303601f1901815291905280516020909101206001600160a01b03169695505050505050565b60006101ee838360005461016c565b9392505050565b6000808360601b9050604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528160148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f09250507efffc2da0b561cae30d9826d37709e9421c4725faebc226cbbb7ef5fc5e7349826040516102709190610568565b60405180910390a18251156102eb576000826001600160a01b03168460405161029991906106c9565b6000604051808303816000865af19150503d80600081146102d6576040519150601f19603f3d011682016040523d82523d6000602084013e6102db565b606091505b50509050806102e957600080fd5b505b5092915050565b6000806040518060200161030590610447565b601f1982820381018352601f90910116604052905060006103278785846103cd565b60405163347d5e2560e21b815290915081906001600160a01b0382169063d1f578949061035a908a908a906004016106e5565b600060405180830381600087803b15801561037457600080fd5b505af1158015610388573d6000803e3d6000fd5b505050507efffc2da0b561cae30d9826d37709e9421c4725faebc226cbbb7ef5fc5e7349816040516103ba9190610568565b60405180910390a1979650505050505050565b60008060006103dc86866103fe565b9050808451602086016000f59150813b6103f557600080fd5b50949350505050565b6000828260405160200161042992919091825260601b6001600160601b031916602082015260340190565b60405160208183030381529060405280519060200120905092915050565b6105c68061072883390190565b80356001600160a01b038116811461046b57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261049757600080fd5b81356001600160401b03808211156104b1576104b1610470565b604051601f8301601f19908116603f011681019082821181831017156104d9576104d9610470565b816040528381528660208588010111156104f257600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060006060848603121561052757600080fd5b8335925061053760208501610454565b915060408401356001600160401b0381111561055257600080fd5b61055e86828701610486565b9150509250925092565b6001600160a01b0391909116815260200190565b60008060006040848603121561059157600080fd5b8335925060208401356001600160401b03808211156105af57600080fd5b818601915086601f8301126105c357600080fd5b8135818111156105d257600080fd5b8760208285010111156105e457600080fd5b6020830194508093505050509250925092565b60008060006060848603121561060c57600080fd5b8335925061061c60208501610454565b9150604084013590509250925092565b6000806040838503121561063f57600080fd5b8235915061064f60208401610454565b90509250929050565b6000806040838503121561066b57600080fd5b61067483610454565b915060208301356001600160401b0381111561068f57600080fd5b61069b85828601610486565b9150509250929050565b60005b838110156106c05781810151838201526020016106a8565b50506000910152565b600082516106db8184602087016106a5565b9190910192915050565b60018060a01b038316815260406020820152600082518060408401526107128160608501602087016106a5565b601f01601f191691909101606001939250505056fe608060405234801561001057600080fd5b506105a6806100206000396000f3fe6080604052600436106100225760003560e01c8063d1f578941461003957610031565b366100315761002f61004c565b005b61002f61004c565b61002f6100473660046103ef565b61005e565b61005c61005761013d565b61014c565b565b6000610068610170565b6001600160a01b0316146100b15760405162461bcd60e51b815260206004820152600b60248201526a1a5b9a5d1a585b1a5e995960aa1b60448201526064015b60405180910390fd5b6100dc60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61047f565b60008051602061052a833981519152146100f8576100f86104a0565b6101388383838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250925061018c915050565b505050565b6000610147610170565b905090565b3660008037600080366000845af43d6000803e80801561016b573d6000f35b3d6000fd5b60008051602061052a833981519152546001600160a01b031690565b610195836101b7565b6000825111806101a25750805b15610138576101b183836101f7565b50505050565b6101c081610225565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606061021c838360405180606001604052806027815260200161054a602791396102bf565b90505b92915050565b61022e81610337565b6102905760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016100a8565b60008051602061052a83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080856001600160a01b0316856040516102dc91906104da565b600060405180830381855af49150503d8060008114610317576040519150601f19603f3d011682016040523d82523d6000602084013e61031c565b606091505b509150915061032d86838387610346565b9695505050505050565b6001600160a01b03163b151590565b606083156103b35782516000036103ac5761036085610337565b6103ac5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016100a8565b50816103bd565b6103bd83836103c5565b949350505050565b8151156103d55781518083602001fd5b8060405162461bcd60e51b81526004016100a891906104f6565b60008060006040848603121561040457600080fd5b83356001600160a01b038116811461041b57600080fd5b925060208401356001600160401b038082111561043757600080fd5b818601915086601f83011261044b57600080fd5b81358181111561045a57600080fd5b87602082850101111561046c57600080fd5b6020830194508093505050509250925092565b8181038181111561021f57634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052600160045260246000fd5b60005b838110156104d15781810151838201526020016104b9565b50506000910152565b600082516104ec8184602087016104b6565b9190910192915050565b60208152600082518060208401526105158160408501602087016104b6565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220700964e1863e921cf409e58babd7df4199472bb8aeeac1315f61421b99f6fd5864736f6c63430008100033a264697066735822122015cbe254261934ea1f570e1c22223384888b3a09d774864acb6e95dfb8d4915e64736f6c63430008100033608060405234801561001057600080fd5b506105a6806100206000396000f3fe6080604052600436106100225760003560e01c8063d1f578941461003957610031565b366100315761002f61004c565b005b61002f61004c565b61002f6100473660046103ef565b61005e565b61005c61005761013d565b61014c565b565b6000610068610170565b6001600160a01b0316146100b15760405162461bcd60e51b815260206004820152600b60248201526a1a5b9a5d1a585b1a5e995960aa1b60448201526064015b60405180910390fd5b6100dc60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61047f565b60008051602061052a833981519152146100f8576100f86104a0565b6101388383838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250925061018c915050565b505050565b6000610147610170565b905090565b3660008037600080366000845af43d6000803e80801561016b573d6000f35b3d6000fd5b60008051602061052a833981519152546001600160a01b031690565b610195836101b7565b6000825111806101a25750805b15610138576101b183836101f7565b50505050565b6101c081610225565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606061021c838360405180606001604052806027815260200161054a602791396102bf565b90505b92915050565b61022e81610337565b6102905760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016100a8565b60008051602061052a83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080856001600160a01b0316856040516102dc91906104da565b600060405180830381855af49150503d8060008114610317576040519150601f19603f3d011682016040523d82523d6000602084013e61031c565b606091505b509150915061032d86838387610346565b9695505050505050565b6001600160a01b03163b151590565b606083156103b35782516000036103ac5761036085610337565b6103ac5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016100a8565b50816103bd565b6103bd83836103c5565b949350505050565b8151156103d55781518083602001fd5b8060405162461bcd60e51b81526004016100a891906104f6565b60008060006040848603121561040457600080fd5b83356001600160a01b038116811461041b57600080fd5b925060208401356001600160401b038082111561043757600080fd5b818601915086601f83011261044b57600080fd5b81358181111561045a57600080fd5b87602082850101111561046c57600080fd5b6020830194508093505050509250925092565b8181038181111561021f57634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052600160045260246000fd5b60005b838110156104d15781810151838201526020016104b9565b50506000910152565b600082516104ec8184602087016104b6565b9190910192915050565b60208152600082518060208401526105158160408501602087016104b6565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220700964e1863e921cf409e58babd7df4199472bb8aeeac1315f61421b99f6fd5864736f6c63430008100033";
10
11
  export const deployUniversalProxyFactory = async () => {
11
12
  const f = await ethers.getContractFactory("ProxyFactory1967");
13
+
12
14
  const isProduction = name.includes("production");
13
15
  const deployTx = {
14
16
  nonce: 0,
15
17
  gasPrice: 50e9,
16
18
  gasLimit: 891002,
17
- data: f.bytecode
19
+ data: celoProxyByteCode
18
20
  };
19
21
 
20
22
  let signer = {
@@ -109,8 +109,9 @@ const upgrade = async () => {
109
109
  const proxy = (await ethers.getContractAt("SuperfluidFaucet", release.SuperfluidFaucet)) as SuperfluidFaucet;
110
110
  const impl = await ethers.deployContract("SuperfluidFaucet");
111
111
  console.log("impl:", impl.address);
112
- const callData = proxy.interface.encodeFunctionData("updateSettings", [ethers.utils.parseEther("0.0000035"), 30]);
113
- const tx = await proxy.upgradeToAndCall(impl.address, callData);
112
+ // const callData = proxy.interface.encodeFunctionData("updateSettings", [ethers.utils.parseEther("0.0000035"), 30]);
113
+ // const tx = await proxy.upgradeToAndCall(impl.address, callData);
114
+ const tx = await proxy.upgradeTo(impl.address);
114
115
  console.log(tx.hash);
115
116
  const res = await tx.wait();
116
117
  console.log(res.transactionHash);
@@ -34,7 +34,7 @@ export interface SuperfluidFaucetInterface extends utils.Interface {
34
34
  "FIRST_GAS_TOPPING_AMOUNT()": FunctionFragment;
35
35
  "GAS_TOPPING_AMOUNT()": FunctionFragment;
36
36
  "_deprecated()": FunctionFragment;
37
- "canTop(address,uint256)": FunctionFragment;
37
+ "canTop(address)": FunctionFragment;
38
38
  "getRoleAdmin(bytes32)": FunctionFragment;
39
39
  "getToppingValue(bool)": FunctionFragment;
40
40
  "grantRole(bytes32,address)": FunctionFragment;
@@ -101,10 +101,7 @@ export interface SuperfluidFaucetInterface extends utils.Interface {
101
101
  functionFragment: "_deprecated",
102
102
  values?: undefined
103
103
  ): string;
104
- encodeFunctionData(
105
- functionFragment: "canTop",
106
- values: [string, BigNumberish]
107
- ): string;
104
+ encodeFunctionData(functionFragment: "canTop", values: [string]): string;
108
105
  encodeFunctionData(
109
106
  functionFragment: "getRoleAdmin",
110
107
  values: [BytesLike]
@@ -385,11 +382,7 @@ export interface SuperfluidFaucet extends BaseContract {
385
382
 
386
383
  _deprecated(overrides?: CallOverrides): Promise<[BigNumber]>;
387
384
 
388
- canTop(
389
- recipient: string,
390
- amount: BigNumberish,
391
- overrides?: CallOverrides
392
- ): Promise<[boolean]>;
385
+ canTop(recipient: string, overrides?: CallOverrides): Promise<[boolean]>;
393
386
 
394
387
  getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise<[string]>;
395
388
 
@@ -487,11 +480,7 @@ export interface SuperfluidFaucet extends BaseContract {
487
480
 
488
481
  _deprecated(overrides?: CallOverrides): Promise<BigNumber>;
489
482
 
490
- canTop(
491
- recipient: string,
492
- amount: BigNumberish,
493
- overrides?: CallOverrides
494
- ): Promise<boolean>;
483
+ canTop(recipient: string, overrides?: CallOverrides): Promise<boolean>;
495
484
 
496
485
  getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise<string>;
497
486
 
@@ -589,11 +578,7 @@ export interface SuperfluidFaucet extends BaseContract {
589
578
 
590
579
  _deprecated(overrides?: CallOverrides): Promise<BigNumber>;
591
580
 
592
- canTop(
593
- recipient: string,
594
- amount: BigNumberish,
595
- overrides?: CallOverrides
596
- ): Promise<boolean>;
581
+ canTop(recipient: string, overrides?: CallOverrides): Promise<boolean>;
597
582
 
598
583
  getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise<string>;
599
584
 
@@ -757,11 +742,7 @@ export interface SuperfluidFaucet extends BaseContract {
757
742
 
758
743
  _deprecated(overrides?: CallOverrides): Promise<BigNumber>;
759
744
 
760
- canTop(
761
- recipient: string,
762
- amount: BigNumberish,
763
- overrides?: CallOverrides
764
- ): Promise<BigNumber>;
745
+ canTop(recipient: string, overrides?: CallOverrides): Promise<BigNumber>;
765
746
 
766
747
  getRoleAdmin(
767
748
  role: BytesLike,
@@ -861,7 +842,6 @@ export interface SuperfluidFaucet extends BaseContract {
861
842
 
862
843
  canTop(
863
844
  recipient: string,
864
- amount: BigNumberish,
865
845
  overrides?: CallOverrides
866
846
  ): Promise<PopulatedTransaction>;
867
847