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