@gooddollar/goodprotocol 2.0.7-beta.2 → 2.0.7-beta.4
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 -0
- package/artifacts/abis/BuyGDCloneFactory.min.json +1 -0
- package/artifacts/abis/IStaticOracle.min.json +1 -0
- package/artifacts/abis/ISwapRouter.min.json +1 -0
- package/artifacts/contracts/DAOStackInterfaces.sol/Avatar.dbg.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/Controller.dbg.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/GlobalConstraintInterface.dbg.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/IntVoteInterface.dbg.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/ReputationInterface.dbg.json +1 -1
- package/artifacts/contracts/DAOStackInterfaces.sol/SchemeRegistrar.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/AggregatorV3Interface.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/ERC20.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IAaveIncentivesController.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IAdminWallet.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IDonationStaking.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IERC2917.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IFirstClaimPool.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IGoodDollar.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IGoodStaking.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IHasRouter.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IIdentity.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IIdentityV2.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/ILendingPool.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IMultichainRouter.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/INameService.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/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/InvitesFuseV2.sol/InvitesFuseV2.json +2 -2
- package/artifacts/contracts/invite/InvitesV1.sol/InvitesV1.dbg.json +1 -1
- package/artifacts/contracts/invite/InvitesV2.sol/InvitesV2.dbg.json +1 -1
- package/artifacts/contracts/invite/InvitesV2.sol/InvitesV2.json +2 -2
- 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 +2 -2
- package/artifacts/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTestHelper.dbg.json +1 -1
- package/artifacts/contracts/mocks/DistributionHelperTest.sol/DistributionHelperTestHelper.json +2 -2
- package/artifacts/contracts/mocks/EthUSDMockOracle.sol/EthUSDMockOracle.dbg.json +1 -1
- package/artifacts/contracts/mocks/FeesFormularMock.sol/FeesFormulaMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/GasPriceMockOracle.sol/GasPriceMockOracle.dbg.json +1 -1
- package/artifacts/contracts/mocks/GoodCompoundStakingTest.sol/GoodCompoundStakingTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/GoodCompoundStakingTest.sol/GoodCompoundStakingTest.json +2 -2
- package/artifacts/contracts/mocks/GoodDollarStakingMock.sol/GoodDollarStakingMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/GoodFundManagerTest.sol/GoodFundManagerTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/GoodFundManagerTest.sol/GoodFundManagerTest.json +2 -2
- package/artifacts/contracts/mocks/IdentityMock.sol/IdentityMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/IncentiveControllerMock.sol/IncentiveControllerMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/LendingPoolMock.sol/LendingPoolMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/MultichainRouterMock.sol/IWrapper.dbg.json +1 -1
- package/artifacts/contracts/mocks/MultichainRouterMock.sol/MultichainRouterMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/OverMintTester.sol/IGoodDollarStakingTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/OverMintTester.sol/OverMintTester.dbg.json +1 -1
- package/artifacts/contracts/mocks/OverMintTesterRegularStake.sol/OverMintTesterRegularStake.dbg.json +1 -1
- package/artifacts/contracts/mocks/OverMintTesterRegularStake.sol/OverMintTesterRegularStake.json +2 -2
- package/artifacts/contracts/mocks/PayableMock.sol/PayableMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/SixteenDecimalsTokenMock.sol/SixteenDecimalsTokenMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/StakingMockFixedAPY.sol/StakingMockFixedAPY.dbg.json +1 -1
- package/artifacts/contracts/mocks/SwapHelperTest.sol/SwapHelperTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/TwentyDecimalsTokenMock.sol/TwentyDecimalsTokenMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock2.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock3.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock4.dbg.json +1 -1
- package/artifacts/contracts/mocks/UsdcMock.sol/USDCMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cBATMock.sol/cBATMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cDAILowWorthMock.sol/cDAILowWorthMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cDAIMock.sol/cDAIMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cDAINonMintableMock.sol/cDAINonMintableMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cDecimalsMock.sol/cDecimalsMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cSDTMock.sol/cSDTMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cUSDCMock.sol/cUSDCMock.dbg.json +1 -1
- package/artifacts/contracts/reserve/DistributionHelper.sol/DistributionHelper.dbg.json +1 -1
- package/artifacts/contracts/reserve/DistributionHelper.sol/DistributionHelper.json +2 -2
- package/artifacts/contracts/reserve/ExchangeHelper.sol/ExchangeHelper.dbg.json +1 -1
- package/artifacts/contracts/reserve/ExchangeHelper.sol/ExchangeHelper.json +2 -2
- package/artifacts/contracts/reserve/GoodMarketMaker.sol/GoodMarketMaker.dbg.json +1 -1
- package/artifacts/contracts/reserve/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/FeesFormula.sol/IFeesFormula.dbg.json +1 -1
- package/artifacts/contracts/token/GoodDollar.sol/GoodDollar.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/SuperGoodDollar.sol/SuperGoodDollar.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/SuperToken.sol/SuperToken.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/SuperfluidToken.sol/SuperfluidToken.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/UUPSProxiable.sol/UUPSProxiable.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/UUPSProxy.sol/Proxy.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/UUPSProxy.sol/UUPSProxy.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/UUPSProxy.sol/UUPSUtils.dbg.json +1 -1
- package/artifacts/contracts/ubi/UBIScheme.sol/UBIScheme.dbg.json +1 -1
- package/artifacts/contracts/ubi/UBISchemeV2.sol/UBISchemeV2.dbg.json +1 -1
- package/artifacts/contracts/utils/AdminWallet.sol/AdminWallet.dbg.json +1 -1
- package/artifacts/contracts/utils/AdminWalletFuse.sol/AdminWalletFuse.dbg.json +1 -1
- package/artifacts/contracts/utils/BancorFormula.sol/BancorFormula.dbg.json +1 -1
- package/artifacts/contracts/utils/BulkProof.sol/BulkProof.dbg.json +1 -1
- package/artifacts/contracts/utils/BulkProof.sol/BulkProof.json +2 -2
- package/artifacts/contracts/utils/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 +4 -0
- package/artifacts/contracts/utils/BuyGDClone.sol/BuyGDClone.json +250 -0
- package/artifacts/contracts/utils/BuyGDClone.sol/BuyGDCloneFactory.dbg.json +4 -0
- package/artifacts/contracts/utils/BuyGDClone.sol/BuyGDCloneFactory.json +75 -0
- package/artifacts/contracts/utils/BuyGDClone.sol/IStaticOracle.dbg.json +4 -0
- package/artifacts/contracts/utils/BuyGDClone.sol/IStaticOracle.json +79 -0
- package/artifacts/contracts/utils/BuyGDClone.sol/ISwapRouter.dbg.json +4 -0
- package/artifacts/contracts/utils/BuyGDClone.sol/ISwapRouter.json +205 -0
- 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/invite/InvitesFuseV2.sol +5 -3
- package/contracts/invite/InvitesV2.sol +5 -3
- package/contracts/reserve/DistributionHelper.sol +12 -9
- package/contracts/utils/BuyGDClone.sol +309 -0
- package/package.json +1 -1
- package/scripts/upgrades/multichain-temp-fix.ts +129 -0
- package/truffle-config.js +4 -0
- package/types/BuyGDClone.ts +353 -0
- package/types/BuyGDCloneFactory.ts +112 -0
- package/types/IStaticOracle.ts +170 -0
- package/types/ISwapRouter.ts +298 -0
- package/types/factories/AaveStakingFactory__factory.ts +1 -1
- package/types/factories/BuyAndBridgeHelper__factory.ts +1 -1
- package/types/factories/BuyGDCloneFactory__factory.ts +146 -0
- package/types/factories/BuyGDClone__factory.ts +318 -0
- package/types/factories/CompoundStakingFactory__factory.ts +1 -1
- package/types/factories/DistributionHelperTestHelper__factory.ts +1 -1
- package/types/factories/DistributionHelperTest__factory.ts +1 -1
- package/types/factories/DistributionHelper__factory.ts +1 -1
- package/types/factories/DonationsStaking__factory.ts +1 -1
- package/types/factories/ExchangeHelper__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/GoodFundManagerTest__factory.ts +1 -1
- package/types/factories/GoodFundManager__factory.ts +1 -1
- package/types/factories/GoodReserveCDai__factory.ts +1 -1
- package/types/factories/IStaticOracle__factory.ts +91 -0
- package/types/factories/ISwapRouter__factory.ts +217 -0
- package/types/factories/InvitesFuseV2__factory.ts +1 -1
- package/types/factories/InvitesV2__factory.ts +1 -1
- package/types/factories/OverMintTesterRegularStake__factory.ts +1 -1
- package/types/factories/StakersDistribution__factory.ts +1 -1
- package/types/hardhat.d.ts +36 -0
- package/types/index.ts +8 -0
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
ethers,
|
|
7
|
+
EventFilter,
|
|
8
|
+
Signer,
|
|
9
|
+
BigNumber,
|
|
10
|
+
BigNumberish,
|
|
11
|
+
PopulatedTransaction,
|
|
12
|
+
BaseContract,
|
|
13
|
+
ContractTransaction,
|
|
14
|
+
Overrides,
|
|
15
|
+
PayableOverrides,
|
|
16
|
+
CallOverrides,
|
|
17
|
+
} from "ethers";
|
|
18
|
+
import { BytesLike } from "@ethersproject/bytes";
|
|
19
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
20
|
+
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
|
|
21
|
+
import type {
|
|
22
|
+
TypedEventFilter,
|
|
23
|
+
TypedEvent,
|
|
24
|
+
TypedListener,
|
|
25
|
+
OnEvent,
|
|
26
|
+
} from "./common";
|
|
27
|
+
|
|
28
|
+
export interface BuyGDCloneInterface extends ethers.utils.Interface {
|
|
29
|
+
functions: {
|
|
30
|
+
"celo()": FunctionFragment;
|
|
31
|
+
"cusd()": FunctionFragment;
|
|
32
|
+
"gd()": FunctionFragment;
|
|
33
|
+
"initialize(address)": FunctionFragment;
|
|
34
|
+
"minAmountByTWAP(uint256,address)": FunctionFragment;
|
|
35
|
+
"oracle()": FunctionFragment;
|
|
36
|
+
"owner()": FunctionFragment;
|
|
37
|
+
"recover(address)": FunctionFragment;
|
|
38
|
+
"router()": FunctionFragment;
|
|
39
|
+
"swap(uint256)": FunctionFragment;
|
|
40
|
+
"swapCelo(uint256)": FunctionFragment;
|
|
41
|
+
"swapCusd(uint256)": FunctionFragment;
|
|
42
|
+
"twapPeriod()": FunctionFragment;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
encodeFunctionData(functionFragment: "celo", values?: undefined): string;
|
|
46
|
+
encodeFunctionData(functionFragment: "cusd", values?: undefined): string;
|
|
47
|
+
encodeFunctionData(functionFragment: "gd", values?: undefined): string;
|
|
48
|
+
encodeFunctionData(functionFragment: "initialize", values: [string]): string;
|
|
49
|
+
encodeFunctionData(
|
|
50
|
+
functionFragment: "minAmountByTWAP",
|
|
51
|
+
values: [BigNumberish, string]
|
|
52
|
+
): string;
|
|
53
|
+
encodeFunctionData(functionFragment: "oracle", values?: undefined): string;
|
|
54
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
55
|
+
encodeFunctionData(functionFragment: "recover", values: [string]): string;
|
|
56
|
+
encodeFunctionData(functionFragment: "router", values?: undefined): string;
|
|
57
|
+
encodeFunctionData(functionFragment: "swap", values: [BigNumberish]): string;
|
|
58
|
+
encodeFunctionData(
|
|
59
|
+
functionFragment: "swapCelo",
|
|
60
|
+
values: [BigNumberish]
|
|
61
|
+
): string;
|
|
62
|
+
encodeFunctionData(
|
|
63
|
+
functionFragment: "swapCusd",
|
|
64
|
+
values: [BigNumberish]
|
|
65
|
+
): string;
|
|
66
|
+
encodeFunctionData(
|
|
67
|
+
functionFragment: "twapPeriod",
|
|
68
|
+
values?: undefined
|
|
69
|
+
): string;
|
|
70
|
+
|
|
71
|
+
decodeFunctionResult(functionFragment: "celo", data: BytesLike): Result;
|
|
72
|
+
decodeFunctionResult(functionFragment: "cusd", data: BytesLike): Result;
|
|
73
|
+
decodeFunctionResult(functionFragment: "gd", data: BytesLike): Result;
|
|
74
|
+
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
75
|
+
decodeFunctionResult(
|
|
76
|
+
functionFragment: "minAmountByTWAP",
|
|
77
|
+
data: BytesLike
|
|
78
|
+
): Result;
|
|
79
|
+
decodeFunctionResult(functionFragment: "oracle", data: BytesLike): Result;
|
|
80
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
81
|
+
decodeFunctionResult(functionFragment: "recover", data: BytesLike): Result;
|
|
82
|
+
decodeFunctionResult(functionFragment: "router", data: BytesLike): Result;
|
|
83
|
+
decodeFunctionResult(functionFragment: "swap", data: BytesLike): Result;
|
|
84
|
+
decodeFunctionResult(functionFragment: "swapCelo", data: BytesLike): Result;
|
|
85
|
+
decodeFunctionResult(functionFragment: "swapCusd", data: BytesLike): Result;
|
|
86
|
+
decodeFunctionResult(functionFragment: "twapPeriod", data: BytesLike): Result;
|
|
87
|
+
|
|
88
|
+
events: {
|
|
89
|
+
"Initialized(uint8)": EventFragment;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type InitializedEvent = TypedEvent<[number], { version: number }>;
|
|
96
|
+
|
|
97
|
+
export type InitializedEventFilter = TypedEventFilter<InitializedEvent>;
|
|
98
|
+
|
|
99
|
+
export interface BuyGDClone extends BaseContract {
|
|
100
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
101
|
+
attach(addressOrName: string): this;
|
|
102
|
+
deployed(): Promise<this>;
|
|
103
|
+
|
|
104
|
+
interface: BuyGDCloneInterface;
|
|
105
|
+
|
|
106
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
107
|
+
event: TypedEventFilter<TEvent>,
|
|
108
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
109
|
+
toBlock?: string | number | undefined
|
|
110
|
+
): Promise<Array<TEvent>>;
|
|
111
|
+
|
|
112
|
+
listeners<TEvent extends TypedEvent>(
|
|
113
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
114
|
+
): Array<TypedListener<TEvent>>;
|
|
115
|
+
listeners(eventName?: string): Array<Listener>;
|
|
116
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
117
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
118
|
+
): this;
|
|
119
|
+
removeAllListeners(eventName?: string): this;
|
|
120
|
+
off: OnEvent<this>;
|
|
121
|
+
on: OnEvent<this>;
|
|
122
|
+
once: OnEvent<this>;
|
|
123
|
+
removeListener: OnEvent<this>;
|
|
124
|
+
|
|
125
|
+
functions: {
|
|
126
|
+
celo(overrides?: CallOverrides): Promise<[string]>;
|
|
127
|
+
|
|
128
|
+
cusd(overrides?: CallOverrides): Promise<[string]>;
|
|
129
|
+
|
|
130
|
+
gd(overrides?: CallOverrides): Promise<[string]>;
|
|
131
|
+
|
|
132
|
+
initialize(
|
|
133
|
+
_owner: string,
|
|
134
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
135
|
+
): Promise<ContractTransaction>;
|
|
136
|
+
|
|
137
|
+
minAmountByTWAP(
|
|
138
|
+
baseAmount: BigNumberish,
|
|
139
|
+
baseToken: string,
|
|
140
|
+
overrides?: CallOverrides
|
|
141
|
+
): Promise<[BigNumber] & { minTwap: BigNumber }>;
|
|
142
|
+
|
|
143
|
+
oracle(overrides?: CallOverrides): Promise<[string]>;
|
|
144
|
+
|
|
145
|
+
owner(overrides?: CallOverrides): Promise<[string]>;
|
|
146
|
+
|
|
147
|
+
recover(
|
|
148
|
+
token: string,
|
|
149
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
150
|
+
): Promise<ContractTransaction>;
|
|
151
|
+
|
|
152
|
+
router(overrides?: CallOverrides): Promise<[string]>;
|
|
153
|
+
|
|
154
|
+
swap(
|
|
155
|
+
_minAmount: BigNumberish,
|
|
156
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
157
|
+
): Promise<ContractTransaction>;
|
|
158
|
+
|
|
159
|
+
swapCelo(
|
|
160
|
+
_minAmount: BigNumberish,
|
|
161
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
162
|
+
): Promise<ContractTransaction>;
|
|
163
|
+
|
|
164
|
+
swapCusd(
|
|
165
|
+
_minAmount: BigNumberish,
|
|
166
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
167
|
+
): Promise<ContractTransaction>;
|
|
168
|
+
|
|
169
|
+
twapPeriod(overrides?: CallOverrides): Promise<[number]>;
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
celo(overrides?: CallOverrides): Promise<string>;
|
|
173
|
+
|
|
174
|
+
cusd(overrides?: CallOverrides): Promise<string>;
|
|
175
|
+
|
|
176
|
+
gd(overrides?: CallOverrides): Promise<string>;
|
|
177
|
+
|
|
178
|
+
initialize(
|
|
179
|
+
_owner: string,
|
|
180
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
181
|
+
): Promise<ContractTransaction>;
|
|
182
|
+
|
|
183
|
+
minAmountByTWAP(
|
|
184
|
+
baseAmount: BigNumberish,
|
|
185
|
+
baseToken: string,
|
|
186
|
+
overrides?: CallOverrides
|
|
187
|
+
): Promise<BigNumber>;
|
|
188
|
+
|
|
189
|
+
oracle(overrides?: CallOverrides): Promise<string>;
|
|
190
|
+
|
|
191
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
192
|
+
|
|
193
|
+
recover(
|
|
194
|
+
token: string,
|
|
195
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
196
|
+
): Promise<ContractTransaction>;
|
|
197
|
+
|
|
198
|
+
router(overrides?: CallOverrides): Promise<string>;
|
|
199
|
+
|
|
200
|
+
swap(
|
|
201
|
+
_minAmount: BigNumberish,
|
|
202
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
203
|
+
): Promise<ContractTransaction>;
|
|
204
|
+
|
|
205
|
+
swapCelo(
|
|
206
|
+
_minAmount: BigNumberish,
|
|
207
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
208
|
+
): Promise<ContractTransaction>;
|
|
209
|
+
|
|
210
|
+
swapCusd(
|
|
211
|
+
_minAmount: BigNumberish,
|
|
212
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
213
|
+
): Promise<ContractTransaction>;
|
|
214
|
+
|
|
215
|
+
twapPeriod(overrides?: CallOverrides): Promise<number>;
|
|
216
|
+
|
|
217
|
+
callStatic: {
|
|
218
|
+
celo(overrides?: CallOverrides): Promise<string>;
|
|
219
|
+
|
|
220
|
+
cusd(overrides?: CallOverrides): Promise<string>;
|
|
221
|
+
|
|
222
|
+
gd(overrides?: CallOverrides): Promise<string>;
|
|
223
|
+
|
|
224
|
+
initialize(_owner: string, overrides?: CallOverrides): Promise<void>;
|
|
225
|
+
|
|
226
|
+
minAmountByTWAP(
|
|
227
|
+
baseAmount: BigNumberish,
|
|
228
|
+
baseToken: string,
|
|
229
|
+
overrides?: CallOverrides
|
|
230
|
+
): Promise<BigNumber>;
|
|
231
|
+
|
|
232
|
+
oracle(overrides?: CallOverrides): Promise<string>;
|
|
233
|
+
|
|
234
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
235
|
+
|
|
236
|
+
recover(token: string, overrides?: CallOverrides): Promise<void>;
|
|
237
|
+
|
|
238
|
+
router(overrides?: CallOverrides): Promise<string>;
|
|
239
|
+
|
|
240
|
+
swap(_minAmount: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
|
241
|
+
|
|
242
|
+
swapCelo(
|
|
243
|
+
_minAmount: BigNumberish,
|
|
244
|
+
overrides?: CallOverrides
|
|
245
|
+
): Promise<void>;
|
|
246
|
+
|
|
247
|
+
swapCusd(
|
|
248
|
+
_minAmount: BigNumberish,
|
|
249
|
+
overrides?: CallOverrides
|
|
250
|
+
): Promise<void>;
|
|
251
|
+
|
|
252
|
+
twapPeriod(overrides?: CallOverrides): Promise<number>;
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
filters: {
|
|
256
|
+
"Initialized(uint8)"(version?: null): InitializedEventFilter;
|
|
257
|
+
Initialized(version?: null): InitializedEventFilter;
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
estimateGas: {
|
|
261
|
+
celo(overrides?: CallOverrides): Promise<BigNumber>;
|
|
262
|
+
|
|
263
|
+
cusd(overrides?: CallOverrides): Promise<BigNumber>;
|
|
264
|
+
|
|
265
|
+
gd(overrides?: CallOverrides): Promise<BigNumber>;
|
|
266
|
+
|
|
267
|
+
initialize(
|
|
268
|
+
_owner: string,
|
|
269
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
270
|
+
): Promise<BigNumber>;
|
|
271
|
+
|
|
272
|
+
minAmountByTWAP(
|
|
273
|
+
baseAmount: BigNumberish,
|
|
274
|
+
baseToken: string,
|
|
275
|
+
overrides?: CallOverrides
|
|
276
|
+
): Promise<BigNumber>;
|
|
277
|
+
|
|
278
|
+
oracle(overrides?: CallOverrides): Promise<BigNumber>;
|
|
279
|
+
|
|
280
|
+
owner(overrides?: CallOverrides): Promise<BigNumber>;
|
|
281
|
+
|
|
282
|
+
recover(
|
|
283
|
+
token: string,
|
|
284
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
285
|
+
): Promise<BigNumber>;
|
|
286
|
+
|
|
287
|
+
router(overrides?: CallOverrides): Promise<BigNumber>;
|
|
288
|
+
|
|
289
|
+
swap(
|
|
290
|
+
_minAmount: BigNumberish,
|
|
291
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
292
|
+
): Promise<BigNumber>;
|
|
293
|
+
|
|
294
|
+
swapCelo(
|
|
295
|
+
_minAmount: BigNumberish,
|
|
296
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
297
|
+
): Promise<BigNumber>;
|
|
298
|
+
|
|
299
|
+
swapCusd(
|
|
300
|
+
_minAmount: BigNumberish,
|
|
301
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
302
|
+
): Promise<BigNumber>;
|
|
303
|
+
|
|
304
|
+
twapPeriod(overrides?: CallOverrides): Promise<BigNumber>;
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
populateTransaction: {
|
|
308
|
+
celo(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
309
|
+
|
|
310
|
+
cusd(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
311
|
+
|
|
312
|
+
gd(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
313
|
+
|
|
314
|
+
initialize(
|
|
315
|
+
_owner: string,
|
|
316
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
317
|
+
): Promise<PopulatedTransaction>;
|
|
318
|
+
|
|
319
|
+
minAmountByTWAP(
|
|
320
|
+
baseAmount: BigNumberish,
|
|
321
|
+
baseToken: string,
|
|
322
|
+
overrides?: CallOverrides
|
|
323
|
+
): Promise<PopulatedTransaction>;
|
|
324
|
+
|
|
325
|
+
oracle(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
326
|
+
|
|
327
|
+
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
328
|
+
|
|
329
|
+
recover(
|
|
330
|
+
token: string,
|
|
331
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
332
|
+
): Promise<PopulatedTransaction>;
|
|
333
|
+
|
|
334
|
+
router(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
335
|
+
|
|
336
|
+
swap(
|
|
337
|
+
_minAmount: BigNumberish,
|
|
338
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
339
|
+
): Promise<PopulatedTransaction>;
|
|
340
|
+
|
|
341
|
+
swapCelo(
|
|
342
|
+
_minAmount: BigNumberish,
|
|
343
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
344
|
+
): Promise<PopulatedTransaction>;
|
|
345
|
+
|
|
346
|
+
swapCusd(
|
|
347
|
+
_minAmount: BigNumberish,
|
|
348
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
349
|
+
): Promise<PopulatedTransaction>;
|
|
350
|
+
|
|
351
|
+
twapPeriod(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
352
|
+
};
|
|
353
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
ethers,
|
|
7
|
+
EventFilter,
|
|
8
|
+
Signer,
|
|
9
|
+
BigNumber,
|
|
10
|
+
BigNumberish,
|
|
11
|
+
PopulatedTransaction,
|
|
12
|
+
BaseContract,
|
|
13
|
+
ContractTransaction,
|
|
14
|
+
Overrides,
|
|
15
|
+
CallOverrides,
|
|
16
|
+
} from "ethers";
|
|
17
|
+
import { BytesLike } from "@ethersproject/bytes";
|
|
18
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
19
|
+
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
|
|
20
|
+
import type {
|
|
21
|
+
TypedEventFilter,
|
|
22
|
+
TypedEvent,
|
|
23
|
+
TypedListener,
|
|
24
|
+
OnEvent,
|
|
25
|
+
} from "./common";
|
|
26
|
+
|
|
27
|
+
export interface BuyGDCloneFactoryInterface extends ethers.utils.Interface {
|
|
28
|
+
functions: {
|
|
29
|
+
"create(address)": FunctionFragment;
|
|
30
|
+
"predict(address)": FunctionFragment;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
encodeFunctionData(functionFragment: "create", values: [string]): string;
|
|
34
|
+
encodeFunctionData(functionFragment: "predict", values: [string]): string;
|
|
35
|
+
|
|
36
|
+
decodeFunctionResult(functionFragment: "create", data: BytesLike): Result;
|
|
37
|
+
decodeFunctionResult(functionFragment: "predict", data: BytesLike): Result;
|
|
38
|
+
|
|
39
|
+
events: {};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface BuyGDCloneFactory extends BaseContract {
|
|
43
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
44
|
+
attach(addressOrName: string): this;
|
|
45
|
+
deployed(): Promise<this>;
|
|
46
|
+
|
|
47
|
+
interface: BuyGDCloneFactoryInterface;
|
|
48
|
+
|
|
49
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
50
|
+
event: TypedEventFilter<TEvent>,
|
|
51
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
52
|
+
toBlock?: string | number | undefined
|
|
53
|
+
): Promise<Array<TEvent>>;
|
|
54
|
+
|
|
55
|
+
listeners<TEvent extends TypedEvent>(
|
|
56
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
57
|
+
): Array<TypedListener<TEvent>>;
|
|
58
|
+
listeners(eventName?: string): Array<Listener>;
|
|
59
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
60
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
61
|
+
): this;
|
|
62
|
+
removeAllListeners(eventName?: string): this;
|
|
63
|
+
off: OnEvent<this>;
|
|
64
|
+
on: OnEvent<this>;
|
|
65
|
+
once: OnEvent<this>;
|
|
66
|
+
removeListener: OnEvent<this>;
|
|
67
|
+
|
|
68
|
+
functions: {
|
|
69
|
+
create(
|
|
70
|
+
owner: string,
|
|
71
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
72
|
+
): Promise<ContractTransaction>;
|
|
73
|
+
|
|
74
|
+
predict(owner: string, overrides?: CallOverrides): Promise<[string]>;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
create(
|
|
78
|
+
owner: string,
|
|
79
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
80
|
+
): Promise<ContractTransaction>;
|
|
81
|
+
|
|
82
|
+
predict(owner: string, overrides?: CallOverrides): Promise<string>;
|
|
83
|
+
|
|
84
|
+
callStatic: {
|
|
85
|
+
create(owner: string, overrides?: CallOverrides): Promise<string>;
|
|
86
|
+
|
|
87
|
+
predict(owner: string, overrides?: CallOverrides): Promise<string>;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
filters: {};
|
|
91
|
+
|
|
92
|
+
estimateGas: {
|
|
93
|
+
create(
|
|
94
|
+
owner: string,
|
|
95
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
96
|
+
): Promise<BigNumber>;
|
|
97
|
+
|
|
98
|
+
predict(owner: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
populateTransaction: {
|
|
102
|
+
create(
|
|
103
|
+
owner: string,
|
|
104
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
105
|
+
): Promise<PopulatedTransaction>;
|
|
106
|
+
|
|
107
|
+
predict(
|
|
108
|
+
owner: string,
|
|
109
|
+
overrides?: CallOverrides
|
|
110
|
+
): Promise<PopulatedTransaction>;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
ethers,
|
|
7
|
+
EventFilter,
|
|
8
|
+
Signer,
|
|
9
|
+
BigNumber,
|
|
10
|
+
BigNumberish,
|
|
11
|
+
PopulatedTransaction,
|
|
12
|
+
BaseContract,
|
|
13
|
+
ContractTransaction,
|
|
14
|
+
Overrides,
|
|
15
|
+
CallOverrides,
|
|
16
|
+
} from "ethers";
|
|
17
|
+
import { BytesLike } from "@ethersproject/bytes";
|
|
18
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
19
|
+
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
|
|
20
|
+
import type {
|
|
21
|
+
TypedEventFilter,
|
|
22
|
+
TypedEvent,
|
|
23
|
+
TypedListener,
|
|
24
|
+
OnEvent,
|
|
25
|
+
} from "./common";
|
|
26
|
+
|
|
27
|
+
export interface IStaticOracleInterface extends ethers.utils.Interface {
|
|
28
|
+
functions: {
|
|
29
|
+
"prepareAllAvailablePoolsWithCardinality(address,address,uint16)": FunctionFragment;
|
|
30
|
+
"quoteAllAvailablePoolsWithTimePeriod(uint128,address,address,uint32)": FunctionFragment;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
encodeFunctionData(
|
|
34
|
+
functionFragment: "prepareAllAvailablePoolsWithCardinality",
|
|
35
|
+
values: [string, string, BigNumberish]
|
|
36
|
+
): string;
|
|
37
|
+
encodeFunctionData(
|
|
38
|
+
functionFragment: "quoteAllAvailablePoolsWithTimePeriod",
|
|
39
|
+
values: [BigNumberish, string, string, BigNumberish]
|
|
40
|
+
): string;
|
|
41
|
+
|
|
42
|
+
decodeFunctionResult(
|
|
43
|
+
functionFragment: "prepareAllAvailablePoolsWithCardinality",
|
|
44
|
+
data: BytesLike
|
|
45
|
+
): Result;
|
|
46
|
+
decodeFunctionResult(
|
|
47
|
+
functionFragment: "quoteAllAvailablePoolsWithTimePeriod",
|
|
48
|
+
data: BytesLike
|
|
49
|
+
): Result;
|
|
50
|
+
|
|
51
|
+
events: {};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface IStaticOracle extends BaseContract {
|
|
55
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
56
|
+
attach(addressOrName: string): this;
|
|
57
|
+
deployed(): Promise<this>;
|
|
58
|
+
|
|
59
|
+
interface: IStaticOracleInterface;
|
|
60
|
+
|
|
61
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
62
|
+
event: TypedEventFilter<TEvent>,
|
|
63
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
64
|
+
toBlock?: string | number | undefined
|
|
65
|
+
): Promise<Array<TEvent>>;
|
|
66
|
+
|
|
67
|
+
listeners<TEvent extends TypedEvent>(
|
|
68
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
69
|
+
): Array<TypedListener<TEvent>>;
|
|
70
|
+
listeners(eventName?: string): Array<Listener>;
|
|
71
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
72
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
73
|
+
): this;
|
|
74
|
+
removeAllListeners(eventName?: string): this;
|
|
75
|
+
off: OnEvent<this>;
|
|
76
|
+
on: OnEvent<this>;
|
|
77
|
+
once: OnEvent<this>;
|
|
78
|
+
removeListener: OnEvent<this>;
|
|
79
|
+
|
|
80
|
+
functions: {
|
|
81
|
+
prepareAllAvailablePoolsWithCardinality(
|
|
82
|
+
tokenA: string,
|
|
83
|
+
tokenB: string,
|
|
84
|
+
cardinality: BigNumberish,
|
|
85
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
86
|
+
): Promise<ContractTransaction>;
|
|
87
|
+
|
|
88
|
+
quoteAllAvailablePoolsWithTimePeriod(
|
|
89
|
+
baseAmount: BigNumberish,
|
|
90
|
+
baseToken: string,
|
|
91
|
+
quoteToken: string,
|
|
92
|
+
period: BigNumberish,
|
|
93
|
+
overrides?: CallOverrides
|
|
94
|
+
): Promise<
|
|
95
|
+
[BigNumber, string[]] & { quoteAmount: BigNumber; queriedPools: string[] }
|
|
96
|
+
>;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
prepareAllAvailablePoolsWithCardinality(
|
|
100
|
+
tokenA: string,
|
|
101
|
+
tokenB: string,
|
|
102
|
+
cardinality: BigNumberish,
|
|
103
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
104
|
+
): Promise<ContractTransaction>;
|
|
105
|
+
|
|
106
|
+
quoteAllAvailablePoolsWithTimePeriod(
|
|
107
|
+
baseAmount: BigNumberish,
|
|
108
|
+
baseToken: string,
|
|
109
|
+
quoteToken: string,
|
|
110
|
+
period: BigNumberish,
|
|
111
|
+
overrides?: CallOverrides
|
|
112
|
+
): Promise<
|
|
113
|
+
[BigNumber, string[]] & { quoteAmount: BigNumber; queriedPools: string[] }
|
|
114
|
+
>;
|
|
115
|
+
|
|
116
|
+
callStatic: {
|
|
117
|
+
prepareAllAvailablePoolsWithCardinality(
|
|
118
|
+
tokenA: string,
|
|
119
|
+
tokenB: string,
|
|
120
|
+
cardinality: BigNumberish,
|
|
121
|
+
overrides?: CallOverrides
|
|
122
|
+
): Promise<string[]>;
|
|
123
|
+
|
|
124
|
+
quoteAllAvailablePoolsWithTimePeriod(
|
|
125
|
+
baseAmount: BigNumberish,
|
|
126
|
+
baseToken: string,
|
|
127
|
+
quoteToken: string,
|
|
128
|
+
period: BigNumberish,
|
|
129
|
+
overrides?: CallOverrides
|
|
130
|
+
): Promise<
|
|
131
|
+
[BigNumber, string[]] & { quoteAmount: BigNumber; queriedPools: string[] }
|
|
132
|
+
>;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
filters: {};
|
|
136
|
+
|
|
137
|
+
estimateGas: {
|
|
138
|
+
prepareAllAvailablePoolsWithCardinality(
|
|
139
|
+
tokenA: string,
|
|
140
|
+
tokenB: string,
|
|
141
|
+
cardinality: BigNumberish,
|
|
142
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
143
|
+
): Promise<BigNumber>;
|
|
144
|
+
|
|
145
|
+
quoteAllAvailablePoolsWithTimePeriod(
|
|
146
|
+
baseAmount: BigNumberish,
|
|
147
|
+
baseToken: string,
|
|
148
|
+
quoteToken: string,
|
|
149
|
+
period: BigNumberish,
|
|
150
|
+
overrides?: CallOverrides
|
|
151
|
+
): Promise<BigNumber>;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
populateTransaction: {
|
|
155
|
+
prepareAllAvailablePoolsWithCardinality(
|
|
156
|
+
tokenA: string,
|
|
157
|
+
tokenB: string,
|
|
158
|
+
cardinality: BigNumberish,
|
|
159
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
160
|
+
): Promise<PopulatedTransaction>;
|
|
161
|
+
|
|
162
|
+
quoteAllAvailablePoolsWithTimePeriod(
|
|
163
|
+
baseAmount: BigNumberish,
|
|
164
|
+
baseToken: string,
|
|
165
|
+
quoteToken: string,
|
|
166
|
+
period: BigNumberish,
|
|
167
|
+
overrides?: CallOverrides
|
|
168
|
+
): Promise<PopulatedTransaction>;
|
|
169
|
+
};
|
|
170
|
+
}
|