@gooddollar/goodprotocol 2.1.1 → 2.1.2
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/AdminWallet.min.json +1 -1
- package/artifacts/abis/AdminWalletFuse.min.json +1 -1
- package/artifacts/abis/Faucet.min.json +1 -1
- package/artifacts/abis/FuseFaucetV2.min.json +1 -1
- package/artifacts/abis/GenericDistributionHelper.min.json +1 -0
- package/artifacts/abis/GenericDistributionHelperTest.min.json +1 -0
- package/artifacts/abis/GenericDistributionHelperTestHelper.min.json +1 -0
- package/artifacts/abis/IBancorExchangeProvider.min.json +1 -1
- package/artifacts/abis/INonfungiblePositionManager.min.json +1 -0
- package/artifacts/abis/IUniswapV3Pool.min.json +1 -0
- package/artifacts/abis/IdentityV3.min.json +1 -1
- package/artifacts/abis/MentoExchange.min.json +1 -1
- package/artifacts/abis/UBISchemeV2.min.json +1 -1
- package/artifacts/abis/UpdateReserveRatioAfterXDC.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/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 +106 -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/IBancorExchangeProvider.json +13 -0
- 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/Faucet.sol/Faucet.json +34 -2
- 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/FuseFaucetV2.sol/FuseFaucetV2.json +34 -2
- 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/identity/IdentityV3.sol/IdentityV3.json +40 -2
- 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/GenericDistributionHelperTest.sol/GenericDistributionHelperTest.dbg.json +4 -0
- package/artifacts/contracts/mocks/GenericDistributionHelperTest.sol/GenericDistributionHelperTest.json +931 -0
- package/artifacts/contracts/mocks/GenericDistributionHelperTest.sol/GenericDistributionHelperTestHelper.dbg.json +4 -0
- package/artifacts/contracts/mocks/GenericDistributionHelperTest.sol/GenericDistributionHelperTestHelper.json +957 -0
- 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/AdminWallet.sol/AdminWallet.json +36 -2
- package/artifacts/contracts/utils/AdminWalletFuse.sol/AdminWalletFuse.dbg.json +1 -1
- package/artifacts/contracts/utils/AdminWalletFuse.sol/AdminWalletFuse.json +36 -2
- 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/BulkWhitelist.sol/BulkWhitelist.json +2 -2
- 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/BuyFromReserveHelper.sol/BuyFromReserveHelper.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/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/ProtoclUpgradeV4Mento.sol/ProtocolUpgradeV4Mento.json +2 -2
- 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/artifacts/contracts/utils/UpdateReserveRatioAfterXDC.sol/MentoExchange.dbg.json +4 -0
- package/artifacts/contracts/utils/UpdateReserveRatioAfterXDC.sol/MentoExchange.json +24 -0
- package/artifacts/contracts/utils/UpdateReserveRatioAfterXDC.sol/UpdateReserveRatioAfterXDC.dbg.json +4 -0
- package/artifacts/contracts/utils/UpdateReserveRatioAfterXDC.sol/UpdateReserveRatioAfterXDC.json +50 -0
- package/contracts/identity/IdentityV3.sol +2 -0
- package/contracts/reserve/GenericDistributionHelper.sol +16 -2
- package/contracts/utils/AdminWallet.sol +27 -0
- package/contracts/utils/AdminWalletFuse.sol +27 -0
- package/contracts/utils/UpdateReserveRatioAfterXDC.sol +64 -0
- package/dist/artifacts/contracts/identity/IdentityV2.sol/IdentityV2.json +1099 -0
- package/dist/artifacts/contracts/token/superfluid/SuperGoodDollar.sol/SuperGoodDollar.json +2627 -0
- package/dist/artifacts/contracts/token/superfluid/UUPSProxy.sol/UUPSProxy.json +32 -0
- package/dist/artifacts/contracts/utils/ProxyFactory1967.sol/ERC1967Proxy.json +82 -0
- package/dist/test-sdk/deploySuperGoodDollar.d.ts +6 -0
- package/dist/test-sdk/deploySuperGoodDollar.js +46 -0
- package/dist/test-sdk/index.d.ts +1 -0
- package/dist/test-sdk/index.js +13 -0
- package/hardhat.config.ts +6 -12
- package/package.json +1 -1
- package/releases/deployment.json +3 -1
- package/scripts/bulkWhitelist.ts +31 -0
- package/scripts/multichain-deploy/helpers.ts +6 -1
- package/scripts/proposals/gip-25-xdc-deploy-reserve.ts +425 -0
- package/scripts/proposals/gip-25-xdc-upgrade-ubi.ts +303 -4
- package/types/{ERC1967Upgrade.ts → @openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.ts} +23 -21
- 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 +192 -0
- package/types/contracts/IUniswapV3.sol/index.ts +5 -0
- package/types/{IHasRouter.ts → contracts/Interfaces.sol/AToken.ts} +22 -24
- package/types/{IAaveIncentivesController.ts → contracts/Interfaces.sol/IAaveIncentivesControllerV3.ts} +48 -47
- package/types/{ILendingPool.ts → contracts/Interfaces.sol/ILendingPoolV3.ts} +89 -76
- package/types/contracts/MentoInterfaces.sol/IBancorExchangeProvider.ts +14 -0
- package/types/{Faucet.ts → contracts/fuseFaucet/Faucet copy.sol/DebugFaucet.ts } +354 -82
- package/types/contracts/fuseFaucet/Faucet copy.sol/index.ts +4 -0
- package/types/contracts/fuseFaucet/Faucet.ts +43 -0
- package/types/contracts/fuseFaucet/FuseFaucetV2.ts +43 -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/identity/IdentityV3.ts +46 -0
- package/types/contracts/index.ts +2 -0
- package/types/{DistributionHelper.ts → contracts/mocks/CeloDistributionHelperTest.sol/DistributionHelperTestHelper.ts} +345 -351
- package/types/{DistributionHelperTestHelper.ts → contracts/mocks/GenericDistributionHelperTest.sol/CeloDistributionHelperTestHelper.ts} +426 -389
- package/types/contracts/mocks/GenericDistributionHelperTest.sol/GenericDistributionHelperTest.ts +1305 -0
- package/types/contracts/mocks/GenericDistributionHelperTest.sol/GenericDistributionHelperTestHelper.ts +1357 -0
- package/types/contracts/mocks/GenericDistributionHelperTest.sol/index.ts +5 -0
- package/types/contracts/mocks/index.ts +2 -0
- package/types/{DistributionHelperTest.ts → contracts/reserve/GenericDistributionHelper copy.sol/GenericDistributionHelper.ts } +349 -361
- package/types/contracts/reserve/GenericDistributionHelper copy.sol/index.ts +4 -0
- package/types/contracts/reserve/GenericDistributionHelper.ts +1304 -0
- package/types/{GoodReserveCDai.ts → contracts/reserve/GoodReserveADai.ts} +343 -197
- package/types/contracts/reserve/index.ts +1 -0
- package/types/{GoodAaveStakingV2.ts → contracts/staking/aave/GoodAave3StakingV2.sol/GoodAaveStakingV2.ts} +177 -100
- package/types/contracts/staking/aave/GoodAave3StakingV2.sol/index.ts +4 -0
- package/types/{GoodDollar.ts → contracts/token/GoodDollar18.ts} +278 -140
- package/types/contracts/ubi/UBISchemeV2.ts +14 -3
- package/types/contracts/utils/AdminWallet.ts +45 -0
- package/types/contracts/utils/AdminWalletFuse.ts +45 -0
- package/types/{BuyGDClone.ts → contracts/utils/BuyGDClone.sol/BuyGDCloneV2.ts} +133 -52
- package/types/contracts/utils/BuyGDClone.sol/index.ts +0 -2
- package/types/contracts/utils/FuseOldBridgeKill.sol/BasicAMBErc677ToErc677.ts +108 -0
- package/types/{IBeacon.ts → contracts/utils/ProtocolUpgradeV4Mento.sol/MentoExchange.ts} +22 -30
- package/types/contracts/utils/ProtocolUpgradeV4Mento.sol/ProtocolUpgradeV4Mento.ts +161 -0
- package/types/contracts/utils/ProtocolUpgradeV4Mento.sol/index.ts +5 -0
- package/types/{BatUSDMockOracle.ts → contracts/utils/ReserveRestore.sol/MentoExchange.ts} +22 -30
- package/types/contracts/utils/ReserveRestore.sol/ReserveRestore.ts +112 -0
- package/types/contracts/utils/ReserveRestore.sol/index.ts +5 -0
- package/types/{IERC1822Proxiable.ts → contracts/utils/UpdateReserveRatioAfterXDC.sol/MentoExchange.ts} +22 -30
- package/types/contracts/utils/UpdateReserveRatioAfterXDC.sol/UpdateReserveRatioAfterXDC.ts +117 -0
- package/types/contracts/utils/UpdateReserveRatioAfterXDC.sol/index.ts +5 -0
- package/types/contracts/utils/UpdateReserveSettingsForXdc.sol/MentoExchange.ts +81 -0
- package/types/contracts/utils/UpdateReserveSettingsForXdc.sol/UpdateReserveRatioAfterXDC.ts +122 -0
- package/types/contracts/utils/UpdateReserveSettingsForXdc.sol/index.ts +5 -0
- package/types/contracts/utils/index.ts +4 -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/{IRouter__factory.ts → @uniswap/v2-periphery/contracts/interfaces/IWETH__factory.ts} +24 -28
- 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 +121 -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/{IAaveIncentivesController__factory.ts → contracts/Interfaces.sol/IAaveIncentivesControllerV3__factory.ts} +27 -22
- package/types/factories/{ILendingPool__factory.ts → contracts/Interfaces.sol/ILendingPoolV3__factory.ts} +32 -14
- package/types/factories/contracts/MentoInterfaces.sol/IBancorExchangeProvider__factory.ts +13 -0
- package/types/factories/contracts/fuseFaucet/Faucet copy.sol/DebugFaucet__factory.ts +945 -0
- package/types/factories/contracts/fuseFaucet/Faucet copy.sol/index.ts +4 -0
- package/types/factories/contracts/fuseFaucet/Faucet__factory.ts +33 -1
- package/types/factories/contracts/fuseFaucet/FuseFaucetV2__factory.ts +33 -1
- 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/identity/IdentityV3__factory.ts +39 -1
- package/types/factories/contracts/index.ts +1 -0
- package/types/factories/contracts/mocks/CeloDistributionHelperTest.sol/DistributionHelperTestHelper__factory.ts +929 -0
- package/types/factories/contracts/mocks/GenericDistributionHelperTest.sol/CeloDistributionHelperTestHelper__factory.ts +1017 -0
- package/types/factories/contracts/mocks/GenericDistributionHelperTest.sol/GenericDistributionHelperTestHelper__factory.ts +1021 -0
- package/types/factories/contracts/mocks/GenericDistributionHelperTest.sol/GenericDistributionHelperTest__factory.ts +989 -0
- package/types/factories/contracts/mocks/GenericDistributionHelperTest.sol/index.ts +5 -0
- package/types/factories/contracts/mocks/index.ts +1 -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/{GoodDollar__factory.ts → contracts/token/GoodDollar18__factory.ts} +26 -23
- package/types/factories/contracts/ubi/UBISchemeV2__factory.ts +6 -1
- package/types/factories/contracts/utils/AdminWalletFuse__factory.ts +35 -1
- package/types/factories/contracts/utils/AdminWallet__factory.ts +35 -1
- package/types/factories/contracts/utils/BulkWhitelist__factory.ts +1 -1
- package/types/factories/contracts/utils/BuyFromReserveHelper__factory.ts +1 -1
- package/types/factories/contracts/utils/BuyGDClone.sol/BuyGDCloneV2__factory.ts +415 -0
- package/types/factories/contracts/utils/BuyGDClone.sol/index.ts +0 -2
- package/types/factories/contracts/utils/FuseOldBridgeKill.sol/BasicAMBErc677ToErc677__factory.ts +86 -0
- package/types/factories/contracts/utils/ProtoclUpgradeV4Mento.sol/ProtocolUpgradeV4Mento__factory.ts +1 -1
- 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/{IBeaconUpgradeable__factory.ts → contracts/utils/ReserveRestore.sol/MentoExchange__factory.ts} +11 -11
- 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/factories/contracts/utils/UpdateReserveRatioAfterXDC.sol/MentoExchange__factory.ts +39 -0
- package/types/factories/contracts/utils/UpdateReserveRatioAfterXDC.sol/UpdateReserveRatioAfterXDC__factory.ts +110 -0
- package/types/factories/contracts/utils/UpdateReserveRatioAfterXDC.sol/index.ts +5 -0
- package/types/factories/contracts/utils/UpdateReserveSettingsForXdc.sol/MentoExchange__factory.ts +39 -0
- package/types/factories/contracts/utils/UpdateReserveSettingsForXdc.sol/UpdateReserveRatioAfterXDC__factory.ts +115 -0
- package/types/factories/contracts/utils/UpdateReserveSettingsForXdc.sol/index.ts +5 -0
- package/types/factories/contracts/utils/index.ts +2 -0
- package/types/hardhat.d.ts +99 -18
- package/types/index.ts +16 -2
- package/types/AaveMock.ts +0 -1031
- package/types/AaveStakingFactory.ts +0 -290
- package/types/AaveUSDMockOracle.ts +0 -89
- package/types/AccessControl.ts +0 -361
- package/types/AccessControlEnumerableUpgradeable.ts +0 -444
- package/types/AccessControlUpgradeable.ts +0 -371
- package/types/AdminWallet.ts +0 -1234
- package/types/AdminWalletFuse.ts +0 -1340
- package/types/AggregatorV3Interface.ts +0 -192
- package/types/Avatar.ts +0 -121
- package/types/BancorFormula.ts +0 -974
- package/types/BaseShareField.ts +0 -442
- package/types/BaseShareFieldV2.ts +0 -361
- package/types/BuyAndBridgeHelper.ts +0 -279
- package/types/BuyGDCloneFactory.ts +0 -180
- package/types/CBATMock.ts +0 -1203
- package/types/CDAILowWorthMock.ts +0 -1169
- package/types/CDAIMock.ts +0 -1219
- package/types/CDAINonMintableMock.ts +0 -1169
- package/types/CDecimalsMock.ts +0 -1203
- package/types/CERC20.ts +0 -552
- package/types/CSDTMock.ts +0 -1203
- package/types/CUSDCMock.ts +0 -1203
- package/types/ClaimersDistribution.ts +0 -634
- package/types/CompUSDMockOracle.ts +0 -89
- package/types/CompoundStakingFactory.ts +0 -261
- package/types/CompoundVotingMachine.ts +0 -1718
- package/types/ContextUpgradeable.ts +0 -77
- package/types/ContributionCalc.ts +0 -164
- package/types/Controller.ts +0 -547
- package/types/DAIMock.ts +0 -1092
- package/types/DAOContract.ts +0 -162
- package/types/DAOUpgradeableContract.ts +0 -299
- package/types/DaiEthPriceMockOracle.ts +0 -89
- package/types/DecimalsMock.ts +0 -1031
- package/types/DistributionBridgeMock.ts +0 -384
- package/types/DonationsStaking.ts +0 -805
- package/types/EIP712Upgradeable.ts +0 -77
- package/types/ERC165.ts +0 -104
- package/types/ERC165Upgradeable.ts +0 -115
- package/types/ERC1967Proxy.ts +0 -147
- package/types/ERC1967UpgradeUpgradeable.ts +0 -116
- package/types/ERC20.ts +0 -417
- package/types/ERC20BurnableUpgradeable.ts +0 -488
- package/types/ERC20PausableUpgradeable.ts +0 -458
- package/types/ERC20Permit.ts +0 -186
- package/types/ERC20PermitUpgradeable.ts +0 -531
- package/types/ERC20PresetMinterPauserUpgradeable.ts +0 -1136
- package/types/ERC20Upgradeable.ts +0 -426
- package/types/ERC20WithTokenInfo.ts +0 -339
- package/types/ERC677.ts +0 -131
- package/types/ERC677Receiver.ts +0 -115
- package/types/EthUSDMockOracle.ts +0 -138
- package/types/EventsEmitter.ts +0 -88
- package/types/ExchangeHelper.ts +0 -550
- package/types/FeesFormulaMock.ts +0 -130
- package/types/FuseFaucet.ts +0 -507
- package/types/FuseFaucetV2.ts +0 -846
- package/types/FuseStakingV3.ts +0 -1212
- package/types/GDFaucet.ts +0 -221
- package/types/GReputation.ts +0 -2119
- package/types/GasPriceMockOracle.ts +0 -118
- package/types/GlobalConstraintInterface.ts +0 -134
- package/types/GoodAaveStaking.ts +0 -1761
- package/types/GoodCompoundStaking.ts +0 -1847
- package/types/GoodCompoundStakingTest.ts +0 -1957
- package/types/GoodCompoundStakingV2.ts +0 -1645
- package/types/GoodDollarMintBurnWrapper.ts +0 -1792
- package/types/GoodDollarStaking.ts +0 -1947
- package/types/GoodDollarStakingMock.ts +0 -1986
- package/types/GoodFundManager.ts +0 -1126
- package/types/GoodFundManagerTest.ts +0 -1165
- package/types/GoodMarketMaker.ts +0 -1002
- package/types/GovernanceStaking.ts +0 -1295
- package/types/IAccessControl.ts +0 -306
- package/types/IAccessControlEnumerableUpgradeable.ts +0 -380
- package/types/IAccessControlUpgradeable.ts +0 -307
- package/types/IAdminWallet.ts +0 -171
- package/types/IBeaconUpgradeable.ts +0 -89
- package/types/IConsensus.ts +0 -225
- package/types/IDonationStaking.ts +0 -98
- package/types/IERC1271Upgradeable.ts +0 -109
- package/types/IERC165.ts +0 -104
- package/types/IERC165Upgradeable.ts +0 -104
- package/types/IERC1820Registry.ts +0 -398
- package/types/IERC1822ProxiableUpgradeable.ts +0 -90
- package/types/IERC20.ts +0 -300
- package/types/IERC20Metadata.ts +0 -339
- package/types/IERC20MetadataUpgradeable.ts +0 -340
- package/types/IERC20Permit.ts +0 -175
- package/types/IERC20PermitUpgradeable.ts +0 -176
- package/types/IERC20Upgradeable.ts +0 -300
- package/types/IERC2917.ts +0 -661
- package/types/IERC777.ts +0 -586
- package/types/IERC777Recipient.ts +0 -130
- package/types/IERC777Sender.ts +0 -130
- package/types/IFeesFormula.ts +0 -111
- package/types/IFirstClaimPool.ts +0 -136
- package/types/IGoodDollar.ts +0 -876
- package/types/IGoodDollarCustom.ts +0 -618
- package/types/IGoodDollarStakingTest.ts +0 -160
- package/types/IGoodStaking.ts +0 -264
- package/types/IGovernanceStaking.ts +0 -98
- package/types/IIdentity.ts +0 -508
- package/types/IIdentityV2.ts +0 -591
- package/types/ILayerZeroFeeEstimator.ts +0 -136
- package/types/IMessagePassingBridge.ts +0 -774
- package/types/IMultichainRouter.ts +0 -166
- package/types/INameService.ts +0 -86
- package/types/IRouter.ts +0 -143
- package/types/IStakingUpgrade.ts +0 -110
- package/types/IStaticOracle.ts +0 -677
- package/types/ISuperAgreement.ts +0 -151
- package/types/ISuperApp.ts +0 -410
- package/types/ISuperGoodDollar.ts +0 -3029
- package/types/ISuperToken.ts +0 -2326
- package/types/ISuperTokenFactory.ts +0 -415
- package/types/ISuperfluid.ts +0 -1565
- package/types/ISuperfluidGovernance.ts +0 -455
- package/types/ISuperfluidToken.ts +0 -951
- package/types/ISwapRouter.ts +0 -298
- package/types/IUBIScheme.ts +0 -121
- package/types/IUniswapV3Factory.ts +0 -333
- package/types/IWrapper.ts +0 -143
- package/types/IdentityFix.ts +0 -141
- package/types/IdentityMock.ts +0 -527
- package/types/IdentityV2.ts +0 -1782
- package/types/IncentiveControllerMock.ts +0 -207
- package/types/Initializable.ts +0 -77
- package/types/IntVoteInterface.ts +0 -468
- package/types/InvitesFuseV2.ts +0 -840
- package/types/InvitesV1.ts +0 -806
- package/types/InvitesV2.ts +0 -1016
- package/types/LendingPoolMock.ts +0 -1259
- package/types/MultiBaseGovernanceShareField.ts +0 -411
- package/types/Multicall.ts +0 -298
- package/types/MultichainBridgeHelper.ts +0 -170
- package/types/MultichainFeeFormula.ts +0 -130
- package/types/MultichainRouterMock.ts +0 -141
- package/types/NameService.ts +0 -386
- package/types/OldMarketMaker.ts +0 -113
- package/types/OneTimePayments.ts +0 -396
- package/types/OneTimePaymentsV2.ts +0 -456
- package/types/OverMintTester.ts +0 -176
- package/types/OverMintTesterRegularStake.ts +0 -177
- package/types/OwnableUpgradeable.ts +0 -175
- package/types/Pausable.ts +0 -103
- package/types/PausableControl.ts +0 -125
- package/types/PausableUpgradeable.ts +0 -112
- package/types/PayableMock.ts +0 -92
- package/types/PegSwap.ts +0 -112
- package/types/ProtocolUpgrade.ts +0 -272
- package/types/ProtocolUpgradeFuse.ts +0 -166
- package/types/ProtocolUpgradeFuseRecover.ts +0 -167
- package/types/ProtocolUpgradeRecover.ts +0 -264
- package/types/Proxy.ts +0 -66
- package/types/ProxyAdmin.ts +0 -254
- package/types/ProxyFactory1967.ts +0 -284
- package/types/ReentrancyGuardUpgradeable.ts +0 -78
- package/types/Reputation.ts +0 -964
- package/types/ReputationInterface.ts +0 -261
- package/types/ReputationTestHelper.ts +0 -175
- package/types/Reserve.ts +0 -112
- package/types/RewardsMinter.ts +0 -107
- package/types/SchemeRegistrar.ts +0 -164
- package/types/SelfApprove.ts +0 -115
- package/types/SimpleStaking.ts +0 -1523
- package/types/SimpleStakingV2.ts +0 -1427
- package/types/SixteenDecimalsTokenMock.ts +0 -1032
- package/types/StakersDistribution.ts +0 -949
- package/types/Staking.ts +0 -158
- package/types/StakingMockFixedAPY.ts +0 -995
- package/types/StakingRewardsFixedAPY.ts +0 -428
- package/types/SuperGoodDollar.ts +0 -3662
- package/types/SuperToken.ts +0 -2434
- package/types/SuperfluidToken.ts +0 -951
- package/types/SwapHelperTest.ts +0 -120
- package/types/TokenInfo.ts +0 -109
- package/types/TwentyDecimalsTokenMock.ts +0 -1032
- package/types/UBIScheme.ts +0 -1461
- package/types/UBISchemeV2.ts +0 -1192
- package/types/USDCMock.ts +0 -1031
- package/types/UUPSProxiable.ts +0 -183
- package/types/UUPSProxy.ts +0 -105
- package/types/UUPSUpgradeable.ts +0 -207
- package/types/Uniswap.ts +0 -423
- package/types/UniswapFactory.ts +0 -106
- package/types/UniswapPair.ts +0 -187
- package/types/UniswapV2SwapHelper.ts +0 -124
- package/types/UpgradableMock.ts +0 -349
- package/types/UpgradableMock2.ts +0 -311
- package/types/UpgradableMock3.ts +0 -336
- package/types/UpgradableMock4.ts +0 -336
- package/types/factories/AaveMock__factory.ts +0 -740
- package/types/factories/AaveStakingFactory__factory.ts +0 -262
- package/types/factories/AaveUSDMockOracle__factory.ts +0 -75
- package/types/factories/AccessControlEnumerableUpgradeable__factory.ts +0 -292
- package/types/factories/AccessControlUpgradeable__factory.ts +0 -247
- package/types/factories/AccessControl__factory.ts +0 -227
- package/types/factories/AdminWalletFuse__factory.ts +0 -933
- package/types/factories/AdminWallet__factory.ts +0 -865
- package/types/factories/AggregatorV3Interface__factory.ts +0 -121
- package/types/factories/Avatar__factory.ts +0 -59
- package/types/factories/BancorFormula__factory.ts +0 -674
- package/types/factories/BaseShareFieldV2__factory.ts +0 -251
- package/types/factories/BaseShareField__factory.ts +0 -307
- package/types/factories/BatUSDMockOracle__factory.ts +0 -75
- package/types/factories/BuyAndBridgeHelper__factory.ts +0 -237
- package/types/factories/BuyGDCloneFactory__factory.ts +0 -196
- package/types/factories/BuyGDClone__factory.ts +0 -343
- package/types/factories/CBATMock__factory.ts +0 -844
- package/types/factories/CDAILowWorthMock__factory.ts +0 -834
- package/types/factories/CDAIMock__factory.ts +0 -857
- package/types/factories/CDAINonMintableMock__factory.ts +0 -834
- package/types/factories/CDecimalsMock__factory.ts +0 -844
- package/types/factories/CERC20__factory.ts +0 -381
- package/types/factories/CSDTMock__factory.ts +0 -844
- package/types/factories/CUSDCMock__factory.ts +0 -844
- package/types/factories/ClaimersDistribution__factory.ts +0 -430
- package/types/factories/CompUSDMockOracle__factory.ts +0 -75
- package/types/factories/CompoundStakingFactory__factory.ts +0 -249
- package/types/factories/CompoundVotingMachine__factory.ts +0 -1208
- package/types/factories/ContextUpgradeable__factory.ts +0 -39
- package/types/factories/ContributionCalc__factory.ts +0 -83
- package/types/factories/Controller__factory.ts +0 -359
- package/types/factories/DAIMock__factory.ts +0 -783
- package/types/factories/DAOContract__factory.ts +0 -118
- package/types/factories/DAOUpgradeableContract__factory.ts +0 -227
- package/types/factories/DaiEthPriceMockOracle__factory.ts +0 -79
- package/types/factories/DecimalsMock__factory.ts +0 -755
- package/types/factories/DistributionBridgeMock__factory.ts +0 -312
- package/types/factories/DistributionHelperTestHelper__factory.ts +0 -1008
- package/types/factories/DistributionHelperTest__factory.ts +0 -975
- package/types/factories/DistributionHelper__factory.ts +0 -971
- package/types/factories/DonationsStaking__factory.ts +0 -580
- package/types/factories/EIP712Upgradeable__factory.ts +0 -39
- package/types/factories/ERC165Upgradeable__factory.ts +0 -58
- package/types/factories/ERC165__factory.ts +0 -39
- package/types/factories/ERC1967Proxy__factory.ts +0 -130
- package/types/factories/ERC1967UpgradeUpgradeable__factory.ts +0 -88
- package/types/factories/ERC1967Upgrade__factory.ts +0 -71
- package/types/factories/ERC20BurnableUpgradeable__factory.ts +0 -344
- package/types/factories/ERC20PausableUpgradeable__factory.ts +0 -352
- package/types/factories/ERC20PermitUpgradeable__factory.ts +0 -388
- package/types/factories/ERC20Permit__factory.ts +0 -111
- package/types/factories/ERC20PresetMinterPauserUpgradeable__factory.ts +0 -827
- package/types/factories/ERC20Upgradeable__factory.ts +0 -345
- package/types/factories/ERC20WithTokenInfo__factory.ts +0 -248
- package/types/factories/ERC20__factory.ts +0 -285
- package/types/factories/ERC677Receiver__factory.ts +0 -55
- package/types/factories/ERC677__factory.ts +0 -75
- package/types/factories/EthUSDMockOracle__factory.ts +0 -108
- package/types/factories/EventsEmitter__factory.ts +0 -84
- package/types/factories/ExchangeHelper__factory.ts +0 -427
- package/types/factories/Faucet__factory.ts +0 -826
- package/types/factories/FeesFormulaMock__factory.ts +0 -132
- package/types/factories/FuseFaucetV2__factory.ts +0 -592
- package/types/factories/FuseFaucet__factory.ts +0 -386
- package/types/factories/FuseStakingV3__factory.ts +0 -806
- package/types/factories/GDFaucet__factory.ts +0 -188
- package/types/factories/GReputation__factory.ts +0 -1490
- package/types/factories/GasPriceMockOracle__factory.ts +0 -88
- package/types/factories/GlobalConstraintInterface__factory.ts +0 -72
- package/types/factories/GoodAaveStakingV2__factory.ts +0 -1240
- package/types/factories/GoodAaveStaking__factory.ts +0 -1276
- package/types/factories/GoodCompoundStakingTest__factory.ts +0 -1470
- package/types/factories/GoodCompoundStakingV2__factory.ts +0 -1182
- package/types/factories/GoodCompoundStaking__factory.ts +0 -1316
- package/types/factories/GoodDollarMintBurnWrapper__factory.ts +0 -1330
- package/types/factories/GoodDollarStakingMock__factory.ts +0 -1497
- package/types/factories/GoodDollarStaking__factory.ts +0 -1469
- package/types/factories/GoodFundManagerTest__factory.ts +0 -801
- package/types/factories/GoodFundManager__factory.ts +0 -759
- package/types/factories/GoodMarketMaker__factory.ts +0 -687
- package/types/factories/GoodReserveCDai__factory.ts +0 -1489
- package/types/factories/GovernanceStaking__factory.ts +0 -948
- package/types/factories/IAccessControlEnumerableUpgradeable__factory.ts +0 -247
- package/types/factories/IAccessControlUpgradeable__factory.ts +0 -202
- package/types/factories/IAccessControl__factory.ts +0 -198
- package/types/factories/IAdminWallet__factory.ts +0 -75
- package/types/factories/IBeacon__factory.ts +0 -36
- package/types/factories/IConsensus__factory.ts +0 -116
- package/types/factories/IDonationStaking__factory.ts +0 -33
- package/types/factories/IERC1271Upgradeable__factory.ts +0 -50
- package/types/factories/IERC165Upgradeable__factory.ts +0 -45
- package/types/factories/IERC165__factory.ts +0 -42
- package/types/factories/IERC1820Registry__factory.ts +0 -239
- package/types/factories/IERC1822ProxiableUpgradeable__factory.ts +0 -43
- package/types/factories/IERC1822Proxiable__factory.ts +0 -39
- package/types/factories/IERC20MetadataUpgradeable__factory.ts +0 -252
- package/types/factories/IERC20Metadata__factory.ts +0 -248
- package/types/factories/IERC20PermitUpgradeable__factory.ts +0 -105
- package/types/factories/IERC20Permit__factory.ts +0 -98
- package/types/factories/IERC20Upgradeable__factory.ts +0 -209
- package/types/factories/IERC20__factory.ts +0 -203
- package/types/factories/IERC2917__factory.ts +0 -493
- package/types/factories/IERC777Recipient__factory.ts +0 -64
- package/types/factories/IERC777Sender__factory.ts +0 -61
- package/types/factories/IERC777__factory.ts +0 -414
- package/types/factories/IFeesFormula__factory.ts +0 -57
- package/types/factories/IFirstClaimPool__factory.ts +0 -65
- package/types/factories/IGoodDollarCustom__factory.ts +0 -370
- package/types/factories/IGoodDollarStakingTest__factory.ts +0 -68
- package/types/factories/IGoodDollar__factory.ts +0 -595
- package/types/factories/IGoodStaking__factory.ts +0 -175
- package/types/factories/IGovernanceStaking__factory.ts +0 -39
- package/types/factories/IHasRouter__factory.ts +0 -36
- package/types/factories/IIdentityV2__factory.ts +0 -331
- package/types/factories/IIdentity__factory.ts +0 -284
- package/types/factories/ILayerZeroFeeEstimator__factory.ts +0 -79
- package/types/factories/IMessagePassingBridge__factory.ts +0 -446
- package/types/factories/IMultichainRouter__factory.ts +0 -82
- package/types/factories/INameService__factory.ts +0 -42
- package/types/factories/IStakingUpgrade__factory.ts +0 -50
- package/types/factories/IStaticOracle__factory.ts +0 -407
- package/types/factories/ISuperAgreement__factory.ts +0 -78
- package/types/factories/ISuperApp__factory.ts +0 -272
- package/types/factories/ISuperGoodDollar__factory.ts +0 -2147
- package/types/factories/ISuperTokenFactory__factory.ts +0 -271
- package/types/factories/ISuperToken__factory.ts +0 -1682
- package/types/factories/ISuperfluidGovernance__factory.ts +0 -264
- package/types/factories/ISuperfluidToken__factory.ts +0 -697
- package/types/factories/ISuperfluid__factory.ts +0 -1143
- package/types/factories/ISwapRouter__factory.ts +0 -217
- package/types/factories/IUBIScheme__factory.ts +0 -68
- package/types/factories/IUniswapV3Factory__factory.ts +0 -222
- package/types/factories/IWrapper__factory.ts +0 -71
- package/types/factories/IdentityFix__factory.ts +0 -110
- package/types/factories/IdentityMock__factory.ts +0 -346
- package/types/factories/IdentityV2__factory.ts +0 -1147
- package/types/factories/IncentiveControllerMock__factory.ts +0 -166
- package/types/factories/Initializable__factory.ts +0 -36
- package/types/factories/IntVoteInterface__factory.ts +0 -349
- package/types/factories/InvitesFuseV2__factory.ts +0 -571
- package/types/factories/InvitesV1__factory.ts +0 -553
- package/types/factories/InvitesV2__factory.ts +0 -688
- package/types/factories/LendingPoolMock__factory.ts +0 -927
- package/types/factories/MultiBaseGovernanceShareField__factory.ts +0 -240
- package/types/factories/Multicall__factory.ts +0 -215
- package/types/factories/MultichainBridgeHelper__factory.ts +0 -134
- package/types/factories/MultichainFeeFormula__factory.ts +0 -113
- package/types/factories/MultichainRouterMock__factory.ts +0 -141
- package/types/factories/NameService__factory.ts +0 -290
- package/types/factories/OldMarketMaker__factory.ts +0 -62
- package/types/factories/OneTimePaymentsV2__factory.ts +0 -369
- package/types/factories/OneTimePayments__factory.ts +0 -323
- package/types/factories/OverMintTesterRegularStake__factory.ts +0 -156
- package/types/factories/OverMintTester__factory.ts +0 -152
- package/types/factories/OwnableUpgradeable__factory.ts +0 -91
- package/types/factories/PausableControl__factory.ts +0 -84
- package/types/factories/PausableUpgradeable__factory.ts +0 -78
- package/types/factories/Pausable__factory.ts +0 -62
- package/types/factories/PayableMock__factory.ts +0 -66
- package/types/factories/PegSwap__factory.ts +0 -46
- package/types/factories/ProtocolUpgradeFuseRecover__factory.ts +0 -146
- package/types/factories/ProtocolUpgradeFuse__factory.ts +0 -142
- package/types/factories/ProtocolUpgradeRecover__factory.ts +0 -184
- package/types/factories/ProtocolUpgrade__factory.ts +0 -207
- package/types/factories/ProxyAdmin__factory.ts +0 -128
- package/types/factories/ProxyFactory1967__factory.ts +0 -223
- package/types/factories/Proxy__factory.ts +0 -28
- package/types/factories/ReentrancyGuardUpgradeable__factory.ts +0 -43
- package/types/factories/ReputationInterface__factory.ts +0 -168
- package/types/factories/ReputationTestHelper__factory.ts +0 -141
- package/types/factories/Reputation__factory.ts +0 -693
- package/types/factories/Reserve__factory.ts +0 -52
- package/types/factories/RewardsMinter__factory.ts +0 -47
- package/types/factories/SchemeRegistrar__factory.ts +0 -114
- package/types/factories/SelfApprove__factory.ts +0 -46
- package/types/factories/SimpleStakingV2__factory.ts +0 -999
- package/types/factories/SimpleStaking__factory.ts +0 -1058
- package/types/factories/SixteenDecimalsTokenMock__factory.ts +0 -747
- package/types/factories/StakersDistribution__factory.ts +0 -617
- package/types/factories/StakingMockFixedAPY__factory.ts +0 -745
- package/types/factories/StakingRewardsFixedAPY__factory.ts +0 -287
- package/types/factories/Staking__factory.ts +0 -74
- package/types/factories/SuperGoodDollar__factory.ts +0 -2680
- package/types/factories/SuperToken__factory.ts +0 -1809
- package/types/factories/SuperfluidToken__factory.ts +0 -697
- package/types/factories/SwapHelperTest__factory.ts +0 -96
- package/types/factories/TokenInfo__factory.ts +0 -62
- package/types/factories/TwentyDecimalsTokenMock__factory.ts +0 -747
- package/types/factories/UBISchemeV2__factory.ts +0 -837
- package/types/factories/UBIScheme__factory.ts +0 -1034
- package/types/factories/USDCMock__factory.ts +0 -740
- package/types/factories/UUPSProxiable__factory.ts +0 -101
- package/types/factories/UUPSProxy__factory.ts +0 -80
- package/types/factories/UUPSUpgradeable__factory.ts +0 -128
- package/types/factories/UniswapFactory__factory.ts +0 -50
- package/types/factories/UniswapPair__factory.ts +0 -117
- package/types/factories/UniswapV2SwapHelper__factory.ts +0 -101
- package/types/factories/Uniswap__factory.ts +0 -272
- package/types/factories/UpgradableMock2__factory.ts +0 -236
- package/types/factories/UpgradableMock3__factory.ts +0 -249
- package/types/factories/UpgradableMock4__factory.ts +0 -249
- package/types/factories/UpgradableMock__factory.ts +0 -262
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "UUPSProxy",
|
|
4
|
+
"sourceName": "contracts/token/superfluid/UUPSProxy.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"stateMutability": "payable",
|
|
8
|
+
"type": "fallback"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"inputs": [
|
|
12
|
+
{
|
|
13
|
+
"internalType": "address",
|
|
14
|
+
"name": "initialAddress",
|
|
15
|
+
"type": "address"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"name": "initializeProxy",
|
|
19
|
+
"outputs": [],
|
|
20
|
+
"stateMutability": "nonpayable",
|
|
21
|
+
"type": "function"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"stateMutability": "payable",
|
|
25
|
+
"type": "receive"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"bytecode": "0x608060405234801561001057600080fd5b50610205806100206000396000f3fe6080604052600436106100225760003560e01c80634a0687ef1461003957610031565b366100315761002f610059565b005b61002f610059565b34801561004557600080fd5b5061002f61005436600461017f565b61006b565b610069610064610139565b610148565b565b6001600160a01b0381166100c05760405162461bcd60e51b81526020600482015260176024820152765555505350726f78793a207a65726f206164647265737360481b60448201526064015b60405180910390fd5b60006100ca61016c565b6001600160a01b0316146101205760405162461bcd60e51b815260206004820152601e60248201527f5555505350726f78793a20616c726561647920696e697469616c697a6564000060448201526064016100b7565b610136816000805160206101b083398151915255565b50565b600061014361016c565b905090565b3660008037600080366000845af43d6000803e808015610167573d6000f35b3d6000fd5b6000805160206101b08339815191525490565b60006020828403121561019157600080fd5b81356001600160a01b03811681146101a857600080fd5b939250505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122054303c95e3083467af14f8e45d0e4948671519cda9ee34d9041f82134179ec4464736f6c63430008100033",
|
|
29
|
+
"deployedBytecode": "0x6080604052600436106100225760003560e01c80634a0687ef1461003957610031565b366100315761002f610059565b005b61002f610059565b34801561004557600080fd5b5061002f61005436600461017f565b61006b565b610069610064610139565b610148565b565b6001600160a01b0381166100c05760405162461bcd60e51b81526020600482015260176024820152765555505350726f78793a207a65726f206164647265737360481b60448201526064015b60405180910390fd5b60006100ca61016c565b6001600160a01b0316146101205760405162461bcd60e51b815260206004820152601e60248201527f5555505350726f78793a20616c726561647920696e697469616c697a6564000060448201526064016100b7565b610136816000805160206101b083398151915255565b50565b600061014361016c565b905090565b3660008037600080366000845af43d6000803e808015610167573d6000f35b3d6000fd5b6000805160206101b08339815191525490565b60006020828403121561019157600080fd5b81356001600160a01b03811681146101a857600080fd5b939250505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122054303c95e3083467af14f8e45d0e4948671519cda9ee34d9041f82134179ec4464736f6c63430008100033",
|
|
30
|
+
"linkReferences": {},
|
|
31
|
+
"deployedLinkReferences": {}
|
|
32
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "ERC1967Proxy",
|
|
4
|
+
"sourceName": "contracts/utils/ProxyFactory1967.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"anonymous": false,
|
|
8
|
+
"inputs": [
|
|
9
|
+
{
|
|
10
|
+
"indexed": false,
|
|
11
|
+
"internalType": "address",
|
|
12
|
+
"name": "previousAdmin",
|
|
13
|
+
"type": "address"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"indexed": false,
|
|
17
|
+
"internalType": "address",
|
|
18
|
+
"name": "newAdmin",
|
|
19
|
+
"type": "address"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"name": "AdminChanged",
|
|
23
|
+
"type": "event"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"anonymous": false,
|
|
27
|
+
"inputs": [
|
|
28
|
+
{
|
|
29
|
+
"indexed": true,
|
|
30
|
+
"internalType": "address",
|
|
31
|
+
"name": "beacon",
|
|
32
|
+
"type": "address"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"name": "BeaconUpgraded",
|
|
36
|
+
"type": "event"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"anonymous": false,
|
|
40
|
+
"inputs": [
|
|
41
|
+
{
|
|
42
|
+
"indexed": true,
|
|
43
|
+
"internalType": "address",
|
|
44
|
+
"name": "implementation",
|
|
45
|
+
"type": "address"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"name": "Upgraded",
|
|
49
|
+
"type": "event"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"stateMutability": "payable",
|
|
53
|
+
"type": "fallback"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"inputs": [
|
|
57
|
+
{
|
|
58
|
+
"internalType": "address",
|
|
59
|
+
"name": "_logic",
|
|
60
|
+
"type": "address"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"internalType": "bytes",
|
|
64
|
+
"name": "_data",
|
|
65
|
+
"type": "bytes"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"name": "initialize",
|
|
69
|
+
"outputs": [],
|
|
70
|
+
"stateMutability": "payable",
|
|
71
|
+
"type": "function"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"stateMutability": "payable",
|
|
75
|
+
"type": "receive"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"bytecode": "0x608060405234801561001057600080fd5b506105a6806100206000396000f3fe6080604052600436106100225760003560e01c8063d1f578941461003957610031565b366100315761002f61004c565b005b61002f61004c565b61002f6100473660046103ef565b61005e565b61005c61005761013d565b61014c565b565b6000610068610170565b6001600160a01b0316146100b15760405162461bcd60e51b815260206004820152600b60248201526a1a5b9a5d1a585b1a5e995960aa1b60448201526064015b60405180910390fd5b6100dc60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61047f565b60008051602061052a833981519152146100f8576100f86104a0565b6101388383838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250925061018c915050565b505050565b6000610147610170565b905090565b3660008037600080366000845af43d6000803e80801561016b573d6000f35b3d6000fd5b60008051602061052a833981519152546001600160a01b031690565b610195836101b7565b6000825111806101a25750805b15610138576101b183836101f7565b50505050565b6101c081610225565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606061021c838360405180606001604052806027815260200161054a602791396102bf565b90505b92915050565b61022e81610337565b6102905760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016100a8565b60008051602061052a83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080856001600160a01b0316856040516102dc91906104da565b600060405180830381855af49150503d8060008114610317576040519150601f19603f3d011682016040523d82523d6000602084013e61031c565b606091505b509150915061032d86838387610346565b9695505050505050565b6001600160a01b03163b151590565b606083156103b35782516000036103ac5761036085610337565b6103ac5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016100a8565b50816103bd565b6103bd83836103c5565b949350505050565b8151156103d55781518083602001fd5b8060405162461bcd60e51b81526004016100a891906104f6565b60008060006040848603121561040457600080fd5b83356001600160a01b038116811461041b57600080fd5b925060208401356001600160401b038082111561043757600080fd5b818601915086601f83011261044b57600080fd5b81358181111561045a57600080fd5b87602082850101111561046c57600080fd5b6020830194508093505050509250925092565b8181038181111561021f57634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052600160045260246000fd5b60005b838110156104d15781810151838201526020016104b9565b50506000910152565b600082516104ec8184602087016104b6565b9190910192915050565b60208152600082518060208401526105158160408501602087016104b6565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220e61bf4b283e7c7127b63eb541e464310619a8e941077fd50b9791d417ed8557b64736f6c63430008100033",
|
|
79
|
+
"deployedBytecode": "0x6080604052600436106100225760003560e01c8063d1f578941461003957610031565b366100315761002f61004c565b005b61002f61004c565b61002f6100473660046103ef565b61005e565b61005c61005761013d565b61014c565b565b6000610068610170565b6001600160a01b0316146100b15760405162461bcd60e51b815260206004820152600b60248201526a1a5b9a5d1a585b1a5e995960aa1b60448201526064015b60405180910390fd5b6100dc60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61047f565b60008051602061052a833981519152146100f8576100f86104a0565b6101388383838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250925061018c915050565b505050565b6000610147610170565b905090565b3660008037600080366000845af43d6000803e80801561016b573d6000f35b3d6000fd5b60008051602061052a833981519152546001600160a01b031690565b610195836101b7565b6000825111806101a25750805b15610138576101b183836101f7565b50505050565b6101c081610225565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606061021c838360405180606001604052806027815260200161054a602791396102bf565b90505b92915050565b61022e81610337565b6102905760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016100a8565b60008051602061052a83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080856001600160a01b0316856040516102dc91906104da565b600060405180830381855af49150503d8060008114610317576040519150601f19603f3d011682016040523d82523d6000602084013e61031c565b606091505b509150915061032d86838387610346565b9695505050505050565b6001600160a01b03163b151590565b606083156103b35782516000036103ac5761036085610337565b6103ac5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016100a8565b50816103bd565b6103bd83836103c5565b949350505050565b8151156103d55781518083602001fd5b8060405162461bcd60e51b81526004016100a891906104f6565b60008060006040848603121561040457600080fd5b83356001600160a01b038116811461041b57600080fd5b925060208401356001600160401b038082111561043757600080fd5b818601915086601f83011261044b57600080fd5b81358181111561045a57600080fd5b87602082850101111561046c57600080fd5b6020830194508093505050509250925092565b8181038181111561021f57634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052600160045260246000fd5b60005b838110156104d15781810151838201526020016104b9565b50506000910152565b600082516104ec8184602087016104b6565b9190910192915050565b60208152600082518060208401526105158160408501602087016104b6565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220e61bf4b283e7c7127b63eb541e464310619a8e941077fd50b9791d417ed8557b64736f6c63430008100033",
|
|
80
|
+
"linkReferences": {},
|
|
81
|
+
"deployedLinkReferences": {}
|
|
82
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "@openzeppelin/hardhat-upgrades";
|
|
2
|
+
export declare type TokenArgs = [string, string];
|
|
3
|
+
export declare const deploySuperGoodDollar: (signer: any, sfContracts: any, tokenArgs?: any[]) => Promise<{
|
|
4
|
+
GoodDollar: import("ethers").Contract;
|
|
5
|
+
Identity: import("ethers").Contract;
|
|
6
|
+
}>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.deploySuperGoodDollar = void 0;
|
|
7
|
+
require("@openzeppelin/hardhat-upgrades");
|
|
8
|
+
const hardhat_1 = require("hardhat");
|
|
9
|
+
const SuperGoodDollar_json_1 = __importDefault(require("../artifacts/contracts/token/superfluid/SuperGoodDollar.sol/SuperGoodDollar.json"));
|
|
10
|
+
const UUPSProxy_json_1 = __importDefault(require("../artifacts/contracts/token/superfluid/UUPSProxy.sol/UUPSProxy.json"));
|
|
11
|
+
const IdentityV2_json_1 = __importDefault(require("../artifacts/contracts/identity/IdentityV2.sol/IdentityV2.json"));
|
|
12
|
+
const FeeFormula_json_1 = __importDefault(require("@gooddollar/goodcontracts/build/contracts/FeeFormula.json"));
|
|
13
|
+
const ERC1967Proxy_json_1 = __importDefault(require("../artifacts/contracts/utils/ProxyFactory1967.sol/ERC1967Proxy.json"));
|
|
14
|
+
const deploySuperGoodDollar = async (signer, sfContracts, tokenArgs = []) => {
|
|
15
|
+
const IdentityFactory = new hardhat_1.ethers.ContractFactory(IdentityV2_json_1.default.abi, IdentityV2_json_1.default.bytecode, signer);
|
|
16
|
+
const FeeFormulaFactory = new hardhat_1.ethers.ContractFactory(FeeFormula_json_1.default.abi, FeeFormula_json_1.default.bytecode, signer);
|
|
17
|
+
const FeeFormula = await FeeFormulaFactory.deploy(0);
|
|
18
|
+
const proxyFactory = new hardhat_1.ethers.ContractFactory(ERC1967Proxy_json_1.default.abi, ERC1967Proxy_json_1.default.bytecode, signer);
|
|
19
|
+
const idProxy = await proxyFactory.deploy();
|
|
20
|
+
const idLogic = await IdentityFactory.deploy();
|
|
21
|
+
const encodedInit = idLogic.interface.encodeFunctionData("initialize", [await signer.getAddress(), hardhat_1.ethers.constants.AddressZero]);
|
|
22
|
+
await idProxy.initialize(idLogic.address, encodedInit);
|
|
23
|
+
// const Identity = await upgrades.deployProxy(
|
|
24
|
+
// IdentityFactory,
|
|
25
|
+
// [await signer.getAddress(), ethers.constants.AddressZero],
|
|
26
|
+
// { kind: "uups" }
|
|
27
|
+
// );
|
|
28
|
+
const initializeArgs = [
|
|
29
|
+
"GoodDollar",
|
|
30
|
+
"G$",
|
|
31
|
+
0,
|
|
32
|
+
FeeFormula.address,
|
|
33
|
+
idProxy.address,
|
|
34
|
+
hardhat_1.ethers.constants.AddressZero,
|
|
35
|
+
await signer.getAddress(), ...tokenArgs
|
|
36
|
+
];
|
|
37
|
+
const SuperGoodDollarFactory = new hardhat_1.ethers.ContractFactory(SuperGoodDollar_json_1.default.abi, SuperGoodDollar_json_1.default.bytecode, signer);
|
|
38
|
+
const SuperGoodDollar = await SuperGoodDollarFactory.deploy(sfContracts.host);
|
|
39
|
+
const GoodDollarProxyFactory = new hardhat_1.ethers.ContractFactory(UUPSProxy_json_1.default.abi, UUPSProxy_json_1.default.bytecode, signer);
|
|
40
|
+
const GoodDollarProxy = await GoodDollarProxyFactory.deploy();
|
|
41
|
+
await GoodDollarProxy.initializeProxy(SuperGoodDollar.address);
|
|
42
|
+
const GoodDollar = SuperGoodDollar.attach(GoodDollarProxy.address);
|
|
43
|
+
await GoodDollar["initialize(string,string,uint256,address,address,address,address)"](...initializeArgs);
|
|
44
|
+
return { GoodDollar, Identity: idLogic.attach(idProxy.address) };
|
|
45
|
+
};
|
|
46
|
+
exports.deploySuperGoodDollar = deploySuperGoodDollar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./deploySuperGoodDollar";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./deploySuperGoodDollar"), exports);
|
package/hardhat.config.ts
CHANGED
|
@@ -29,7 +29,7 @@ envEnc.config();
|
|
|
29
29
|
config();
|
|
30
30
|
|
|
31
31
|
const mnemonic = process.env.MNEMONIC || "test test test test test test test test test test test junk";
|
|
32
|
-
const deployerPrivateKey = process.env.
|
|
32
|
+
const deployerPrivateKey = process.env.ADMIN_KEY || ethers.utils.hexZeroPad("0x11", 32);
|
|
33
33
|
const infura_api = process.env.INFURA_API;
|
|
34
34
|
const alchemy_key = process.env.ALCHEMY_KEY;
|
|
35
35
|
const etherscan_key = process.env.ETHERSCAN_KEY;
|
|
@@ -41,7 +41,7 @@ const MAINNET_URL = "https://mainnet.infura.io/v3/" + infura_api;
|
|
|
41
41
|
|
|
42
42
|
const xdc = {
|
|
43
43
|
accounts: { mnemonic },
|
|
44
|
-
url: "https://rpc.
|
|
44
|
+
url: "https://rpc.xdc.org",
|
|
45
45
|
gas: 3000000,
|
|
46
46
|
gasPrice: 12.5e9,
|
|
47
47
|
chainId: 50
|
|
@@ -65,15 +65,7 @@ const hhconfig: HardhatUserConfig = {
|
|
|
65
65
|
enabled: true
|
|
66
66
|
},
|
|
67
67
|
etherscan: {
|
|
68
|
-
apiKey:
|
|
69
|
-
mainnet: etherscan_key,
|
|
70
|
-
txdc: etherscan_key,
|
|
71
|
-
xdc: etherscan_key,
|
|
72
|
-
celo: etherscan_key,
|
|
73
|
-
alfajores: celoscan_key,
|
|
74
|
-
base: basescan_key,
|
|
75
|
-
fuse: etherscan_key
|
|
76
|
-
},
|
|
68
|
+
apiKey: etherscan_key,
|
|
77
69
|
customChains: [
|
|
78
70
|
{
|
|
79
71
|
network: "fuse",
|
|
@@ -133,7 +125,8 @@ const hhconfig: HardhatUserConfig = {
|
|
|
133
125
|
initialDate: "2021-12-01", //required for DAO tests like guardian
|
|
134
126
|
forking: process.env.FORK_CHAIN_ID && {
|
|
135
127
|
url: "https://eth-mainnet.alchemyapi.io/v2/" + process.env.ALCHEMY_KEY
|
|
136
|
-
}
|
|
128
|
+
},
|
|
129
|
+
blockGasLimit: 100000000429720,
|
|
137
130
|
},
|
|
138
131
|
fork: {
|
|
139
132
|
chainId: 1,
|
|
@@ -155,6 +148,7 @@ const hhconfig: HardhatUserConfig = {
|
|
|
155
148
|
},
|
|
156
149
|
dapptest: {
|
|
157
150
|
gasPrice: 1000000000, //1 gwei
|
|
151
|
+
blockGasLimit: 100000000429720,
|
|
158
152
|
url: "http://127.0.0.1:8545/"
|
|
159
153
|
},
|
|
160
154
|
"dapptest-mainnet": {
|
package/package.json
CHANGED
package/releases/deployment.json
CHANGED
|
@@ -684,6 +684,8 @@
|
|
|
684
684
|
"AdminWallet": "0x66fc1bE551f752706130b6f54d84141F8c2Ae8Bb",
|
|
685
685
|
"Faucet": "0x7344Da1Be296f03fbb8082aDaC5696058B5a9bd9",
|
|
686
686
|
"Invites": "0x6bd698566632bf2e81e2278f1656CB24aAF06D2e",
|
|
687
|
-
"UBIScheme": "0x22867567E2D80f2049200E25C6F31CB6Ec2F0faf"
|
|
687
|
+
"UBIScheme": "0x22867567E2D80f2049200E25C6F31CB6Ec2F0faf",
|
|
688
|
+
"MpbBridge": "0xa3247276DbCC76Dd7705273f766eB3E8a5ecF4a5",
|
|
689
|
+
"BulkWhitelist": "0xe8861A20452Db53dF685F1d9e6B7017de3DB0E46"
|
|
688
690
|
}
|
|
689
691
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import farmed from "../farming.json";
|
|
2
|
+
import { ethers, network } from "hardhat";
|
|
3
|
+
import { chunk } from "lodash";
|
|
4
|
+
import contracts from "../releases/deployment.json";
|
|
5
|
+
import { bulkIsWhitelisted } from "./utils";
|
|
6
|
+
const main = async () => {
|
|
7
|
+
const signer = (await ethers.getSigners())[0];
|
|
8
|
+
|
|
9
|
+
console.log("signer", signer.address);
|
|
10
|
+
const whitelist = await ethers.getContractAt("BulkWhitelist", contracts[network.name].BulkWhitelist);
|
|
11
|
+
const chunks = chunk(farmed, 300);
|
|
12
|
+
for (let batch of chunks) {
|
|
13
|
+
console.log("whitelisting batch of", batch.length, batch[0], batch[batch.length - 1]);
|
|
14
|
+
const res = await (await whitelist.connect(signer).removeWhitelisted(batch, { gasLimit: 25000000 })).wait();
|
|
15
|
+
console.log("tx:", res.transactionHash);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const checkReVerified = async () => {
|
|
20
|
+
const chunks = chunk(farmed, 300);
|
|
21
|
+
let total = 0;
|
|
22
|
+
for (let batch of chunks) {
|
|
23
|
+
console.log("check whitelisting batch of", batch.length, batch[0], batch[batch.length - 1]);
|
|
24
|
+
const res = await bulkIsWhitelisted(batch);
|
|
25
|
+
console.log(`${res.length}/${batch.length}`);
|
|
26
|
+
total += res.length;
|
|
27
|
+
}
|
|
28
|
+
console.log(`total: ${total}/${farmed.length}`);
|
|
29
|
+
};
|
|
30
|
+
checkReVerified();
|
|
31
|
+
// main().catch(console.log);
|
|
@@ -5,7 +5,7 @@ import { TransactionResponse, TransactionReceipt } from "@ethersproject/provider
|
|
|
5
5
|
import { getImplementationAddress } from "@openzeppelin/upgrades-core";
|
|
6
6
|
|
|
7
7
|
import SafeApiKit from "@safe-global/api-kit";
|
|
8
|
-
import Safe from "@safe-global/protocol-kit";
|
|
8
|
+
import Safe, { SafeTransactionOptionalProps } from "@safe-global/protocol-kit";
|
|
9
9
|
import { MetaTransactionData } from "@safe-global/types-kit";
|
|
10
10
|
|
|
11
11
|
import util from "util";
|
|
@@ -357,6 +357,7 @@ export const executeViaSafe = async (
|
|
|
357
357
|
functionInputs,
|
|
358
358
|
safeAddress: string,
|
|
359
359
|
safeSignerOrNetwork?: Signer | string,
|
|
360
|
+
safeOptions: SafeTransactionOptionalProps = {},
|
|
360
361
|
isSimulation = false
|
|
361
362
|
) => {
|
|
362
363
|
if (typeof safeSignerOrNetwork !== "object" && !process.env.SAFEOWNER_PRIVATE_KEY) {
|
|
@@ -387,6 +388,10 @@ export const executeViaSafe = async (
|
|
|
387
388
|
// new ethers.providers.JsonRpcProvider("https://rpc.fuse.io")
|
|
388
389
|
// );
|
|
389
390
|
break;
|
|
391
|
+
case "xdc":
|
|
392
|
+
chainId = 50;
|
|
393
|
+
provider = "https://rpc.xdcrpc.com";
|
|
394
|
+
break;
|
|
390
395
|
}
|
|
391
396
|
} else if (safeSignerOrNetwork) {
|
|
392
397
|
// safeSigner = safeSignerOrNetwork as any;
|