@gooddollar/goodprotocol 2.0.34-beta.2 → 2.0.34-beta.4

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