@wandevs/governance-contracts-sdk 1.0.0
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/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +2618 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +2618 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +43 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,2618 @@
|
|
|
1
|
+
import { Abi, Account, Address, Chain, ContractFunctionArgs, ContractFunctionName, EncodeFunctionDataParameters, Hex, PrepareTransactionRequestReturnType } from "viem";
|
|
2
|
+
|
|
3
|
+
//#region src/util.d.ts
|
|
4
|
+
declare const supportedProposalDescriptionDataTypeSchema: {
|
|
5
|
+
1: {
|
|
6
|
+
types: {
|
|
7
|
+
type: string;
|
|
8
|
+
}[];
|
|
9
|
+
names: string[];
|
|
10
|
+
};
|
|
11
|
+
2: {
|
|
12
|
+
types: {
|
|
13
|
+
type: string;
|
|
14
|
+
}[];
|
|
15
|
+
names: string[];
|
|
16
|
+
};
|
|
17
|
+
3: {
|
|
18
|
+
types: {
|
|
19
|
+
type: string;
|
|
20
|
+
}[];
|
|
21
|
+
names: string[];
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
declare function encodeProposalDescriptionData(...args: any[]): any;
|
|
25
|
+
declare function decodeProposalDescriptionData(hexData: any): {};
|
|
26
|
+
declare function getVersionFromData(hexData: any): number;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/types/index.d.ts
|
|
29
|
+
declare enum UnstakeStatus {
|
|
30
|
+
NotExists = 0,
|
|
31
|
+
// Request does not exist
|
|
32
|
+
Claimed = 1,
|
|
33
|
+
// Request has been claimed
|
|
34
|
+
InProgress = 2,
|
|
35
|
+
// Request is in progress
|
|
36
|
+
ReadyToClaim = 3
|
|
37
|
+
}
|
|
38
|
+
declare enum ProposalRole {
|
|
39
|
+
Proposer = 0,
|
|
40
|
+
Partner = 1,
|
|
41
|
+
Voter = 2
|
|
42
|
+
}
|
|
43
|
+
declare enum PledgeType {
|
|
44
|
+
None = 0,
|
|
45
|
+
Burn = 1,
|
|
46
|
+
Lock = 2
|
|
47
|
+
}
|
|
48
|
+
declare enum VoteType {
|
|
49
|
+
None = 0,
|
|
50
|
+
For = 1,
|
|
51
|
+
Against = 2
|
|
52
|
+
}
|
|
53
|
+
declare enum ProposalState {
|
|
54
|
+
None = 0,
|
|
55
|
+
UnderReview = 1,
|
|
56
|
+
Canceled = 2,
|
|
57
|
+
Fundraising = 3,
|
|
58
|
+
VotingInProgress = 4,
|
|
59
|
+
Succeeded = 5,
|
|
60
|
+
Rejected = 6
|
|
61
|
+
}
|
|
62
|
+
declare enum ProposalCategory {
|
|
63
|
+
Funding = 0,
|
|
64
|
+
Technical = 1
|
|
65
|
+
}
|
|
66
|
+
interface FundInfo {
|
|
67
|
+
wanAmount: bigint;
|
|
68
|
+
wanPower: bigint;
|
|
69
|
+
requestId: bigint;
|
|
70
|
+
claimStWanAmount: bigint;
|
|
71
|
+
claimWanAmount: bigint;
|
|
72
|
+
lockDuration: bigint;
|
|
73
|
+
pledgeType: PledgeType;
|
|
74
|
+
reason: Hex;
|
|
75
|
+
exited: boolean;
|
|
76
|
+
}
|
|
77
|
+
interface Tally {
|
|
78
|
+
yes: bigint;
|
|
79
|
+
no: bigint;
|
|
80
|
+
}
|
|
81
|
+
interface ProposalInfo {
|
|
82
|
+
proposalId: Hex;
|
|
83
|
+
requireXpAmount: bigint;
|
|
84
|
+
requestWanAmount: bigint;
|
|
85
|
+
requestMinVotingWanPower: bigint;
|
|
86
|
+
totalPledgingWanAmount: bigint;
|
|
87
|
+
totalPledgingWanPower: bigint;
|
|
88
|
+
totalVotingWanAmount: bigint;
|
|
89
|
+
totalVotingWanPower: bigint;
|
|
90
|
+
totalWanAmount: bigint;
|
|
91
|
+
totalLockingWanAmount: bigint;
|
|
92
|
+
totalBurnedWanAmount: bigint;
|
|
93
|
+
totalStWanAmount: bigint;
|
|
94
|
+
totalClaimeStWanAmount: bigint;
|
|
95
|
+
submitTimestamp: bigint;
|
|
96
|
+
fundraisingDeadline: bigint;
|
|
97
|
+
voteDeadline: bigint;
|
|
98
|
+
tally: Tally;
|
|
99
|
+
proposerFundInfo: FundInfo;
|
|
100
|
+
category: ProposalCategory;
|
|
101
|
+
state: ProposalState;
|
|
102
|
+
proposer: Address;
|
|
103
|
+
description: Hex;
|
|
104
|
+
reason: Hex;
|
|
105
|
+
}
|
|
106
|
+
interface PartnerInfo {
|
|
107
|
+
fundInfo: FundInfo;
|
|
108
|
+
}
|
|
109
|
+
interface VoterInfo {
|
|
110
|
+
fundInfo: FundInfo;
|
|
111
|
+
voteType: VoteType;
|
|
112
|
+
}
|
|
113
|
+
interface IndexRange {
|
|
114
|
+
start: bigint;
|
|
115
|
+
end: bigint;
|
|
116
|
+
}
|
|
117
|
+
interface PlegeMultiplierReturn {
|
|
118
|
+
pledgeType: PledgeType;
|
|
119
|
+
lockDuration: bigint;
|
|
120
|
+
multiplier: bigint;
|
|
121
|
+
}
|
|
122
|
+
interface CanRequestProposalWithdrawalParam {
|
|
123
|
+
state: ProposalState;
|
|
124
|
+
pledgeType: PledgeType.Lock;
|
|
125
|
+
lockDuration: bigint;
|
|
126
|
+
voteDeadline: bigint;
|
|
127
|
+
requestId: bigint;
|
|
128
|
+
exited: boolean;
|
|
129
|
+
}
|
|
130
|
+
interface CanRequestProposalWithdrawalRetrunItem {
|
|
131
|
+
needRequestWithdrawal: boolean;
|
|
132
|
+
canRequestWithdrawal: boolean;
|
|
133
|
+
}
|
|
134
|
+
type CanClaimProposalWithdrawalParam = CanRequestProposalWithdrawalParam;
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region src/abis/WanGovernor.d.ts
|
|
137
|
+
declare const ABI: readonly [{
|
|
138
|
+
readonly type: "constructor";
|
|
139
|
+
readonly inputs: readonly [];
|
|
140
|
+
readonly stateMutability: "nonpayable";
|
|
141
|
+
}, {
|
|
142
|
+
readonly type: "receive";
|
|
143
|
+
readonly stateMutability: "payable";
|
|
144
|
+
}, {
|
|
145
|
+
readonly type: "function";
|
|
146
|
+
readonly name: "BURN";
|
|
147
|
+
readonly inputs: readonly [];
|
|
148
|
+
readonly outputs: readonly [{
|
|
149
|
+
readonly name: "";
|
|
150
|
+
readonly type: "address";
|
|
151
|
+
readonly internalType: "address";
|
|
152
|
+
}];
|
|
153
|
+
readonly stateMutability: "view";
|
|
154
|
+
}, {
|
|
155
|
+
readonly type: "function";
|
|
156
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
157
|
+
readonly inputs: readonly [];
|
|
158
|
+
readonly outputs: readonly [{
|
|
159
|
+
readonly name: "";
|
|
160
|
+
readonly type: "bytes32";
|
|
161
|
+
readonly internalType: "bytes32";
|
|
162
|
+
}];
|
|
163
|
+
readonly stateMutability: "view";
|
|
164
|
+
}, {
|
|
165
|
+
readonly type: "function";
|
|
166
|
+
readonly name: "DENOMINATOR";
|
|
167
|
+
readonly inputs: readonly [];
|
|
168
|
+
readonly outputs: readonly [{
|
|
169
|
+
readonly name: "";
|
|
170
|
+
readonly type: "uint256";
|
|
171
|
+
readonly internalType: "uint256";
|
|
172
|
+
}];
|
|
173
|
+
readonly stateMutability: "view";
|
|
174
|
+
}, {
|
|
175
|
+
readonly type: "function";
|
|
176
|
+
readonly name: "WAN_GOVERNOR_OPERATOR_ROLE";
|
|
177
|
+
readonly inputs: readonly [];
|
|
178
|
+
readonly outputs: readonly [{
|
|
179
|
+
readonly name: "";
|
|
180
|
+
readonly type: "bytes32";
|
|
181
|
+
readonly internalType: "bytes32";
|
|
182
|
+
}];
|
|
183
|
+
readonly stateMutability: "view";
|
|
184
|
+
}, {
|
|
185
|
+
readonly type: "function";
|
|
186
|
+
readonly name: "cancelProposal";
|
|
187
|
+
readonly inputs: readonly [{
|
|
188
|
+
readonly name: "_proposalId";
|
|
189
|
+
readonly type: "bytes32";
|
|
190
|
+
readonly internalType: "bytes32";
|
|
191
|
+
}, {
|
|
192
|
+
readonly name: "_reason";
|
|
193
|
+
readonly type: "bytes";
|
|
194
|
+
readonly internalType: "bytes";
|
|
195
|
+
}];
|
|
196
|
+
readonly outputs: readonly [];
|
|
197
|
+
readonly stateMutability: "nonpayable";
|
|
198
|
+
}, {
|
|
199
|
+
readonly type: "function";
|
|
200
|
+
readonly name: "claimPartnerWithdrawal";
|
|
201
|
+
readonly inputs: readonly [{
|
|
202
|
+
readonly name: "_proposalId";
|
|
203
|
+
readonly type: "bytes32";
|
|
204
|
+
readonly internalType: "bytes32";
|
|
205
|
+
}, {
|
|
206
|
+
readonly name: "_requestId";
|
|
207
|
+
readonly type: "uint256";
|
|
208
|
+
readonly internalType: "uint256";
|
|
209
|
+
}];
|
|
210
|
+
readonly outputs: readonly [];
|
|
211
|
+
readonly stateMutability: "nonpayable";
|
|
212
|
+
}, {
|
|
213
|
+
readonly type: "function";
|
|
214
|
+
readonly name: "claimProposerWithdrawal";
|
|
215
|
+
readonly inputs: readonly [{
|
|
216
|
+
readonly name: "_proposalId";
|
|
217
|
+
readonly type: "bytes32";
|
|
218
|
+
readonly internalType: "bytes32";
|
|
219
|
+
}, {
|
|
220
|
+
readonly name: "_requestId";
|
|
221
|
+
readonly type: "uint256";
|
|
222
|
+
readonly internalType: "uint256";
|
|
223
|
+
}];
|
|
224
|
+
readonly outputs: readonly [];
|
|
225
|
+
readonly stateMutability: "nonpayable";
|
|
226
|
+
}, {
|
|
227
|
+
readonly type: "function";
|
|
228
|
+
readonly name: "claimVoterWithdrawal";
|
|
229
|
+
readonly inputs: readonly [{
|
|
230
|
+
readonly name: "_proposalId";
|
|
231
|
+
readonly type: "bytes32";
|
|
232
|
+
readonly internalType: "bytes32";
|
|
233
|
+
}, {
|
|
234
|
+
readonly name: "_requestId";
|
|
235
|
+
readonly type: "uint256";
|
|
236
|
+
readonly internalType: "uint256";
|
|
237
|
+
}];
|
|
238
|
+
readonly outputs: readonly [];
|
|
239
|
+
readonly stateMutability: "nonpayable";
|
|
240
|
+
}, {
|
|
241
|
+
readonly type: "function";
|
|
242
|
+
readonly name: "contributeProposal";
|
|
243
|
+
readonly inputs: readonly [{
|
|
244
|
+
readonly name: "_proposalId";
|
|
245
|
+
readonly type: "bytes32";
|
|
246
|
+
readonly internalType: "bytes32";
|
|
247
|
+
}, {
|
|
248
|
+
readonly name: "_pledgeType";
|
|
249
|
+
readonly type: "uint8";
|
|
250
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
251
|
+
}, {
|
|
252
|
+
readonly name: "_reason";
|
|
253
|
+
readonly type: "bytes";
|
|
254
|
+
readonly internalType: "bytes";
|
|
255
|
+
}];
|
|
256
|
+
readonly outputs: readonly [];
|
|
257
|
+
readonly stateMutability: "payable";
|
|
258
|
+
}, {
|
|
259
|
+
readonly type: "function";
|
|
260
|
+
readonly name: "createProposal";
|
|
261
|
+
readonly inputs: readonly [{
|
|
262
|
+
readonly name: "_reqWanAmount";
|
|
263
|
+
readonly type: "uint256";
|
|
264
|
+
readonly internalType: "uint256";
|
|
265
|
+
}, {
|
|
266
|
+
readonly name: "_category";
|
|
267
|
+
readonly type: "uint8";
|
|
268
|
+
readonly internalType: "enum IWanGovernor.ProposalCategory";
|
|
269
|
+
}, {
|
|
270
|
+
readonly name: "_pledgeType";
|
|
271
|
+
readonly type: "uint8";
|
|
272
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
273
|
+
}, {
|
|
274
|
+
readonly name: "_description";
|
|
275
|
+
readonly type: "bytes";
|
|
276
|
+
readonly internalType: "bytes";
|
|
277
|
+
}];
|
|
278
|
+
readonly outputs: readonly [];
|
|
279
|
+
readonly stateMutability: "payable";
|
|
280
|
+
}, {
|
|
281
|
+
readonly type: "function";
|
|
282
|
+
readonly name: "getAllProposalCount";
|
|
283
|
+
readonly inputs: readonly [];
|
|
284
|
+
readonly outputs: readonly [{
|
|
285
|
+
readonly name: "count";
|
|
286
|
+
readonly type: "uint256";
|
|
287
|
+
readonly internalType: "uint256";
|
|
288
|
+
}];
|
|
289
|
+
readonly stateMutability: "view";
|
|
290
|
+
}, {
|
|
291
|
+
readonly type: "function";
|
|
292
|
+
readonly name: "getFoundations";
|
|
293
|
+
readonly inputs: readonly [];
|
|
294
|
+
readonly outputs: readonly [{
|
|
295
|
+
readonly name: "";
|
|
296
|
+
readonly type: "address[]";
|
|
297
|
+
readonly internalType: "address[]";
|
|
298
|
+
}];
|
|
299
|
+
readonly stateMutability: "view";
|
|
300
|
+
}, {
|
|
301
|
+
readonly type: "function";
|
|
302
|
+
readonly name: "getProposalCountByRole";
|
|
303
|
+
readonly inputs: readonly [{
|
|
304
|
+
readonly name: "_role";
|
|
305
|
+
readonly type: "uint8";
|
|
306
|
+
readonly internalType: "enum IWanGovernor.ProposalRole";
|
|
307
|
+
}, {
|
|
308
|
+
readonly name: "_account";
|
|
309
|
+
readonly type: "address";
|
|
310
|
+
readonly internalType: "address";
|
|
311
|
+
}];
|
|
312
|
+
readonly outputs: readonly [{
|
|
313
|
+
readonly name: "count";
|
|
314
|
+
readonly type: "uint256";
|
|
315
|
+
readonly internalType: "uint256";
|
|
316
|
+
}];
|
|
317
|
+
readonly stateMutability: "view";
|
|
318
|
+
}, {
|
|
319
|
+
readonly type: "function";
|
|
320
|
+
readonly name: "getProposalCountByState";
|
|
321
|
+
readonly inputs: readonly [{
|
|
322
|
+
readonly name: "_state";
|
|
323
|
+
readonly type: "uint8";
|
|
324
|
+
readonly internalType: "enum IWanGovernor.ProposalState";
|
|
325
|
+
}];
|
|
326
|
+
readonly outputs: readonly [{
|
|
327
|
+
readonly name: "count";
|
|
328
|
+
readonly type: "uint256";
|
|
329
|
+
readonly internalType: "uint256";
|
|
330
|
+
}];
|
|
331
|
+
readonly stateMutability: "view";
|
|
332
|
+
}, {
|
|
333
|
+
readonly type: "function";
|
|
334
|
+
readonly name: "getProposalId";
|
|
335
|
+
readonly inputs: readonly [{
|
|
336
|
+
readonly name: "_reqWanAmount";
|
|
337
|
+
readonly type: "uint256";
|
|
338
|
+
readonly internalType: "uint256";
|
|
339
|
+
}, {
|
|
340
|
+
readonly name: "_proposer";
|
|
341
|
+
readonly type: "address";
|
|
342
|
+
readonly internalType: "address";
|
|
343
|
+
}, {
|
|
344
|
+
readonly name: "_category";
|
|
345
|
+
readonly type: "uint8";
|
|
346
|
+
readonly internalType: "enum IWanGovernor.ProposalCategory";
|
|
347
|
+
}, {
|
|
348
|
+
readonly name: "_pledgeType";
|
|
349
|
+
readonly type: "uint8";
|
|
350
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
351
|
+
}, {
|
|
352
|
+
readonly name: "_description";
|
|
353
|
+
readonly type: "bytes";
|
|
354
|
+
readonly internalType: "bytes";
|
|
355
|
+
}];
|
|
356
|
+
readonly outputs: readonly [{
|
|
357
|
+
readonly name: "proposalId";
|
|
358
|
+
readonly type: "bytes32";
|
|
359
|
+
readonly internalType: "bytes32";
|
|
360
|
+
}];
|
|
361
|
+
readonly stateMutability: "view";
|
|
362
|
+
}, {
|
|
363
|
+
readonly type: "function";
|
|
364
|
+
readonly name: "getProposalIdByRoleAt";
|
|
365
|
+
readonly inputs: readonly [{
|
|
366
|
+
readonly name: "_role";
|
|
367
|
+
readonly type: "uint8";
|
|
368
|
+
readonly internalType: "enum IWanGovernor.ProposalRole";
|
|
369
|
+
}, {
|
|
370
|
+
readonly name: "_account";
|
|
371
|
+
readonly type: "address";
|
|
372
|
+
readonly internalType: "address";
|
|
373
|
+
}, {
|
|
374
|
+
readonly name: "_index";
|
|
375
|
+
readonly type: "uint256";
|
|
376
|
+
readonly internalType: "uint256";
|
|
377
|
+
}];
|
|
378
|
+
readonly outputs: readonly [{
|
|
379
|
+
readonly name: "proposalId";
|
|
380
|
+
readonly type: "bytes32";
|
|
381
|
+
readonly internalType: "bytes32";
|
|
382
|
+
}];
|
|
383
|
+
readonly stateMutability: "view";
|
|
384
|
+
}, {
|
|
385
|
+
readonly type: "function";
|
|
386
|
+
readonly name: "getProposalIdByStateAt";
|
|
387
|
+
readonly inputs: readonly [{
|
|
388
|
+
readonly name: "_state";
|
|
389
|
+
readonly type: "uint8";
|
|
390
|
+
readonly internalType: "enum IWanGovernor.ProposalState";
|
|
391
|
+
}, {
|
|
392
|
+
readonly name: "_index";
|
|
393
|
+
readonly type: "uint256";
|
|
394
|
+
readonly internalType: "uint256";
|
|
395
|
+
}];
|
|
396
|
+
readonly outputs: readonly [{
|
|
397
|
+
readonly name: "";
|
|
398
|
+
readonly type: "bytes32";
|
|
399
|
+
readonly internalType: "bytes32";
|
|
400
|
+
}];
|
|
401
|
+
readonly stateMutability: "view";
|
|
402
|
+
}, {
|
|
403
|
+
readonly type: "function";
|
|
404
|
+
readonly name: "getProposalInfo";
|
|
405
|
+
readonly inputs: readonly [{
|
|
406
|
+
readonly name: "_proposalId";
|
|
407
|
+
readonly type: "bytes32";
|
|
408
|
+
readonly internalType: "bytes32";
|
|
409
|
+
}];
|
|
410
|
+
readonly outputs: readonly [{
|
|
411
|
+
readonly name: "info";
|
|
412
|
+
readonly type: "tuple";
|
|
413
|
+
readonly internalType: "struct IWanGovernor.ProposalInfo";
|
|
414
|
+
readonly components: readonly [{
|
|
415
|
+
readonly name: "requireXpAmount";
|
|
416
|
+
readonly type: "uint256";
|
|
417
|
+
readonly internalType: "uint256";
|
|
418
|
+
}, {
|
|
419
|
+
readonly name: "requestWanAmount";
|
|
420
|
+
readonly type: "uint256";
|
|
421
|
+
readonly internalType: "uint256";
|
|
422
|
+
}, {
|
|
423
|
+
readonly name: "requestMinVotingWanPower";
|
|
424
|
+
readonly type: "uint256";
|
|
425
|
+
readonly internalType: "uint256";
|
|
426
|
+
}, {
|
|
427
|
+
readonly name: "totalPledgingWanAmount";
|
|
428
|
+
readonly type: "uint256";
|
|
429
|
+
readonly internalType: "uint256";
|
|
430
|
+
}, {
|
|
431
|
+
readonly name: "totalPledgingWanPower";
|
|
432
|
+
readonly type: "uint256";
|
|
433
|
+
readonly internalType: "uint256";
|
|
434
|
+
}, {
|
|
435
|
+
readonly name: "totalVotingWanAmount";
|
|
436
|
+
readonly type: "uint256";
|
|
437
|
+
readonly internalType: "uint256";
|
|
438
|
+
}, {
|
|
439
|
+
readonly name: "totalVotingWanPower";
|
|
440
|
+
readonly type: "uint256";
|
|
441
|
+
readonly internalType: "uint256";
|
|
442
|
+
}, {
|
|
443
|
+
readonly name: "totalWanAmount";
|
|
444
|
+
readonly type: "uint256";
|
|
445
|
+
readonly internalType: "uint256";
|
|
446
|
+
}, {
|
|
447
|
+
readonly name: "totalLockingWanAmount";
|
|
448
|
+
readonly type: "uint256";
|
|
449
|
+
readonly internalType: "uint256";
|
|
450
|
+
}, {
|
|
451
|
+
readonly name: "totalBurnedWanAmount";
|
|
452
|
+
readonly type: "uint256";
|
|
453
|
+
readonly internalType: "uint256";
|
|
454
|
+
}, {
|
|
455
|
+
readonly name: "totalStWanAmount";
|
|
456
|
+
readonly type: "uint256";
|
|
457
|
+
readonly internalType: "uint256";
|
|
458
|
+
}, {
|
|
459
|
+
readonly name: "totalClaimeStWanAmount";
|
|
460
|
+
readonly type: "uint256";
|
|
461
|
+
readonly internalType: "uint256";
|
|
462
|
+
}, {
|
|
463
|
+
readonly name: "submitTimestamp";
|
|
464
|
+
readonly type: "uint256";
|
|
465
|
+
readonly internalType: "uint256";
|
|
466
|
+
}, {
|
|
467
|
+
readonly name: "fundraisingDeadline";
|
|
468
|
+
readonly type: "uint256";
|
|
469
|
+
readonly internalType: "uint256";
|
|
470
|
+
}, {
|
|
471
|
+
readonly name: "voteDeadline";
|
|
472
|
+
readonly type: "uint256";
|
|
473
|
+
readonly internalType: "uint256";
|
|
474
|
+
}, {
|
|
475
|
+
readonly name: "tally";
|
|
476
|
+
readonly type: "tuple";
|
|
477
|
+
readonly internalType: "struct IWanGovernor.Tally";
|
|
478
|
+
readonly components: readonly [{
|
|
479
|
+
readonly name: "yes";
|
|
480
|
+
readonly type: "uint256";
|
|
481
|
+
readonly internalType: "uint256";
|
|
482
|
+
}, {
|
|
483
|
+
readonly name: "no";
|
|
484
|
+
readonly type: "uint256";
|
|
485
|
+
readonly internalType: "uint256";
|
|
486
|
+
}];
|
|
487
|
+
}, {
|
|
488
|
+
readonly name: "proposerFundInfo";
|
|
489
|
+
readonly type: "tuple";
|
|
490
|
+
readonly internalType: "struct IWanGovernor.FundInfo";
|
|
491
|
+
readonly components: readonly [{
|
|
492
|
+
readonly name: "wanAmount";
|
|
493
|
+
readonly type: "uint256";
|
|
494
|
+
readonly internalType: "uint256";
|
|
495
|
+
}, {
|
|
496
|
+
readonly name: "wanPower";
|
|
497
|
+
readonly type: "uint256";
|
|
498
|
+
readonly internalType: "uint256";
|
|
499
|
+
}, {
|
|
500
|
+
readonly name: "requestId";
|
|
501
|
+
readonly type: "uint256";
|
|
502
|
+
readonly internalType: "uint256";
|
|
503
|
+
}, {
|
|
504
|
+
readonly name: "claimStWanAmount";
|
|
505
|
+
readonly type: "uint256";
|
|
506
|
+
readonly internalType: "uint256";
|
|
507
|
+
}, {
|
|
508
|
+
readonly name: "claimWanAmount";
|
|
509
|
+
readonly type: "uint256";
|
|
510
|
+
readonly internalType: "uint256";
|
|
511
|
+
}, {
|
|
512
|
+
readonly name: "lockDuration";
|
|
513
|
+
readonly type: "uint128";
|
|
514
|
+
readonly internalType: "uint128";
|
|
515
|
+
}, {
|
|
516
|
+
readonly name: "pledgeType";
|
|
517
|
+
readonly type: "uint8";
|
|
518
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
519
|
+
}, {
|
|
520
|
+
readonly name: "exited";
|
|
521
|
+
readonly type: "bool";
|
|
522
|
+
readonly internalType: "bool";
|
|
523
|
+
}, {
|
|
524
|
+
readonly name: "reason";
|
|
525
|
+
readonly type: "bytes";
|
|
526
|
+
readonly internalType: "bytes";
|
|
527
|
+
}];
|
|
528
|
+
}, {
|
|
529
|
+
readonly name: "category";
|
|
530
|
+
readonly type: "uint8";
|
|
531
|
+
readonly internalType: "enum IWanGovernor.ProposalCategory";
|
|
532
|
+
}, {
|
|
533
|
+
readonly name: "state";
|
|
534
|
+
readonly type: "uint8";
|
|
535
|
+
readonly internalType: "enum IWanGovernor.ProposalState";
|
|
536
|
+
}, {
|
|
537
|
+
readonly name: "proposer";
|
|
538
|
+
readonly type: "address";
|
|
539
|
+
readonly internalType: "address";
|
|
540
|
+
}, {
|
|
541
|
+
readonly name: "description";
|
|
542
|
+
readonly type: "bytes";
|
|
543
|
+
readonly internalType: "bytes";
|
|
544
|
+
}, {
|
|
545
|
+
readonly name: "reason";
|
|
546
|
+
readonly type: "bytes";
|
|
547
|
+
readonly internalType: "bytes";
|
|
548
|
+
}];
|
|
549
|
+
}];
|
|
550
|
+
readonly stateMutability: "view";
|
|
551
|
+
}, {
|
|
552
|
+
readonly type: "function";
|
|
553
|
+
readonly name: "getProposalInfoAt";
|
|
554
|
+
readonly inputs: readonly [{
|
|
555
|
+
readonly name: "_index";
|
|
556
|
+
readonly type: "uint256";
|
|
557
|
+
readonly internalType: "uint256";
|
|
558
|
+
}];
|
|
559
|
+
readonly outputs: readonly [{
|
|
560
|
+
readonly name: "proposalId";
|
|
561
|
+
readonly type: "bytes32";
|
|
562
|
+
readonly internalType: "bytes32";
|
|
563
|
+
}, {
|
|
564
|
+
readonly name: "info";
|
|
565
|
+
readonly type: "tuple";
|
|
566
|
+
readonly internalType: "struct IWanGovernor.ProposalInfo";
|
|
567
|
+
readonly components: readonly [{
|
|
568
|
+
readonly name: "requireXpAmount";
|
|
569
|
+
readonly type: "uint256";
|
|
570
|
+
readonly internalType: "uint256";
|
|
571
|
+
}, {
|
|
572
|
+
readonly name: "requestWanAmount";
|
|
573
|
+
readonly type: "uint256";
|
|
574
|
+
readonly internalType: "uint256";
|
|
575
|
+
}, {
|
|
576
|
+
readonly name: "requestMinVotingWanPower";
|
|
577
|
+
readonly type: "uint256";
|
|
578
|
+
readonly internalType: "uint256";
|
|
579
|
+
}, {
|
|
580
|
+
readonly name: "totalPledgingWanAmount";
|
|
581
|
+
readonly type: "uint256";
|
|
582
|
+
readonly internalType: "uint256";
|
|
583
|
+
}, {
|
|
584
|
+
readonly name: "totalPledgingWanPower";
|
|
585
|
+
readonly type: "uint256";
|
|
586
|
+
readonly internalType: "uint256";
|
|
587
|
+
}, {
|
|
588
|
+
readonly name: "totalVotingWanAmount";
|
|
589
|
+
readonly type: "uint256";
|
|
590
|
+
readonly internalType: "uint256";
|
|
591
|
+
}, {
|
|
592
|
+
readonly name: "totalVotingWanPower";
|
|
593
|
+
readonly type: "uint256";
|
|
594
|
+
readonly internalType: "uint256";
|
|
595
|
+
}, {
|
|
596
|
+
readonly name: "totalWanAmount";
|
|
597
|
+
readonly type: "uint256";
|
|
598
|
+
readonly internalType: "uint256";
|
|
599
|
+
}, {
|
|
600
|
+
readonly name: "totalLockingWanAmount";
|
|
601
|
+
readonly type: "uint256";
|
|
602
|
+
readonly internalType: "uint256";
|
|
603
|
+
}, {
|
|
604
|
+
readonly name: "totalBurnedWanAmount";
|
|
605
|
+
readonly type: "uint256";
|
|
606
|
+
readonly internalType: "uint256";
|
|
607
|
+
}, {
|
|
608
|
+
readonly name: "totalStWanAmount";
|
|
609
|
+
readonly type: "uint256";
|
|
610
|
+
readonly internalType: "uint256";
|
|
611
|
+
}, {
|
|
612
|
+
readonly name: "totalClaimeStWanAmount";
|
|
613
|
+
readonly type: "uint256";
|
|
614
|
+
readonly internalType: "uint256";
|
|
615
|
+
}, {
|
|
616
|
+
readonly name: "submitTimestamp";
|
|
617
|
+
readonly type: "uint256";
|
|
618
|
+
readonly internalType: "uint256";
|
|
619
|
+
}, {
|
|
620
|
+
readonly name: "fundraisingDeadline";
|
|
621
|
+
readonly type: "uint256";
|
|
622
|
+
readonly internalType: "uint256";
|
|
623
|
+
}, {
|
|
624
|
+
readonly name: "voteDeadline";
|
|
625
|
+
readonly type: "uint256";
|
|
626
|
+
readonly internalType: "uint256";
|
|
627
|
+
}, {
|
|
628
|
+
readonly name: "tally";
|
|
629
|
+
readonly type: "tuple";
|
|
630
|
+
readonly internalType: "struct IWanGovernor.Tally";
|
|
631
|
+
readonly components: readonly [{
|
|
632
|
+
readonly name: "yes";
|
|
633
|
+
readonly type: "uint256";
|
|
634
|
+
readonly internalType: "uint256";
|
|
635
|
+
}, {
|
|
636
|
+
readonly name: "no";
|
|
637
|
+
readonly type: "uint256";
|
|
638
|
+
readonly internalType: "uint256";
|
|
639
|
+
}];
|
|
640
|
+
}, {
|
|
641
|
+
readonly name: "proposerFundInfo";
|
|
642
|
+
readonly type: "tuple";
|
|
643
|
+
readonly internalType: "struct IWanGovernor.FundInfo";
|
|
644
|
+
readonly components: readonly [{
|
|
645
|
+
readonly name: "wanAmount";
|
|
646
|
+
readonly type: "uint256";
|
|
647
|
+
readonly internalType: "uint256";
|
|
648
|
+
}, {
|
|
649
|
+
readonly name: "wanPower";
|
|
650
|
+
readonly type: "uint256";
|
|
651
|
+
readonly internalType: "uint256";
|
|
652
|
+
}, {
|
|
653
|
+
readonly name: "requestId";
|
|
654
|
+
readonly type: "uint256";
|
|
655
|
+
readonly internalType: "uint256";
|
|
656
|
+
}, {
|
|
657
|
+
readonly name: "claimStWanAmount";
|
|
658
|
+
readonly type: "uint256";
|
|
659
|
+
readonly internalType: "uint256";
|
|
660
|
+
}, {
|
|
661
|
+
readonly name: "claimWanAmount";
|
|
662
|
+
readonly type: "uint256";
|
|
663
|
+
readonly internalType: "uint256";
|
|
664
|
+
}, {
|
|
665
|
+
readonly name: "lockDuration";
|
|
666
|
+
readonly type: "uint128";
|
|
667
|
+
readonly internalType: "uint128";
|
|
668
|
+
}, {
|
|
669
|
+
readonly name: "pledgeType";
|
|
670
|
+
readonly type: "uint8";
|
|
671
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
672
|
+
}, {
|
|
673
|
+
readonly name: "exited";
|
|
674
|
+
readonly type: "bool";
|
|
675
|
+
readonly internalType: "bool";
|
|
676
|
+
}, {
|
|
677
|
+
readonly name: "reason";
|
|
678
|
+
readonly type: "bytes";
|
|
679
|
+
readonly internalType: "bytes";
|
|
680
|
+
}];
|
|
681
|
+
}, {
|
|
682
|
+
readonly name: "category";
|
|
683
|
+
readonly type: "uint8";
|
|
684
|
+
readonly internalType: "enum IWanGovernor.ProposalCategory";
|
|
685
|
+
}, {
|
|
686
|
+
readonly name: "state";
|
|
687
|
+
readonly type: "uint8";
|
|
688
|
+
readonly internalType: "enum IWanGovernor.ProposalState";
|
|
689
|
+
}, {
|
|
690
|
+
readonly name: "proposer";
|
|
691
|
+
readonly type: "address";
|
|
692
|
+
readonly internalType: "address";
|
|
693
|
+
}, {
|
|
694
|
+
readonly name: "description";
|
|
695
|
+
readonly type: "bytes";
|
|
696
|
+
readonly internalType: "bytes";
|
|
697
|
+
}, {
|
|
698
|
+
readonly name: "reason";
|
|
699
|
+
readonly type: "bytes";
|
|
700
|
+
readonly internalType: "bytes";
|
|
701
|
+
}];
|
|
702
|
+
}];
|
|
703
|
+
readonly stateMutability: "view";
|
|
704
|
+
}, {
|
|
705
|
+
readonly type: "function";
|
|
706
|
+
readonly name: "getProposalMultiplierCounts";
|
|
707
|
+
readonly inputs: readonly [];
|
|
708
|
+
readonly outputs: readonly [{
|
|
709
|
+
readonly name: "proposalWanMultiplierCount";
|
|
710
|
+
readonly type: "uint256";
|
|
711
|
+
readonly internalType: "uint256";
|
|
712
|
+
}, {
|
|
713
|
+
readonly name: "votingWanMultiplierCount";
|
|
714
|
+
readonly type: "uint256";
|
|
715
|
+
readonly internalType: "uint256";
|
|
716
|
+
}];
|
|
717
|
+
readonly stateMutability: "view";
|
|
718
|
+
}, {
|
|
719
|
+
readonly type: "function";
|
|
720
|
+
readonly name: "getProposalPartnerAndVoterCounts";
|
|
721
|
+
readonly inputs: readonly [{
|
|
722
|
+
readonly name: "_proposalId";
|
|
723
|
+
readonly type: "bytes32";
|
|
724
|
+
readonly internalType: "bytes32";
|
|
725
|
+
}];
|
|
726
|
+
readonly outputs: readonly [{
|
|
727
|
+
readonly name: "partnerCount";
|
|
728
|
+
readonly type: "uint256";
|
|
729
|
+
readonly internalType: "uint256";
|
|
730
|
+
}, {
|
|
731
|
+
readonly name: "voterCount";
|
|
732
|
+
readonly type: "uint256";
|
|
733
|
+
readonly internalType: "uint256";
|
|
734
|
+
}];
|
|
735
|
+
readonly stateMutability: "view";
|
|
736
|
+
}, {
|
|
737
|
+
readonly type: "function";
|
|
738
|
+
readonly name: "getProposalPartnerAt";
|
|
739
|
+
readonly inputs: readonly [{
|
|
740
|
+
readonly name: "_proposalId";
|
|
741
|
+
readonly type: "bytes32";
|
|
742
|
+
readonly internalType: "bytes32";
|
|
743
|
+
}, {
|
|
744
|
+
readonly name: "_index";
|
|
745
|
+
readonly type: "uint256";
|
|
746
|
+
readonly internalType: "uint256";
|
|
747
|
+
}];
|
|
748
|
+
readonly outputs: readonly [{
|
|
749
|
+
readonly name: "";
|
|
750
|
+
readonly type: "address";
|
|
751
|
+
readonly internalType: "address";
|
|
752
|
+
}];
|
|
753
|
+
readonly stateMutability: "view";
|
|
754
|
+
}, {
|
|
755
|
+
readonly type: "function";
|
|
756
|
+
readonly name: "getProposalPartnerInfo";
|
|
757
|
+
readonly inputs: readonly [{
|
|
758
|
+
readonly name: "_proposalId";
|
|
759
|
+
readonly type: "bytes32";
|
|
760
|
+
readonly internalType: "bytes32";
|
|
761
|
+
}, {
|
|
762
|
+
readonly name: "_partner";
|
|
763
|
+
readonly type: "address";
|
|
764
|
+
readonly internalType: "address";
|
|
765
|
+
}];
|
|
766
|
+
readonly outputs: readonly [{
|
|
767
|
+
readonly name: "partnerInfo";
|
|
768
|
+
readonly type: "tuple";
|
|
769
|
+
readonly internalType: "struct IWanGovernor.PartnerInfo";
|
|
770
|
+
readonly components: readonly [{
|
|
771
|
+
readonly name: "fundInfo";
|
|
772
|
+
readonly type: "tuple";
|
|
773
|
+
readonly internalType: "struct IWanGovernor.FundInfo";
|
|
774
|
+
readonly components: readonly [{
|
|
775
|
+
readonly name: "wanAmount";
|
|
776
|
+
readonly type: "uint256";
|
|
777
|
+
readonly internalType: "uint256";
|
|
778
|
+
}, {
|
|
779
|
+
readonly name: "wanPower";
|
|
780
|
+
readonly type: "uint256";
|
|
781
|
+
readonly internalType: "uint256";
|
|
782
|
+
}, {
|
|
783
|
+
readonly name: "requestId";
|
|
784
|
+
readonly type: "uint256";
|
|
785
|
+
readonly internalType: "uint256";
|
|
786
|
+
}, {
|
|
787
|
+
readonly name: "claimStWanAmount";
|
|
788
|
+
readonly type: "uint256";
|
|
789
|
+
readonly internalType: "uint256";
|
|
790
|
+
}, {
|
|
791
|
+
readonly name: "claimWanAmount";
|
|
792
|
+
readonly type: "uint256";
|
|
793
|
+
readonly internalType: "uint256";
|
|
794
|
+
}, {
|
|
795
|
+
readonly name: "lockDuration";
|
|
796
|
+
readonly type: "uint128";
|
|
797
|
+
readonly internalType: "uint128";
|
|
798
|
+
}, {
|
|
799
|
+
readonly name: "pledgeType";
|
|
800
|
+
readonly type: "uint8";
|
|
801
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
802
|
+
}, {
|
|
803
|
+
readonly name: "exited";
|
|
804
|
+
readonly type: "bool";
|
|
805
|
+
readonly internalType: "bool";
|
|
806
|
+
}, {
|
|
807
|
+
readonly name: "reason";
|
|
808
|
+
readonly type: "bytes";
|
|
809
|
+
readonly internalType: "bytes";
|
|
810
|
+
}];
|
|
811
|
+
}];
|
|
812
|
+
}];
|
|
813
|
+
readonly stateMutability: "view";
|
|
814
|
+
}, {
|
|
815
|
+
readonly type: "function";
|
|
816
|
+
readonly name: "getProposalPartnerInfoAt";
|
|
817
|
+
readonly inputs: readonly [{
|
|
818
|
+
readonly name: "_proposalId";
|
|
819
|
+
readonly type: "bytes32";
|
|
820
|
+
readonly internalType: "bytes32";
|
|
821
|
+
}, {
|
|
822
|
+
readonly name: "_index";
|
|
823
|
+
readonly type: "uint256";
|
|
824
|
+
readonly internalType: "uint256";
|
|
825
|
+
}];
|
|
826
|
+
readonly outputs: readonly [{
|
|
827
|
+
readonly name: "partner";
|
|
828
|
+
readonly type: "address";
|
|
829
|
+
readonly internalType: "address";
|
|
830
|
+
}, {
|
|
831
|
+
readonly name: "partnerInfo";
|
|
832
|
+
readonly type: "tuple";
|
|
833
|
+
readonly internalType: "struct IWanGovernor.PartnerInfo";
|
|
834
|
+
readonly components: readonly [{
|
|
835
|
+
readonly name: "fundInfo";
|
|
836
|
+
readonly type: "tuple";
|
|
837
|
+
readonly internalType: "struct IWanGovernor.FundInfo";
|
|
838
|
+
readonly components: readonly [{
|
|
839
|
+
readonly name: "wanAmount";
|
|
840
|
+
readonly type: "uint256";
|
|
841
|
+
readonly internalType: "uint256";
|
|
842
|
+
}, {
|
|
843
|
+
readonly name: "wanPower";
|
|
844
|
+
readonly type: "uint256";
|
|
845
|
+
readonly internalType: "uint256";
|
|
846
|
+
}, {
|
|
847
|
+
readonly name: "requestId";
|
|
848
|
+
readonly type: "uint256";
|
|
849
|
+
readonly internalType: "uint256";
|
|
850
|
+
}, {
|
|
851
|
+
readonly name: "claimStWanAmount";
|
|
852
|
+
readonly type: "uint256";
|
|
853
|
+
readonly internalType: "uint256";
|
|
854
|
+
}, {
|
|
855
|
+
readonly name: "claimWanAmount";
|
|
856
|
+
readonly type: "uint256";
|
|
857
|
+
readonly internalType: "uint256";
|
|
858
|
+
}, {
|
|
859
|
+
readonly name: "lockDuration";
|
|
860
|
+
readonly type: "uint128";
|
|
861
|
+
readonly internalType: "uint128";
|
|
862
|
+
}, {
|
|
863
|
+
readonly name: "pledgeType";
|
|
864
|
+
readonly type: "uint8";
|
|
865
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
866
|
+
}, {
|
|
867
|
+
readonly name: "exited";
|
|
868
|
+
readonly type: "bool";
|
|
869
|
+
readonly internalType: "bool";
|
|
870
|
+
}, {
|
|
871
|
+
readonly name: "reason";
|
|
872
|
+
readonly type: "bytes";
|
|
873
|
+
readonly internalType: "bytes";
|
|
874
|
+
}];
|
|
875
|
+
}];
|
|
876
|
+
}];
|
|
877
|
+
readonly stateMutability: "view";
|
|
878
|
+
}, {
|
|
879
|
+
readonly type: "function";
|
|
880
|
+
readonly name: "getProposalState";
|
|
881
|
+
readonly inputs: readonly [{
|
|
882
|
+
readonly name: "_proposalId";
|
|
883
|
+
readonly type: "bytes32";
|
|
884
|
+
readonly internalType: "bytes32";
|
|
885
|
+
}];
|
|
886
|
+
readonly outputs: readonly [{
|
|
887
|
+
readonly name: "state";
|
|
888
|
+
readonly type: "uint8";
|
|
889
|
+
readonly internalType: "enum IWanGovernor.ProposalState";
|
|
890
|
+
}];
|
|
891
|
+
readonly stateMutability: "view";
|
|
892
|
+
}, {
|
|
893
|
+
readonly type: "function";
|
|
894
|
+
readonly name: "getProposalVoterAt";
|
|
895
|
+
readonly inputs: readonly [{
|
|
896
|
+
readonly name: "_proposalId";
|
|
897
|
+
readonly type: "bytes32";
|
|
898
|
+
readonly internalType: "bytes32";
|
|
899
|
+
}, {
|
|
900
|
+
readonly name: "_index";
|
|
901
|
+
readonly type: "uint256";
|
|
902
|
+
readonly internalType: "uint256";
|
|
903
|
+
}];
|
|
904
|
+
readonly outputs: readonly [{
|
|
905
|
+
readonly name: "";
|
|
906
|
+
readonly type: "address";
|
|
907
|
+
readonly internalType: "address";
|
|
908
|
+
}];
|
|
909
|
+
readonly stateMutability: "view";
|
|
910
|
+
}, {
|
|
911
|
+
readonly type: "function";
|
|
912
|
+
readonly name: "getProposalVoterInfo";
|
|
913
|
+
readonly inputs: readonly [{
|
|
914
|
+
readonly name: "_proposalId";
|
|
915
|
+
readonly type: "bytes32";
|
|
916
|
+
readonly internalType: "bytes32";
|
|
917
|
+
}, {
|
|
918
|
+
readonly name: "_voter";
|
|
919
|
+
readonly type: "address";
|
|
920
|
+
readonly internalType: "address";
|
|
921
|
+
}];
|
|
922
|
+
readonly outputs: readonly [{
|
|
923
|
+
readonly name: "voterInfo";
|
|
924
|
+
readonly type: "tuple";
|
|
925
|
+
readonly internalType: "struct IWanGovernor.VoterInfo";
|
|
926
|
+
readonly components: readonly [{
|
|
927
|
+
readonly name: "fundInfo";
|
|
928
|
+
readonly type: "tuple";
|
|
929
|
+
readonly internalType: "struct IWanGovernor.FundInfo";
|
|
930
|
+
readonly components: readonly [{
|
|
931
|
+
readonly name: "wanAmount";
|
|
932
|
+
readonly type: "uint256";
|
|
933
|
+
readonly internalType: "uint256";
|
|
934
|
+
}, {
|
|
935
|
+
readonly name: "wanPower";
|
|
936
|
+
readonly type: "uint256";
|
|
937
|
+
readonly internalType: "uint256";
|
|
938
|
+
}, {
|
|
939
|
+
readonly name: "requestId";
|
|
940
|
+
readonly type: "uint256";
|
|
941
|
+
readonly internalType: "uint256";
|
|
942
|
+
}, {
|
|
943
|
+
readonly name: "claimStWanAmount";
|
|
944
|
+
readonly type: "uint256";
|
|
945
|
+
readonly internalType: "uint256";
|
|
946
|
+
}, {
|
|
947
|
+
readonly name: "claimWanAmount";
|
|
948
|
+
readonly type: "uint256";
|
|
949
|
+
readonly internalType: "uint256";
|
|
950
|
+
}, {
|
|
951
|
+
readonly name: "lockDuration";
|
|
952
|
+
readonly type: "uint128";
|
|
953
|
+
readonly internalType: "uint128";
|
|
954
|
+
}, {
|
|
955
|
+
readonly name: "pledgeType";
|
|
956
|
+
readonly type: "uint8";
|
|
957
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
958
|
+
}, {
|
|
959
|
+
readonly name: "exited";
|
|
960
|
+
readonly type: "bool";
|
|
961
|
+
readonly internalType: "bool";
|
|
962
|
+
}, {
|
|
963
|
+
readonly name: "reason";
|
|
964
|
+
readonly type: "bytes";
|
|
965
|
+
readonly internalType: "bytes";
|
|
966
|
+
}];
|
|
967
|
+
}, {
|
|
968
|
+
readonly name: "voteType";
|
|
969
|
+
readonly type: "uint8";
|
|
970
|
+
readonly internalType: "enum IWanGovernor.VoteType";
|
|
971
|
+
}];
|
|
972
|
+
}];
|
|
973
|
+
readonly stateMutability: "view";
|
|
974
|
+
}, {
|
|
975
|
+
readonly type: "function";
|
|
976
|
+
readonly name: "getProposalVoterInfoAt";
|
|
977
|
+
readonly inputs: readonly [{
|
|
978
|
+
readonly name: "_proposalId";
|
|
979
|
+
readonly type: "bytes32";
|
|
980
|
+
readonly internalType: "bytes32";
|
|
981
|
+
}, {
|
|
982
|
+
readonly name: "_index";
|
|
983
|
+
readonly type: "uint256";
|
|
984
|
+
readonly internalType: "uint256";
|
|
985
|
+
}];
|
|
986
|
+
readonly outputs: readonly [{
|
|
987
|
+
readonly name: "voter";
|
|
988
|
+
readonly type: "address";
|
|
989
|
+
readonly internalType: "address";
|
|
990
|
+
}, {
|
|
991
|
+
readonly name: "voterInfo";
|
|
992
|
+
readonly type: "tuple";
|
|
993
|
+
readonly internalType: "struct IWanGovernor.VoterInfo";
|
|
994
|
+
readonly components: readonly [{
|
|
995
|
+
readonly name: "fundInfo";
|
|
996
|
+
readonly type: "tuple";
|
|
997
|
+
readonly internalType: "struct IWanGovernor.FundInfo";
|
|
998
|
+
readonly components: readonly [{
|
|
999
|
+
readonly name: "wanAmount";
|
|
1000
|
+
readonly type: "uint256";
|
|
1001
|
+
readonly internalType: "uint256";
|
|
1002
|
+
}, {
|
|
1003
|
+
readonly name: "wanPower";
|
|
1004
|
+
readonly type: "uint256";
|
|
1005
|
+
readonly internalType: "uint256";
|
|
1006
|
+
}, {
|
|
1007
|
+
readonly name: "requestId";
|
|
1008
|
+
readonly type: "uint256";
|
|
1009
|
+
readonly internalType: "uint256";
|
|
1010
|
+
}, {
|
|
1011
|
+
readonly name: "claimStWanAmount";
|
|
1012
|
+
readonly type: "uint256";
|
|
1013
|
+
readonly internalType: "uint256";
|
|
1014
|
+
}, {
|
|
1015
|
+
readonly name: "claimWanAmount";
|
|
1016
|
+
readonly type: "uint256";
|
|
1017
|
+
readonly internalType: "uint256";
|
|
1018
|
+
}, {
|
|
1019
|
+
readonly name: "lockDuration";
|
|
1020
|
+
readonly type: "uint128";
|
|
1021
|
+
readonly internalType: "uint128";
|
|
1022
|
+
}, {
|
|
1023
|
+
readonly name: "pledgeType";
|
|
1024
|
+
readonly type: "uint8";
|
|
1025
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
1026
|
+
}, {
|
|
1027
|
+
readonly name: "exited";
|
|
1028
|
+
readonly type: "bool";
|
|
1029
|
+
readonly internalType: "bool";
|
|
1030
|
+
}, {
|
|
1031
|
+
readonly name: "reason";
|
|
1032
|
+
readonly type: "bytes";
|
|
1033
|
+
readonly internalType: "bytes";
|
|
1034
|
+
}];
|
|
1035
|
+
}, {
|
|
1036
|
+
readonly name: "voteType";
|
|
1037
|
+
readonly type: "uint8";
|
|
1038
|
+
readonly internalType: "enum IWanGovernor.VoteType";
|
|
1039
|
+
}];
|
|
1040
|
+
}];
|
|
1041
|
+
readonly stateMutability: "view";
|
|
1042
|
+
}, {
|
|
1043
|
+
readonly type: "function";
|
|
1044
|
+
readonly name: "getProposalWanMultiplier";
|
|
1045
|
+
readonly inputs: readonly [{
|
|
1046
|
+
readonly name: "_pledgeType";
|
|
1047
|
+
readonly type: "uint8";
|
|
1048
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
1049
|
+
}, {
|
|
1050
|
+
readonly name: "_lockDuration";
|
|
1051
|
+
readonly type: "uint128";
|
|
1052
|
+
readonly internalType: "uint128";
|
|
1053
|
+
}];
|
|
1054
|
+
readonly outputs: readonly [{
|
|
1055
|
+
readonly name: "multiplier";
|
|
1056
|
+
readonly type: "uint256";
|
|
1057
|
+
readonly internalType: "uint256";
|
|
1058
|
+
}];
|
|
1059
|
+
readonly stateMutability: "view";
|
|
1060
|
+
}, {
|
|
1061
|
+
readonly type: "function";
|
|
1062
|
+
readonly name: "getProposalWanMultiplierAt";
|
|
1063
|
+
readonly inputs: readonly [{
|
|
1064
|
+
readonly name: "_index";
|
|
1065
|
+
readonly type: "uint256";
|
|
1066
|
+
readonly internalType: "uint256";
|
|
1067
|
+
}];
|
|
1068
|
+
readonly outputs: readonly [{
|
|
1069
|
+
readonly name: "pledgeType";
|
|
1070
|
+
readonly type: "uint8";
|
|
1071
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
1072
|
+
}, {
|
|
1073
|
+
readonly name: "lockDuration";
|
|
1074
|
+
readonly type: "uint128";
|
|
1075
|
+
readonly internalType: "uint128";
|
|
1076
|
+
}, {
|
|
1077
|
+
readonly name: "multiplier";
|
|
1078
|
+
readonly type: "uint256";
|
|
1079
|
+
readonly internalType: "uint256";
|
|
1080
|
+
}];
|
|
1081
|
+
readonly stateMutability: "view";
|
|
1082
|
+
}, {
|
|
1083
|
+
readonly type: "function";
|
|
1084
|
+
readonly name: "getRoleAdmin";
|
|
1085
|
+
readonly inputs: readonly [{
|
|
1086
|
+
readonly name: "role";
|
|
1087
|
+
readonly type: "bytes32";
|
|
1088
|
+
readonly internalType: "bytes32";
|
|
1089
|
+
}];
|
|
1090
|
+
readonly outputs: readonly [{
|
|
1091
|
+
readonly name: "";
|
|
1092
|
+
readonly type: "bytes32";
|
|
1093
|
+
readonly internalType: "bytes32";
|
|
1094
|
+
}];
|
|
1095
|
+
readonly stateMutability: "view";
|
|
1096
|
+
}, {
|
|
1097
|
+
readonly type: "function";
|
|
1098
|
+
readonly name: "getVotingWanMultiplier";
|
|
1099
|
+
readonly inputs: readonly [{
|
|
1100
|
+
readonly name: "_pledgeType";
|
|
1101
|
+
readonly type: "uint8";
|
|
1102
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
1103
|
+
}, {
|
|
1104
|
+
readonly name: "_lockDuration";
|
|
1105
|
+
readonly type: "uint128";
|
|
1106
|
+
readonly internalType: "uint128";
|
|
1107
|
+
}];
|
|
1108
|
+
readonly outputs: readonly [{
|
|
1109
|
+
readonly name: "multiplier";
|
|
1110
|
+
readonly type: "uint256";
|
|
1111
|
+
readonly internalType: "uint256";
|
|
1112
|
+
}];
|
|
1113
|
+
readonly stateMutability: "view";
|
|
1114
|
+
}, {
|
|
1115
|
+
readonly type: "function";
|
|
1116
|
+
readonly name: "getVotingWanMultiplierAt";
|
|
1117
|
+
readonly inputs: readonly [{
|
|
1118
|
+
readonly name: "_index";
|
|
1119
|
+
readonly type: "uint256";
|
|
1120
|
+
readonly internalType: "uint256";
|
|
1121
|
+
}];
|
|
1122
|
+
readonly outputs: readonly [{
|
|
1123
|
+
readonly name: "pledgeType";
|
|
1124
|
+
readonly type: "uint8";
|
|
1125
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
1126
|
+
}, {
|
|
1127
|
+
readonly name: "lockDuration";
|
|
1128
|
+
readonly type: "uint128";
|
|
1129
|
+
readonly internalType: "uint128";
|
|
1130
|
+
}, {
|
|
1131
|
+
readonly name: "multiplier";
|
|
1132
|
+
readonly type: "uint256";
|
|
1133
|
+
readonly internalType: "uint256";
|
|
1134
|
+
}];
|
|
1135
|
+
readonly stateMutability: "view";
|
|
1136
|
+
}, {
|
|
1137
|
+
readonly type: "function";
|
|
1138
|
+
readonly name: "getWanPower";
|
|
1139
|
+
readonly inputs: readonly [{
|
|
1140
|
+
readonly name: "multiplier";
|
|
1141
|
+
readonly type: "uint256";
|
|
1142
|
+
readonly internalType: "uint256";
|
|
1143
|
+
}, {
|
|
1144
|
+
readonly name: "wanAmount";
|
|
1145
|
+
readonly type: "uint256";
|
|
1146
|
+
readonly internalType: "uint256";
|
|
1147
|
+
}];
|
|
1148
|
+
readonly outputs: readonly [{
|
|
1149
|
+
readonly name: "wanPower";
|
|
1150
|
+
readonly type: "uint256";
|
|
1151
|
+
readonly internalType: "uint256";
|
|
1152
|
+
}];
|
|
1153
|
+
readonly stateMutability: "view";
|
|
1154
|
+
}, {
|
|
1155
|
+
readonly type: "function";
|
|
1156
|
+
readonly name: "grantRole";
|
|
1157
|
+
readonly inputs: readonly [{
|
|
1158
|
+
readonly name: "role";
|
|
1159
|
+
readonly type: "bytes32";
|
|
1160
|
+
readonly internalType: "bytes32";
|
|
1161
|
+
}, {
|
|
1162
|
+
readonly name: "account";
|
|
1163
|
+
readonly type: "address";
|
|
1164
|
+
readonly internalType: "address";
|
|
1165
|
+
}];
|
|
1166
|
+
readonly outputs: readonly [];
|
|
1167
|
+
readonly stateMutability: "nonpayable";
|
|
1168
|
+
}, {
|
|
1169
|
+
readonly type: "function";
|
|
1170
|
+
readonly name: "hasProposalExists";
|
|
1171
|
+
readonly inputs: readonly [{
|
|
1172
|
+
readonly name: "_proposalId";
|
|
1173
|
+
readonly type: "bytes32";
|
|
1174
|
+
readonly internalType: "bytes32";
|
|
1175
|
+
}];
|
|
1176
|
+
readonly outputs: readonly [{
|
|
1177
|
+
readonly name: "state";
|
|
1178
|
+
readonly type: "bool";
|
|
1179
|
+
readonly internalType: "bool";
|
|
1180
|
+
}];
|
|
1181
|
+
readonly stateMutability: "view";
|
|
1182
|
+
}, {
|
|
1183
|
+
readonly type: "function";
|
|
1184
|
+
readonly name: "hasRole";
|
|
1185
|
+
readonly inputs: readonly [{
|
|
1186
|
+
readonly name: "role";
|
|
1187
|
+
readonly type: "bytes32";
|
|
1188
|
+
readonly internalType: "bytes32";
|
|
1189
|
+
}, {
|
|
1190
|
+
readonly name: "account";
|
|
1191
|
+
readonly type: "address";
|
|
1192
|
+
readonly internalType: "address";
|
|
1193
|
+
}];
|
|
1194
|
+
readonly outputs: readonly [{
|
|
1195
|
+
readonly name: "";
|
|
1196
|
+
readonly type: "bool";
|
|
1197
|
+
readonly internalType: "bool";
|
|
1198
|
+
}];
|
|
1199
|
+
readonly stateMutability: "view";
|
|
1200
|
+
}, {
|
|
1201
|
+
readonly type: "function";
|
|
1202
|
+
readonly name: "initialize";
|
|
1203
|
+
readonly inputs: readonly [{
|
|
1204
|
+
readonly name: "_admin";
|
|
1205
|
+
readonly type: "address";
|
|
1206
|
+
readonly internalType: "address";
|
|
1207
|
+
}, {
|
|
1208
|
+
readonly name: "_operator";
|
|
1209
|
+
readonly type: "address";
|
|
1210
|
+
readonly internalType: "address";
|
|
1211
|
+
}, {
|
|
1212
|
+
readonly name: "_proposalGlobalConfig";
|
|
1213
|
+
readonly type: "tuple";
|
|
1214
|
+
readonly internalType: "struct IWanGovernor.ProposalGlobalConfig";
|
|
1215
|
+
readonly components: readonly [{
|
|
1216
|
+
readonly name: "ethTransferGasLimit";
|
|
1217
|
+
readonly type: "uint256";
|
|
1218
|
+
readonly internalType: "uint256";
|
|
1219
|
+
}, {
|
|
1220
|
+
readonly name: "minParticipationAmount";
|
|
1221
|
+
readonly type: "uint256";
|
|
1222
|
+
readonly internalType: "uint256";
|
|
1223
|
+
}, {
|
|
1224
|
+
readonly name: "requestWanMultiplier";
|
|
1225
|
+
readonly type: "uint256";
|
|
1226
|
+
readonly internalType: "uint256";
|
|
1227
|
+
}, {
|
|
1228
|
+
readonly name: "succeedThreshold";
|
|
1229
|
+
readonly type: "uint256";
|
|
1230
|
+
readonly internalType: "uint256";
|
|
1231
|
+
}, {
|
|
1232
|
+
readonly name: "requireXpAmount";
|
|
1233
|
+
readonly type: "uint256";
|
|
1234
|
+
readonly internalType: "uint256";
|
|
1235
|
+
}, {
|
|
1236
|
+
readonly name: "pledgeLockDuration";
|
|
1237
|
+
readonly type: "uint128";
|
|
1238
|
+
readonly internalType: "uint128";
|
|
1239
|
+
}, {
|
|
1240
|
+
readonly name: "fundraisingDuration";
|
|
1241
|
+
readonly type: "uint128";
|
|
1242
|
+
readonly internalType: "uint128";
|
|
1243
|
+
}, {
|
|
1244
|
+
readonly name: "voteDuration";
|
|
1245
|
+
readonly type: "uint128";
|
|
1246
|
+
readonly internalType: "uint128";
|
|
1247
|
+
}, {
|
|
1248
|
+
readonly name: "xp";
|
|
1249
|
+
readonly type: "address";
|
|
1250
|
+
readonly internalType: "address";
|
|
1251
|
+
}, {
|
|
1252
|
+
readonly name: "stakingManager";
|
|
1253
|
+
readonly type: "address";
|
|
1254
|
+
readonly internalType: "address";
|
|
1255
|
+
}, {
|
|
1256
|
+
readonly name: "wanTreasury";
|
|
1257
|
+
readonly type: "address";
|
|
1258
|
+
readonly internalType: "address";
|
|
1259
|
+
}];
|
|
1260
|
+
}];
|
|
1261
|
+
readonly outputs: readonly [];
|
|
1262
|
+
readonly stateMutability: "nonpayable";
|
|
1263
|
+
}, {
|
|
1264
|
+
readonly type: "function";
|
|
1265
|
+
readonly name: "isFoundation";
|
|
1266
|
+
readonly inputs: readonly [{
|
|
1267
|
+
readonly name: "account";
|
|
1268
|
+
readonly type: "address";
|
|
1269
|
+
readonly internalType: "address";
|
|
1270
|
+
}];
|
|
1271
|
+
readonly outputs: readonly [{
|
|
1272
|
+
readonly name: "isFoundationMember";
|
|
1273
|
+
readonly type: "bool";
|
|
1274
|
+
readonly internalType: "bool";
|
|
1275
|
+
}];
|
|
1276
|
+
readonly stateMutability: "view";
|
|
1277
|
+
}, {
|
|
1278
|
+
readonly type: "function";
|
|
1279
|
+
readonly name: "proposalCategoryCount";
|
|
1280
|
+
readonly inputs: readonly [{
|
|
1281
|
+
readonly name: "state";
|
|
1282
|
+
readonly type: "uint8";
|
|
1283
|
+
readonly internalType: "enum IWanGovernor.ProposalState";
|
|
1284
|
+
}, {
|
|
1285
|
+
readonly name: "category";
|
|
1286
|
+
readonly type: "uint8";
|
|
1287
|
+
readonly internalType: "enum IWanGovernor.ProposalCategory";
|
|
1288
|
+
}];
|
|
1289
|
+
readonly outputs: readonly [{
|
|
1290
|
+
readonly name: "count";
|
|
1291
|
+
readonly type: "uint256";
|
|
1292
|
+
readonly internalType: "uint256";
|
|
1293
|
+
}];
|
|
1294
|
+
readonly stateMutability: "view";
|
|
1295
|
+
}, {
|
|
1296
|
+
readonly type: "function";
|
|
1297
|
+
readonly name: "proposalGlobalConfig";
|
|
1298
|
+
readonly inputs: readonly [];
|
|
1299
|
+
readonly outputs: readonly [{
|
|
1300
|
+
readonly name: "ethTransferGasLimit";
|
|
1301
|
+
readonly type: "uint256";
|
|
1302
|
+
readonly internalType: "uint256";
|
|
1303
|
+
}, {
|
|
1304
|
+
readonly name: "minParticipationAmount";
|
|
1305
|
+
readonly type: "uint256";
|
|
1306
|
+
readonly internalType: "uint256";
|
|
1307
|
+
}, {
|
|
1308
|
+
readonly name: "requestWanMultiplier";
|
|
1309
|
+
readonly type: "uint256";
|
|
1310
|
+
readonly internalType: "uint256";
|
|
1311
|
+
}, {
|
|
1312
|
+
readonly name: "succeedThreshold";
|
|
1313
|
+
readonly type: "uint256";
|
|
1314
|
+
readonly internalType: "uint256";
|
|
1315
|
+
}, {
|
|
1316
|
+
readonly name: "requireXpAmount";
|
|
1317
|
+
readonly type: "uint256";
|
|
1318
|
+
readonly internalType: "uint256";
|
|
1319
|
+
}, {
|
|
1320
|
+
readonly name: "pledgeLockDuration";
|
|
1321
|
+
readonly type: "uint128";
|
|
1322
|
+
readonly internalType: "uint128";
|
|
1323
|
+
}, {
|
|
1324
|
+
readonly name: "fundraisingDuration";
|
|
1325
|
+
readonly type: "uint128";
|
|
1326
|
+
readonly internalType: "uint128";
|
|
1327
|
+
}, {
|
|
1328
|
+
readonly name: "voteDuration";
|
|
1329
|
+
readonly type: "uint128";
|
|
1330
|
+
readonly internalType: "uint128";
|
|
1331
|
+
}, {
|
|
1332
|
+
readonly name: "xp";
|
|
1333
|
+
readonly type: "address";
|
|
1334
|
+
readonly internalType: "address";
|
|
1335
|
+
}, {
|
|
1336
|
+
readonly name: "stakingManager";
|
|
1337
|
+
readonly type: "address";
|
|
1338
|
+
readonly internalType: "address";
|
|
1339
|
+
}, {
|
|
1340
|
+
readonly name: "wanTreasury";
|
|
1341
|
+
readonly type: "address";
|
|
1342
|
+
readonly internalType: "address";
|
|
1343
|
+
}];
|
|
1344
|
+
readonly stateMutability: "view";
|
|
1345
|
+
}, {
|
|
1346
|
+
readonly type: "function";
|
|
1347
|
+
readonly name: "renounceRole";
|
|
1348
|
+
readonly inputs: readonly [{
|
|
1349
|
+
readonly name: "role";
|
|
1350
|
+
readonly type: "bytes32";
|
|
1351
|
+
readonly internalType: "bytes32";
|
|
1352
|
+
}, {
|
|
1353
|
+
readonly name: "callerConfirmation";
|
|
1354
|
+
readonly type: "address";
|
|
1355
|
+
readonly internalType: "address";
|
|
1356
|
+
}];
|
|
1357
|
+
readonly outputs: readonly [];
|
|
1358
|
+
readonly stateMutability: "nonpayable";
|
|
1359
|
+
}, {
|
|
1360
|
+
readonly type: "function";
|
|
1361
|
+
readonly name: "requestPartnerWithdrawal";
|
|
1362
|
+
readonly inputs: readonly [{
|
|
1363
|
+
readonly name: "_proposalId";
|
|
1364
|
+
readonly type: "bytes32";
|
|
1365
|
+
readonly internalType: "bytes32";
|
|
1366
|
+
}];
|
|
1367
|
+
readonly outputs: readonly [{
|
|
1368
|
+
readonly name: "partnerRequestId";
|
|
1369
|
+
readonly type: "uint256";
|
|
1370
|
+
readonly internalType: "uint256";
|
|
1371
|
+
}];
|
|
1372
|
+
readonly stateMutability: "nonpayable";
|
|
1373
|
+
}, {
|
|
1374
|
+
readonly type: "function";
|
|
1375
|
+
readonly name: "requestProposerWithdrawal";
|
|
1376
|
+
readonly inputs: readonly [{
|
|
1377
|
+
readonly name: "_proposalId";
|
|
1378
|
+
readonly type: "bytes32";
|
|
1379
|
+
readonly internalType: "bytes32";
|
|
1380
|
+
}];
|
|
1381
|
+
readonly outputs: readonly [{
|
|
1382
|
+
readonly name: "proposerRequestId";
|
|
1383
|
+
readonly type: "uint256";
|
|
1384
|
+
readonly internalType: "uint256";
|
|
1385
|
+
}];
|
|
1386
|
+
readonly stateMutability: "nonpayable";
|
|
1387
|
+
}, {
|
|
1388
|
+
readonly type: "function";
|
|
1389
|
+
readonly name: "requestVoterWithdrawal";
|
|
1390
|
+
readonly inputs: readonly [{
|
|
1391
|
+
readonly name: "_proposalId";
|
|
1392
|
+
readonly type: "bytes32";
|
|
1393
|
+
readonly internalType: "bytes32";
|
|
1394
|
+
}];
|
|
1395
|
+
readonly outputs: readonly [{
|
|
1396
|
+
readonly name: "voterRequestId";
|
|
1397
|
+
readonly type: "uint256";
|
|
1398
|
+
readonly internalType: "uint256";
|
|
1399
|
+
}];
|
|
1400
|
+
readonly stateMutability: "nonpayable";
|
|
1401
|
+
}, {
|
|
1402
|
+
readonly type: "function";
|
|
1403
|
+
readonly name: "reviewProposal";
|
|
1404
|
+
readonly inputs: readonly [{
|
|
1405
|
+
readonly name: "_proposalId";
|
|
1406
|
+
readonly type: "bytes32";
|
|
1407
|
+
readonly internalType: "bytes32";
|
|
1408
|
+
}, {
|
|
1409
|
+
readonly name: "isApproved";
|
|
1410
|
+
readonly type: "bool";
|
|
1411
|
+
readonly internalType: "bool";
|
|
1412
|
+
}, {
|
|
1413
|
+
readonly name: "_reason";
|
|
1414
|
+
readonly type: "bytes";
|
|
1415
|
+
readonly internalType: "bytes";
|
|
1416
|
+
}];
|
|
1417
|
+
readonly outputs: readonly [];
|
|
1418
|
+
readonly stateMutability: "nonpayable";
|
|
1419
|
+
}, {
|
|
1420
|
+
readonly type: "function";
|
|
1421
|
+
readonly name: "revokeRole";
|
|
1422
|
+
readonly inputs: readonly [{
|
|
1423
|
+
readonly name: "role";
|
|
1424
|
+
readonly type: "bytes32";
|
|
1425
|
+
readonly internalType: "bytes32";
|
|
1426
|
+
}, {
|
|
1427
|
+
readonly name: "account";
|
|
1428
|
+
readonly type: "address";
|
|
1429
|
+
readonly internalType: "address";
|
|
1430
|
+
}];
|
|
1431
|
+
readonly outputs: readonly [];
|
|
1432
|
+
readonly stateMutability: "nonpayable";
|
|
1433
|
+
}, {
|
|
1434
|
+
readonly type: "function";
|
|
1435
|
+
readonly name: "setFoundations";
|
|
1436
|
+
readonly inputs: readonly [{
|
|
1437
|
+
readonly name: "params";
|
|
1438
|
+
readonly type: "tuple[]";
|
|
1439
|
+
readonly internalType: "struct IWanGovernor.SetFoundationParam[]";
|
|
1440
|
+
readonly components: readonly [{
|
|
1441
|
+
readonly name: "account";
|
|
1442
|
+
readonly type: "address";
|
|
1443
|
+
readonly internalType: "address";
|
|
1444
|
+
}, {
|
|
1445
|
+
readonly name: "isFoundationMember";
|
|
1446
|
+
readonly type: "bool";
|
|
1447
|
+
readonly internalType: "bool";
|
|
1448
|
+
}];
|
|
1449
|
+
}];
|
|
1450
|
+
readonly outputs: readonly [];
|
|
1451
|
+
readonly stateMutability: "nonpayable";
|
|
1452
|
+
}, {
|
|
1453
|
+
readonly type: "function";
|
|
1454
|
+
readonly name: "setProposalWanMultiplier";
|
|
1455
|
+
readonly inputs: readonly [{
|
|
1456
|
+
readonly name: "params";
|
|
1457
|
+
readonly type: "tuple[]";
|
|
1458
|
+
readonly internalType: "struct IWanGovernor.SetWanMultiplier[]";
|
|
1459
|
+
readonly components: readonly [{
|
|
1460
|
+
readonly name: "multiplier";
|
|
1461
|
+
readonly type: "uint256";
|
|
1462
|
+
readonly internalType: "uint256";
|
|
1463
|
+
}, {
|
|
1464
|
+
readonly name: "lockDuration";
|
|
1465
|
+
readonly type: "uint128";
|
|
1466
|
+
readonly internalType: "uint128";
|
|
1467
|
+
}, {
|
|
1468
|
+
readonly name: "pledgeType";
|
|
1469
|
+
readonly type: "uint8";
|
|
1470
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
1471
|
+
}];
|
|
1472
|
+
}, {
|
|
1473
|
+
readonly name: "ifClean";
|
|
1474
|
+
readonly type: "bool";
|
|
1475
|
+
readonly internalType: "bool";
|
|
1476
|
+
}];
|
|
1477
|
+
readonly outputs: readonly [];
|
|
1478
|
+
readonly stateMutability: "nonpayable";
|
|
1479
|
+
}, {
|
|
1480
|
+
readonly type: "function";
|
|
1481
|
+
readonly name: "setVotingWanMultiplier";
|
|
1482
|
+
readonly inputs: readonly [{
|
|
1483
|
+
readonly name: "params";
|
|
1484
|
+
readonly type: "tuple[]";
|
|
1485
|
+
readonly internalType: "struct IWanGovernor.SetWanMultiplier[]";
|
|
1486
|
+
readonly components: readonly [{
|
|
1487
|
+
readonly name: "multiplier";
|
|
1488
|
+
readonly type: "uint256";
|
|
1489
|
+
readonly internalType: "uint256";
|
|
1490
|
+
}, {
|
|
1491
|
+
readonly name: "lockDuration";
|
|
1492
|
+
readonly type: "uint128";
|
|
1493
|
+
readonly internalType: "uint128";
|
|
1494
|
+
}, {
|
|
1495
|
+
readonly name: "pledgeType";
|
|
1496
|
+
readonly type: "uint8";
|
|
1497
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
1498
|
+
}];
|
|
1499
|
+
}, {
|
|
1500
|
+
readonly name: "ifClean";
|
|
1501
|
+
readonly type: "bool";
|
|
1502
|
+
readonly internalType: "bool";
|
|
1503
|
+
}];
|
|
1504
|
+
readonly outputs: readonly [];
|
|
1505
|
+
readonly stateMutability: "nonpayable";
|
|
1506
|
+
}, {
|
|
1507
|
+
readonly type: "function";
|
|
1508
|
+
readonly name: "supportsInterface";
|
|
1509
|
+
readonly inputs: readonly [{
|
|
1510
|
+
readonly name: "interfaceId";
|
|
1511
|
+
readonly type: "bytes4";
|
|
1512
|
+
readonly internalType: "bytes4";
|
|
1513
|
+
}];
|
|
1514
|
+
readonly outputs: readonly [{
|
|
1515
|
+
readonly name: "";
|
|
1516
|
+
readonly type: "bool";
|
|
1517
|
+
readonly internalType: "bool";
|
|
1518
|
+
}];
|
|
1519
|
+
readonly stateMutability: "view";
|
|
1520
|
+
}, {
|
|
1521
|
+
readonly type: "function";
|
|
1522
|
+
readonly name: "tallyProposal";
|
|
1523
|
+
readonly inputs: readonly [{
|
|
1524
|
+
readonly name: "_proposalId";
|
|
1525
|
+
readonly type: "bytes32";
|
|
1526
|
+
readonly internalType: "bytes32";
|
|
1527
|
+
}];
|
|
1528
|
+
readonly outputs: readonly [];
|
|
1529
|
+
readonly stateMutability: "nonpayable";
|
|
1530
|
+
}, {
|
|
1531
|
+
readonly type: "function";
|
|
1532
|
+
readonly name: "totalProposalAmountInfo";
|
|
1533
|
+
readonly inputs: readonly [];
|
|
1534
|
+
readonly outputs: readonly [{
|
|
1535
|
+
readonly name: "allProposalWanAmount";
|
|
1536
|
+
readonly type: "uint256";
|
|
1537
|
+
readonly internalType: "uint256";
|
|
1538
|
+
}, {
|
|
1539
|
+
readonly name: "allProposalLockingWanAmount";
|
|
1540
|
+
readonly type: "uint256";
|
|
1541
|
+
readonly internalType: "uint256";
|
|
1542
|
+
}, {
|
|
1543
|
+
readonly name: "allProposalBurnedWanAmount";
|
|
1544
|
+
readonly type: "uint256";
|
|
1545
|
+
readonly internalType: "uint256";
|
|
1546
|
+
}];
|
|
1547
|
+
readonly stateMutability: "view";
|
|
1548
|
+
}, {
|
|
1549
|
+
readonly type: "function";
|
|
1550
|
+
readonly name: "updateEthTransferGasLimit";
|
|
1551
|
+
readonly inputs: readonly [{
|
|
1552
|
+
readonly name: "_gasLimit";
|
|
1553
|
+
readonly type: "uint256";
|
|
1554
|
+
readonly internalType: "uint256";
|
|
1555
|
+
}];
|
|
1556
|
+
readonly outputs: readonly [];
|
|
1557
|
+
readonly stateMutability: "nonpayable";
|
|
1558
|
+
}, {
|
|
1559
|
+
readonly type: "function";
|
|
1560
|
+
readonly name: "updateFundraisingDuration";
|
|
1561
|
+
readonly inputs: readonly [{
|
|
1562
|
+
readonly name: "_duration";
|
|
1563
|
+
readonly type: "uint128";
|
|
1564
|
+
readonly internalType: "uint128";
|
|
1565
|
+
}];
|
|
1566
|
+
readonly outputs: readonly [];
|
|
1567
|
+
readonly stateMutability: "nonpayable";
|
|
1568
|
+
}, {
|
|
1569
|
+
readonly type: "function";
|
|
1570
|
+
readonly name: "updateMinParticipationAmount";
|
|
1571
|
+
readonly inputs: readonly [{
|
|
1572
|
+
readonly name: "_amount";
|
|
1573
|
+
readonly type: "uint256";
|
|
1574
|
+
readonly internalType: "uint256";
|
|
1575
|
+
}];
|
|
1576
|
+
readonly outputs: readonly [];
|
|
1577
|
+
readonly stateMutability: "nonpayable";
|
|
1578
|
+
}, {
|
|
1579
|
+
readonly type: "function";
|
|
1580
|
+
readonly name: "updatePledgeLockDuration";
|
|
1581
|
+
readonly inputs: readonly [{
|
|
1582
|
+
readonly name: "_lockDuration";
|
|
1583
|
+
readonly type: "uint128";
|
|
1584
|
+
readonly internalType: "uint128";
|
|
1585
|
+
}];
|
|
1586
|
+
readonly outputs: readonly [];
|
|
1587
|
+
readonly stateMutability: "nonpayable";
|
|
1588
|
+
}, {
|
|
1589
|
+
readonly type: "function";
|
|
1590
|
+
readonly name: "updateRequestWanMultiplier";
|
|
1591
|
+
readonly inputs: readonly [{
|
|
1592
|
+
readonly name: "_requestWanMultiplier";
|
|
1593
|
+
readonly type: "uint256";
|
|
1594
|
+
readonly internalType: "uint256";
|
|
1595
|
+
}];
|
|
1596
|
+
readonly outputs: readonly [];
|
|
1597
|
+
readonly stateMutability: "nonpayable";
|
|
1598
|
+
}, {
|
|
1599
|
+
readonly type: "function";
|
|
1600
|
+
readonly name: "updateSucceedThreshold";
|
|
1601
|
+
readonly inputs: readonly [{
|
|
1602
|
+
readonly name: "_threshold";
|
|
1603
|
+
readonly type: "uint256";
|
|
1604
|
+
readonly internalType: "uint256";
|
|
1605
|
+
}];
|
|
1606
|
+
readonly outputs: readonly [];
|
|
1607
|
+
readonly stateMutability: "nonpayable";
|
|
1608
|
+
}, {
|
|
1609
|
+
readonly type: "function";
|
|
1610
|
+
readonly name: "updateVoteDuration";
|
|
1611
|
+
readonly inputs: readonly [{
|
|
1612
|
+
readonly name: "_duration";
|
|
1613
|
+
readonly type: "uint128";
|
|
1614
|
+
readonly internalType: "uint128";
|
|
1615
|
+
}];
|
|
1616
|
+
readonly outputs: readonly [];
|
|
1617
|
+
readonly stateMutability: "nonpayable";
|
|
1618
|
+
}, {
|
|
1619
|
+
readonly type: "function";
|
|
1620
|
+
readonly name: "updateXpRequiredAmount";
|
|
1621
|
+
readonly inputs: readonly [{
|
|
1622
|
+
readonly name: "_amount";
|
|
1623
|
+
readonly type: "uint256";
|
|
1624
|
+
readonly internalType: "uint256";
|
|
1625
|
+
}];
|
|
1626
|
+
readonly outputs: readonly [];
|
|
1627
|
+
readonly stateMutability: "nonpayable";
|
|
1628
|
+
}, {
|
|
1629
|
+
readonly type: "function";
|
|
1630
|
+
readonly name: "voteProposal";
|
|
1631
|
+
readonly inputs: readonly [{
|
|
1632
|
+
readonly name: "_proposalId";
|
|
1633
|
+
readonly type: "bytes32";
|
|
1634
|
+
readonly internalType: "bytes32";
|
|
1635
|
+
}, {
|
|
1636
|
+
readonly name: "_lockDuration";
|
|
1637
|
+
readonly type: "uint128";
|
|
1638
|
+
readonly internalType: "uint128";
|
|
1639
|
+
}, {
|
|
1640
|
+
readonly name: "votePledgeType";
|
|
1641
|
+
readonly type: "uint8";
|
|
1642
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
1643
|
+
}, {
|
|
1644
|
+
readonly name: "_voteType";
|
|
1645
|
+
readonly type: "uint8";
|
|
1646
|
+
readonly internalType: "enum IWanGovernor.VoteType";
|
|
1647
|
+
}, {
|
|
1648
|
+
readonly name: "_reason";
|
|
1649
|
+
readonly type: "bytes";
|
|
1650
|
+
readonly internalType: "bytes";
|
|
1651
|
+
}];
|
|
1652
|
+
readonly outputs: readonly [];
|
|
1653
|
+
readonly stateMutability: "payable";
|
|
1654
|
+
}, {
|
|
1655
|
+
readonly type: "event";
|
|
1656
|
+
readonly name: "CancelProposal";
|
|
1657
|
+
readonly inputs: readonly [{
|
|
1658
|
+
readonly name: "proposalId";
|
|
1659
|
+
readonly type: "bytes32";
|
|
1660
|
+
readonly indexed: true;
|
|
1661
|
+
readonly internalType: "bytes32";
|
|
1662
|
+
}, {
|
|
1663
|
+
readonly name: "proposer";
|
|
1664
|
+
readonly type: "address";
|
|
1665
|
+
readonly indexed: true;
|
|
1666
|
+
readonly internalType: "address";
|
|
1667
|
+
}, {
|
|
1668
|
+
readonly name: "keys";
|
|
1669
|
+
readonly type: "string[]";
|
|
1670
|
+
readonly indexed: false;
|
|
1671
|
+
readonly internalType: "string[]";
|
|
1672
|
+
}, {
|
|
1673
|
+
readonly name: "values";
|
|
1674
|
+
readonly type: "bytes[]";
|
|
1675
|
+
readonly indexed: false;
|
|
1676
|
+
readonly internalType: "bytes[]";
|
|
1677
|
+
}];
|
|
1678
|
+
readonly anonymous: false;
|
|
1679
|
+
}, {
|
|
1680
|
+
readonly type: "event";
|
|
1681
|
+
readonly name: "ClaimPartnerWithdrawal";
|
|
1682
|
+
readonly inputs: readonly [{
|
|
1683
|
+
readonly name: "proposalId";
|
|
1684
|
+
readonly type: "bytes32";
|
|
1685
|
+
readonly indexed: true;
|
|
1686
|
+
readonly internalType: "bytes32";
|
|
1687
|
+
}, {
|
|
1688
|
+
readonly name: "requestId";
|
|
1689
|
+
readonly type: "uint256";
|
|
1690
|
+
readonly indexed: true;
|
|
1691
|
+
readonly internalType: "uint256";
|
|
1692
|
+
}, {
|
|
1693
|
+
readonly name: "wanAmount";
|
|
1694
|
+
readonly type: "uint256";
|
|
1695
|
+
readonly indexed: true;
|
|
1696
|
+
readonly internalType: "uint256";
|
|
1697
|
+
}];
|
|
1698
|
+
readonly anonymous: false;
|
|
1699
|
+
}, {
|
|
1700
|
+
readonly type: "event";
|
|
1701
|
+
readonly name: "ClaimProposerWithdrawal";
|
|
1702
|
+
readonly inputs: readonly [{
|
|
1703
|
+
readonly name: "proposalId";
|
|
1704
|
+
readonly type: "bytes32";
|
|
1705
|
+
readonly indexed: true;
|
|
1706
|
+
readonly internalType: "bytes32";
|
|
1707
|
+
}, {
|
|
1708
|
+
readonly name: "requestId";
|
|
1709
|
+
readonly type: "uint256";
|
|
1710
|
+
readonly indexed: true;
|
|
1711
|
+
readonly internalType: "uint256";
|
|
1712
|
+
}, {
|
|
1713
|
+
readonly name: "wanAmount";
|
|
1714
|
+
readonly type: "uint256";
|
|
1715
|
+
readonly indexed: true;
|
|
1716
|
+
readonly internalType: "uint256";
|
|
1717
|
+
}];
|
|
1718
|
+
readonly anonymous: false;
|
|
1719
|
+
}, {
|
|
1720
|
+
readonly type: "event";
|
|
1721
|
+
readonly name: "ClaimVoterWithdrawal";
|
|
1722
|
+
readonly inputs: readonly [{
|
|
1723
|
+
readonly name: "proposalId";
|
|
1724
|
+
readonly type: "bytes32";
|
|
1725
|
+
readonly indexed: true;
|
|
1726
|
+
readonly internalType: "bytes32";
|
|
1727
|
+
}, {
|
|
1728
|
+
readonly name: "requestId";
|
|
1729
|
+
readonly type: "uint256";
|
|
1730
|
+
readonly indexed: true;
|
|
1731
|
+
readonly internalType: "uint256";
|
|
1732
|
+
}, {
|
|
1733
|
+
readonly name: "wanAmount";
|
|
1734
|
+
readonly type: "uint256";
|
|
1735
|
+
readonly indexed: true;
|
|
1736
|
+
readonly internalType: "uint256";
|
|
1737
|
+
}];
|
|
1738
|
+
readonly anonymous: false;
|
|
1739
|
+
}, {
|
|
1740
|
+
readonly type: "event";
|
|
1741
|
+
readonly name: "ContributeProposal";
|
|
1742
|
+
readonly inputs: readonly [{
|
|
1743
|
+
readonly name: "proposalId";
|
|
1744
|
+
readonly type: "bytes32";
|
|
1745
|
+
readonly indexed: true;
|
|
1746
|
+
readonly internalType: "bytes32";
|
|
1747
|
+
}, {
|
|
1748
|
+
readonly name: "partner";
|
|
1749
|
+
readonly type: "address";
|
|
1750
|
+
readonly indexed: true;
|
|
1751
|
+
readonly internalType: "address";
|
|
1752
|
+
}, {
|
|
1753
|
+
readonly name: "state";
|
|
1754
|
+
readonly type: "uint8";
|
|
1755
|
+
readonly indexed: true;
|
|
1756
|
+
readonly internalType: "enum IWanGovernor.ProposalState";
|
|
1757
|
+
}, {
|
|
1758
|
+
readonly name: "keys";
|
|
1759
|
+
readonly type: "string[]";
|
|
1760
|
+
readonly indexed: false;
|
|
1761
|
+
readonly internalType: "string[]";
|
|
1762
|
+
}, {
|
|
1763
|
+
readonly name: "values";
|
|
1764
|
+
readonly type: "bytes[]";
|
|
1765
|
+
readonly indexed: false;
|
|
1766
|
+
readonly internalType: "bytes[]";
|
|
1767
|
+
}];
|
|
1768
|
+
readonly anonymous: false;
|
|
1769
|
+
}, {
|
|
1770
|
+
readonly type: "event";
|
|
1771
|
+
readonly name: "CreateProposal";
|
|
1772
|
+
readonly inputs: readonly [{
|
|
1773
|
+
readonly name: "proposalId";
|
|
1774
|
+
readonly type: "bytes32";
|
|
1775
|
+
readonly indexed: true;
|
|
1776
|
+
readonly internalType: "bytes32";
|
|
1777
|
+
}, {
|
|
1778
|
+
readonly name: "proposer";
|
|
1779
|
+
readonly type: "address";
|
|
1780
|
+
readonly indexed: true;
|
|
1781
|
+
readonly internalType: "address";
|
|
1782
|
+
}, {
|
|
1783
|
+
readonly name: "state";
|
|
1784
|
+
readonly type: "uint8";
|
|
1785
|
+
readonly indexed: true;
|
|
1786
|
+
readonly internalType: "enum IWanGovernor.ProposalState";
|
|
1787
|
+
}, {
|
|
1788
|
+
readonly name: "keys";
|
|
1789
|
+
readonly type: "string[]";
|
|
1790
|
+
readonly indexed: false;
|
|
1791
|
+
readonly internalType: "string[]";
|
|
1792
|
+
}, {
|
|
1793
|
+
readonly name: "values";
|
|
1794
|
+
readonly type: "bytes[]";
|
|
1795
|
+
readonly indexed: false;
|
|
1796
|
+
readonly internalType: "bytes[]";
|
|
1797
|
+
}];
|
|
1798
|
+
readonly anonymous: false;
|
|
1799
|
+
}, {
|
|
1800
|
+
readonly type: "event";
|
|
1801
|
+
readonly name: "Initialized";
|
|
1802
|
+
readonly inputs: readonly [{
|
|
1803
|
+
readonly name: "version";
|
|
1804
|
+
readonly type: "uint64";
|
|
1805
|
+
readonly indexed: false;
|
|
1806
|
+
readonly internalType: "uint64";
|
|
1807
|
+
}];
|
|
1808
|
+
readonly anonymous: false;
|
|
1809
|
+
}, {
|
|
1810
|
+
readonly type: "event";
|
|
1811
|
+
readonly name: "RequestPartnerWithdrawal";
|
|
1812
|
+
readonly inputs: readonly [{
|
|
1813
|
+
readonly name: "proposalId";
|
|
1814
|
+
readonly type: "bytes32";
|
|
1815
|
+
readonly indexed: true;
|
|
1816
|
+
readonly internalType: "bytes32";
|
|
1817
|
+
}, {
|
|
1818
|
+
readonly name: "requestId";
|
|
1819
|
+
readonly type: "uint256";
|
|
1820
|
+
readonly indexed: true;
|
|
1821
|
+
readonly internalType: "uint256";
|
|
1822
|
+
}, {
|
|
1823
|
+
readonly name: "wanAmount";
|
|
1824
|
+
readonly type: "uint256";
|
|
1825
|
+
readonly indexed: true;
|
|
1826
|
+
readonly internalType: "uint256";
|
|
1827
|
+
}, {
|
|
1828
|
+
readonly name: "stWanAmount";
|
|
1829
|
+
readonly type: "uint256";
|
|
1830
|
+
readonly indexed: false;
|
|
1831
|
+
readonly internalType: "uint256";
|
|
1832
|
+
}];
|
|
1833
|
+
readonly anonymous: false;
|
|
1834
|
+
}, {
|
|
1835
|
+
readonly type: "event";
|
|
1836
|
+
readonly name: "RequestProposerWithdrawal";
|
|
1837
|
+
readonly inputs: readonly [{
|
|
1838
|
+
readonly name: "proposalId";
|
|
1839
|
+
readonly type: "bytes32";
|
|
1840
|
+
readonly indexed: true;
|
|
1841
|
+
readonly internalType: "bytes32";
|
|
1842
|
+
}, {
|
|
1843
|
+
readonly name: "requestId";
|
|
1844
|
+
readonly type: "uint256";
|
|
1845
|
+
readonly indexed: true;
|
|
1846
|
+
readonly internalType: "uint256";
|
|
1847
|
+
}, {
|
|
1848
|
+
readonly name: "wanAmount";
|
|
1849
|
+
readonly type: "uint256";
|
|
1850
|
+
readonly indexed: true;
|
|
1851
|
+
readonly internalType: "uint256";
|
|
1852
|
+
}, {
|
|
1853
|
+
readonly name: "stWanAmount";
|
|
1854
|
+
readonly type: "uint256";
|
|
1855
|
+
readonly indexed: false;
|
|
1856
|
+
readonly internalType: "uint256";
|
|
1857
|
+
}];
|
|
1858
|
+
readonly anonymous: false;
|
|
1859
|
+
}, {
|
|
1860
|
+
readonly type: "event";
|
|
1861
|
+
readonly name: "RequestVoterWithdrawal";
|
|
1862
|
+
readonly inputs: readonly [{
|
|
1863
|
+
readonly name: "proposalId";
|
|
1864
|
+
readonly type: "bytes32";
|
|
1865
|
+
readonly indexed: true;
|
|
1866
|
+
readonly internalType: "bytes32";
|
|
1867
|
+
}, {
|
|
1868
|
+
readonly name: "requestId";
|
|
1869
|
+
readonly type: "uint256";
|
|
1870
|
+
readonly indexed: true;
|
|
1871
|
+
readonly internalType: "uint256";
|
|
1872
|
+
}, {
|
|
1873
|
+
readonly name: "wanAmount";
|
|
1874
|
+
readonly type: "uint256";
|
|
1875
|
+
readonly indexed: true;
|
|
1876
|
+
readonly internalType: "uint256";
|
|
1877
|
+
}, {
|
|
1878
|
+
readonly name: "stWanAmount";
|
|
1879
|
+
readonly type: "uint256";
|
|
1880
|
+
readonly indexed: false;
|
|
1881
|
+
readonly internalType: "uint256";
|
|
1882
|
+
}];
|
|
1883
|
+
readonly anonymous: false;
|
|
1884
|
+
}, {
|
|
1885
|
+
readonly type: "event";
|
|
1886
|
+
readonly name: "ReviewProposal";
|
|
1887
|
+
readonly inputs: readonly [{
|
|
1888
|
+
readonly name: "proposalId";
|
|
1889
|
+
readonly type: "bytes32";
|
|
1890
|
+
readonly indexed: true;
|
|
1891
|
+
readonly internalType: "bytes32";
|
|
1892
|
+
}, {
|
|
1893
|
+
readonly name: "isApproved";
|
|
1894
|
+
readonly type: "bool";
|
|
1895
|
+
readonly indexed: true;
|
|
1896
|
+
readonly internalType: "bool";
|
|
1897
|
+
}, {
|
|
1898
|
+
readonly name: "state";
|
|
1899
|
+
readonly type: "uint8";
|
|
1900
|
+
readonly indexed: true;
|
|
1901
|
+
readonly internalType: "enum IWanGovernor.ProposalState";
|
|
1902
|
+
}, {
|
|
1903
|
+
readonly name: "reason";
|
|
1904
|
+
readonly type: "bytes";
|
|
1905
|
+
readonly indexed: false;
|
|
1906
|
+
readonly internalType: "bytes";
|
|
1907
|
+
}];
|
|
1908
|
+
readonly anonymous: false;
|
|
1909
|
+
}, {
|
|
1910
|
+
readonly type: "event";
|
|
1911
|
+
readonly name: "RoleAdminChanged";
|
|
1912
|
+
readonly inputs: readonly [{
|
|
1913
|
+
readonly name: "role";
|
|
1914
|
+
readonly type: "bytes32";
|
|
1915
|
+
readonly indexed: true;
|
|
1916
|
+
readonly internalType: "bytes32";
|
|
1917
|
+
}, {
|
|
1918
|
+
readonly name: "previousAdminRole";
|
|
1919
|
+
readonly type: "bytes32";
|
|
1920
|
+
readonly indexed: true;
|
|
1921
|
+
readonly internalType: "bytes32";
|
|
1922
|
+
}, {
|
|
1923
|
+
readonly name: "newAdminRole";
|
|
1924
|
+
readonly type: "bytes32";
|
|
1925
|
+
readonly indexed: true;
|
|
1926
|
+
readonly internalType: "bytes32";
|
|
1927
|
+
}];
|
|
1928
|
+
readonly anonymous: false;
|
|
1929
|
+
}, {
|
|
1930
|
+
readonly type: "event";
|
|
1931
|
+
readonly name: "RoleGranted";
|
|
1932
|
+
readonly inputs: readonly [{
|
|
1933
|
+
readonly name: "role";
|
|
1934
|
+
readonly type: "bytes32";
|
|
1935
|
+
readonly indexed: true;
|
|
1936
|
+
readonly internalType: "bytes32";
|
|
1937
|
+
}, {
|
|
1938
|
+
readonly name: "account";
|
|
1939
|
+
readonly type: "address";
|
|
1940
|
+
readonly indexed: true;
|
|
1941
|
+
readonly internalType: "address";
|
|
1942
|
+
}, {
|
|
1943
|
+
readonly name: "sender";
|
|
1944
|
+
readonly type: "address";
|
|
1945
|
+
readonly indexed: true;
|
|
1946
|
+
readonly internalType: "address";
|
|
1947
|
+
}];
|
|
1948
|
+
readonly anonymous: false;
|
|
1949
|
+
}, {
|
|
1950
|
+
readonly type: "event";
|
|
1951
|
+
readonly name: "RoleRevoked";
|
|
1952
|
+
readonly inputs: readonly [{
|
|
1953
|
+
readonly name: "role";
|
|
1954
|
+
readonly type: "bytes32";
|
|
1955
|
+
readonly indexed: true;
|
|
1956
|
+
readonly internalType: "bytes32";
|
|
1957
|
+
}, {
|
|
1958
|
+
readonly name: "account";
|
|
1959
|
+
readonly type: "address";
|
|
1960
|
+
readonly indexed: true;
|
|
1961
|
+
readonly internalType: "address";
|
|
1962
|
+
}, {
|
|
1963
|
+
readonly name: "sender";
|
|
1964
|
+
readonly type: "address";
|
|
1965
|
+
readonly indexed: true;
|
|
1966
|
+
readonly internalType: "address";
|
|
1967
|
+
}];
|
|
1968
|
+
readonly anonymous: false;
|
|
1969
|
+
}, {
|
|
1970
|
+
readonly type: "event";
|
|
1971
|
+
readonly name: "SetFoundation";
|
|
1972
|
+
readonly inputs: readonly [{
|
|
1973
|
+
readonly name: "account";
|
|
1974
|
+
readonly type: "address";
|
|
1975
|
+
readonly indexed: true;
|
|
1976
|
+
readonly internalType: "address";
|
|
1977
|
+
}, {
|
|
1978
|
+
readonly name: "isFoundationMember";
|
|
1979
|
+
readonly type: "bool";
|
|
1980
|
+
readonly indexed: true;
|
|
1981
|
+
readonly internalType: "bool";
|
|
1982
|
+
}];
|
|
1983
|
+
readonly anonymous: false;
|
|
1984
|
+
}, {
|
|
1985
|
+
readonly type: "event";
|
|
1986
|
+
readonly name: "SetProposalFailed";
|
|
1987
|
+
readonly inputs: readonly [{
|
|
1988
|
+
readonly name: "proposalId";
|
|
1989
|
+
readonly type: "bytes32";
|
|
1990
|
+
readonly indexed: true;
|
|
1991
|
+
readonly internalType: "bytes32";
|
|
1992
|
+
}, {
|
|
1993
|
+
readonly name: "reason";
|
|
1994
|
+
readonly type: "bytes";
|
|
1995
|
+
readonly indexed: false;
|
|
1996
|
+
readonly internalType: "bytes";
|
|
1997
|
+
}];
|
|
1998
|
+
readonly anonymous: false;
|
|
1999
|
+
}, {
|
|
2000
|
+
readonly type: "event";
|
|
2001
|
+
readonly name: "SetProposalStage";
|
|
2002
|
+
readonly inputs: readonly [{
|
|
2003
|
+
readonly name: "proposalId";
|
|
2004
|
+
readonly type: "bytes32";
|
|
2005
|
+
readonly indexed: true;
|
|
2006
|
+
readonly internalType: "bytes32";
|
|
2007
|
+
}, {
|
|
2008
|
+
readonly name: "ifSet";
|
|
2009
|
+
readonly type: "bool";
|
|
2010
|
+
readonly indexed: true;
|
|
2011
|
+
readonly internalType: "bool";
|
|
2012
|
+
}];
|
|
2013
|
+
readonly anonymous: false;
|
|
2014
|
+
}, {
|
|
2015
|
+
readonly type: "event";
|
|
2016
|
+
readonly name: "SetProposalWanMultiplier";
|
|
2017
|
+
readonly inputs: readonly [{
|
|
2018
|
+
readonly name: "multiplier";
|
|
2019
|
+
readonly type: "uint256";
|
|
2020
|
+
readonly indexed: true;
|
|
2021
|
+
readonly internalType: "uint256";
|
|
2022
|
+
}, {
|
|
2023
|
+
readonly name: "pledgeType";
|
|
2024
|
+
readonly type: "uint8";
|
|
2025
|
+
readonly indexed: true;
|
|
2026
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
2027
|
+
}, {
|
|
2028
|
+
readonly name: "lockDuration";
|
|
2029
|
+
readonly type: "uint128";
|
|
2030
|
+
readonly indexed: true;
|
|
2031
|
+
readonly internalType: "uint128";
|
|
2032
|
+
}];
|
|
2033
|
+
readonly anonymous: false;
|
|
2034
|
+
}, {
|
|
2035
|
+
readonly type: "event";
|
|
2036
|
+
readonly name: "SetVotingWanMultiplier";
|
|
2037
|
+
readonly inputs: readonly [{
|
|
2038
|
+
readonly name: "multiplier";
|
|
2039
|
+
readonly type: "uint256";
|
|
2040
|
+
readonly indexed: true;
|
|
2041
|
+
readonly internalType: "uint256";
|
|
2042
|
+
}, {
|
|
2043
|
+
readonly name: "pledgeType";
|
|
2044
|
+
readonly type: "uint8";
|
|
2045
|
+
readonly indexed: true;
|
|
2046
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
2047
|
+
}, {
|
|
2048
|
+
readonly name: "lockDuration";
|
|
2049
|
+
readonly type: "uint128";
|
|
2050
|
+
readonly indexed: true;
|
|
2051
|
+
readonly internalType: "uint128";
|
|
2052
|
+
}];
|
|
2053
|
+
readonly anonymous: false;
|
|
2054
|
+
}, {
|
|
2055
|
+
readonly type: "event";
|
|
2056
|
+
readonly name: "TallyProposal";
|
|
2057
|
+
readonly inputs: readonly [{
|
|
2058
|
+
readonly name: "proposalId";
|
|
2059
|
+
readonly type: "bytes32";
|
|
2060
|
+
readonly indexed: true;
|
|
2061
|
+
readonly internalType: "bytes32";
|
|
2062
|
+
}, {
|
|
2063
|
+
readonly name: "wanAmount";
|
|
2064
|
+
readonly type: "uint256";
|
|
2065
|
+
readonly indexed: true;
|
|
2066
|
+
readonly internalType: "uint256";
|
|
2067
|
+
}, {
|
|
2068
|
+
readonly name: "stWanAmount";
|
|
2069
|
+
readonly type: "uint256";
|
|
2070
|
+
readonly indexed: true;
|
|
2071
|
+
readonly internalType: "uint256";
|
|
2072
|
+
}];
|
|
2073
|
+
readonly anonymous: false;
|
|
2074
|
+
}, {
|
|
2075
|
+
readonly type: "event";
|
|
2076
|
+
readonly name: "UpdateEthTransferGasLimit";
|
|
2077
|
+
readonly inputs: readonly [{
|
|
2078
|
+
readonly name: "gasLimit";
|
|
2079
|
+
readonly type: "uint256";
|
|
2080
|
+
readonly indexed: true;
|
|
2081
|
+
readonly internalType: "uint256";
|
|
2082
|
+
}];
|
|
2083
|
+
readonly anonymous: false;
|
|
2084
|
+
}, {
|
|
2085
|
+
readonly type: "event";
|
|
2086
|
+
readonly name: "UpdateFundraisingDuration";
|
|
2087
|
+
readonly inputs: readonly [{
|
|
2088
|
+
readonly name: "duration";
|
|
2089
|
+
readonly type: "uint128";
|
|
2090
|
+
readonly indexed: true;
|
|
2091
|
+
readonly internalType: "uint128";
|
|
2092
|
+
}];
|
|
2093
|
+
readonly anonymous: false;
|
|
2094
|
+
}, {
|
|
2095
|
+
readonly type: "event";
|
|
2096
|
+
readonly name: "UpdateMinParticipationAmount";
|
|
2097
|
+
readonly inputs: readonly [{
|
|
2098
|
+
readonly name: "amount";
|
|
2099
|
+
readonly type: "uint256";
|
|
2100
|
+
readonly indexed: true;
|
|
2101
|
+
readonly internalType: "uint256";
|
|
2102
|
+
}];
|
|
2103
|
+
readonly anonymous: false;
|
|
2104
|
+
}, {
|
|
2105
|
+
readonly type: "event";
|
|
2106
|
+
readonly name: "UpdatePledgeLockDuration";
|
|
2107
|
+
readonly inputs: readonly [{
|
|
2108
|
+
readonly name: "lockDuration";
|
|
2109
|
+
readonly type: "uint128";
|
|
2110
|
+
readonly indexed: true;
|
|
2111
|
+
readonly internalType: "uint128";
|
|
2112
|
+
}];
|
|
2113
|
+
readonly anonymous: false;
|
|
2114
|
+
}, {
|
|
2115
|
+
readonly type: "event";
|
|
2116
|
+
readonly name: "UpdateRequestWanMultiplier";
|
|
2117
|
+
readonly inputs: readonly [{
|
|
2118
|
+
readonly name: "requestWanMultiplier";
|
|
2119
|
+
readonly type: "uint256";
|
|
2120
|
+
readonly indexed: true;
|
|
2121
|
+
readonly internalType: "uint256";
|
|
2122
|
+
}];
|
|
2123
|
+
readonly anonymous: false;
|
|
2124
|
+
}, {
|
|
2125
|
+
readonly type: "event";
|
|
2126
|
+
readonly name: "UpdateSucceedThreshold";
|
|
2127
|
+
readonly inputs: readonly [{
|
|
2128
|
+
readonly name: "threshold";
|
|
2129
|
+
readonly type: "uint256";
|
|
2130
|
+
readonly indexed: true;
|
|
2131
|
+
readonly internalType: "uint256";
|
|
2132
|
+
}];
|
|
2133
|
+
readonly anonymous: false;
|
|
2134
|
+
}, {
|
|
2135
|
+
readonly type: "event";
|
|
2136
|
+
readonly name: "UpdateVoteDuration";
|
|
2137
|
+
readonly inputs: readonly [{
|
|
2138
|
+
readonly name: "duration";
|
|
2139
|
+
readonly type: "uint128";
|
|
2140
|
+
readonly indexed: true;
|
|
2141
|
+
readonly internalType: "uint128";
|
|
2142
|
+
}];
|
|
2143
|
+
readonly anonymous: false;
|
|
2144
|
+
}, {
|
|
2145
|
+
readonly type: "event";
|
|
2146
|
+
readonly name: "UpdateXpRequiredAmount";
|
|
2147
|
+
readonly inputs: readonly [{
|
|
2148
|
+
readonly name: "amount";
|
|
2149
|
+
readonly type: "uint256";
|
|
2150
|
+
readonly indexed: true;
|
|
2151
|
+
readonly internalType: "uint256";
|
|
2152
|
+
}];
|
|
2153
|
+
readonly anonymous: false;
|
|
2154
|
+
}, {
|
|
2155
|
+
readonly type: "event";
|
|
2156
|
+
readonly name: "VoteProposal";
|
|
2157
|
+
readonly inputs: readonly [{
|
|
2158
|
+
readonly name: "proposalId";
|
|
2159
|
+
readonly type: "bytes32";
|
|
2160
|
+
readonly indexed: true;
|
|
2161
|
+
readonly internalType: "bytes32";
|
|
2162
|
+
}, {
|
|
2163
|
+
readonly name: "voter";
|
|
2164
|
+
readonly type: "address";
|
|
2165
|
+
readonly indexed: true;
|
|
2166
|
+
readonly internalType: "address";
|
|
2167
|
+
}, {
|
|
2168
|
+
readonly name: "voteType";
|
|
2169
|
+
readonly type: "uint8";
|
|
2170
|
+
readonly indexed: true;
|
|
2171
|
+
readonly internalType: "enum IWanGovernor.VoteType";
|
|
2172
|
+
}, {
|
|
2173
|
+
readonly name: "keys";
|
|
2174
|
+
readonly type: "string[]";
|
|
2175
|
+
readonly indexed: false;
|
|
2176
|
+
readonly internalType: "string[]";
|
|
2177
|
+
}, {
|
|
2178
|
+
readonly name: "values";
|
|
2179
|
+
readonly type: "bytes[]";
|
|
2180
|
+
readonly indexed: false;
|
|
2181
|
+
readonly internalType: "bytes[]";
|
|
2182
|
+
}];
|
|
2183
|
+
readonly anonymous: false;
|
|
2184
|
+
}, {
|
|
2185
|
+
readonly type: "error";
|
|
2186
|
+
readonly name: "AccessControlBadConfirmation";
|
|
2187
|
+
readonly inputs: readonly [];
|
|
2188
|
+
}, {
|
|
2189
|
+
readonly type: "error";
|
|
2190
|
+
readonly name: "AccessControlUnauthorizedAccount";
|
|
2191
|
+
readonly inputs: readonly [{
|
|
2192
|
+
readonly name: "account";
|
|
2193
|
+
readonly type: "address";
|
|
2194
|
+
readonly internalType: "address";
|
|
2195
|
+
}, {
|
|
2196
|
+
readonly name: "neededRole";
|
|
2197
|
+
readonly type: "bytes32";
|
|
2198
|
+
readonly internalType: "bytes32";
|
|
2199
|
+
}];
|
|
2200
|
+
}, {
|
|
2201
|
+
readonly type: "error";
|
|
2202
|
+
readonly name: "AlreadyContributeProposal";
|
|
2203
|
+
readonly inputs: readonly [{
|
|
2204
|
+
readonly name: "proposalId";
|
|
2205
|
+
readonly type: "bytes32";
|
|
2206
|
+
readonly internalType: "bytes32";
|
|
2207
|
+
}, {
|
|
2208
|
+
readonly name: "partner";
|
|
2209
|
+
readonly type: "address";
|
|
2210
|
+
readonly internalType: "address";
|
|
2211
|
+
}];
|
|
2212
|
+
}, {
|
|
2213
|
+
readonly type: "error";
|
|
2214
|
+
readonly name: "AmountBelowMinimum";
|
|
2215
|
+
readonly inputs: readonly [{
|
|
2216
|
+
readonly name: "provided";
|
|
2217
|
+
readonly type: "uint256";
|
|
2218
|
+
readonly internalType: "uint256";
|
|
2219
|
+
}, {
|
|
2220
|
+
readonly name: "required";
|
|
2221
|
+
readonly type: "uint256";
|
|
2222
|
+
readonly internalType: "uint256";
|
|
2223
|
+
}];
|
|
2224
|
+
}, {
|
|
2225
|
+
readonly type: "error";
|
|
2226
|
+
readonly name: "ApplicationExceedsLimit";
|
|
2227
|
+
readonly inputs: readonly [{
|
|
2228
|
+
readonly name: "requested";
|
|
2229
|
+
readonly type: "uint256";
|
|
2230
|
+
readonly internalType: "uint256";
|
|
2231
|
+
}, {
|
|
2232
|
+
readonly name: "limit";
|
|
2233
|
+
readonly type: "uint256";
|
|
2234
|
+
readonly internalType: "uint256";
|
|
2235
|
+
}];
|
|
2236
|
+
}, {
|
|
2237
|
+
readonly type: "error";
|
|
2238
|
+
readonly name: "EthTransferFailed";
|
|
2239
|
+
readonly inputs: readonly [{
|
|
2240
|
+
readonly name: "to";
|
|
2241
|
+
readonly type: "address";
|
|
2242
|
+
readonly internalType: "address";
|
|
2243
|
+
}, {
|
|
2244
|
+
readonly name: "value";
|
|
2245
|
+
readonly type: "uint256";
|
|
2246
|
+
readonly internalType: "uint256";
|
|
2247
|
+
}, {
|
|
2248
|
+
readonly name: "gasLimit";
|
|
2249
|
+
readonly type: "uint256";
|
|
2250
|
+
readonly internalType: "uint256";
|
|
2251
|
+
}];
|
|
2252
|
+
}, {
|
|
2253
|
+
readonly type: "error";
|
|
2254
|
+
readonly name: "InvalidInitialization";
|
|
2255
|
+
readonly inputs: readonly [];
|
|
2256
|
+
}, {
|
|
2257
|
+
readonly type: "error";
|
|
2258
|
+
readonly name: "InvalidPledgeType";
|
|
2259
|
+
readonly inputs: readonly [{
|
|
2260
|
+
readonly name: "pledgeType";
|
|
2261
|
+
readonly type: "uint8";
|
|
2262
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
2263
|
+
}];
|
|
2264
|
+
}, {
|
|
2265
|
+
readonly type: "error";
|
|
2266
|
+
readonly name: "InvalidVotePlegeType";
|
|
2267
|
+
readonly inputs: readonly [{
|
|
2268
|
+
readonly name: "pledgeType";
|
|
2269
|
+
readonly type: "uint8";
|
|
2270
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
2271
|
+
}];
|
|
2272
|
+
}, {
|
|
2273
|
+
readonly type: "error";
|
|
2274
|
+
readonly name: "InvalidVoteType";
|
|
2275
|
+
readonly inputs: readonly [{
|
|
2276
|
+
readonly name: "voteType";
|
|
2277
|
+
readonly type: "uint8";
|
|
2278
|
+
readonly internalType: "enum IWanGovernor.VoteType";
|
|
2279
|
+
}];
|
|
2280
|
+
}, {
|
|
2281
|
+
readonly type: "error";
|
|
2282
|
+
readonly name: "LockPeriodNotReached";
|
|
2283
|
+
readonly inputs: readonly [{
|
|
2284
|
+
readonly name: "unlockTime";
|
|
2285
|
+
readonly type: "uint256";
|
|
2286
|
+
readonly internalType: "uint256";
|
|
2287
|
+
}];
|
|
2288
|
+
}, {
|
|
2289
|
+
readonly type: "error";
|
|
2290
|
+
readonly name: "NotAdmin";
|
|
2291
|
+
readonly inputs: readonly [{
|
|
2292
|
+
readonly name: "account";
|
|
2293
|
+
readonly type: "address";
|
|
2294
|
+
readonly internalType: "address";
|
|
2295
|
+
}];
|
|
2296
|
+
}, {
|
|
2297
|
+
readonly type: "error";
|
|
2298
|
+
readonly name: "NotAdminOrOperator";
|
|
2299
|
+
readonly inputs: readonly [{
|
|
2300
|
+
readonly name: "account";
|
|
2301
|
+
readonly type: "address";
|
|
2302
|
+
readonly internalType: "address";
|
|
2303
|
+
}];
|
|
2304
|
+
}, {
|
|
2305
|
+
readonly type: "error";
|
|
2306
|
+
readonly name: "NotExistsRequestId";
|
|
2307
|
+
readonly inputs: readonly [{
|
|
2308
|
+
readonly name: "requestId";
|
|
2309
|
+
readonly type: "uint256";
|
|
2310
|
+
readonly internalType: "uint256";
|
|
2311
|
+
}];
|
|
2312
|
+
}, {
|
|
2313
|
+
readonly type: "error";
|
|
2314
|
+
readonly name: "NotInitializing";
|
|
2315
|
+
readonly inputs: readonly [];
|
|
2316
|
+
}, {
|
|
2317
|
+
readonly type: "error";
|
|
2318
|
+
readonly name: "NotMatchArrayLength";
|
|
2319
|
+
readonly inputs: readonly [];
|
|
2320
|
+
}, {
|
|
2321
|
+
readonly type: "error";
|
|
2322
|
+
readonly name: "NotRequestProposal";
|
|
2323
|
+
readonly inputs: readonly [{
|
|
2324
|
+
readonly name: "proposalId";
|
|
2325
|
+
readonly type: "bytes32";
|
|
2326
|
+
readonly internalType: "bytes32";
|
|
2327
|
+
}, {
|
|
2328
|
+
readonly name: "requestId";
|
|
2329
|
+
readonly type: "uint256";
|
|
2330
|
+
readonly internalType: "uint256";
|
|
2331
|
+
}];
|
|
2332
|
+
}, {
|
|
2333
|
+
readonly type: "error";
|
|
2334
|
+
readonly name: "NotSupportedPledgeType";
|
|
2335
|
+
readonly inputs: readonly [{
|
|
2336
|
+
readonly name: "pledgeType";
|
|
2337
|
+
readonly type: "uint8";
|
|
2338
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
2339
|
+
}, {
|
|
2340
|
+
readonly name: "lockDuration";
|
|
2341
|
+
readonly type: "uint128";
|
|
2342
|
+
readonly internalType: "uint128";
|
|
2343
|
+
}];
|
|
2344
|
+
}, {
|
|
2345
|
+
readonly type: "error";
|
|
2346
|
+
readonly name: "NotSupportedVotePledgeType";
|
|
2347
|
+
readonly inputs: readonly [{
|
|
2348
|
+
readonly name: "pledgeType";
|
|
2349
|
+
readonly type: "uint8";
|
|
2350
|
+
readonly internalType: "enum IWanGovernor.PledgeType";
|
|
2351
|
+
}, {
|
|
2352
|
+
readonly name: "lockDuration";
|
|
2353
|
+
readonly type: "uint128";
|
|
2354
|
+
readonly internalType: "uint128";
|
|
2355
|
+
}];
|
|
2356
|
+
}, {
|
|
2357
|
+
readonly type: "error";
|
|
2358
|
+
readonly name: "ProposalAlreadyVoted";
|
|
2359
|
+
readonly inputs: readonly [{
|
|
2360
|
+
readonly name: "proposalId";
|
|
2361
|
+
readonly type: "bytes32";
|
|
2362
|
+
readonly internalType: "bytes32";
|
|
2363
|
+
}, {
|
|
2364
|
+
readonly name: "voter";
|
|
2365
|
+
readonly type: "address";
|
|
2366
|
+
readonly internalType: "address";
|
|
2367
|
+
}];
|
|
2368
|
+
}, {
|
|
2369
|
+
readonly type: "error";
|
|
2370
|
+
readonly name: "ProposalAreadyExists";
|
|
2371
|
+
readonly inputs: readonly [{
|
|
2372
|
+
readonly name: "proposalId";
|
|
2373
|
+
readonly type: "bytes32";
|
|
2374
|
+
readonly internalType: "bytes32";
|
|
2375
|
+
}];
|
|
2376
|
+
}, {
|
|
2377
|
+
readonly type: "error";
|
|
2378
|
+
readonly name: "ProposalNotApproved";
|
|
2379
|
+
readonly inputs: readonly [{
|
|
2380
|
+
readonly name: "proposalId";
|
|
2381
|
+
readonly type: "bytes32";
|
|
2382
|
+
readonly internalType: "bytes32";
|
|
2383
|
+
}];
|
|
2384
|
+
}, {
|
|
2385
|
+
readonly type: "error";
|
|
2386
|
+
readonly name: "ProposalNotExist";
|
|
2387
|
+
readonly inputs: readonly [{
|
|
2388
|
+
readonly name: "proposalId";
|
|
2389
|
+
readonly type: "bytes32";
|
|
2390
|
+
readonly internalType: "bytes32";
|
|
2391
|
+
}];
|
|
2392
|
+
}, {
|
|
2393
|
+
readonly type: "error";
|
|
2394
|
+
readonly name: "ProposalNotFundraising";
|
|
2395
|
+
readonly inputs: readonly [{
|
|
2396
|
+
readonly name: "proposalId";
|
|
2397
|
+
readonly type: "bytes32";
|
|
2398
|
+
readonly internalType: "bytes32";
|
|
2399
|
+
}];
|
|
2400
|
+
}, {
|
|
2401
|
+
readonly type: "error";
|
|
2402
|
+
readonly name: "ProposalNotReachedTallyStage";
|
|
2403
|
+
readonly inputs: readonly [{
|
|
2404
|
+
readonly name: "proposalId";
|
|
2405
|
+
readonly type: "bytes32";
|
|
2406
|
+
readonly internalType: "bytes32";
|
|
2407
|
+
}];
|
|
2408
|
+
}, {
|
|
2409
|
+
readonly type: "error";
|
|
2410
|
+
readonly name: "ProposalNotUnderReview";
|
|
2411
|
+
readonly inputs: readonly [{
|
|
2412
|
+
readonly name: "proposalId";
|
|
2413
|
+
readonly type: "bytes32";
|
|
2414
|
+
readonly internalType: "bytes32";
|
|
2415
|
+
}];
|
|
2416
|
+
}, {
|
|
2417
|
+
readonly type: "error";
|
|
2418
|
+
readonly name: "ProposalNotVotingInProgress";
|
|
2419
|
+
readonly inputs: readonly [{
|
|
2420
|
+
readonly name: "proposalId";
|
|
2421
|
+
readonly type: "bytes32";
|
|
2422
|
+
readonly internalType: "bytes32";
|
|
2423
|
+
}];
|
|
2424
|
+
}, {
|
|
2425
|
+
readonly type: "error";
|
|
2426
|
+
readonly name: "ProposalVotingEnded";
|
|
2427
|
+
readonly inputs: readonly [{
|
|
2428
|
+
readonly name: "proposalId";
|
|
2429
|
+
readonly type: "bytes32";
|
|
2430
|
+
readonly internalType: "bytes32";
|
|
2431
|
+
}];
|
|
2432
|
+
}, {
|
|
2433
|
+
readonly type: "error";
|
|
2434
|
+
readonly name: "ProposalVotingTallied";
|
|
2435
|
+
readonly inputs: readonly [{
|
|
2436
|
+
readonly name: "proposalId";
|
|
2437
|
+
readonly type: "bytes32";
|
|
2438
|
+
readonly internalType: "bytes32";
|
|
2439
|
+
}];
|
|
2440
|
+
}, {
|
|
2441
|
+
readonly type: "error";
|
|
2442
|
+
readonly name: "ProspectiveProposalNotExist";
|
|
2443
|
+
readonly inputs: readonly [{
|
|
2444
|
+
readonly name: "proposalId";
|
|
2445
|
+
readonly type: "bytes32";
|
|
2446
|
+
readonly internalType: "bytes32";
|
|
2447
|
+
}];
|
|
2448
|
+
}, {
|
|
2449
|
+
readonly type: "error";
|
|
2450
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
2451
|
+
readonly inputs: readonly [];
|
|
2452
|
+
}, {
|
|
2453
|
+
readonly type: "error";
|
|
2454
|
+
readonly name: "ReviewPendingProposalNotExist";
|
|
2455
|
+
readonly inputs: readonly [{
|
|
2456
|
+
readonly name: "proposalId";
|
|
2457
|
+
readonly type: "bytes32";
|
|
2458
|
+
readonly internalType: "bytes32";
|
|
2459
|
+
}];
|
|
2460
|
+
}, {
|
|
2461
|
+
readonly type: "error";
|
|
2462
|
+
readonly name: "SafeCastOverflowedUintDowncast";
|
|
2463
|
+
readonly inputs: readonly [{
|
|
2464
|
+
readonly name: "bits";
|
|
2465
|
+
readonly type: "uint8";
|
|
2466
|
+
readonly internalType: "uint8";
|
|
2467
|
+
}, {
|
|
2468
|
+
readonly name: "value";
|
|
2469
|
+
readonly type: "uint256";
|
|
2470
|
+
readonly internalType: "uint256";
|
|
2471
|
+
}];
|
|
2472
|
+
}, {
|
|
2473
|
+
readonly type: "error";
|
|
2474
|
+
readonly name: "SafeERC20FailedOperation";
|
|
2475
|
+
readonly inputs: readonly [{
|
|
2476
|
+
readonly name: "token";
|
|
2477
|
+
readonly type: "address";
|
|
2478
|
+
readonly internalType: "address";
|
|
2479
|
+
}];
|
|
2480
|
+
}, {
|
|
2481
|
+
readonly type: "error";
|
|
2482
|
+
readonly name: "Unauthorized";
|
|
2483
|
+
readonly inputs: readonly [{
|
|
2484
|
+
readonly name: "proposalId";
|
|
2485
|
+
readonly type: "bytes32";
|
|
2486
|
+
readonly internalType: "bytes32";
|
|
2487
|
+
}, {
|
|
2488
|
+
readonly name: "account";
|
|
2489
|
+
readonly type: "address";
|
|
2490
|
+
readonly internalType: "address";
|
|
2491
|
+
}, {
|
|
2492
|
+
readonly name: "proposer";
|
|
2493
|
+
readonly type: "address";
|
|
2494
|
+
readonly internalType: "address";
|
|
2495
|
+
}];
|
|
2496
|
+
}, {
|
|
2497
|
+
readonly type: "error";
|
|
2498
|
+
readonly name: "UnauthorizedEtherTransfer";
|
|
2499
|
+
readonly inputs: readonly [{
|
|
2500
|
+
readonly name: "from";
|
|
2501
|
+
readonly type: "address";
|
|
2502
|
+
readonly internalType: "address";
|
|
2503
|
+
}];
|
|
2504
|
+
}, {
|
|
2505
|
+
readonly type: "error";
|
|
2506
|
+
readonly name: "VotingProposalNotExist";
|
|
2507
|
+
readonly inputs: readonly [{
|
|
2508
|
+
readonly name: "proposalId";
|
|
2509
|
+
readonly type: "bytes32";
|
|
2510
|
+
readonly internalType: "bytes32";
|
|
2511
|
+
}];
|
|
2512
|
+
}, {
|
|
2513
|
+
readonly type: "error";
|
|
2514
|
+
readonly name: "ZeroAddress";
|
|
2515
|
+
readonly inputs: readonly [];
|
|
2516
|
+
}];
|
|
2517
|
+
//#endregion
|
|
2518
|
+
//#region src/governance.d.ts
|
|
2519
|
+
declare class Governance<TAbi extends Abi = typeof ABI> {
|
|
2520
|
+
constructor(governanceAddr: Address, chain?: Chain, rpcUrl?: string);
|
|
2521
|
+
getBaseParameters(): Promise<{
|
|
2522
|
+
allProposalWanAmount: bigint;
|
|
2523
|
+
allProposalLockingWanAmount: bigint;
|
|
2524
|
+
allProposalBurnedWanAmount: bigint;
|
|
2525
|
+
ethTransferGasLimit: bigint;
|
|
2526
|
+
minParticipationAmount: bigint;
|
|
2527
|
+
requestWanMultiplier: bigint;
|
|
2528
|
+
succeedThreshold: bigint;
|
|
2529
|
+
requireXpAmount: bigint;
|
|
2530
|
+
pledgeLockDuration: bigint;
|
|
2531
|
+
fundraisingDuration: bigint;
|
|
2532
|
+
voteDuration: bigint;
|
|
2533
|
+
xp: Address;
|
|
2534
|
+
stakingManager: Address;
|
|
2535
|
+
wanTreasury: Address;
|
|
2536
|
+
burnAddr: Address;
|
|
2537
|
+
proposalCount: bigint;
|
|
2538
|
+
reviewPendingProposalCount: bigint;
|
|
2539
|
+
prospectiveProposalCount: bigint;
|
|
2540
|
+
votingProposalCount: bigint;
|
|
2541
|
+
succeededProposalCount: bigint;
|
|
2542
|
+
failedProposalCount: bigint;
|
|
2543
|
+
canceledProposalCount: bigint;
|
|
2544
|
+
proposalWanMultiplierCount: bigint;
|
|
2545
|
+
votingWanMultiplierCount: bigint;
|
|
2546
|
+
}>;
|
|
2547
|
+
getProposalMultipliers(options: {
|
|
2548
|
+
proposalWanMultiplier: IndexRange | undefined;
|
|
2549
|
+
votingWanMultiplier: IndexRange | undefined;
|
|
2550
|
+
}): Promise<{
|
|
2551
|
+
proposalWanMultipliers: [PlegeMultiplierReturn] | [];
|
|
2552
|
+
votingWanMultipliers: [PlegeMultiplierReturn] | [];
|
|
2553
|
+
}>;
|
|
2554
|
+
getProposalCounts(): Promise<{
|
|
2555
|
+
allProposalCount: bigint;
|
|
2556
|
+
reviewPendingProposalCount: bigint;
|
|
2557
|
+
prospectiveProposalCount: bigint;
|
|
2558
|
+
votingProposalCount: bigint;
|
|
2559
|
+
succeededProposalCount: bigint;
|
|
2560
|
+
failedProposalCount: bigint;
|
|
2561
|
+
canceledProposalCount: bigint;
|
|
2562
|
+
}>;
|
|
2563
|
+
getActiveProposalCategoryCounts(): Promise<{
|
|
2564
|
+
fundingProposalCount: bigint;
|
|
2565
|
+
technicalProposalCount: bigint;
|
|
2566
|
+
}>;
|
|
2567
|
+
getAssetBalances(xpAddress: Address, userAddress: Address): Promise<{
|
|
2568
|
+
ethBalance: bigint;
|
|
2569
|
+
xpBalance: bigint;
|
|
2570
|
+
}>;
|
|
2571
|
+
getAccountProposalCount(account: Address): Promise<{
|
|
2572
|
+
proposerProposalCount: bigint;
|
|
2573
|
+
partnerProposalCount: bigint;
|
|
2574
|
+
voterProposalCount: bigint;
|
|
2575
|
+
}>;
|
|
2576
|
+
getFoundations(): Promise<Address[]>;
|
|
2577
|
+
getAccountProposalId(account: Address, requestWanAmount: bigint, category: ProposalCategory, pledgeType: PledgeType, description: Hex): Promise<Hex>;
|
|
2578
|
+
getProposalPartnerAndVoterCounts(proposalId: Hex): Promise<bigint>;
|
|
2579
|
+
getProposerProposals(proposerAddr: Address, indexRange: IndexRange): Promise<ProposalInfo[]>;
|
|
2580
|
+
getPartnerProposals(partnerAddr: Address, indexRange: IndexRange): Promise<{
|
|
2581
|
+
proposalInfo: ProposalInfo;
|
|
2582
|
+
partnerInfo: PartnerInfo;
|
|
2583
|
+
}[]>;
|
|
2584
|
+
getVoterProposals(voterAddr: Address, indexRange: IndexRange): Promise<{
|
|
2585
|
+
proposalInfo: ProposalInfo;
|
|
2586
|
+
voterInfo: VoterInfo;
|
|
2587
|
+
}[]>;
|
|
2588
|
+
getPartnerInfo(partnerAddr: Address, proposalIds: Hex[]): Promise<PartnerInfo[]>;
|
|
2589
|
+
getVoterInfo(voterAddr: Address, proposalIds: Hex[]): Promise<VoterInfo[]>;
|
|
2590
|
+
getReviewPendingProposals(indexRange: IndexRange): Promise<ProposalInfo>;
|
|
2591
|
+
getProspectiveProposals(indexRange: IndexRange): Promise<ProposalInfo[]>;
|
|
2592
|
+
getVotingProposals(indexRange: IndexRange): Promise<ProposalInfo[]>;
|
|
2593
|
+
getSucceedProposals(indexRange: IndexRange): Promise<ProposalInfo[]>;
|
|
2594
|
+
getFailedProposals(indexRange: IndexRange): Promise<ProposalInfo[]>;
|
|
2595
|
+
getProposalInfo(proposalId: Hex): Promise<ProposalInfo>;
|
|
2596
|
+
canRequestProposalWithdrawal(timestamp: bigint, params: CanRequestProposalWithdrawalParam[]): CanRequestProposalWithdrawalRetrunItem[];
|
|
2597
|
+
canClaimProposalWithdrawal(stakingManagerAddr: Address, timestamp: bigint, params: CanClaimProposalWithdrawalParam[]): Promise<boolean[]>;
|
|
2598
|
+
getUnstakeStatus(stakingManager: Address, requestId: bigint): Promise<UnstakeStatus>;
|
|
2599
|
+
buildTx<TFunctionName extends ContractFunctionName<TAbi, 'nonpayable' | 'payable'>>(account: Account | Address, functionName: TFunctionName, args: ContractFunctionArgs<TAbi, 'nonpayable' | 'payable', TFunctionName>, value?: bigint): Promise<PrepareTransactionRequestReturnType>;
|
|
2600
|
+
_buildTx(account: Address | Account, parameters: EncodeFunctionDataParameters, value?: bigint): Promise<PrepareTransactionRequestReturnType>;
|
|
2601
|
+
buildCreateProposalTx(account: Address | Account, pledgeWanAmount: bigint, requestWanAmount: bigint, category: ProposalCategory, pledgeType: PledgeType, description: Hex): Promise<PrepareTransactionRequestReturnType>;
|
|
2602
|
+
buildCancelProposalTx(account: Address | Account, proposalId: Hex, reason: Hex): Promise<PrepareTransactionRequestReturnType>;
|
|
2603
|
+
buildReviewProposalTx(account: Address | Account, proposalId: Hex, isApproved: boolean, reason: Hex): Promise<PrepareTransactionRequestReturnType>;
|
|
2604
|
+
buildContributeProposalTx(account: Address | Account, proposalId: Hex, pledgeWanAmount: bigint, pledgeType: PledgeType, reason: Hex): Promise<PrepareTransactionRequestReturnType>;
|
|
2605
|
+
buildVoteProposalTx(account: Address | Account, proposalId: Hex, pledgeWanAmount: bigint, lockDuration: bigint, pledgeType: PledgeType, voteType: VoteType, reason: Hex): Promise<PrepareTransactionRequestReturnType>;
|
|
2606
|
+
buildTallyProposalTx(account: Address | Account, proposalId: Hex): Promise<PrepareTransactionRequestReturnType>;
|
|
2607
|
+
buildRequestProposerWithdrawalTx(account: Address | Account, proposalId: Hex): Promise<PrepareTransactionRequestReturnType>;
|
|
2608
|
+
buildClaimProposerWithdrawalTx(account: Address | Account, proposalId: Hex, requestId: bigint): Promise<PrepareTransactionRequestReturnType>;
|
|
2609
|
+
buildRequestPartnerWithdrawalTx(account: Address | Account, proposalId: Hex): Promise<PrepareTransactionRequestReturnType>;
|
|
2610
|
+
buildClaimPartnerWithdrawalTx(account: Address | Account, proposalId: Hex, requestId: bigint): Promise<PrepareTransactionRequestReturnType>;
|
|
2611
|
+
buildRequestVoterWithdrawalTx(account: Address | Account, proposalId: Hex): Promise<PrepareTransactionRequestReturnType>;
|
|
2612
|
+
buildClaimVoterWithdrawalTx(account: Address | Account, proposalId: Hex, requestId: bigint): Promise<PrepareTransactionRequestReturnType>;
|
|
2613
|
+
buildUpdateFundraisingDurationTx(account: Address | Account, fundraisingDuration: bigint): Promise<PrepareTransactionRequestReturnType>;
|
|
2614
|
+
buildUpdateMinParticipationAmountTx(account: Address | Account, amount: bigint): Promise<PrepareTransactionRequestReturnType>;
|
|
2615
|
+
}
|
|
2616
|
+
//#endregion
|
|
2617
|
+
export { type CanClaimProposalWithdrawalParam, type CanRequestProposalWithdrawalParam, type CanRequestProposalWithdrawalRetrunItem, type FundInfo, Governance, type IndexRange, type PartnerInfo, PledgeType, type PlegeMultiplierReturn, ProposalCategory, type ProposalInfo, ProposalRole, ProposalState, type Tally, UnstakeStatus, VoteType, type VoterInfo, decodeProposalDescriptionData, encodeProposalDescriptionData, getVersionFromData, supportedProposalDescriptionDataTypeSchema };
|
|
2618
|
+
//# sourceMappingURL=index.d.mts.map
|