@gooddollar/goodprotocol 2.0.32-beta.0 → 2.0.32

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 (303) hide show
  1. package/artifacts/abis/CeloDistributionHelper.min.json +1 -0
  2. package/artifacts/abis/CeloDistributionHelperTest.min.json +1 -0
  3. package/artifacts/abis/CeloDistributionHelperTestHelper.min.json +1 -0
  4. package/artifacts/abis/IBancorExchangeProvider.min.json +1 -0
  5. package/artifacts/abis/IBroker.min.json +1 -0
  6. package/artifacts/abis/IGoodDollarExchangeProvider.min.json +1 -0
  7. package/artifacts/abis/IGoodDollarExpansionController.min.json +1 -0
  8. package/artifacts/abis/IMentoReserve.min.json +1 -0
  9. package/artifacts/abis/ITradingLimits.min.json +1 -0
  10. package/artifacts/abis/MentoExchange.min.json +1 -0
  11. package/artifacts/abis/ProtocolUpgradeV4Mento.min.json +1 -0
  12. package/artifacts/contracts/DAOStackInterfaces.sol/Avatar.dbg.json +1 -1
  13. package/artifacts/contracts/DAOStackInterfaces.sol/Controller.dbg.json +1 -1
  14. package/artifacts/contracts/DAOStackInterfaces.sol/GlobalConstraintInterface.dbg.json +1 -1
  15. package/artifacts/contracts/DAOStackInterfaces.sol/IntVoteInterface.dbg.json +1 -1
  16. package/artifacts/contracts/DAOStackInterfaces.sol/ReputationInterface.dbg.json +1 -1
  17. package/artifacts/contracts/DAOStackInterfaces.sol/SchemeRegistrar.dbg.json +1 -1
  18. package/artifacts/contracts/Interfaces.sol/AggregatorV3Interface.dbg.json +1 -1
  19. package/artifacts/contracts/Interfaces.sol/ERC20.dbg.json +1 -1
  20. package/artifacts/contracts/Interfaces.sol/IAaveIncentivesController.dbg.json +1 -1
  21. package/artifacts/contracts/Interfaces.sol/IAdminWallet.dbg.json +1 -1
  22. package/artifacts/contracts/Interfaces.sol/IDonationStaking.dbg.json +1 -1
  23. package/artifacts/contracts/Interfaces.sol/IERC2917.dbg.json +1 -1
  24. package/artifacts/contracts/Interfaces.sol/IFirstClaimPool.dbg.json +1 -1
  25. package/artifacts/contracts/Interfaces.sol/IGoodDollar.dbg.json +1 -1
  26. package/artifacts/contracts/Interfaces.sol/IGoodStaking.dbg.json +1 -1
  27. package/artifacts/contracts/Interfaces.sol/IHasRouter.dbg.json +1 -1
  28. package/artifacts/contracts/Interfaces.sol/IIdentity.dbg.json +1 -1
  29. package/artifacts/contracts/Interfaces.sol/IIdentityV2.dbg.json +1 -1
  30. package/artifacts/contracts/Interfaces.sol/ILendingPool.dbg.json +1 -1
  31. package/artifacts/contracts/Interfaces.sol/IMultichainRouter.dbg.json +1 -1
  32. package/artifacts/contracts/Interfaces.sol/INameService.dbg.json +1 -1
  33. package/artifacts/contracts/Interfaces.sol/IQuoterV2.dbg.json +1 -1
  34. package/artifacts/contracts/Interfaces.sol/ISwapRouter.dbg.json +1 -1
  35. package/artifacts/contracts/Interfaces.sol/IUBIScheme.dbg.json +1 -1
  36. package/artifacts/contracts/Interfaces.sol/ProxyAdmin.dbg.json +1 -1
  37. package/artifacts/contracts/Interfaces.sol/Reserve.dbg.json +1 -1
  38. package/artifacts/contracts/Interfaces.sol/Staking.dbg.json +1 -1
  39. package/artifacts/contracts/Interfaces.sol/Uniswap.dbg.json +1 -1
  40. package/artifacts/contracts/Interfaces.sol/UniswapFactory.dbg.json +1 -1
  41. package/artifacts/contracts/Interfaces.sol/UniswapPair.dbg.json +1 -1
  42. package/artifacts/contracts/Interfaces.sol/cERC20.dbg.json +1 -1
  43. package/artifacts/contracts/MentoInterfaces.sol/IBancorExchangeProvider.dbg.json +4 -0
  44. package/artifacts/contracts/MentoInterfaces.sol/IBancorExchangeProvider.json +282 -0
  45. package/artifacts/contracts/MentoInterfaces.sol/IBroker.dbg.json +4 -0
  46. package/artifacts/contracts/MentoInterfaces.sol/IBroker.json +491 -0
  47. package/artifacts/contracts/MentoInterfaces.sol/IGoodDollarExchangeProvider.dbg.json +4 -0
  48. package/artifacts/contracts/MentoInterfaces.sol/IGoodDollarExchangeProvider.json +164 -0
  49. package/artifacts/contracts/MentoInterfaces.sol/IGoodDollarExpansionController.dbg.json +4 -0
  50. package/artifacts/contracts/MentoInterfaces.sol/IGoodDollarExpansionController.json +333 -0
  51. package/artifacts/contracts/MentoInterfaces.sol/IMentoReserve.dbg.json +4 -0
  52. package/artifacts/contracts/MentoInterfaces.sol/IMentoReserve.json +927 -0
  53. package/artifacts/contracts/MentoInterfaces.sol/ITradingLimits.dbg.json +4 -0
  54. package/artifacts/contracts/MentoInterfaces.sol/ITradingLimits.json +10 -0
  55. package/artifacts/contracts/fuseFaucet/Faucet.sol/Faucet.dbg.json +1 -1
  56. package/artifacts/contracts/fuseFaucet/FuseFaucet.sol/FuseFaucet.dbg.json +1 -1
  57. package/artifacts/contracts/fuseFaucet/FuseFaucetV2.sol/FuseFaucetV2.dbg.json +1 -1
  58. package/artifacts/contracts/fuseFaucet/SuperfluidFacuet.sol/SuperfluidFaucet.dbg.json +1 -1
  59. package/artifacts/contracts/governance/ClaimersDistribution.sol/ClaimersDistribution.dbg.json +1 -1
  60. package/artifacts/contracts/governance/CompoundVotingMachine.sol/CompoundVotingMachine.dbg.json +1 -1
  61. package/artifacts/contracts/governance/GReputation.sol/GReputation.dbg.json +1 -1
  62. package/artifacts/contracts/governance/GoodDollarStaking.sol/GoodDollarStaking.dbg.json +1 -1
  63. package/artifacts/contracts/governance/GoodDollarStaking.sol/IGovernanceStaking.dbg.json +1 -1
  64. package/artifacts/contracts/governance/GoodDollarStaking.sol/IStakingUpgrade.dbg.json +1 -1
  65. package/artifacts/contracts/governance/GoodDollarStaking.sol/RewardsMinter.dbg.json +1 -1
  66. package/artifacts/contracts/governance/GovernanceStaking.sol/GovernanceStaking.dbg.json +1 -1
  67. package/artifacts/contracts/governance/MultiBaseGovernanceShareField.sol/MultiBaseGovernanceShareField.dbg.json +1 -1
  68. package/artifacts/contracts/governance/Reputation.sol/Reputation.dbg.json +1 -1
  69. package/artifacts/contracts/governance/StakersDistribution.sol/StakersDistribution.dbg.json +1 -1
  70. package/artifacts/contracts/governance/StakersDistribution.sol/StakersDistribution.json +2 -2
  71. package/artifacts/contracts/identity/IdentityV2.sol/IdentityV2.dbg.json +1 -1
  72. package/artifacts/contracts/invite/InvitesFuseV2.sol/InvitesFuseV2.dbg.json +1 -1
  73. package/artifacts/contracts/invite/InvitesV1.sol/InvitesV1.dbg.json +1 -1
  74. package/artifacts/contracts/invite/InvitesV2.sol/InvitesV2.dbg.json +1 -1
  75. package/artifacts/contracts/invite/OneTimeReward.sol/OneTimeReward.dbg.json +1 -1
  76. package/artifacts/contracts/mocks/AaveMock.sol/AaveMock.dbg.json +1 -1
  77. package/artifacts/contracts/mocks/AaveUSDMockOracle.sol/AaveUSDMockOracle.dbg.json +1 -1
  78. package/artifacts/contracts/mocks/BatUSDMockOracle.sol/BatUSDMockOracle.dbg.json +1 -1
  79. package/artifacts/contracts/mocks/CeloDistributionHelperTest.sol/CeloDistributionHelperTest.dbg.json +4 -0
  80. package/artifacts/contracts/mocks/CeloDistributionHelperTest.sol/CeloDistributionHelperTest.json +864 -0
  81. package/artifacts/contracts/mocks/CeloDistributionHelperTest.sol/CeloDistributionHelperTestHelper.dbg.json +4 -0
  82. package/artifacts/contracts/mocks/CeloDistributionHelperTest.sol/CeloDistributionHelperTestHelper.json +890 -0
  83. package/artifacts/contracts/mocks/CompUsdMockOracle.sol/CompUSDMockOracle.dbg.json +1 -1
  84. package/artifacts/contracts/mocks/DAIMock.sol/DAIMock.dbg.json +1 -1
  85. package/artifacts/contracts/mocks/DaiEthPriceMockOracle.sol/DaiEthPriceMockOracle.dbg.json +1 -1
  86. package/artifacts/contracts/mocks/DecimalsMock.sol/DecimalsMock.dbg.json +1 -1
  87. package/artifacts/contracts/mocks/DistributionBridgeMock.sol/DistributionBridgeMock.dbg.json +1 -1
  88. package/artifacts/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTest.dbg.json +1 -1
  89. package/artifacts/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTest.json +2 -2
  90. package/artifacts/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTestHelper.dbg.json +1 -1
  91. package/artifacts/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTestHelper.json +2 -2
  92. package/artifacts/contracts/mocks/EthUSDMockOracle.sol/EthUSDMockOracle.dbg.json +1 -1
  93. package/artifacts/contracts/mocks/FeesFormularMock.sol/FeesFormulaMock.dbg.json +1 -1
  94. package/artifacts/contracts/mocks/GasPriceMockOracle.sol/GasPriceMockOracle.dbg.json +1 -1
  95. package/artifacts/contracts/mocks/GoodCompoundStakingTest.sol/GoodCompoundStakingTest.dbg.json +1 -1
  96. package/artifacts/contracts/mocks/GoodCompoundStakingTest.sol/GoodCompoundStakingTest.json +2 -2
  97. package/artifacts/contracts/mocks/GoodDollarStakingMock.sol/GoodDollarStakingMock.dbg.json +1 -1
  98. package/artifacts/contracts/mocks/GoodFundManagerTest.sol/GoodFundManagerTest.dbg.json +1 -1
  99. package/artifacts/contracts/mocks/GoodFundManagerTest.sol/GoodFundManagerTest.json +2 -2
  100. package/artifacts/contracts/mocks/IdentityMock.sol/IdentityMock.dbg.json +1 -1
  101. package/artifacts/contracts/mocks/IncentiveControllerMock.sol/IncentiveControllerMock.dbg.json +1 -1
  102. package/artifacts/contracts/mocks/LendingPoolMock.sol/LendingPoolMock.dbg.json +1 -1
  103. package/artifacts/contracts/mocks/MultichainRouterMock.sol/IWrapper.dbg.json +1 -1
  104. package/artifacts/contracts/mocks/MultichainRouterMock.sol/MultichainRouterMock.dbg.json +1 -1
  105. package/artifacts/contracts/mocks/OverMintTester.sol/IGoodDollarStakingTest.dbg.json +1 -1
  106. package/artifacts/contracts/mocks/OverMintTester.sol/OverMintTester.dbg.json +1 -1
  107. package/artifacts/contracts/mocks/OverMintTesterRegularStake.sol/OverMintTesterRegularStake.dbg.json +1 -1
  108. package/artifacts/contracts/mocks/OverMintTesterRegularStake.sol/OverMintTesterRegularStake.json +2 -2
  109. package/artifacts/contracts/mocks/PayableMock.sol/PayableMock.dbg.json +1 -1
  110. package/artifacts/contracts/mocks/SixteenDecimalsTokenMock.sol/SixteenDecimalsTokenMock.dbg.json +1 -1
  111. package/artifacts/contracts/mocks/StakingMockFixedAPY.sol/StakingMockFixedAPY.dbg.json +1 -1
  112. package/artifacts/contracts/mocks/SwapHelperTest.sol/SwapHelperTest.dbg.json +1 -1
  113. package/artifacts/contracts/mocks/TwentyDecimalsTokenMock.sol/TwentyDecimalsTokenMock.dbg.json +1 -1
  114. package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock.dbg.json +1 -1
  115. package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock2.dbg.json +1 -1
  116. package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock3.dbg.json +1 -1
  117. package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock4.dbg.json +1 -1
  118. package/artifacts/contracts/mocks/UsdcMock.sol/USDCMock.dbg.json +1 -1
  119. package/artifacts/contracts/mocks/cBATMock.sol/cBATMock.dbg.json +1 -1
  120. package/artifacts/contracts/mocks/cDAILowWorthMock.sol/cDAILowWorthMock.dbg.json +1 -1
  121. package/artifacts/contracts/mocks/cDAIMock.sol/cDAIMock.dbg.json +1 -1
  122. package/artifacts/contracts/mocks/cDAINonMintableMock.sol/cDAINonMintableMock.dbg.json +1 -1
  123. package/artifacts/contracts/mocks/cDecimalsMock.sol/cDecimalsMock.dbg.json +1 -1
  124. package/artifacts/contracts/mocks/cSDTMock.sol/cSDTMock.dbg.json +1 -1
  125. package/artifacts/contracts/mocks/cUSDCMock.sol/cUSDCMock.dbg.json +1 -1
  126. package/artifacts/contracts/reserve/CeloDistributionHelper.sol/CeloDistributionHelper.dbg.json +4 -0
  127. package/artifacts/contracts/reserve/CeloDistributionHelper.sol/CeloDistributionHelper.json +864 -0
  128. package/artifacts/contracts/reserve/DistributionHelper.sol/DistributionHelper.dbg.json +1 -1
  129. package/artifacts/contracts/reserve/DistributionHelper.sol/DistributionHelper.json +2 -2
  130. package/artifacts/contracts/reserve/ExchangeHelper.sol/ExchangeHelper.dbg.json +1 -1
  131. package/artifacts/contracts/reserve/ExchangeHelper.sol/ExchangeHelper.json +2 -2
  132. package/artifacts/contracts/reserve/GoodMarketMaker.sol/GoodMarketMaker.dbg.json +1 -1
  133. package/artifacts/contracts/reserve/GoodMarketMaker.sol/GoodMarketMaker.json +2 -2
  134. package/artifacts/contracts/reserve/GoodReserveCDai.sol/ContributionCalc.dbg.json +1 -1
  135. package/artifacts/contracts/reserve/GoodReserveCDai.sol/GoodReserveCDai.dbg.json +1 -1
  136. package/artifacts/contracts/reserve/GoodReserveCDai.sol/GoodReserveCDai.json +2 -2
  137. package/artifacts/contracts/staking/BaseShareField.sol/BaseShareField.dbg.json +1 -1
  138. package/artifacts/contracts/staking/BaseShareFieldV2.sol/BaseShareFieldV2.dbg.json +1 -1
  139. package/artifacts/contracts/staking/DonationsStaking.sol/DonationsStaking.dbg.json +1 -1
  140. package/artifacts/contracts/staking/DonationsStaking.sol/DonationsStaking.json +2 -2
  141. package/artifacts/contracts/staking/FuseStakingV3.sol/FuseStakingV3.dbg.json +1 -1
  142. package/artifacts/contracts/staking/FuseStakingV3.sol/IConsensus.dbg.json +1 -1
  143. package/artifacts/contracts/staking/FuseStakingV3.sol/PegSwap.dbg.json +1 -1
  144. package/artifacts/contracts/staking/GoodFundManager.sol/GoodFundManager.dbg.json +1 -1
  145. package/artifacts/contracts/staking/GoodFundManager.sol/GoodFundManager.json +2 -2
  146. package/artifacts/contracts/staking/SimpleStaking.sol/SimpleStaking.dbg.json +1 -1
  147. package/artifacts/contracts/staking/SimpleStakingV2.sol/SimpleStakingV2.dbg.json +1 -1
  148. package/artifacts/contracts/staking/UniswapV2SwapHelper.sol/UniswapV2SwapHelper.dbg.json +1 -1
  149. package/artifacts/contracts/staking/aave/AaveStakingFactory.sol/AaveStakingFactory.dbg.json +1 -1
  150. package/artifacts/contracts/staking/aave/AaveStakingFactory.sol/AaveStakingFactory.json +2 -2
  151. package/artifacts/contracts/staking/aave/GoodAaveStaking.sol/GoodAaveStaking.dbg.json +1 -1
  152. package/artifacts/contracts/staking/aave/GoodAaveStaking.sol/GoodAaveStaking.json +2 -2
  153. package/artifacts/contracts/staking/aave/GoodAaveStakingV2.sol/GoodAaveStakingV2.dbg.json +1 -1
  154. package/artifacts/contracts/staking/aave/GoodAaveStakingV2.sol/GoodAaveStakingV2.json +2 -2
  155. package/artifacts/contracts/staking/compound/CompoundStakingFactory.sol/CompoundStakingFactory.dbg.json +1 -1
  156. package/artifacts/contracts/staking/compound/CompoundStakingFactory.sol/CompoundStakingFactory.json +2 -2
  157. package/artifacts/contracts/staking/compound/GoodCompoundStaking.sol/GoodCompoundStaking.dbg.json +1 -1
  158. package/artifacts/contracts/staking/compound/GoodCompoundStaking.sol/GoodCompoundStaking.json +2 -2
  159. package/artifacts/contracts/staking/compound/GoodCompoundStakingV2.sol/GoodCompoundStakingV2.dbg.json +1 -1
  160. package/artifacts/contracts/staking/compound/GoodCompoundStakingV2.sol/GoodCompoundStakingV2.json +2 -2
  161. package/artifacts/contracts/staking/utils/Math64X64.sol/Math64x64.dbg.json +1 -1
  162. package/artifacts/contracts/staking/utils/StakingRewardsFixedAPY.sol/StakingRewardsFixedAPY.dbg.json +1 -1
  163. package/artifacts/contracts/token/ERC20PresetMinterPauserUpgradeable.sol/ERC20PresetMinterPauserUpgradeable.dbg.json +1 -1
  164. package/artifacts/contracts/token/ERC677.sol/ERC677.dbg.json +1 -1
  165. package/artifacts/contracts/token/ERC677.sol/ERC677Receiver.dbg.json +1 -1
  166. package/artifacts/contracts/token/GoodDollar.sol/GoodDollar.dbg.json +1 -1
  167. package/artifacts/contracts/token/IFeesFormula.sol/IFeesFormula.dbg.json +1 -1
  168. package/artifacts/contracts/token/MultichainFeeFormula.sol/MultichainFeeFormula.dbg.json +1 -1
  169. package/artifacts/contracts/token/superfluid/ERC20Permit.sol/ERC20Permit.dbg.json +1 -1
  170. package/artifacts/contracts/token/superfluid/ERC20Permit.sol/SelfApprove.dbg.json +1 -1
  171. package/artifacts/contracts/token/superfluid/ISuperGoodDollar.sol/IGoodDollarCustom.dbg.json +1 -1
  172. package/artifacts/contracts/token/superfluid/ISuperGoodDollar.sol/ISuperGoodDollar.dbg.json +1 -1
  173. package/artifacts/contracts/token/superfluid/ISuperToken.sol/ISuperToken.dbg.json +1 -1
  174. package/artifacts/contracts/token/superfluid/SuperGoodDollar.sol/SuperGoodDollar.dbg.json +1 -1
  175. package/artifacts/contracts/token/superfluid/SuperToken.sol/SuperToken.dbg.json +1 -1
  176. package/artifacts/contracts/token/superfluid/SuperfluidToken.sol/SuperfluidToken.dbg.json +1 -1
  177. package/artifacts/contracts/token/superfluid/UUPSProxiable.sol/UUPSProxiable.dbg.json +1 -1
  178. package/artifacts/contracts/token/superfluid/UUPSProxy.sol/Proxy.dbg.json +1 -1
  179. package/artifacts/contracts/token/superfluid/UUPSProxy.sol/UUPSProxy.dbg.json +1 -1
  180. package/artifacts/contracts/token/superfluid/UUPSProxy.sol/UUPSUtils.dbg.json +1 -1
  181. package/artifacts/contracts/ubi/UBIScheme.sol/UBIScheme.dbg.json +1 -1
  182. package/artifacts/contracts/ubi/UBISchemeV2.sol/UBISchemeV2.dbg.json +1 -1
  183. package/artifacts/contracts/utils/AdminWallet.sol/AdminWallet.dbg.json +1 -1
  184. package/artifacts/contracts/utils/AdminWalletFuse.sol/AdminWalletFuse.dbg.json +1 -1
  185. package/artifacts/contracts/utils/BancorFormula.sol/BancorFormula.dbg.json +1 -1
  186. package/artifacts/contracts/utils/BulkProof.sol/BulkProof.dbg.json +1 -1
  187. package/artifacts/contracts/utils/BulkProof.sol/BulkProof.json +2 -2
  188. package/artifacts/contracts/utils/BulkWhitelist.sol/BulkWhitelist.dbg.json +1 -1
  189. package/artifacts/contracts/utils/BuyAndBridgeHelper.sol/BuyAndBridgeHelper.dbg.json +1 -1
  190. package/artifacts/contracts/utils/BuyAndBridgeHelper.sol/BuyAndBridgeHelper.json +2 -2
  191. package/artifacts/contracts/utils/BuyGDClone.sol/BuyGDClone.dbg.json +1 -1
  192. package/artifacts/contracts/utils/BuyGDClone.sol/BuyGDCloneFactory.dbg.json +1 -1
  193. package/artifacts/contracts/utils/BuyGDClone.sol/DonateGDClone.dbg.json +1 -1
  194. package/artifacts/contracts/utils/DAOContract.sol/DAOContract.dbg.json +1 -1
  195. package/artifacts/contracts/utils/DAOUpgradeableContract.sol/DAOUpgradeableContract.dbg.json +1 -1
  196. package/artifacts/contracts/utils/DSMath.sol/DSMath.dbg.json +1 -1
  197. package/artifacts/contracts/utils/DataTypes.sol/DataTypes.dbg.json +1 -1
  198. package/artifacts/contracts/utils/FuseOldBridgeKill.sol/EternalStorage.dbg.json +1 -1
  199. package/artifacts/contracts/utils/FuseOldBridgeKill.sol/FuseOldBridgeKill.dbg.json +1 -1
  200. package/artifacts/contracts/utils/FuseOldBridgeKill.sol/IUpgradeabilityOwnerStorage.dbg.json +1 -1
  201. package/artifacts/contracts/utils/FuseOldBridgeKill.sol/Initializable.dbg.json +1 -1
  202. package/artifacts/contracts/utils/FuseOldBridgeKill.sol/Ownable.dbg.json +1 -1
  203. package/artifacts/contracts/utils/FuseOldBridgeKill.sol/Upgradeable.dbg.json +1 -1
  204. package/artifacts/contracts/utils/GDFaucet.sol/GDFaucet.dbg.json +1 -1
  205. package/artifacts/contracts/utils/GoodDollarMintBurnWrapper.sol/GoodDollarMintBurnWrapper.dbg.json +1 -1
  206. package/artifacts/contracts/utils/GoodDollarMintBurnWrapper.sol/IRouter.dbg.json +1 -1
  207. package/artifacts/contracts/utils/GoodDollarMintBurnWrapper.sol/PausableControl.dbg.json +1 -1
  208. package/artifacts/contracts/utils/GoodDollarMintBurnWrapper.sol/TokenOperation.dbg.json +1 -1
  209. package/artifacts/contracts/utils/IdentityFix.sol/IdentityFix.dbg.json +1 -1
  210. package/artifacts/contracts/utils/LastauthReduction.sol/LastauthReduction.dbg.json +1 -1
  211. package/artifacts/contracts/utils/LastauthReduction.sol/LastauthReduction.json +2 -2
  212. package/artifacts/contracts/utils/MultiCall.sol/Multicall.dbg.json +1 -1
  213. package/artifacts/contracts/utils/MultichainBridgeHelper.sol/MultichainBridgeHelper.dbg.json +1 -1
  214. package/artifacts/contracts/utils/NameService.sol/NameService.dbg.json +1 -1
  215. package/artifacts/contracts/utils/OneTimePayments.sol/OneTimePayments.dbg.json +1 -1
  216. package/artifacts/contracts/utils/OneTimePaymentsV2.sol/OneTimePaymentsV2.dbg.json +1 -1
  217. package/artifacts/contracts/utils/ProtoclUpgradeV4Mento.sol/MentoExchange.dbg.json +4 -0
  218. package/artifacts/contracts/utils/ProtoclUpgradeV4Mento.sol/MentoExchange.json +24 -0
  219. package/artifacts/contracts/utils/ProtoclUpgradeV4Mento.sol/ProtocolUpgradeV4Mento.dbg.json +4 -0
  220. package/artifacts/contracts/utils/ProtoclUpgradeV4Mento.sol/ProtocolUpgradeV4Mento.json +92 -0
  221. package/artifacts/contracts/utils/ProtocolUpgrade.sol/OldMarketMaker.dbg.json +1 -1
  222. package/artifacts/contracts/utils/ProtocolUpgrade.sol/ProtocolUpgrade.dbg.json +1 -1
  223. package/artifacts/contracts/utils/ProtocolUpgradeFuse.sol/ProtocolUpgradeFuse.dbg.json +1 -1
  224. package/artifacts/contracts/utils/ProtocolUpgradeFuseRecover.sol/ProtocolUpgradeFuseRecover.dbg.json +1 -1
  225. package/artifacts/contracts/utils/ProtocolUpgradeRecover.sol/ProtocolUpgradeRecover.dbg.json +1 -1
  226. package/artifacts/contracts/utils/ProxyFactory1967.sol/ERC1967Proxy.dbg.json +1 -1
  227. package/artifacts/contracts/utils/ProxyFactory1967.sol/ProxyFactory1967.dbg.json +1 -1
  228. package/artifacts/contracts/utils/ReputationTestHelper.sol/ReputationTestHelper.dbg.json +1 -1
  229. package/artifacts/contracts/utils/ReserveRestore.sol/ReserveRestore.dbg.json +1 -1
  230. package/artifacts/contracts/utils/ReserveRestore.sol/ReserveRestore.json +2 -2
  231. package/contracts/MentoInterfaces.sol +746 -0
  232. package/contracts/mocks/CeloDistributionHelperTest.sol +25 -0
  233. package/contracts/reserve/CeloDistributionHelper.sol +286 -0
  234. package/contracts/reserve/GoodMarketMaker.sol +11 -1
  235. package/contracts/staking/GoodFundManager.sol +5 -2
  236. package/contracts/utils/ProtoclUpgradeV4Mento.sol +99 -0
  237. package/contracts/utils/ReserveRestore.sol +171 -147
  238. package/hardhat.config.ts +4 -4
  239. package/package.json +5 -2
  240. package/releases/deployment.json +7 -5
  241. package/scripts/multichain-deploy/helpers.ts +45 -24
  242. package/scripts/proposals/reserveRestore.ts +130 -85
  243. package/scripts/proposals/v4Upgrade.ts +845 -0
  244. package/test/reserve/CeloDistributionHelper.test.ts +377 -0
  245. package/test/reserve/GoodMarketMaker.test.ts +98 -35
  246. package/test/zzz - e2e/CeloDistributionHelper.e2e.test.ts +0 -0
  247. package/types/contracts/MentoInterfaces.sol/IBancorExchangeProvider.ts +422 -0
  248. package/types/contracts/MentoInterfaces.sol/IBroker.ts +727 -0
  249. package/types/contracts/MentoInterfaces.sol/IGoodDollarExchangeProvider.ts +341 -0
  250. package/types/contracts/MentoInterfaces.sol/IGoodDollarExpansionController.ts +617 -0
  251. package/types/contracts/MentoInterfaces.sol/IMentoReserve.ts +1700 -0
  252. package/types/contracts/MentoInterfaces.sol/index.ts +8 -0
  253. package/types/contracts/index.ts +2 -0
  254. package/types/contracts/mocks/CeloDistributionHelperTest.sol/CeloDistributionHelperTest.ts +1226 -0
  255. package/types/contracts/mocks/CeloDistributionHelperTest.sol/CeloDistributionHelperTestHelper.ts +1279 -0
  256. package/types/contracts/mocks/CeloDistributionHelperTest.sol/index.ts +5 -0
  257. package/types/contracts/mocks/index.ts +2 -0
  258. package/types/contracts/reserve/CeloDistributionHelper.ts +1226 -0
  259. package/types/contracts/reserve/index.ts +1 -0
  260. package/types/contracts/utils/ProtoclUpgradeV4Mento.sol/MentoExchange.ts +81 -0
  261. package/types/contracts/utils/ProtoclUpgradeV4Mento.sol/ProtocolUpgradeV4Mento.ts +161 -0
  262. package/types/contracts/utils/ProtoclUpgradeV4Mento.sol/index.ts +5 -0
  263. package/types/contracts/utils/index.ts +2 -0
  264. package/types/factories/contracts/MentoInterfaces.sol/IBancorExchangeProvider__factory.ts +301 -0
  265. package/types/factories/contracts/MentoInterfaces.sol/IBroker__factory.ts +506 -0
  266. package/types/factories/contracts/MentoInterfaces.sol/IGoodDollarExchangeProvider__factory.ts +183 -0
  267. package/types/factories/contracts/MentoInterfaces.sol/IGoodDollarExpansionController__factory.ts +352 -0
  268. package/types/factories/contracts/MentoInterfaces.sol/IMentoReserve__factory.ts +942 -0
  269. package/types/factories/contracts/MentoInterfaces.sol/index.ts +8 -0
  270. package/types/factories/contracts/governance/StakersDistribution__factory.ts +1 -1
  271. package/types/factories/contracts/index.ts +1 -0
  272. package/types/factories/contracts/mocks/CeloDistributionHelperTest.sol/CeloDistributionHelperTestHelper__factory.ts +949 -0
  273. package/types/factories/contracts/mocks/CeloDistributionHelperTest.sol/CeloDistributionHelperTest__factory.ts +919 -0
  274. package/types/factories/contracts/mocks/CeloDistributionHelperTest.sol/index.ts +5 -0
  275. package/types/factories/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTestHelper__factory.ts +1 -1
  276. package/types/factories/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTest__factory.ts +1 -1
  277. package/types/factories/contracts/mocks/GoodCompoundStakingTest__factory.ts +1 -1
  278. package/types/factories/contracts/mocks/GoodFundManagerTest__factory.ts +1 -1
  279. package/types/factories/contracts/mocks/OverMintTesterRegularStake__factory.ts +1 -1
  280. package/types/factories/contracts/mocks/index.ts +1 -0
  281. package/types/factories/contracts/reserve/CeloDistributionHelper__factory.ts +919 -0
  282. package/types/factories/contracts/reserve/DistributionHelper__factory.ts +1 -1
  283. package/types/factories/contracts/reserve/ExchangeHelper__factory.ts +1 -1
  284. package/types/factories/contracts/reserve/GoodMarketMaker__factory.ts +1 -1
  285. package/types/factories/contracts/reserve/GoodReserveCDai.sol/GoodReserveCDai__factory.ts +1 -1
  286. package/types/factories/contracts/reserve/index.ts +1 -0
  287. package/types/factories/contracts/staking/DonationsStaking__factory.ts +1 -1
  288. package/types/factories/contracts/staking/GoodFundManager__factory.ts +1 -1
  289. package/types/factories/contracts/staking/aave/AaveStakingFactory__factory.ts +1 -1
  290. package/types/factories/contracts/staking/aave/GoodAaveStakingV2__factory.ts +1 -1
  291. package/types/factories/contracts/staking/aave/GoodAaveStaking__factory.ts +1 -1
  292. package/types/factories/contracts/staking/compound/CompoundStakingFactory__factory.ts +1 -1
  293. package/types/factories/contracts/staking/compound/GoodCompoundStakingV2__factory.ts +1 -1
  294. package/types/factories/contracts/staking/compound/GoodCompoundStaking__factory.ts +1 -1
  295. package/types/factories/contracts/utils/BuyAndBridgeHelper__factory.ts +1 -1
  296. package/types/factories/contracts/utils/LastauthReduction__factory.ts +1 -1
  297. package/types/factories/contracts/utils/ProtoclUpgradeV4Mento.sol/MentoExchange__factory.ts +39 -0
  298. package/types/factories/contracts/utils/ProtoclUpgradeV4Mento.sol/ProtocolUpgradeV4Mento__factory.ts +152 -0
  299. package/types/factories/contracts/utils/ProtoclUpgradeV4Mento.sol/index.ts +5 -0
  300. package/types/factories/contracts/utils/ReserveRestore__factory.ts +1 -1
  301. package/types/factories/contracts/utils/index.ts +1 -0
  302. package/types/hardhat.d.ts +90 -0
  303. package/types/index.ts +20 -0
