@gooddollar/goodprotocol 2.0.16 → 2.0.18
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/BuyGDCloneFactory.min.json +1 -1
- package/artifacts/abis/DonateGDClone.min.json +1 -0
- package/artifacts/abis/ISuperToken.min.json +1 -1
- package/artifacts/abis/SuperGoodDollar.min.json +1 -1
- package/artifacts/abis/SuperToken.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/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/DistributionHelperTestHelper.dbg.json +1 -1
- package/artifacts/contracts/mocks/EthUSDMockOracle.sol/EthUSDMockOracle.dbg.json +1 -1
- package/artifacts/contracts/mocks/FeesFormularMock.sol/FeesFormulaMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/GasPriceMockOracle.sol/GasPriceMockOracle.dbg.json +1 -1
- package/artifacts/contracts/mocks/GoodCompoundStakingTest.sol/GoodCompoundStakingTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/GoodDollarStakingMock.sol/GoodDollarStakingMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/GoodFundManagerTest.sol/GoodFundManagerTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/IdentityMock.sol/IdentityMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/IncentiveControllerMock.sol/IncentiveControllerMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/LendingPoolMock.sol/LendingPoolMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/MultichainRouterMock.sol/IWrapper.dbg.json +1 -1
- package/artifacts/contracts/mocks/MultichainRouterMock.sol/MultichainRouterMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/OverMintTester.sol/IGoodDollarStakingTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/OverMintTester.sol/OverMintTester.dbg.json +1 -1
- package/artifacts/contracts/mocks/OverMintTesterRegularStake.sol/OverMintTesterRegularStake.dbg.json +1 -1
- package/artifacts/contracts/mocks/PayableMock.sol/PayableMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/SixteenDecimalsTokenMock.sol/SixteenDecimalsTokenMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/StakingMockFixedAPY.sol/StakingMockFixedAPY.dbg.json +1 -1
- package/artifacts/contracts/mocks/SwapHelperTest.sol/SwapHelperTest.dbg.json +1 -1
- package/artifacts/contracts/mocks/TwentyDecimalsTokenMock.sol/TwentyDecimalsTokenMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock2.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock3.dbg.json +1 -1
- package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock4.dbg.json +1 -1
- package/artifacts/contracts/mocks/UsdcMock.sol/USDCMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cBATMock.sol/cBATMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cDAILowWorthMock.sol/cDAILowWorthMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cDAIMock.sol/cDAIMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cDAINonMintableMock.sol/cDAINonMintableMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cDecimalsMock.sol/cDecimalsMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cSDTMock.sol/cSDTMock.dbg.json +1 -1
- package/artifacts/contracts/mocks/cUSDCMock.sol/cUSDCMock.dbg.json +1 -1
- package/artifacts/contracts/reserve/DistributionHelper.sol/DistributionHelper.dbg.json +1 -1
- package/artifacts/contracts/reserve/ExchangeHelper.sol/ExchangeHelper.dbg.json +1 -1
- package/artifacts/contracts/reserve/GoodMarketMaker.sol/GoodMarketMaker.dbg.json +1 -1
- package/artifacts/contracts/reserve/GoodReserveCDai.sol/ContributionCalc.dbg.json +1 -1
- package/artifacts/contracts/reserve/GoodReserveCDai.sol/GoodReserveCDai.dbg.json +1 -1
- package/artifacts/contracts/staking/BaseShareField.sol/BaseShareField.dbg.json +1 -1
- package/artifacts/contracts/staking/BaseShareFieldV2.sol/BaseShareFieldV2.dbg.json +1 -1
- package/artifacts/contracts/staking/DonationsStaking.sol/DonationsStaking.dbg.json +1 -1
- package/artifacts/contracts/staking/FuseStakingV3.sol/FuseStakingV3.dbg.json +1 -1
- package/artifacts/contracts/staking/FuseStakingV3.sol/IConsensus.dbg.json +1 -1
- package/artifacts/contracts/staking/FuseStakingV3.sol/PegSwap.dbg.json +1 -1
- package/artifacts/contracts/staking/GoodFundManager.sol/GoodFundManager.dbg.json +1 -1
- package/artifacts/contracts/staking/SimpleStaking.sol/SimpleStaking.dbg.json +1 -1
- package/artifacts/contracts/staking/SimpleStakingV2.sol/SimpleStakingV2.dbg.json +1 -1
- package/artifacts/contracts/staking/UniswapV2SwapHelper.sol/UniswapV2SwapHelper.dbg.json +1 -1
- package/artifacts/contracts/staking/aave/AaveStakingFactory.sol/AaveStakingFactory.dbg.json +1 -1
- package/artifacts/contracts/staking/aave/GoodAaveStaking.sol/GoodAaveStaking.dbg.json +1 -1
- package/artifacts/contracts/staking/aave/GoodAaveStakingV2.sol/GoodAaveStakingV2.dbg.json +1 -1
- package/artifacts/contracts/staking/compound/CompoundStakingFactory.sol/CompoundStakingFactory.dbg.json +1 -1
- package/artifacts/contracts/staking/compound/GoodCompoundStaking.sol/GoodCompoundStaking.dbg.json +1 -1
- package/artifacts/contracts/staking/compound/GoodCompoundStakingV2.sol/GoodCompoundStakingV2.dbg.json +1 -1
- package/artifacts/contracts/staking/utils/Math64X64.sol/Math64x64.dbg.json +1 -1
- package/artifacts/contracts/staking/utils/StakingRewardsFixedAPY.sol/StakingRewardsFixedAPY.dbg.json +1 -1
- package/artifacts/contracts/token/ERC20PresetMinterPauserUpgradeable.sol/ERC20PresetMinterPauserUpgradeable.dbg.json +1 -1
- package/artifacts/contracts/token/ERC677.sol/ERC677.dbg.json +1 -1
- package/artifacts/contracts/token/ERC677.sol/ERC677Receiver.dbg.json +1 -1
- package/artifacts/contracts/token/GoodDollar.sol/GoodDollar.dbg.json +1 -1
- package/artifacts/contracts/token/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/ISuperToken.sol/ISuperToken.json +26 -26
- package/artifacts/contracts/token/superfluid/SuperGoodDollar.sol/SuperGoodDollar.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/SuperGoodDollar.sol/SuperGoodDollar.json +41 -28
- package/artifacts/contracts/token/superfluid/SuperToken.sol/SuperToken.dbg.json +1 -1
- package/artifacts/contracts/token/superfluid/SuperToken.sol/SuperToken.json +28 -28
- 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/BuyAndBridgeHelper.sol/BuyAndBridgeHelper.dbg.json +1 -1
- package/artifacts/contracts/utils/BuyGDClone.sol/BuyGDClone.dbg.json +1 -1
- package/artifacts/contracts/utils/BuyGDClone.sol/BuyGDClone.json +2 -2
- package/artifacts/contracts/utils/BuyGDClone.sol/BuyGDCloneFactory.dbg.json +1 -1
- package/artifacts/contracts/utils/BuyGDClone.sol/BuyGDCloneFactory.json +112 -2
- package/artifacts/contracts/utils/BuyGDClone.sol/DonateGDClone.dbg.json +4 -0
- package/artifacts/contracts/utils/BuyGDClone.sol/DonateGDClone.json +358 -0
- 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/token/superfluid/ISuperToken.sol +2 -2
- package/contracts/token/superfluid/SuperGoodDollar.sol +405 -407
- package/contracts/token/superfluid/SuperToken.sol +2 -2
- package/contracts/utils/BuyGDClone.sol +138 -9
- package/dist/artifacts/contracts/token/superfluid/SuperGoodDollar.sol/SuperGoodDollar.json +41 -28
- package/package.json +1 -1
- package/releases/deployment.json +8 -3
- package/types/contracts/token/superfluid/ISuperToken.ts +43 -41
- package/types/contracts/token/superfluid/SuperGoodDollar.ts +66 -42
- package/types/contracts/token/superfluid/SuperToken.ts +44 -42
- package/types/contracts/utils/BuyGDClone.sol/BuyGDCloneFactory.ts +162 -0
- package/types/contracts/utils/BuyGDClone.sol/DonateGDClone.ts +529 -0
- package/types/contracts/utils/BuyGDClone.sol/index.ts +1 -0
- package/types/factories/contracts/token/superfluid/ISuperToken__factory.ts +26 -26
- package/types/factories/contracts/token/superfluid/SuperGoodDollar__factory.ts +40 -27
- package/types/factories/contracts/token/superfluid/SuperToken__factory.ts +27 -27
- package/types/factories/contracts/utils/BuyGDClone.sol/BuyGDCloneFactory__factory.ts +111 -1
- package/types/factories/contracts/utils/BuyGDClone.sol/BuyGDClone__factory.ts +1 -1
- package/types/factories/contracts/utils/BuyGDClone.sol/DonateGDClone__factory.ts +429 -0
- package/types/factories/contracts/utils/BuyGDClone.sol/index.ts +1 -0
- package/types/hardhat.d.ts +9 -0
- package/types/index.ts +2 -0
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
5
|
+
import type { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
6
|
+
import type {
|
|
7
|
+
DonateGDClone,
|
|
8
|
+
DonateGDCloneInterface,
|
|
9
|
+
} from "../../../../contracts/utils/BuyGDClone.sol/DonateGDClone";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
internalType: "contract ISwapRouter",
|
|
16
|
+
name: "_router",
|
|
17
|
+
type: "address",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
internalType: "address",
|
|
21
|
+
name: "_cusd",
|
|
22
|
+
type: "address",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
internalType: "address",
|
|
26
|
+
name: "_gd",
|
|
27
|
+
type: "address",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
internalType: "contract IStaticOracle",
|
|
31
|
+
name: "_oracle",
|
|
32
|
+
type: "address",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
stateMutability: "nonpayable",
|
|
36
|
+
type: "constructor",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
inputs: [
|
|
40
|
+
{
|
|
41
|
+
internalType: "bytes",
|
|
42
|
+
name: "error",
|
|
43
|
+
type: "bytes",
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
name: "EXEC_FAILED",
|
|
47
|
+
type: "error",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
inputs: [],
|
|
51
|
+
name: "NO_BALANCE",
|
|
52
|
+
type: "error",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
inputs: [
|
|
56
|
+
{
|
|
57
|
+
internalType: "uint256",
|
|
58
|
+
name: "",
|
|
59
|
+
type: "uint256",
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
name: "REFUND_FAILED",
|
|
63
|
+
type: "error",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
anonymous: false,
|
|
67
|
+
inputs: [
|
|
68
|
+
{
|
|
69
|
+
indexed: false,
|
|
70
|
+
internalType: "uint8",
|
|
71
|
+
name: "version",
|
|
72
|
+
type: "uint8",
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
name: "Initialized",
|
|
76
|
+
type: "event",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
inputs: [],
|
|
80
|
+
name: "callData",
|
|
81
|
+
outputs: [
|
|
82
|
+
{
|
|
83
|
+
internalType: "bytes",
|
|
84
|
+
name: "",
|
|
85
|
+
type: "bytes",
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
stateMutability: "view",
|
|
89
|
+
type: "function",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
inputs: [],
|
|
93
|
+
name: "celo",
|
|
94
|
+
outputs: [
|
|
95
|
+
{
|
|
96
|
+
internalType: "address",
|
|
97
|
+
name: "",
|
|
98
|
+
type: "address",
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
stateMutability: "view",
|
|
102
|
+
type: "function",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
inputs: [],
|
|
106
|
+
name: "cusd",
|
|
107
|
+
outputs: [
|
|
108
|
+
{
|
|
109
|
+
internalType: "address",
|
|
110
|
+
name: "",
|
|
111
|
+
type: "address",
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
stateMutability: "view",
|
|
115
|
+
type: "function",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
inputs: [
|
|
119
|
+
{
|
|
120
|
+
internalType: "uint256",
|
|
121
|
+
name: "_minAmount",
|
|
122
|
+
type: "uint256",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
internalType: "address payable",
|
|
126
|
+
name: "refundGas",
|
|
127
|
+
type: "address",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
internalType: "bool",
|
|
131
|
+
name: "withSwap",
|
|
132
|
+
type: "bool",
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
name: "exec",
|
|
136
|
+
outputs: [],
|
|
137
|
+
stateMutability: "payable",
|
|
138
|
+
type: "function",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
inputs: [],
|
|
142
|
+
name: "gd",
|
|
143
|
+
outputs: [
|
|
144
|
+
{
|
|
145
|
+
internalType: "address",
|
|
146
|
+
name: "",
|
|
147
|
+
type: "address",
|
|
148
|
+
},
|
|
149
|
+
],
|
|
150
|
+
stateMutability: "view",
|
|
151
|
+
type: "function",
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
inputs: [
|
|
155
|
+
{
|
|
156
|
+
internalType: "address",
|
|
157
|
+
name: "_owner",
|
|
158
|
+
type: "address",
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
name: "initialize",
|
|
162
|
+
outputs: [],
|
|
163
|
+
stateMutability: "nonpayable",
|
|
164
|
+
type: "function",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
inputs: [
|
|
168
|
+
{
|
|
169
|
+
internalType: "address",
|
|
170
|
+
name: "_recoverTo",
|
|
171
|
+
type: "address",
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
internalType: "address",
|
|
175
|
+
name: "_donateTo",
|
|
176
|
+
type: "address",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
internalType: "bytes",
|
|
180
|
+
name: "_callData",
|
|
181
|
+
type: "bytes",
|
|
182
|
+
},
|
|
183
|
+
],
|
|
184
|
+
name: "initialize",
|
|
185
|
+
outputs: [],
|
|
186
|
+
stateMutability: "nonpayable",
|
|
187
|
+
type: "function",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
inputs: [
|
|
191
|
+
{
|
|
192
|
+
internalType: "uint256",
|
|
193
|
+
name: "baseAmount",
|
|
194
|
+
type: "uint256",
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
internalType: "address",
|
|
198
|
+
name: "baseToken",
|
|
199
|
+
type: "address",
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
internalType: "uint32",
|
|
203
|
+
name: "period",
|
|
204
|
+
type: "uint32",
|
|
205
|
+
},
|
|
206
|
+
],
|
|
207
|
+
name: "minAmountByTWAP",
|
|
208
|
+
outputs: [
|
|
209
|
+
{
|
|
210
|
+
internalType: "uint256",
|
|
211
|
+
name: "minTwap",
|
|
212
|
+
type: "uint256",
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
internalType: "uint256",
|
|
216
|
+
name: "quote",
|
|
217
|
+
type: "uint256",
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
stateMutability: "view",
|
|
221
|
+
type: "function",
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
inputs: [],
|
|
225
|
+
name: "oracle",
|
|
226
|
+
outputs: [
|
|
227
|
+
{
|
|
228
|
+
internalType: "contract IStaticOracle",
|
|
229
|
+
name: "",
|
|
230
|
+
type: "address",
|
|
231
|
+
},
|
|
232
|
+
],
|
|
233
|
+
stateMutability: "view",
|
|
234
|
+
type: "function",
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
inputs: [],
|
|
238
|
+
name: "owner",
|
|
239
|
+
outputs: [
|
|
240
|
+
{
|
|
241
|
+
internalType: "address",
|
|
242
|
+
name: "",
|
|
243
|
+
type: "address",
|
|
244
|
+
},
|
|
245
|
+
],
|
|
246
|
+
stateMutability: "view",
|
|
247
|
+
type: "function",
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
inputs: [
|
|
251
|
+
{
|
|
252
|
+
internalType: "address",
|
|
253
|
+
name: "token",
|
|
254
|
+
type: "address",
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
name: "recover",
|
|
258
|
+
outputs: [],
|
|
259
|
+
stateMutability: "nonpayable",
|
|
260
|
+
type: "function",
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
inputs: [],
|
|
264
|
+
name: "recoverTo",
|
|
265
|
+
outputs: [
|
|
266
|
+
{
|
|
267
|
+
internalType: "address",
|
|
268
|
+
name: "",
|
|
269
|
+
type: "address",
|
|
270
|
+
},
|
|
271
|
+
],
|
|
272
|
+
stateMutability: "view",
|
|
273
|
+
type: "function",
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
inputs: [],
|
|
277
|
+
name: "router",
|
|
278
|
+
outputs: [
|
|
279
|
+
{
|
|
280
|
+
internalType: "contract ISwapRouter",
|
|
281
|
+
name: "",
|
|
282
|
+
type: "address",
|
|
283
|
+
},
|
|
284
|
+
],
|
|
285
|
+
stateMutability: "view",
|
|
286
|
+
type: "function",
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
inputs: [
|
|
290
|
+
{
|
|
291
|
+
internalType: "uint256",
|
|
292
|
+
name: "_minAmount",
|
|
293
|
+
type: "uint256",
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
internalType: "address payable",
|
|
297
|
+
name: "refundGas",
|
|
298
|
+
type: "address",
|
|
299
|
+
},
|
|
300
|
+
],
|
|
301
|
+
name: "swap",
|
|
302
|
+
outputs: [],
|
|
303
|
+
stateMutability: "payable",
|
|
304
|
+
type: "function",
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
inputs: [
|
|
308
|
+
{
|
|
309
|
+
internalType: "uint256",
|
|
310
|
+
name: "_minAmount",
|
|
311
|
+
type: "uint256",
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
internalType: "address payable",
|
|
315
|
+
name: "refundGas",
|
|
316
|
+
type: "address",
|
|
317
|
+
},
|
|
318
|
+
],
|
|
319
|
+
name: "swapCelo",
|
|
320
|
+
outputs: [],
|
|
321
|
+
stateMutability: "payable",
|
|
322
|
+
type: "function",
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
inputs: [
|
|
326
|
+
{
|
|
327
|
+
internalType: "uint256",
|
|
328
|
+
name: "_minAmount",
|
|
329
|
+
type: "uint256",
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
internalType: "address",
|
|
333
|
+
name: "refundGas",
|
|
334
|
+
type: "address",
|
|
335
|
+
},
|
|
336
|
+
],
|
|
337
|
+
name: "swapCusd",
|
|
338
|
+
outputs: [],
|
|
339
|
+
stateMutability: "nonpayable",
|
|
340
|
+
type: "function",
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
inputs: [],
|
|
344
|
+
name: "twapPeriod",
|
|
345
|
+
outputs: [
|
|
346
|
+
{
|
|
347
|
+
internalType: "uint32",
|
|
348
|
+
name: "",
|
|
349
|
+
type: "uint32",
|
|
350
|
+
},
|
|
351
|
+
],
|
|
352
|
+
stateMutability: "view",
|
|
353
|
+
type: "function",
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
stateMutability: "payable",
|
|
357
|
+
type: "receive",
|
|
358
|
+
},
|
|
359
|
+
] as const;
|
|
360
|
+
|
|
361
|
+
const _bytecode =
|
|
362
|
+
"0x6101206040523480156200001257600080fd5b5060405162001ea738038062001ea7833981016040819052620000359162000078565b6001600160a01b0393841660805291831660c052821660e052166101005261012c60a052620000e0565b6001600160a01b03811681146200007557600080fd5b50565b600080600080608085870312156200008f57600080fd5b84516200009c816200005f565b6020860151909450620000af816200005f565b6040860151909350620000c2816200005f565b6060860151909250620000d5816200005f565b939692955090935050565b60805160a05160c05160e05161010051611ccc620001db600039600081816101a6015281816105c701528181610685015261079d015260008181610255015281816106d6015281816109d501528181610d8f015281816112fd015261145101526000818161012e015281816105f8015281816106b4015281816107d40152818161099301528181610b9601528181610c3501528181610ca601528181610d4d01528181610ea8015281816111300152818161128101526113ab015260008181610322015281816108890152610c5601526000818161036b015281816108f101528181610a4301528181610cd30152610dfd0152611ccc6000f3fe6080604052600436106100d25760003560e01c8063051ed8ef146100de5780630c577bdc1461011c5780630cd865ec146101505780634e417a98146101725780637dc0d1d014610194578063821dc910146101c857806386b12bab146101fd5780638da5cb5b1461021d578063a5e598fc14610243578063aa6bfa9d14610277578063b1a5fa9f1461028a578063c4d66de8146102aa578063cf7a1d77146102ca578063d3986f08146102ea578063de983c28146102fd578063f620732614610310578063f887ea401461035957600080fd5b366100d957005b600080fd5b3480156100ea57600080fd5b5061010673471ece3750da237f93b8e339c536989b8978a43881565b6040516101139190611614565b60405180910390f35b34801561012857600080fd5b506101067f000000000000000000000000000000000000000000000000000000000000000081565b34801561015c57600080fd5b5061017061016b36600461163d565b61038d565b005b34801561017e57600080fd5b506101876104f9565b60405161011391906116a7565b3480156101a057600080fd5b506101067f000000000000000000000000000000000000000000000000000000000000000081565b3480156101d457600080fd5b506101e86101e33660046116ba565b610587565b60408051928352602083019190915201610113565b34801561020957600080fd5b50600154610106906001600160a01b031681565b34801561022957600080fd5b50600054610106906201000090046001600160a01b031681565b34801561024f57600080fd5b506101067f000000000000000000000000000000000000000000000000000000000000000081565b610170610285366004611705565b61076a565b34801561029657600080fd5b506101706102a5366004611705565b610b58565b3480156102b657600080fd5b506101706102c536600461163d565b610f22565b3480156102d657600080fd5b506101706102e536600461177b565b610ffb565b6101706102f8366004611705565b611103565b61017061030b366004611842565b6111d1565b34801561031c57600080fd5b506103447f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff9091168152602001610113565b34801561036557600080fd5b506101067f000000000000000000000000000000000000000000000000000000000000000081565b6001600160a01b03811661041a576001546040516000916001600160a01b03169047908381818185875af1925050503d80600081146103e8576040519150601f19603f3d011682016040523d82523d6000602084013e6103ed565b606091505b50509050806104165760405163e2a1cc9160e01b81524760048201526024015b60405180910390fd5b5050565b6001546040516370a0823160e01b81526001600160a01b038084169263a9059cbb9291169083906370a0823190610455903090600401611614565b602060405180830381865afa158015610472573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104969190611879565b6040518363ffffffff1660e01b81526004016104b3929190611892565b6020604051808303816000875af11580156104d2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041691906118ab565b50565b60028054610506906118c8565b80601f0160208091040260200160405190810160405280929190818152602001828054610532906118c8565b801561057f5780601f106105545761010080835404028352916020019161057f565b820191906000526020600020905b81548152906001019060200180831161056257829003601f168201915b505050505081565b6000808473471ece3750da237f93b8e339c536989b8978a437196001600160a01b0386160161066e57604051630757bc8160e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690630757bc819061062290849089907f0000000000000000000000000000000000000000000000000000000000000000908a90600401611902565b600060405180830381865afa15801561063f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106679190810190611938565b5091508190505b604051630757bc8160e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690630757bc81906107009084907f0000000000000000000000000000000000000000000000000000000000000000907f0000000000000000000000000000000000000000000000000000000000000000908a90600401611902565b600060405180830381865afa15801561071d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107459190810190611938565b5091506064610755836062611a0d565b61075f9190611a2a565b925050935093915050565b600080546001600160a01b0383811662010000909204161461085e57604051630757bc8160e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690630757bc81906108159067016345785d8a0000907f00000000000000000000000000000000000000000000000000000000000000009073471ece3750da237f93b8e339c536989b8978a43890603c90600401611902565b600060405180830381865afa158015610832573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261085a9190810190611938565b5090505b600061086a8247611a4c565b905060006108ad8273471ece3750da237f93b8e339c536989b8978a4387f0000000000000000000000000000000000000000000000000000000000000000610587565b5090508085116108bd57806108bf565b845b60405163095ea7b360e01b815290955073471ece3750da237f93b8e339c536989b8978a4389063095ea7b39061091b907f0000000000000000000000000000000000000000000000000000000000000000908690600401611892565b6020604051808303816000875af115801561093a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095e91906118ab565b50604080516080810182527308e3d9c6ea1b446ff2771c6738a6d313712f148760631b60a082015261017760eb1b60b48201527f0000000000000000000000000000000000000000000000000000000000000000606090811b6001600160601b031990811660b784015261027160ec1b60cb8401527f0000000000000000000000000000000000000000000000000000000000000000821b1660ce830152825160c281840301815260e28301845282526000546201000090046001600160a01b039081166020840152828401869052908201889052915163b858183f60e01b815290917f0000000000000000000000000000000000000000000000000000000000000000169063b858183f90610a78908490600401611a5f565b6020604051808303816000875af1158015610a97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abb9190611879565b506000546001600160a01b03868116620100009092041614610b50576000856001600160a01b03168560405160006040518083038185875af1925050503d8060008114610b24576040519150601f19603f3d011682016040523d82523d6000602084013e610b29565b606091505b5050905080610b4e5760405163e2a1cc9160e01b81526004810186905260240161040d565b505b505050505050565b600080546001600160a01b0362010000909104811690831603610b7c576000610b86565b67016345785d8a00005b6001600160401b031690506000817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610be09190611614565b602060405180830381865afa158015610bfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c219190611879565b610c2b9190611a4c565b90506000610c7a827f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000610587565b509050808511610c8a5780610c8c565b845b60405163095ea7b360e01b81529095506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b390610cfd907f0000000000000000000000000000000000000000000000000000000000000000908690600401611892565b6020604051808303816000875af1158015610d1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4091906118ab565b50604080516080810182527f0000000000000000000000000000000000000000000000000000000000000000606090811b6001600160601b031990811660a084015261027160ec1b60b48401527f0000000000000000000000000000000000000000000000000000000000000000821b1660b7830152825160ab81840301815260cb8301845282526000546201000090046001600160a01b039081166020840152828401869052908201889052915163b858183f60e01b815290917f0000000000000000000000000000000000000000000000000000000000000000169063b858183f90610e32908490600401611a5f565b6020604051808303816000875af1158015610e51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e759190611879565b506000546001600160a01b03868116620100009092041614610b505760405163a9059cbb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb90610edf9088908890600401611892565b6020604051808303816000875af1158015610efe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4e91906118ab565b600054610100900460ff1615808015610f425750600054600160ff909116105b80610f635750610f5130611605565b158015610f63575060005460ff166001145b610f7f5760405162461bcd60e51b815260040161040d90611aad565b6000805460ff191660011790558015610fa2576000805461ff0019166101001790555b6000805462010000600160b01b031916620100006001600160a01b038516021790558015610416576000805461ff001916905560405160018152600080516020611c778339815191529060200160405180910390a15050565b600054610100900460ff161580801561101b5750600054600160ff909116105b8061103c575061102a30611605565b15801561103c575060005460ff166001145b6110585760405162461bcd60e51b815260040161040d90611aad565b6000805460ff19166001179055801561107b576000805461ff0019166101001790555b6000805462010000600160b01b031916620100006001600160a01b038681169190910291909117909155600180546001600160a01b03191691861691909117905560026110c88382611b41565b5080156110fd576000805461ff001916905560405160018152600080516020611c778339815191529060200160405180910390a15b50505050565b47801561111957611114838361076a565b505050565b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190611165903090600401611614565b602060405180830381865afa158015611182573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a69190611879565b905080156111b8576111148383610b58565b60405163701b93d160e11b815260040160405180910390fd5b6000546201000090046001600160a01b03168180156111fe57506000600280546111fa906118c8565b9050115b1561121d576000805462010000600160b01b0319163062010000021790555b81156112505761122d8484611103565b6000805462010000600160b01b031916620100006001600160a01b038416021790555b60006002805461125f906118c8565b905011156110fd576040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a08231906112b6903090600401611614565b602060405180830381865afa1580156112d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f79190611879565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016113479190611614565b602060405180830381865afa158015611364573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113889190611879565b90504782156114315760005460405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169263095ea7b3926113ec9262010000909204909116908790600401611892565b6020604051808303816000875af115801561140b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142f91906118ab565b505b81156114d75760005460405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169263095ea7b3926114929262010000909204909116908690600401611892565b6020604051808303816000875af11580156114b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d591906118ab565b505b801561156c5760005460405163095ea7b360e01b815273471ece3750da237f93b8e339c536989b8978a4389163095ea7b391611527916201000090046001600160a01b0316908590600401611892565b6020604051808303816000875af1158015611546573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061156a91906118ab565b505b6000805460405182916201000090046001600160a01b031690829061159390600290611c00565b60006040518083038185875af1925050503d80600081146115d0576040519150601f19603f3d011682016040523d82523d6000602084013e6115d5565b606091505b5091509150816115fa57806040516382c5e96b60e01b815260040161040d91906116a7565b505050505050505050565b6001600160a01b03163b151590565b6001600160a01b0391909116815260200190565b6001600160a01b03811681146104f657600080fd5b60006020828403121561164f57600080fd5b813561165a81611628565b9392505050565b6000815180845260005b818110156116875760208185018101518683018201520161166b565b506000602082860101526020601f19601f83011685010191505092915050565b60208152600061165a6020830184611661565b6000806000606084860312156116cf57600080fd5b8335925060208401356116e181611628565b9150604084013563ffffffff811681146116fa57600080fd5b809150509250925092565b6000806040838503121561171857600080fd5b82359150602083013561172a81611628565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561177357611773611735565b604052919050565b60008060006060848603121561179057600080fd5b833561179b81611628565b92506020848101356117ac81611628565b925060408501356001600160401b03808211156117c857600080fd5b818701915087601f8301126117dc57600080fd5b8135818111156117ee576117ee611735565b611800601f8201601f1916850161174b565b9150808252888482850101111561181657600080fd5b80848401858401376000848284010152508093505050509250925092565b80151581146104f657600080fd5b60008060006060848603121561185757600080fd5b83359250602084013561186981611628565b915060408401356116fa81611834565b60006020828403121561188b57600080fd5b5051919050565b6001600160a01b03929092168252602082015260400190565b6000602082840312156118bd57600080fd5b815161165a81611834565b600181811c908216806118dc57607f821691505b6020821081036118fc57634e487b7160e01b600052602260045260246000fd5b50919050565b6001600160801b039490941684526001600160a01b0392831660208501529116604083015263ffffffff16606082015260800190565b6000806040838503121561194b57600080fd5b8251602080850151919350906001600160401b038082111561196c57600080fd5b818601915086601f83011261198057600080fd5b81518181111561199257611992611735565b8060051b91506119a384830161174b565b81815291830184019184810190898411156119bd57600080fd5b938501935b838510156119e757845192506119d783611628565b82825293850193908501906119c2565b8096505050505050509250929050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611a2457611a246119f7565b92915050565b600082611a4757634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115611a2457611a246119f7565b602081526000825160806020840152611a7b60a0840182611661565b905060018060a01b03602085015116604084015260408401516060840152606084015160808401528091505092915050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b601f82111561111457600081815260208120601f850160051c81016020861015611b225750805b601f850160051c820191505b81811015610b5057828155600101611b2e565b81516001600160401b03811115611b5a57611b5a611735565b611b6e81611b6884546118c8565b84611afb565b602080601f831160018114611ba35760008415611b8b5750858301515b600019600386901b1c1916600185901b178555610b50565b600085815260208120601f198616915b82811015611bd257888601518255948401946001909101908401611bb3565b5085821015611bf05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000808354611c0e816118c8565b60018281168015611c265760018114611c3b57611c6a565b60ff1984168752821515830287019450611c6a565b8760005260208060002060005b85811015611c615781548a820152908401908201611c48565b50505082870194505b5092969550505050505056fe7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498a26469706673582212203af4e58fc70c9525bed79251cec863f50679bdc78240b6fba3b61b5445bf528664736f6c63430008130033";
|
|
363
|
+
|
|
364
|
+
type DonateGDCloneConstructorParams =
|
|
365
|
+
| [signer?: Signer]
|
|
366
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
367
|
+
|
|
368
|
+
const isSuperArgs = (
|
|
369
|
+
xs: DonateGDCloneConstructorParams
|
|
370
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
371
|
+
|
|
372
|
+
export class DonateGDClone__factory extends ContractFactory {
|
|
373
|
+
constructor(...args: DonateGDCloneConstructorParams) {
|
|
374
|
+
if (isSuperArgs(args)) {
|
|
375
|
+
super(...args);
|
|
376
|
+
} else {
|
|
377
|
+
super(_abi, _bytecode, args[0]);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
override deploy(
|
|
382
|
+
_router: string,
|
|
383
|
+
_cusd: string,
|
|
384
|
+
_gd: string,
|
|
385
|
+
_oracle: string,
|
|
386
|
+
overrides?: Overrides & { from?: string }
|
|
387
|
+
): Promise<DonateGDClone> {
|
|
388
|
+
return super.deploy(
|
|
389
|
+
_router,
|
|
390
|
+
_cusd,
|
|
391
|
+
_gd,
|
|
392
|
+
_oracle,
|
|
393
|
+
overrides || {}
|
|
394
|
+
) as Promise<DonateGDClone>;
|
|
395
|
+
}
|
|
396
|
+
override getDeployTransaction(
|
|
397
|
+
_router: string,
|
|
398
|
+
_cusd: string,
|
|
399
|
+
_gd: string,
|
|
400
|
+
_oracle: string,
|
|
401
|
+
overrides?: Overrides & { from?: string }
|
|
402
|
+
): TransactionRequest {
|
|
403
|
+
return super.getDeployTransaction(
|
|
404
|
+
_router,
|
|
405
|
+
_cusd,
|
|
406
|
+
_gd,
|
|
407
|
+
_oracle,
|
|
408
|
+
overrides || {}
|
|
409
|
+
);
|
|
410
|
+
}
|
|
411
|
+
override attach(address: string): DonateGDClone {
|
|
412
|
+
return super.attach(address) as DonateGDClone;
|
|
413
|
+
}
|
|
414
|
+
override connect(signer: Signer): DonateGDClone__factory {
|
|
415
|
+
return super.connect(signer) as DonateGDClone__factory;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
static readonly bytecode = _bytecode;
|
|
419
|
+
static readonly abi = _abi;
|
|
420
|
+
static createInterface(): DonateGDCloneInterface {
|
|
421
|
+
return new utils.Interface(_abi) as DonateGDCloneInterface;
|
|
422
|
+
}
|
|
423
|
+
static connect(
|
|
424
|
+
address: string,
|
|
425
|
+
signerOrProvider: Signer | Provider
|
|
426
|
+
): DonateGDClone {
|
|
427
|
+
return new Contract(address, _abi, signerOrProvider) as DonateGDClone;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
@@ -3,4 +3,5 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
export { BuyGDClone__factory } from "./BuyGDClone__factory";
|
|
5
5
|
export { BuyGDCloneFactory__factory } from "./BuyGDCloneFactory__factory";
|
|
6
|
+
export { DonateGDClone__factory } from "./DonateGDClone__factory";
|
|
6
7
|
export { ISwapRouter__factory } from "./ISwapRouter__factory";
|
package/types/hardhat.d.ts
CHANGED
|
@@ -832,6 +832,10 @@ declare module "hardhat/types/runtime" {
|
|
|
832
832
|
name: "BuyGDCloneFactory",
|
|
833
833
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
834
834
|
): Promise<Contracts.BuyGDCloneFactory__factory>;
|
|
835
|
+
getContractFactory(
|
|
836
|
+
name: "DonateGDClone",
|
|
837
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
838
|
+
): Promise<Contracts.DonateGDClone__factory>;
|
|
835
839
|
getContractFactory(
|
|
836
840
|
name: "ISwapRouter",
|
|
837
841
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
@@ -1942,6 +1946,11 @@ declare module "hardhat/types/runtime" {
|
|
|
1942
1946
|
address: string,
|
|
1943
1947
|
signer?: ethers.Signer
|
|
1944
1948
|
): Promise<Contracts.BuyGDCloneFactory>;
|
|
1949
|
+
getContractAt(
|
|
1950
|
+
name: "DonateGDClone",
|
|
1951
|
+
address: string,
|
|
1952
|
+
signer?: ethers.Signer
|
|
1953
|
+
): Promise<Contracts.DonateGDClone>;
|
|
1945
1954
|
getContractAt(
|
|
1946
1955
|
name: "ISwapRouter",
|
|
1947
1956
|
address: string,
|
package/types/index.ts
CHANGED
|
@@ -412,6 +412,8 @@ export type { BuyGDClone } from "./contracts/utils/BuyGDClone.sol/BuyGDClone";
|
|
|
412
412
|
export { BuyGDClone__factory } from "./factories/contracts/utils/BuyGDClone.sol/BuyGDClone__factory";
|
|
413
413
|
export type { BuyGDCloneFactory } from "./contracts/utils/BuyGDClone.sol/BuyGDCloneFactory";
|
|
414
414
|
export { BuyGDCloneFactory__factory } from "./factories/contracts/utils/BuyGDClone.sol/BuyGDCloneFactory__factory";
|
|
415
|
+
export type { DonateGDClone } from "./contracts/utils/BuyGDClone.sol/DonateGDClone";
|
|
416
|
+
export { DonateGDClone__factory } from "./factories/contracts/utils/BuyGDClone.sol/DonateGDClone__factory";
|
|
415
417
|
export type { ISwapRouter } from "./contracts/utils/BuyGDClone.sol/ISwapRouter";
|
|
416
418
|
export { ISwapRouter__factory } from "./factories/contracts/utils/BuyGDClone.sol/ISwapRouter__factory";
|
|
417
419
|
export type { DAOContract } from "./contracts/utils/DAOContract";
|