@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,1182 @@
|
|
|
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
|
+
CompoundVotingMachine,
|
|
9
|
+
CompoundVotingMachineInterface,
|
|
10
|
+
} from "../CompoundVotingMachine";
|
|
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: "address",
|
|
51
|
+
name: "newGuardian",
|
|
52
|
+
type: "address",
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
name: "GuardianSet",
|
|
56
|
+
type: "event",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
anonymous: false,
|
|
60
|
+
inputs: [
|
|
61
|
+
{
|
|
62
|
+
indexed: false,
|
|
63
|
+
internalType: "uint256[9]",
|
|
64
|
+
name: "params",
|
|
65
|
+
type: "uint256[9]",
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
name: "ParametersSet",
|
|
69
|
+
type: "event",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
anonymous: false,
|
|
73
|
+
inputs: [
|
|
74
|
+
{
|
|
75
|
+
indexed: false,
|
|
76
|
+
internalType: "uint256",
|
|
77
|
+
name: "id",
|
|
78
|
+
type: "uint256",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
indexed: true,
|
|
82
|
+
internalType: "uint256",
|
|
83
|
+
name: "forBlockchain",
|
|
84
|
+
type: "uint256",
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
name: "ProposalBridge",
|
|
88
|
+
type: "event",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
anonymous: false,
|
|
92
|
+
inputs: [
|
|
93
|
+
{
|
|
94
|
+
indexed: false,
|
|
95
|
+
internalType: "uint256",
|
|
96
|
+
name: "id",
|
|
97
|
+
type: "uint256",
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
name: "ProposalCanceled",
|
|
101
|
+
type: "event",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
anonymous: false,
|
|
105
|
+
inputs: [
|
|
106
|
+
{
|
|
107
|
+
indexed: false,
|
|
108
|
+
internalType: "uint256",
|
|
109
|
+
name: "id",
|
|
110
|
+
type: "uint256",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
indexed: false,
|
|
114
|
+
internalType: "address",
|
|
115
|
+
name: "proposer",
|
|
116
|
+
type: "address",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
indexed: false,
|
|
120
|
+
internalType: "address[]",
|
|
121
|
+
name: "targets",
|
|
122
|
+
type: "address[]",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
indexed: false,
|
|
126
|
+
internalType: "uint256[]",
|
|
127
|
+
name: "values",
|
|
128
|
+
type: "uint256[]",
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
indexed: false,
|
|
132
|
+
internalType: "string[]",
|
|
133
|
+
name: "signatures",
|
|
134
|
+
type: "string[]",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
indexed: false,
|
|
138
|
+
internalType: "bytes[]",
|
|
139
|
+
name: "calldatas",
|
|
140
|
+
type: "bytes[]",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
indexed: false,
|
|
144
|
+
internalType: "uint256",
|
|
145
|
+
name: "startBlock",
|
|
146
|
+
type: "uint256",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
indexed: false,
|
|
150
|
+
internalType: "uint256",
|
|
151
|
+
name: "endBlock",
|
|
152
|
+
type: "uint256",
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
indexed: false,
|
|
156
|
+
internalType: "string",
|
|
157
|
+
name: "description",
|
|
158
|
+
type: "string",
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
name: "ProposalCreated",
|
|
162
|
+
type: "event",
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
anonymous: false,
|
|
166
|
+
inputs: [
|
|
167
|
+
{
|
|
168
|
+
indexed: false,
|
|
169
|
+
internalType: "uint256",
|
|
170
|
+
name: "id",
|
|
171
|
+
type: "uint256",
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
name: "ProposalExecuted",
|
|
175
|
+
type: "event",
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
anonymous: false,
|
|
179
|
+
inputs: [
|
|
180
|
+
{
|
|
181
|
+
indexed: false,
|
|
182
|
+
internalType: "uint256",
|
|
183
|
+
name: "id",
|
|
184
|
+
type: "uint256",
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
indexed: false,
|
|
188
|
+
internalType: "uint256",
|
|
189
|
+
name: "index",
|
|
190
|
+
type: "uint256",
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
indexed: false,
|
|
194
|
+
internalType: "bool",
|
|
195
|
+
name: "ok",
|
|
196
|
+
type: "bool",
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
indexed: false,
|
|
200
|
+
internalType: "bytes",
|
|
201
|
+
name: "result",
|
|
202
|
+
type: "bytes",
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
name: "ProposalExecutionResult",
|
|
206
|
+
type: "event",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
anonymous: false,
|
|
210
|
+
inputs: [
|
|
211
|
+
{
|
|
212
|
+
indexed: false,
|
|
213
|
+
internalType: "uint256",
|
|
214
|
+
name: "id",
|
|
215
|
+
type: "uint256",
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
indexed: false,
|
|
219
|
+
internalType: "uint256",
|
|
220
|
+
name: "eta",
|
|
221
|
+
type: "uint256",
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
name: "ProposalQueued",
|
|
225
|
+
type: "event",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
anonymous: false,
|
|
229
|
+
inputs: [
|
|
230
|
+
{
|
|
231
|
+
indexed: false,
|
|
232
|
+
internalType: "uint256",
|
|
233
|
+
name: "id",
|
|
234
|
+
type: "uint256",
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
indexed: false,
|
|
238
|
+
internalType: "address",
|
|
239
|
+
name: "proposer",
|
|
240
|
+
type: "address",
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
indexed: false,
|
|
244
|
+
internalType: "address[]",
|
|
245
|
+
name: "targets",
|
|
246
|
+
type: "address[]",
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
indexed: false,
|
|
250
|
+
internalType: "uint256[]",
|
|
251
|
+
name: "values",
|
|
252
|
+
type: "uint256[]",
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
indexed: false,
|
|
256
|
+
internalType: "string[]",
|
|
257
|
+
name: "signatures",
|
|
258
|
+
type: "string[]",
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
indexed: false,
|
|
262
|
+
internalType: "bytes[]",
|
|
263
|
+
name: "calldatas",
|
|
264
|
+
type: "bytes[]",
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
indexed: false,
|
|
268
|
+
internalType: "uint256",
|
|
269
|
+
name: "startBlock",
|
|
270
|
+
type: "uint256",
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
indexed: false,
|
|
274
|
+
internalType: "uint256",
|
|
275
|
+
name: "endBlock",
|
|
276
|
+
type: "uint256",
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
indexed: false,
|
|
280
|
+
internalType: "uint256",
|
|
281
|
+
name: "forBlockchain",
|
|
282
|
+
type: "uint256",
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
indexed: false,
|
|
286
|
+
internalType: "uint256",
|
|
287
|
+
name: "eta",
|
|
288
|
+
type: "uint256",
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
indexed: false,
|
|
292
|
+
internalType: "uint256",
|
|
293
|
+
name: "forVotes",
|
|
294
|
+
type: "uint256",
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
indexed: false,
|
|
298
|
+
internalType: "uint256",
|
|
299
|
+
name: "againstVotes",
|
|
300
|
+
type: "uint256",
|
|
301
|
+
},
|
|
302
|
+
],
|
|
303
|
+
name: "ProposalSucceeded",
|
|
304
|
+
type: "event",
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
anonymous: false,
|
|
308
|
+
inputs: [
|
|
309
|
+
{
|
|
310
|
+
indexed: true,
|
|
311
|
+
internalType: "address",
|
|
312
|
+
name: "implementation",
|
|
313
|
+
type: "address",
|
|
314
|
+
},
|
|
315
|
+
],
|
|
316
|
+
name: "Upgraded",
|
|
317
|
+
type: "event",
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
anonymous: false,
|
|
321
|
+
inputs: [
|
|
322
|
+
{
|
|
323
|
+
indexed: false,
|
|
324
|
+
internalType: "address",
|
|
325
|
+
name: "voter",
|
|
326
|
+
type: "address",
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
indexed: false,
|
|
330
|
+
internalType: "uint256",
|
|
331
|
+
name: "proposalId",
|
|
332
|
+
type: "uint256",
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
indexed: false,
|
|
336
|
+
internalType: "bool",
|
|
337
|
+
name: "support",
|
|
338
|
+
type: "bool",
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
indexed: false,
|
|
342
|
+
internalType: "uint256",
|
|
343
|
+
name: "votes",
|
|
344
|
+
type: "uint256",
|
|
345
|
+
},
|
|
346
|
+
],
|
|
347
|
+
name: "VoteCast",
|
|
348
|
+
type: "event",
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
inputs: [],
|
|
352
|
+
name: "BALLOT_TYPEHASH",
|
|
353
|
+
outputs: [
|
|
354
|
+
{
|
|
355
|
+
internalType: "bytes32",
|
|
356
|
+
name: "",
|
|
357
|
+
type: "bytes32",
|
|
358
|
+
},
|
|
359
|
+
],
|
|
360
|
+
stateMutability: "view",
|
|
361
|
+
type: "function",
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
inputs: [],
|
|
365
|
+
name: "DOMAIN_TYPEHASH",
|
|
366
|
+
outputs: [
|
|
367
|
+
{
|
|
368
|
+
internalType: "bytes32",
|
|
369
|
+
name: "",
|
|
370
|
+
type: "bytes32",
|
|
371
|
+
},
|
|
372
|
+
],
|
|
373
|
+
stateMutability: "view",
|
|
374
|
+
type: "function",
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
inputs: [],
|
|
378
|
+
name: "avatar",
|
|
379
|
+
outputs: [
|
|
380
|
+
{
|
|
381
|
+
internalType: "address",
|
|
382
|
+
name: "",
|
|
383
|
+
type: "address",
|
|
384
|
+
},
|
|
385
|
+
],
|
|
386
|
+
stateMutability: "view",
|
|
387
|
+
type: "function",
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
inputs: [
|
|
391
|
+
{
|
|
392
|
+
internalType: "uint256",
|
|
393
|
+
name: "proposalId",
|
|
394
|
+
type: "uint256",
|
|
395
|
+
},
|
|
396
|
+
],
|
|
397
|
+
name: "cancel",
|
|
398
|
+
outputs: [],
|
|
399
|
+
stateMutability: "nonpayable",
|
|
400
|
+
type: "function",
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
inputs: [
|
|
404
|
+
{
|
|
405
|
+
internalType: "uint256",
|
|
406
|
+
name: "proposalId",
|
|
407
|
+
type: "uint256",
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
internalType: "bool",
|
|
411
|
+
name: "support",
|
|
412
|
+
type: "bool",
|
|
413
|
+
},
|
|
414
|
+
],
|
|
415
|
+
name: "castVote",
|
|
416
|
+
outputs: [],
|
|
417
|
+
stateMutability: "nonpayable",
|
|
418
|
+
type: "function",
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
inputs: [
|
|
422
|
+
{
|
|
423
|
+
internalType: "uint256",
|
|
424
|
+
name: "proposalId",
|
|
425
|
+
type: "uint256",
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
internalType: "bool",
|
|
429
|
+
name: "support",
|
|
430
|
+
type: "bool",
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
internalType: "uint8",
|
|
434
|
+
name: "v",
|
|
435
|
+
type: "uint8",
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
internalType: "bytes32",
|
|
439
|
+
name: "r",
|
|
440
|
+
type: "bytes32",
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
internalType: "bytes32",
|
|
444
|
+
name: "s",
|
|
445
|
+
type: "bytes32",
|
|
446
|
+
},
|
|
447
|
+
],
|
|
448
|
+
name: "castVoteBySig",
|
|
449
|
+
outputs: [],
|
|
450
|
+
stateMutability: "nonpayable",
|
|
451
|
+
type: "function",
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
inputs: [],
|
|
455
|
+
name: "dao",
|
|
456
|
+
outputs: [
|
|
457
|
+
{
|
|
458
|
+
internalType: "contract Controller",
|
|
459
|
+
name: "",
|
|
460
|
+
type: "address",
|
|
461
|
+
},
|
|
462
|
+
],
|
|
463
|
+
stateMutability: "view",
|
|
464
|
+
type: "function",
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
inputs: [
|
|
468
|
+
{
|
|
469
|
+
internalType: "uint256",
|
|
470
|
+
name: "_proposalId",
|
|
471
|
+
type: "uint256",
|
|
472
|
+
},
|
|
473
|
+
],
|
|
474
|
+
name: "emitSucceeded",
|
|
475
|
+
outputs: [],
|
|
476
|
+
stateMutability: "nonpayable",
|
|
477
|
+
type: "function",
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
inputs: [
|
|
481
|
+
{
|
|
482
|
+
internalType: "uint256",
|
|
483
|
+
name: "proposalId",
|
|
484
|
+
type: "uint256",
|
|
485
|
+
},
|
|
486
|
+
],
|
|
487
|
+
name: "execute",
|
|
488
|
+
outputs: [],
|
|
489
|
+
stateMutability: "payable",
|
|
490
|
+
type: "function",
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
inputs: [],
|
|
494
|
+
name: "fastQueuePeriod",
|
|
495
|
+
outputs: [
|
|
496
|
+
{
|
|
497
|
+
internalType: "uint256",
|
|
498
|
+
name: "",
|
|
499
|
+
type: "uint256",
|
|
500
|
+
},
|
|
501
|
+
],
|
|
502
|
+
stateMutability: "view",
|
|
503
|
+
type: "function",
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
inputs: [
|
|
507
|
+
{
|
|
508
|
+
internalType: "address",
|
|
509
|
+
name: "_guardian",
|
|
510
|
+
type: "address",
|
|
511
|
+
},
|
|
512
|
+
],
|
|
513
|
+
name: "fixGuardian",
|
|
514
|
+
outputs: [],
|
|
515
|
+
stateMutability: "nonpayable",
|
|
516
|
+
type: "function",
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
inputs: [],
|
|
520
|
+
name: "foundationGuardianRelease",
|
|
521
|
+
outputs: [
|
|
522
|
+
{
|
|
523
|
+
internalType: "uint64",
|
|
524
|
+
name: "",
|
|
525
|
+
type: "uint64",
|
|
526
|
+
},
|
|
527
|
+
],
|
|
528
|
+
stateMutability: "view",
|
|
529
|
+
type: "function",
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
inputs: [],
|
|
533
|
+
name: "gameChangerPeriod",
|
|
534
|
+
outputs: [
|
|
535
|
+
{
|
|
536
|
+
internalType: "uint256",
|
|
537
|
+
name: "",
|
|
538
|
+
type: "uint256",
|
|
539
|
+
},
|
|
540
|
+
],
|
|
541
|
+
stateMutability: "view",
|
|
542
|
+
type: "function",
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
inputs: [
|
|
546
|
+
{
|
|
547
|
+
internalType: "uint256",
|
|
548
|
+
name: "proposalId",
|
|
549
|
+
type: "uint256",
|
|
550
|
+
},
|
|
551
|
+
],
|
|
552
|
+
name: "getActions",
|
|
553
|
+
outputs: [
|
|
554
|
+
{
|
|
555
|
+
internalType: "address[]",
|
|
556
|
+
name: "targets",
|
|
557
|
+
type: "address[]",
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
internalType: "uint256[]",
|
|
561
|
+
name: "values",
|
|
562
|
+
type: "uint256[]",
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
internalType: "string[]",
|
|
566
|
+
name: "signatures",
|
|
567
|
+
type: "string[]",
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
internalType: "bytes[]",
|
|
571
|
+
name: "calldatas",
|
|
572
|
+
type: "bytes[]",
|
|
573
|
+
},
|
|
574
|
+
],
|
|
575
|
+
stateMutability: "view",
|
|
576
|
+
type: "function",
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
inputs: [],
|
|
580
|
+
name: "getChainId",
|
|
581
|
+
outputs: [
|
|
582
|
+
{
|
|
583
|
+
internalType: "uint256",
|
|
584
|
+
name: "",
|
|
585
|
+
type: "uint256",
|
|
586
|
+
},
|
|
587
|
+
],
|
|
588
|
+
stateMutability: "view",
|
|
589
|
+
type: "function",
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
inputs: [
|
|
593
|
+
{
|
|
594
|
+
internalType: "uint256",
|
|
595
|
+
name: "proposalId",
|
|
596
|
+
type: "uint256",
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
internalType: "address",
|
|
600
|
+
name: "voter",
|
|
601
|
+
type: "address",
|
|
602
|
+
},
|
|
603
|
+
],
|
|
604
|
+
name: "getReceipt",
|
|
605
|
+
outputs: [
|
|
606
|
+
{
|
|
607
|
+
components: [
|
|
608
|
+
{
|
|
609
|
+
internalType: "bool",
|
|
610
|
+
name: "hasVoted",
|
|
611
|
+
type: "bool",
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
internalType: "bool",
|
|
615
|
+
name: "support",
|
|
616
|
+
type: "bool",
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
internalType: "uint256",
|
|
620
|
+
name: "votes",
|
|
621
|
+
type: "uint256",
|
|
622
|
+
},
|
|
623
|
+
],
|
|
624
|
+
internalType: "struct CompoundVotingMachine.Receipt",
|
|
625
|
+
name: "",
|
|
626
|
+
type: "tuple",
|
|
627
|
+
},
|
|
628
|
+
],
|
|
629
|
+
stateMutability: "view",
|
|
630
|
+
type: "function",
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
inputs: [],
|
|
634
|
+
name: "gracePeriod",
|
|
635
|
+
outputs: [
|
|
636
|
+
{
|
|
637
|
+
internalType: "uint256",
|
|
638
|
+
name: "",
|
|
639
|
+
type: "uint256",
|
|
640
|
+
},
|
|
641
|
+
],
|
|
642
|
+
stateMutability: "view",
|
|
643
|
+
type: "function",
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
inputs: [],
|
|
647
|
+
name: "guardian",
|
|
648
|
+
outputs: [
|
|
649
|
+
{
|
|
650
|
+
internalType: "address",
|
|
651
|
+
name: "",
|
|
652
|
+
type: "address",
|
|
653
|
+
},
|
|
654
|
+
],
|
|
655
|
+
stateMutability: "view",
|
|
656
|
+
type: "function",
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
inputs: [
|
|
660
|
+
{
|
|
661
|
+
internalType: "contract INameService",
|
|
662
|
+
name: "ns_",
|
|
663
|
+
type: "address",
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
internalType: "uint256",
|
|
667
|
+
name: "votingPeriodBlocks_",
|
|
668
|
+
type: "uint256",
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
internalType: "address",
|
|
672
|
+
name: "guardian_",
|
|
673
|
+
type: "address",
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
internalType: "address",
|
|
677
|
+
name: "reputation_",
|
|
678
|
+
type: "address",
|
|
679
|
+
},
|
|
680
|
+
],
|
|
681
|
+
name: "initialize",
|
|
682
|
+
outputs: [],
|
|
683
|
+
stateMutability: "nonpayable",
|
|
684
|
+
type: "function",
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
inputs: [
|
|
688
|
+
{
|
|
689
|
+
internalType: "address",
|
|
690
|
+
name: "",
|
|
691
|
+
type: "address",
|
|
692
|
+
},
|
|
693
|
+
],
|
|
694
|
+
name: "latestProposalIds",
|
|
695
|
+
outputs: [
|
|
696
|
+
{
|
|
697
|
+
internalType: "uint256",
|
|
698
|
+
name: "",
|
|
699
|
+
type: "uint256",
|
|
700
|
+
},
|
|
701
|
+
],
|
|
702
|
+
stateMutability: "view",
|
|
703
|
+
type: "function",
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
inputs: [],
|
|
707
|
+
name: "name",
|
|
708
|
+
outputs: [
|
|
709
|
+
{
|
|
710
|
+
internalType: "string",
|
|
711
|
+
name: "",
|
|
712
|
+
type: "string",
|
|
713
|
+
},
|
|
714
|
+
],
|
|
715
|
+
stateMutability: "view",
|
|
716
|
+
type: "function",
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
inputs: [],
|
|
720
|
+
name: "nameService",
|
|
721
|
+
outputs: [
|
|
722
|
+
{
|
|
723
|
+
internalType: "contract INameService",
|
|
724
|
+
name: "",
|
|
725
|
+
type: "address",
|
|
726
|
+
},
|
|
727
|
+
],
|
|
728
|
+
stateMutability: "view",
|
|
729
|
+
type: "function",
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
inputs: [],
|
|
733
|
+
name: "nativeToken",
|
|
734
|
+
outputs: [
|
|
735
|
+
{
|
|
736
|
+
internalType: "contract IGoodDollar",
|
|
737
|
+
name: "",
|
|
738
|
+
type: "address",
|
|
739
|
+
},
|
|
740
|
+
],
|
|
741
|
+
stateMutability: "view",
|
|
742
|
+
type: "function",
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
inputs: [],
|
|
746
|
+
name: "proposalCount",
|
|
747
|
+
outputs: [
|
|
748
|
+
{
|
|
749
|
+
internalType: "uint256",
|
|
750
|
+
name: "",
|
|
751
|
+
type: "uint256",
|
|
752
|
+
},
|
|
753
|
+
],
|
|
754
|
+
stateMutability: "view",
|
|
755
|
+
type: "function",
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
inputs: [],
|
|
759
|
+
name: "proposalMaxOperations",
|
|
760
|
+
outputs: [
|
|
761
|
+
{
|
|
762
|
+
internalType: "uint256",
|
|
763
|
+
name: "",
|
|
764
|
+
type: "uint256",
|
|
765
|
+
},
|
|
766
|
+
],
|
|
767
|
+
stateMutability: "view",
|
|
768
|
+
type: "function",
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
inputs: [],
|
|
772
|
+
name: "proposalPercentage",
|
|
773
|
+
outputs: [
|
|
774
|
+
{
|
|
775
|
+
internalType: "uint256",
|
|
776
|
+
name: "",
|
|
777
|
+
type: "uint256",
|
|
778
|
+
},
|
|
779
|
+
],
|
|
780
|
+
stateMutability: "view",
|
|
781
|
+
type: "function",
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
inputs: [
|
|
785
|
+
{
|
|
786
|
+
internalType: "uint256",
|
|
787
|
+
name: "blockNumber",
|
|
788
|
+
type: "uint256",
|
|
789
|
+
},
|
|
790
|
+
],
|
|
791
|
+
name: "proposalThreshold",
|
|
792
|
+
outputs: [
|
|
793
|
+
{
|
|
794
|
+
internalType: "uint256",
|
|
795
|
+
name: "",
|
|
796
|
+
type: "uint256",
|
|
797
|
+
},
|
|
798
|
+
],
|
|
799
|
+
stateMutability: "view",
|
|
800
|
+
type: "function",
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
inputs: [
|
|
804
|
+
{
|
|
805
|
+
internalType: "uint256",
|
|
806
|
+
name: "",
|
|
807
|
+
type: "uint256",
|
|
808
|
+
},
|
|
809
|
+
],
|
|
810
|
+
name: "proposals",
|
|
811
|
+
outputs: [
|
|
812
|
+
{
|
|
813
|
+
internalType: "uint256",
|
|
814
|
+
name: "id",
|
|
815
|
+
type: "uint256",
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
internalType: "address",
|
|
819
|
+
name: "proposer",
|
|
820
|
+
type: "address",
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
internalType: "uint256",
|
|
824
|
+
name: "eta",
|
|
825
|
+
type: "uint256",
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
internalType: "uint256",
|
|
829
|
+
name: "startBlock",
|
|
830
|
+
type: "uint256",
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
internalType: "uint256",
|
|
834
|
+
name: "endBlock",
|
|
835
|
+
type: "uint256",
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
internalType: "uint256",
|
|
839
|
+
name: "forVotes",
|
|
840
|
+
type: "uint256",
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
internalType: "uint256",
|
|
844
|
+
name: "againstVotes",
|
|
845
|
+
type: "uint256",
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
internalType: "bool",
|
|
849
|
+
name: "canceled",
|
|
850
|
+
type: "bool",
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
internalType: "bool",
|
|
854
|
+
name: "executed",
|
|
855
|
+
type: "bool",
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
internalType: "uint256",
|
|
859
|
+
name: "quoromRequired",
|
|
860
|
+
type: "uint256",
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
internalType: "uint256",
|
|
864
|
+
name: "forBlockchain",
|
|
865
|
+
type: "uint256",
|
|
866
|
+
},
|
|
867
|
+
],
|
|
868
|
+
stateMutability: "view",
|
|
869
|
+
type: "function",
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
inputs: [
|
|
873
|
+
{
|
|
874
|
+
internalType: "address[]",
|
|
875
|
+
name: "targets",
|
|
876
|
+
type: "address[]",
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
internalType: "uint256[]",
|
|
880
|
+
name: "values",
|
|
881
|
+
type: "uint256[]",
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
internalType: "string[]",
|
|
885
|
+
name: "signatures",
|
|
886
|
+
type: "string[]",
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
internalType: "bytes[]",
|
|
890
|
+
name: "calldatas",
|
|
891
|
+
type: "bytes[]",
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
internalType: "string",
|
|
895
|
+
name: "description",
|
|
896
|
+
type: "string",
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
internalType: "uint256",
|
|
900
|
+
name: "forBlockchain",
|
|
901
|
+
type: "uint256",
|
|
902
|
+
},
|
|
903
|
+
],
|
|
904
|
+
name: "propose",
|
|
905
|
+
outputs: [
|
|
906
|
+
{
|
|
907
|
+
internalType: "uint256",
|
|
908
|
+
name: "",
|
|
909
|
+
type: "uint256",
|
|
910
|
+
},
|
|
911
|
+
],
|
|
912
|
+
stateMutability: "nonpayable",
|
|
913
|
+
type: "function",
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
inputs: [
|
|
917
|
+
{
|
|
918
|
+
internalType: "address[]",
|
|
919
|
+
name: "targets",
|
|
920
|
+
type: "address[]",
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
internalType: "uint256[]",
|
|
924
|
+
name: "values",
|
|
925
|
+
type: "uint256[]",
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
internalType: "string[]",
|
|
929
|
+
name: "signatures",
|
|
930
|
+
type: "string[]",
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
internalType: "bytes[]",
|
|
934
|
+
name: "calldatas",
|
|
935
|
+
type: "bytes[]",
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
internalType: "string",
|
|
939
|
+
name: "description",
|
|
940
|
+
type: "string",
|
|
941
|
+
},
|
|
942
|
+
],
|
|
943
|
+
name: "propose",
|
|
944
|
+
outputs: [
|
|
945
|
+
{
|
|
946
|
+
internalType: "uint256",
|
|
947
|
+
name: "",
|
|
948
|
+
type: "uint256",
|
|
949
|
+
},
|
|
950
|
+
],
|
|
951
|
+
stateMutability: "nonpayable",
|
|
952
|
+
type: "function",
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
inputs: [],
|
|
956
|
+
name: "queuePeriod",
|
|
957
|
+
outputs: [
|
|
958
|
+
{
|
|
959
|
+
internalType: "uint256",
|
|
960
|
+
name: "",
|
|
961
|
+
type: "uint256",
|
|
962
|
+
},
|
|
963
|
+
],
|
|
964
|
+
stateMutability: "view",
|
|
965
|
+
type: "function",
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
inputs: [],
|
|
969
|
+
name: "quoromPercentage",
|
|
970
|
+
outputs: [
|
|
971
|
+
{
|
|
972
|
+
internalType: "uint256",
|
|
973
|
+
name: "",
|
|
974
|
+
type: "uint256",
|
|
975
|
+
},
|
|
976
|
+
],
|
|
977
|
+
stateMutability: "view",
|
|
978
|
+
type: "function",
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
inputs: [],
|
|
982
|
+
name: "quorumVotes",
|
|
983
|
+
outputs: [
|
|
984
|
+
{
|
|
985
|
+
internalType: "uint256",
|
|
986
|
+
name: "",
|
|
987
|
+
type: "uint256",
|
|
988
|
+
},
|
|
989
|
+
],
|
|
990
|
+
stateMutability: "view",
|
|
991
|
+
type: "function",
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
inputs: [],
|
|
995
|
+
name: "renounceGuardian",
|
|
996
|
+
outputs: [],
|
|
997
|
+
stateMutability: "nonpayable",
|
|
998
|
+
type: "function",
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
inputs: [],
|
|
1002
|
+
name: "rep",
|
|
1003
|
+
outputs: [
|
|
1004
|
+
{
|
|
1005
|
+
internalType: "contract ReputationInterface",
|
|
1006
|
+
name: "",
|
|
1007
|
+
type: "address",
|
|
1008
|
+
},
|
|
1009
|
+
],
|
|
1010
|
+
stateMutability: "view",
|
|
1011
|
+
type: "function",
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
inputs: [
|
|
1015
|
+
{
|
|
1016
|
+
internalType: "address",
|
|
1017
|
+
name: "_guardian",
|
|
1018
|
+
type: "address",
|
|
1019
|
+
},
|
|
1020
|
+
],
|
|
1021
|
+
name: "setGuardian",
|
|
1022
|
+
outputs: [],
|
|
1023
|
+
stateMutability: "nonpayable",
|
|
1024
|
+
type: "function",
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
inputs: [
|
|
1028
|
+
{
|
|
1029
|
+
internalType: "uint256[9]",
|
|
1030
|
+
name: "_newParams",
|
|
1031
|
+
type: "uint256[9]",
|
|
1032
|
+
},
|
|
1033
|
+
],
|
|
1034
|
+
name: "setVotingParameters",
|
|
1035
|
+
outputs: [],
|
|
1036
|
+
stateMutability: "nonpayable",
|
|
1037
|
+
type: "function",
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
inputs: [
|
|
1041
|
+
{
|
|
1042
|
+
internalType: "uint256",
|
|
1043
|
+
name: "proposalId",
|
|
1044
|
+
type: "uint256",
|
|
1045
|
+
},
|
|
1046
|
+
],
|
|
1047
|
+
name: "state",
|
|
1048
|
+
outputs: [
|
|
1049
|
+
{
|
|
1050
|
+
internalType: "enum CompoundVotingMachine.ProposalState",
|
|
1051
|
+
name: "",
|
|
1052
|
+
type: "uint8",
|
|
1053
|
+
},
|
|
1054
|
+
],
|
|
1055
|
+
stateMutability: "view",
|
|
1056
|
+
type: "function",
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
inputs: [],
|
|
1060
|
+
name: "updateAvatar",
|
|
1061
|
+
outputs: [],
|
|
1062
|
+
stateMutability: "nonpayable",
|
|
1063
|
+
type: "function",
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
inputs: [],
|
|
1067
|
+
name: "updateRep",
|
|
1068
|
+
outputs: [],
|
|
1069
|
+
stateMutability: "nonpayable",
|
|
1070
|
+
type: "function",
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
inputs: [
|
|
1074
|
+
{
|
|
1075
|
+
internalType: "address",
|
|
1076
|
+
name: "newImplementation",
|
|
1077
|
+
type: "address",
|
|
1078
|
+
},
|
|
1079
|
+
],
|
|
1080
|
+
name: "upgradeTo",
|
|
1081
|
+
outputs: [],
|
|
1082
|
+
stateMutability: "nonpayable",
|
|
1083
|
+
type: "function",
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
inputs: [
|
|
1087
|
+
{
|
|
1088
|
+
internalType: "address",
|
|
1089
|
+
name: "newImplementation",
|
|
1090
|
+
type: "address",
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
internalType: "bytes",
|
|
1094
|
+
name: "data",
|
|
1095
|
+
type: "bytes",
|
|
1096
|
+
},
|
|
1097
|
+
],
|
|
1098
|
+
name: "upgradeToAndCall",
|
|
1099
|
+
outputs: [],
|
|
1100
|
+
stateMutability: "payable",
|
|
1101
|
+
type: "function",
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
inputs: [],
|
|
1105
|
+
name: "votingDelay",
|
|
1106
|
+
outputs: [
|
|
1107
|
+
{
|
|
1108
|
+
internalType: "uint256",
|
|
1109
|
+
name: "",
|
|
1110
|
+
type: "uint256",
|
|
1111
|
+
},
|
|
1112
|
+
],
|
|
1113
|
+
stateMutability: "view",
|
|
1114
|
+
type: "function",
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
inputs: [],
|
|
1118
|
+
name: "votingPeriod",
|
|
1119
|
+
outputs: [
|
|
1120
|
+
{
|
|
1121
|
+
internalType: "uint256",
|
|
1122
|
+
name: "",
|
|
1123
|
+
type: "uint256",
|
|
1124
|
+
},
|
|
1125
|
+
],
|
|
1126
|
+
stateMutability: "view",
|
|
1127
|
+
type: "function",
|
|
1128
|
+
},
|
|
1129
|
+
];
|
|
1130
|
+
|
|
1131
|
+
const _bytecode =
|
|
1132
|
+
"0x60a06040523060601b60805234801561001757600080fd5b5060805160601c61446a61004b600039600081816116ce0152818161170e01528181611dcf0152611e0f015261446a6000f3fe6080604052600436106101f75760003560e01c8063013cf08b146101fc57806302a251a3146102e257806304e3b9b81461030657806306fdde031461033e5780630944db161461038d57806315373e3d146103ad57806317977c61146103cf5780631b3c90a8146103fc5780631dc5a19c1461041157806320606b7014610431578063218e63211461045357806324bc1a6414610468578063328dd9821461047d5780633408e470146104ad578063347a63c8146104c0578063358394d8146104e05780633659cfe6146105005780633932abb1146105205780633e4f49e6146105365780633e6326fc1461056357806340e58ee5146105905780634162169f146105b0578063452a9320146105d05780634634c61f146105f05780634f1ef286146106105780635aef7de6146106235780635c9e1382146106435780637629a4ac146106595780637bdbe4d0146106795780637d36b66e1461068f5780638a0dac4a146106af5780638b5d4b2c146106cf578063a06db7dc146106e5578063a840c93d146106fb578063acb0fa5914610711578063ccc0795914610727578063d2895d1614610747578063da35c6641461075d578063da95691a14610773578063deaaa7cc14610793578063e1758bd8146107b5578063e23a9a52146107ca578063e9946f6c14610881578063fe0d94c114610896575b600080fd5b34801561020857600080fd5b5061027e61021736600461350d565b60d9602052600090815260409020805460018201546002830154600784015460088501546009860154600a870154600b880154600d890154600e9099015497986001600160a01b03909716979596949593949293919260ff8083169361010090930416918b565b604080519b8c526001600160a01b03909a1660208c0152988a01979097526060890195909552608088019390935260a087019190915260c0860152151560e08501521515610100840152610120830152610140820152610160015b60405180910390f35b3480156102ee57600080fd5b506102f860cd5481565b6040519081526020016102d9565b34801561031257600080fd5b5060cc54610326906001600160401b031681565b6040516001600160401b0390911681526020016102d9565b34801561034a57600080fd5b5061038060405180604001604052806016815260200175476f6f6444414f20566f74696e67204d616368696e6560501b81525081565b6040516102d9919061357e565b34801561039957600080fd5b506102f86103a8366004613854565b6108a9565b3480156103b957600080fd5b506103cd6103c836600461393b565b610e1d565b005b3480156103db57600080fd5b506102f86103ea36600461396b565b60da6020526000908152604090205481565b34801561040857600080fd5b506103cd610ec9565b34801561041d57600080fd5b506103cd61042c366004613988565b61100e565b34801561043d57600080fd5b506102f86000805160206142ee83398151915281565b34801561045f57600080fd5b506103cd611048565b34801561047457600080fd5b506102f8611100565b34801561048957600080fd5b5061049d61049836600461350d565b6111a8565b6040516102d99493929190613a7c565b3480156104b957600080fd5b50466102f8565b3480156104cc57600080fd5b506103cd6104db36600461350d565b611439565b3480156104ec57600080fd5b506103cd6104fb366004613ad4565b61155b565b34801561050c57600080fd5b506103cd61051b36600461396b565b6116c3565b34801561052c57600080fd5b506102f860d15481565b34801561054257600080fd5b5061055661055136600461350d565b611789565b6040516102d99190613b3d565b34801561056f57600080fd5b50609954610583906001600160a01b031681565b6040516102d99190613b65565b34801561059c57600080fd5b506103cd6105ab36600461350d565b61190d565b3480156105bc57600080fd5b50609754610583906001600160a01b031681565b3480156105dc57600080fd5b5060d754610583906001600160a01b031681565b3480156105fc57600080fd5b506103cd61060b366004613b79565b611b2c565b6103cd61061e366004613bd1565b611dc4565b34801561062f57600080fd5b50609854610583906001600160a01b031681565b34801561064f57600080fd5b506102f860ce5481565b34801561066557600080fd5b506102f861067436600461350d565b611e7e565b34801561068557600080fd5b506102f860d05481565b34801561069b57600080fd5b506103cd6106aa36600461396b565b611f21565b3480156106bb57600080fd5b506103cd6106ca36600461396b565b611f68565b3480156106db57600080fd5b506102f860d25481565b3480156106f157600080fd5b506102f860d55481565b34801561070757600080fd5b506102f860cf5481565b34801561071d57600080fd5b506102f860d35481565b34801561073357600080fd5b5060d654610583906001600160a01b031681565b34801561075357600080fd5b506102f860d45481565b34801561076957600080fd5b506102f860d85481565b34801561077f57600080fd5b506102f861078e366004613c20565b6120dd565b34801561079f57600080fd5b506102f860008051602061436e83398151915281565b3480156107c157600080fd5b506105836120f7565b3480156107d657600080fd5b5061085b6107e5366004613cf1565b604080516060810182526000808252602082018190529181019190915250600091825260d9602090815260408084206001600160a01b03939093168452600c9092018152918190208151606081018352815460ff8082161515835261010090910416151593810193909352600101549082015290565b6040805182511515815260208084015115159082015291810151908201526060016102d9565b34801561088d57600080fd5b506103cd61218e565b6103cd6108a436600461350d565b612246565b60006108b9610674600143613d2c565b60d6546001600160a01b031663a265ba463360016108d78143613d2c565b6040518463ffffffff1660e01b81526004016108f593929190613d43565b60206040518083038186803b15801561090d57600080fd5b505afa158015610921573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109459190613d64565b116109bb5760405162461bcd60e51b815260206004820152604760248201526000805160206143d583398151915260448201527f70726f706f73657220766f7465732062656c6f772070726f706f73616c2074686064820152661c995cda1bdb1960ca1b608482015260a4015b60405180910390fd5b855187511480156109cd575084518751145b80156109da575083518751145b610a4f5760405162461bcd60e51b815260206004820152604c60248201526000805160206143d583398151915260448201527f70726f706f73616c2066756e6374696f6e20696e666f726d6174696f6e20617260648201526b0d2e8f240dad2e6dac2e8c6d60a31b608482015260a4016109b2565b8651610aa85760405162461bcd60e51b815260206004820152603460248201526000805160206143d58339815191526044820152736d7573742070726f7669646520616374696f6e7360601b60648201526084016109b2565b60d05487511115610b025760405162461bcd60e51b815260206004820152603060248201526000805160206143d583398151915260448201526f746f6f206d616e7920616374696f6e7360801b60648201526084016109b2565b33600090815260da60205260409020548015610c63576000610b2382611789565b90506001816007811115610b3957610b39613b27565b14158015610b5957506002816007811115610b5657610b56613b27565b14155b610bcd5760405162461bcd60e51b815260206004820152606060248201526000805160206143d583398151915260448201526000805160206143f583398151915260648201527f666f756e6420616e20616c7265616479206163746976652070726f706f73616c608482015260a4016109b2565b6000816007811115610be157610be1613b27565b1415610c615760405162461bcd60e51b815260206004820152606160248201526000805160206143d583398151915260448201526000805160206143f583398151915260648201527f666f756e6420616e20616c72656164792070656e64696e672070726f706f73616084820152601b60fa1b60a482015260c4016109b2565b505b600060d15443610c739190613d7d565b9050600060cd5482610c859190613d7d565b60d880549192506000610c9783613d95565b909155505060d854600081815260d96020908152604082209283556001830180546001600160a01b0319163317905560028301919091558b51610ce2916003840191908e01906132bf565b508951610cf890600483019060208d0190613324565b508851610d0e90600583019060208c019061335f565b508751610d2490600683019060208b01906133b8565b506007810183905560088101829055600060098201819055600a820155600b8101805461ffff19169055610d56611100565b600d820155600e8101869055805460018201546001600160a01b0316600090815260da602052604090208190557f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e090338d8d8d8d89898f604051610dc299989796959493929190613db0565b60405180910390a1854614610e0e57857f93f05b7f92e65fef7a2a62683de78a4230ca5ec425170818561a02b6afcff28b60d854604051610e0591815260200190565b60405180910390a25b549a9950505050505050505050565b600082815260d96020526040812060d6549091906001600160a01b031663a265ba4633600185600701546040518463ffffffff1660e01b8152600401610e6593929190613d43565b60206040518083038186803b158015610e7d57600080fd5b505afa158015610e91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb59190613d64565b9050610ec333838584612718565b50505050565b60995460405163bf40fac160e01b815260206004820152600a60248201526921a7a72a2927a62622a960b11b60448201526001600160a01b039091169063bf40fac19060640160206040518083038186803b158015610f2757600080fd5b505afa158015610f3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5f9190613e48565b609780546001600160a01b0319166001600160a01b0392909216918217905560408051632d77bef360e11b81529051635aef7de691600480820192602092909190829003018186803b158015610fb457600080fd5b505afa158015610fc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fec9190613e48565b609880546001600160a01b0319166001600160a01b0392909216919091179055565b61101661292a565b6040805161012081810190925261104591839060099083908390808284376000920191909152506129fe915050565b50565b60995460405163bf40fac160e01b815260206004820152600a6024820152692922a82aaa20aa24a7a760b11b60448201526001600160a01b039091169063bf40fac19060640160206040518083038186803b1580156110a657600080fd5b505afa1580156110ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110de9190613e48565b60d680546001600160a01b0319166001600160a01b0392909216919091179055565b6000620f424060ce5460d660009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561115757600080fd5b505afa15801561116b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061118f9190613d64565b6111999190613e65565b6111a39190613e84565b905090565b606080606080600060d960008781526020019081526020016000209050806003018160040182600501836006018380548060200260200160405190810160405280929190818152602001828054801561122a57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161120c575b505050505093508280548060200260200160405190810160405280929190818152602001828054801561127c57602002820191906000526020600020905b815481526020019060010190808311611268575b5050505050925081805480602002602001604051908101604052809291908181526020016000905b828210156113505783829060005260206000200180546112c390613ea6565b80601f01602080910402602001604051908101604052809291908181526020018280546112ef90613ea6565b801561133c5780601f106113115761010080835404028352916020019161133c565b820191906000526020600020905b81548152906001019060200180831161131f57829003601f168201915b5050505050815260200190600101906112a4565b50505050915080805480602002602001604051908101604052809291908181526020016000905b8282101561142357838290600052602060002001805461139690613ea6565b80601f01602080910402602001604051908101604052809291908181526020018280546113c290613ea6565b801561140f5780601f106113e45761010080835404028352916020019161140f565b820191906000526020600020905b8154815290600101906020018083116113f257829003601f168201915b505050505081526020019060010190611377565b5050505090509450945094509450509193509193565b600561144482611789565b600781111561145557611455613b27565b146114ae5760405162461bcd60e51b8152602060048201526024808201527f436f6d706f756e64566f74696e674d616368696e653a206e6f742053756363656044820152631959195960e21b60648201526084016109b2565b600081815260d9602052604090204681600e0154146114d957600b8101805461ff0019166101001790555b600181015460078201546008830154600e84015460028501546009860154600a8701546040517fa5369bfba6e8a577af7ee34ae49c68529b2c8914a2561282f16e3a706cb4333c9761154f978b976001600160a01b039092169660038c019660048d019660058e019660068f0196949594613ff2565b60405180910390a15050565b600054610100900460ff1680611574575060005460ff16155b6115d75760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016109b2565b600054610100900460ff161580156115f9576000805461ffff19166101011790555b60cc80546001600160401b0319166363b0cd0017905561161885612bb0565b60d680546001600160a01b0319166001600160a01b038416179055604080516101208101825285815261753060208201526109c491810191909152600a6060820152600160808201526202a30060a0820152612a3060c08201526201518060e08201526203f48061010082015261168e816129fe565b5060d780546001600160a01b0319166001600160a01b03851617905580156116bc576000805461ff00191690555b5050505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016141561170c5760405162461bcd60e51b81526004016109b2906140c7565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661173e612bd3565b6001600160a01b0316146117645760405162461bcd60e51b81526004016109b290614101565b61176d81612bef565b6040805160008082526020820190925261104591839190612bf7565b60008160d8541015801561179d5750600082115b6118035760405162461bcd60e51b815260206004820152603160248201527f436f6d706f756e64566f74696e674d616368696e653a3a73746174653a20696e6044820152701d985b1a59081c1c9bdc1bdcd85b081a59607a1b60648201526084016109b2565b600082815260d960205260409020600b81015460ff16156118275750600392915050565b8060070154431161183b5750600092915050565b600b810154610100900460ff16156118565750600792915050565b6000816002015411801561186d5750806002015442105b1561187b5750600292915050565b6002810154158015611891575080600801544311155b1561189f5750600192915050565b80600a015481600901541115806118bd575080600d01548160090154105b156118cb5750600492915050565b600081600201541180156118f0575060d55481600201546118ec9190613d7d565b4210155b156118fe5750600692915050565b50600592915050565b50919050565b600061191882611789565b9050600781600781111561192e5761192e613b27565b14156119a25760405162461bcd60e51b815260206004820152603e60248201527f436f6d706f756e64566f74696e674d616368696e653a3a63616e63656c3a206360448201527f616e6e6f742063616e63656c2065786563757465642070726f706f73616c000060648201526084016109b2565b600082815260d96020526040902060d7546001600160a01b0316336001600160a01b03161480611a7257506119da8160070154611e7e565b60d6546001838101546001600160a01b039283169263a265ba4692911690611a028143613d2c565b6040518463ffffffff1660e01b8152600401611a2093929190613d43565b60206040518083038186803b158015611a3857600080fd5b505afa158015611a4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a709190613d64565b105b611ade5760405162461bcd60e51b815260206004820152603760248201527f436f6d706f756e64566f74696e674d616368696e653a3a63616e63656c3a20706044820152761c9bdc1bdcd95c8818589bdd99481d1a1c995cda1bdb19604a1b60648201526084016109b2565b600b8101805460ff191660011790556040517f789cf55be980739dad1d0699b93b58e806b51c9d96619bfa8fe0a28abaa7b30c90611b1f9085815260200190565b60405180910390a1505050565b6040805180820182526016815275476f6f6444414f20566f74696e67204d616368696e6560501b60209182015281516000805160206142ee833981519152818301527ff0e8bb1b9036884fc34b9b811b9c0948f4a374ea4f5429d4533b8ab3c9fa373481840152466060820152306080808301919091528351808303909101815260a08201845280519083012060008051602061436e83398151915260c083015260e08201899052871515610100808401919091528451808403909101815261012083019094528351939092019290922061190160f01b6101408401526101428301829052610162830181905290916000906101820160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015611c8d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611d105760405162461bcd60e51b815260206004820152603760248201527f436f6d706f756e64566f74696e674d616368696e653a3a63617374566f746542604482015276795369673a20696e76616c6964207369676e617475726560481b60648201526084016109b2565b600089815260d9602052604080822060d65460078201549251635132dd2360e11b81529193926001600160a01b039091169163a265ba4691611d59918791600191600401613d43565b60206040518083038186803b158015611d7157600080fd5b505afa158015611d85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611da99190613d64565b9050611db783838c84612718565b5050505050505050505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415611e0d5760405162461bcd60e51b81526004016109b2906140c7565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316611e3f612bd3565b6001600160a01b031614611e655760405162461bcd60e51b81526004016109b290614101565b611e6e82612bef565b611e7a82826001612bf7565b5050565b60cf5460d654604051630981b24d60e41b815260048101849052600092620f42409290916001600160a01b039091169063981b24d09060240160206040518083038186803b158015611ecf57600080fd5b505afa158015611ee3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f079190613d64565b611f119190613e65565b611f1b9190613e84565b92915050565b60d7546001600160a01b0316734659176e962763e7c8a4ef965ecfd0fdf9f5205714156110455760d780546001600160a01b0383166001600160a01b031990911617905550565b6098546001600160a01b0316336001600160a01b03161480611f9d575060d7546001600160a01b0316336001600160a01b0316145b611fff5760405162461bcd60e51b815260206004820152602d60248201527f436f6d706f756e64566f74696e674d616368696e653a206e6f7420617661746160448201526c391037b91033bab0b93234b0b760991b60648201526084016109b2565b60d7546001600160a01b0316336001600160a01b0316148061202b575060cc546001600160401b031642115b6120985760405162461bcd60e51b815260206004820152603860248201527f436f6d706f756e64566f74696e674d616368696e653a20666f756e646174696f6044820152771b88195e1c1a5c985d1a5bdb881b9bdd081c995858da195960421b60648201526084016109b2565b60d780546001600160a01b0319166001600160a01b03831690811790915560405160008051602061438e833981519152916120d291613b65565b60405180910390a150565b60006120ed8686868686466108a9565b9695505050505050565b60995460405163bf40fac160e01b815260206004820152600a60248201526923a7a7a22227a62620a960b11b60448201526000916001600160a01b03169063bf40fac19060640160206040518083038186803b15801561215657600080fd5b505afa15801561216a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a39190613e48565b60d7546001600160a01b0316336001600160a01b0316146121fd5760405162461bcd60e51b815260206004820152602360248201527f436f6d706f756e64566f74696e674d616368696e653a206e6f7420677561726460448201526234b0b760e91b60648201526084016109b2565b60d780546001600160a01b031916905560cc80546001600160401b031916905560405160008051602061438e8339815191529061223c90600090613b65565b60405180910390a1565b600561225182611789565b600781111561226257612262613b27565b146122dc5760405162461bcd60e51b8152602060048201526050602482015260008051602061434e83398151915260448201527f70726f706f73616c2063616e206f6e6c7920626520657865637574656420696660648201526f081a5d081a5cc81cdd58d8d95959195960821b608482015260a4016109b2565b46600082815260d960205260409020600e0154146123505760405162461bcd60e51b815260206004820152603d602482015260008051602061434e83398151915260448201527f70726f706f73616c20666f722077726f6e6720626c6f636b636861696e00000060648201526084016109b2565b600081815260d960209081526040808320600b8101805461ff001916610100179055600301805482518185028101850190935280835291929091908301828280156123c457602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116123a6575b50505050509050600060d9600084815260200190815260200160002060040180548060200260200160405190810160405280929190818152602001828054801561242d57602002820191906000526020600020905b815481526020019060010190808311612419575b50505050509050600060d96000858152602001908152602001600020600501805480602002602001604051908101604052809291908181526020016000905b8282101561251857838290600052602060002001805461248b90613ea6565b80601f01602080910402602001604051908101604052809291908181526020018280546124b790613ea6565b80156125045780601f106124d957610100808354040283529160200191612504565b820191906000526020600020905b8154815290600101906020018083116124e757829003601f168201915b50505050508152602001906001019061246c565b505050509050600060d96000868152602001908152602001600020600601805480602002602001604051908101604052809291908181526020016000905b8282101561260257838290600052602060002001805461257590613ea6565b80601f01602080910402602001604051908101604052809291908181526020018280546125a190613ea6565b80156125ee5780601f106125c3576101008083540402835291602001916125ee565b820191906000526020600020905b8154815290600101906020018083116125d157829003601f168201915b505050505081526020019060010190612556565b50505050905060005b84518110156126dd5760008061268787848151811061262c5761262c61413b565b60200260200101518785815181106126465761264661413b565b60200260200101518786815181106126605761266061413b565b602002602001015187878151811061267a5761267a61413b565b6020026020010151612d37565b915091507f7ee6f70307f5df49af1cdc334b322bc2ff99ae186134a468bf77618a2ce2ff04888484846040516126c09493929190614151565b60405180910390a1505080806126d590613d95565b91505061260b565b506040518581527f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f9060200160405180910390a15050505050565b8254600161272582611789565b600781111561273657612736613b27565b148061275b5750600261274882611789565b600781111561275957612759613b27565b145b6127b05760405162461bcd60e51b815260206004820152603260248201526000805160206144158339815191526044820152710e881d9bdd1a5b99c81a5cc818db1bdcd95960721b60648201526084016109b2565b6001600160a01b0385166000908152600c850160205260409020805460ff16156128285760405162461bcd60e51b815260206004820152603560248201526000805160206144158339815191526044820152740e881d9bdd195c88185b1c9958591e481d9bdd1959605a1b60648201526084016109b2565b600a8501546009860154118415612858578386600901600082825461284d9190613d7d565b909155506128729050565b8386600a01600082825461286c9190613d7d565b90915550505b600a86015460098701805484548815156101000261ffff1990911617600190811786558501879055600d890154915493151592109190911415911015806128c1575085600d015486600a015410155b156128d0576128d08682612f66565b604080516001600160a01b038916815260208101859052861515818301526060810186905290517f877856338e13f63d0c36822ff0ef736b80934cd90574a3a5bc9262c39d217c469181900360800190a150505050505050565b60975460408051632d77bef360e11b8152905133926001600160a01b031691635aef7de6916004808301926020929190829003018186803b15801561296e57600080fd5b505afa158015612982573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129a69190613e48565b6001600160a01b0316146129fc5760405162461bcd60e51b815260206004820181905260248201527f6f6e6c79206176617461722063616e2063616c6c2074686973206d6574686f6460448201526064016109b2565b565b60ce541580612a1e575060ce54612a16906002613e65565b602082015111155b8015612a3057506020810151620f4240115b612a4c5760405162461bcd60e51b81526004016109b290614178565b60cf541580612a6c575060cf54612a64906002613e65565b604082015111155b8015612a7e57506040810151620f4240115b612a9a5760405162461bcd60e51b81526004016109b290614178565b8051612aa85760cd54612aab565b80515b60cd556020810151612abf5760ce54612ac5565b60208101515b60ce556040810151612ad95760cf54612adf565b60408101515b60cf556060810151612af35760d054612af9565b60608101515b60d0556080810151612b0d5760d154612b13565b60808101515b60d15560a0810151612b275760d254612b2d565b60a08101515b60d25560c0810151612b415760d354612b47565b60c08101515b60d35560e0810151612b5b5760d454612b61565b60e08101515b60d455610100810151612b765760d554612b7d565b6101008101515b60d5556040517f51472f0134408629271bc25caae248dd940cd836aa7bbc3974aa1ec2978059b5906120d29083906141ae565b609980546001600160a01b0319166001600160a01b038316179055611045610ec9565b60008051602061432e833981519152546001600160a01b031690565b61104561292a565b6000612c01612bd3565b9050612c0c846130c1565b600083511180612c195750815b15612c2a57612c288484613154565b505b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143805460ff166116bc57805460ff19166001178155604051612ca5908690612c76908590602401613b65565b60408051601f198184030181529190526020810180516001600160e01b0316631b2ce7f360e11b179052613154565b50805460ff19168155612cb6612bd3565b6001600160a01b0316826001600160a01b031614612d2e5760405162461bcd60e51b815260206004820152602f60248201527f45524331393637557067726164653a207570677261646520627265616b73206660448201526e75727468657220757067726164657360881b60648201526084016109b2565b6116bc8561323f565b6000606080845160001415612d4d575082612d79565b848051906020012084604051602001612d679291906141e0565b60405160208183030381529060405290505b6097546000906060906001600160a01b038a811691161415612dfb57886001600160a01b03168884604051612dae9190614211565b60006040518083038185875af1925050503d8060008114612deb576040519150601f19603f3d011682016040523d82523d6000602084013e612df0565b606091505b509092509050612ed2565b8715612e3d576098546040516001600160a01b039091169089156108fc02908a906000818181858888f19350505050158015612e3b573d6000803e3d6000fd5b505b6097546098546040516368db844d60e11b81526001600160a01b039283169263d1b7089a92612e76928e92899216908e9060040161422d565b600060405180830381600087803b158015612e9057600080fd5b505af1158015612ea4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612ecc9190810190614261565b90925090505b81612f585760405162461bcd60e51b815260206004820152604a60248201527f436f6d706f756e64566f74696e674d616368696e653a3a65786563757465547260448201527f616e73616374696f6e3a205472616e73616374696f6e20657865637574696f6e606482015269103932bb32b93a32b21760b11b608482015260a4016109b2565b909890975095505050505050565b60d6546007830154604051630981b24d60e41b815260048101919091526002916001600160a01b03169063981b24d09060240160206040518083038186803b158015612fb157600080fd5b505afa158015612fc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fe99190613d64565b612ff39190613e84565b826009015411156130155760d35461300b9042613d7d565b6002830155613083565b600282015461302b5760d25461300b9042613d7d565b8015611e7a5760004283600201546130439190613d2c565b905060d4548111613061578060d45461305c9190613d2c565b613064565b60005b8360020160008282546130779190613d7d565b90915550613083915050565b815460028301546040517f9a2e42fd6722813d69113e7d0079d3d940171428df7373df9c7f7617cfda28929261154f92908252602082015260400190565b803b6131255760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016109b2565b60008051602061432e83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060823b6131b35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016109b2565b600080846001600160a01b0316846040516131ce9190614211565b600060405180830381855af49150503d8060008114613209576040519150601f19603f3d011682016040523d82523d6000602084013e61320e565b606091505b509150915061323682826040518060600160405280602781526020016143ae6027913961327f565b95945050505050565b613248816130c1565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060831561328e5750816132b8565b82511561329e5782518084602001fd5b8160405162461bcd60e51b81526004016109b2919061357e565b9392505050565b828054828255906000526020600020908101928215613314579160200282015b8281111561331457825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906132df565b50613320929150613411565b5090565b828054828255906000526020600020908101928215613314579160200282015b82811115613314578251825591602001919060010190613344565b8280548282559060005260206000209081019282156133ac579160200282015b828111156133ac578251805161339c918491602090910190613426565b509160200191906001019061337f565b50613320929150613499565b828054828255906000526020600020908101928215613405579160200282015b8281111561340557825180516133f5918491602090910190613426565b50916020019190600101906133d8565b506133209291506134b6565b5b808211156133205760008155600101613412565b82805461343290613ea6565b90600052602060002090601f0160209004810192826134545760008555613314565b82601f1061346d57805160ff1916838001178555613314565b828001600101855582156133145791820182811115613314578251825591602001919060010190613344565b808211156133205760006134ad82826134d3565b50600101613499565b808211156133205760006134ca82826134d3565b506001016134b6565b5080546134df90613ea6565b6000825580601f106134ef575050565b601f0160209004906000526020600020908101906110459190613411565b60006020828403121561351f57600080fd5b5035919050565b60005b83811015613541578181015183820152602001613529565b83811115610ec35750506000910152565b6000815180845261356a816020860160208601613526565b601f01601f19169290920160200192915050565b6020815260006132b86020830184613552565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156135cf576135cf613591565b604052919050565b60006001600160401b038211156135f0576135f0613591565b5060051b60200190565b6001600160a01b038116811461104557600080fd5b600082601f83011261362057600080fd5b81356020613635613630836135d7565b6135a7565b82815260059290921b8401810191818101908684111561365457600080fd5b8286015b8481101561367857803561366b816135fa565b8352918301918301613658565b509695505050505050565b600082601f83011261369457600080fd5b813560206136a4613630836135d7565b82815260059290921b840181019181810190868411156136c357600080fd5b8286015b8481101561367857803583529183019183016136c7565b60006001600160401b038211156136f7576136f7613591565b50601f01601f191660200190565b600082601f83011261371657600080fd5b8135613724613630826136de565b81815284602083860101111561373957600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f83011261376757600080fd5b81356020613777613630836135d7565b82815260059290921b8401810191818101908684111561379657600080fd5b8286015b848110156136785780356001600160401b038111156137b95760008081fd5b6137c78986838b0101613705565b84525091830191830161379a565b600082601f8301126137e657600080fd5b813560206137f6613630836135d7565b82815260059290921b8401810191818101908684111561381557600080fd5b8286015b848110156136785780356001600160401b038111156138385760008081fd5b6138468986838b0101613705565b845250918301918301613819565b60008060008060008060c0878903121561386d57600080fd5b86356001600160401b038082111561388457600080fd5b6138908a838b0161360f565b975060208901359150808211156138a657600080fd5b6138b28a838b01613683565b965060408901359150808211156138c857600080fd5b6138d48a838b01613756565b955060608901359150808211156138ea57600080fd5b6138f68a838b016137d5565b9450608089013591508082111561390c57600080fd5b5061391989828a01613705565b92505060a087013590509295509295509295565b801515811461104557600080fd5b6000806040838503121561394e57600080fd5b8235915060208301356139608161392d565b809150509250929050565b60006020828403121561397d57600080fd5b81356132b8816135fa565b600061012080838503121561399c57600080fd5b8381840111156139ab57600080fd5b509092915050565b600081518084526020808501945080840160005b838110156139ec5781516001600160a01b0316875295820195908201906001016139c7565b509495945050505050565b600081518084526020808501945080840160005b838110156139ec57815187529582019590820190600101613a0b565b600081518084526020808501808196508360051b8101915082860160005b85811015613a6f578284038952613a5d848351613552565b98850198935090840190600101613a45565b5091979650505050505050565b608081526000613a8f60808301876139b3565b8281036020840152613aa181876139f7565b90508281036040840152613ab58186613a27565b90508281036060840152613ac98185613a27565b979650505050505050565b60008060008060808587031215613aea57600080fd5b8435613af5816135fa565b9350602085013592506040850135613b0c816135fa565b91506060850135613b1c816135fa565b939692955090935050565b634e487b7160e01b600052602160045260246000fd5b6020810160088310613b5f57634e487b7160e01b600052602160045260246000fd5b91905290565b6001600160a01b0391909116815260200190565b600080600080600060a08688031215613b9157600080fd5b853594506020860135613ba38161392d565b9350604086013560ff81168114613bb957600080fd5b94979396509394606081013594506080013592915050565b60008060408385031215613be457600080fd5b8235613bef816135fa565b915060208301356001600160401b03811115613c0a57600080fd5b613c1685828601613705565b9150509250929050565b600080600080600060a08688031215613c3857600080fd5b85356001600160401b0380821115613c4f57600080fd5b613c5b89838a0161360f565b96506020880135915080821115613c7157600080fd5b613c7d89838a01613683565b95506040880135915080821115613c9357600080fd5b613c9f89838a01613756565b94506060880135915080821115613cb557600080fd5b613cc189838a016137d5565b93506080880135915080821115613cd757600080fd5b50613ce488828901613705565b9150509295509295909350565b60008060408385031215613d0457600080fd5b823591506020830135613960816135fa565b634e487b7160e01b600052601160045260246000fd5b600082821015613d3e57613d3e613d16565b500390565b6001600160a01b039390931683529015156020830152604082015260600190565b600060208284031215613d7657600080fd5b5051919050565b60008219821115613d9057613d90613d16565b500190565b6000600019821415613da957613da9613d16565b5060010190565b8981526001600160a01b038916602082015261012060408201819052600090613ddb8382018b6139b3565b90508281036060840152613def818a6139f7565b90508281036080840152613e038189613a27565b905082810360a0840152613e178188613a27565b90508560c08401528460e0840152828103610100840152613e388185613552565b9c9b505050505050505050505050565b600060208284031215613e5a57600080fd5b81516132b8816135fa565b6000816000190483118215151615613e7f57613e7f613d16565b500290565b600082613ea157634e487b7160e01b600052601260045260246000fd5b500490565b600181811c90821680613eba57607f821691505b6020821081141561190757634e487b7160e01b600052602260045260246000fd5b6000815480845260208085019450836000528060002060005b838110156139ec57815487529582019560019182019101613ef4565b600081548084526020808501808196508360051b810191506000868152838120815b86811015613fe4578385038a5281548390600181811c9080831680613f5857607f831692505b8a8310811415613f7657634e487b7160e01b88526022600452602488fd5b828a52808015613f8d5760018114613fa157613fcc565b60ff1985168b8d015260408b019550613fcc565b8789528b8920895b85811015613fc45781548d82018f0152908401908d01613fa9565b8c018d019650505b50509c89019c92975050509190910190600101613f32565b509298975050505050505050565b600061018082018e835260018060a01b03808f1660208501526101806040850152818e548084526101a0860191508f6000526020600020935060005b8181101561404e578454841683526001948501946020909301920161402e565b50508481036060860152614062818f613edb565b925050508281036080840152614078818c613f10565b905082810360a084015261408c818b613f10565b60c0840199909952505060e0810195909552610100850193909352610120840191909152610140830152610160909101529695505050505050565b6020808252602c9082015260008051602061430e83398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c9082015260008051602061430e83398151915260408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b84815283602082015282151560408201526080606082015260006120ed6080830184613552565b6020808252601c908201527b70657263656e746167652073686f756c64206e6f7420646f75626c6560201b604082015260600190565b6101208101818360005b60098110156141d75781518352602092830192909101906001016141b8565b50505092915050565b6001600160e01b0319831681528151600090614203816004850160208701613526565b919091016004019392505050565b60008251614223818460208701613526565b9190910192915050565b600060018060a01b0380871683526080602084015261424f6080840187613552565b94166040830152506060015292915050565b6000806040838503121561427457600080fd5b825161427f8161392d565b60208401519092506001600160401b0381111561429b57600080fd5b8301601f810185136142ac57600080fd5b80516142ba613630826136de565b8181528660208385010111156142cf57600080fd5b6142e0826020830160208601613526565b809350505050925092905056fe8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86646756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc436f6d706f756e64566f74696e674d616368696e653a3a657865637574653a208e25870c07e0b0b3884c78da52790939a455c275406c44ae8b434b692fb916eee6c09ffe4572dc9ceaa5ddde4ae41befa655d6fdfe8052077af0970f700e942e416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564436f6d706f756e64566f74696e674d616368696e653a3a70726f706f73653a206f6e65206c6976652070726f706f73616c207065722070726f706f7365722c20436f6d706f756e64566f74696e674d616368696e653a3a5f63617374566f7465a264697066735822122002c1e22dc27e78c3a34df6402a709e3d3a72275a73647cbc203ef6da3431b88564736f6c63430008080033";
|
|
1133
|
+
|
|
1134
|
+
type CompoundVotingMachineConstructorParams =
|
|
1135
|
+
| [signer?: Signer]
|
|
1136
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
1137
|
+
|
|
1138
|
+
const isSuperArgs = (
|
|
1139
|
+
xs: CompoundVotingMachineConstructorParams
|
|
1140
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
1141
|
+
|
|
1142
|
+
export class CompoundVotingMachine__factory extends ContractFactory {
|
|
1143
|
+
constructor(...args: CompoundVotingMachineConstructorParams) {
|
|
1144
|
+
if (isSuperArgs(args)) {
|
|
1145
|
+
super(...args);
|
|
1146
|
+
} else {
|
|
1147
|
+
super(_abi, _bytecode, args[0]);
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
deploy(
|
|
1152
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1153
|
+
): Promise<CompoundVotingMachine> {
|
|
1154
|
+
return super.deploy(overrides || {}) as Promise<CompoundVotingMachine>;
|
|
1155
|
+
}
|
|
1156
|
+
getDeployTransaction(
|
|
1157
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1158
|
+
): TransactionRequest {
|
|
1159
|
+
return super.getDeployTransaction(overrides || {});
|
|
1160
|
+
}
|
|
1161
|
+
attach(address: string): CompoundVotingMachine {
|
|
1162
|
+
return super.attach(address) as CompoundVotingMachine;
|
|
1163
|
+
}
|
|
1164
|
+
connect(signer: Signer): CompoundVotingMachine__factory {
|
|
1165
|
+
return super.connect(signer) as CompoundVotingMachine__factory;
|
|
1166
|
+
}
|
|
1167
|
+
static readonly bytecode = _bytecode;
|
|
1168
|
+
static readonly abi = _abi;
|
|
1169
|
+
static createInterface(): CompoundVotingMachineInterface {
|
|
1170
|
+
return new utils.Interface(_abi) as CompoundVotingMachineInterface;
|
|
1171
|
+
}
|
|
1172
|
+
static connect(
|
|
1173
|
+
address: string,
|
|
1174
|
+
signerOrProvider: Signer | Provider
|
|
1175
|
+
): CompoundVotingMachine {
|
|
1176
|
+
return new Contract(
|
|
1177
|
+
address,
|
|
1178
|
+
_abi,
|
|
1179
|
+
signerOrProvider
|
|
1180
|
+
) as CompoundVotingMachine;
|
|
1181
|
+
}
|
|
1182
|
+
}
|