@gooddollar/goodprotocol 2.0.34-beta.2 → 2.0.34-beta.3
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.
- package/artifacts/abis/GenericDistributionHelper.min.json +1 -0
- package/artifacts/abis/INonfungiblePositionManager.min.json +1 -0
- package/artifacts/abis/IUniswapV3Pool.min.json +1 -0
- package/artifacts/abis/UBISchemeV2.min.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/Avatar.dbg.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/Controller.dbg.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/GlobalConstraintInterface.dbg.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/IntVoteInterface.dbg.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/ReputationInterface.dbg.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/SchemeRegistrar.dbg.json +1 -1
- package/artifacts/contracts/IQuoter.sol/IQuoterV2.dbg.json +4 -0
- package/artifacts/contracts/IQuoter.sol/IQuoterV2.json +211 -0
- package/artifacts/contracts/IUniswapV3.sol/INonfungiblePositionManager.dbg.json +4 -0
- package/artifacts/contracts/IUniswapV3.sol/INonfungiblePositionManager.json +102 -0
- package/artifacts/contracts/IUniswapV3.sol/IUniswapV3Pool.dbg.json +4 -0
- package/artifacts/contracts/IUniswapV3.sol/IUniswapV3Pool.json +93 -0
- package/artifacts/contracts/Interfaces.sol/AggregatorV3Interface.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/ERC20.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IAaveIncentivesController.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IAdminWallet.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IDonationStaking.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IERC2917.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IFirstClaimPool.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IGoodDollar.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IGoodStaking.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IHasRouter.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IIdentity.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IIdentityV2.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/ILendingPool.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IMultichainRouter.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/INameService.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IQuoterV2.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/ISwapRouter.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IUBIScheme.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/ProxyAdmin.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/Reserve.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/Staking.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/Uniswap.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/UniswapFactory.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/UniswapPair.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/cERC20.dbg.json +1 -1
- package/artifacts/contracts/MentoInterfaces.sol/IBancorExchangeProvider.dbg.json +1 -1
- package/artifacts/contracts/MentoInterfaces.sol/IBroker.dbg.json +1 -1
- package/artifacts/contracts/MentoInterfaces.sol/IGoodDollarExchangeProvider.dbg.json +1 -1
- package/artifacts/contracts/MentoInterfaces.sol/IGoodDollarExpansionController.dbg.json +1 -1
- package/artifacts/contracts/MentoInterfaces.sol/IMentoReserve.dbg.json +1 -1
- package/artifacts/contracts/MentoInterfaces.sol/ITradingLimits.dbg.json +1 -1
- package/artifacts/contracts/fuseFaucet/Faucet.sol/Faucet.dbg.json +1 -1
- package/artifacts/contracts/fuseFaucet/FuseFaucet.sol/FuseFaucet.dbg.json +1 -1
- package/artifacts/contracts/fuseFaucet/FuseFaucetV2.sol/FuseFaucetV2.dbg.json +1 -1
- package/artifacts/contracts/fuseFaucet/SuperfluidFacuet.sol/SuperfluidFaucet.dbg.json +1 -1
- package/artifacts/contracts/governance/ClaimersDistribution.sol/ClaimersDistribution.dbg.json +1 -1
- package/artifacts/contracts/governance/CompoundVotingMachine.sol/CompoundVotingMachine.dbg.json +1 -1
- package/artifacts/contracts/governance/GReputation.sol/GReputation.dbg.json +1 -1
- package/artifacts/contracts/governance/GoodDollarStaking.sol/GoodDollarStaking.dbg.json +1 -1
- package/artifacts/contracts/governance/GoodDollarStaking.sol/IGovernanceStaking.dbg.json +1 -1
- package/artifacts/contracts/governance/GoodDollarStaking.sol/IStakingUpgrade.dbg.json +1 -1
- package/artifacts/contracts/governance/GoodDollarStaking.sol/RewardsMinter.dbg.json +1 -1
- package/artifacts/contracts/governance/GovernanceStaking.sol/GovernanceStaking.dbg.json +1 -1
- package/artifacts/contracts/governance/MultiBaseGovernanceShareField.sol/MultiBaseGovernanceShareField.dbg.json +1 -1
- package/artifacts/contracts/governance/Reputation.sol/Reputation.dbg.json +1 -1
- package/artifacts/contracts/governance/StakersDistribution.sol/StakersDistribution.dbg.json +1 -1
- package/artifacts/contracts/identity/IdentityV2.sol/IdentityV2.dbg.json +1 -1
- package/artifacts/contracts/identity/IdentityV3.sol/IdentityV3.dbg.json +1 -1
- package/artifacts/contracts/invite/InvitesFuseV2.sol/InvitesFuseV2.dbg.json +1 -1
- package/artifacts/contracts/invite/InvitesV1.sol/InvitesV1.dbg.json +1 -1
- package/artifacts/contracts/invite/InvitesV2.sol/InvitesV2.dbg.json +1 -1
- package/artifacts/contracts/invite/OneTimeReward.sol/OneTimeReward.dbg.json +1 -1
- package/artifacts/contracts/mocks/AaveMock.sol/AaveMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/AaveUSDMockOracle.sol/AaveUSDMockOracle.dbg.json +1 -1
- package/artifacts/contracts/mocks/BatUSDMockOracle.sol/BatUSDMockOracle.dbg.json +1 -1
- package/artifacts/contracts/mocks/CeloDistributionHelperTest.sol/CeloDistributionHelperTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/CeloDistributionHelperTest.sol/CeloDistributionHelperTestHelper.dbg.json +1 -1
- package/artifacts/contracts/mocks/CompUsdMockOracle.sol/CompUSDMockOracle.dbg.json +1 -1
- package/artifacts/contracts/mocks/DAIMock.sol/DAIMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/DaiEthPriceMockOracle.sol/DaiEthPriceMockOracle.dbg.json +1 -1
- package/artifacts/contracts/mocks/DecimalsMock.sol/DecimalsMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/DistributionBridgeMock.sol/DistributionBridgeMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTestHelper.dbg.json +1 -1
- package/artifacts/contracts/mocks/EthUSDMockOracle.sol/EthUSDMockOracle.dbg.json +1 -1
- package/artifacts/contracts/mocks/FeesFormularMock.sol/FeesFormulaMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/GasPriceMockOracle.sol/GasPriceMockOracle.dbg.json +1 -1
- package/artifacts/contracts/mocks/GoodCompoundStakingTest.sol/GoodCompoundStakingTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/GoodDollarStakingMock.sol/GoodDollarStakingMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/GoodFundManagerTest.sol/GoodFundManagerTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/IdentityMock.sol/IdentityMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/IncentiveControllerMock.sol/IncentiveControllerMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/LendingPoolMock.sol/LendingPoolMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/MultichainRouterMock.sol/IWrapper.dbg.json +1 -1
- package/artifacts/contracts/mocks/MultichainRouterMock.sol/MultichainRouterMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/OverMintTester.sol/IGoodDollarStakingTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/OverMintTester.sol/OverMintTester.dbg.json +1 -1
- package/artifacts/contracts/mocks/OverMintTesterRegularStake.sol/OverMintTesterRegularStake.dbg.json +1 -1
- package/artifacts/contracts/mocks/PayableMock.sol/PayableMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/SixteenDecimalsTokenMock.sol/SixteenDecimalsTokenMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/StakingMockFixedAPY.sol/StakingMockFixedAPY.dbg.json +1 -1
- package/artifacts/contracts/mocks/SwapHelperTest.sol/SwapHelperTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/TwentyDecimalsTokenMock.sol/TwentyDecimalsTokenMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock2.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock3.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock4.dbg.json +1 -1
- package/artifacts/contracts/mocks/UsdcMock.sol/USDCMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cBATMock.sol/cBATMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cDAILowWorthMock.sol/cDAILowWorthMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cDAIMock.sol/cDAIMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cDAINonMintableMock.sol/cDAINonMintableMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cDecimalsMock.sol/cDecimalsMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cSDTMock.sol/cSDTMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cUSDCMock.sol/cUSDCMock.dbg.json +1 -1
- package/artifacts/contracts/reserve/CeloDistributionHelper.sol/CeloDistributionHelper.dbg.json +1 -1
- package/artifacts/contracts/reserve/DistributionHelper.sol/DistributionHelper.dbg.json +1 -1
- package/artifacts/contracts/reserve/ExchangeHelper.sol/ExchangeHelper.dbg.json +1 -1
- package/artifacts/contracts/reserve/GenericDistributionHelper.sol/GenericDistributionHelper.dbg.json +4 -0
- package/artifacts/contracts/reserve/GenericDistributionHelper.sol/GenericDistributionHelper.json +931 -0
- package/artifacts/contracts/reserve/GoodMarketMaker.sol/GoodMarketMaker.dbg.json +1 -1
- package/artifacts/contracts/reserve/GoodReserveCDai.sol/ContributionCalc.dbg.json +1 -1
- package/artifacts/contracts/reserve/GoodReserveCDai.sol/GoodReserveCDai.dbg.json +1 -1
- package/artifacts/contracts/staking/BaseShareField.sol/BaseShareField.dbg.json +1 -1
- package/artifacts/contracts/staking/BaseShareFieldV2.sol/BaseShareFieldV2.dbg.json +1 -1
- package/artifacts/contracts/staking/DonationsStaking.sol/DonationsStaking.dbg.json +1 -1
- package/artifacts/contracts/staking/FuseStakingV3.sol/FuseStakingV3.dbg.json +1 -1
- package/artifacts/contracts/staking/FuseStakingV3.sol/IConsensus.dbg.json +1 -1
- package/artifacts/contracts/staking/FuseStakingV3.sol/PegSwap.dbg.json +1 -1
- package/artifacts/contracts/staking/GoodFundManager.sol/GoodFundManager.dbg.json +1 -1
- package/artifacts/contracts/staking/SimpleStaking.sol/SimpleStaking.dbg.json +1 -1
- package/artifacts/contracts/staking/SimpleStakingV2.sol/SimpleStakingV2.dbg.json +1 -1
- package/artifacts/contracts/staking/UniswapV2SwapHelper.sol/UniswapV2SwapHelper.dbg.json +1 -1
- package/artifacts/contracts/staking/aave/AaveStakingFactory.sol/AaveStakingFactory.dbg.json +1 -1
- package/artifacts/contracts/staking/aave/GoodAaveStaking.sol/GoodAaveStaking.dbg.json +1 -1
- package/artifacts/contracts/staking/aave/GoodAaveStakingV2.sol/GoodAaveStakingV2.dbg.json +1 -1
- package/artifacts/contracts/staking/compound/CompoundStakingFactory.sol/CompoundStakingFactory.dbg.json +1 -1
- package/artifacts/contracts/staking/compound/GoodCompoundStaking.sol/GoodCompoundStaking.dbg.json +1 -1
- package/artifacts/contracts/staking/compound/GoodCompoundStakingV2.sol/GoodCompoundStakingV2.dbg.json +1 -1
- package/artifacts/contracts/staking/utils/Math64X64.sol/Math64x64.dbg.json +1 -1
- package/artifacts/contracts/staking/utils/StakingRewardsFixedAPY.sol/StakingRewardsFixedAPY.dbg.json +1 -1
- package/artifacts/contracts/token/ERC20PresetMinterPauserUpgradeable.sol/ERC20PresetMinterPauserUpgradeable.dbg.json +1 -1
- package/artifacts/contracts/token/ERC677.sol/ERC677.dbg.json +1 -1
- package/artifacts/contracts/token/ERC677.sol/ERC677Receiver.dbg.json +1 -1
- package/artifacts/contracts/token/GoodDollar.sol/GoodDollar.dbg.json +1 -1
- package/artifacts/contracts/token/GoodDollar2.sol/GoodDollar2.dbg.json +1 -1
- package/artifacts/contracts/token/IFeesFormula.sol/IFeesFormula.dbg.json +1 -1
- package/artifacts/contracts/token/MultichainFeeFormula.sol/MultichainFeeFormula.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/ERC20Permit.sol/ERC20Permit.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/ERC20Permit.sol/SelfApprove.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/ISuperGoodDollar.sol/IGoodDollarCustom.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/ISuperGoodDollar.sol/ISuperGoodDollar.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/ISuperToken.sol/ISuperToken.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/SuperGoodDollar.sol/SuperGoodDollar.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/SuperToken.sol/SuperToken.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/SuperfluidToken.sol/SuperfluidToken.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/UUPSProxiable.sol/UUPSProxiable.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/UUPSProxy.sol/Proxy.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/UUPSProxy.sol/UUPSProxy.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/UUPSProxy.sol/UUPSUtils.dbg.json +1 -1
- package/artifacts/contracts/ubi/UBIScheme.sol/UBIScheme.dbg.json +1 -1
- package/artifacts/contracts/ubi/UBISchemeV2.sol/UBISchemeV2.dbg.json +1 -1
- package/artifacts/contracts/ubi/UBISchemeV2.sol/UBISchemeV2.json +7 -2
- package/artifacts/contracts/utils/AdminWallet.sol/AdminWallet.dbg.json +1 -1
- package/artifacts/contracts/utils/AdminWalletFuse.sol/AdminWalletFuse.dbg.json +1 -1
- package/artifacts/contracts/utils/BancorFormula.sol/BancorFormula.dbg.json +1 -1
- package/artifacts/contracts/utils/BulkProof.sol/BulkProof.dbg.json +1 -1
- package/artifacts/contracts/utils/BulkWhitelist.sol/BulkWhitelist.dbg.json +1 -1
- package/artifacts/contracts/utils/BuyAndBridgeHelper.sol/BuyAndBridgeHelper.dbg.json +1 -1
- package/artifacts/contracts/utils/BuyFromReserveHelper.sol/BuyFromReserveHelper.dbg.json +1 -1
- package/artifacts/contracts/utils/BuyGDClone.sol/BuyGDClone.dbg.json +1 -1
- package/artifacts/contracts/utils/BuyGDClone.sol/BuyGDCloneFactory.dbg.json +1 -1
- package/artifacts/contracts/utils/BuyGDClone.sol/DonateGDClone.dbg.json +1 -1
- package/artifacts/contracts/utils/DAOContract.sol/DAOContract.dbg.json +1 -1
- package/artifacts/contracts/utils/DAOUpgradeableContract.sol/DAOUpgradeableContract.dbg.json +1 -1
- package/artifacts/contracts/utils/DSMath.sol/DSMath.dbg.json +1 -1
- package/artifacts/contracts/utils/DataTypes.sol/DataTypes.dbg.json +1 -1
- package/artifacts/contracts/utils/FuseOldBridgeKill.sol/EternalStorage.dbg.json +1 -1
- package/artifacts/contracts/utils/FuseOldBridgeKill.sol/FuseOldBridgeKill.dbg.json +1 -1
- package/artifacts/contracts/utils/FuseOldBridgeKill.sol/IUpgradeabilityOwnerStorage.dbg.json +1 -1
- package/artifacts/contracts/utils/FuseOldBridgeKill.sol/Initializable.dbg.json +1 -1
- package/artifacts/contracts/utils/FuseOldBridgeKill.sol/Ownable.dbg.json +1 -1
- package/artifacts/contracts/utils/FuseOldBridgeKill.sol/Upgradeable.dbg.json +1 -1
- package/artifacts/contracts/utils/GDFaucet.sol/GDFaucet.dbg.json +1 -1
- package/artifacts/contracts/utils/GoodDollarMintBurnWrapper.sol/GoodDollarMintBurnWrapper.dbg.json +1 -1
- package/artifacts/contracts/utils/GoodDollarMintBurnWrapper.sol/IRouter.dbg.json +1 -1
- package/artifacts/contracts/utils/GoodDollarMintBurnWrapper.sol/PausableControl.dbg.json +1 -1
- package/artifacts/contracts/utils/GoodDollarMintBurnWrapper.sol/TokenOperation.dbg.json +1 -1
- package/artifacts/contracts/utils/IdentityFix.sol/IdentityFix.dbg.json +1 -1
- package/artifacts/contracts/utils/LastauthReduction.sol/LastauthReduction.dbg.json +1 -1
- package/artifacts/contracts/utils/MultiCall.sol/Multicall.dbg.json +1 -1
- package/artifacts/contracts/utils/MultichainBridgeHelper.sol/MultichainBridgeHelper.dbg.json +1 -1
- package/artifacts/contracts/utils/NameService.sol/NameService.dbg.json +1 -1
- package/artifacts/contracts/utils/OneTimePayments.sol/OneTimePayments.dbg.json +1 -1
- package/artifacts/contracts/utils/OneTimePaymentsV2.sol/OneTimePaymentsV2.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtoclUpgradeV4Mento.sol/MentoExchange.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtoclUpgradeV4Mento.sol/ProtocolUpgradeV4Mento.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtocolUpgrade.sol/OldMarketMaker.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtocolUpgrade.sol/ProtocolUpgrade.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtocolUpgradeFuse.sol/ProtocolUpgradeFuse.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtocolUpgradeFuseRecover.sol/ProtocolUpgradeFuseRecover.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtocolUpgradeRecover.sol/ProtocolUpgradeRecover.dbg.json +1 -1
- package/artifacts/contracts/utils/ProxyFactory1967.sol/ERC1967Proxy.dbg.json +1 -1
- package/artifacts/contracts/utils/ProxyFactory1967.sol/ERC1967Proxy.json +2 -2
- package/artifacts/contracts/utils/ProxyFactory1967.sol/ProxyFactory1967.dbg.json +1 -1
- package/artifacts/contracts/utils/ProxyFactory1967.sol/ProxyFactory1967.json +2 -2
- package/artifacts/contracts/utils/ReputationTestHelper.sol/ReputationTestHelper.dbg.json +1 -1
- package/artifacts/contracts/utils/ReserveRestore.sol/ReserveRestore.dbg.json +1 -1
- package/contracts/IQuoter.sol +108 -0
- package/contracts/IUniswapV3.sol +51 -0
- package/contracts/reserve/GenericDistributionHelper.sol +319 -0
- package/contracts/ubi/UBISchemeV2.sol +8 -4
- package/contracts/utils/ProxyFactory1967.sol +16 -18
- package/dist/artifacts/contracts/identity/IdentityV2.sol/IdentityV2.json +2 -2
- package/dist/artifacts/contracts/token/superfluid/SuperGoodDollar.sol/SuperGoodDollar.json +179 -186
- package/dist/artifacts/contracts/token/superfluid/UUPSProxy.sol/UUPSProxy.json +2 -2
- package/dist/artifacts/contracts/utils/ProxyFactory1967.sol/ERC1967Proxy.json +2 -2
- package/dist/test-sdk/deploySuperGoodDollar.d.ts +1 -1
- package/dist/test-sdk/deploySuperGoodDollar.js +4 -8
- package/dist/test-sdk/index.js +1 -5
- package/hardhat.config.ts +14 -6
- package/package.json +1 -1
- package/releases/deploy-settings.json +15 -2
- package/releases/deployment.json +66 -45
- package/releases/olddao.json +1 -1
- package/scripts/fv.ts +19 -1
- package/scripts/multichain-deploy/0_proxyFactory-deploy.ts +4 -3
- package/scripts/multichain-deploy/1_basicdao-deploy.ts +18 -9
- package/scripts/multichain-deploy/4_ubi-deploy.ts +1 -1
- package/scripts/multichain-deploy/8_disthelper-deploy.ts +152 -0
- package/scripts/multichain-deploy/createUniswapTestPools.ts +163 -0
- package/scripts/multichain-deploy/fulldeploy.sh +17 -17
- package/scripts/multichain-deploy/helpers.ts +76 -6
- package/scripts/multichain-deploy/verify.ts +41 -0
- package/scripts/proposals/gip-25-xdc-upgrade.ts +438 -0
- package/test/helpers.ts +1 -1
- package/test/ubi/UBISchemeV2.test.ts +35 -108
- package/types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.ts +108 -0
- package/types/@openzeppelin/contracts/proxy/ERC1967/index.ts +1 -0
- package/types/@uniswap/index.ts +2 -0
- package/types/@uniswap/v2-periphery/contracts/index.ts +5 -0
- package/types/@uniswap/v2-periphery/contracts/interfaces/IWETH.ts +159 -0
- package/types/@uniswap/v2-periphery/contracts/interfaces/index.ts +4 -0
- package/types/@uniswap/v2-periphery/index.ts +5 -0
- package/types/contracts/IQuoter.sol/IQuoterV2.ts +297 -0
- package/types/contracts/IQuoter.sol/index.ts +4 -0
- package/types/contracts/IUniswapV3.sol/INonfungiblePositionManager.ts +151 -0
- package/types/contracts/IUniswapV3.sol/IUniswapV3Factory.ts +155 -0
- package/types/contracts/IUniswapV3.sol/IUniswapV3Pool.ts +179 -0
- package/types/contracts/IUniswapV3.sol/index.ts +5 -0
- package/types/contracts/Interfaces.sol/AToken.ts +81 -0
- package/types/contracts/Interfaces.sol/IAaveIncentivesControllerV3.ts +156 -0
- package/types/contracts/Interfaces.sol/ILendingPoolV3.ts +254 -0
- package/types/contracts/fuseFaucet/SuperfluidBaseFacuet.sol/EthDistributor.ts +648 -0
- package/types/contracts/fuseFaucet/SuperfluidBaseFacuet.sol/EthDistributorUpgradeable.ts +843 -0
- package/types/contracts/fuseFaucet/SuperfluidBaseFacuet.sol/index.ts +4 -0
- package/types/contracts/index.ts +4 -0
- package/types/contracts/mocks/CeloDistributionHelperTest.sol/DistributionHelperTestHelper.ts +1252 -0
- package/types/contracts/reserve/GenericDistributionHelper copy.sol/GenericDistributionHelper.ts +1247 -0
- package/types/contracts/reserve/GenericDistributionHelper copy.sol/index.ts +4 -0
- package/types/contracts/reserve/GenericDistributionHelper.ts +1304 -0
- package/types/contracts/reserve/GoodReserveADai.ts +2212 -0
- package/types/contracts/reserve/index.ts +1 -0
- package/types/contracts/staking/aave/GoodAave3StakingV2.sol/GoodAaveStakingV2.ts +1808 -0
- package/types/contracts/staking/aave/GoodAave3StakingV2.sol/index.ts +4 -0
- package/types/contracts/token/GoodDollar18.ts +1871 -0
- package/types/contracts/ubi/UBISchemeV2.ts +14 -3
- package/types/contracts/utils/BuyGDClone.sol/IQuoterV2.ts +184 -0
- package/types/contracts/utils/BuyGDClone.sol/ISwapRouter.ts +306 -0
- package/types/contracts/utils/FuseOldBridgeKill.sol/BasicAMBErc677ToErc677.ts +108 -0
- package/types/contracts/utils/ProtocolUpgradeV4Mento.sol/MentoExchange.ts +81 -0
- package/types/contracts/utils/ProtocolUpgradeV4Mento.sol/ProtocolUpgradeV4Mento.ts +161 -0
- package/types/contracts/utils/ProtocolUpgradeV4Mento.sol/index.ts +5 -0
- package/types/contracts/utils/ReserveRestore.sol/MentoExchange.ts +81 -0
- package/types/contracts/utils/ReserveRestore.sol/ReserveRestore.ts +112 -0
- package/types/contracts/utils/ReserveRestore.sol/index.ts +5 -0
- package/types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.ts +146 -0
- package/types/factories/@openzeppelin/contracts/proxy/ERC1967/index.ts +1 -0
- package/types/factories/@uniswap/index.ts +1 -0
- package/types/factories/@uniswap/v2-periphery/contracts/index.ts +4 -0
- package/types/factories/@uniswap/v2-periphery/contracts/interfaces/IWETH__factory.ts +67 -0
- package/types/factories/@uniswap/v2-periphery/contracts/interfaces/index.ts +4 -0
- package/types/factories/@uniswap/v2-periphery/index.ts +4 -0
- package/types/factories/contracts/IQuoter.sol/IQuoterV2__factory.ts +226 -0
- package/types/factories/contracts/IQuoter.sol/index.ts +4 -0
- package/types/factories/contracts/IUniswapV3.sol/INonfungiblePositionManager__factory.ts +121 -0
- package/types/factories/contracts/IUniswapV3.sol/IUniswapV3Factory__factory.ts +84 -0
- package/types/factories/contracts/IUniswapV3.sol/IUniswapV3Pool__factory.ts +108 -0
- package/types/factories/contracts/IUniswapV3.sol/index.ts +5 -0
- package/types/factories/contracts/Interfaces.sol/AToken__factory.ts +36 -0
- package/types/factories/contracts/Interfaces.sol/IAaveIncentivesControllerV3__factory.ts +88 -0
- package/types/factories/contracts/Interfaces.sol/ILendingPoolV3__factory.ts +186 -0
- package/types/factories/contracts/fuseFaucet/SuperfluidBaseFacuet.sol/EthDistributorUpgradeable__factory.ts +572 -0
- package/types/factories/contracts/fuseFaucet/SuperfluidBaseFacuet.sol/EthDistributor__factory.ts +482 -0
- package/types/factories/contracts/fuseFaucet/SuperfluidBaseFacuet.sol/index.ts +4 -0
- package/types/factories/contracts/index.ts +2 -0
- package/types/factories/contracts/mocks/CeloDistributionHelperTest.sol/DistributionHelperTestHelper__factory.ts +929 -0
- package/types/factories/contracts/reserve/GenericDistributionHelper copy.sol/GenericDistributionHelper__factory.ts +935 -0
- package/types/factories/contracts/reserve/GenericDistributionHelper copy.sol/index.ts +4 -0
- package/types/factories/contracts/reserve/GenericDistributionHelper__factory.ts +987 -0
- package/types/factories/contracts/reserve/GoodReserveADai__factory.ts +1502 -0
- package/types/factories/contracts/reserve/index.ts +1 -0
- package/types/factories/contracts/staking/aave/GoodAave3StakingV2.sol/GoodAaveStakingV2__factory.ts +1240 -0
- package/types/factories/contracts/staking/aave/GoodAave3StakingV2.sol/index.ts +4 -0
- package/types/factories/contracts/token/GoodDollar18__factory.ts +1257 -0
- package/types/factories/contracts/ubi/UBISchemeV2__factory.ts +6 -1
- package/types/factories/contracts/utils/BuyGDClone.sol/IQuoterV2__factory.ts +126 -0
- package/types/factories/contracts/utils/BuyGDClone.sol/ISwapRouter__factory.ts +220 -0
- package/types/factories/contracts/utils/FuseOldBridgeKill.sol/BasicAMBErc677ToErc677__factory.ts +86 -0
- package/types/factories/contracts/utils/ProtocolUpgradeV4Mento.sol/MentoExchange__factory.ts +39 -0
- package/types/factories/contracts/utils/ProtocolUpgradeV4Mento.sol/ProtocolUpgradeV4Mento__factory.ts +152 -0
- package/types/factories/contracts/utils/ProtocolUpgradeV4Mento.sol/index.ts +5 -0
- package/types/factories/contracts/utils/ProxyFactory1967.sol/ERC1967Proxy__factory.ts +1 -1
- package/types/factories/contracts/utils/ProxyFactory1967.sol/ProxyFactory1967__factory.ts +1 -1
- package/types/factories/contracts/utils/ReserveRestore.sol/MentoExchange__factory.ts +39 -0
- package/types/factories/contracts/utils/ReserveRestore.sol/ReserveRestore__factory.ts +95 -0
- package/types/factories/contracts/utils/ReserveRestore.sol/index.ts +5 -0
- package/types/hardhat.d.ts +54 -0
- package/types/index.ts +10 -2
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BigNumberish,
|
|
8
|
+
BytesLike,
|
|
9
|
+
CallOverrides,
|
|
10
|
+
ContractTransaction,
|
|
11
|
+
Overrides,
|
|
12
|
+
PopulatedTransaction,
|
|
13
|
+
Signer,
|
|
14
|
+
utils,
|
|
15
|
+
} from "ethers";
|
|
16
|
+
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
17
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
18
|
+
import type {
|
|
19
|
+
TypedEventFilter,
|
|
20
|
+
TypedEvent,
|
|
21
|
+
TypedListener,
|
|
22
|
+
OnEvent,
|
|
23
|
+
} from "../../common";
|
|
24
|
+
|
|
25
|
+
export interface IUniswapV3PoolInterface extends utils.Interface {
|
|
26
|
+
functions: {
|
|
27
|
+
"initialize(uint160)": FunctionFragment;
|
|
28
|
+
"slot0()": FunctionFragment;
|
|
29
|
+
"token0()": FunctionFragment;
|
|
30
|
+
"token1()": FunctionFragment;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
getFunction(
|
|
34
|
+
nameOrSignatureOrTopic: "initialize" | "slot0" | "token0" | "token1"
|
|
35
|
+
): FunctionFragment;
|
|
36
|
+
|
|
37
|
+
encodeFunctionData(
|
|
38
|
+
functionFragment: "initialize",
|
|
39
|
+
values: [BigNumberish]
|
|
40
|
+
): string;
|
|
41
|
+
encodeFunctionData(functionFragment: "slot0", values?: undefined): string;
|
|
42
|
+
encodeFunctionData(functionFragment: "token0", values?: undefined): string;
|
|
43
|
+
encodeFunctionData(functionFragment: "token1", values?: undefined): string;
|
|
44
|
+
|
|
45
|
+
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
46
|
+
decodeFunctionResult(functionFragment: "slot0", data: BytesLike): Result;
|
|
47
|
+
decodeFunctionResult(functionFragment: "token0", data: BytesLike): Result;
|
|
48
|
+
decodeFunctionResult(functionFragment: "token1", data: BytesLike): Result;
|
|
49
|
+
|
|
50
|
+
events: {};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface IUniswapV3Pool extends BaseContract {
|
|
54
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
55
|
+
attach(addressOrName: string): this;
|
|
56
|
+
deployed(): Promise<this>;
|
|
57
|
+
|
|
58
|
+
interface: IUniswapV3PoolInterface;
|
|
59
|
+
|
|
60
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
61
|
+
event: TypedEventFilter<TEvent>,
|
|
62
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
63
|
+
toBlock?: string | number | undefined
|
|
64
|
+
): Promise<Array<TEvent>>;
|
|
65
|
+
|
|
66
|
+
listeners<TEvent extends TypedEvent>(
|
|
67
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
68
|
+
): Array<TypedListener<TEvent>>;
|
|
69
|
+
listeners(eventName?: string): Array<Listener>;
|
|
70
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
71
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
72
|
+
): this;
|
|
73
|
+
removeAllListeners(eventName?: string): this;
|
|
74
|
+
off: OnEvent<this>;
|
|
75
|
+
on: OnEvent<this>;
|
|
76
|
+
once: OnEvent<this>;
|
|
77
|
+
removeListener: OnEvent<this>;
|
|
78
|
+
|
|
79
|
+
functions: {
|
|
80
|
+
initialize(
|
|
81
|
+
sqrtPriceX96: BigNumberish,
|
|
82
|
+
overrides?: Overrides & { from?: string }
|
|
83
|
+
): Promise<ContractTransaction>;
|
|
84
|
+
|
|
85
|
+
slot0(
|
|
86
|
+
overrides?: CallOverrides
|
|
87
|
+
): Promise<
|
|
88
|
+
[BigNumber, number, number, number, number, number, boolean] & {
|
|
89
|
+
sqrtPriceX96: BigNumber;
|
|
90
|
+
tick: number;
|
|
91
|
+
observationIndex: number;
|
|
92
|
+
observationCardinality: number;
|
|
93
|
+
observationCardinalityNext: number;
|
|
94
|
+
feeProtocol: number;
|
|
95
|
+
unlocked: boolean;
|
|
96
|
+
}
|
|
97
|
+
>;
|
|
98
|
+
|
|
99
|
+
token0(overrides?: CallOverrides): Promise<[string]>;
|
|
100
|
+
|
|
101
|
+
token1(overrides?: CallOverrides): Promise<[string]>;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
initialize(
|
|
105
|
+
sqrtPriceX96: BigNumberish,
|
|
106
|
+
overrides?: Overrides & { from?: string }
|
|
107
|
+
): Promise<ContractTransaction>;
|
|
108
|
+
|
|
109
|
+
slot0(
|
|
110
|
+
overrides?: CallOverrides
|
|
111
|
+
): Promise<
|
|
112
|
+
[BigNumber, number, number, number, number, number, boolean] & {
|
|
113
|
+
sqrtPriceX96: BigNumber;
|
|
114
|
+
tick: number;
|
|
115
|
+
observationIndex: number;
|
|
116
|
+
observationCardinality: number;
|
|
117
|
+
observationCardinalityNext: number;
|
|
118
|
+
feeProtocol: number;
|
|
119
|
+
unlocked: boolean;
|
|
120
|
+
}
|
|
121
|
+
>;
|
|
122
|
+
|
|
123
|
+
token0(overrides?: CallOverrides): Promise<string>;
|
|
124
|
+
|
|
125
|
+
token1(overrides?: CallOverrides): Promise<string>;
|
|
126
|
+
|
|
127
|
+
callStatic: {
|
|
128
|
+
initialize(
|
|
129
|
+
sqrtPriceX96: BigNumberish,
|
|
130
|
+
overrides?: CallOverrides
|
|
131
|
+
): Promise<void>;
|
|
132
|
+
|
|
133
|
+
slot0(
|
|
134
|
+
overrides?: CallOverrides
|
|
135
|
+
): Promise<
|
|
136
|
+
[BigNumber, number, number, number, number, number, boolean] & {
|
|
137
|
+
sqrtPriceX96: BigNumber;
|
|
138
|
+
tick: number;
|
|
139
|
+
observationIndex: number;
|
|
140
|
+
observationCardinality: number;
|
|
141
|
+
observationCardinalityNext: number;
|
|
142
|
+
feeProtocol: number;
|
|
143
|
+
unlocked: boolean;
|
|
144
|
+
}
|
|
145
|
+
>;
|
|
146
|
+
|
|
147
|
+
token0(overrides?: CallOverrides): Promise<string>;
|
|
148
|
+
|
|
149
|
+
token1(overrides?: CallOverrides): Promise<string>;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
filters: {};
|
|
153
|
+
|
|
154
|
+
estimateGas: {
|
|
155
|
+
initialize(
|
|
156
|
+
sqrtPriceX96: BigNumberish,
|
|
157
|
+
overrides?: Overrides & { from?: string }
|
|
158
|
+
): Promise<BigNumber>;
|
|
159
|
+
|
|
160
|
+
slot0(overrides?: CallOverrides): Promise<BigNumber>;
|
|
161
|
+
|
|
162
|
+
token0(overrides?: CallOverrides): Promise<BigNumber>;
|
|
163
|
+
|
|
164
|
+
token1(overrides?: CallOverrides): Promise<BigNumber>;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
populateTransaction: {
|
|
168
|
+
initialize(
|
|
169
|
+
sqrtPriceX96: BigNumberish,
|
|
170
|
+
overrides?: Overrides & { from?: string }
|
|
171
|
+
): Promise<PopulatedTransaction>;
|
|
172
|
+
|
|
173
|
+
slot0(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
174
|
+
|
|
175
|
+
token0(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
176
|
+
|
|
177
|
+
token1(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
178
|
+
};
|
|
179
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BytesLike,
|
|
8
|
+
CallOverrides,
|
|
9
|
+
PopulatedTransaction,
|
|
10
|
+
Signer,
|
|
11
|
+
utils,
|
|
12
|
+
} from "ethers";
|
|
13
|
+
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
14
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
15
|
+
import type {
|
|
16
|
+
TypedEventFilter,
|
|
17
|
+
TypedEvent,
|
|
18
|
+
TypedListener,
|
|
19
|
+
OnEvent,
|
|
20
|
+
} from "../../common";
|
|
21
|
+
|
|
22
|
+
export interface ATokenInterface extends utils.Interface {
|
|
23
|
+
functions: {
|
|
24
|
+
"POOL()": FunctionFragment;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
getFunction(nameOrSignatureOrTopic: "POOL"): FunctionFragment;
|
|
28
|
+
|
|
29
|
+
encodeFunctionData(functionFragment: "POOL", values?: undefined): string;
|
|
30
|
+
|
|
31
|
+
decodeFunctionResult(functionFragment: "POOL", data: BytesLike): Result;
|
|
32
|
+
|
|
33
|
+
events: {};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface AToken extends BaseContract {
|
|
37
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
38
|
+
attach(addressOrName: string): this;
|
|
39
|
+
deployed(): Promise<this>;
|
|
40
|
+
|
|
41
|
+
interface: ATokenInterface;
|
|
42
|
+
|
|
43
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
44
|
+
event: TypedEventFilter<TEvent>,
|
|
45
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
46
|
+
toBlock?: string | number | undefined
|
|
47
|
+
): Promise<Array<TEvent>>;
|
|
48
|
+
|
|
49
|
+
listeners<TEvent extends TypedEvent>(
|
|
50
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
51
|
+
): Array<TypedListener<TEvent>>;
|
|
52
|
+
listeners(eventName?: string): Array<Listener>;
|
|
53
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
54
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
55
|
+
): this;
|
|
56
|
+
removeAllListeners(eventName?: string): this;
|
|
57
|
+
off: OnEvent<this>;
|
|
58
|
+
on: OnEvent<this>;
|
|
59
|
+
once: OnEvent<this>;
|
|
60
|
+
removeListener: OnEvent<this>;
|
|
61
|
+
|
|
62
|
+
functions: {
|
|
63
|
+
POOL(overrides?: CallOverrides): Promise<[string]>;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
POOL(overrides?: CallOverrides): Promise<string>;
|
|
67
|
+
|
|
68
|
+
callStatic: {
|
|
69
|
+
POOL(overrides?: CallOverrides): Promise<string>;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
filters: {};
|
|
73
|
+
|
|
74
|
+
estimateGas: {
|
|
75
|
+
POOL(overrides?: CallOverrides): Promise<BigNumber>;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
populateTransaction: {
|
|
79
|
+
POOL(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BytesLike,
|
|
8
|
+
CallOverrides,
|
|
9
|
+
ContractTransaction,
|
|
10
|
+
Overrides,
|
|
11
|
+
PopulatedTransaction,
|
|
12
|
+
Signer,
|
|
13
|
+
utils,
|
|
14
|
+
} from "ethers";
|
|
15
|
+
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
16
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
17
|
+
import type {
|
|
18
|
+
TypedEventFilter,
|
|
19
|
+
TypedEvent,
|
|
20
|
+
TypedListener,
|
|
21
|
+
OnEvent,
|
|
22
|
+
} from "../../common";
|
|
23
|
+
|
|
24
|
+
export interface IAaveIncentivesControllerV3Interface extends utils.Interface {
|
|
25
|
+
functions: {
|
|
26
|
+
"claimAllRewards(address[],address)": FunctionFragment;
|
|
27
|
+
"getAllUserRewards(address[],address)": FunctionFragment;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
getFunction(
|
|
31
|
+
nameOrSignatureOrTopic: "claimAllRewards" | "getAllUserRewards"
|
|
32
|
+
): FunctionFragment;
|
|
33
|
+
|
|
34
|
+
encodeFunctionData(
|
|
35
|
+
functionFragment: "claimAllRewards",
|
|
36
|
+
values: [string[], string]
|
|
37
|
+
): string;
|
|
38
|
+
encodeFunctionData(
|
|
39
|
+
functionFragment: "getAllUserRewards",
|
|
40
|
+
values: [string[], string]
|
|
41
|
+
): string;
|
|
42
|
+
|
|
43
|
+
decodeFunctionResult(
|
|
44
|
+
functionFragment: "claimAllRewards",
|
|
45
|
+
data: BytesLike
|
|
46
|
+
): Result;
|
|
47
|
+
decodeFunctionResult(
|
|
48
|
+
functionFragment: "getAllUserRewards",
|
|
49
|
+
data: BytesLike
|
|
50
|
+
): Result;
|
|
51
|
+
|
|
52
|
+
events: {};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface IAaveIncentivesControllerV3 extends BaseContract {
|
|
56
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
57
|
+
attach(addressOrName: string): this;
|
|
58
|
+
deployed(): Promise<this>;
|
|
59
|
+
|
|
60
|
+
interface: IAaveIncentivesControllerV3Interface;
|
|
61
|
+
|
|
62
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
63
|
+
event: TypedEventFilter<TEvent>,
|
|
64
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
65
|
+
toBlock?: string | number | undefined
|
|
66
|
+
): Promise<Array<TEvent>>;
|
|
67
|
+
|
|
68
|
+
listeners<TEvent extends TypedEvent>(
|
|
69
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
70
|
+
): Array<TypedListener<TEvent>>;
|
|
71
|
+
listeners(eventName?: string): Array<Listener>;
|
|
72
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
73
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
74
|
+
): this;
|
|
75
|
+
removeAllListeners(eventName?: string): this;
|
|
76
|
+
off: OnEvent<this>;
|
|
77
|
+
on: OnEvent<this>;
|
|
78
|
+
once: OnEvent<this>;
|
|
79
|
+
removeListener: OnEvent<this>;
|
|
80
|
+
|
|
81
|
+
functions: {
|
|
82
|
+
claimAllRewards(
|
|
83
|
+
assets: string[],
|
|
84
|
+
to: string,
|
|
85
|
+
overrides?: Overrides & { from?: string }
|
|
86
|
+
): Promise<ContractTransaction>;
|
|
87
|
+
|
|
88
|
+
getAllUserRewards(
|
|
89
|
+
assets: string[],
|
|
90
|
+
user: string,
|
|
91
|
+
overrides?: CallOverrides
|
|
92
|
+
): Promise<
|
|
93
|
+
[string[], BigNumber[]] & { rewards: string[]; amounts: BigNumber[] }
|
|
94
|
+
>;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
claimAllRewards(
|
|
98
|
+
assets: string[],
|
|
99
|
+
to: string,
|
|
100
|
+
overrides?: Overrides & { from?: string }
|
|
101
|
+
): Promise<ContractTransaction>;
|
|
102
|
+
|
|
103
|
+
getAllUserRewards(
|
|
104
|
+
assets: string[],
|
|
105
|
+
user: string,
|
|
106
|
+
overrides?: CallOverrides
|
|
107
|
+
): Promise<
|
|
108
|
+
[string[], BigNumber[]] & { rewards: string[]; amounts: BigNumber[] }
|
|
109
|
+
>;
|
|
110
|
+
|
|
111
|
+
callStatic: {
|
|
112
|
+
claimAllRewards(
|
|
113
|
+
assets: string[],
|
|
114
|
+
to: string,
|
|
115
|
+
overrides?: CallOverrides
|
|
116
|
+
): Promise<[string[], BigNumber[]]>;
|
|
117
|
+
|
|
118
|
+
getAllUserRewards(
|
|
119
|
+
assets: string[],
|
|
120
|
+
user: string,
|
|
121
|
+
overrides?: CallOverrides
|
|
122
|
+
): Promise<
|
|
123
|
+
[string[], BigNumber[]] & { rewards: string[]; amounts: BigNumber[] }
|
|
124
|
+
>;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
filters: {};
|
|
128
|
+
|
|
129
|
+
estimateGas: {
|
|
130
|
+
claimAllRewards(
|
|
131
|
+
assets: string[],
|
|
132
|
+
to: string,
|
|
133
|
+
overrides?: Overrides & { from?: string }
|
|
134
|
+
): Promise<BigNumber>;
|
|
135
|
+
|
|
136
|
+
getAllUserRewards(
|
|
137
|
+
assets: string[],
|
|
138
|
+
user: string,
|
|
139
|
+
overrides?: CallOverrides
|
|
140
|
+
): Promise<BigNumber>;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
populateTransaction: {
|
|
144
|
+
claimAllRewards(
|
|
145
|
+
assets: string[],
|
|
146
|
+
to: string,
|
|
147
|
+
overrides?: Overrides & { from?: string }
|
|
148
|
+
): Promise<PopulatedTransaction>;
|
|
149
|
+
|
|
150
|
+
getAllUserRewards(
|
|
151
|
+
assets: string[],
|
|
152
|
+
user: string,
|
|
153
|
+
overrides?: CallOverrides
|
|
154
|
+
): Promise<PopulatedTransaction>;
|
|
155
|
+
};
|
|
156
|
+
}
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BigNumberish,
|
|
8
|
+
BytesLike,
|
|
9
|
+
CallOverrides,
|
|
10
|
+
ContractTransaction,
|
|
11
|
+
Overrides,
|
|
12
|
+
PopulatedTransaction,
|
|
13
|
+
Signer,
|
|
14
|
+
utils,
|
|
15
|
+
} from "ethers";
|
|
16
|
+
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
17
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
18
|
+
import type {
|
|
19
|
+
TypedEventFilter,
|
|
20
|
+
TypedEvent,
|
|
21
|
+
TypedListener,
|
|
22
|
+
OnEvent,
|
|
23
|
+
} from "../../common";
|
|
24
|
+
|
|
25
|
+
export declare namespace DataTypes {
|
|
26
|
+
export type ReserveConfigurationMapStruct = { data: BigNumberish };
|
|
27
|
+
|
|
28
|
+
export type ReserveConfigurationMapStructOutput = [BigNumber] & {
|
|
29
|
+
data: BigNumber;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type ReserveDataV3Struct = {
|
|
33
|
+
configuration: DataTypes.ReserveConfigurationMapStruct;
|
|
34
|
+
liquidityIndex: BigNumberish;
|
|
35
|
+
currentLiquidityRate: BigNumberish;
|
|
36
|
+
variableBorrowIndex: BigNumberish;
|
|
37
|
+
currentVariableBorrowRate: BigNumberish;
|
|
38
|
+
currentStableBorrowRate: BigNumberish;
|
|
39
|
+
lastUpdateTimestamp: BigNumberish;
|
|
40
|
+
id: BigNumberish;
|
|
41
|
+
aTokenAddress: string;
|
|
42
|
+
stableDebtTokenAddress: string;
|
|
43
|
+
variableDebtTokenAddress: string;
|
|
44
|
+
interestRateStrategyAddress: string;
|
|
45
|
+
accruedToTreasury: BigNumberish;
|
|
46
|
+
unbacked: BigNumberish;
|
|
47
|
+
isolationModeTotalDebt: BigNumberish;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export type ReserveDataV3StructOutput = [
|
|
51
|
+
DataTypes.ReserveConfigurationMapStructOutput,
|
|
52
|
+
BigNumber,
|
|
53
|
+
BigNumber,
|
|
54
|
+
BigNumber,
|
|
55
|
+
BigNumber,
|
|
56
|
+
BigNumber,
|
|
57
|
+
number,
|
|
58
|
+
number,
|
|
59
|
+
string,
|
|
60
|
+
string,
|
|
61
|
+
string,
|
|
62
|
+
string,
|
|
63
|
+
BigNumber,
|
|
64
|
+
BigNumber,
|
|
65
|
+
BigNumber
|
|
66
|
+
] & {
|
|
67
|
+
configuration: DataTypes.ReserveConfigurationMapStructOutput;
|
|
68
|
+
liquidityIndex: BigNumber;
|
|
69
|
+
currentLiquidityRate: BigNumber;
|
|
70
|
+
variableBorrowIndex: BigNumber;
|
|
71
|
+
currentVariableBorrowRate: BigNumber;
|
|
72
|
+
currentStableBorrowRate: BigNumber;
|
|
73
|
+
lastUpdateTimestamp: number;
|
|
74
|
+
id: number;
|
|
75
|
+
aTokenAddress: string;
|
|
76
|
+
stableDebtTokenAddress: string;
|
|
77
|
+
variableDebtTokenAddress: string;
|
|
78
|
+
interestRateStrategyAddress: string;
|
|
79
|
+
accruedToTreasury: BigNumber;
|
|
80
|
+
unbacked: BigNumber;
|
|
81
|
+
isolationModeTotalDebt: BigNumber;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface ILendingPoolV3Interface extends utils.Interface {
|
|
86
|
+
functions: {
|
|
87
|
+
"deposit(address,uint256,address,uint16)": FunctionFragment;
|
|
88
|
+
"getReserveData(address)": FunctionFragment;
|
|
89
|
+
"withdraw(address,uint256,address)": FunctionFragment;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
getFunction(
|
|
93
|
+
nameOrSignatureOrTopic: "deposit" | "getReserveData" | "withdraw"
|
|
94
|
+
): FunctionFragment;
|
|
95
|
+
|
|
96
|
+
encodeFunctionData(
|
|
97
|
+
functionFragment: "deposit",
|
|
98
|
+
values: [string, BigNumberish, string, BigNumberish]
|
|
99
|
+
): string;
|
|
100
|
+
encodeFunctionData(
|
|
101
|
+
functionFragment: "getReserveData",
|
|
102
|
+
values: [string]
|
|
103
|
+
): string;
|
|
104
|
+
encodeFunctionData(
|
|
105
|
+
functionFragment: "withdraw",
|
|
106
|
+
values: [string, BigNumberish, string]
|
|
107
|
+
): string;
|
|
108
|
+
|
|
109
|
+
decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
|
|
110
|
+
decodeFunctionResult(
|
|
111
|
+
functionFragment: "getReserveData",
|
|
112
|
+
data: BytesLike
|
|
113
|
+
): Result;
|
|
114
|
+
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
|
|
115
|
+
|
|
116
|
+
events: {};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface ILendingPoolV3 extends BaseContract {
|
|
120
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
121
|
+
attach(addressOrName: string): this;
|
|
122
|
+
deployed(): Promise<this>;
|
|
123
|
+
|
|
124
|
+
interface: ILendingPoolV3Interface;
|
|
125
|
+
|
|
126
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
127
|
+
event: TypedEventFilter<TEvent>,
|
|
128
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
129
|
+
toBlock?: string | number | undefined
|
|
130
|
+
): Promise<Array<TEvent>>;
|
|
131
|
+
|
|
132
|
+
listeners<TEvent extends TypedEvent>(
|
|
133
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
134
|
+
): Array<TypedListener<TEvent>>;
|
|
135
|
+
listeners(eventName?: string): Array<Listener>;
|
|
136
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
137
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
138
|
+
): this;
|
|
139
|
+
removeAllListeners(eventName?: string): this;
|
|
140
|
+
off: OnEvent<this>;
|
|
141
|
+
on: OnEvent<this>;
|
|
142
|
+
once: OnEvent<this>;
|
|
143
|
+
removeListener: OnEvent<this>;
|
|
144
|
+
|
|
145
|
+
functions: {
|
|
146
|
+
deposit(
|
|
147
|
+
asset: string,
|
|
148
|
+
amount: BigNumberish,
|
|
149
|
+
onBehalfOf: string,
|
|
150
|
+
referralCode: BigNumberish,
|
|
151
|
+
overrides?: Overrides & { from?: string }
|
|
152
|
+
): Promise<ContractTransaction>;
|
|
153
|
+
|
|
154
|
+
getReserveData(
|
|
155
|
+
asset: string,
|
|
156
|
+
overrides?: CallOverrides
|
|
157
|
+
): Promise<[DataTypes.ReserveDataV3StructOutput]>;
|
|
158
|
+
|
|
159
|
+
withdraw(
|
|
160
|
+
asset: string,
|
|
161
|
+
amount: BigNumberish,
|
|
162
|
+
to: string,
|
|
163
|
+
overrides?: Overrides & { from?: string }
|
|
164
|
+
): Promise<ContractTransaction>;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
deposit(
|
|
168
|
+
asset: string,
|
|
169
|
+
amount: BigNumberish,
|
|
170
|
+
onBehalfOf: string,
|
|
171
|
+
referralCode: BigNumberish,
|
|
172
|
+
overrides?: Overrides & { from?: string }
|
|
173
|
+
): Promise<ContractTransaction>;
|
|
174
|
+
|
|
175
|
+
getReserveData(
|
|
176
|
+
asset: string,
|
|
177
|
+
overrides?: CallOverrides
|
|
178
|
+
): Promise<DataTypes.ReserveDataV3StructOutput>;
|
|
179
|
+
|
|
180
|
+
withdraw(
|
|
181
|
+
asset: string,
|
|
182
|
+
amount: BigNumberish,
|
|
183
|
+
to: string,
|
|
184
|
+
overrides?: Overrides & { from?: string }
|
|
185
|
+
): Promise<ContractTransaction>;
|
|
186
|
+
|
|
187
|
+
callStatic: {
|
|
188
|
+
deposit(
|
|
189
|
+
asset: string,
|
|
190
|
+
amount: BigNumberish,
|
|
191
|
+
onBehalfOf: string,
|
|
192
|
+
referralCode: BigNumberish,
|
|
193
|
+
overrides?: CallOverrides
|
|
194
|
+
): Promise<void>;
|
|
195
|
+
|
|
196
|
+
getReserveData(
|
|
197
|
+
asset: string,
|
|
198
|
+
overrides?: CallOverrides
|
|
199
|
+
): Promise<DataTypes.ReserveDataV3StructOutput>;
|
|
200
|
+
|
|
201
|
+
withdraw(
|
|
202
|
+
asset: string,
|
|
203
|
+
amount: BigNumberish,
|
|
204
|
+
to: string,
|
|
205
|
+
overrides?: CallOverrides
|
|
206
|
+
): Promise<BigNumber>;
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
filters: {};
|
|
210
|
+
|
|
211
|
+
estimateGas: {
|
|
212
|
+
deposit(
|
|
213
|
+
asset: string,
|
|
214
|
+
amount: BigNumberish,
|
|
215
|
+
onBehalfOf: string,
|
|
216
|
+
referralCode: BigNumberish,
|
|
217
|
+
overrides?: Overrides & { from?: string }
|
|
218
|
+
): Promise<BigNumber>;
|
|
219
|
+
|
|
220
|
+
getReserveData(
|
|
221
|
+
asset: string,
|
|
222
|
+
overrides?: CallOverrides
|
|
223
|
+
): Promise<BigNumber>;
|
|
224
|
+
|
|
225
|
+
withdraw(
|
|
226
|
+
asset: string,
|
|
227
|
+
amount: BigNumberish,
|
|
228
|
+
to: string,
|
|
229
|
+
overrides?: Overrides & { from?: string }
|
|
230
|
+
): Promise<BigNumber>;
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
populateTransaction: {
|
|
234
|
+
deposit(
|
|
235
|
+
asset: string,
|
|
236
|
+
amount: BigNumberish,
|
|
237
|
+
onBehalfOf: string,
|
|
238
|
+
referralCode: BigNumberish,
|
|
239
|
+
overrides?: Overrides & { from?: string }
|
|
240
|
+
): Promise<PopulatedTransaction>;
|
|
241
|
+
|
|
242
|
+
getReserveData(
|
|
243
|
+
asset: string,
|
|
244
|
+
overrides?: CallOverrides
|
|
245
|
+
): Promise<PopulatedTransaction>;
|
|
246
|
+
|
|
247
|
+
withdraw(
|
|
248
|
+
asset: string,
|
|
249
|
+
amount: BigNumberish,
|
|
250
|
+
to: string,
|
|
251
|
+
overrides?: Overrides & { from?: string }
|
|
252
|
+
): Promise<PopulatedTransaction>;
|
|
253
|
+
};
|
|
254
|
+
}
|