@gooddollar/goodprotocol 1.0.28 → 1.0.29-beta.1
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/BulkProof.min.json +1 -1
- package/artifacts/abis/DistributionBridgeMock.min.json +1 -0
- package/artifacts/abis/DistributionHelper.min.json +1 -0
- package/artifacts/abis/DistributionHelperTest.min.json +1 -0
- package/artifacts/abis/DistributionHelperTestHelper.min.json +1 -0
- package/artifacts/abis/ERC20.min.json +1 -1
- package/artifacts/abis/GoodDollarMintBurnWrapper.min.json +1 -0
- package/artifacts/abis/GoodDollarStaking.min.json +1 -0
- package/artifacts/abis/GoodDollarStakingMock.min.json +1 -0
- package/artifacts/abis/GoodReserveCDai.min.json +1 -1
- package/artifacts/abis/IERC2917.min.json +1 -1
- package/artifacts/abis/IGoodDollarStakingTest.min.json +1 -0
- package/artifacts/abis/IMultichainRouter.min.json +1 -0
- package/artifacts/abis/IRouter.min.json +1 -0
- package/artifacts/abis/IWrapper.min.json +1 -0
- package/artifacts/abis/Math64x64.min.json +1 -0
- package/artifacts/abis/MultichainBridgeHelper.min.json +1 -0
- package/artifacts/abis/MultichainRouterMock.min.json +1 -0
- package/artifacts/abis/OverMintTester.min.json +1 -1
- package/artifacts/abis/PausableControl.min.json +1 -0
- package/artifacts/abis/RewardsMinter.min.json +1 -0
- package/artifacts/abis/StakingMockFixedAPY.min.json +1 -0
- package/artifacts/abis/StakingRewardsFixedAPY.min.json +1 -0
- package/artifacts/abis/TokenOperation.min.json +1 -0
- package/artifacts/abis/cERC20.min.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/Avatar.dbg.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/Controller.dbg.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/GlobalConstraintInterface.dbg.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/IntVoteInterface.dbg.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/ReputationInterface.dbg.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/SchemeRegistrar.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/AggregatorV3Interface.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/ERC20.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/ERC20.json +13 -0
- 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/IERC2917.json +13 -0
- 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/ILendingPool.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IMultichainRouter.dbg.json +4 -0
- package/artifacts/contracts/Interfaces.sol/IMultichainRouter.json +67 -0
- package/artifacts/contracts/Interfaces.sol/INameService.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/Interfaces.sol/cERC20.json +13 -0
- package/artifacts/contracts/fuseFaucet/FuseFaucet.sol/FuseFaucet.dbg.json +1 -1
- package/artifacts/contracts/fuseFaucet/FuseFaucet.sol/FuseFaucet.json +2 -2
- package/artifacts/contracts/governance/ClaimersDistribution.sol/ClaimersDistribution.dbg.json +1 -1
- package/artifacts/contracts/governance/ClaimersDistribution.sol/ClaimersDistribution.json +2 -2
- package/artifacts/contracts/governance/CompoundVotingMachine.sol/CompoundVotingMachine.dbg.json +1 -1
- package/artifacts/contracts/governance/CompoundVotingMachine.sol/CompoundVotingMachine.json +2 -2
- package/artifacts/contracts/governance/GReputation.sol/GReputation.dbg.json +1 -1
- package/artifacts/contracts/governance/GReputation.sol/GReputation.json +2 -2
- package/artifacts/contracts/governance/GoodDollarStaking.sol/GoodDollarStaking.dbg.json +4 -0
- package/artifacts/contracts/governance/GoodDollarStaking.sol/GoodDollarStaking.json +1322 -0
- package/artifacts/contracts/governance/GoodDollarStaking.sol/RewardsMinter.dbg.json +4 -0
- package/artifacts/contracts/governance/GoodDollarStaking.sol/RewardsMinter.json +35 -0
- package/artifacts/contracts/governance/GovernanceStaking.sol/GovernanceStaking.dbg.json +1 -1
- package/artifacts/contracts/governance/GovernanceStaking.sol/GovernanceStaking.json +2 -2
- 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/Reputation.sol/Reputation.json +2 -2
- package/artifacts/contracts/governance/StakersDistribution.sol/StakersDistribution.dbg.json +1 -1
- package/artifacts/contracts/governance/StakersDistribution.sol/StakersDistribution.json +2 -2
- package/artifacts/contracts/invite/InvitesV1.sol/InvitesV1.dbg.json +1 -1
- package/artifacts/contracts/invite/InvitesV1.sol/InvitesV1.json +2 -2
- package/artifacts/contracts/mocks/AaveMock.sol/AaveMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/DAIMock.sol/DAIMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/DecimalsMock.sol/DecimalsMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/DistributionBridgeMock.sol/DistributionBridgeMock.dbg.json +4 -0
- package/artifacts/contracts/mocks/DistributionBridgeMock.sol/DistributionBridgeMock.json +152 -0
- package/artifacts/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTest.dbg.json +4 -0
- package/artifacts/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTest.json +662 -0
- package/artifacts/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTestHelper.dbg.json +4 -0
- package/artifacts/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTestHelper.json +680 -0
- 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 +4 -0
- package/artifacts/contracts/mocks/GoodDollarStakingMock.sol/GoodDollarStakingMock.json +1322 -0
- 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/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 +4 -0
- package/artifacts/contracts/mocks/MultichainRouterMock.sol/IWrapper.json +59 -0
- package/artifacts/contracts/mocks/MultichainRouterMock.sol/MultichainRouterMock.dbg.json +4 -0
- package/artifacts/contracts/mocks/MultichainRouterMock.sol/MultichainRouterMock.json +81 -0
- package/artifacts/contracts/mocks/OverMintTester.sol/IGoodDollarStakingTest.dbg.json +4 -0
- package/artifacts/contracts/mocks/OverMintTester.sol/IGoodDollarStakingTest.json +49 -0
- package/artifacts/contracts/mocks/OverMintTester.sol/OverMintTester.dbg.json +1 -1
- package/artifacts/contracts/mocks/OverMintTester.sol/OverMintTester.json +4 -4
- 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/SixteenDecimalsTokenMock.sol/SixteenDecimalsTokenMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/StakingMockFixedAPY.sol/StakingMockFixedAPY.dbg.json +4 -0
- package/artifacts/contracts/mocks/StakingMockFixedAPY.sol/StakingMockFixedAPY.json +682 -0
- package/artifacts/contracts/mocks/SwapHelperTest.sol/SwapHelperTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/SwapHelperTest.sol/SwapHelperTest.json +2 -2
- 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/UpgradableMock.json +2 -2
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock2.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock2.json +2 -2
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock3.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock3.json +2 -2
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock4.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock4.json +2 -2
- 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/DistributionHelper.sol/DistributionHelper.dbg.json +4 -0
- package/artifacts/contracts/reserve/DistributionHelper.sol/DistributionHelper.json +662 -0
- 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 +75 -35
- package/artifacts/contracts/staking/BaseShareField.sol/BaseShareField.dbg.json +1 -1
- package/artifacts/contracts/staking/BaseShareField.sol/BaseShareField.json +2 -2
- package/artifacts/contracts/staking/BaseShareFieldV2.sol/BaseShareFieldV2.dbg.json +1 -1
- package/artifacts/contracts/staking/BaseShareFieldV2.sol/BaseShareFieldV2.json +2 -2
- 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/FuseStakingV3.json +2 -2
- 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/UniswapV2SwapHelper.sol/UniswapV2SwapHelper.json +2 -2
- 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 +4 -0
- package/artifacts/contracts/staking/utils/Math64X64.sol/Math64x64.json +10 -0
- package/artifacts/contracts/staking/utils/StakingRewardsFixedAPY.sol/StakingRewardsFixedAPY.dbg.json +4 -0
- package/artifacts/contracts/staking/utils/StakingRewardsFixedAPY.sol/StakingRewardsFixedAPY.json +268 -0
- package/artifacts/contracts/ubi/UBIScheme.sol/UBIScheme.dbg.json +1 -1
- package/artifacts/contracts/ubi/UBIScheme.sol/UBIScheme.json +2 -2
- package/artifacts/contracts/utils/AdminWallet.sol/AdminWallet.dbg.json +1 -1
- package/artifacts/contracts/utils/AdminWallet.sol/AdminWallet.json +2 -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/BulkProof.sol/BulkProof.json +3 -34
- package/artifacts/contracts/utils/DAOContract.sol/DAOContract.dbg.json +1 -1
- package/artifacts/contracts/utils/DAOContract.sol/DAOContract.json +2 -2
- package/artifacts/contracts/utils/DAOUpgradeableContract.sol/DAOUpgradeableContract.dbg.json +1 -1
- package/artifacts/contracts/utils/DAOUpgradeableContract.sol/DAOUpgradeableContract.json +2 -2
- 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/GoodDollarMintBurnWrapper.sol/GoodDollarMintBurnWrapper.dbg.json +4 -0
- package/artifacts/contracts/utils/GoodDollarMintBurnWrapper.sol/GoodDollarMintBurnWrapper.json +1263 -0
- package/artifacts/contracts/utils/GoodDollarMintBurnWrapper.sol/IRouter.dbg.json +4 -0
- package/artifacts/contracts/utils/GoodDollarMintBurnWrapper.sol/IRouter.json +59 -0
- package/artifacts/contracts/utils/GoodDollarMintBurnWrapper.sol/PausableControl.dbg.json +4 -0
- package/artifacts/contracts/utils/GoodDollarMintBurnWrapper.sol/PausableControl.json +69 -0
- package/artifacts/contracts/utils/GoodDollarMintBurnWrapper.sol/TokenOperation.dbg.json +4 -0
- package/artifacts/contracts/utils/GoodDollarMintBurnWrapper.sol/TokenOperation.json +10 -0
- package/artifacts/contracts/utils/MultichainBridgeHelper.sol/MultichainBridgeHelper.dbg.json +4 -0
- package/artifacts/contracts/utils/MultichainBridgeHelper.sol/MultichainBridgeHelper.json +79 -0
- package/artifacts/contracts/utils/NameService.sol/NameService.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtocolUpgrade.sol/OldMarketMaker.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtocolUpgrade.sol/ProtocolUpgrade.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtocolUpgrade.sol/ProtocolUpgrade.json +2 -2
- package/artifacts/contracts/utils/ProtocolUpgradeFuse.sol/ProtocolUpgradeFuse.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtocolUpgradeFuse.sol/ProtocolUpgradeFuse.json +2 -2
- package/artifacts/contracts/utils/ProtocolUpgradeFuseRecover.sol/ProtocolUpgradeFuseRecover.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtocolUpgradeFuseRecover.sol/ProtocolUpgradeFuseRecover.json +2 -2
- package/artifacts/contracts/utils/ProtocolUpgradeRecover.sol/ProtocolUpgradeRecover.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtocolUpgradeRecover.sol/ProtocolUpgradeRecover.json +2 -2
- 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/ReputationTestHelper.sol/ReputationTestHelper.json +2 -2
- package/contracts/Interfaces.sol +20 -0
- package/contracts/governance/GoodDollarStaking.sol +510 -0
- package/contracts/governance/MultiBaseGovernanceShareField.sol +1 -0
- package/contracts/mocks/DistributionBridgeMock.sol +50 -0
- package/contracts/mocks/DistributionHelperTest.sol +22 -0
- package/contracts/mocks/GoodDollarStakingMock.sol +24 -0
- package/contracts/mocks/MultichainRouterMock.sol +38 -0
- package/contracts/mocks/OverMintTester.sol +39 -25
- package/contracts/mocks/StakingMockFixedAPY.sol +78 -0
- package/contracts/reserve/DistributionHelper.sol +142 -0
- package/contracts/reserve/GoodReserveCDai.sol +95 -41
- package/contracts/staking/utils/Math64X64.sol +268 -0
- package/contracts/staking/utils/StakingRewardsFixedAPY.sol +336 -0
- package/contracts/utils/BulkProof.sol +10 -10
- package/contracts/utils/GoodDollarMintBurnWrapper.sol +638 -0
- package/contracts/utils/MultichainBridgeHelper.sol +39 -0
- package/hardhat.config.ts +5 -3
- package/package.json +7 -4
- package/patches/@openzeppelin+hardhat-upgrades+1.7.0.patch.depracate +67 -0
- package/releases/deployment.json +10 -3
- package/releases/olddao.json +1 -1
- package/scripts/analytics/activeUsersCount.ts +65 -0
- package/scripts/analytics/activeWalletsStats.ts +150 -0
- package/scripts/analytics/claimIncidentStats.ts +117 -0
- package/scripts/analytics/faucetStats.ts +103 -0
- package/scripts/analytics/goodHolders.ts +50 -0
- package/scripts/{misc → analytics}/goodgiveback.ts +0 -0
- package/scripts/governance/airdropCalculation.ts +1 -0
- package/scripts/multichain-deploy/basicdao-deploy.ts +20 -5
- package/scripts/multichain-deploy/gdSavings-deploy.ts +232 -0
- package/scripts/multichain-deploy/helpers.ts +73 -8
- package/scripts/multichain-deploy/multichainWrapper-deploy.ts +56 -0
- package/scripts/multichain-deploy/nonubiDistribution-deploy.ts +170 -0
- package/scripts/voltageswaps.ts +47 -0
- package/test/governance/ClaimersDistribution.test.ts +1 -1
- package/test/governance/GoodDollarStaking.gd.test.ts +559 -0
- package/test/governance/GoodDollarStaking.good.test.ts +998 -0
- package/test/governance/GovernanceStaking.test.ts +43 -0
- package/test/helpers.ts +9 -12
- package/test/reserve/DistributionHelper.test.ts +394 -0
- package/test/reserve/GoodReserveCDai.distribution.test.ts +296 -0
- package/test/reserve/GoodReserveCDai.gdx.test.ts +21 -16
- package/test/reserve/GoodReserveCDai.pause.test.ts +116 -0
- package/test/staking/StakingRewardsFixedAPY.test.ts +900 -0
- package/test/utils/AdminWallet.test.ts +35 -6
- package/test/utils/GoodDollarMintBurnWrapper.test.ts +796 -0
- package/tsconfig.json +4 -9
- package/types/AccessControl.ts +361 -0
- package/types/CERC20.ts +25 -0
- package/types/DistributionBridgeMock.ts +251 -0
- package/types/DistributionHelper.ts +908 -0
- package/types/DistributionHelperTest.ts +909 -0
- package/types/DistributionHelperTestHelper.ts +945 -0
- package/types/ERC165.ts +104 -0
- package/types/ERC20.ts +101 -49
- package/types/GoodDollarMintBurnWrapper.ts +1806 -0
- package/types/GoodDollarStaking.ts +1855 -0
- package/types/GoodDollarStakingMock.ts +1855 -0
- package/types/GoodReserveCDai.ts +90 -55
- package/types/IAccessControl.ts +306 -0
- package/types/IERC165.ts +104 -0
- package/types/IERC20.ts +300 -0
- package/types/IERC20Metadata.ts +339 -0
- package/types/IERC2917.ts +25 -0
- package/types/IGoodDollarStakingTest.ts +160 -0
- package/types/IMultichainRouter.ts +166 -0
- package/types/IRouter.ts +143 -0
- package/types/IWrapper.ts +143 -0
- package/types/MultichainBridgeHelper.ts +170 -0
- package/types/MultichainRouterMock.ts +141 -0
- package/types/Pausable.ts +103 -0
- package/types/PausableControl.ts +125 -0
- package/types/{BulkProof.ts → RewardsMinter.ts} +24 -28
- package/types/StakingMockFixedAPY.ts +995 -0
- package/types/StakingRewardsFixedAPY.ts +428 -0
- package/types/factories/AaveStakingFactory__factory.ts +1 -1
- package/types/factories/AccessControl__factory.ts +227 -0
- package/types/factories/AdminWallet__factory.ts +1 -1
- package/types/factories/BaseShareFieldV2__factory.ts +1 -1
- package/types/factories/BaseShareField__factory.ts +1 -1
- package/types/factories/CERC20__factory.ts +13 -0
- package/types/factories/ClaimersDistribution__factory.ts +1 -1
- package/types/factories/CompoundStakingFactory__factory.ts +1 -1
- package/types/factories/CompoundVotingMachine__factory.ts +1 -1
- package/types/factories/DAOContract__factory.ts +1 -1
- package/types/factories/DAOUpgradeableContract__factory.ts +1 -1
- package/types/factories/DistributionBridgeMock__factory.ts +207 -0
- package/types/factories/DistributionHelperTestHelper__factory.ts +737 -0
- package/types/factories/DistributionHelperTest__factory.ts +717 -0
- package/types/factories/DistributionHelper__factory.ts +713 -0
- package/types/factories/DonationsStaking__factory.ts +1 -1
- package/types/factories/ERC165__factory.ts +39 -0
- package/types/factories/ERC20__factory.ts +13 -0
- package/types/factories/ExchangeHelper__factory.ts +1 -1
- package/types/factories/FuseFaucet__factory.ts +1 -1
- package/types/factories/FuseStakingV3__factory.ts +1 -1
- package/types/factories/GReputation__factory.ts +1 -1
- package/types/factories/GoodAaveStakingV2__factory.ts +1 -1
- package/types/factories/GoodAaveStaking__factory.ts +1 -1
- package/types/factories/GoodCompoundStakingTest__factory.ts +1 -1
- package/types/factories/GoodCompoundStakingV2__factory.ts +1 -1
- package/types/factories/GoodCompoundStaking__factory.ts +1 -1
- package/types/factories/GoodDollarMintBurnWrapper__factory.ts +1318 -0
- package/types/factories/GoodDollarStakingMock__factory.ts +1404 -0
- package/types/factories/GoodDollarStaking__factory.ts +1400 -0
- package/types/factories/GoodFundManagerTest__factory.ts +1 -1
- package/types/factories/GoodFundManager__factory.ts +1 -1
- package/types/factories/GoodMarketMaker__factory.ts +1 -1
- package/types/factories/GoodReserveCDai__factory.ts +74 -34
- package/types/factories/GovernanceStaking__factory.ts +1 -1
- package/types/factories/IAccessControl__factory.ts +198 -0
- package/types/factories/IERC165__factory.ts +42 -0
- package/types/factories/IERC20Metadata__factory.ts +248 -0
- package/types/factories/IERC20__factory.ts +203 -0
- package/types/factories/IERC2917__factory.ts +13 -0
- package/types/factories/IGoodDollarStakingTest__factory.ts +68 -0
- package/types/factories/IMultichainRouter__factory.ts +82 -0
- package/types/factories/IRouter__factory.ts +71 -0
- package/types/factories/IWrapper__factory.ts +71 -0
- package/types/factories/InvitesV1__factory.ts +1 -1
- package/types/factories/MultichainBridgeHelper__factory.ts +134 -0
- package/types/factories/MultichainRouterMock__factory.ts +141 -0
- package/types/factories/OverMintTesterRegularStake__factory.ts +1 -1
- package/types/factories/OverMintTester__factory.ts +3 -3
- package/types/factories/PausableControl__factory.ts +84 -0
- package/types/factories/Pausable__factory.ts +62 -0
- package/types/factories/ProtocolUpgradeFuseRecover__factory.ts +1 -1
- package/types/factories/ProtocolUpgradeFuse__factory.ts +1 -1
- package/types/factories/ProtocolUpgradeRecover__factory.ts +1 -1
- package/types/factories/ProtocolUpgrade__factory.ts +1 -1
- package/types/factories/ReputationTestHelper__factory.ts +1 -1
- package/types/factories/Reputation__factory.ts +1 -1
- package/types/factories/RewardsMinter__factory.ts +47 -0
- package/types/factories/StakersDistribution__factory.ts +1 -1
- package/types/factories/StakingMockFixedAPY__factory.ts +745 -0
- package/types/factories/StakingRewardsFixedAPY__factory.ts +287 -0
- package/types/factories/SwapHelperTest__factory.ts +1 -1
- package/types/factories/UBIScheme__factory.ts +1 -1
- package/types/factories/UniswapV2SwapHelper__factory.ts +1 -1
- package/types/factories/UpgradableMock2__factory.ts +1 -1
- package/types/factories/UpgradableMock3__factory.ts +1 -1
- package/types/factories/UpgradableMock4__factory.ts +1 -1
- package/types/factories/UpgradableMock__factory.ts +1 -1
- package/types/hardhat.d.ts +225 -9
- package/types/index.ts +50 -4
- package/yarn.lock +180 -104
- package/types/factories/BulkProof__factory.ts +0 -89
|
@@ -0,0 +1,737 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
6
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
DistributionHelperTestHelper,
|
|
9
|
+
DistributionHelperTestHelperInterface,
|
|
10
|
+
} from "../DistributionHelperTestHelper";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
anonymous: false,
|
|
15
|
+
inputs: [
|
|
16
|
+
{
|
|
17
|
+
indexed: false,
|
|
18
|
+
internalType: "address",
|
|
19
|
+
name: "previousAdmin",
|
|
20
|
+
type: "address",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
indexed: false,
|
|
24
|
+
internalType: "address",
|
|
25
|
+
name: "newAdmin",
|
|
26
|
+
type: "address",
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
name: "AdminChanged",
|
|
30
|
+
type: "event",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
anonymous: false,
|
|
34
|
+
inputs: [
|
|
35
|
+
{
|
|
36
|
+
indexed: true,
|
|
37
|
+
internalType: "address",
|
|
38
|
+
name: "beacon",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
name: "BeaconUpgraded",
|
|
43
|
+
type: "event",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
anonymous: false,
|
|
47
|
+
inputs: [
|
|
48
|
+
{
|
|
49
|
+
indexed: false,
|
|
50
|
+
internalType: "uint256",
|
|
51
|
+
name: "distributed",
|
|
52
|
+
type: "uint256",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
indexed: false,
|
|
56
|
+
internalType: "uint256",
|
|
57
|
+
name: "startingBalance",
|
|
58
|
+
type: "uint256",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
indexed: false,
|
|
62
|
+
internalType: "uint256",
|
|
63
|
+
name: "incomingAmount",
|
|
64
|
+
type: "uint256",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
components: [
|
|
68
|
+
{
|
|
69
|
+
internalType: "uint32",
|
|
70
|
+
name: "bps",
|
|
71
|
+
type: "uint32",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
internalType: "uint32",
|
|
75
|
+
name: "chainId",
|
|
76
|
+
type: "uint32",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
internalType: "address",
|
|
80
|
+
name: "addr",
|
|
81
|
+
type: "address",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
internalType: "enum DistributionHelper.TransferType",
|
|
85
|
+
name: "transferType",
|
|
86
|
+
type: "uint8",
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
indexed: false,
|
|
90
|
+
internalType: "struct DistributionHelper.DistributionRecipient[]",
|
|
91
|
+
name: "distributionRecipients",
|
|
92
|
+
type: "tuple[]",
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
name: "Distribution",
|
|
96
|
+
type: "event",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
anonymous: false,
|
|
100
|
+
inputs: [
|
|
101
|
+
{
|
|
102
|
+
components: [
|
|
103
|
+
{
|
|
104
|
+
internalType: "uint32",
|
|
105
|
+
name: "bps",
|
|
106
|
+
type: "uint32",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
internalType: "uint32",
|
|
110
|
+
name: "chainId",
|
|
111
|
+
type: "uint32",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
internalType: "address",
|
|
115
|
+
name: "addr",
|
|
116
|
+
type: "address",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
internalType: "enum DistributionHelper.TransferType",
|
|
120
|
+
name: "transferType",
|
|
121
|
+
type: "uint8",
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
indexed: false,
|
|
125
|
+
internalType: "struct DistributionHelper.DistributionRecipient",
|
|
126
|
+
name: "recipient",
|
|
127
|
+
type: "tuple",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
indexed: false,
|
|
131
|
+
internalType: "uint256",
|
|
132
|
+
name: "index",
|
|
133
|
+
type: "uint256",
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
name: "RecipientAdded",
|
|
137
|
+
type: "event",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
anonymous: false,
|
|
141
|
+
inputs: [
|
|
142
|
+
{
|
|
143
|
+
components: [
|
|
144
|
+
{
|
|
145
|
+
internalType: "uint32",
|
|
146
|
+
name: "bps",
|
|
147
|
+
type: "uint32",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
internalType: "uint32",
|
|
151
|
+
name: "chainId",
|
|
152
|
+
type: "uint32",
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
internalType: "address",
|
|
156
|
+
name: "addr",
|
|
157
|
+
type: "address",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
internalType: "enum DistributionHelper.TransferType",
|
|
161
|
+
name: "transferType",
|
|
162
|
+
type: "uint8",
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
indexed: false,
|
|
166
|
+
internalType: "struct DistributionHelper.DistributionRecipient",
|
|
167
|
+
name: "recipient",
|
|
168
|
+
type: "tuple",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
indexed: false,
|
|
172
|
+
internalType: "uint256",
|
|
173
|
+
name: "index",
|
|
174
|
+
type: "uint256",
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
name: "RecipientUpdated",
|
|
178
|
+
type: "event",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
anonymous: false,
|
|
182
|
+
inputs: [
|
|
183
|
+
{
|
|
184
|
+
indexed: true,
|
|
185
|
+
internalType: "bytes32",
|
|
186
|
+
name: "role",
|
|
187
|
+
type: "bytes32",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
indexed: true,
|
|
191
|
+
internalType: "bytes32",
|
|
192
|
+
name: "previousAdminRole",
|
|
193
|
+
type: "bytes32",
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
indexed: true,
|
|
197
|
+
internalType: "bytes32",
|
|
198
|
+
name: "newAdminRole",
|
|
199
|
+
type: "bytes32",
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
name: "RoleAdminChanged",
|
|
203
|
+
type: "event",
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
anonymous: false,
|
|
207
|
+
inputs: [
|
|
208
|
+
{
|
|
209
|
+
indexed: true,
|
|
210
|
+
internalType: "bytes32",
|
|
211
|
+
name: "role",
|
|
212
|
+
type: "bytes32",
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
indexed: true,
|
|
216
|
+
internalType: "address",
|
|
217
|
+
name: "account",
|
|
218
|
+
type: "address",
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
indexed: true,
|
|
222
|
+
internalType: "address",
|
|
223
|
+
name: "sender",
|
|
224
|
+
type: "address",
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
name: "RoleGranted",
|
|
228
|
+
type: "event",
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
anonymous: false,
|
|
232
|
+
inputs: [
|
|
233
|
+
{
|
|
234
|
+
indexed: true,
|
|
235
|
+
internalType: "bytes32",
|
|
236
|
+
name: "role",
|
|
237
|
+
type: "bytes32",
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
indexed: true,
|
|
241
|
+
internalType: "address",
|
|
242
|
+
name: "account",
|
|
243
|
+
type: "address",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
indexed: true,
|
|
247
|
+
internalType: "address",
|
|
248
|
+
name: "sender",
|
|
249
|
+
type: "address",
|
|
250
|
+
},
|
|
251
|
+
],
|
|
252
|
+
name: "RoleRevoked",
|
|
253
|
+
type: "event",
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
anonymous: false,
|
|
257
|
+
inputs: [
|
|
258
|
+
{
|
|
259
|
+
indexed: true,
|
|
260
|
+
internalType: "address",
|
|
261
|
+
name: "implementation",
|
|
262
|
+
type: "address",
|
|
263
|
+
},
|
|
264
|
+
],
|
|
265
|
+
name: "Upgraded",
|
|
266
|
+
type: "event",
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
inputs: [],
|
|
270
|
+
name: "DEFAULT_ADMIN_ROLE",
|
|
271
|
+
outputs: [
|
|
272
|
+
{
|
|
273
|
+
internalType: "bytes32",
|
|
274
|
+
name: "",
|
|
275
|
+
type: "bytes32",
|
|
276
|
+
},
|
|
277
|
+
],
|
|
278
|
+
stateMutability: "view",
|
|
279
|
+
type: "function",
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
inputs: [
|
|
283
|
+
{
|
|
284
|
+
components: [
|
|
285
|
+
{
|
|
286
|
+
internalType: "uint32",
|
|
287
|
+
name: "bps",
|
|
288
|
+
type: "uint32",
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
internalType: "uint32",
|
|
292
|
+
name: "chainId",
|
|
293
|
+
type: "uint32",
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
internalType: "address",
|
|
297
|
+
name: "addr",
|
|
298
|
+
type: "address",
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
internalType: "enum DistributionHelper.TransferType",
|
|
302
|
+
name: "transferType",
|
|
303
|
+
type: "uint8",
|
|
304
|
+
},
|
|
305
|
+
],
|
|
306
|
+
internalType: "struct DistributionHelper.DistributionRecipient",
|
|
307
|
+
name: "_recipient",
|
|
308
|
+
type: "tuple",
|
|
309
|
+
},
|
|
310
|
+
],
|
|
311
|
+
name: "addOrUpdateRecipient",
|
|
312
|
+
outputs: [],
|
|
313
|
+
stateMutability: "nonpayable",
|
|
314
|
+
type: "function",
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
inputs: [],
|
|
318
|
+
name: "anyGoodDollar",
|
|
319
|
+
outputs: [
|
|
320
|
+
{
|
|
321
|
+
internalType: "address",
|
|
322
|
+
name: "",
|
|
323
|
+
type: "address",
|
|
324
|
+
},
|
|
325
|
+
],
|
|
326
|
+
stateMutability: "view",
|
|
327
|
+
type: "function",
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
inputs: [],
|
|
331
|
+
name: "avatar",
|
|
332
|
+
outputs: [
|
|
333
|
+
{
|
|
334
|
+
internalType: "address",
|
|
335
|
+
name: "",
|
|
336
|
+
type: "address",
|
|
337
|
+
},
|
|
338
|
+
],
|
|
339
|
+
stateMutability: "view",
|
|
340
|
+
type: "function",
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
inputs: [],
|
|
344
|
+
name: "dao",
|
|
345
|
+
outputs: [
|
|
346
|
+
{
|
|
347
|
+
internalType: "contract Controller",
|
|
348
|
+
name: "",
|
|
349
|
+
type: "address",
|
|
350
|
+
},
|
|
351
|
+
],
|
|
352
|
+
stateMutability: "view",
|
|
353
|
+
type: "function",
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
inputs: [
|
|
357
|
+
{
|
|
358
|
+
internalType: "uint256",
|
|
359
|
+
name: "",
|
|
360
|
+
type: "uint256",
|
|
361
|
+
},
|
|
362
|
+
],
|
|
363
|
+
name: "distributionRecipients",
|
|
364
|
+
outputs: [
|
|
365
|
+
{
|
|
366
|
+
internalType: "uint32",
|
|
367
|
+
name: "bps",
|
|
368
|
+
type: "uint32",
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
internalType: "uint32",
|
|
372
|
+
name: "chainId",
|
|
373
|
+
type: "uint32",
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
internalType: "address",
|
|
377
|
+
name: "addr",
|
|
378
|
+
type: "address",
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
internalType: "enum DistributionHelper.TransferType",
|
|
382
|
+
name: "transferType",
|
|
383
|
+
type: "uint8",
|
|
384
|
+
},
|
|
385
|
+
],
|
|
386
|
+
stateMutability: "view",
|
|
387
|
+
type: "function",
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
inputs: [],
|
|
391
|
+
name: "fuseBridge",
|
|
392
|
+
outputs: [
|
|
393
|
+
{
|
|
394
|
+
internalType: "address",
|
|
395
|
+
name: "",
|
|
396
|
+
type: "address",
|
|
397
|
+
},
|
|
398
|
+
],
|
|
399
|
+
stateMutability: "view",
|
|
400
|
+
type: "function",
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
inputs: [
|
|
404
|
+
{
|
|
405
|
+
internalType: "bytes32",
|
|
406
|
+
name: "role",
|
|
407
|
+
type: "bytes32",
|
|
408
|
+
},
|
|
409
|
+
],
|
|
410
|
+
name: "getRoleAdmin",
|
|
411
|
+
outputs: [
|
|
412
|
+
{
|
|
413
|
+
internalType: "bytes32",
|
|
414
|
+
name: "",
|
|
415
|
+
type: "bytes32",
|
|
416
|
+
},
|
|
417
|
+
],
|
|
418
|
+
stateMutability: "view",
|
|
419
|
+
type: "function",
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
inputs: [
|
|
423
|
+
{
|
|
424
|
+
internalType: "bytes32",
|
|
425
|
+
name: "role",
|
|
426
|
+
type: "bytes32",
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
internalType: "uint256",
|
|
430
|
+
name: "index",
|
|
431
|
+
type: "uint256",
|
|
432
|
+
},
|
|
433
|
+
],
|
|
434
|
+
name: "getRoleMember",
|
|
435
|
+
outputs: [
|
|
436
|
+
{
|
|
437
|
+
internalType: "address",
|
|
438
|
+
name: "",
|
|
439
|
+
type: "address",
|
|
440
|
+
},
|
|
441
|
+
],
|
|
442
|
+
stateMutability: "view",
|
|
443
|
+
type: "function",
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
inputs: [
|
|
447
|
+
{
|
|
448
|
+
internalType: "bytes32",
|
|
449
|
+
name: "role",
|
|
450
|
+
type: "bytes32",
|
|
451
|
+
},
|
|
452
|
+
],
|
|
453
|
+
name: "getRoleMemberCount",
|
|
454
|
+
outputs: [
|
|
455
|
+
{
|
|
456
|
+
internalType: "uint256",
|
|
457
|
+
name: "",
|
|
458
|
+
type: "uint256",
|
|
459
|
+
},
|
|
460
|
+
],
|
|
461
|
+
stateMutability: "view",
|
|
462
|
+
type: "function",
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
inputs: [
|
|
466
|
+
{
|
|
467
|
+
internalType: "bytes32",
|
|
468
|
+
name: "role",
|
|
469
|
+
type: "bytes32",
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
internalType: "address",
|
|
473
|
+
name: "account",
|
|
474
|
+
type: "address",
|
|
475
|
+
},
|
|
476
|
+
],
|
|
477
|
+
name: "grantRole",
|
|
478
|
+
outputs: [],
|
|
479
|
+
stateMutability: "nonpayable",
|
|
480
|
+
type: "function",
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
inputs: [
|
|
484
|
+
{
|
|
485
|
+
internalType: "bytes32",
|
|
486
|
+
name: "role",
|
|
487
|
+
type: "bytes32",
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
internalType: "address",
|
|
491
|
+
name: "account",
|
|
492
|
+
type: "address",
|
|
493
|
+
},
|
|
494
|
+
],
|
|
495
|
+
name: "hasRole",
|
|
496
|
+
outputs: [
|
|
497
|
+
{
|
|
498
|
+
internalType: "bool",
|
|
499
|
+
name: "",
|
|
500
|
+
type: "bool",
|
|
501
|
+
},
|
|
502
|
+
],
|
|
503
|
+
stateMutability: "view",
|
|
504
|
+
type: "function",
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
inputs: [
|
|
508
|
+
{
|
|
509
|
+
internalType: "contract INameService",
|
|
510
|
+
name: "_ns",
|
|
511
|
+
type: "address",
|
|
512
|
+
},
|
|
513
|
+
],
|
|
514
|
+
name: "initialize",
|
|
515
|
+
outputs: [],
|
|
516
|
+
stateMutability: "nonpayable",
|
|
517
|
+
type: "function",
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
inputs: [],
|
|
521
|
+
name: "multiChainBridge",
|
|
522
|
+
outputs: [
|
|
523
|
+
{
|
|
524
|
+
internalType: "contract IMultichainRouter",
|
|
525
|
+
name: "",
|
|
526
|
+
type: "address",
|
|
527
|
+
},
|
|
528
|
+
],
|
|
529
|
+
stateMutability: "view",
|
|
530
|
+
type: "function",
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
inputs: [],
|
|
534
|
+
name: "nameService",
|
|
535
|
+
outputs: [
|
|
536
|
+
{
|
|
537
|
+
internalType: "contract INameService",
|
|
538
|
+
name: "",
|
|
539
|
+
type: "address",
|
|
540
|
+
},
|
|
541
|
+
],
|
|
542
|
+
stateMutability: "view",
|
|
543
|
+
type: "function",
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
inputs: [],
|
|
547
|
+
name: "nativeToken",
|
|
548
|
+
outputs: [
|
|
549
|
+
{
|
|
550
|
+
internalType: "contract IGoodDollar",
|
|
551
|
+
name: "",
|
|
552
|
+
type: "address",
|
|
553
|
+
},
|
|
554
|
+
],
|
|
555
|
+
stateMutability: "view",
|
|
556
|
+
type: "function",
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
inputs: [
|
|
560
|
+
{
|
|
561
|
+
internalType: "uint256",
|
|
562
|
+
name: "_amount",
|
|
563
|
+
type: "uint256",
|
|
564
|
+
},
|
|
565
|
+
],
|
|
566
|
+
name: "onDistribution",
|
|
567
|
+
outputs: [],
|
|
568
|
+
stateMutability: "nonpayable",
|
|
569
|
+
type: "function",
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
inputs: [
|
|
573
|
+
{
|
|
574
|
+
internalType: "bytes32",
|
|
575
|
+
name: "role",
|
|
576
|
+
type: "bytes32",
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
internalType: "address",
|
|
580
|
+
name: "account",
|
|
581
|
+
type: "address",
|
|
582
|
+
},
|
|
583
|
+
],
|
|
584
|
+
name: "renounceRole",
|
|
585
|
+
outputs: [],
|
|
586
|
+
stateMutability: "nonpayable",
|
|
587
|
+
type: "function",
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
inputs: [
|
|
591
|
+
{
|
|
592
|
+
internalType: "bytes32",
|
|
593
|
+
name: "role",
|
|
594
|
+
type: "bytes32",
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
internalType: "address",
|
|
598
|
+
name: "account",
|
|
599
|
+
type: "address",
|
|
600
|
+
},
|
|
601
|
+
],
|
|
602
|
+
name: "revokeRole",
|
|
603
|
+
outputs: [],
|
|
604
|
+
stateMutability: "nonpayable",
|
|
605
|
+
type: "function",
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
inputs: [
|
|
609
|
+
{
|
|
610
|
+
internalType: "address",
|
|
611
|
+
name: "_fuseBridge",
|
|
612
|
+
type: "address",
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
internalType: "address",
|
|
616
|
+
name: "_multiBridge",
|
|
617
|
+
type: "address",
|
|
618
|
+
},
|
|
619
|
+
],
|
|
620
|
+
name: "setBridges",
|
|
621
|
+
outputs: [],
|
|
622
|
+
stateMutability: "nonpayable",
|
|
623
|
+
type: "function",
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
inputs: [
|
|
627
|
+
{
|
|
628
|
+
internalType: "bytes4",
|
|
629
|
+
name: "interfaceId",
|
|
630
|
+
type: "bytes4",
|
|
631
|
+
},
|
|
632
|
+
],
|
|
633
|
+
name: "supportsInterface",
|
|
634
|
+
outputs: [
|
|
635
|
+
{
|
|
636
|
+
internalType: "bool",
|
|
637
|
+
name: "",
|
|
638
|
+
type: "bool",
|
|
639
|
+
},
|
|
640
|
+
],
|
|
641
|
+
stateMutability: "view",
|
|
642
|
+
type: "function",
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
inputs: [],
|
|
646
|
+
name: "updateAvatar",
|
|
647
|
+
outputs: [],
|
|
648
|
+
stateMutability: "nonpayable",
|
|
649
|
+
type: "function",
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
inputs: [
|
|
653
|
+
{
|
|
654
|
+
internalType: "address",
|
|
655
|
+
name: "newImplementation",
|
|
656
|
+
type: "address",
|
|
657
|
+
},
|
|
658
|
+
],
|
|
659
|
+
name: "upgradeTo",
|
|
660
|
+
outputs: [],
|
|
661
|
+
stateMutability: "nonpayable",
|
|
662
|
+
type: "function",
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
inputs: [
|
|
666
|
+
{
|
|
667
|
+
internalType: "address",
|
|
668
|
+
name: "newImplementation",
|
|
669
|
+
type: "address",
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
internalType: "bytes",
|
|
673
|
+
name: "data",
|
|
674
|
+
type: "bytes",
|
|
675
|
+
},
|
|
676
|
+
],
|
|
677
|
+
name: "upgradeToAndCall",
|
|
678
|
+
outputs: [],
|
|
679
|
+
stateMutability: "payable",
|
|
680
|
+
type: "function",
|
|
681
|
+
},
|
|
682
|
+
];
|
|
683
|
+
|
|
684
|
+
const _bytecode =
|
|
685
|
+
"0x60a06040523060601b60805234801561001757600080fd5b5060805160601c6124c961004b6000396000818161068b015281816106d40152818161075d015261079d01526124c96000f3fe60806040526004361061011b5760003560e01c806301ffc9a71461012057806318780820146101555780631b3c90a8146101a25780631e599ff7146101b7578063248a9ca3146101e55780632f2ff15d14610213578063346ef41b1461023357806336568abe146102635780633659cfe6146102835780633e6326fc146102a35780634162169f146102c35780634181d43e146102e35780634f1ef286146103045780635aef7de61461031757806386d97a1a146103375780639010d07c1461035757806391d1485414610377578063a217fddf14610397578063a8ba3890146103ac578063c4b1b1a6146103cc578063c4d66de8146103ed578063ca15c8731461040d578063d547741f1461042d578063e1758bd81461044d575b600080fd5b34801561012c57600080fd5b5061014061013b366004611d26565b610462565b60405190151581526020015b60405180910390f35b34801561016157600080fd5b506101a0610170366004611d65565b61016380546001600160a01b039384166001600160a01b0319918216179091556101648054929093169116179055565b005b3480156101ae57600080fd5b506101a061048d565b3480156101c357600080fd5b50610163546101d8906001600160a01b031681565b60405161014c9190611d9e565b3480156101f157600080fd5b50610205610200366004611db2565b6105d2565b60405190815260200161014c565b34801561021f57600080fd5b506101a061022e366004611dcb565b6105e7565b34801561023f57600080fd5b5061025361024e366004611db2565b61060f565b60405161014c9493929190611e28565b34801561026f57600080fd5b506101a061027e366004611dcb565b61065d565b34801561028f57600080fd5b506101a061029e366004611e59565b610680565b3480156102af57600080fd5b506067546101d8906001600160a01b031681565b3480156102cf57600080fd5b506065546101d8906001600160a01b031681565b3480156102ef57600080fd5b50610164546101d8906001600160a01b031681565b6101a0610312366004611ebc565b610752565b34801561032357600080fd5b506066546101d8906001600160a01b031681565b34801561034357600080fd5b506101a0610352366004611f7c565b61080c565b34801561036357600080fd5b506101d8610372366004612000565b610a81565b34801561038357600080fd5b50610140610392366004611dcb565b610aa1565b3480156103a357600080fd5b50610205600081565b3480156103b857600080fd5b506101a06103c7366004611db2565b610acc565b3480156103d857600080fd5b50610165546101d8906001600160a01b031681565b3480156103f957600080fd5b506101a0610408366004611e59565b610c2a565b34801561041957600080fd5b50610205610428366004611db2565b610ee4565b34801561043957600080fd5b506101a0610448366004611dcb565b610efc565b34801561045957600080fd5b506101d8610f06565b60006001600160e01b03198216635a05180f60e01b1480610487575061048782610fa2565b92915050565b60675460405163bf40fac160e01b815260206004820152600a60248201526921a7a72a2927a62622a960b11b60448201526001600160a01b039091169063bf40fac19060640160206040518083038186803b1580156104eb57600080fd5b505afa1580156104ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105239190612022565b606580546001600160a01b0319166001600160a01b0392909216918217905560408051632d77bef360e11b81529051635aef7de691600480820192602092909190829003018186803b15801561057857600080fd5b505afa15801561058c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b09190612022565b606680546001600160a01b0319166001600160a01b0392909216919091179055565b600090815260fe602052604090206001015490565b6105f18282610fd7565b60008281526101306020526040902061060a9082610ff4565b505050565b610162818154811061062057600080fd5b60009182526020909120015463ffffffff8082169250600160201b82041690600160401b81046001600160a01b031690600160e01b900460ff1684565b6106678282611009565b60008281526101306020526040902061060a9082611083565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156106d25760405162461bcd60e51b81526004016106c99061203f565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610704611098565b6001600160a01b03161461072a5760405162461bcd60e51b81526004016106c990612079565b610733816110b4565b6040805160008082526020820190925261074f918391906110bc565b50565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016141561079b5760405162461bcd60e51b81526004016106c99061203f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166107cd611098565b6001600160a01b0316146107f35760405162461bcd60e51b81526004016106c990612079565b6107fc826110b4565b610808828260016110bc565b5050565b60006108188133611203565b60005b610162548110156109725782604001516001600160a01b03166101628281548110610848576108486120b3565b600091825260209091200154600160401b90046001600160a01b031614156109605782610162828154811061087f5761087f6120b3565b60009182526020918290208351910180549284015160408501516001600160a01b0316600160401b02600160401b600160e01b031963ffffffff928316600160201b026001600160401b031990961692909416919091179390931791821683178155606084015190929091839160ff60e01b1916600160401b600160e81b031990911617600160e01b83600281111561091a5761091a611df0565b02179055509050507fd26d9de175cfca2c3e0cad9d09c85f0ce6c7fa5257382d00dc26dc5fb25cd8df83826040516109539291906120c9565b60405180910390a1505050565b8061096a81612130565b91505061081b565b50610162546040517f2e65f65347b2e76218df0b7b6b594a3862c81e85706795e700237093c47a3957916109a8918591906120c9565b60405180910390a1610162805460018101825560009190915282517f29af0939a5988989bfee913a9ad10b9335cb63ebc9fd2b69e5f877d0455ac9199091018054602085015160408601516001600160a01b0316600160401b02600160401b600160e01b031963ffffffff928316600160201b026001600160401b031990941692909516919091179190911792831681178255606085015185939091839160ff60e01b19909116600160401b600160e81b031990911617600160e01b836002811115610a7657610a76611df0565b021790555050505050565b600082815261013060205260408120610a9a9083611267565b9392505050565b600091825260fe602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000610ad6610f06565b6001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610b019190611d9e565b60206040518083038186803b158015610b1957600080fd5b505afa158015610b2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b51919061214b565b905080610b5c575050565b6000805b61016254811015610bf25760006101628281548110610b8157610b816120b3565b6000918252602090912001805490915063ffffffff1615610bdf57805460009061271090610bb59063ffffffff1687612164565b610bbf9190612183565b9050610bcb81856121a5565b93508015610bdd57610bdd8282611273565b505b5080610bea81612130565b915050610b60565b507f1a1e3e6e1822c78a68db5a0be6136fecf7718cccae9f6b92d2115aa0ffc9213f81838561016260405161095394939291906121bd565b600054610100900460ff1680610c43575060005460ff16155b610c5f5760405162461bcd60e51b81526004016106c990612257565b600054610100900460ff16158015610c81576000805461ffff19166101011790555b610c89611514565b610c928261159f565b606654610caa906000906001600160a01b03166115c2565b60675460405163bf40fac160e01b815260206004820152600f60248201526e1094925111d157d0d3d395149050d5608a1b60448201526001600160a01b039091169063bf40fac19060640160206040518083038186803b158015610d0d57600080fd5b505afa158015610d21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d459190612022565b61016380546001600160a01b0319166001600160a01b0392831617905560675460405163bf40fac160e01b815260206004820152601160248201527026aaa62a24a1a420a4a72fa927aaaa22a960791b604482015291169063bf40fac19060640160206040518083038186803b158015610dbe57600080fd5b505afa158015610dd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df69190612022565b61016480546001600160a01b0319166001600160a01b0392831617905560675460405163bf40fac160e01b815260206004820152601860248201527726aaa62a24a1a420a4a72fa0a72ca3a7a7a22227a62620a960411b604482015291169063bf40fac19060640160206040518083038186803b158015610e7657600080fd5b505afa158015610e8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eae9190612022565b61016580546001600160a01b0319166001600160a01b03929092169190911790558015610808576000805461ff00191690555050565b600081815261013060205260408120610487906115cc565b61066782826115d6565b60675460405163bf40fac160e01b815260206004820152600a60248201526923a7a7a22227a62620a960b11b60448201526000916001600160a01b03169063bf40fac19060640160206040518083038186803b158015610f6557600080fd5b505afa158015610f79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9d9190612022565b905090565b60006001600160e01b03198216637965db0b60e01b148061048757506301ffc9a760e01b6001600160e01b0319831614610487565b610fe0826105d2565b610fea8133611203565b61060a83836115f3565b6000610a9a836001600160a01b038416611679565b6001600160a01b03811633146110795760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016106c9565b61080882826116c8565b6000610a9a836001600160a01b03841661172f565b60008051602061244d833981519152546001600160a01b031690565b61074f611822565b60006110c6611098565b90506110d1846118f6565b6000835111806110de5750815b156110ef576110ed8484611989565b505b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143805460ff166111fc57805460ff1916600117815560405161116a90869061113b908590602401611d9e565b60408051601f198184030181529190526020810180516001600160e01b0316631b2ce7f360e11b179052611989565b50805460ff1916815561117b611098565b6001600160a01b0316826001600160a01b0316146111f35760405162461bcd60e51b815260206004820152602f60248201527f45524331393637557067726164653a207570677261646520627265616b73206660448201526e75727468657220757067726164657360881b60648201526084016106c9565b6111fc85611a74565b5050505050565b61120d8282610aa1565b61080857611225816001600160a01b03166014611ab4565b611230836020611ab4565b6040516020016112419291906122d5565b60408051601f198184030181529082905262461bcd60e51b82526106c991600401612370565b6000610a9a8383611c4f565b60008254600160e01b900460ff16600281111561129257611292611df0565b1415611356576112a0610f06565b61016354835460408051600160401b90920460601b6001600160601b0319166020830152805180830360140181526034830191829052630200057560e51b9091526001600160a01b0393841693634000aea093611304939116918691603801612383565b602060405180830381600087803b15801561131e57600080fd5b505af1158015611332573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060a91906123aa565b60018254600160e01b900460ff16600281111561137557611375611df0565b141561149b57611383610f06565b6101645460405163095ea7b360e01b81526001600160a01b0391821660048201526024810184905291169063095ea7b390604401602060405180830381600087803b1580156113d157600080fd5b505af11580156113e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061140991906123aa565b50610164546101655483546040516376defaf160e11b81526001600160a01b039283166004820152600160401b82048316602482015260448101859052600160201b90910463ffffffff16606482015291169063edbdf5e290608401600060405180830381600087803b15801561147f57600080fd5b505af1158015611493573d6000803e3d6000fd5b505050505050565b60028254600160e01b900460ff1660028111156114ba576114ba611df0565b1415610808576114c8610f06565b8254604051630200057560e51b81526001600160a01b03600160401b90920482166004820152602481018490526060604482015260006064820152911690634000aea090608401611304565b600054610100900460ff168061152d575060005460ff16155b6115495760405162461bcd60e51b81526004016106c990612257565b600054610100900460ff1615801561156b576000805461ffff19166101011790555b611573611c79565b61157b611c79565b611583611c79565b61158b611c79565b801561074f576000805461ff001916905550565b606780546001600160a01b0319166001600160a01b03831617905561074f61048d565b6105f18282611ce3565b6000610487825490565b6115df826105d2565b6115e98133611203565b61060a83836116c8565b6115fd8282610aa1565b61080857600082815260fe602090815260408083206001600160a01b03851684529091529020805460ff191660011790556116353390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008181526001830160205260408120546116c057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610487565b506000610487565b6116d28282610aa1565b1561080857600082815260fe602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600081815260018301602052604081205480156118185760006117536001836123cc565b8554909150600090611767906001906123cc565b90508181146117cc576000866000018281548110611787576117876120b3565b90600052602060002001549050808760000184815481106117aa576117aa6120b3565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806117dd576117dd6123e3565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610487565b6000915050610487565b60655460408051632d77bef360e11b8152905133926001600160a01b031691635aef7de6916004808301926020929190829003018186803b15801561186657600080fd5b505afa15801561187a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189e9190612022565b6001600160a01b0316146118f45760405162461bcd60e51b815260206004820181905260248201527f6f6e6c79206176617461722063616e2063616c6c2074686973206d6574686f6460448201526064016106c9565b565b803b61195a5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016106c9565b60008051602061244d83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060823b6119e85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016106c9565b600080846001600160a01b031684604051611a0391906123f9565b600060405180830381855af49150503d8060008114611a3e576040519150601f19603f3d011682016040523d82523d6000602084013e611a43565b606091505b5091509150611a6b828260405180606001604052806027815260200161246d60279139611ced565b95945050505050565b611a7d816118f6565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606000611ac3836002612164565b611ace9060026121a5565b6001600160401b03811115611ae557611ae5611e76565b6040519080825280601f01601f191660200182016040528015611b0f576020820181803683370190505b509050600360fc1b81600081518110611b2a57611b2a6120b3565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611b5957611b596120b3565b60200101906001600160f81b031916908160001a9053506000611b7d846002612164565b611b889060016121a5565b90505b6001811115611c00576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611bbc57611bbc6120b3565b1a60f81b828281518110611bd257611bd26120b3565b60200101906001600160f81b031916908160001a90535060049490941c93611bf981612415565b9050611b8b565b508315610a9a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016106c9565b6000826000018281548110611c6657611c666120b3565b9060005260206000200154905092915050565b600054610100900460ff1680611c92575060005460ff16155b611cae5760405162461bcd60e51b81526004016106c990612257565b600054610100900460ff1615801561158b576000805461ffff1916610101179055801561074f576000805461ff001916905550565b61080882826115f3565b60608315611cfc575081610a9a565b825115611d0c5782518084602001fd5b8160405162461bcd60e51b81526004016106c99190612370565b600060208284031215611d3857600080fd5b81356001600160e01b031981168114610a9a57600080fd5b6001600160a01b038116811461074f57600080fd5b60008060408385031215611d7857600080fd5b8235611d8381611d50565b91506020830135611d9381611d50565b809150509250929050565b6001600160a01b0391909116815260200190565b600060208284031215611dc457600080fd5b5035919050565b60008060408385031215611dde57600080fd5b823591506020830135611d9381611d50565b634e487b7160e01b600052602160045260246000fd5b60038110611e2457634e487b7160e01b600052602160045260246000fd5b9052565b63ffffffff8581168252841660208201526001600160a01b038316604082015260808101611a6b6060830184611e06565b600060208284031215611e6b57600080fd5b8135610a9a81611d50565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611eb457611eb4611e76565b604052919050565b60008060408385031215611ecf57600080fd5b8235611eda81611d50565b91506020838101356001600160401b0380821115611ef757600080fd5b818601915086601f830112611f0b57600080fd5b813581811115611f1d57611f1d611e76565b611f2f601f8201601f19168501611e8c565b91508082528784828501011115611f4557600080fd5b80848401858401376000848284010152508093505050509250929050565b803563ffffffff81168114611f7757600080fd5b919050565b600060808284031215611f8e57600080fd5b604051608081016001600160401b0381118282101715611fb057611fb0611e76565b604052611fbc83611f63565b8152611fca60208401611f63565b60208201526040830135611fdd81611d50565b6040820152606083013560038110611ff457600080fd5b60608201529392505050565b6000806040838503121561201357600080fd5b50508035926020909101359150565b60006020828403121561203457600080fd5b8151610a9a81611d50565b6020808252602c9082015260008051602061242d83398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c9082015260008051602061242d83398151915260408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b825163ffffffff9081168252602080850151909116908201526040808401516001600160a01b03169082015260608084015160a083019161210c90840182611e06565b508260808301529392505050565b634e487b7160e01b600052601160045260246000fd5b60006000198214156121445761214461211a565b5060010190565b60006020828403121561215d57600080fd5b5051919050565b600081600019048311821515161561217e5761217e61211a565b500290565b6000826121a057634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156121b8576121b861211a565b500190565b6000608080830187845260208781860152604087818701526060848188015283885480865260a0890191508960005284600020955060005b8181101561224557865463ffffffff808216855281881c168785015280861c6001600160a01b03168685015261223485850160e083901c60ff16611e06565b5060019687019692880192016121f5565b50909c9b505050505050505050505050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60005b838110156122c05781810151838201526020016122a8565b838111156122cf576000848401525b50505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516123078160178501602088016122a5565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516123388160288401602088016122a5565b01602801949350505050565b6000815180845261235c8160208601602086016122a5565b601f01601f19169290920160200192915050565b602081526000610a9a6020830184612344565b60018060a01b0384168152826020820152606060408201526000611a6b6060830184612344565b6000602082840312156123bc57600080fd5b81518015158114610a9a57600080fd5b6000828210156123de576123de61211a565b500390565b634e487b7160e01b600052603160045260246000fd5b6000825161240b8184602087016122a5565b9190910192915050565b6000816124245761242461211a565b50600019019056fe46756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220d4b8769b677eacfe530b6daf85b0124a9feec0ef1b1866ad326fb08b7c81ed0464736f6c63430008080033";
|
|
686
|
+
|
|
687
|
+
type DistributionHelperTestHelperConstructorParams =
|
|
688
|
+
| [signer?: Signer]
|
|
689
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
690
|
+
|
|
691
|
+
const isSuperArgs = (
|
|
692
|
+
xs: DistributionHelperTestHelperConstructorParams
|
|
693
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
694
|
+
|
|
695
|
+
export class DistributionHelperTestHelper__factory extends ContractFactory {
|
|
696
|
+
constructor(...args: DistributionHelperTestHelperConstructorParams) {
|
|
697
|
+
if (isSuperArgs(args)) {
|
|
698
|
+
super(...args);
|
|
699
|
+
} else {
|
|
700
|
+
super(_abi, _bytecode, args[0]);
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
deploy(
|
|
705
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
706
|
+
): Promise<DistributionHelperTestHelper> {
|
|
707
|
+
return super.deploy(
|
|
708
|
+
overrides || {}
|
|
709
|
+
) as Promise<DistributionHelperTestHelper>;
|
|
710
|
+
}
|
|
711
|
+
getDeployTransaction(
|
|
712
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
713
|
+
): TransactionRequest {
|
|
714
|
+
return super.getDeployTransaction(overrides || {});
|
|
715
|
+
}
|
|
716
|
+
attach(address: string): DistributionHelperTestHelper {
|
|
717
|
+
return super.attach(address) as DistributionHelperTestHelper;
|
|
718
|
+
}
|
|
719
|
+
connect(signer: Signer): DistributionHelperTestHelper__factory {
|
|
720
|
+
return super.connect(signer) as DistributionHelperTestHelper__factory;
|
|
721
|
+
}
|
|
722
|
+
static readonly bytecode = _bytecode;
|
|
723
|
+
static readonly abi = _abi;
|
|
724
|
+
static createInterface(): DistributionHelperTestHelperInterface {
|
|
725
|
+
return new utils.Interface(_abi) as DistributionHelperTestHelperInterface;
|
|
726
|
+
}
|
|
727
|
+
static connect(
|
|
728
|
+
address: string,
|
|
729
|
+
signerOrProvider: Signer | Provider
|
|
730
|
+
): DistributionHelperTestHelper {
|
|
731
|
+
return new Contract(
|
|
732
|
+
address,
|
|
733
|
+
_abi,
|
|
734
|
+
signerOrProvider
|
|
735
|
+
) as DistributionHelperTestHelper;
|
|
736
|
+
}
|
|
737
|
+
}
|