@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
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/1f129f9f8f681ec16919b7a4a77beba0.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/1f129f9f8f681ec16919b7a4a77beba0.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/02befb12373b2a68315b0e289f939087.json"
3
+ "buildInfo": "../../../build-info/6d05e6f5ec21eda88e1c735d5d16784b.json"
4
4
  }
@@ -0,0 +1,108 @@
1
+ // SPDX-License-Identifier: GPL-2.0-or-later
2
+ pragma solidity >=0.7.5;
3
+ pragma abicoder v2;
4
+
5
+ /// @title QuoterV2 Interface
6
+ /// @notice Supports quoting the calculated amounts from exact input or exact output swaps.
7
+ /// @notice For each pool also tells you the number of initialized ticks crossed and the sqrt price of the pool after the swap.
8
+ /// @dev These functions are not marked view because they rely on calling non-view functions and reverting
9
+ /// to compute the result. They are also not gas efficient and should not be called on-chain.
10
+ interface IQuoterV2 {
11
+ /// @notice Returns the amount out received for a given exact input swap without executing the swap
12
+ /// @param path The path of the swap, i.e. each token pair and the pool fee
13
+ /// @param amountIn The amount of the first token to swap
14
+ /// @return amountOut The amount of the last token that would be received
15
+ /// @return sqrtPriceX96AfterList List of the sqrt price after the swap for each pool in the path
16
+ /// @return initializedTicksCrossedList List of the initialized ticks that the swap crossed for each pool in the path
17
+ /// @return gasEstimate The estimate of the gas that the swap consumes
18
+ function quoteExactInput(
19
+ bytes memory path,
20
+ uint256 amountIn
21
+ )
22
+ external
23
+ returns (
24
+ uint256 amountOut,
25
+ uint160[] memory sqrtPriceX96AfterList,
26
+ uint32[] memory initializedTicksCrossedList,
27
+ uint256 gasEstimate
28
+ );
29
+
30
+ struct QuoteExactInputSingleParams {
31
+ address tokenIn;
32
+ address tokenOut;
33
+ uint256 amountIn;
34
+ uint24 fee;
35
+ uint160 sqrtPriceLimitX96;
36
+ }
37
+
38
+ /// @notice Returns the amount out received for a given exact input but for a swap of a single pool
39
+ /// @param params The params for the quote, encoded as `QuoteExactInputSingleParams`
40
+ /// tokenIn The token being swapped in
41
+ /// tokenOut The token being swapped out
42
+ /// fee The fee of the token pool to consider for the pair
43
+ /// amountIn The desired input amount
44
+ /// sqrtPriceLimitX96 The price limit of the pool that cannot be exceeded by the swap
45
+ /// @return amountOut The amount of `tokenOut` that would be received
46
+ /// @return sqrtPriceX96After The sqrt price of the pool after the swap
47
+ /// @return initializedTicksCrossed The number of initialized ticks that the swap crossed
48
+ /// @return gasEstimate The estimate of the gas that the swap consumes
49
+ function quoteExactInputSingle(
50
+ QuoteExactInputSingleParams memory params
51
+ )
52
+ external
53
+ returns (
54
+ uint256 amountOut,
55
+ uint160 sqrtPriceX96After,
56
+ uint32 initializedTicksCrossed,
57
+ uint256 gasEstimate
58
+ );
59
+
60
+ /// @notice Returns the amount in required for a given exact output swap without executing the swap
61
+ /// @param path The path of the swap, i.e. each token pair and the pool fee. Path must be provided in reverse order
62
+ /// @param amountOut The amount of the last token to receive
63
+ /// @return amountIn The amount of first token required to be paid
64
+ /// @return sqrtPriceX96AfterList List of the sqrt price after the swap for each pool in the path
65
+ /// @return initializedTicksCrossedList List of the initialized ticks that the swap crossed for each pool in the path
66
+ /// @return gasEstimate The estimate of the gas that the swap consumes
67
+ function quoteExactOutput(
68
+ bytes memory path,
69
+ uint256 amountOut
70
+ )
71
+ external
72
+ returns (
73
+ uint256 amountIn,
74
+ uint160[] memory sqrtPriceX96AfterList,
75
+ uint32[] memory initializedTicksCrossedList,
76
+ uint256 gasEstimate
77
+ );
78
+
79
+ struct QuoteExactOutputSingleParams {
80
+ address tokenIn;
81
+ address tokenOut;
82
+ uint256 amount;
83
+ uint24 fee;
84
+ uint160 sqrtPriceLimitX96;
85
+ }
86
+
87
+ /// @notice Returns the amount in required to receive the given exact output amount but for a swap of a single pool
88
+ /// @param params The params for the quote, encoded as `QuoteExactOutputSingleParams`
89
+ /// tokenIn The token being swapped in
90
+ /// tokenOut The token being swapped out
91
+ /// fee The fee of the token pool to consider for the pair
92
+ /// amountOut The desired output amount
93
+ /// sqrtPriceLimitX96 The price limit of the pool that cannot be exceeded by the swap
94
+ /// @return amountIn The amount required as the input for the swap in order to receive `amountOut`
95
+ /// @return sqrtPriceX96After The sqrt price of the pool after the swap
96
+ /// @return initializedTicksCrossed The number of initialized ticks that the swap crossed
97
+ /// @return gasEstimate The estimate of the gas that the swap consumes
98
+ function quoteExactOutputSingle(
99
+ QuoteExactOutputSingleParams memory params
100
+ )
101
+ external
102
+ returns (
103
+ uint256 amountIn,
104
+ uint160 sqrtPriceX96After,
105
+ uint32 initializedTicksCrossed,
106
+ uint256 gasEstimate
107
+ );
108
+ }
@@ -0,0 +1,51 @@
1
+ // SPDX-License-Identifier: MIT
2
+ pragma solidity >=0.8;
3
+
4
+ interface IUniswapV3Pool {
5
+ function initialize(uint160 sqrtPriceX96) external;
6
+
7
+ function token0() external view returns (address);
8
+
9
+ function token1() external view returns (address);
10
+
11
+ function slot0()
12
+ external
13
+ view
14
+ returns (
15
+ uint160 sqrtPriceX96,
16
+ int24 tick,
17
+ uint16 observationIndex,
18
+ uint16 observationCardinality,
19
+ uint16 observationCardinalityNext,
20
+ uint8 feeProtocol,
21
+ bool unlocked
22
+ );
23
+ }
24
+
25
+ interface INonfungiblePositionManager {
26
+ struct MintParams {
27
+ address token0;
28
+ address token1;
29
+ uint24 fee;
30
+ int24 tickLower;
31
+ int24 tickUpper;
32
+ uint256 amount0Desired;
33
+ uint256 amount1Desired;
34
+ uint256 amount0Min;
35
+ uint256 amount1Min;
36
+ address recipient;
37
+ uint256 deadline;
38
+ }
39
+
40
+ function mint(
41
+ MintParams calldata params
42
+ )
43
+ external
44
+ payable
45
+ returns (
46
+ uint256 tokenId,
47
+ uint128 liquidity,
48
+ uint256 amount0,
49
+ uint256 amount1
50
+ );
51
+ }