@@ -0,0 +1,919 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
5
+ import type { Provider, TransactionRequest } from "@ethersproject/providers";
6
+ import type {
7
+ CeloDistributionHelperTest,
8
+ CeloDistributionHelperTestInterface,
9
+ } from "../../../../contracts/mocks/CeloDistributionHelperTest.sol/CeloDistributionHelperTest";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "uint256",
16
+ name: "fee",
17
+ type: "uint256",
18
+ },
19
+ ],
20
+ name: "FEE_LIMIT",
21
+ type: "error",
22
+ },
23
+ {
24
+ inputs: [],
25
+ name: "INVALID_CHAINID",
26
+ type: "error",
27
+ },
28
+ {
29
+ anonymous: false,
30
+ inputs: [
31
+ {
32
+ indexed: false,
33
+ internalType: "address",
34
+ name: "previousAdmin",
35
+ type: "address",
36
+ },
37
+ {
38
+ indexed: false,
39
+ internalType: "address",
40
+ name: "newAdmin",
41
+ type: "address",
42
+ },
43
+ ],
44
+ name: "AdminChanged",
45
+ type: "event",
46
+ },
47
+ {
48
+ anonymous: false,
49
+ inputs: [
50
+ {
51
+ indexed: true,
52
+ internalType: "address",
53
+ name: "beacon",
54
+ type: "address",
55
+ },
56
+ ],
57
+ name: "BeaconUpgraded",
58
+ type: "event",
59
+ },
60
+ {
61
+ anonymous: false,
62
+ inputs: [
63
+ {
64
+ indexed: false,
65
+ internalType: "string",
66
+ name: "reason",
67
+ type: "string",
68
+ },
69
+ ],
70
+ name: "BuyNativeFailed",
71
+ type: "event",
72
+ },
73
+ {
74
+ anonymous: false,
75
+ inputs: [
76
+ {
77
+ indexed: false,
78
+ internalType: "uint256",
79
+ name: "distributed",
80
+ type: "uint256",
81
+ },
82
+ {
83
+ indexed: false,
84
+ internalType: "uint256",
85
+ name: "startingBalance",
86
+ type: "uint256",
87
+ },
88
+ {
89
+ indexed: false,
90
+ internalType: "uint256",
91
+ name: "incomingAmount",
92
+ type: "uint256",
93
+ },
94
+ {
95
+ components: [
96
+ {
97
+ internalType: "uint32",
98
+ name: "bps",
99
+ type: "uint32",
100
+ },
101
+ {
102
+ internalType: "uint32",
103
+ name: "chainId",
104
+ type: "uint32",
105
+ },
106
+ {
107
+ internalType: "address",
108
+ name: "addr",
109
+ type: "address",
110
+ },
111
+ {
112
+ internalType: "enum CeloDistributionHelper.TransferType",
113
+ name: "transferType",
114
+ type: "uint8",
115
+ },
116
+ ],
117
+ indexed: false,
118
+ internalType: "struct CeloDistributionHelper.DistributionRecipient[]",
119
+ name: "distributionRecipients",
120
+ type: "tuple[]",
121
+ },
122
+ {
123
+ indexed: false,
124
+ internalType: "uint256",
125
+ name: "gdSoldForGas",
126
+ type: "uint256",
127
+ },
128
+ {
129
+ indexed: false,
130
+ internalType: "uint256",
131
+ name: "nativeBoughtForGas",
132
+ type: "uint256",
133
+ },
134
+ ],
135
+ name: "Distribution",
136
+ type: "event",
137
+ },
138
+ {
139
+ anonymous: false,
140
+ inputs: [
141
+ {
142
+ indexed: false,
143
+ internalType: "uint8",
144
+ name: "version",
145
+ type: "uint8",
146
+ },
147
+ ],
148
+ name: "Initialized",
149
+ type: "event",
150
+ },
151
+ {
152
+ anonymous: false,
153
+ inputs: [
154
+ {
155
+ components: [
156
+ {
157
+ internalType: "uint32",
158
+ name: "bps",
159
+ type: "uint32",
160
+ },
161
+ {
162
+ internalType: "uint32",
163
+ name: "chainId",
164
+ type: "uint32",
165
+ },
166
+ {
167
+ internalType: "address",
168
+ name: "addr",
169
+ type: "address",
170
+ },
171
+ {
172
+ internalType: "enum CeloDistributionHelper.TransferType",
173
+ name: "transferType",
174
+ type: "uint8",
175
+ },
176
+ ],
177
+ indexed: false,
178
+ internalType: "struct CeloDistributionHelper.DistributionRecipient",
179
+ name: "recipient",
180
+ type: "tuple",
181
+ },
182
+ {
183
+ indexed: false,
184
+ internalType: "uint256",
185
+ name: "index",
186
+ type: "uint256",
187
+ },
188
+ ],
189
+ name: "RecipientAdded",
190
+ type: "event",
191
+ },
192
+ {
193
+ anonymous: false,
194
+ inputs: [
195
+ {
196
+ components: [
197
+ {
198
+ internalType: "uint32",
199
+ name: "bps",
200
+ type: "uint32",
201
+ },
202
+ {
203
+ internalType: "uint32",
204
+ name: "chainId",
205
+ type: "uint32",
206
+ },
207
+ {
208
+ internalType: "address",
209
+ name: "addr",
210
+ type: "address",
211
+ },
212
+ {
213
+ internalType: "enum CeloDistributionHelper.TransferType",
214
+ name: "transferType",
215
+ type: "uint8",
216
+ },
217
+ ],
218
+ indexed: false,
219
+ internalType: "struct CeloDistributionHelper.DistributionRecipient",
220
+ name: "recipient",
221
+ type: "tuple",
222
+ },
223
+ {
224
+ indexed: false,
225
+ internalType: "uint256",
226
+ name: "index",
227
+ type: "uint256",
228
+ },
229
+ ],
230
+ name: "RecipientUpdated",
231
+ type: "event",
232
+ },
233
+ {
234
+ anonymous: false,
235
+ inputs: [
236
+ {
237
+ indexed: true,
238
+ internalType: "bytes32",
239
+ name: "role",
240
+ type: "bytes32",
241
+ },
242
+ {
243
+ indexed: true,
244
+ internalType: "bytes32",
245
+ name: "previousAdminRole",
246
+ type: "bytes32",
247
+ },
248
+ {
249
+ indexed: true,
250
+ internalType: "bytes32",
251
+ name: "newAdminRole",
252
+ type: "bytes32",
253
+ },
254
+ ],
255
+ name: "RoleAdminChanged",
256
+ type: "event",
257
+ },
258
+ {
259
+ anonymous: false,
260
+ inputs: [
261
+ {
262
+ indexed: true,
263
+ internalType: "bytes32",
264
+ name: "role",
265
+ type: "bytes32",
266
+ },
267
+ {
268
+ indexed: true,
269
+ internalType: "address",
270
+ name: "account",
271
+ type: "address",
272
+ },
273
+ {
274
+ indexed: true,
275
+ internalType: "address",
276
+ name: "sender",
277
+ type: "address",
278
+ },
279
+ ],
280
+ name: "RoleGranted",
281
+ type: "event",
282
+ },
283
+ {
284
+ anonymous: false,
285
+ inputs: [
286
+ {
287
+ indexed: true,
288
+ internalType: "bytes32",
289
+ name: "role",
290
+ type: "bytes32",
291
+ },
292
+ {
293
+ indexed: true,
294
+ internalType: "address",
295
+ name: "account",
296
+ type: "address",
297
+ },
298
+ {
299
+ indexed: true,
300
+ internalType: "address",
301
+ name: "sender",
302
+ type: "address",
303
+ },
304
+ ],
305
+ name: "RoleRevoked",
306
+ type: "event",
307
+ },
308
+ {
309
+ anonymous: false,
310
+ inputs: [
311
+ {
312
+ indexed: true,
313
+ internalType: "address",
314
+ name: "implementation",
315
+ type: "address",
316
+ },
317
+ ],
318
+ name: "Upgraded",
319
+ type: "event",
320
+ },
321
+ {
322
+ inputs: [],
323
+ name: "CELO",
324
+ outputs: [
325
+ {
326
+ internalType: "address",
327
+ name: "",
328
+ type: "address",
329
+ },
330
+ ],
331
+ stateMutability: "view",
332
+ type: "function",
333
+ },
334
+ {
335
+ inputs: [],
336
+ name: "CUSD",
337
+ outputs: [
338
+ {
339
+ internalType: "address",
340
+ name: "",
341
+ type: "address",
342
+ },
343
+ ],
344
+ stateMutability: "view",
345
+ type: "function",
346
+ },
347
+ {
348
+ inputs: [],
349
+ name: "DEFAULT_ADMIN_ROLE",
350
+ outputs: [
351
+ {
352
+ internalType: "bytes32",
353
+ name: "",
354
+ type: "bytes32",
355
+ },
356
+ ],
357
+ stateMutability: "view",
358
+ type: "function",
359
+ },
360
+ {
361
+ inputs: [],
362
+ name: "GUARDIAN_ROLE",
363
+ outputs: [
364
+ {
365
+ internalType: "bytes32",
366
+ name: "",
367
+ type: "bytes32",
368
+ },
369
+ ],
370
+ stateMutability: "view",
371
+ type: "function",
372
+ },
373
+ {
374
+ inputs: [],
375
+ name: "ROUTER",
376
+ outputs: [
377
+ {
378
+ internalType: "contract ISwapRouter",
379
+ name: "",
380
+ type: "address",
381
+ },
382
+ ],
383
+ stateMutability: "view",
384
+ type: "function",
385
+ },
386
+ {
387
+ inputs: [],
388
+ name: "STATIC_ORACLE",
389
+ outputs: [
390
+ {
391
+ internalType: "contract IStaticOracle",
392
+ name: "",
393
+ type: "address",
394
+ },
395
+ ],
396
+ stateMutability: "view",
397
+ type: "function",
398
+ },
399
+ {
400
+ inputs: [
401
+ {
402
+ components: [
403
+ {
404
+ internalType: "uint32",
405
+ name: "bps",
406
+ type: "uint32",
407
+ },
408
+ {
409
+ internalType: "uint32",
410
+ name: "chainId",
411
+ type: "uint32",
412
+ },
413
+ {
414
+ internalType: "address",
415
+ name: "addr",
416
+ type: "address",
417
+ },
418
+ {
419
+ internalType: "enum CeloDistributionHelper.TransferType",
420
+ name: "transferType",
421
+ type: "uint8",
422
+ },
423
+ ],
424
+ internalType: "struct CeloDistributionHelper.DistributionRecipient",
425
+ name: "_recipient",
426
+ type: "tuple",
427
+ },
428
+ ],
429
+ name: "addOrUpdateRecipient",
430
+ outputs: [],
431
+ stateMutability: "nonpayable",
432
+ type: "function",
433
+ },
434
+ {
435
+ inputs: [],
436
+ name: "avatar",
437
+ outputs: [
438
+ {
439
+ internalType: "address",
440
+ name: "",
441
+ type: "address",
442
+ },
443
+ ],
444
+ stateMutability: "view",
445
+ type: "function",
446
+ },
447
+ {
448
+ inputs: [
449
+ {
450
+ internalType: "uint256",
451
+ name: "maxAmountToSell",
452
+ type: "uint256",
453
+ },
454
+ ],
455
+ name: "calcGDToSell",
456
+ outputs: [
457
+ {
458
+ internalType: "uint256",
459
+ name: "gdToSell",
460
+ type: "uint256",
461
+ },
462
+ {
463
+ internalType: "uint256",
464
+ name: "minReceived",
465
+ type: "uint256",
466
+ },
467
+ ],
468
+ stateMutability: "view",
469
+ type: "function",
470
+ },
471
+ {
472
+ inputs: [],
473
+ name: "dao",
474
+ outputs: [
475
+ {
476
+ internalType: "contract Controller",
477
+ name: "",
478
+ type: "address",
479
+ },
480
+ ],
481
+ stateMutability: "view",
482
+ type: "function",
483
+ },
484
+ {
485
+ inputs: [
486
+ {
487
+ internalType: "uint256",
488
+ name: "",
489
+ type: "uint256",
490
+ },
491
+ ],
492
+ name: "distributionRecipients",
493
+ outputs: [
494
+ {
495
+ internalType: "uint32",
496
+ name: "bps",
497
+ type: "uint32",
498
+ },
499
+ {
500
+ internalType: "uint32",
501
+ name: "chainId",
502
+ type: "uint32",
503
+ },
504
+ {
505
+ internalType: "address",
506
+ name: "addr",
507
+ type: "address",
508
+ },
509
+ {
510
+ internalType: "enum CeloDistributionHelper.TransferType",
511
+ name: "transferType",
512
+ type: "uint8",
513
+ },
514
+ ],
515
+ stateMutability: "view",
516
+ type: "function",
517
+ },
518
+ {
519
+ inputs: [],
520
+ name: "feeSettings",
521
+ outputs: [
522
+ {
523
+ internalType: "uint128",
524
+ name: "maxFee",
525
+ type: "uint128",
526
+ },
527
+ {
528
+ internalType: "uint128",
529
+ name: "minBalanceForFees",
530
+ type: "uint128",
531
+ },
532
+ {
533
+ internalType: "uint8",
534
+ name: "percentageToSellForFee",
535
+ type: "uint8",
536
+ },
537
+ {
538
+ internalType: "uint8",
539
+ name: "maxSlippage",
540
+ type: "uint8",
541
+ },
542
+ ],
543
+ stateMutability: "view",
544
+ type: "function",
545
+ },
546
+ {
547
+ inputs: [
548
+ {
549
+ internalType: "bytes32",
550
+ name: "role",
551
+ type: "bytes32",
552
+ },
553
+ ],
554
+ name: "getRoleAdmin",
555
+ outputs: [
556
+ {
557
+ internalType: "bytes32",
558
+ name: "",
559
+ type: "bytes32",
560
+ },
561
+ ],
562
+ stateMutability: "view",
563
+ type: "function",
564
+ },
565
+ {
566
+ inputs: [
567
+ {
568
+ internalType: "bytes32",
569
+ name: "role",
570
+ type: "bytes32",
571
+ },
572
+ {
573
+ internalType: "uint256",
574
+ name: "index",
575
+ type: "uint256",
576
+ },
577
+ ],
578
+ name: "getRoleMember",
579
+ outputs: [
580
+ {
581
+ internalType: "address",
582
+ name: "",
583
+ type: "address",
584
+ },
585
+ ],
586
+ stateMutability: "view",
587
+ type: "function",
588
+ },
589
+ {
590
+ inputs: [
591
+ {
592
+ internalType: "bytes32",
593
+ name: "role",
594
+ type: "bytes32",
595
+ },
596
+ ],
597
+ name: "getRoleMemberCount",
598
+ outputs: [
599
+ {
600
+ internalType: "uint256",
601
+ name: "",
602
+ type: "uint256",
603
+ },
604
+ ],
605
+ stateMutability: "view",
606
+ type: "function",
607
+ },
608
+ {
609
+ inputs: [
610
+ {
611
+ internalType: "bytes32",
612
+ name: "role",
613
+ type: "bytes32",
614
+ },
615
+ {
616
+ internalType: "address",
617
+ name: "account",
618
+ type: "address",
619
+ },
620
+ ],
621
+ name: "grantRole",
622
+ outputs: [],
623
+ stateMutability: "nonpayable",
624
+ type: "function",
625
+ },
626
+ {
627
+ inputs: [
628
+ {
629
+ internalType: "bytes32",
630
+ name: "role",
631
+ type: "bytes32",
632
+ },
633
+ {
634
+ internalType: "address",
635
+ name: "account",
636
+ type: "address",
637
+ },
638
+ ],
639
+ name: "hasRole",
640
+ outputs: [
641
+ {
642
+ internalType: "bool",
643
+ name: "",
644
+ type: "bool",
645
+ },
646
+ ],
647
+ stateMutability: "view",
648
+ type: "function",
649
+ },
650
+ {
651
+ inputs: [
652
+ {
653
+ internalType: "contract INameService",
654
+ name: "_ns",
655
+ type: "address",
656
+ },
657
+ {
658
+ internalType: "contract IStaticOracle",
659
+ name: "_oracle",
660
+ type: "address",
661
+ },
662
+ ],
663
+ name: "initialize",
664
+ outputs: [],
665
+ stateMutability: "nonpayable",
666
+ type: "function",
667
+ },
668
+ {
669
+ inputs: [],
670
+ name: "mpbBridge",
671
+ outputs: [
672
+ {
673
+ internalType: "contract IMessagePassingBridge",
674
+ name: "",
675
+ type: "address",
676
+ },
677
+ ],
678
+ stateMutability: "view",
679
+ type: "function",
680
+ },
681
+ {
682
+ inputs: [],
683
+ name: "nameService",
684
+ outputs: [
685
+ {
686
+ internalType: "contract INameService",
687
+ name: "",
688
+ type: "address",
689
+ },
690
+ ],
691
+ stateMutability: "view",
692
+ type: "function",
693
+ },
694
+ {
695
+ inputs: [],
696
+ name: "nativeToken",
697
+ outputs: [
698
+ {
699
+ internalType: "contract IGoodDollar",
700
+ name: "",
701
+ type: "address",
702
+ },
703
+ ],
704
+ stateMutability: "view",
705
+ type: "function",
706
+ },
707
+ {
708
+ inputs: [
709
+ {
710
+ internalType: "uint256",
711
+ name: "_amount",
712
+ type: "uint256",
713
+ },
714
+ ],
715
+ name: "onDistribution",
716
+ outputs: [],
717
+ stateMutability: "nonpayable",
718
+ type: "function",
719
+ },
720
+ {
721
+ inputs: [],
722
+ name: "proxiableUUID",
723
+ outputs: [
724
+ {
725
+ internalType: "bytes32",
726
+ name: "",
727
+ type: "bytes32",
728
+ },
729
+ ],
730
+ stateMutability: "view",
731
+ type: "function",
732
+ },
733
+ {
734
+ inputs: [
735
+ {
736
+ internalType: "bytes32",
737
+ name: "role",
738
+ type: "bytes32",
739
+ },
740
+ {
741
+ internalType: "address",
742
+ name: "account",
743
+ type: "address",
744
+ },
745
+ ],
746
+ name: "renounceRole",
747
+ outputs: [],
748
+ stateMutability: "nonpayable",
749
+ type: "function",
750
+ },
751
+ {
752
+ inputs: [
753
+ {
754
+ internalType: "bytes32",
755
+ name: "role",
756
+ type: "bytes32",
757
+ },
758
+ {
759
+ internalType: "address",
760
+ name: "account",
761
+ type: "address",
762
+ },
763
+ ],
764
+ name: "revokeRole",
765
+ outputs: [],
766
+ stateMutability: "nonpayable",
767
+ type: "function",
768
+ },
769
+ {
770
+ inputs: [
771
+ {
772
+ components: [
773
+ {
774
+ internalType: "uint128",
775
+ name: "maxFee",
776
+ type: "uint128",
777
+ },
778
+ {
779
+ internalType: "uint128",
780
+ name: "minBalanceForFees",
781
+ type: "uint128",
782
+ },
783
+ {
784
+ internalType: "uint8",
785
+ name: "percentageToSellForFee",
786
+ type: "uint8",
787
+ },
788
+ {
789
+ internalType: "uint8",
790
+ name: "maxSlippage",
791
+ type: "uint8",
792
+ },
793
+ ],
794
+ internalType: "struct CeloDistributionHelper.FeeSettings",
795
+ name: "_feeData",
796
+ type: "tuple",
797
+ },
798
+ ],
799
+ name: "setFeeSettings",
800
+ outputs: [],
801
+ stateMutability: "nonpayable",
802
+ type: "function",
803
+ },
804
+ {
805
+ inputs: [
806
+ {
807
+ internalType: "bytes4",
808
+ name: "interfaceId",
809
+ type: "bytes4",
810
+ },
811
+ ],
812
+ name: "supportsInterface",
813
+ outputs: [
814
+ {
815
+ internalType: "bool",
816
+ name: "",
817
+ type: "bool",
818
+ },
819
+ ],
820
+ stateMutability: "view",
821
+ type: "function",
822
+ },
823
+ {
824
+ inputs: [],
825
+ name: "updateAvatar",
826
+ outputs: [],
827
+ stateMutability: "nonpayable",
828
+ type: "function",
829
+ },
830
+ {
831
+ inputs: [
832
+ {
833
+ internalType: "address",
834
+ name: "newImplementation",
835
+ type: "address",
836
+ },
837
+ ],
838
+ name: "upgradeTo",
839
+ outputs: [],
840
+ stateMutability: "nonpayable",
841
+ type: "function",
842
+ },
843
+ {
844
+ inputs: [
845
+ {
846
+ internalType: "address",
847
+ name: "newImplementation",
848
+ type: "address",
849
+ },
850
+ {
851
+ internalType: "bytes",
852
+ name: "data",
853
+ type: "bytes",
854
+ },
855
+ ],
856
+ name: "upgradeToAndCall",
857
+ outputs: [],
858
+ stateMutability: "payable",
859
+ type: "function",
860
+ },
861
+ {
862
+ stateMutability: "payable",
863
+ type: "receive",
864
+ },
865
+ ] as const;
866
+
867
+ const _bytecode =
868
+ "0x60a06040523060805234801561001457600080fd5b506080516128fe61004c6000396000818161081c0152818161085c0152818161104801528181611088015261110001526128fe6000f3fe6080604052600436106101615760003560e01c806301ffc9a71461016d57806312adcebf146101a25780631b3c90a8146101db5780631c6603ba146101f2578063248a9ca31461026457806324ea54f4146102925780632f2ff15d146102b457806332fe7b26146102d4578063346ef41b146102fc57806336568abe1461032c5780633659cfe61461034c5780633d34a2671461036c5780633e6326fc146103a15780634162169f146103c1578063485cc955146103e15780634f1ef2861461040157806352d1902d146104145780635aef7de614610429578063758316c91461044957806386d97a1a1461046b5780639010d07c1461048b57806391d14854146104ab5780639d4c9c40146104cb578063a217fddf146104ec578063a8ba389014610501578063b875d49c1461051c578063ca15c8731461053c578063d547741f1461055c578063e1758bd81461057c578063f60e673e1461059157600080fd5b3661016857005b600080fd5b34801561017957600080fd5b5061018d61018836600461201b565b6105b9565b60405190151581526020015b60405180910390f35b3480156101ae57600080fd5b50610166546101c3906001600160a01b031681565b6040516001600160a01b039091168152602001610199565b3480156101e757600080fd5b506101f06105e4565b005b3480156101fe57600080fd5b506101645461016554610230916001600160801b0380821692600160801b909204169060ff8082169161010090041684565b604080516001600160801b03958616815294909316602085015260ff91821692840192909252166060820152608001610199565b34801561027057600080fd5b5061028461027f366004612045565b61070b565b604051908152602001610199565b34801561029e57600080fd5b506102846000805160206128a983398151915281565b3480156102c057600080fd5b506101f06102cf366004612073565b610720565b3480156102e057600080fd5b506101c3735615cdab10dc425a742d643d949a7f474c01abc481565b34801561030857600080fd5b5061031c610317366004612045565b610741565b60405161019994939291906120db565b34801561033857600080fd5b506101f0610347366004612073565b61078f565b34801561035857600080fd5b506101f061036736600461210c565b610812565b34801561037857600080fd5b5061038c610387366004612045565b6108da565b60408051928352602083019190915201610199565b3480156103ad57600080fd5b506067546101c3906001600160a01b031681565b3480156103cd57600080fd5b506065546101c3906001600160a01b031681565b3480156103ed57600080fd5b506101f06103fc366004612129565b610c73565b6101f061040f3660046121c5565b61103e565b34801561042057600080fd5b506102846110f3565b34801561043557600080fd5b506066546101c3906001600160a01b031681565b34801561045557600080fd5b506101c360008051602061288983398151915281565b34801561047757600080fd5b506101f0610486366004612285565b6111a1565b34801561049757600080fd5b506101c36104a63660046122ec565b611455565b3480156104b757600080fd5b5061018d6104c6366004612073565b611475565b3480156104d757600080fd5b50610163546101c3906001600160a01b031681565b3480156104f857600080fd5b50610284600081565b34801561050d57600080fd5b506101f0610168366004612045565b34801561052857600080fd5b506101f0610537366004612336565b6114a0565b34801561054857600080fd5b50610284610557366004612045565b611506565b34801561056857600080fd5b506101f0610577366004612073565b61151e565b34801561058857600080fd5b506101c361153a565b34801561059d57600080fd5b506101c373471ece3750da237f93b8e339c536989b8978a43881565b60006001600160e01b03198216635a05180f60e01b14806105de57506105de826115c7565b92915050565b60675460405163bf40fac160e01b815260206004820152600a60248201526921a7a72a2927a62622a960b11b60448201526001600160a01b039091169063bf40fac190606401602060405180830381865afa158015610647573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066b9190612389565b606580546001600160a01b0319166001600160a01b0392909216918217905560408051632d77bef360e11b81529051635aef7de6916004808201926020929091908290030181865afa1580156106c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e99190612389565b606680546001600160a01b0319166001600160a01b0392909216919091179055565b600090815260fe602052604090206001015490565b6107298261070b565b610732816115fc565b61073c8383611606565b505050565b610162818154811061075257600080fd5b60009182526020909120015463ffffffff8082169250600160201b82041690600160401b81046001600160a01b031690600160e01b900460ff1684565b6001600160a01b03811633146108045760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61080e8282611629565b5050565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361085a5760405162461bcd60e51b81526004016107fb906123a6565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661088c61164c565b6001600160a01b0316146108b25760405162461bcd60e51b81526004016107fb906123e0565b6108bb81611668565b604080516000808252602082019092526108d791839190611670565b50565b60408051600180825281830190925260009182918291602080830190803683370190505090506064816000815181106109155761091561241a565b62ffffff9092166020928302919091019091015261016454600090479061094e906001600160801b03600160801b909104166003612446565b6001600160801b03166109619190612471565b61016654604051636c022f6560e11b81529192506000916001600160a01b039091169063d8045eca906109c390859073471ece3750da237f93b8e339c536989b8978a43890600080516020612889833981519152908990603c906004016124c4565b600060405180830381865afa1580156109e0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a08919081019061259f565b50905061271083600081518110610a2157610a2161241a565b62ffffff90921660209283029190910190910152610166546001600160a01b031663d8045eca82600080516020612889833981519152610a5f61153a565b87603c6040518663ffffffff1660e01b8152600401610a829594939291906124c4565b600060405180830381865afa158015610a9f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ac7919081019061259f565b508095505081935085851115610c6b5785945061271083600081518110610af057610af061241a565b62ffffff90921660209283029190910190910152610166546000906001600160a01b031663d8045eca87610b2261153a565b60008051602061288983398151915288603c6040518663ffffffff1660e01b8152600401610b549594939291906124c4565b600060405180830381865afa158015610b71573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b99919081019061259f565b509050606484600081518110610bb157610bb161241a565b62ffffff9092166020928302919091019091015261016654604051636c022f6560e11b81526001600160a01b039091169063d8045eca90610c219084906000805160206128898339815191529073471ece3750da237f93b8e339c536989b8978a438908a90603c906004016124c4565b600060405180830381865afa158015610c3e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c66919081019061259f565b509450505b505050915091565b600054610100900460ff1615808015610c935750600054600160ff909116105b80610cb45750610ca2306117db565b158015610cb4575060005460ff166001145b610d175760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016107fb565b6000805460ff191660011790558015610d3a576000805461ff0019166101001790555b610d426117ea565b610d4b83611857565b606654610d63906000906001600160a01b031661187a565b606654610d88906000805160206128a9833981519152906001600160a01b031661187a565b60675460405163bf40fac160e01b81526020600482015260126024820152711354109094925111d157d0d3d395149050d560721b60448201526001600160a01b039091169063bf40fac190606401602060405180830381865afa158015610df3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e179190612389565b61016380546001600160a01b03199081166001600160a01b039384161790915561016680549091169184169190911790556040805160018082528183019092526000916020808301908036833701905050905061271081600081518110610e8057610e8061241a565b62ffffff90921660209283029190910190910152610166546001600160a01b031663e85dd383600080516020612889833981519152610ebd61153a565b84603c6040518563ffffffff1660e01b8152600401610edf94939291906125e6565b6000604051808303816000875af1158015610efe573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f269190810190612629565b50606481600081518110610f3c57610f3c61241a565b62ffffff909216602092830291909101909101526101665460405163e85dd38360e01b81526001600160a01b039091169063e85dd38390610faa906000805160206128898339815191529073471ece3750da237f93b8e339c536989b8978a438908690603c906004016125e6565b6000604051808303816000875af1158015610fc9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ff19190810190612629565b5050801561073c576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498906020015b60405180910390a1505050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036110865760405162461bcd60e51b81526004016107fb906123a6565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b861164c565b6001600160a01b0316146110de5760405162461bcd60e51b81526004016107fb906123e0565b6110e782611668565b61080e82826001611670565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461118e5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b60648201526084016107fb565b5060008051602061284283398151915290565b60006111ac816115fc565b6000826060015160028111156111c4576111c46120a3565b141580156111dc575046826020015163ffffffff1614155b156111fa5760405163029b6e5760e41b815260040160405180910390fd5b60005b610162548110156113465782604001516001600160a01b0316610162828154811061122a5761122a61241a565b600091825260209091200154600160401b90046001600160a01b031603611334578261016282815481106112605761126061241a565b60009182526020918290208351910180549284015160408501516001600160a01b0316600160401b02600160401b600160e01b031963ffffffff928316600160201b026001600160401b031990961692909416919091179390931791821683178155606084015190929091839160ff60e01b1916600160401b600160e81b031990911617600160e01b8360028111156112fb576112fb6120a3565b02179055509050507fd26d9de175cfca2c3e0cad9d09c85f0ce6c7fa5257382d00dc26dc5fb25cd8df8382604051611031929190612665565b8061133e816126b6565b9150506111fd565b50610162546040517f2e65f65347b2e76218df0b7b6b594a3862c81e85706795e700237093c47a39579161137c91859190612665565b60405180910390a1610162805460018101825560009190915282517f29af0939a5988989bfee913a9ad10b9335cb63ebc9fd2b69e5f877d0455ac9199091018054602085015160408601516001600160a01b0316600160401b02600160401b600160e01b031963ffffffff928316600160201b026001600160401b031990941692909516919091179190911792831681178255606085015185939091839160ff60e01b19909116600160401b600160e81b031990911617600160e01b83600281111561144a5761144a6120a3565b021790555050505050565b60008281526101306020526040812061146e9083611884565b9392505050565b600091825260fe602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000805160206128a98339815191526114b8816115fc565b50805160208201516001600160801b03908116600160801b02911617610164556040810151610165805460609093015160ff9081166101000261ffff19909416921691909117919091179055565b6000818152610130602052604081206105de90611890565b6115278261070b565b611530816115fc565b61073c8383611629565b60675460405163bf40fac160e01b815260206004820152600a60248201526923a7a7a22227a62620a960b11b60448201526000916001600160a01b03169063bf40fac190606401602060405180830381865afa15801561159e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c29190612389565b905090565b60006001600160e01b03198216637965db0b60e01b14806105de57506301ffc9a760e01b6001600160e01b03198316146105de565b6108d7813361189a565b61161082826118f3565b60008281526101306020526040902061073c9082611979565b611633828261198e565b60008281526101306020526040902061073c90826119f5565b600080516020612842833981519152546001600160a01b031690565b6108d7611a0a565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156116a35761073c83611acd565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116fd575060408051601f3d908101601f191682019092526116fa918101906126cf565b60015b6117605760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016107fb565b60008051602061284283398151915281146117cf5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016107fb565b5061073c838383611b67565b6001600160a01b03163b151590565b600054610100900460ff166118555760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016107fb565b565b606780546001600160a01b0319166001600160a01b0383161790556108d76105e4565b61080e8282611606565b600061146e8383611b92565b60006105de825490565b6118a48282611475565b61080e576118b181611bbc565b6118bc836020611bce565b6040516020016118cd92919061270c565b60408051601f198184030181529082905262461bcd60e51b82526107fb9160040161277b565b6118fd8282611475565b61080e57600082815260fe602090815260408083206001600160a01b03851684529091529020805460ff191660011790556119353390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600061146e836001600160a01b038416611d69565b6119988282611475565b1561080e57600082815260fe602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600061146e836001600160a01b038416611db8565b60655460408051632d77bef360e11b8152905133926001600160a01b031691635aef7de69160048083019260209291908290030181865afa158015611a53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a779190612389565b6001600160a01b0316146118555760405162461bcd60e51b815260206004820181905260248201527f6f6e6c79206176617461722063616e2063616c6c2074686973206d6574686f6460448201526064016107fb565b611ad6816117db565b611b385760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016107fb565b60008051602061284283398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b611b7083611eab565b600082511180611b7d5750805b1561073c57611b8c8383611eeb565b50505050565b6000826000018281548110611ba957611ba961241a565b9060005260206000200154905092915050565b60606105de6001600160a01b03831660145b60606000611bdd8360026127ae565b611be89060026127c5565b6001600160401b03811115611bff57611bff612157565b6040519080825280601f01601f191660200182016040528015611c29576020820181803683370190505b509050600360fc1b81600081518110611c4457611c4461241a565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611c7357611c7361241a565b60200101906001600160f81b031916908160001a9053506000611c978460026127ae565b611ca29060016127c5565b90505b6001811115611d1a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611cd657611cd661241a565b1a60f81b828281518110611cec57611cec61241a565b60200101906001600160f81b031916908160001a90535060049490941c93611d13816127d8565b9050611ca5565b50831561146e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016107fb565b6000818152600183016020526040812054611db0575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556105de565b5060006105de565b60008181526001830160205260408120548015611ea1576000611ddc600183612471565b8554909150600090611df090600190612471565b9050818114611e55576000866000018281548110611e1057611e1061241a565b9060005260206000200154905080876000018481548110611e3357611e3361241a565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e6657611e666127ef565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506105de565b60009150506105de565b611eb481611acd565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060611ef6836117db565b611f515760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016107fb565b600080846001600160a01b031684604051611f6c9190612805565b600060405180830381855af49150503d8060008114611fa7576040519150601f19603f3d011682016040523d82523d6000602084013e611fac565b606091505b5091509150611fd4828260405180606001604052806027815260200161286260279139611fdd565b95945050505050565b60608315611fec57508161146e565b61146e83838151156120015781518083602001fd5b8060405162461bcd60e51b81526004016107fb919061277b565b60006020828403121561202d57600080fd5b81356001600160e01b03198116811461146e57600080fd5b60006020828403121561205757600080fd5b5035919050565b6001600160a01b03811681146108d757600080fd5b6000806040838503121561208657600080fd5b8235915060208301356120988161205e565b809150509250929050565b634e487b7160e01b600052602160045260246000fd5b600381106120d757634e487b7160e01b600052602160045260246000fd5b9052565b63ffffffff8581168252841660208201526001600160a01b038316604082015260808101611fd460608301846120b9565b60006020828403121561211e57600080fd5b813561146e8161205e565b6000806040838503121561213c57600080fd5b82356121478161205e565b915060208301356120988161205e565b634e487b7160e01b600052604160045260246000fd5b604051608081016001600160401b038111828210171561218f5761218f612157565b60405290565b604051601f8201601f191681016001600160401b03811182821017156121bd576121bd612157565b604052919050565b600080604083850312156121d857600080fd5b82356121e38161205e565b91506020838101356001600160401b038082111561220057600080fd5b818601915086601f83011261221457600080fd5b81358181111561222657612226612157565b612238601f8201601f19168501612195565b9150808252878482850101111561224e57600080fd5b80848401858401376000848284010152508093505050509250929050565b803563ffffffff8116811461228057600080fd5b919050565b60006080828403121561229757600080fd5b61229f61216d565b6122a88361226c565b81526122b66020840161226c565b602082015260408301356122c98161205e565b60408201526060830135600381106122e057600080fd5b60608201529392505050565b600080604083850312156122ff57600080fd5b50508035926020909101359150565b80356001600160801b038116811461228057600080fd5b803560ff8116811461228057600080fd5b60006080828403121561234857600080fd5b61235061216d565b6123598361230e565b81526123676020840161230e565b602082015261237860408401612325565b60408201526122e060608401612325565b60006020828403121561239b57600080fd5b815161146e8161205e565b6020808252602c9082015260008051602061282283398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c9082015260008051602061282283398151915260408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6001600160801b0381811683821602808216919082811461246957612469612430565b505092915050565b818103818111156105de576105de612430565b600081518084526020808501945080840160005b838110156124b957815162ffffff1687529582019590820190600101612498565b509495945050505050565b6001600160801b03861681526001600160a01b0385811660208301528416604082015260a0606082018190526000906124ff90830185612484565b905063ffffffff831660808301529695505050505050565b600082601f83011261252857600080fd5b815160206001600160401b0382111561254357612543612157565b8160051b612552828201612195565b928352848101820192828101908785111561256c57600080fd5b83870192505b848310156125945782516125858161205e565b82529183019190830190612572565b979650505050505050565b600080604083850312156125b257600080fd5b825160208401519092506001600160401b038111156125d057600080fd5b6125dc85828601612517565b9150509250929050565b6001600160a01b0385811682528416602082015260806040820181905260009061261290830185612484565b905063ffffffff8316606083015295945050505050565b60006020828403121561263b57600080fd5b81516001600160401b0381111561265157600080fd5b61265d84828501612517565b949350505050565b825163ffffffff9081168252602080850151909116908201526040808401516001600160a01b03169082015260608084015160a08301916126a8908401826120b9565b508260808301529392505050565b6000600182016126c8576126c8612430565b5060010190565b6000602082840312156126e157600080fd5b5051919050565b60005b838110156127035781810151838201526020016126eb565b50506000910152565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b81526000835161273e8160178501602088016126e8565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161276f8160288401602088016126e8565b01602801949350505050565b602081526000825180602084015261279a8160408501602087016126e8565b601f01601f19169190910160400192915050565b80820281158282048414176105de576105de612430565b808201808211156105de576105de612430565b6000816127e7576127e7612430565b506000190190565b634e487b7160e01b600052603160045260246000fd5b600082516128178184602087016126e8565b919091019291505056fe46756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564000000000000000000000000765de816845861e75a25fca122bb6898b8b1282a55435dd261a4b9b3364963f7738a7a662ad9c84396d64be3365284bb7f0a5041a264697066735822122084915f048d71dcaa6854aecc687fb2e7e7a72ba2749363fbeffd2184265931c164736f6c63430008130033";
869
+
870
+ type CeloDistributionHelperTestConstructorParams =
871
+ | [signer?: Signer]
872
+ | ConstructorParameters<typeof ContractFactory>;
873
+
874
+ const isSuperArgs = (
875
+ xs: CeloDistributionHelperTestConstructorParams
876
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
877
+
878
+ export class CeloDistributionHelperTest__factory extends ContractFactory {
879
+ constructor(...args: CeloDistributionHelperTestConstructorParams) {
880
+ if (isSuperArgs(args)) {
881
+ super(...args);
882
+ } else {
883
+ super(_abi, _bytecode, args[0]);
884
+ }
885
+ }
886
+
887
+ override deploy(
888
+ overrides?: Overrides & { from?: string }
889
+ ): Promise<CeloDistributionHelperTest> {
890
+ return super.deploy(overrides || {}) as Promise<CeloDistributionHelperTest>;
891
+ }
892
+ override getDeployTransaction(
893
+ overrides?: Overrides & { from?: string }
894
+ ): TransactionRequest {
895
+ return super.getDeployTransaction(overrides || {});
896
+ }
897
+ override attach(address: string): CeloDistributionHelperTest {
898
+ return super.attach(address) as CeloDistributionHelperTest;
899
+ }
900
+ override connect(signer: Signer): CeloDistributionHelperTest__factory {
901
+ return super.connect(signer) as CeloDistributionHelperTest__factory;
902
+ }
903
+
904
+ static readonly bytecode = _bytecode;
905
+ static readonly abi = _abi;
906
+ static createInterface(): CeloDistributionHelperTestInterface {
907
+ return new utils.Interface(_abi) as CeloDistributionHelperTestInterface;
908
+ }
909
+ static connect(
910
+ address: string,
911
+ signerOrProvider: Signer | Provider
912
+ ): CeloDistributionHelperTest {
913
+ return new Contract(
914
+ address,
915
+ _abi,
916
+ signerOrProvider
917
+ ) as CeloDistributionHelperTest;
918
+ }
919
+ }