@gooddollar/goodprotocol 1.0.19 → 1.0.20
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/package.json +3 -2
- package/types/AaveMock.ts +1022 -0
- package/types/AaveStakingFactory.ts +290 -0
- package/types/AaveUSDMockOracle.ts +89 -0
- package/types/AccessControlEnumerableUpgradeable.ts +435 -0
- package/types/AccessControlUpgradeable.ts +362 -0
- package/types/AggregatorV3Interface.ts +192 -0
- package/types/Avatar.ts +121 -0
- package/types/BancorFormula.ts +974 -0
- package/types/BaseShareField.ts +442 -0
- package/types/BaseShareFieldV2.ts +361 -0
- package/types/BatUSDMockOracle.ts +89 -0
- package/types/BulkProof.ts +111 -0
- package/types/CBATMock.ts +1194 -0
- package/types/CDAILowWorthMock.ts +1160 -0
- package/types/CDAIMock.ts +1210 -0
- package/types/CDAINonMintableMock.ts +1160 -0
- package/types/CDecimalsMock.ts +1194 -0
- package/types/CERC20.ts +527 -0
- package/types/CSDTMock.ts +1194 -0
- package/types/CUSDCMock.ts +1194 -0
- package/types/ClaimersDistribution.ts +606 -0
- package/types/CompUSDMockOracle.ts +89 -0
- package/types/CompoundStakingFactory.ts +261 -0
- package/types/CompoundVotingMachine.ts +1690 -0
- package/types/ContributionCalc.ts +164 -0
- package/types/Controller.ts +547 -0
- package/types/DAIMock.ts +1083 -0
- package/types/DAOContract.ts +162 -0
- package/types/DAOUpgradeableContract.ts +271 -0
- package/types/DaiEthPriceMockOracle.ts +89 -0
- package/types/DecimalsMock.ts +1022 -0
- package/types/DonationsStaking.ts +777 -0
- package/types/ERC165Upgradeable.ts +104 -0
- package/types/ERC1967Proxy.ts +147 -0
- package/types/ERC1967Upgrade.ts +106 -0
- package/types/ERC1967UpgradeUpgradeable.ts +107 -0
- package/types/ERC20.ts +365 -0
- package/types/ERC20BurnableUpgradeable.ts +479 -0
- package/types/ERC20PausableUpgradeable.ts +449 -0
- package/types/ERC20PresetMinterPauserUpgradeable.ts +1023 -0
- package/types/ERC20Upgradeable.ts +417 -0
- package/types/EthUSDMockOracle.ts +138 -0
- package/types/ExchangeHelper.ts +522 -0
- package/types/GReputation.ts +2020 -0
- package/types/GasPriceMockOracle.ts +89 -0
- package/types/GlobalConstraintInterface.ts +134 -0
- package/types/GoodAaveStaking.ts +1752 -0
- package/types/GoodAaveStakingV2.ts +1722 -0
- package/types/GoodCompoundStaking.ts +1838 -0
- package/types/GoodCompoundStakingTest.ts +1948 -0
- package/types/GoodCompoundStakingV2.ts +1636 -0
- package/types/GoodFundManager.ts +1098 -0
- package/types/GoodFundManagerTest.ts +1137 -0
- package/types/GoodMarketMaker.ts +974 -0
- package/types/GoodReserveCDai.ts +1938 -0
- package/types/GovernanceStaking.ts +1267 -0
- package/types/IAaveIncentivesController.ts +155 -0
- package/types/IAccessControlEnumerableUpgradeable.ts +380 -0
- package/types/IAccessControlUpgradeable.ts +307 -0
- package/types/IAdminWallet.ts +171 -0
- package/types/IBeacon.ts +89 -0
- package/types/IBeaconUpgradeable.ts +89 -0
- package/types/IDonationStaking.ts +98 -0
- package/types/IERC165Upgradeable.ts +104 -0
- package/types/IERC1822Proxiable.ts +89 -0
- package/types/IERC20MetadataUpgradeable.ts +340 -0
- package/types/IERC20Upgradeable.ts +300 -0
- package/types/IERC2917.ts +636 -0
- package/types/IFirstClaimPool.ts +115 -0
- package/types/IGoodDollar.ts +579 -0
- package/types/IGoodStaking.ts +264 -0
- package/types/IHasRouter.ts +83 -0
- package/types/IIdentity.ts +281 -0
- package/types/ILendingPool.ts +241 -0
- package/types/INameService.ts +86 -0
- package/types/IUBIScheme.ts +121 -0
- package/types/IncentiveControllerMock.ts +207 -0
- package/types/IntVoteInterface.ts +468 -0
- package/types/LendingPoolMock.ts +1250 -0
- package/types/MultiBaseGovernanceShareField.ts +411 -0
- package/types/Multicall.ts +298 -0
- package/types/NameService.ts +358 -0
- package/types/OldMarketMaker.ts +113 -0
- package/types/OverMintTester.ts +176 -0
- package/types/OverMintTesterRegularStake.ts +177 -0
- package/types/PausableUpgradeable.ts +103 -0
- package/types/ProtocolUpgrade.ts +272 -0
- package/types/ProtocolUpgradeFuse.ts +166 -0
- package/types/ProtocolUpgradeFuseRecover.ts +167 -0
- package/types/ProtocolUpgradeRecover.ts +264 -0
- package/types/Proxy.ts +66 -0
- package/types/ProxyAdmin.ts +210 -0
- package/types/ProxyFactory1967.ts +284 -0
- package/types/Reputation.ts +936 -0
- package/types/ReputationInterface.ts +261 -0
- package/types/ReputationTestHelper.ts +175 -0
- package/types/Reserve.ts +112 -0
- package/types/SchemeRegistrar.ts +164 -0
- package/types/SimpleStaking.ts +1514 -0
- package/types/SimpleStakingV2.ts +1418 -0
- package/types/SixteenDecimalsTokenMock.ts +1023 -0
- package/types/StakersDistribution.ts +921 -0
- package/types/Staking.ts +158 -0
- package/types/SwapHelperTest.ts +120 -0
- package/types/TwentyDecimalsTokenMock.ts +1023 -0
- package/types/UBIScheme.ts +1361 -0
- package/types/USDCMock.ts +1022 -0
- package/types/UUPSUpgradeable.ts +179 -0
- package/types/Uniswap.ts +423 -0
- package/types/UniswapFactory.ts +106 -0
- package/types/UniswapPair.ts +187 -0
- package/types/UniswapV2SwapHelper.ts +124 -0
- package/types/UpgradableMock.ts +321 -0
- package/types/UpgradableMock2.ts +283 -0
- package/types/UpgradableMock3.ts +308 -0
- package/types/UpgradableMock4.ts +308 -0
- package/types/common.ts +44 -0
- package/types/factories/AaveMock__factory.ts +727 -0
- package/types/factories/AaveStakingFactory__factory.ts +262 -0
- package/types/factories/AaveUSDMockOracle__factory.ts +75 -0
- package/types/factories/AccessControlEnumerableUpgradeable__factory.ts +279 -0
- package/types/factories/AccessControlUpgradeable__factory.ts +234 -0
- package/types/factories/AggregatorV3Interface__factory.ts +121 -0
- package/types/factories/Avatar__factory.ts +59 -0
- package/types/factories/BancorFormula__factory.ts +674 -0
- package/types/factories/BaseShareFieldV2__factory.ts +251 -0
- package/types/factories/BaseShareField__factory.ts +307 -0
- package/types/factories/BatUSDMockOracle__factory.ts +75 -0
- package/types/factories/BulkProof__factory.ts +89 -0
- package/types/factories/CBATMock__factory.ts +831 -0
- package/types/factories/CDAILowWorthMock__factory.ts +821 -0
- package/types/factories/CDAIMock__factory.ts +844 -0
- package/types/factories/CDAINonMintableMock__factory.ts +821 -0
- package/types/factories/CDecimalsMock__factory.ts +831 -0
- package/types/factories/CERC20__factory.ts +368 -0
- package/types/factories/CSDTMock__factory.ts +831 -0
- package/types/factories/CUSDCMock__factory.ts +831 -0
- package/types/factories/ClaimersDistribution__factory.ts +404 -0
- package/types/factories/CompUSDMockOracle__factory.ts +75 -0
- package/types/factories/CompoundStakingFactory__factory.ts +249 -0
- package/types/factories/CompoundVotingMachine__factory.ts +1182 -0
- package/types/factories/ContributionCalc__factory.ts +83 -0
- package/types/factories/Controller__factory.ts +359 -0
- package/types/factories/DAIMock__factory.ts +770 -0
- package/types/factories/DAOContract__factory.ts +118 -0
- package/types/factories/DAOUpgradeableContract__factory.ts +201 -0
- package/types/factories/DaiEthPriceMockOracle__factory.ts +79 -0
- package/types/factories/DecimalsMock__factory.ts +742 -0
- package/types/factories/DonationsStaking__factory.ts +554 -0
- package/types/factories/ERC165Upgradeable__factory.ts +45 -0
- package/types/factories/ERC1967Proxy__factory.ts +130 -0
- package/types/factories/ERC1967UpgradeUpgradeable__factory.ts +75 -0
- package/types/factories/ERC1967Upgrade__factory.ts +71 -0
- package/types/factories/ERC20BurnableUpgradeable__factory.ts +331 -0
- package/types/factories/ERC20PausableUpgradeable__factory.ts +339 -0
- package/types/factories/ERC20PresetMinterPauserUpgradeable__factory.ts +733 -0
- package/types/factories/ERC20Upgradeable__factory.ts +332 -0
- package/types/factories/ERC20__factory.ts +272 -0
- package/types/factories/EthUSDMockOracle__factory.ts +108 -0
- package/types/factories/ExchangeHelper__factory.ts +401 -0
- package/types/factories/GReputation__factory.ts +1415 -0
- package/types/factories/GasPriceMockOracle__factory.ts +75 -0
- package/types/factories/GlobalConstraintInterface__factory.ts +72 -0
- package/types/factories/GoodAaveStakingV2__factory.ts +1227 -0
- package/types/factories/GoodAaveStaking__factory.ts +1263 -0
- package/types/factories/GoodCompoundStakingTest__factory.ts +1457 -0
- package/types/factories/GoodCompoundStakingV2__factory.ts +1169 -0
- package/types/factories/GoodCompoundStaking__factory.ts +1303 -0
- package/types/factories/GoodFundManagerTest__factory.ts +775 -0
- package/types/factories/GoodFundManager__factory.ts +733 -0
- package/types/factories/GoodMarketMaker__factory.ts +661 -0
- package/types/factories/GoodReserveCDai__factory.ts +1391 -0
- package/types/factories/GovernanceStaking__factory.ts +922 -0
- package/types/factories/IAaveIncentivesController__factory.ts +83 -0
- package/types/factories/IAccessControlEnumerableUpgradeable__factory.ts +247 -0
- package/types/factories/IAccessControlUpgradeable__factory.ts +202 -0
- package/types/factories/IAdminWallet__factory.ts +75 -0
- package/types/factories/IBeaconUpgradeable__factory.ts +39 -0
- package/types/factories/IBeacon__factory.ts +36 -0
- package/types/factories/IDonationStaking__factory.ts +33 -0
- package/types/factories/IERC165Upgradeable__factory.ts +45 -0
- package/types/factories/IERC1822Proxiable__factory.ts +39 -0
- package/types/factories/IERC20MetadataUpgradeable__factory.ts +252 -0
- package/types/factories/IERC20Upgradeable__factory.ts +209 -0
- package/types/factories/IERC2917__factory.ts +480 -0
- package/types/factories/IFirstClaimPool__factory.ts +58 -0
- package/types/factories/IGoodDollar__factory.ts +411 -0
- package/types/factories/IGoodStaking__factory.ts +175 -0
- package/types/factories/IHasRouter__factory.ts +36 -0
- package/types/factories/IIdentity__factory.ts +150 -0
- package/types/factories/ILendingPool__factory.ts +168 -0
- package/types/factories/INameService__factory.ts +42 -0
- package/types/factories/IUBIScheme__factory.ts +68 -0
- package/types/factories/IncentiveControllerMock__factory.ts +166 -0
- package/types/factories/IntVoteInterface__factory.ts +349 -0
- package/types/factories/LendingPoolMock__factory.ts +914 -0
- package/types/factories/MultiBaseGovernanceShareField__factory.ts +240 -0
- package/types/factories/Multicall__factory.ts +215 -0
- package/types/factories/NameService__factory.ts +264 -0
- package/types/factories/OldMarketMaker__factory.ts +62 -0
- package/types/factories/OverMintTesterRegularStake__factory.ts +156 -0
- package/types/factories/OverMintTester__factory.ts +152 -0
- package/types/factories/PausableUpgradeable__factory.ts +65 -0
- package/types/factories/ProtocolUpgradeFuseRecover__factory.ts +146 -0
- package/types/factories/ProtocolUpgradeFuse__factory.ts +142 -0
- package/types/factories/ProtocolUpgradeRecover__factory.ts +184 -0
- package/types/factories/ProtocolUpgrade__factory.ts +207 -0
- package/types/factories/ProxyAdmin__factory.ts +105 -0
- package/types/factories/ProxyFactory1967__factory.ts +223 -0
- package/types/factories/Proxy__factory.ts +28 -0
- package/types/factories/ReputationInterface__factory.ts +168 -0
- package/types/factories/ReputationTestHelper__factory.ts +141 -0
- package/types/factories/Reputation__factory.ts +667 -0
- package/types/factories/Reserve__factory.ts +52 -0
- package/types/factories/SchemeRegistrar__factory.ts +114 -0
- package/types/factories/SimpleStakingV2__factory.ts +986 -0
- package/types/factories/SimpleStaking__factory.ts +1045 -0
- package/types/factories/SixteenDecimalsTokenMock__factory.ts +734 -0
- package/types/factories/StakersDistribution__factory.ts +591 -0
- package/types/factories/Staking__factory.ts +74 -0
- package/types/factories/SwapHelperTest__factory.ts +96 -0
- package/types/factories/TwentyDecimalsTokenMock__factory.ts +734 -0
- package/types/factories/UBIScheme__factory.ts +969 -0
- package/types/factories/USDCMock__factory.ts +727 -0
- package/types/factories/UUPSUpgradeable__factory.ts +102 -0
- package/types/factories/UniswapFactory__factory.ts +50 -0
- package/types/factories/UniswapPair__factory.ts +117 -0
- package/types/factories/UniswapV2SwapHelper__factory.ts +101 -0
- package/types/factories/Uniswap__factory.ts +272 -0
- package/types/factories/UpgradableMock2__factory.ts +210 -0
- package/types/factories/UpgradableMock3__factory.ts +223 -0
- package/types/factories/UpgradableMock4__factory.ts +223 -0
- package/types/factories/UpgradableMock__factory.ts +236 -0
- package/types/hardhat.d.ts +1077 -0
- package/types/index.ts +236 -0
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
6
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
ClaimersDistribution,
|
|
9
|
+
ClaimersDistributionInterface,
|
|
10
|
+
} from "../ClaimersDistribution";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
anonymous: false,
|
|
15
|
+
inputs: [
|
|
16
|
+
{
|
|
17
|
+
indexed: false,
|
|
18
|
+
internalType: "address",
|
|
19
|
+
name: "previousAdmin",
|
|
20
|
+
type: "address",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
indexed: false,
|
|
24
|
+
internalType: "address",
|
|
25
|
+
name: "newAdmin",
|
|
26
|
+
type: "address",
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
name: "AdminChanged",
|
|
30
|
+
type: "event",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
anonymous: false,
|
|
34
|
+
inputs: [
|
|
35
|
+
{
|
|
36
|
+
indexed: true,
|
|
37
|
+
internalType: "address",
|
|
38
|
+
name: "beacon",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
name: "BeaconUpgraded",
|
|
43
|
+
type: "event",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
anonymous: false,
|
|
47
|
+
inputs: [
|
|
48
|
+
{
|
|
49
|
+
indexed: false,
|
|
50
|
+
internalType: "uint256",
|
|
51
|
+
name: "reputationAmount",
|
|
52
|
+
type: "uint256",
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
name: "MonthlyDistributionSet",
|
|
56
|
+
type: "event",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
anonymous: false,
|
|
60
|
+
inputs: [
|
|
61
|
+
{
|
|
62
|
+
indexed: false,
|
|
63
|
+
internalType: "address",
|
|
64
|
+
name: "claimer",
|
|
65
|
+
type: "address",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
indexed: false,
|
|
69
|
+
internalType: "uint256",
|
|
70
|
+
name: "month",
|
|
71
|
+
type: "uint256",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
indexed: false,
|
|
75
|
+
internalType: "uint256",
|
|
76
|
+
name: "claims",
|
|
77
|
+
type: "uint256",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
indexed: false,
|
|
81
|
+
internalType: "uint256",
|
|
82
|
+
name: "reputation",
|
|
83
|
+
type: "uint256",
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
name: "ReputationEarned",
|
|
87
|
+
type: "event",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
anonymous: false,
|
|
91
|
+
inputs: [
|
|
92
|
+
{
|
|
93
|
+
indexed: true,
|
|
94
|
+
internalType: "address",
|
|
95
|
+
name: "implementation",
|
|
96
|
+
type: "address",
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
name: "Upgraded",
|
|
100
|
+
type: "event",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
inputs: [],
|
|
104
|
+
name: "avatar",
|
|
105
|
+
outputs: [
|
|
106
|
+
{
|
|
107
|
+
internalType: "address",
|
|
108
|
+
name: "",
|
|
109
|
+
type: "address",
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
stateMutability: "view",
|
|
113
|
+
type: "function",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
inputs: [
|
|
117
|
+
{
|
|
118
|
+
internalType: "address",
|
|
119
|
+
name: "_claimer",
|
|
120
|
+
type: "address",
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
name: "claimReputation",
|
|
124
|
+
outputs: [],
|
|
125
|
+
stateMutability: "nonpayable",
|
|
126
|
+
type: "function",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
inputs: [],
|
|
130
|
+
name: "currentMonth",
|
|
131
|
+
outputs: [
|
|
132
|
+
{
|
|
133
|
+
internalType: "uint256",
|
|
134
|
+
name: "",
|
|
135
|
+
type: "uint256",
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
stateMutability: "view",
|
|
139
|
+
type: "function",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
inputs: [],
|
|
143
|
+
name: "dao",
|
|
144
|
+
outputs: [
|
|
145
|
+
{
|
|
146
|
+
internalType: "contract Controller",
|
|
147
|
+
name: "",
|
|
148
|
+
type: "address",
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
stateMutability: "view",
|
|
152
|
+
type: "function",
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
inputs: [
|
|
156
|
+
{
|
|
157
|
+
internalType: "address",
|
|
158
|
+
name: "_claimer",
|
|
159
|
+
type: "address",
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
name: "getMonthClaims",
|
|
163
|
+
outputs: [
|
|
164
|
+
{
|
|
165
|
+
internalType: "uint256",
|
|
166
|
+
name: "",
|
|
167
|
+
type: "uint256",
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
stateMutability: "view",
|
|
171
|
+
type: "function",
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
inputs: [
|
|
175
|
+
{
|
|
176
|
+
internalType: "contract INameService",
|
|
177
|
+
name: "_ns",
|
|
178
|
+
type: "address",
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
name: "initialize",
|
|
182
|
+
outputs: [],
|
|
183
|
+
stateMutability: "nonpayable",
|
|
184
|
+
type: "function",
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
inputs: [
|
|
188
|
+
{
|
|
189
|
+
internalType: "address",
|
|
190
|
+
name: "",
|
|
191
|
+
type: "address",
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
name: "lastMonthClaimed",
|
|
195
|
+
outputs: [
|
|
196
|
+
{
|
|
197
|
+
internalType: "uint256",
|
|
198
|
+
name: "",
|
|
199
|
+
type: "uint256",
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
stateMutability: "view",
|
|
203
|
+
type: "function",
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
inputs: [
|
|
207
|
+
{
|
|
208
|
+
internalType: "address",
|
|
209
|
+
name: "",
|
|
210
|
+
type: "address",
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
name: "lastUpdated",
|
|
214
|
+
outputs: [
|
|
215
|
+
{
|
|
216
|
+
internalType: "uint256",
|
|
217
|
+
name: "",
|
|
218
|
+
type: "uint256",
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
stateMutability: "view",
|
|
222
|
+
type: "function",
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
inputs: [],
|
|
226
|
+
name: "monthlyReputationDistribution",
|
|
227
|
+
outputs: [
|
|
228
|
+
{
|
|
229
|
+
internalType: "uint256",
|
|
230
|
+
name: "",
|
|
231
|
+
type: "uint256",
|
|
232
|
+
},
|
|
233
|
+
],
|
|
234
|
+
stateMutability: "view",
|
|
235
|
+
type: "function",
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
inputs: [
|
|
239
|
+
{
|
|
240
|
+
internalType: "uint256",
|
|
241
|
+
name: "",
|
|
242
|
+
type: "uint256",
|
|
243
|
+
},
|
|
244
|
+
],
|
|
245
|
+
name: "months",
|
|
246
|
+
outputs: [
|
|
247
|
+
{
|
|
248
|
+
internalType: "uint256",
|
|
249
|
+
name: "totalClaims",
|
|
250
|
+
type: "uint256",
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
internalType: "uint256",
|
|
254
|
+
name: "monthlyDistribution",
|
|
255
|
+
type: "uint256",
|
|
256
|
+
},
|
|
257
|
+
],
|
|
258
|
+
stateMutability: "view",
|
|
259
|
+
type: "function",
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
inputs: [],
|
|
263
|
+
name: "nameService",
|
|
264
|
+
outputs: [
|
|
265
|
+
{
|
|
266
|
+
internalType: "contract INameService",
|
|
267
|
+
name: "",
|
|
268
|
+
type: "address",
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
stateMutability: "view",
|
|
272
|
+
type: "function",
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
inputs: [],
|
|
276
|
+
name: "nativeToken",
|
|
277
|
+
outputs: [
|
|
278
|
+
{
|
|
279
|
+
internalType: "contract IGoodDollar",
|
|
280
|
+
name: "",
|
|
281
|
+
type: "address",
|
|
282
|
+
},
|
|
283
|
+
],
|
|
284
|
+
stateMutability: "view",
|
|
285
|
+
type: "function",
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
inputs: [
|
|
289
|
+
{
|
|
290
|
+
internalType: "uint256",
|
|
291
|
+
name: "newMonthlyReputationDistribution",
|
|
292
|
+
type: "uint256",
|
|
293
|
+
},
|
|
294
|
+
],
|
|
295
|
+
name: "setMonthlyReputationDistribution",
|
|
296
|
+
outputs: [],
|
|
297
|
+
stateMutability: "nonpayable",
|
|
298
|
+
type: "function",
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
inputs: [],
|
|
302
|
+
name: "updateAvatar",
|
|
303
|
+
outputs: [],
|
|
304
|
+
stateMutability: "nonpayable",
|
|
305
|
+
type: "function",
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
inputs: [
|
|
309
|
+
{
|
|
310
|
+
internalType: "address",
|
|
311
|
+
name: "_claimer",
|
|
312
|
+
type: "address",
|
|
313
|
+
},
|
|
314
|
+
],
|
|
315
|
+
name: "updateClaim",
|
|
316
|
+
outputs: [],
|
|
317
|
+
stateMutability: "nonpayable",
|
|
318
|
+
type: "function",
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
inputs: [
|
|
322
|
+
{
|
|
323
|
+
internalType: "address",
|
|
324
|
+
name: "newImplementation",
|
|
325
|
+
type: "address",
|
|
326
|
+
},
|
|
327
|
+
],
|
|
328
|
+
name: "upgradeTo",
|
|
329
|
+
outputs: [],
|
|
330
|
+
stateMutability: "nonpayable",
|
|
331
|
+
type: "function",
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
inputs: [
|
|
335
|
+
{
|
|
336
|
+
internalType: "address",
|
|
337
|
+
name: "newImplementation",
|
|
338
|
+
type: "address",
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
internalType: "bytes",
|
|
342
|
+
name: "data",
|
|
343
|
+
type: "bytes",
|
|
344
|
+
},
|
|
345
|
+
],
|
|
346
|
+
name: "upgradeToAndCall",
|
|
347
|
+
outputs: [],
|
|
348
|
+
stateMutability: "payable",
|
|
349
|
+
type: "function",
|
|
350
|
+
},
|
|
351
|
+
];
|
|
352
|
+
|
|
353
|
+
const _bytecode =
|
|
354
|
+
"0x60a06040523060601b60805234801561001757600080fd5b5060805160601c6115d361004b600039600081816104db01528181610524015281816105ad01526105ed01526115d36000f3fe6080604052600436106100ce5760003560e01c806305a6aafa146100d35780630a6f93e6146100f55780631b3c90a8146101355780631d0205b81461014a5780633659cfe6146101965780633c8c043a146101b65780633e6326fc146101cc5780634162169f146101f95780634f1ef286146102195780635aef7de61461022c578063862a4d471461024c578063b5f3067f14610262578063c047f1c31461028f578063c382c475146102d3578063c4d66de8146102f3578063e1758bd814610313578063e9157dd214610328575b600080fd5b3480156100df57600080fd5b506100f36100ee366004611231565b610348565b005b34801561010157600080fd5b5061012261011036600461125f565b609e6020526000908152604090205481565b6040519081526020015b60405180910390f35b34801561014157600080fd5b506100f361038b565b34801561015657600080fd5b50610181610165366004611231565b609c602052600090815260409020600181015460029091015482565b6040805192835260208301919091520161012c565b3480156101a257600080fd5b506100f36101b136600461125f565b6104d0565b3480156101c257600080fd5b50610122609a5481565b3480156101d857600080fd5b506067546101ec906001600160a01b031681565b60405161012c919061127c565b34801561020557600080fd5b506065546101ec906001600160a01b031681565b6100f36102273660046112a6565b6105a2565b34801561023857600080fd5b506066546101ec906001600160a01b031681565b34801561025857600080fd5b50610122609b5481565b34801561026e57600080fd5b5061012261027d36600461125f565b609d6020526000908152604090205481565b34801561029b57600080fd5b506101226102aa36600461125f565b609b546000908152609c602090815260408083206001600160a01b039094168352929052205490565b3480156102df57600080fd5b506100f36102ee36600461125f565b61065c565b3480156102ff57600080fd5b506100f361030e36600461125f565b610883565b34801561031f57600080fd5b506101ec610955565b34801561033457600080fd5b506100f361034336600461125f565b6109f1565b610350610da1565b609a8190556040518181527f237ab53d478ae984b5181944dc85b134c034a24236aac1632aa10236cedd8a999060200160405180910390a150565b60675460405163bf40fac160e01b815260206004820152600a60248201526921a7a72a2927a62622a960b11b60448201526001600160a01b039091169063bf40fac19060640160206040518083038186803b1580156103e957600080fd5b505afa1580156103fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104219190611369565b606580546001600160a01b0319166001600160a01b0392909216918217905560408051632d77bef360e11b81529051635aef7de691600480820192602092909190829003018186803b15801561047657600080fd5b505afa15801561048a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ae9190611369565b606680546001600160a01b0319166001600160a01b0392909216919091179055565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156105225760405162461bcd60e51b815260040161051990611386565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610554610e75565b6001600160a01b03161461057a5760405162461bcd60e51b8152600401610519906113c0565b61058381610e91565b6040805160008082526020820190925261059f91839190610e99565b50565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156105eb5760405162461bcd60e51b815260040161051990611386565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661061d610e75565b6001600160a01b0316146106435760405162461bcd60e51b8152600401610519906113c0565b61064c82610e91565b61065882826001610e99565b5050565b60006001609b5461066d9190611410565b6000818152609c6020908152604080832060028101546001600160a01b038816855290835281842054609d9093529220549293509091831180156106b15750600081115b80156106bd5750600082115b1561087d576001600160a01b0384166000908152609d60209081526040808320869055858352609c9091528120600101546106f88385611427565b6107029190611446565b9050801561087b5760675460405163bf40fac160e01b815260206004820152600a6024820152692922a82aaa20aa24a7a760b11b60448201526000916001600160a01b03169063bf40fac19060640160206040518083038186803b15801561076957600080fd5b505afa15801561077d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a19190611369565b6040516340c10f1960e01b81526001600160a01b03888116600483015260248201859052919250908216906340c10f1990604401602060405180830381600087803b1580156107ef57600080fd5b505af1158015610803573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108279190611468565b50604080516001600160a01b038816815260208101879052908101849052606081018390527f6d539aca58a0ce9de5ef660cea9845c2b109a1665b74200cceda7e8f097d0ace9060800160405180910390a1505b505b50505050565b600054610100900460ff168061089c575060005460ff16155b6108ff5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610519565b600054610100900460ff16158015610921576000805461ffff19166101011790555b66d3c21bcecceda1601a1b609a55610937610fd9565b61094082611010565b8015610658576000805461ff00191690555050565b60675460405163bf40fac160e01b815260206004820152600a60248201526923a7a7a22227a62620a960b11b60448201526000916001600160a01b03169063bf40fac19060640160206040518083038186803b1580156109b457600080fd5b505afa1580156109c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ec9190611369565b905090565b60675460405163bf40fac160e01b8152602060048201526009602482015268554249534348454d4560b81b60448201526000916001600160a01b03169063bf40fac19060640160206040518083038186803b158015610a4f57600080fd5b505afa158015610a63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a879190611369565b6040516339d9740760e11b81529091506001600160a01b038216906373b2e80e90610ab690859060040161127c565b60206040518083038186803b158015610ace57600080fd5b505afa158015610ae2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b069190611468565b610b635760405162461bcd60e51b815260206004820152602860248201527f436c61696d657273446973747269627574696f6e3a206469646e277420636c61604482015267696d20746f64617960c01b6064820152608401610519565b609e6000836001600160a01b03166001600160a01b0316815260200190815260200160002054816001600160a01b031663eda4e6d66040518163ffffffff1660e01b815260040160206040518083038186803b158015610bc257600080fd5b505afa158015610bd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bfa919061148a565b826001600160a01b0316635c9302c96040518163ffffffff1660e01b815260040160206040518083038186803b158015610c3357600080fd5b505afa158015610c47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6b919061148a565b610c789062015180611427565b610c8291906114a3565b11610cdd5760405162461bcd60e51b815260206004820152602560248201527f436c61696d657273446973747269627574696f6e3a20616c726561647920757060448201526419185d195960da1b6064820152608401610519565b610ce5610fd9565b6001600160a01b0382166000818152609e60209081526040808320429055609b548352609c8252808320938352929052908120805460019290610d299084906114a3565b9091555050609b546000908152609c602052604081206001908101805491929091610d559084906114a3565b9091555050609b54600090610d6c90600190611410565b6001600160a01b0384166000908152609d60205260409020549091508111610d9357505050565b610d9c8361065c565b505050565b60655460408051632d77bef360e11b8152905133926001600160a01b031691635aef7de6916004808301926020929190829003018186803b158015610de557600080fd5b505afa158015610df9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1d9190611369565b6001600160a01b031614610e735760405162461bcd60e51b815260206004820181905260248201527f6f6e6c79206176617461722063616e2063616c6c2074686973206d6574686f646044820152606401610519565b565b600080516020611557833981519152546001600160a01b031690565b61059f610da1565b6000610ea3610e75565b9050610eae84611033565b600083511180610ebb5750815b15610ecc57610eca84846110c6565b505b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143805460ff1661087b57805460ff19166001178155604051610f47908690610f1890859060240161127c565b60408051601f198184030181529190526020810180516001600160e01b0316631b2ce7f360e11b1790526110c6565b50805460ff19168155610f58610e75565b6001600160a01b0316826001600160a01b031614610fd05760405162461bcd60e51b815260206004820152602f60248201527f45524331393637557067726164653a207570677261646520627265616b73206660448201526e75727468657220757067726164657360881b6064820152608401610519565b61087b856111b1565b6000610fe862278d0042611446565b9050609b54811461059f57609b819055609a546000828152609c602052604090206002015550565b606780546001600160a01b0319166001600160a01b03831617905561059f61038b565b803b6110975760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610519565b60008051602061155783398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060823b6111255760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610519565b600080846001600160a01b03168460405161114091906114e7565b600060405180830381855af49150503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b50915091506111a88282604051806060016040528060278152602001611577602791396111f1565b95945050505050565b6111ba81611033565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060831561120057508161122a565b8251156112105782518084602001fd5b8160405162461bcd60e51b81526004016105199190611503565b9392505050565b60006020828403121561124357600080fd5b5035919050565b6001600160a01b038116811461059f57600080fd5b60006020828403121561127157600080fd5b813561122a8161124a565b6001600160a01b0391909116815260200190565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156112b957600080fd5b82356112c48161124a565b915060208301356001600160401b03808211156112e057600080fd5b818501915085601f8301126112f457600080fd5b81358181111561130657611306611290565b604051601f8201601f19908116603f0116810190838211818310171561132e5761132e611290565b8160405282815288602084870101111561134757600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60006020828403121561137b57600080fd5b815161122a8161124a565b6020808252602c9082015260008051602061153783398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c9082015260008051602061153783398151915260408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082821015611422576114226113fa565b500390565b6000816000190483118215151615611441576114416113fa565b500290565b60008261146357634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561147a57600080fd5b8151801515811461122a57600080fd5b60006020828403121561149c57600080fd5b5051919050565b600082198211156114b6576114b66113fa565b500190565b60005b838110156114d65781810151838201526020016114be565b8381111561087d5750506000910152565b600082516114f98184602087016114bb565b9190910192915050565b60208152600082518060208401526115228160408501602087016114bb565b601f01601f1916919091016040019291505056fe46756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220f3d592ed32df92c6ab88a06c5961303693b40ca446c62c391756e689fde9654764736f6c63430008080033";
|
|
355
|
+
|
|
356
|
+
type ClaimersDistributionConstructorParams =
|
|
357
|
+
| [signer?: Signer]
|
|
358
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
359
|
+
|
|
360
|
+
const isSuperArgs = (
|
|
361
|
+
xs: ClaimersDistributionConstructorParams
|
|
362
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
363
|
+
|
|
364
|
+
export class ClaimersDistribution__factory extends ContractFactory {
|
|
365
|
+
constructor(...args: ClaimersDistributionConstructorParams) {
|
|
366
|
+
if (isSuperArgs(args)) {
|
|
367
|
+
super(...args);
|
|
368
|
+
} else {
|
|
369
|
+
super(_abi, _bytecode, args[0]);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
deploy(
|
|
374
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
375
|
+
): Promise<ClaimersDistribution> {
|
|
376
|
+
return super.deploy(overrides || {}) as Promise<ClaimersDistribution>;
|
|
377
|
+
}
|
|
378
|
+
getDeployTransaction(
|
|
379
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
380
|
+
): TransactionRequest {
|
|
381
|
+
return super.getDeployTransaction(overrides || {});
|
|
382
|
+
}
|
|
383
|
+
attach(address: string): ClaimersDistribution {
|
|
384
|
+
return super.attach(address) as ClaimersDistribution;
|
|
385
|
+
}
|
|
386
|
+
connect(signer: Signer): ClaimersDistribution__factory {
|
|
387
|
+
return super.connect(signer) as ClaimersDistribution__factory;
|
|
388
|
+
}
|
|
389
|
+
static readonly bytecode = _bytecode;
|
|
390
|
+
static readonly abi = _abi;
|
|
391
|
+
static createInterface(): ClaimersDistributionInterface {
|
|
392
|
+
return new utils.Interface(_abi) as ClaimersDistributionInterface;
|
|
393
|
+
}
|
|
394
|
+
static connect(
|
|
395
|
+
address: string,
|
|
396
|
+
signerOrProvider: Signer | Provider
|
|
397
|
+
): ClaimersDistribution {
|
|
398
|
+
return new Contract(
|
|
399
|
+
address,
|
|
400
|
+
_abi,
|
|
401
|
+
signerOrProvider
|
|
402
|
+
) as ClaimersDistribution;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
6
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
CompUSDMockOracle,
|
|
9
|
+
CompUSDMockOracleInterface,
|
|
10
|
+
} from "../CompUSDMockOracle";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [],
|
|
15
|
+
name: "latestAnswer",
|
|
16
|
+
outputs: [
|
|
17
|
+
{
|
|
18
|
+
internalType: "int256",
|
|
19
|
+
name: "",
|
|
20
|
+
type: "int256",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
stateMutability: "pure",
|
|
24
|
+
type: "function",
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
const _bytecode =
|
|
29
|
+
"0x6080604052348015600f57600080fd5b50607b80601d6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806350d25bcd14602d575b600080fd5b64090970f60b60405190815260200160405180910390f3fea2646970667358221220a63a1c6679afea07b21e84abb47928d2a939dc2644d334656bc539fdfdabcb6f64736f6c63430008080033";
|
|
30
|
+
|
|
31
|
+
type CompUSDMockOracleConstructorParams =
|
|
32
|
+
| [signer?: Signer]
|
|
33
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
34
|
+
|
|
35
|
+
const isSuperArgs = (
|
|
36
|
+
xs: CompUSDMockOracleConstructorParams
|
|
37
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
38
|
+
|
|
39
|
+
export class CompUSDMockOracle__factory extends ContractFactory {
|
|
40
|
+
constructor(...args: CompUSDMockOracleConstructorParams) {
|
|
41
|
+
if (isSuperArgs(args)) {
|
|
42
|
+
super(...args);
|
|
43
|
+
} else {
|
|
44
|
+
super(_abi, _bytecode, args[0]);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
deploy(
|
|
49
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
50
|
+
): Promise<CompUSDMockOracle> {
|
|
51
|
+
return super.deploy(overrides || {}) as Promise<CompUSDMockOracle>;
|
|
52
|
+
}
|
|
53
|
+
getDeployTransaction(
|
|
54
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
55
|
+
): TransactionRequest {
|
|
56
|
+
return super.getDeployTransaction(overrides || {});
|
|
57
|
+
}
|
|
58
|
+
attach(address: string): CompUSDMockOracle {
|
|
59
|
+
return super.attach(address) as CompUSDMockOracle;
|
|
60
|
+
}
|
|
61
|
+
connect(signer: Signer): CompUSDMockOracle__factory {
|
|
62
|
+
return super.connect(signer) as CompUSDMockOracle__factory;
|
|
63
|
+
}
|
|
64
|
+
static readonly bytecode = _bytecode;
|
|
65
|
+
static readonly abi = _abi;
|
|
66
|
+
static createInterface(): CompUSDMockOracleInterface {
|
|
67
|
+
return new utils.Interface(_abi) as CompUSDMockOracleInterface;
|
|
68
|
+
}
|
|
69
|
+
static connect(
|
|
70
|
+
address: string,
|
|
71
|
+
signerOrProvider: Signer | Provider
|
|
72
|
+
): CompUSDMockOracle {
|
|
73
|
+
return new Contract(address, _abi, signerOrProvider) as CompUSDMockOracle;
|
|
74
|
+
}
|
|
75
|
+
}
|