@gooddollar/goodprotocol 2.0.22 → 2.0.24
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/BuyGDClone.min.json +1 -1
- package/artifacts/abis/BuyGDCloneFactory.min.json +1 -1
- package/artifacts/abis/DistributionHelper.min.json +1 -1
- package/artifacts/abis/DistributionHelperTest.min.json +1 -1
- package/artifacts/abis/DistributionHelperTestHelper.min.json +1 -1
- package/artifacts/abis/DonateGDClone.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/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/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/fuseFaucet/Faucet.sol/Faucet.dbg.json +1 -1
- package/artifacts/contracts/fuseFaucet/FuseFaucet.sol/FuseFaucet.dbg.json +1 -1
- package/artifacts/contracts/fuseFaucet/FuseFaucetV2.sol/FuseFaucetV2.dbg.json +1 -1
- package/artifacts/contracts/governance/ClaimersDistribution.sol/ClaimersDistribution.dbg.json +1 -1
- package/artifacts/contracts/governance/CompoundVotingMachine.sol/CompoundVotingMachine.dbg.json +1 -1
- package/artifacts/contracts/governance/GReputation.sol/GReputation.dbg.json +1 -1
- package/artifacts/contracts/governance/GoodDollarStaking.sol/GoodDollarStaking.dbg.json +1 -1
- package/artifacts/contracts/governance/GoodDollarStaking.sol/IGovernanceStaking.dbg.json +1 -1
- package/artifacts/contracts/governance/GoodDollarStaking.sol/IStakingUpgrade.dbg.json +1 -1
- package/artifacts/contracts/governance/GoodDollarStaking.sol/RewardsMinter.dbg.json +1 -1
- package/artifacts/contracts/governance/GovernanceStaking.sol/GovernanceStaking.dbg.json +1 -1
- package/artifacts/contracts/governance/MultiBaseGovernanceShareField.sol/MultiBaseGovernanceShareField.dbg.json +1 -1
- package/artifacts/contracts/governance/Reputation.sol/Reputation.dbg.json +1 -1
- package/artifacts/contracts/governance/StakersDistribution.sol/StakersDistribution.dbg.json +1 -1
- package/artifacts/contracts/governance/StakersDistribution.sol/StakersDistribution.json +2 -2
- package/artifacts/contracts/identity/IdentityV2.sol/IdentityV2.dbg.json +1 -1
- package/artifacts/contracts/invite/InvitesFuseV2.sol/InvitesFuseV2.dbg.json +1 -1
- package/artifacts/contracts/invite/InvitesV1.sol/InvitesV1.dbg.json +1 -1
- package/artifacts/contracts/invite/InvitesV2.sol/InvitesV2.dbg.json +1 -1
- package/artifacts/contracts/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/CompUsdMockOracle.sol/CompUSDMockOracle.dbg.json +1 -1
- package/artifacts/contracts/mocks/DAIMock.sol/DAIMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/DaiEthPriceMockOracle.sol/DaiEthPriceMockOracle.dbg.json +1 -1
- package/artifacts/contracts/mocks/DecimalsMock.sol/DecimalsMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/DistributionBridgeMock.sol/DistributionBridgeMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTest.json +17 -4
- package/artifacts/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTestHelper.dbg.json +1 -1
- package/artifacts/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTestHelper.json +17 -4
- package/artifacts/contracts/mocks/EthUSDMockOracle.sol/EthUSDMockOracle.dbg.json +1 -1
- package/artifacts/contracts/mocks/FeesFormularMock.sol/FeesFormulaMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/GasPriceMockOracle.sol/GasPriceMockOracle.dbg.json +1 -1
- package/artifacts/contracts/mocks/GoodCompoundStakingTest.sol/GoodCompoundStakingTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/GoodCompoundStakingTest.sol/GoodCompoundStakingTest.json +2 -2
- package/artifacts/contracts/mocks/GoodDollarStakingMock.sol/GoodDollarStakingMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/GoodFundManagerTest.sol/GoodFundManagerTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/GoodFundManagerTest.sol/GoodFundManagerTest.json +2 -2
- package/artifacts/contracts/mocks/IdentityMock.sol/IdentityMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/IncentiveControllerMock.sol/IncentiveControllerMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/LendingPoolMock.sol/LendingPoolMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/MultichainRouterMock.sol/IWrapper.dbg.json +1 -1
- package/artifacts/contracts/mocks/MultichainRouterMock.sol/MultichainRouterMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/OverMintTester.sol/IGoodDollarStakingTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/OverMintTester.sol/OverMintTester.dbg.json +1 -1
- package/artifacts/contracts/mocks/OverMintTesterRegularStake.sol/OverMintTesterRegularStake.dbg.json +1 -1
- package/artifacts/contracts/mocks/OverMintTesterRegularStake.sol/OverMintTesterRegularStake.json +2 -2
- package/artifacts/contracts/mocks/PayableMock.sol/PayableMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/SixteenDecimalsTokenMock.sol/SixteenDecimalsTokenMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/StakingMockFixedAPY.sol/StakingMockFixedAPY.dbg.json +1 -1
- package/artifacts/contracts/mocks/SwapHelperTest.sol/SwapHelperTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/TwentyDecimalsTokenMock.sol/TwentyDecimalsTokenMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock2.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock3.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock4.dbg.json +1 -1
- package/artifacts/contracts/mocks/UsdcMock.sol/USDCMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cBATMock.sol/cBATMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cDAILowWorthMock.sol/cDAILowWorthMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cDAIMock.sol/cDAIMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cDAINonMintableMock.sol/cDAINonMintableMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cDecimalsMock.sol/cDecimalsMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cSDTMock.sol/cSDTMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cUSDCMock.sol/cUSDCMock.dbg.json +1 -1
- package/artifacts/contracts/reserve/DistributionHelper.sol/DistributionHelper.dbg.json +1 -1
- package/artifacts/contracts/reserve/DistributionHelper.sol/DistributionHelper.json +17 -4
- 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/GoodReserveCDai.sol/ContributionCalc.dbg.json +1 -1
- package/artifacts/contracts/reserve/GoodReserveCDai.sol/GoodReserveCDai.dbg.json +1 -1
- package/artifacts/contracts/reserve/GoodReserveCDai.sol/GoodReserveCDai.json +2 -2
- package/artifacts/contracts/staking/BaseShareField.sol/BaseShareField.dbg.json +1 -1
- package/artifacts/contracts/staking/BaseShareFieldV2.sol/BaseShareFieldV2.dbg.json +1 -1
- package/artifacts/contracts/staking/DonationsStaking.sol/DonationsStaking.dbg.json +1 -1
- package/artifacts/contracts/staking/DonationsStaking.sol/DonationsStaking.json +2 -2
- package/artifacts/contracts/staking/FuseStakingV3.sol/FuseStakingV3.dbg.json +1 -1
- package/artifacts/contracts/staking/FuseStakingV3.sol/IConsensus.dbg.json +1 -1
- package/artifacts/contracts/staking/FuseStakingV3.sol/PegSwap.dbg.json +1 -1
- package/artifacts/contracts/staking/GoodFundManager.sol/GoodFundManager.dbg.json +1 -1
- package/artifacts/contracts/staking/GoodFundManager.sol/GoodFundManager.json +2 -2
- package/artifacts/contracts/staking/SimpleStaking.sol/SimpleStaking.dbg.json +1 -1
- package/artifacts/contracts/staking/SimpleStakingV2.sol/SimpleStakingV2.dbg.json +1 -1
- package/artifacts/contracts/staking/UniswapV2SwapHelper.sol/UniswapV2SwapHelper.dbg.json +1 -1
- package/artifacts/contracts/staking/aave/AaveStakingFactory.sol/AaveStakingFactory.dbg.json +1 -1
- package/artifacts/contracts/staking/aave/AaveStakingFactory.sol/AaveStakingFactory.json +2 -2
- package/artifacts/contracts/staking/aave/GoodAaveStaking.sol/GoodAaveStaking.dbg.json +1 -1
- package/artifacts/contracts/staking/aave/GoodAaveStaking.sol/GoodAaveStaking.json +2 -2
- package/artifacts/contracts/staking/aave/GoodAaveStakingV2.sol/GoodAaveStakingV2.dbg.json +1 -1
- package/artifacts/contracts/staking/aave/GoodAaveStakingV2.sol/GoodAaveStakingV2.json +2 -2
- package/artifacts/contracts/staking/compound/CompoundStakingFactory.sol/CompoundStakingFactory.dbg.json +1 -1
- package/artifacts/contracts/staking/compound/CompoundStakingFactory.sol/CompoundStakingFactory.json +2 -2
- package/artifacts/contracts/staking/compound/GoodCompoundStaking.sol/GoodCompoundStaking.dbg.json +1 -1
- package/artifacts/contracts/staking/compound/GoodCompoundStaking.sol/GoodCompoundStaking.json +2 -2
- package/artifacts/contracts/staking/compound/GoodCompoundStakingV2.sol/GoodCompoundStakingV2.dbg.json +1 -1
- package/artifacts/contracts/staking/compound/GoodCompoundStakingV2.sol/GoodCompoundStakingV2.json +2 -2
- package/artifacts/contracts/staking/utils/Math64X64.sol/Math64x64.dbg.json +1 -1
- package/artifacts/contracts/staking/utils/StakingRewardsFixedAPY.sol/StakingRewardsFixedAPY.dbg.json +1 -1
- package/artifacts/contracts/token/ERC20PresetMinterPauserUpgradeable.sol/ERC20PresetMinterPauserUpgradeable.dbg.json +1 -1
- package/artifacts/contracts/token/ERC677.sol/ERC677.dbg.json +1 -1
- package/artifacts/contracts/token/ERC677.sol/ERC677Receiver.dbg.json +1 -1
- package/artifacts/contracts/token/GoodDollar.sol/GoodDollar.dbg.json +1 -1
- package/artifacts/contracts/token/IFeesFormula.sol/IFeesFormula.dbg.json +1 -1
- package/artifacts/contracts/token/MultichainFeeFormula.sol/MultichainFeeFormula.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/ERC20Permit.sol/ERC20Permit.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/ERC20Permit.sol/SelfApprove.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/ISuperGoodDollar.sol/IGoodDollarCustom.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/ISuperGoodDollar.sol/ISuperGoodDollar.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/ISuperToken.sol/ISuperToken.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/SuperGoodDollar.sol/SuperGoodDollar.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/SuperGoodDollar.sol/SuperGoodDollar.json +2 -2
- package/artifacts/contracts/token/superfluid/SuperToken.sol/SuperToken.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/SuperfluidToken.sol/SuperfluidToken.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/UUPSProxiable.sol/UUPSProxiable.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/UUPSProxy.sol/Proxy.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/UUPSProxy.sol/UUPSProxy.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/UUPSProxy.sol/UUPSUtils.dbg.json +1 -1
- package/artifacts/contracts/ubi/UBIScheme.sol/UBIScheme.dbg.json +1 -1
- package/artifacts/contracts/ubi/UBISchemeV2.sol/UBISchemeV2.dbg.json +1 -1
- package/artifacts/contracts/utils/AdminWallet.sol/AdminWallet.dbg.json +1 -1
- package/artifacts/contracts/utils/AdminWalletFuse.sol/AdminWalletFuse.dbg.json +1 -1
- package/artifacts/contracts/utils/BancorFormula.sol/BancorFormula.dbg.json +1 -1
- package/artifacts/contracts/utils/BulkProof.sol/BulkProof.dbg.json +1 -1
- package/artifacts/contracts/utils/BulkProof.sol/BulkProof.json +2 -2
- package/artifacts/contracts/utils/BuyAndBridgeHelper.sol/BuyAndBridgeHelper.dbg.json +1 -1
- package/artifacts/contracts/utils/BuyAndBridgeHelper.sol/BuyAndBridgeHelper.json +2 -2
- package/artifacts/contracts/utils/BuyGDClone.sol/BuyGDClone.dbg.json +1 -1
- package/artifacts/contracts/utils/BuyGDClone.sol/BuyGDClone.json +48 -5
- package/artifacts/contracts/utils/BuyGDClone.sol/BuyGDCloneFactory.dbg.json +1 -1
- package/artifacts/contracts/utils/BuyGDClone.sol/BuyGDCloneFactory.json +41 -2
- package/artifacts/contracts/utils/BuyGDClone.sol/DonateGDClone.dbg.json +1 -1
- package/artifacts/contracts/utils/BuyGDClone.sol/DonateGDClone.json +79 -5
- package/artifacts/contracts/utils/BuyGDClone.sol/IQuoterV2.dbg.json +1 -1
- package/artifacts/contracts/utils/BuyGDClone.sol/ISwapRouter.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/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/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/ProtocolUpgrade.sol/OldMarketMaker.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtocolUpgrade.sol/ProtocolUpgrade.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtocolUpgradeFuse.sol/ProtocolUpgradeFuse.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtocolUpgradeFuseRecover.sol/ProtocolUpgradeFuseRecover.dbg.json +1 -1
- package/artifacts/contracts/utils/ProtocolUpgradeRecover.sol/ProtocolUpgradeRecover.dbg.json +1 -1
- package/artifacts/contracts/utils/ProxyFactory1967.sol/ERC1967Proxy.dbg.json +1 -1
- package/artifacts/contracts/utils/ProxyFactory1967.sol/ProxyFactory1967.dbg.json +1 -1
- package/artifacts/contracts/utils/ReputationTestHelper.sol/ReputationTestHelper.dbg.json +1 -1
- package/contracts/reserve/DistributionHelper.sol +16 -2
- package/contracts/token/superfluid/SuperGoodDollar.sol +1 -1
- package/contracts/utils/BuyGDClone.sol +82 -14
- package/dist/artifacts/contracts/token/superfluid/SuperGoodDollar.sol/SuperGoodDollar.json +2 -2
- package/hardhat.config.ts +4 -1
- package/package.json +2 -2
- package/releases/deployment.json +3 -3
- package/scripts/analytics/stuckgd.ts +70 -0
- package/scripts/fv.ts +58 -5
- package/scripts/proposals/updateDistHelper.ts +180 -0
- package/scripts/utils.ts +25 -2
- package/test/reserve/DistributionHelper.test.ts +1 -1
- package/types/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTest.ts +19 -5
- package/types/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTestHelper.ts +19 -5
- package/types/contracts/reserve/DistributionHelper.ts +19 -5
- package/types/contracts/utils/BuyGDClone.sol/BuyGDClone.ts +28 -3
- package/types/contracts/utils/BuyGDClone.sol/BuyGDCloneFactory.ts +52 -2
- package/types/contracts/utils/BuyGDClone.sol/DonateGDClone.ts +56 -3
- package/types/factories/contracts/governance/StakersDistribution__factory.ts +1 -1
- package/types/factories/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTestHelper__factory.ts +16 -3
- package/types/factories/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTest__factory.ts +16 -3
- package/types/factories/contracts/mocks/GoodCompoundStakingTest__factory.ts +1 -1
- package/types/factories/contracts/mocks/GoodFundManagerTest__factory.ts +1 -1
- package/types/factories/contracts/mocks/OverMintTesterRegularStake__factory.ts +1 -1
- package/types/factories/contracts/reserve/DistributionHelper__factory.ts +16 -3
- package/types/factories/contracts/reserve/ExchangeHelper__factory.ts +1 -1
- package/types/factories/contracts/reserve/GoodReserveCDai.sol/GoodReserveCDai__factory.ts +1 -1
- package/types/factories/contracts/staking/DonationsStaking__factory.ts +1 -1
- package/types/factories/contracts/staking/GoodFundManager__factory.ts +1 -1
- package/types/factories/contracts/staking/aave/AaveStakingFactory__factory.ts +1 -1
- package/types/factories/contracts/staking/aave/GoodAaveStakingV2__factory.ts +1 -1
- package/types/factories/contracts/staking/aave/GoodAaveStaking__factory.ts +1 -1
- package/types/factories/contracts/staking/compound/CompoundStakingFactory__factory.ts +1 -1
- package/types/factories/contracts/staking/compound/GoodCompoundStakingV2__factory.ts +1 -1
- package/types/factories/contracts/staking/compound/GoodCompoundStaking__factory.ts +1 -1
- package/types/factories/contracts/token/superfluid/SuperGoodDollar__factory.ts +1 -1
- package/types/factories/contracts/utils/BuyAndBridgeHelper__factory.ts +1 -1
- package/types/factories/contracts/utils/BuyGDClone.sol/BuyGDCloneFactory__factory.ts +40 -1
- package/types/factories/contracts/utils/BuyGDClone.sol/BuyGDClone__factory.ts +47 -4
- package/types/factories/contracts/utils/BuyGDClone.sol/DonateGDClone__factory.ts +78 -4
- package/yarn.lock +29 -30
package/scripts/fv.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import fetch from "cross-fetch";
|
|
2
2
|
import fs from "fs";
|
|
3
|
-
import { chunk } from "lodash";
|
|
4
|
-
import { bulkIsWhitelisted } from "./utils";
|
|
3
|
+
import { chunk, uniqBy } from "lodash";
|
|
4
|
+
import { bulkIsWhitelisted, bulkLastAuth } from "./utils";
|
|
5
5
|
|
|
6
6
|
const main = async () => {
|
|
7
7
|
const data = JSON.parse(fs.readFileSync("fvtriplets.txt").toString());
|
|
8
|
-
const triplets = chunk(data, 3);
|
|
8
|
+
const triplets = uniqBy(chunk(data, 3), _ => _.join("_"));
|
|
9
|
+
|
|
9
10
|
const accounts = triplets.map(_ => _[0]);
|
|
10
11
|
const whitelisted = await bulkIsWhitelisted(accounts);
|
|
11
12
|
const failed = triplets.filter(_ => whitelisted.includes(_[0]) === false);
|
|
@@ -39,10 +40,62 @@ const main = async () => {
|
|
|
39
40
|
encoding: "base64"
|
|
40
41
|
}
|
|
41
42
|
);
|
|
42
|
-
} else
|
|
43
|
+
} else
|
|
44
|
+
console.log("not found", a, !!i1.auditTrailBase64, !!i2.auditTrailBase64);
|
|
43
45
|
});
|
|
44
46
|
|
|
45
47
|
await Promise.all(ps);
|
|
46
48
|
};
|
|
47
49
|
|
|
48
|
-
|
|
50
|
+
const deleteIdentifiers = async () => {
|
|
51
|
+
const data = JSON.parse(fs.readFileSync("todeletefvtriplets.txt").toString());
|
|
52
|
+
const triplets = uniqBy(chunk(data, 3), _ => _.join("_"));
|
|
53
|
+
const accounts = triplets.map(_ => _[0]);
|
|
54
|
+
const whitelisted = await bulkIsWhitelisted(accounts);
|
|
55
|
+
const lastAuth = await bulkLastAuth(accounts);
|
|
56
|
+
const failed = triplets.filter(
|
|
57
|
+
_ =>
|
|
58
|
+
whitelisted.includes(_[0]) === false && lastAuth.includes(_[0]) === true
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
let ps = [];
|
|
62
|
+
console.log({ failed });
|
|
63
|
+
|
|
64
|
+
for (let record of failed) {
|
|
65
|
+
ps.push(
|
|
66
|
+
fetch("https://goodserver.gooddollar.org/admin/verify/face/delete", {
|
|
67
|
+
method: "POST",
|
|
68
|
+
headers: { "content-type": "application/json" },
|
|
69
|
+
body: JSON.stringify({
|
|
70
|
+
password,
|
|
71
|
+
enrollmentIdentifier: record[1]
|
|
72
|
+
})
|
|
73
|
+
})
|
|
74
|
+
.then(_ => _.json())
|
|
75
|
+
.catch(_ => record[1])
|
|
76
|
+
);
|
|
77
|
+
ps.push(
|
|
78
|
+
fetch("https://goodserver.gooddollar.org/admin/verify/face/delete", {
|
|
79
|
+
method: "POST",
|
|
80
|
+
headers: { "content-type": "application/json" },
|
|
81
|
+
body: JSON.stringify({
|
|
82
|
+
password,
|
|
83
|
+
enrollmentIdentifier: record[2]
|
|
84
|
+
})
|
|
85
|
+
})
|
|
86
|
+
.then(_ => _.json())
|
|
87
|
+
.catch(_ => record[2])
|
|
88
|
+
);
|
|
89
|
+
if (ps.length % 10 === 0) {
|
|
90
|
+
console.log("waiting...", ps.length);
|
|
91
|
+
const r = await Promise.all(ps);
|
|
92
|
+
console.log(r);
|
|
93
|
+
ps = [];
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
const res = await Promise.all(ps);
|
|
97
|
+
console.log(res);
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
deleteIdentifiers();
|
|
101
|
+
// main();
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/***
|
|
2
|
+
* Upgrade dist helper to have better axelar base fee
|
|
3
|
+
* Update the axelarbasefee
|
|
4
|
+
* Send UBI G$s to the bridge for liquidity
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { network, ethers } from "hardhat";
|
|
8
|
+
import { Contract } from "ethers";
|
|
9
|
+
import { defaultsDeep } from "lodash";
|
|
10
|
+
import prompt from "prompt";
|
|
11
|
+
import { reset } from "@nomicfoundation/hardhat-network-helpers";
|
|
12
|
+
|
|
13
|
+
import {
|
|
14
|
+
printDeploy,
|
|
15
|
+
executeViaGuardian,
|
|
16
|
+
executeViaSafe,
|
|
17
|
+
verifyProductionSigner
|
|
18
|
+
} from "../multichain-deploy/helpers";
|
|
19
|
+
|
|
20
|
+
import ProtocolSettings from "../../releases/deploy-settings.json";
|
|
21
|
+
|
|
22
|
+
import dao from "../../releases/deployment.json";
|
|
23
|
+
import { verifyContract } from "../multichain-deploy/helpers";
|
|
24
|
+
import { IStaticOracle } from "../../types";
|
|
25
|
+
let { name: networkName } = network;
|
|
26
|
+
|
|
27
|
+
export const upgrade = async () => {
|
|
28
|
+
const isProduction = networkName.includes("production");
|
|
29
|
+
let [root, ...signers] = await ethers.getSigners();
|
|
30
|
+
|
|
31
|
+
// if (isProduction) verifyProductionSigner(root);
|
|
32
|
+
|
|
33
|
+
let guardian = root;
|
|
34
|
+
|
|
35
|
+
//simulate produciton on fork
|
|
36
|
+
if (
|
|
37
|
+
network.name === "localhost" ||
|
|
38
|
+
network.name === "hardhat" ||
|
|
39
|
+
network.name === "fork"
|
|
40
|
+
) {
|
|
41
|
+
networkName = "production-mainnet";
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
let release: { [key: string]: any } = dao[networkName];
|
|
45
|
+
let protocolSettings = defaultsDeep(
|
|
46
|
+
{},
|
|
47
|
+
ProtocolSettings[networkName],
|
|
48
|
+
ProtocolSettings["default"]
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
//simulate on fork, make sure safe has enough eth to simulate txs
|
|
52
|
+
if (
|
|
53
|
+
network.name === "localhost" ||
|
|
54
|
+
network.name === "hardhat" ||
|
|
55
|
+
network.name === "fork"
|
|
56
|
+
) {
|
|
57
|
+
guardian = await ethers.getImpersonatedSigner(
|
|
58
|
+
protocolSettings.guardiansSafe
|
|
59
|
+
);
|
|
60
|
+
networkName = "production-mainnet";
|
|
61
|
+
|
|
62
|
+
await root.sendTransaction({
|
|
63
|
+
value: ethers.constants.WeiPerEther.mul(3),
|
|
64
|
+
to: protocolSettings.guardiansSafe
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const rootBalance = await ethers.provider
|
|
69
|
+
.getBalance(root.address)
|
|
70
|
+
.then(_ => _.toString());
|
|
71
|
+
const guardianBalance = await ethers.provider
|
|
72
|
+
.getBalance(guardian.address)
|
|
73
|
+
.then(_ => _.toString());
|
|
74
|
+
|
|
75
|
+
const gd = await ethers.getContractAt("IGoodDollar", release["GoodDollar"]);
|
|
76
|
+
|
|
77
|
+
const NEWBRIDGE = "0xa3247276DbCC76Dd7705273f766eB3E8a5ecF4a5";
|
|
78
|
+
const GUARDIANS_BALANCE = await gd.balanceOf(protocolSettings.guardiansSafe);
|
|
79
|
+
|
|
80
|
+
if (GUARDIANS_BALANCE.eq(0)) throw new Error("guardian has no G$ balance");
|
|
81
|
+
|
|
82
|
+
const bridgeDeployed = await ethers.provider
|
|
83
|
+
.getCode(NEWBRIDGE)
|
|
84
|
+
.then(_ => _ != "0x");
|
|
85
|
+
if (!bridgeDeployed) throw new Error("bridge not deployed yet");
|
|
86
|
+
|
|
87
|
+
console.log("got signers:", {
|
|
88
|
+
networkName,
|
|
89
|
+
root: root.address,
|
|
90
|
+
guardian: guardian.address,
|
|
91
|
+
balance: rootBalance,
|
|
92
|
+
guardianBalance: guardianBalance
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
console.log("executing proposals");
|
|
96
|
+
|
|
97
|
+
const proposalContracts = [
|
|
98
|
+
release.DistributionHelper, //controller -> upgrade disthelper
|
|
99
|
+
release.DistributionHelper, //update axelar fee
|
|
100
|
+
protocolSettings.guardiansSafe + "_" + release.GoodDollar //transfer G$s from guardians to bridge
|
|
101
|
+
];
|
|
102
|
+
|
|
103
|
+
const proposalEthValues = proposalContracts.map(_ => 0);
|
|
104
|
+
|
|
105
|
+
const proposalFunctionSignatures = [
|
|
106
|
+
"upgradeTo(address)", //upgrade disthelper
|
|
107
|
+
"setFeeSettings((uint128,uint128,uint128,uint128,uint128,uint8))",
|
|
108
|
+
"transfer(address,uint256)" // transfer G$s from guardians to bridge
|
|
109
|
+
];
|
|
110
|
+
|
|
111
|
+
const proposalFunctionInputs = [
|
|
112
|
+
ethers.utils.defaultAbiCoder.encode(
|
|
113
|
+
["address"],
|
|
114
|
+
["0xa339B7F4E95A93d2c6569cb139AD034C3b9cAA77"]
|
|
115
|
+
),
|
|
116
|
+
//uint128 axelarBaseFeeUSD;uint128 bridgeExecuteGas;uint128 targetChainGasPrice;uint128 maxFee;uint128 minBalanceForFees;uint8 percentageToSellForFee;
|
|
117
|
+
//0.2 AXL base fee, 400000 bridge execute, 5 gwei gas price, 5e15 eth max fee, min balance 1e16, percentage 5%
|
|
118
|
+
ethers.utils.defaultAbiCoder.encode(
|
|
119
|
+
["uint128", "uint128", "uint128", "uint128", "uint128", "uint8"],
|
|
120
|
+
[
|
|
121
|
+
"200000000000000000",
|
|
122
|
+
"400000",
|
|
123
|
+
"5000000000",
|
|
124
|
+
"5000000000000000",
|
|
125
|
+
"10000000000000000",
|
|
126
|
+
"5"
|
|
127
|
+
]
|
|
128
|
+
),
|
|
129
|
+
ethers.utils.defaultAbiCoder.encode(
|
|
130
|
+
["address", "uint256"],
|
|
131
|
+
[NEWBRIDGE, GUARDIANS_BALANCE] // transfer G$ to bridge
|
|
132
|
+
)
|
|
133
|
+
];
|
|
134
|
+
|
|
135
|
+
if (isProduction) {
|
|
136
|
+
await executeViaSafe(
|
|
137
|
+
proposalContracts,
|
|
138
|
+
proposalEthValues,
|
|
139
|
+
proposalFunctionSignatures,
|
|
140
|
+
proposalFunctionInputs,
|
|
141
|
+
protocolSettings.guardiansSafe,
|
|
142
|
+
"mainnet"
|
|
143
|
+
);
|
|
144
|
+
} else {
|
|
145
|
+
//simulation or dev envs
|
|
146
|
+
await executeViaGuardian(
|
|
147
|
+
proposalContracts,
|
|
148
|
+
proposalEthValues,
|
|
149
|
+
proposalFunctionSignatures,
|
|
150
|
+
proposalFunctionInputs,
|
|
151
|
+
guardian,
|
|
152
|
+
networkName
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
//perform sanity checks on fork, for production we need to wait until everything executed
|
|
157
|
+
if (!isProduction) {
|
|
158
|
+
let fm = await ethers.getContractAt(
|
|
159
|
+
"GoodFundManager",
|
|
160
|
+
release.GoodFundManager
|
|
161
|
+
);
|
|
162
|
+
let dh = await ethers.getContractAt(
|
|
163
|
+
"DistributionHelper",
|
|
164
|
+
release.DistributionHelper
|
|
165
|
+
);
|
|
166
|
+
|
|
167
|
+
console.log(
|
|
168
|
+
"gd balances: guardians:",
|
|
169
|
+
await gd.balanceOf(guardian.address),
|
|
170
|
+
" bridge:",
|
|
171
|
+
await gd.balanceOf(NEWBRIDGE)
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
export const main = async () => {
|
|
177
|
+
await upgrade();
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
main().catch(console.log);
|
package/scripts/utils.ts
CHANGED
|
@@ -5,11 +5,34 @@ import { ethers } from "hardhat";
|
|
|
5
5
|
export const bulkIsWhitelisted = async (accounts: Array<String>) => {
|
|
6
6
|
setMulticallAddress(122, "0x3CE6158b7278Bf6792e014FA7B4f3c6c46fe9410");
|
|
7
7
|
setMulticallAddress(42220, "0x75F59534dd892c1f8a7B172D639FA854D529ada3");
|
|
8
|
-
const celoProvider = new ethers.providers.JsonRpcProvider(
|
|
8
|
+
const celoProvider = new ethers.providers.JsonRpcProvider(
|
|
9
|
+
"https://forno.celo.org"
|
|
10
|
+
);
|
|
9
11
|
const ethcallProvider = new Provider(celoProvider, 42220);
|
|
10
|
-
const identityContract = new Contract(
|
|
12
|
+
const identityContract = new Contract(
|
|
13
|
+
"0xC361A6E67822a0EDc17D899227dd9FC50BD62F42",
|
|
14
|
+
Identity.abi
|
|
15
|
+
);
|
|
11
16
|
const calls = accounts.map(d => identityContract.isWhitelisted(d));
|
|
12
17
|
const result = await ethcallProvider.all(calls);
|
|
13
18
|
const whitelisted = accounts.filter((v, i) => result[i]);
|
|
14
19
|
return whitelisted;
|
|
15
20
|
};
|
|
21
|
+
|
|
22
|
+
export const bulkLastAuth = async (accounts: Array<String>) => {
|
|
23
|
+
setMulticallAddress(122, "0x3CE6158b7278Bf6792e014FA7B4f3c6c46fe9410");
|
|
24
|
+
setMulticallAddress(42220, "0x75F59534dd892c1f8a7B172D639FA854D529ada3");
|
|
25
|
+
const celoProvider = new ethers.providers.JsonRpcProvider(
|
|
26
|
+
"https://forno.celo.org"
|
|
27
|
+
);
|
|
28
|
+
const ethcallProvider = new Provider(celoProvider, 42220);
|
|
29
|
+
const identityContract = new Contract(
|
|
30
|
+
"0xC361A6E67822a0EDc17D899227dd9FC50BD62F42",
|
|
31
|
+
Identity.abi
|
|
32
|
+
);
|
|
33
|
+
const calls = accounts.map(d => identityContract.lastAuthenticated(d));
|
|
34
|
+
const result = await ethcallProvider.all(calls);
|
|
35
|
+
console.log({ result });
|
|
36
|
+
const whitelisted = accounts.filter((v, i) => parseInt(result[i]));
|
|
37
|
+
return whitelisted;
|
|
38
|
+
};
|
|
@@ -43,7 +43,7 @@ export declare namespace DistributionHelper {
|
|
|
43
43
|
] & { bps: number; chainId: number; addr: string; transferType: number };
|
|
44
44
|
|
|
45
45
|
export type FeeSettingsStruct = {
|
|
46
|
-
|
|
46
|
+
axelarBaseFee: BigNumberish;
|
|
47
47
|
bridgeExecuteGas: BigNumberish;
|
|
48
48
|
targetChainGasPrice: BigNumberish;
|
|
49
49
|
maxFee: BigNumberish;
|
|
@@ -59,7 +59,7 @@ export declare namespace DistributionHelper {
|
|
|
59
59
|
BigNumber,
|
|
60
60
|
number
|
|
61
61
|
] & {
|
|
62
|
-
|
|
62
|
+
axelarBaseFee: BigNumber;
|
|
63
63
|
bridgeExecuteGas: BigNumber;
|
|
64
64
|
targetChainGasPrice: BigNumber;
|
|
65
65
|
maxFee: BigNumber;
|
|
@@ -70,6 +70,7 @@ export declare namespace DistributionHelper {
|
|
|
70
70
|
|
|
71
71
|
export interface DistributionHelperTestInterface extends utils.Interface {
|
|
72
72
|
functions: {
|
|
73
|
+
"AXL_TOKEN()": FunctionFragment;
|
|
73
74
|
"CELO_TOKEN()": FunctionFragment;
|
|
74
75
|
"DEFAULT_ADMIN_ROLE()": FunctionFragment;
|
|
75
76
|
"FUSE_TOKEN()": FunctionFragment;
|
|
@@ -109,6 +110,7 @@ export interface DistributionHelperTestInterface extends utils.Interface {
|
|
|
109
110
|
|
|
110
111
|
getFunction(
|
|
111
112
|
nameOrSignatureOrTopic:
|
|
113
|
+
| "AXL_TOKEN"
|
|
112
114
|
| "CELO_TOKEN"
|
|
113
115
|
| "DEFAULT_ADMIN_ROLE"
|
|
114
116
|
| "FUSE_TOKEN"
|
|
@@ -146,6 +148,7 @@ export interface DistributionHelperTestInterface extends utils.Interface {
|
|
|
146
148
|
| "upgradeToAndCall"
|
|
147
149
|
): FunctionFragment;
|
|
148
150
|
|
|
151
|
+
encodeFunctionData(functionFragment: "AXL_TOKEN", values?: undefined): string;
|
|
149
152
|
encodeFunctionData(
|
|
150
153
|
functionFragment: "CELO_TOKEN",
|
|
151
154
|
values?: undefined
|
|
@@ -272,6 +275,7 @@ export interface DistributionHelperTestInterface extends utils.Interface {
|
|
|
272
275
|
values: [string, BytesLike]
|
|
273
276
|
): string;
|
|
274
277
|
|
|
278
|
+
decodeFunctionResult(functionFragment: "AXL_TOKEN", data: BytesLike): Result;
|
|
275
279
|
decodeFunctionResult(functionFragment: "CELO_TOKEN", data: BytesLike): Result;
|
|
276
280
|
decodeFunctionResult(
|
|
277
281
|
functionFragment: "DEFAULT_ADMIN_ROLE",
|
|
@@ -539,6 +543,8 @@ export interface DistributionHelperTest extends BaseContract {
|
|
|
539
543
|
removeListener: OnEvent<this>;
|
|
540
544
|
|
|
541
545
|
functions: {
|
|
546
|
+
AXL_TOKEN(overrides?: CallOverrides): Promise<[string]>;
|
|
547
|
+
|
|
542
548
|
CELO_TOKEN(overrides?: CallOverrides): Promise<[string]>;
|
|
543
549
|
|
|
544
550
|
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<[string]>;
|
|
@@ -578,7 +584,7 @@ export interface DistributionHelperTest extends BaseContract {
|
|
|
578
584
|
overrides?: CallOverrides
|
|
579
585
|
): Promise<
|
|
580
586
|
[BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, number] & {
|
|
581
|
-
|
|
587
|
+
axelarBaseFee: BigNumber;
|
|
582
588
|
bridgeExecuteGas: BigNumber;
|
|
583
589
|
targetChainGasPrice: BigNumber;
|
|
584
590
|
maxFee: BigNumber;
|
|
@@ -690,6 +696,8 @@ export interface DistributionHelperTest extends BaseContract {
|
|
|
690
696
|
): Promise<ContractTransaction>;
|
|
691
697
|
};
|
|
692
698
|
|
|
699
|
+
AXL_TOKEN(overrides?: CallOverrides): Promise<string>;
|
|
700
|
+
|
|
693
701
|
CELO_TOKEN(overrides?: CallOverrides): Promise<string>;
|
|
694
702
|
|
|
695
703
|
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<string>;
|
|
@@ -729,7 +737,7 @@ export interface DistributionHelperTest extends BaseContract {
|
|
|
729
737
|
overrides?: CallOverrides
|
|
730
738
|
): Promise<
|
|
731
739
|
[BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, number] & {
|
|
732
|
-
|
|
740
|
+
axelarBaseFee: BigNumber;
|
|
733
741
|
bridgeExecuteGas: BigNumber;
|
|
734
742
|
targetChainGasPrice: BigNumber;
|
|
735
743
|
maxFee: BigNumber;
|
|
@@ -841,6 +849,8 @@ export interface DistributionHelperTest extends BaseContract {
|
|
|
841
849
|
): Promise<ContractTransaction>;
|
|
842
850
|
|
|
843
851
|
callStatic: {
|
|
852
|
+
AXL_TOKEN(overrides?: CallOverrides): Promise<string>;
|
|
853
|
+
|
|
844
854
|
CELO_TOKEN(overrides?: CallOverrides): Promise<string>;
|
|
845
855
|
|
|
846
856
|
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<string>;
|
|
@@ -880,7 +890,7 @@ export interface DistributionHelperTest extends BaseContract {
|
|
|
880
890
|
overrides?: CallOverrides
|
|
881
891
|
): Promise<
|
|
882
892
|
[BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, number] & {
|
|
883
|
-
|
|
893
|
+
axelarBaseFee: BigNumber;
|
|
884
894
|
bridgeExecuteGas: BigNumber;
|
|
885
895
|
targetChainGasPrice: BigNumber;
|
|
886
896
|
maxFee: BigNumber;
|
|
@@ -1069,6 +1079,8 @@ export interface DistributionHelperTest extends BaseContract {
|
|
|
1069
1079
|
};
|
|
1070
1080
|
|
|
1071
1081
|
estimateGas: {
|
|
1082
|
+
AXL_TOKEN(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1083
|
+
|
|
1072
1084
|
CELO_TOKEN(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1073
1085
|
|
|
1074
1086
|
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -1204,6 +1216,8 @@ export interface DistributionHelperTest extends BaseContract {
|
|
|
1204
1216
|
};
|
|
1205
1217
|
|
|
1206
1218
|
populateTransaction: {
|
|
1219
|
+
AXL_TOKEN(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
1220
|
+
|
|
1207
1221
|
CELO_TOKEN(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
1208
1222
|
|
|
1209
1223
|
DEFAULT_ADMIN_ROLE(
|
|
@@ -43,7 +43,7 @@ export declare namespace DistributionHelper {
|
|
|
43
43
|
] & { bps: number; chainId: number; addr: string; transferType: number };
|
|
44
44
|
|
|
45
45
|
export type FeeSettingsStruct = {
|
|
46
|
-
|
|
46
|
+
axelarBaseFee: BigNumberish;
|
|
47
47
|
bridgeExecuteGas: BigNumberish;
|
|
48
48
|
targetChainGasPrice: BigNumberish;
|
|
49
49
|
maxFee: BigNumberish;
|
|
@@ -59,7 +59,7 @@ export declare namespace DistributionHelper {
|
|
|
59
59
|
BigNumber,
|
|
60
60
|
number
|
|
61
61
|
] & {
|
|
62
|
-
|
|
62
|
+
axelarBaseFee: BigNumber;
|
|
63
63
|
bridgeExecuteGas: BigNumber;
|
|
64
64
|
targetChainGasPrice: BigNumber;
|
|
65
65
|
maxFee: BigNumber;
|
|
@@ -70,6 +70,7 @@ export declare namespace DistributionHelper {
|
|
|
70
70
|
|
|
71
71
|
export interface DistributionHelperTestHelperInterface extends utils.Interface {
|
|
72
72
|
functions: {
|
|
73
|
+
"AXL_TOKEN()": FunctionFragment;
|
|
73
74
|
"CELO_TOKEN()": FunctionFragment;
|
|
74
75
|
"DEFAULT_ADMIN_ROLE()": FunctionFragment;
|
|
75
76
|
"FUSE_TOKEN()": FunctionFragment;
|
|
@@ -111,6 +112,7 @@ export interface DistributionHelperTestHelperInterface extends utils.Interface {
|
|
|
111
112
|
|
|
112
113
|
getFunction(
|
|
113
114
|
nameOrSignatureOrTopic:
|
|
115
|
+
| "AXL_TOKEN"
|
|
114
116
|
| "CELO_TOKEN"
|
|
115
117
|
| "DEFAULT_ADMIN_ROLE"
|
|
116
118
|
| "FUSE_TOKEN"
|
|
@@ -150,6 +152,7 @@ export interface DistributionHelperTestHelperInterface extends utils.Interface {
|
|
|
150
152
|
| "upgradeToAndCall"
|
|
151
153
|
): FunctionFragment;
|
|
152
154
|
|
|
155
|
+
encodeFunctionData(functionFragment: "AXL_TOKEN", values?: undefined): string;
|
|
153
156
|
encodeFunctionData(
|
|
154
157
|
functionFragment: "CELO_TOKEN",
|
|
155
158
|
values?: undefined
|
|
@@ -281,6 +284,7 @@ export interface DistributionHelperTestHelperInterface extends utils.Interface {
|
|
|
281
284
|
values: [string, BytesLike]
|
|
282
285
|
): string;
|
|
283
286
|
|
|
287
|
+
decodeFunctionResult(functionFragment: "AXL_TOKEN", data: BytesLike): Result;
|
|
284
288
|
decodeFunctionResult(functionFragment: "CELO_TOKEN", data: BytesLike): Result;
|
|
285
289
|
decodeFunctionResult(
|
|
286
290
|
functionFragment: "DEFAULT_ADMIN_ROLE",
|
|
@@ -550,6 +554,8 @@ export interface DistributionHelperTestHelper extends BaseContract {
|
|
|
550
554
|
removeListener: OnEvent<this>;
|
|
551
555
|
|
|
552
556
|
functions: {
|
|
557
|
+
AXL_TOKEN(overrides?: CallOverrides): Promise<[string]>;
|
|
558
|
+
|
|
553
559
|
CELO_TOKEN(overrides?: CallOverrides): Promise<[string]>;
|
|
554
560
|
|
|
555
561
|
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<[string]>;
|
|
@@ -589,7 +595,7 @@ export interface DistributionHelperTestHelper extends BaseContract {
|
|
|
589
595
|
overrides?: CallOverrides
|
|
590
596
|
): Promise<
|
|
591
597
|
[BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, number] & {
|
|
592
|
-
|
|
598
|
+
axelarBaseFee: BigNumber;
|
|
593
599
|
bridgeExecuteGas: BigNumber;
|
|
594
600
|
targetChainGasPrice: BigNumber;
|
|
595
601
|
maxFee: BigNumber;
|
|
@@ -712,6 +718,8 @@ export interface DistributionHelperTestHelper extends BaseContract {
|
|
|
712
718
|
): Promise<ContractTransaction>;
|
|
713
719
|
};
|
|
714
720
|
|
|
721
|
+
AXL_TOKEN(overrides?: CallOverrides): Promise<string>;
|
|
722
|
+
|
|
715
723
|
CELO_TOKEN(overrides?: CallOverrides): Promise<string>;
|
|
716
724
|
|
|
717
725
|
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<string>;
|
|
@@ -751,7 +759,7 @@ export interface DistributionHelperTestHelper extends BaseContract {
|
|
|
751
759
|
overrides?: CallOverrides
|
|
752
760
|
): Promise<
|
|
753
761
|
[BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, number] & {
|
|
754
|
-
|
|
762
|
+
axelarBaseFee: BigNumber;
|
|
755
763
|
bridgeExecuteGas: BigNumber;
|
|
756
764
|
targetChainGasPrice: BigNumber;
|
|
757
765
|
maxFee: BigNumber;
|
|
@@ -874,6 +882,8 @@ export interface DistributionHelperTestHelper extends BaseContract {
|
|
|
874
882
|
): Promise<ContractTransaction>;
|
|
875
883
|
|
|
876
884
|
callStatic: {
|
|
885
|
+
AXL_TOKEN(overrides?: CallOverrides): Promise<string>;
|
|
886
|
+
|
|
877
887
|
CELO_TOKEN(overrides?: CallOverrides): Promise<string>;
|
|
878
888
|
|
|
879
889
|
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<string>;
|
|
@@ -913,7 +923,7 @@ export interface DistributionHelperTestHelper extends BaseContract {
|
|
|
913
923
|
overrides?: CallOverrides
|
|
914
924
|
): Promise<
|
|
915
925
|
[BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, number] & {
|
|
916
|
-
|
|
926
|
+
axelarBaseFee: BigNumber;
|
|
917
927
|
bridgeExecuteGas: BigNumber;
|
|
918
928
|
targetChainGasPrice: BigNumber;
|
|
919
929
|
maxFee: BigNumber;
|
|
@@ -1110,6 +1120,8 @@ export interface DistributionHelperTestHelper extends BaseContract {
|
|
|
1110
1120
|
};
|
|
1111
1121
|
|
|
1112
1122
|
estimateGas: {
|
|
1123
|
+
AXL_TOKEN(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1124
|
+
|
|
1113
1125
|
CELO_TOKEN(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1114
1126
|
|
|
1115
1127
|
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -1256,6 +1268,8 @@ export interface DistributionHelperTestHelper extends BaseContract {
|
|
|
1256
1268
|
};
|
|
1257
1269
|
|
|
1258
1270
|
populateTransaction: {
|
|
1271
|
+
AXL_TOKEN(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
1272
|
+
|
|
1259
1273
|
CELO_TOKEN(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
1260
1274
|
|
|
1261
1275
|
DEFAULT_ADMIN_ROLE(
|
|
@@ -43,7 +43,7 @@ export declare namespace DistributionHelper {
|
|
|
43
43
|
] & { bps: number; chainId: number; addr: string; transferType: number };
|
|
44
44
|
|
|
45
45
|
export type FeeSettingsStruct = {
|
|
46
|
-
|
|
46
|
+
axelarBaseFee: BigNumberish;
|
|
47
47
|
bridgeExecuteGas: BigNumberish;
|
|
48
48
|
targetChainGasPrice: BigNumberish;
|
|
49
49
|
maxFee: BigNumberish;
|
|
@@ -59,7 +59,7 @@ export declare namespace DistributionHelper {
|
|
|
59
59
|
BigNumber,
|
|
60
60
|
number
|
|
61
61
|
] & {
|
|
62
|
-
|
|
62
|
+
axelarBaseFee: BigNumber;
|
|
63
63
|
bridgeExecuteGas: BigNumber;
|
|
64
64
|
targetChainGasPrice: BigNumber;
|
|
65
65
|
maxFee: BigNumber;
|
|
@@ -70,6 +70,7 @@ export declare namespace DistributionHelper {
|
|
|
70
70
|
|
|
71
71
|
export interface DistributionHelperInterface extends utils.Interface {
|
|
72
72
|
functions: {
|
|
73
|
+
"AXL_TOKEN()": FunctionFragment;
|
|
73
74
|
"CELO_TOKEN()": FunctionFragment;
|
|
74
75
|
"DEFAULT_ADMIN_ROLE()": FunctionFragment;
|
|
75
76
|
"FUSE_TOKEN()": FunctionFragment;
|
|
@@ -109,6 +110,7 @@ export interface DistributionHelperInterface extends utils.Interface {
|
|
|
109
110
|
|
|
110
111
|
getFunction(
|
|
111
112
|
nameOrSignatureOrTopic:
|
|
113
|
+
| "AXL_TOKEN"
|
|
112
114
|
| "CELO_TOKEN"
|
|
113
115
|
| "DEFAULT_ADMIN_ROLE"
|
|
114
116
|
| "FUSE_TOKEN"
|
|
@@ -146,6 +148,7 @@ export interface DistributionHelperInterface extends utils.Interface {
|
|
|
146
148
|
| "upgradeToAndCall"
|
|
147
149
|
): FunctionFragment;
|
|
148
150
|
|
|
151
|
+
encodeFunctionData(functionFragment: "AXL_TOKEN", values?: undefined): string;
|
|
149
152
|
encodeFunctionData(
|
|
150
153
|
functionFragment: "CELO_TOKEN",
|
|
151
154
|
values?: undefined
|
|
@@ -272,6 +275,7 @@ export interface DistributionHelperInterface extends utils.Interface {
|
|
|
272
275
|
values: [string, BytesLike]
|
|
273
276
|
): string;
|
|
274
277
|
|
|
278
|
+
decodeFunctionResult(functionFragment: "AXL_TOKEN", data: BytesLike): Result;
|
|
275
279
|
decodeFunctionResult(functionFragment: "CELO_TOKEN", data: BytesLike): Result;
|
|
276
280
|
decodeFunctionResult(
|
|
277
281
|
functionFragment: "DEFAULT_ADMIN_ROLE",
|
|
@@ -539,6 +543,8 @@ export interface DistributionHelper extends BaseContract {
|
|
|
539
543
|
removeListener: OnEvent<this>;
|
|
540
544
|
|
|
541
545
|
functions: {
|
|
546
|
+
AXL_TOKEN(overrides?: CallOverrides): Promise<[string]>;
|
|
547
|
+
|
|
542
548
|
CELO_TOKEN(overrides?: CallOverrides): Promise<[string]>;
|
|
543
549
|
|
|
544
550
|
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<[string]>;
|
|
@@ -578,7 +584,7 @@ export interface DistributionHelper extends BaseContract {
|
|
|
578
584
|
overrides?: CallOverrides
|
|
579
585
|
): Promise<
|
|
580
586
|
[BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, number] & {
|
|
581
|
-
|
|
587
|
+
axelarBaseFee: BigNumber;
|
|
582
588
|
bridgeExecuteGas: BigNumber;
|
|
583
589
|
targetChainGasPrice: BigNumber;
|
|
584
590
|
maxFee: BigNumber;
|
|
@@ -690,6 +696,8 @@ export interface DistributionHelper extends BaseContract {
|
|
|
690
696
|
): Promise<ContractTransaction>;
|
|
691
697
|
};
|
|
692
698
|
|
|
699
|
+
AXL_TOKEN(overrides?: CallOverrides): Promise<string>;
|
|
700
|
+
|
|
693
701
|
CELO_TOKEN(overrides?: CallOverrides): Promise<string>;
|
|
694
702
|
|
|
695
703
|
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<string>;
|
|
@@ -729,7 +737,7 @@ export interface DistributionHelper extends BaseContract {
|
|
|
729
737
|
overrides?: CallOverrides
|
|
730
738
|
): Promise<
|
|
731
739
|
[BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, number] & {
|
|
732
|
-
|
|
740
|
+
axelarBaseFee: BigNumber;
|
|
733
741
|
bridgeExecuteGas: BigNumber;
|
|
734
742
|
targetChainGasPrice: BigNumber;
|
|
735
743
|
maxFee: BigNumber;
|
|
@@ -841,6 +849,8 @@ export interface DistributionHelper extends BaseContract {
|
|
|
841
849
|
): Promise<ContractTransaction>;
|
|
842
850
|
|
|
843
851
|
callStatic: {
|
|
852
|
+
AXL_TOKEN(overrides?: CallOverrides): Promise<string>;
|
|
853
|
+
|
|
844
854
|
CELO_TOKEN(overrides?: CallOverrides): Promise<string>;
|
|
845
855
|
|
|
846
856
|
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<string>;
|
|
@@ -880,7 +890,7 @@ export interface DistributionHelper extends BaseContract {
|
|
|
880
890
|
overrides?: CallOverrides
|
|
881
891
|
): Promise<
|
|
882
892
|
[BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, number] & {
|
|
883
|
-
|
|
893
|
+
axelarBaseFee: BigNumber;
|
|
884
894
|
bridgeExecuteGas: BigNumber;
|
|
885
895
|
targetChainGasPrice: BigNumber;
|
|
886
896
|
maxFee: BigNumber;
|
|
@@ -1069,6 +1079,8 @@ export interface DistributionHelper extends BaseContract {
|
|
|
1069
1079
|
};
|
|
1070
1080
|
|
|
1071
1081
|
estimateGas: {
|
|
1082
|
+
AXL_TOKEN(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1083
|
+
|
|
1072
1084
|
CELO_TOKEN(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1073
1085
|
|
|
1074
1086
|
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -1204,6 +1216,8 @@ export interface DistributionHelper extends BaseContract {
|
|
|
1204
1216
|
};
|
|
1205
1217
|
|
|
1206
1218
|
populateTransaction: {
|
|
1219
|
+
AXL_TOKEN(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
1220
|
+
|
|
1207
1221
|
CELO_TOKEN(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
1208
1222
|
|
|
1209
1223
|
DEFAULT_ADMIN_ROLE(
|