@gooddollar/goodprotocol 2.0.7-beta.0 → 2.0.7-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/abis/GDFaucet.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/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/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/BuyAndBridgeHelper.sol/BuyAndBridgeHelper.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 +4 -0
- package/artifacts/contracts/utils/GDFaucet.sol/GDFaucet.json +125 -0
- 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/utils/GDFaucet.sol +28 -0
- package/hardhat.config.ts +16 -1
- package/package.json +1 -1
- package/releases/deploy-settings.json +9 -0
- package/releases/deployment.json +21 -3
- package/scripts/multichain-deploy/6_testnetFaucet.ts +85 -0
- package/scripts/multichain-deploy/helpers.ts +1 -1
- package/truffle-config.js +8 -0
- package/types/GDFaucet.ts +221 -0
- package/types/factories/GDFaucet__factory.ts +188 -0
- package/types/hardhat.d.ts +9 -0
- package/types/index.ts +2 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
Signer,
|
|
7
|
+
utils,
|
|
8
|
+
BigNumberish,
|
|
9
|
+
Contract,
|
|
10
|
+
ContractFactory,
|
|
11
|
+
Overrides,
|
|
12
|
+
} from "ethers";
|
|
13
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
14
|
+
import type { GDFaucet, GDFaucetInterface } from "../GDFaucet";
|
|
15
|
+
|
|
16
|
+
const _abi = [
|
|
17
|
+
{
|
|
18
|
+
inputs: [
|
|
19
|
+
{
|
|
20
|
+
internalType: "contract INameService",
|
|
21
|
+
name: "_dao",
|
|
22
|
+
type: "address",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
internalType: "uint256",
|
|
26
|
+
name: "_dripAmount",
|
|
27
|
+
type: "uint256",
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
stateMutability: "nonpayable",
|
|
31
|
+
type: "constructor",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
inputs: [],
|
|
35
|
+
name: "avatar",
|
|
36
|
+
outputs: [
|
|
37
|
+
{
|
|
38
|
+
internalType: "address",
|
|
39
|
+
name: "",
|
|
40
|
+
type: "address",
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
stateMutability: "view",
|
|
44
|
+
type: "function",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
inputs: [],
|
|
48
|
+
name: "dao",
|
|
49
|
+
outputs: [
|
|
50
|
+
{
|
|
51
|
+
internalType: "contract Controller",
|
|
52
|
+
name: "",
|
|
53
|
+
type: "address",
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
stateMutability: "view",
|
|
57
|
+
type: "function",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
inputs: [],
|
|
61
|
+
name: "drip",
|
|
62
|
+
outputs: [],
|
|
63
|
+
stateMutability: "nonpayable",
|
|
64
|
+
type: "function",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
inputs: [],
|
|
68
|
+
name: "dripAmount",
|
|
69
|
+
outputs: [
|
|
70
|
+
{
|
|
71
|
+
internalType: "uint256",
|
|
72
|
+
name: "",
|
|
73
|
+
type: "uint256",
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
stateMutability: "view",
|
|
77
|
+
type: "function",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
inputs: [
|
|
81
|
+
{
|
|
82
|
+
internalType: "address",
|
|
83
|
+
name: "",
|
|
84
|
+
type: "address",
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
name: "lastDripTime",
|
|
88
|
+
outputs: [
|
|
89
|
+
{
|
|
90
|
+
internalType: "uint256",
|
|
91
|
+
name: "",
|
|
92
|
+
type: "uint256",
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
stateMutability: "view",
|
|
96
|
+
type: "function",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
inputs: [],
|
|
100
|
+
name: "nameService",
|
|
101
|
+
outputs: [
|
|
102
|
+
{
|
|
103
|
+
internalType: "contract INameService",
|
|
104
|
+
name: "",
|
|
105
|
+
type: "address",
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
stateMutability: "view",
|
|
109
|
+
type: "function",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
inputs: [],
|
|
113
|
+
name: "nativeToken",
|
|
114
|
+
outputs: [
|
|
115
|
+
{
|
|
116
|
+
internalType: "contract IGoodDollar",
|
|
117
|
+
name: "",
|
|
118
|
+
type: "address",
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
stateMutability: "view",
|
|
122
|
+
type: "function",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
inputs: [],
|
|
126
|
+
name: "updateAvatar",
|
|
127
|
+
outputs: [],
|
|
128
|
+
stateMutability: "nonpayable",
|
|
129
|
+
type: "function",
|
|
130
|
+
},
|
|
131
|
+
];
|
|
132
|
+
|
|
133
|
+
const _bytecode =
|
|
134
|
+
"0x608060405234801561001057600080fd5b5060405161091838038061091883398101604081905261002f916101a3565b61003882610041565b603555506101f5565b600280546001600160a01b0319166001600160a01b038316179055610064610067565b50565b60025460405163bf40fac160e01b815260206004820152600a60248201526921a7a72a2927a62622a960b11b60448201526001600160a01b039091169063bf40fac190606401602060405180830381865afa1580156100ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100ee91906101d1565b600080546001600160a01b0319166001600160a01b0392909216918217905560408051632d77bef360e11b81529051635aef7de6916004808201926020929091908290030181865afa158015610148573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061016c91906101d1565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038116811461006457600080fd5b600080604083850312156101b657600080fd5b82516101c18161018e565b6020939093015192949293505050565b6000602082840312156101e357600080fd5b81516101ee8161018e565b9392505050565b610714806102046000396000f3fe608060405234801561001057600080fd5b50600436106100785760003560e01c80631b3c90a81461007d57806335a1529b146100875780633e6326fc146100a35780634162169f146100ce5780635aef7de6146100e15780638b8a60bd146100f45780639f678cca14610114578063e1758bd81461011c575b600080fd5b610085610124565b005b61009060355481565b6040519081526020015b60405180910390f35b6002546100b6906001600160a01b031681565b6040516001600160a01b03909116815260200161009a565b6000546100b6906001600160a01b031681565b6001546100b6906001600160a01b031681565b61009061010236600461051a565b60366020526000908152604090205481565b61008561024b565b6100b6610478565b60025460405163bf40fac160e01b815260206004820152600a60248201526921a7a72a2927a62622a960b11b60448201526001600160a01b039091169063bf40fac190606401602060405180830381865afa158015610187573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101ab919061053e565b600080546001600160a01b0319166001600160a01b0392909216918217905560408051632d77bef360e11b81529051635aef7de6916004808201926020929091908290030181865afa158015610205573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610229919061053e565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b33600090815260366020526040902054620151809061026a9042610571565b10156102aa5760405162461bcd60e51b815260206004820152600a602482015269191c9a5c081b1a5b5a5d60b21b60448201526064015b60405180910390fd5b3360009081526036602052604081204290556102c4610478565b6001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610301573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610325919061058a565b60005460ff9190911691506001600160a01b0316636407e43261034983600a610691565b603554610356919061069d565b60005460408051632d77bef360e11b8152905133926001600160a01b031691635aef7de69160048083019260209291908290030181865afa15801561039f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c3919061053e565b6040516001600160e01b031960e086901b16815260048101939093526001600160a01b0391821660248401521660448201526064016020604051808303816000875af1158015610417573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061043b91906106bc565b6104755760405162461bcd60e51b815260206004820152600b60248201526a1b5a5b9d0819985a5b195960aa1b60448201526064016102a1565b50565b60025460405163bf40fac160e01b815260206004820152600a60248201526923a7a7a22227a62620a960b11b60448201526000916001600160a01b03169063bf40fac190606401602060405180830381865afa1580156104dc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610500919061053e565b905090565b6001600160a01b038116811461047557600080fd5b60006020828403121561052c57600080fd5b813561053781610505565b9392505050565b60006020828403121561055057600080fd5b815161053781610505565b634e487b7160e01b600052601160045260246000fd5b818103818111156105845761058461055b565b92915050565b60006020828403121561059c57600080fd5b815160ff8116811461053757600080fd5b600181815b808511156105e85781600019048211156105ce576105ce61055b565b808516156105db57918102915b93841c93908002906105b2565b509250929050565b6000826105ff57506001610584565b8161060c57506000610584565b8160018114610622576002811461062c57610648565b6001915050610584565b60ff84111561063d5761063d61055b565b50506001821b610584565b5060208310610133831016604e8410600b841016171561066b575081810a610584565b61067583836105ad565b80600019048211156106895761068961055b565b029392505050565b600061053783836105f0565b60008160001904831182151516156106b7576106b761055b565b500290565b6000602082840312156106ce57600080fd5b8151801515811461053757600080fdfea26469706673582212204627259417c9f666bee47dee681f91cae710a71064eccdf1dcc21b64f221f89b64736f6c63430008100033";
|
|
135
|
+
|
|
136
|
+
type GDFaucetConstructorParams =
|
|
137
|
+
| [signer?: Signer]
|
|
138
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
139
|
+
|
|
140
|
+
const isSuperArgs = (
|
|
141
|
+
xs: GDFaucetConstructorParams
|
|
142
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
143
|
+
|
|
144
|
+
export class GDFaucet__factory extends ContractFactory {
|
|
145
|
+
constructor(...args: GDFaucetConstructorParams) {
|
|
146
|
+
if (isSuperArgs(args)) {
|
|
147
|
+
super(...args);
|
|
148
|
+
} else {
|
|
149
|
+
super(_abi, _bytecode, args[0]);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
deploy(
|
|
154
|
+
_dao: string,
|
|
155
|
+
_dripAmount: BigNumberish,
|
|
156
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
157
|
+
): Promise<GDFaucet> {
|
|
158
|
+
return super.deploy(
|
|
159
|
+
_dao,
|
|
160
|
+
_dripAmount,
|
|
161
|
+
overrides || {}
|
|
162
|
+
) as Promise<GDFaucet>;
|
|
163
|
+
}
|
|
164
|
+
getDeployTransaction(
|
|
165
|
+
_dao: string,
|
|
166
|
+
_dripAmount: BigNumberish,
|
|
167
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
168
|
+
): TransactionRequest {
|
|
169
|
+
return super.getDeployTransaction(_dao, _dripAmount, overrides || {});
|
|
170
|
+
}
|
|
171
|
+
attach(address: string): GDFaucet {
|
|
172
|
+
return super.attach(address) as GDFaucet;
|
|
173
|
+
}
|
|
174
|
+
connect(signer: Signer): GDFaucet__factory {
|
|
175
|
+
return super.connect(signer) as GDFaucet__factory;
|
|
176
|
+
}
|
|
177
|
+
static readonly bytecode = _bytecode;
|
|
178
|
+
static readonly abi = _abi;
|
|
179
|
+
static createInterface(): GDFaucetInterface {
|
|
180
|
+
return new utils.Interface(_abi) as GDFaucetInterface;
|
|
181
|
+
}
|
|
182
|
+
static connect(
|
|
183
|
+
address: string,
|
|
184
|
+
signerOrProvider: Signer | Provider
|
|
185
|
+
): GDFaucet {
|
|
186
|
+
return new Contract(address, _abi, signerOrProvider) as GDFaucet;
|
|
187
|
+
}
|
|
188
|
+
}
|
package/types/hardhat.d.ts
CHANGED
|
@@ -752,6 +752,10 @@ declare module "hardhat/types/runtime" {
|
|
|
752
752
|
name: "DAOUpgradeableContract",
|
|
753
753
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
754
754
|
): Promise<Contracts.DAOUpgradeableContract__factory>;
|
|
755
|
+
getContractFactory(
|
|
756
|
+
name: "GDFaucet",
|
|
757
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
758
|
+
): Promise<Contracts.GDFaucet__factory>;
|
|
755
759
|
getContractFactory(
|
|
756
760
|
name: "GoodDollarMintBurnWrapper",
|
|
757
761
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
@@ -1746,6 +1750,11 @@ declare module "hardhat/types/runtime" {
|
|
|
1746
1750
|
address: string,
|
|
1747
1751
|
signer?: ethers.Signer
|
|
1748
1752
|
): Promise<Contracts.DAOUpgradeableContract>;
|
|
1753
|
+
getContractAt(
|
|
1754
|
+
name: "GDFaucet",
|
|
1755
|
+
address: string,
|
|
1756
|
+
signer?: ethers.Signer
|
|
1757
|
+
): Promise<Contracts.GDFaucet>;
|
|
1749
1758
|
getContractAt(
|
|
1750
1759
|
name: "GoodDollarMintBurnWrapper",
|
|
1751
1760
|
address: string,
|
package/types/index.ts
CHANGED
|
@@ -183,6 +183,7 @@ export type { BancorFormula } from "./BancorFormula";
|
|
|
183
183
|
export type { BuyAndBridgeHelper } from "./BuyAndBridgeHelper";
|
|
184
184
|
export type { DAOContract } from "./DAOContract";
|
|
185
185
|
export type { DAOUpgradeableContract } from "./DAOUpgradeableContract";
|
|
186
|
+
export type { GDFaucet } from "./GDFaucet";
|
|
186
187
|
export type { GoodDollarMintBurnWrapper } from "./GoodDollarMintBurnWrapper";
|
|
187
188
|
export type { IRouter } from "./IRouter";
|
|
188
189
|
export type { PausableControl } from "./PausableControl";
|
|
@@ -383,6 +384,7 @@ export { BancorFormula__factory } from "./factories/BancorFormula__factory";
|
|
|
383
384
|
export { BuyAndBridgeHelper__factory } from "./factories/BuyAndBridgeHelper__factory";
|
|
384
385
|
export { DAOContract__factory } from "./factories/DAOContract__factory";
|
|
385
386
|
export { DAOUpgradeableContract__factory } from "./factories/DAOUpgradeableContract__factory";
|
|
387
|
+
export { GDFaucet__factory } from "./factories/GDFaucet__factory";
|
|
386
388
|
export { GoodDollarMintBurnWrapper__factory } from "./factories/GoodDollarMintBurnWrapper__factory";
|
|
387
389
|
export { IRouter__factory } from "./factories/IRouter__factory";
|
|
388
390
|
export { PausableControl__factory } from "./factories/PausableControl__factory";
|