@gitmyabi/presale 1.0.1
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/README.md +108 -0
- package/contracts/PresaleV2_json.d.ts +2755 -0
- package/contracts/PresaleV2_json.js +2734 -0
- package/contracts/PresaleV2_json.ts +3611 -0
- package/contracts/TransparentUpgradeableProxy_json.d.ts +401 -0
- package/contracts/TransparentUpgradeableProxy_json.js +398 -0
- package/contracts/TransparentUpgradeableProxy_json.ts +542 -0
- package/contracts/index.d.ts +4 -0
- package/contracts/index.js +10 -0
- package/contracts/index.ts +5 -0
- package/index.d.ts +1 -0
- package/index.js +19 -0
- package/package.json +43 -0
|
@@ -0,0 +1,2734 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PresaleV2_json = exports.PresaleV2_jsonAbi = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
/**
|
|
6
|
+
* PresaleV2_json ABI
|
|
7
|
+
*
|
|
8
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
9
|
+
*/
|
|
10
|
+
exports.PresaleV2_jsonAbi = [
|
|
11
|
+
{
|
|
12
|
+
"inputs": [],
|
|
13
|
+
"stateMutability": "nonpayable",
|
|
14
|
+
"type": "constructor"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"anonymous": false,
|
|
18
|
+
"inputs": [
|
|
19
|
+
{
|
|
20
|
+
"indexed": false,
|
|
21
|
+
"internalType": "uint256",
|
|
22
|
+
"name": "prevValue",
|
|
23
|
+
"type": "uint256"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"indexed": false,
|
|
27
|
+
"internalType": "uint256",
|
|
28
|
+
"name": "newValue",
|
|
29
|
+
"type": "uint256"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"indexed": false,
|
|
33
|
+
"internalType": "uint256",
|
|
34
|
+
"name": "timestamp",
|
|
35
|
+
"type": "uint256"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"name": "ClaimStartUpdated",
|
|
39
|
+
"type": "event"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"anonymous": false,
|
|
43
|
+
"inputs": [
|
|
44
|
+
{
|
|
45
|
+
"indexed": false,
|
|
46
|
+
"internalType": "uint8",
|
|
47
|
+
"name": "version",
|
|
48
|
+
"type": "uint8"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"name": "Initialized",
|
|
52
|
+
"type": "event"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"anonymous": false,
|
|
56
|
+
"inputs": [
|
|
57
|
+
{
|
|
58
|
+
"indexed": false,
|
|
59
|
+
"internalType": "uint256",
|
|
60
|
+
"name": "prevValue",
|
|
61
|
+
"type": "uint256"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"indexed": false,
|
|
65
|
+
"internalType": "uint256",
|
|
66
|
+
"name": "newValue",
|
|
67
|
+
"type": "uint256"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"indexed": false,
|
|
71
|
+
"internalType": "uint256",
|
|
72
|
+
"name": "timestamp",
|
|
73
|
+
"type": "uint256"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"name": "MaxTokensUpdated",
|
|
77
|
+
"type": "event"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"anonymous": false,
|
|
81
|
+
"inputs": [
|
|
82
|
+
{
|
|
83
|
+
"indexed": true,
|
|
84
|
+
"internalType": "address",
|
|
85
|
+
"name": "previousOwner",
|
|
86
|
+
"type": "address"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"indexed": true,
|
|
90
|
+
"internalType": "address",
|
|
91
|
+
"name": "newOwner",
|
|
92
|
+
"type": "address"
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"name": "OwnershipTransferred",
|
|
96
|
+
"type": "event"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"anonymous": false,
|
|
100
|
+
"inputs": [
|
|
101
|
+
{
|
|
102
|
+
"indexed": false,
|
|
103
|
+
"internalType": "address",
|
|
104
|
+
"name": "account",
|
|
105
|
+
"type": "address"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"name": "Paused",
|
|
109
|
+
"type": "event"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"anonymous": false,
|
|
113
|
+
"inputs": [
|
|
114
|
+
{
|
|
115
|
+
"indexed": false,
|
|
116
|
+
"internalType": "uint256",
|
|
117
|
+
"name": "_start",
|
|
118
|
+
"type": "uint256"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"indexed": false,
|
|
122
|
+
"internalType": "uint256",
|
|
123
|
+
"name": "_end",
|
|
124
|
+
"type": "uint256"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"indexed": false,
|
|
128
|
+
"internalType": "uint256",
|
|
129
|
+
"name": "timestamp",
|
|
130
|
+
"type": "uint256"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"name": "SaleTimeSet",
|
|
134
|
+
"type": "event"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"anonymous": false,
|
|
138
|
+
"inputs": [
|
|
139
|
+
{
|
|
140
|
+
"indexed": true,
|
|
141
|
+
"internalType": "bytes32",
|
|
142
|
+
"name": "key",
|
|
143
|
+
"type": "bytes32"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"indexed": false,
|
|
147
|
+
"internalType": "uint256",
|
|
148
|
+
"name": "prevValue",
|
|
149
|
+
"type": "uint256"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"indexed": false,
|
|
153
|
+
"internalType": "uint256",
|
|
154
|
+
"name": "newValue",
|
|
155
|
+
"type": "uint256"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"indexed": false,
|
|
159
|
+
"internalType": "uint256",
|
|
160
|
+
"name": "timestamp",
|
|
161
|
+
"type": "uint256"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"name": "SaleTimeUpdated",
|
|
165
|
+
"type": "event"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"anonymous": false,
|
|
169
|
+
"inputs": [
|
|
170
|
+
{
|
|
171
|
+
"indexed": true,
|
|
172
|
+
"internalType": "address",
|
|
173
|
+
"name": "token",
|
|
174
|
+
"type": "address"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"indexed": false,
|
|
178
|
+
"internalType": "uint256",
|
|
179
|
+
"name": "noOfTokens",
|
|
180
|
+
"type": "uint256"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"indexed": false,
|
|
184
|
+
"internalType": "uint256",
|
|
185
|
+
"name": "timestamp",
|
|
186
|
+
"type": "uint256"
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
"name": "TokensAdded",
|
|
190
|
+
"type": "event"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"anonymous": false,
|
|
194
|
+
"inputs": [
|
|
195
|
+
{
|
|
196
|
+
"indexed": true,
|
|
197
|
+
"internalType": "address",
|
|
198
|
+
"name": "user",
|
|
199
|
+
"type": "address"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"indexed": true,
|
|
203
|
+
"internalType": "uint256",
|
|
204
|
+
"name": "tokensBought",
|
|
205
|
+
"type": "uint256"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"indexed": true,
|
|
209
|
+
"internalType": "address",
|
|
210
|
+
"name": "purchaseToken",
|
|
211
|
+
"type": "address"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"indexed": false,
|
|
215
|
+
"internalType": "uint256",
|
|
216
|
+
"name": "amountPaid",
|
|
217
|
+
"type": "uint256"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"indexed": false,
|
|
221
|
+
"internalType": "uint256",
|
|
222
|
+
"name": "usdEq",
|
|
223
|
+
"type": "uint256"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"indexed": false,
|
|
227
|
+
"internalType": "uint256",
|
|
228
|
+
"name": "timestamp",
|
|
229
|
+
"type": "uint256"
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
"name": "TokensBought",
|
|
233
|
+
"type": "event"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"anonymous": false,
|
|
237
|
+
"inputs": [
|
|
238
|
+
{
|
|
239
|
+
"indexed": true,
|
|
240
|
+
"internalType": "address",
|
|
241
|
+
"name": "user",
|
|
242
|
+
"type": "address"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"indexed": true,
|
|
246
|
+
"internalType": "uint256",
|
|
247
|
+
"name": "tokensBought",
|
|
248
|
+
"type": "uint256"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"indexed": true,
|
|
252
|
+
"internalType": "address",
|
|
253
|
+
"name": "purchaseToken",
|
|
254
|
+
"type": "address"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"indexed": false,
|
|
258
|
+
"internalType": "uint256",
|
|
259
|
+
"name": "amountPaid",
|
|
260
|
+
"type": "uint256"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"indexed": false,
|
|
264
|
+
"internalType": "uint256",
|
|
265
|
+
"name": "usdEq",
|
|
266
|
+
"type": "uint256"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"indexed": false,
|
|
270
|
+
"internalType": "uint256",
|
|
271
|
+
"name": "timestamp",
|
|
272
|
+
"type": "uint256"
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
"name": "TokensBoughtAndStaked",
|
|
276
|
+
"type": "event"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"anonymous": false,
|
|
280
|
+
"inputs": [
|
|
281
|
+
{
|
|
282
|
+
"indexed": true,
|
|
283
|
+
"internalType": "address",
|
|
284
|
+
"name": "user",
|
|
285
|
+
"type": "address"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"indexed": false,
|
|
289
|
+
"internalType": "uint256",
|
|
290
|
+
"name": "amount",
|
|
291
|
+
"type": "uint256"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"indexed": false,
|
|
295
|
+
"internalType": "uint256",
|
|
296
|
+
"name": "timestamp",
|
|
297
|
+
"type": "uint256"
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
"name": "TokensClaimed",
|
|
301
|
+
"type": "event"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"anonymous": false,
|
|
305
|
+
"inputs": [
|
|
306
|
+
{
|
|
307
|
+
"indexed": true,
|
|
308
|
+
"internalType": "address",
|
|
309
|
+
"name": "user",
|
|
310
|
+
"type": "address"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"indexed": false,
|
|
314
|
+
"internalType": "uint256",
|
|
315
|
+
"name": "amount",
|
|
316
|
+
"type": "uint256"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"indexed": false,
|
|
320
|
+
"internalType": "uint256",
|
|
321
|
+
"name": "timestamp",
|
|
322
|
+
"type": "uint256"
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
"name": "TokensClaimedAndStaked",
|
|
326
|
+
"type": "event"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"anonymous": false,
|
|
330
|
+
"inputs": [
|
|
331
|
+
{
|
|
332
|
+
"indexed": false,
|
|
333
|
+
"internalType": "address",
|
|
334
|
+
"name": "account",
|
|
335
|
+
"type": "address"
|
|
336
|
+
}
|
|
337
|
+
],
|
|
338
|
+
"name": "Unpaused",
|
|
339
|
+
"type": "event"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"inputs": [],
|
|
343
|
+
"name": "USDCInterface",
|
|
344
|
+
"outputs": [
|
|
345
|
+
{
|
|
346
|
+
"internalType": "contract IERC20Upgradeable",
|
|
347
|
+
"name": "",
|
|
348
|
+
"type": "address"
|
|
349
|
+
}
|
|
350
|
+
],
|
|
351
|
+
"stateMutability": "view",
|
|
352
|
+
"type": "function"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"inputs": [],
|
|
356
|
+
"name": "USDTInterface",
|
|
357
|
+
"outputs": [
|
|
358
|
+
{
|
|
359
|
+
"internalType": "contract IERC20Upgradeable",
|
|
360
|
+
"name": "",
|
|
361
|
+
"type": "address"
|
|
362
|
+
}
|
|
363
|
+
],
|
|
364
|
+
"stateMutability": "view",
|
|
365
|
+
"type": "function"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"inputs": [],
|
|
369
|
+
"name": "admin",
|
|
370
|
+
"outputs": [
|
|
371
|
+
{
|
|
372
|
+
"internalType": "address",
|
|
373
|
+
"name": "",
|
|
374
|
+
"type": "address"
|
|
375
|
+
}
|
|
376
|
+
],
|
|
377
|
+
"stateMutability": "view",
|
|
378
|
+
"type": "function"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"inputs": [],
|
|
382
|
+
"name": "aggregatorInterface",
|
|
383
|
+
"outputs": [
|
|
384
|
+
{
|
|
385
|
+
"internalType": "contract Aggregator",
|
|
386
|
+
"name": "",
|
|
387
|
+
"type": "address"
|
|
388
|
+
}
|
|
389
|
+
],
|
|
390
|
+
"stateMutability": "view",
|
|
391
|
+
"type": "function"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"inputs": [],
|
|
395
|
+
"name": "baseDecimals",
|
|
396
|
+
"outputs": [
|
|
397
|
+
{
|
|
398
|
+
"internalType": "uint256",
|
|
399
|
+
"name": "",
|
|
400
|
+
"type": "uint256"
|
|
401
|
+
}
|
|
402
|
+
],
|
|
403
|
+
"stateMutability": "view",
|
|
404
|
+
"type": "function"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"inputs": [
|
|
408
|
+
{
|
|
409
|
+
"internalType": "address[]",
|
|
410
|
+
"name": "_usersToBlacklist",
|
|
411
|
+
"type": "address[]"
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
"name": "blacklistUsers",
|
|
415
|
+
"outputs": [],
|
|
416
|
+
"stateMutability": "nonpayable",
|
|
417
|
+
"type": "function"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"inputs": [
|
|
421
|
+
{
|
|
422
|
+
"internalType": "address",
|
|
423
|
+
"name": "_user",
|
|
424
|
+
"type": "address"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"internalType": "uint256",
|
|
428
|
+
"name": "_amount",
|
|
429
|
+
"type": "uint256"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"internalType": "bool",
|
|
433
|
+
"name": "stake",
|
|
434
|
+
"type": "bool"
|
|
435
|
+
}
|
|
436
|
+
],
|
|
437
|
+
"name": "buyWithETHWert",
|
|
438
|
+
"outputs": [
|
|
439
|
+
{
|
|
440
|
+
"internalType": "bool",
|
|
441
|
+
"name": "",
|
|
442
|
+
"type": "bool"
|
|
443
|
+
}
|
|
444
|
+
],
|
|
445
|
+
"stateMutability": "payable",
|
|
446
|
+
"type": "function"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"inputs": [
|
|
450
|
+
{
|
|
451
|
+
"internalType": "uint256",
|
|
452
|
+
"name": "amount",
|
|
453
|
+
"type": "uint256"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"internalType": "bool",
|
|
457
|
+
"name": "stake",
|
|
458
|
+
"type": "bool"
|
|
459
|
+
}
|
|
460
|
+
],
|
|
461
|
+
"name": "buyWithEth",
|
|
462
|
+
"outputs": [
|
|
463
|
+
{
|
|
464
|
+
"internalType": "bool",
|
|
465
|
+
"name": "",
|
|
466
|
+
"type": "bool"
|
|
467
|
+
}
|
|
468
|
+
],
|
|
469
|
+
"stateMutability": "payable",
|
|
470
|
+
"type": "function"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"inputs": [
|
|
474
|
+
{
|
|
475
|
+
"internalType": "uint256",
|
|
476
|
+
"name": "amount",
|
|
477
|
+
"type": "uint256"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"internalType": "bool",
|
|
481
|
+
"name": "stake",
|
|
482
|
+
"type": "bool"
|
|
483
|
+
}
|
|
484
|
+
],
|
|
485
|
+
"name": "buyWithUSDC",
|
|
486
|
+
"outputs": [
|
|
487
|
+
{
|
|
488
|
+
"internalType": "bool",
|
|
489
|
+
"name": "",
|
|
490
|
+
"type": "bool"
|
|
491
|
+
}
|
|
492
|
+
],
|
|
493
|
+
"stateMutability": "nonpayable",
|
|
494
|
+
"type": "function"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"inputs": [
|
|
498
|
+
{
|
|
499
|
+
"internalType": "uint256",
|
|
500
|
+
"name": "amount",
|
|
501
|
+
"type": "uint256"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"internalType": "bool",
|
|
505
|
+
"name": "stake",
|
|
506
|
+
"type": "bool"
|
|
507
|
+
}
|
|
508
|
+
],
|
|
509
|
+
"name": "buyWithUSDT",
|
|
510
|
+
"outputs": [
|
|
511
|
+
{
|
|
512
|
+
"internalType": "bool",
|
|
513
|
+
"name": "",
|
|
514
|
+
"type": "bool"
|
|
515
|
+
}
|
|
516
|
+
],
|
|
517
|
+
"stateMutability": "nonpayable",
|
|
518
|
+
"type": "function"
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"inputs": [
|
|
522
|
+
{
|
|
523
|
+
"internalType": "uint256",
|
|
524
|
+
"name": "_amount",
|
|
525
|
+
"type": "uint256"
|
|
526
|
+
}
|
|
527
|
+
],
|
|
528
|
+
"name": "calculatePrice",
|
|
529
|
+
"outputs": [
|
|
530
|
+
{
|
|
531
|
+
"internalType": "uint256",
|
|
532
|
+
"name": "",
|
|
533
|
+
"type": "uint256"
|
|
534
|
+
}
|
|
535
|
+
],
|
|
536
|
+
"stateMutability": "view",
|
|
537
|
+
"type": "function"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"inputs": [
|
|
541
|
+
{
|
|
542
|
+
"internalType": "uint256",
|
|
543
|
+
"name": "_claimStart",
|
|
544
|
+
"type": "uint256"
|
|
545
|
+
}
|
|
546
|
+
],
|
|
547
|
+
"name": "changeClaimStart",
|
|
548
|
+
"outputs": [
|
|
549
|
+
{
|
|
550
|
+
"internalType": "bool",
|
|
551
|
+
"name": "",
|
|
552
|
+
"type": "bool"
|
|
553
|
+
}
|
|
554
|
+
],
|
|
555
|
+
"stateMutability": "nonpayable",
|
|
556
|
+
"type": "function"
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"inputs": [
|
|
560
|
+
{
|
|
561
|
+
"internalType": "uint256",
|
|
562
|
+
"name": "_maxTokensToBuy",
|
|
563
|
+
"type": "uint256"
|
|
564
|
+
}
|
|
565
|
+
],
|
|
566
|
+
"name": "changeMaxTokensToBuy",
|
|
567
|
+
"outputs": [],
|
|
568
|
+
"stateMutability": "nonpayable",
|
|
569
|
+
"type": "function"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"inputs": [
|
|
573
|
+
{
|
|
574
|
+
"internalType": "address",
|
|
575
|
+
"name": "_newPaymentWallet",
|
|
576
|
+
"type": "address"
|
|
577
|
+
}
|
|
578
|
+
],
|
|
579
|
+
"name": "changePaymentWallet",
|
|
580
|
+
"outputs": [],
|
|
581
|
+
"stateMutability": "nonpayable",
|
|
582
|
+
"type": "function"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"inputs": [
|
|
586
|
+
{
|
|
587
|
+
"internalType": "uint256[][3]",
|
|
588
|
+
"name": "_rounds",
|
|
589
|
+
"type": "uint256[][3]"
|
|
590
|
+
}
|
|
591
|
+
],
|
|
592
|
+
"name": "changeRoundsData",
|
|
593
|
+
"outputs": [],
|
|
594
|
+
"stateMutability": "nonpayable",
|
|
595
|
+
"type": "function"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"inputs": [
|
|
599
|
+
{
|
|
600
|
+
"internalType": "uint256",
|
|
601
|
+
"name": "_startTime",
|
|
602
|
+
"type": "uint256"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"internalType": "uint256",
|
|
606
|
+
"name": "_endTime",
|
|
607
|
+
"type": "uint256"
|
|
608
|
+
}
|
|
609
|
+
],
|
|
610
|
+
"name": "changeSaleTimes",
|
|
611
|
+
"outputs": [],
|
|
612
|
+
"stateMutability": "nonpayable",
|
|
613
|
+
"type": "function"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"inputs": [],
|
|
617
|
+
"name": "checkPoint",
|
|
618
|
+
"outputs": [
|
|
619
|
+
{
|
|
620
|
+
"internalType": "uint256",
|
|
621
|
+
"name": "",
|
|
622
|
+
"type": "uint256"
|
|
623
|
+
}
|
|
624
|
+
],
|
|
625
|
+
"stateMutability": "view",
|
|
626
|
+
"type": "function"
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"inputs": [],
|
|
630
|
+
"name": "claim",
|
|
631
|
+
"outputs": [
|
|
632
|
+
{
|
|
633
|
+
"internalType": "bool",
|
|
634
|
+
"name": "",
|
|
635
|
+
"type": "bool"
|
|
636
|
+
}
|
|
637
|
+
],
|
|
638
|
+
"stateMutability": "nonpayable",
|
|
639
|
+
"type": "function"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"inputs": [],
|
|
643
|
+
"name": "claimAndStake",
|
|
644
|
+
"outputs": [
|
|
645
|
+
{
|
|
646
|
+
"internalType": "bool",
|
|
647
|
+
"name": "",
|
|
648
|
+
"type": "bool"
|
|
649
|
+
}
|
|
650
|
+
],
|
|
651
|
+
"stateMutability": "nonpayable",
|
|
652
|
+
"type": "function"
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
"inputs": [],
|
|
656
|
+
"name": "claimStart",
|
|
657
|
+
"outputs": [
|
|
658
|
+
{
|
|
659
|
+
"internalType": "uint256",
|
|
660
|
+
"name": "",
|
|
661
|
+
"type": "uint256"
|
|
662
|
+
}
|
|
663
|
+
],
|
|
664
|
+
"stateMutability": "view",
|
|
665
|
+
"type": "function"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"inputs": [],
|
|
669
|
+
"name": "currentStep",
|
|
670
|
+
"outputs": [
|
|
671
|
+
{
|
|
672
|
+
"internalType": "uint256",
|
|
673
|
+
"name": "",
|
|
674
|
+
"type": "uint256"
|
|
675
|
+
}
|
|
676
|
+
],
|
|
677
|
+
"stateMutability": "view",
|
|
678
|
+
"type": "function"
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"inputs": [],
|
|
682
|
+
"name": "dynamicTimeFlag",
|
|
683
|
+
"outputs": [
|
|
684
|
+
{
|
|
685
|
+
"internalType": "bool",
|
|
686
|
+
"name": "",
|
|
687
|
+
"type": "bool"
|
|
688
|
+
}
|
|
689
|
+
],
|
|
690
|
+
"stateMutability": "view",
|
|
691
|
+
"type": "function"
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"inputs": [],
|
|
695
|
+
"name": "endTime",
|
|
696
|
+
"outputs": [
|
|
697
|
+
{
|
|
698
|
+
"internalType": "uint256",
|
|
699
|
+
"name": "",
|
|
700
|
+
"type": "uint256"
|
|
701
|
+
}
|
|
702
|
+
],
|
|
703
|
+
"stateMutability": "view",
|
|
704
|
+
"type": "function"
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"inputs": [
|
|
708
|
+
{
|
|
709
|
+
"internalType": "uint256",
|
|
710
|
+
"name": "amount",
|
|
711
|
+
"type": "uint256"
|
|
712
|
+
}
|
|
713
|
+
],
|
|
714
|
+
"name": "ethBuyHelper",
|
|
715
|
+
"outputs": [
|
|
716
|
+
{
|
|
717
|
+
"internalType": "uint256",
|
|
718
|
+
"name": "ethAmount",
|
|
719
|
+
"type": "uint256"
|
|
720
|
+
}
|
|
721
|
+
],
|
|
722
|
+
"stateMutability": "view",
|
|
723
|
+
"type": "function"
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"inputs": [],
|
|
727
|
+
"name": "getLatestPrice",
|
|
728
|
+
"outputs": [
|
|
729
|
+
{
|
|
730
|
+
"internalType": "uint256",
|
|
731
|
+
"name": "",
|
|
732
|
+
"type": "uint256"
|
|
733
|
+
}
|
|
734
|
+
],
|
|
735
|
+
"stateMutability": "view",
|
|
736
|
+
"type": "function"
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"inputs": [
|
|
740
|
+
{
|
|
741
|
+
"internalType": "address",
|
|
742
|
+
"name": "",
|
|
743
|
+
"type": "address"
|
|
744
|
+
}
|
|
745
|
+
],
|
|
746
|
+
"name": "hasClaimed",
|
|
747
|
+
"outputs": [
|
|
748
|
+
{
|
|
749
|
+
"internalType": "bool",
|
|
750
|
+
"name": "",
|
|
751
|
+
"type": "bool"
|
|
752
|
+
}
|
|
753
|
+
],
|
|
754
|
+
"stateMutability": "view",
|
|
755
|
+
"type": "function"
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"inputs": [],
|
|
759
|
+
"name": "incrementCurrentStep",
|
|
760
|
+
"outputs": [],
|
|
761
|
+
"stateMutability": "nonpayable",
|
|
762
|
+
"type": "function"
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"inputs": [
|
|
766
|
+
{
|
|
767
|
+
"internalType": "address",
|
|
768
|
+
"name": "",
|
|
769
|
+
"type": "address"
|
|
770
|
+
}
|
|
771
|
+
],
|
|
772
|
+
"name": "isBlacklisted",
|
|
773
|
+
"outputs": [
|
|
774
|
+
{
|
|
775
|
+
"internalType": "bool",
|
|
776
|
+
"name": "",
|
|
777
|
+
"type": "bool"
|
|
778
|
+
}
|
|
779
|
+
],
|
|
780
|
+
"stateMutability": "view",
|
|
781
|
+
"type": "function"
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"inputs": [
|
|
785
|
+
{
|
|
786
|
+
"internalType": "address",
|
|
787
|
+
"name": "",
|
|
788
|
+
"type": "address"
|
|
789
|
+
}
|
|
790
|
+
],
|
|
791
|
+
"name": "isWhitelisted",
|
|
792
|
+
"outputs": [
|
|
793
|
+
{
|
|
794
|
+
"internalType": "bool",
|
|
795
|
+
"name": "",
|
|
796
|
+
"type": "bool"
|
|
797
|
+
}
|
|
798
|
+
],
|
|
799
|
+
"stateMutability": "view",
|
|
800
|
+
"type": "function"
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"inputs": [],
|
|
804
|
+
"name": "maxTokensToBuy",
|
|
805
|
+
"outputs": [
|
|
806
|
+
{
|
|
807
|
+
"internalType": "uint256",
|
|
808
|
+
"name": "",
|
|
809
|
+
"type": "uint256"
|
|
810
|
+
}
|
|
811
|
+
],
|
|
812
|
+
"stateMutability": "view",
|
|
813
|
+
"type": "function"
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"inputs": [],
|
|
817
|
+
"name": "owner",
|
|
818
|
+
"outputs": [
|
|
819
|
+
{
|
|
820
|
+
"internalType": "address",
|
|
821
|
+
"name": "",
|
|
822
|
+
"type": "address"
|
|
823
|
+
}
|
|
824
|
+
],
|
|
825
|
+
"stateMutability": "view",
|
|
826
|
+
"type": "function"
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"inputs": [],
|
|
830
|
+
"name": "pause",
|
|
831
|
+
"outputs": [],
|
|
832
|
+
"stateMutability": "nonpayable",
|
|
833
|
+
"type": "function"
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
"inputs": [],
|
|
837
|
+
"name": "paused",
|
|
838
|
+
"outputs": [
|
|
839
|
+
{
|
|
840
|
+
"internalType": "bool",
|
|
841
|
+
"name": "",
|
|
842
|
+
"type": "bool"
|
|
843
|
+
}
|
|
844
|
+
],
|
|
845
|
+
"stateMutability": "view",
|
|
846
|
+
"type": "function"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"inputs": [],
|
|
850
|
+
"name": "paymentWallet",
|
|
851
|
+
"outputs": [
|
|
852
|
+
{
|
|
853
|
+
"internalType": "address",
|
|
854
|
+
"name": "",
|
|
855
|
+
"type": "address"
|
|
856
|
+
}
|
|
857
|
+
],
|
|
858
|
+
"stateMutability": "view",
|
|
859
|
+
"type": "function"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"inputs": [
|
|
863
|
+
{
|
|
864
|
+
"internalType": "uint256",
|
|
865
|
+
"name": "",
|
|
866
|
+
"type": "uint256"
|
|
867
|
+
}
|
|
868
|
+
],
|
|
869
|
+
"name": "percentages",
|
|
870
|
+
"outputs": [
|
|
871
|
+
{
|
|
872
|
+
"internalType": "uint256",
|
|
873
|
+
"name": "",
|
|
874
|
+
"type": "uint256"
|
|
875
|
+
}
|
|
876
|
+
],
|
|
877
|
+
"stateMutability": "view",
|
|
878
|
+
"type": "function"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"inputs": [
|
|
882
|
+
{
|
|
883
|
+
"internalType": "uint256",
|
|
884
|
+
"name": "",
|
|
885
|
+
"type": "uint256"
|
|
886
|
+
}
|
|
887
|
+
],
|
|
888
|
+
"name": "prevCheckpoints",
|
|
889
|
+
"outputs": [
|
|
890
|
+
{
|
|
891
|
+
"internalType": "uint256",
|
|
892
|
+
"name": "",
|
|
893
|
+
"type": "uint256"
|
|
894
|
+
}
|
|
895
|
+
],
|
|
896
|
+
"stateMutability": "view",
|
|
897
|
+
"type": "function"
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
"inputs": [
|
|
901
|
+
{
|
|
902
|
+
"internalType": "uint256",
|
|
903
|
+
"name": "",
|
|
904
|
+
"type": "uint256"
|
|
905
|
+
}
|
|
906
|
+
],
|
|
907
|
+
"name": "remainingTokensTracker",
|
|
908
|
+
"outputs": [
|
|
909
|
+
{
|
|
910
|
+
"internalType": "uint256",
|
|
911
|
+
"name": "",
|
|
912
|
+
"type": "uint256"
|
|
913
|
+
}
|
|
914
|
+
],
|
|
915
|
+
"stateMutability": "view",
|
|
916
|
+
"type": "function"
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
"inputs": [
|
|
920
|
+
{
|
|
921
|
+
"internalType": "address[]",
|
|
922
|
+
"name": "_userToRemoveFromBlacklist",
|
|
923
|
+
"type": "address[]"
|
|
924
|
+
}
|
|
925
|
+
],
|
|
926
|
+
"name": "removeFromBlacklist",
|
|
927
|
+
"outputs": [],
|
|
928
|
+
"stateMutability": "nonpayable",
|
|
929
|
+
"type": "function"
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"inputs": [
|
|
933
|
+
{
|
|
934
|
+
"internalType": "address[]",
|
|
935
|
+
"name": "_userToRemoveFromWhitelist",
|
|
936
|
+
"type": "address[]"
|
|
937
|
+
}
|
|
938
|
+
],
|
|
939
|
+
"name": "removeFromWhitelist",
|
|
940
|
+
"outputs": [],
|
|
941
|
+
"stateMutability": "nonpayable",
|
|
942
|
+
"type": "function"
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
"inputs": [
|
|
946
|
+
{
|
|
947
|
+
"internalType": "address[]",
|
|
948
|
+
"name": "_addressesToRemoveFromWhitelist",
|
|
949
|
+
"type": "address[]"
|
|
950
|
+
}
|
|
951
|
+
],
|
|
952
|
+
"name": "removeFromWhitelistForWERT",
|
|
953
|
+
"outputs": [],
|
|
954
|
+
"stateMutability": "nonpayable",
|
|
955
|
+
"type": "function"
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"inputs": [],
|
|
959
|
+
"name": "renounceOwnership",
|
|
960
|
+
"outputs": [],
|
|
961
|
+
"stateMutability": "nonpayable",
|
|
962
|
+
"type": "function"
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"inputs": [
|
|
966
|
+
{
|
|
967
|
+
"internalType": "uint256",
|
|
968
|
+
"name": "_no",
|
|
969
|
+
"type": "uint256"
|
|
970
|
+
}
|
|
971
|
+
],
|
|
972
|
+
"name": "roundDetails",
|
|
973
|
+
"outputs": [
|
|
974
|
+
{
|
|
975
|
+
"internalType": "uint256[]",
|
|
976
|
+
"name": "",
|
|
977
|
+
"type": "uint256[]"
|
|
978
|
+
}
|
|
979
|
+
],
|
|
980
|
+
"stateMutability": "view",
|
|
981
|
+
"type": "function"
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"inputs": [
|
|
985
|
+
{
|
|
986
|
+
"internalType": "uint256",
|
|
987
|
+
"name": "",
|
|
988
|
+
"type": "uint256"
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
"internalType": "uint256",
|
|
992
|
+
"name": "",
|
|
993
|
+
"type": "uint256"
|
|
994
|
+
}
|
|
995
|
+
],
|
|
996
|
+
"name": "rounds",
|
|
997
|
+
"outputs": [
|
|
998
|
+
{
|
|
999
|
+
"internalType": "uint256",
|
|
1000
|
+
"name": "",
|
|
1001
|
+
"type": "uint256"
|
|
1002
|
+
}
|
|
1003
|
+
],
|
|
1004
|
+
"stateMutability": "view",
|
|
1005
|
+
"type": "function"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"inputs": [],
|
|
1009
|
+
"name": "saleToken",
|
|
1010
|
+
"outputs": [
|
|
1011
|
+
{
|
|
1012
|
+
"internalType": "address",
|
|
1013
|
+
"name": "",
|
|
1014
|
+
"type": "address"
|
|
1015
|
+
}
|
|
1016
|
+
],
|
|
1017
|
+
"stateMutability": "view",
|
|
1018
|
+
"type": "function"
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"inputs": [
|
|
1022
|
+
{
|
|
1023
|
+
"internalType": "address",
|
|
1024
|
+
"name": "_admin",
|
|
1025
|
+
"type": "address"
|
|
1026
|
+
}
|
|
1027
|
+
],
|
|
1028
|
+
"name": "setAdmin",
|
|
1029
|
+
"outputs": [],
|
|
1030
|
+
"stateMutability": "nonpayable",
|
|
1031
|
+
"type": "function"
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"inputs": [
|
|
1035
|
+
{
|
|
1036
|
+
"internalType": "bool",
|
|
1037
|
+
"name": "_status",
|
|
1038
|
+
"type": "bool"
|
|
1039
|
+
}
|
|
1040
|
+
],
|
|
1041
|
+
"name": "setClaimWhitelistStatus",
|
|
1042
|
+
"outputs": [],
|
|
1043
|
+
"stateMutability": "nonpayable",
|
|
1044
|
+
"type": "function"
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
"inputs": [
|
|
1048
|
+
{
|
|
1049
|
+
"internalType": "uint256",
|
|
1050
|
+
"name": "_step",
|
|
1051
|
+
"type": "uint256"
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
"internalType": "uint256",
|
|
1055
|
+
"name": "_checkpoint",
|
|
1056
|
+
"type": "uint256"
|
|
1057
|
+
}
|
|
1058
|
+
],
|
|
1059
|
+
"name": "setCurrentStep",
|
|
1060
|
+
"outputs": [],
|
|
1061
|
+
"stateMutability": "nonpayable",
|
|
1062
|
+
"type": "function"
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
"inputs": [
|
|
1066
|
+
{
|
|
1067
|
+
"internalType": "bool",
|
|
1068
|
+
"name": "_dynamicTimeFlag",
|
|
1069
|
+
"type": "bool"
|
|
1070
|
+
}
|
|
1071
|
+
],
|
|
1072
|
+
"name": "setDynamicTimeFlag",
|
|
1073
|
+
"outputs": [],
|
|
1074
|
+
"stateMutability": "nonpayable",
|
|
1075
|
+
"type": "function"
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"inputs": [
|
|
1079
|
+
{
|
|
1080
|
+
"internalType": "uint256[]",
|
|
1081
|
+
"name": "_unsoldTokens",
|
|
1082
|
+
"type": "uint256[]"
|
|
1083
|
+
}
|
|
1084
|
+
],
|
|
1085
|
+
"name": "setRemainingTokensArray",
|
|
1086
|
+
"outputs": [],
|
|
1087
|
+
"stateMutability": "nonpayable",
|
|
1088
|
+
"type": "function"
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
"inputs": [
|
|
1092
|
+
{
|
|
1093
|
+
"internalType": "address[]",
|
|
1094
|
+
"name": "_wallets",
|
|
1095
|
+
"type": "address[]"
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"internalType": "uint256[]",
|
|
1099
|
+
"name": "_percentages",
|
|
1100
|
+
"type": "uint256[]"
|
|
1101
|
+
}
|
|
1102
|
+
],
|
|
1103
|
+
"name": "setSplits",
|
|
1104
|
+
"outputs": [],
|
|
1105
|
+
"stateMutability": "nonpayable",
|
|
1106
|
+
"type": "function"
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
"inputs": [
|
|
1110
|
+
{
|
|
1111
|
+
"internalType": "bool",
|
|
1112
|
+
"name": "_status",
|
|
1113
|
+
"type": "bool"
|
|
1114
|
+
}
|
|
1115
|
+
],
|
|
1116
|
+
"name": "setStakeingWhitelistStatus",
|
|
1117
|
+
"outputs": [],
|
|
1118
|
+
"stateMutability": "nonpayable",
|
|
1119
|
+
"type": "function"
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
"inputs": [
|
|
1123
|
+
{
|
|
1124
|
+
"internalType": "address",
|
|
1125
|
+
"name": "_stakingManagerAddress",
|
|
1126
|
+
"type": "address"
|
|
1127
|
+
}
|
|
1128
|
+
],
|
|
1129
|
+
"name": "setStakingManager",
|
|
1130
|
+
"outputs": [],
|
|
1131
|
+
"stateMutability": "nonpayable",
|
|
1132
|
+
"type": "function"
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
"inputs": [
|
|
1136
|
+
{
|
|
1137
|
+
"internalType": "uint256",
|
|
1138
|
+
"name": "_timeConstant",
|
|
1139
|
+
"type": "uint256"
|
|
1140
|
+
}
|
|
1141
|
+
],
|
|
1142
|
+
"name": "setTimeConstant",
|
|
1143
|
+
"outputs": [],
|
|
1144
|
+
"stateMutability": "nonpayable",
|
|
1145
|
+
"type": "function"
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"inputs": [
|
|
1149
|
+
{
|
|
1150
|
+
"internalType": "address",
|
|
1151
|
+
"name": "_usdc",
|
|
1152
|
+
"type": "address"
|
|
1153
|
+
}
|
|
1154
|
+
],
|
|
1155
|
+
"name": "setUSDCInterface",
|
|
1156
|
+
"outputs": [],
|
|
1157
|
+
"stateMutability": "nonpayable",
|
|
1158
|
+
"type": "function"
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
"inputs": [],
|
|
1162
|
+
"name": "stakeingWhitelistStatus",
|
|
1163
|
+
"outputs": [
|
|
1164
|
+
{
|
|
1165
|
+
"internalType": "bool",
|
|
1166
|
+
"name": "",
|
|
1167
|
+
"type": "bool"
|
|
1168
|
+
}
|
|
1169
|
+
],
|
|
1170
|
+
"stateMutability": "view",
|
|
1171
|
+
"type": "function"
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
"inputs": [],
|
|
1175
|
+
"name": "stakingManagerInterface",
|
|
1176
|
+
"outputs": [
|
|
1177
|
+
{
|
|
1178
|
+
"internalType": "contract StakingManager",
|
|
1179
|
+
"name": "",
|
|
1180
|
+
"type": "address"
|
|
1181
|
+
}
|
|
1182
|
+
],
|
|
1183
|
+
"stateMutability": "view",
|
|
1184
|
+
"type": "function"
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
"inputs": [
|
|
1188
|
+
{
|
|
1189
|
+
"internalType": "uint256",
|
|
1190
|
+
"name": "_claimStart",
|
|
1191
|
+
"type": "uint256"
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"internalType": "uint256",
|
|
1195
|
+
"name": "noOfTokens",
|
|
1196
|
+
"type": "uint256"
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"internalType": "address",
|
|
1200
|
+
"name": "_saleToken",
|
|
1201
|
+
"type": "address"
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
"internalType": "address",
|
|
1205
|
+
"name": "_stakingManagerAddress",
|
|
1206
|
+
"type": "address"
|
|
1207
|
+
}
|
|
1208
|
+
],
|
|
1209
|
+
"name": "startClaim",
|
|
1210
|
+
"outputs": [
|
|
1211
|
+
{
|
|
1212
|
+
"internalType": "bool",
|
|
1213
|
+
"name": "",
|
|
1214
|
+
"type": "bool"
|
|
1215
|
+
}
|
|
1216
|
+
],
|
|
1217
|
+
"stateMutability": "nonpayable",
|
|
1218
|
+
"type": "function"
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
"inputs": [],
|
|
1222
|
+
"name": "startTime",
|
|
1223
|
+
"outputs": [
|
|
1224
|
+
{
|
|
1225
|
+
"internalType": "uint256",
|
|
1226
|
+
"name": "",
|
|
1227
|
+
"type": "uint256"
|
|
1228
|
+
}
|
|
1229
|
+
],
|
|
1230
|
+
"stateMutability": "view",
|
|
1231
|
+
"type": "function"
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
"inputs": [],
|
|
1235
|
+
"name": "timeConstant",
|
|
1236
|
+
"outputs": [
|
|
1237
|
+
{
|
|
1238
|
+
"internalType": "uint256",
|
|
1239
|
+
"name": "",
|
|
1240
|
+
"type": "uint256"
|
|
1241
|
+
}
|
|
1242
|
+
],
|
|
1243
|
+
"stateMutability": "view",
|
|
1244
|
+
"type": "function"
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"inputs": [
|
|
1248
|
+
{
|
|
1249
|
+
"internalType": "uint256",
|
|
1250
|
+
"name": "amount",
|
|
1251
|
+
"type": "uint256"
|
|
1252
|
+
}
|
|
1253
|
+
],
|
|
1254
|
+
"name": "tokenTransfer",
|
|
1255
|
+
"outputs": [],
|
|
1256
|
+
"stateMutability": "nonpayable",
|
|
1257
|
+
"type": "function"
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"inputs": [],
|
|
1261
|
+
"name": "totalBoughtAndStaked",
|
|
1262
|
+
"outputs": [
|
|
1263
|
+
{
|
|
1264
|
+
"internalType": "uint256",
|
|
1265
|
+
"name": "",
|
|
1266
|
+
"type": "uint256"
|
|
1267
|
+
}
|
|
1268
|
+
],
|
|
1269
|
+
"stateMutability": "view",
|
|
1270
|
+
"type": "function"
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
"inputs": [],
|
|
1274
|
+
"name": "totalTokensSold",
|
|
1275
|
+
"outputs": [
|
|
1276
|
+
{
|
|
1277
|
+
"internalType": "uint256",
|
|
1278
|
+
"name": "",
|
|
1279
|
+
"type": "uint256"
|
|
1280
|
+
}
|
|
1281
|
+
],
|
|
1282
|
+
"stateMutability": "view",
|
|
1283
|
+
"type": "function"
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
"inputs": [],
|
|
1287
|
+
"name": "trackRemainingTokens",
|
|
1288
|
+
"outputs": [
|
|
1289
|
+
{
|
|
1290
|
+
"internalType": "uint256[]",
|
|
1291
|
+
"name": "",
|
|
1292
|
+
"type": "uint256[]"
|
|
1293
|
+
}
|
|
1294
|
+
],
|
|
1295
|
+
"stateMutability": "view",
|
|
1296
|
+
"type": "function"
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
"inputs": [
|
|
1300
|
+
{
|
|
1301
|
+
"internalType": "address",
|
|
1302
|
+
"name": "newOwner",
|
|
1303
|
+
"type": "address"
|
|
1304
|
+
}
|
|
1305
|
+
],
|
|
1306
|
+
"name": "transferOwnership",
|
|
1307
|
+
"outputs": [],
|
|
1308
|
+
"stateMutability": "nonpayable",
|
|
1309
|
+
"type": "function"
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
"inputs": [],
|
|
1313
|
+
"name": "unpause",
|
|
1314
|
+
"outputs": [],
|
|
1315
|
+
"stateMutability": "nonpayable",
|
|
1316
|
+
"type": "function"
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
"inputs": [
|
|
1320
|
+
{
|
|
1321
|
+
"internalType": "address[]",
|
|
1322
|
+
"name": "_users",
|
|
1323
|
+
"type": "address[]"
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
"internalType": "uint256[]",
|
|
1327
|
+
"name": "_userDeposits",
|
|
1328
|
+
"type": "uint256[]"
|
|
1329
|
+
}
|
|
1330
|
+
],
|
|
1331
|
+
"name": "updateFromBSC",
|
|
1332
|
+
"outputs": [],
|
|
1333
|
+
"stateMutability": "nonpayable",
|
|
1334
|
+
"type": "function"
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
"inputs": [],
|
|
1338
|
+
"name": "usdRaised",
|
|
1339
|
+
"outputs": [
|
|
1340
|
+
{
|
|
1341
|
+
"internalType": "uint256",
|
|
1342
|
+
"name": "",
|
|
1343
|
+
"type": "uint256"
|
|
1344
|
+
}
|
|
1345
|
+
],
|
|
1346
|
+
"stateMutability": "view",
|
|
1347
|
+
"type": "function"
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
"inputs": [
|
|
1351
|
+
{
|
|
1352
|
+
"internalType": "uint256",
|
|
1353
|
+
"name": "amount",
|
|
1354
|
+
"type": "uint256"
|
|
1355
|
+
}
|
|
1356
|
+
],
|
|
1357
|
+
"name": "usdtBuyHelper",
|
|
1358
|
+
"outputs": [
|
|
1359
|
+
{
|
|
1360
|
+
"internalType": "uint256",
|
|
1361
|
+
"name": "usdPrice",
|
|
1362
|
+
"type": "uint256"
|
|
1363
|
+
}
|
|
1364
|
+
],
|
|
1365
|
+
"stateMutability": "view",
|
|
1366
|
+
"type": "function"
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
"inputs": [
|
|
1370
|
+
{
|
|
1371
|
+
"internalType": "address",
|
|
1372
|
+
"name": "",
|
|
1373
|
+
"type": "address"
|
|
1374
|
+
}
|
|
1375
|
+
],
|
|
1376
|
+
"name": "userDeposits",
|
|
1377
|
+
"outputs": [
|
|
1378
|
+
{
|
|
1379
|
+
"internalType": "uint256",
|
|
1380
|
+
"name": "",
|
|
1381
|
+
"type": "uint256"
|
|
1382
|
+
}
|
|
1383
|
+
],
|
|
1384
|
+
"stateMutability": "view",
|
|
1385
|
+
"type": "function"
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
"inputs": [
|
|
1389
|
+
{
|
|
1390
|
+
"internalType": "uint256",
|
|
1391
|
+
"name": "",
|
|
1392
|
+
"type": "uint256"
|
|
1393
|
+
}
|
|
1394
|
+
],
|
|
1395
|
+
"name": "wallets",
|
|
1396
|
+
"outputs": [
|
|
1397
|
+
{
|
|
1398
|
+
"internalType": "address",
|
|
1399
|
+
"name": "",
|
|
1400
|
+
"type": "address"
|
|
1401
|
+
}
|
|
1402
|
+
],
|
|
1403
|
+
"stateMutability": "view",
|
|
1404
|
+
"type": "function"
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
"inputs": [
|
|
1408
|
+
{
|
|
1409
|
+
"internalType": "address",
|
|
1410
|
+
"name": "",
|
|
1411
|
+
"type": "address"
|
|
1412
|
+
}
|
|
1413
|
+
],
|
|
1414
|
+
"name": "wertWhitelisted",
|
|
1415
|
+
"outputs": [
|
|
1416
|
+
{
|
|
1417
|
+
"internalType": "bool",
|
|
1418
|
+
"name": "",
|
|
1419
|
+
"type": "bool"
|
|
1420
|
+
}
|
|
1421
|
+
],
|
|
1422
|
+
"stateMutability": "view",
|
|
1423
|
+
"type": "function"
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
"inputs": [],
|
|
1427
|
+
"name": "whitelistClaimOnly",
|
|
1428
|
+
"outputs": [
|
|
1429
|
+
{
|
|
1430
|
+
"internalType": "bool",
|
|
1431
|
+
"name": "",
|
|
1432
|
+
"type": "bool"
|
|
1433
|
+
}
|
|
1434
|
+
],
|
|
1435
|
+
"stateMutability": "view",
|
|
1436
|
+
"type": "function"
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
"inputs": [
|
|
1440
|
+
{
|
|
1441
|
+
"internalType": "address[]",
|
|
1442
|
+
"name": "_usersToWhitelist",
|
|
1443
|
+
"type": "address[]"
|
|
1444
|
+
}
|
|
1445
|
+
],
|
|
1446
|
+
"name": "whitelistUsers",
|
|
1447
|
+
"outputs": [],
|
|
1448
|
+
"stateMutability": "nonpayable",
|
|
1449
|
+
"type": "function"
|
|
1450
|
+
},
|
|
1451
|
+
{
|
|
1452
|
+
"inputs": [
|
|
1453
|
+
{
|
|
1454
|
+
"internalType": "address[]",
|
|
1455
|
+
"name": "_addressesToWhitelist",
|
|
1456
|
+
"type": "address[]"
|
|
1457
|
+
}
|
|
1458
|
+
],
|
|
1459
|
+
"name": "whitelistUsersForWERT",
|
|
1460
|
+
"outputs": [],
|
|
1461
|
+
"stateMutability": "nonpayable",
|
|
1462
|
+
"type": "function"
|
|
1463
|
+
}
|
|
1464
|
+
];
|
|
1465
|
+
/**
|
|
1466
|
+
* PresaleV2_json Contract Class
|
|
1467
|
+
*
|
|
1468
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
1469
|
+
*
|
|
1470
|
+
* @example
|
|
1471
|
+
* ```typescript
|
|
1472
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
1473
|
+
* import { mainnet } from 'viem/chains';
|
|
1474
|
+
* import { PresaleV2_json } from 'PresaleV2_json';
|
|
1475
|
+
*
|
|
1476
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
1477
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
1478
|
+
*
|
|
1479
|
+
* const contract = new PresaleV2_json('0x...', { publicClient, walletClient });
|
|
1480
|
+
*
|
|
1481
|
+
* // Read functions
|
|
1482
|
+
* const result = await contract.balanceOf('0x...');
|
|
1483
|
+
*
|
|
1484
|
+
* // Write functions
|
|
1485
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
1486
|
+
*
|
|
1487
|
+
* // Simulate transactions (dry-run)
|
|
1488
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
1489
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
1490
|
+
*
|
|
1491
|
+
* // Watch events
|
|
1492
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
1493
|
+
* console.log('Transfer event:', event);
|
|
1494
|
+
* });
|
|
1495
|
+
* ```
|
|
1496
|
+
*/
|
|
1497
|
+
class PresaleV2_json {
|
|
1498
|
+
constructor(address, clients) {
|
|
1499
|
+
this.contractAddress = address;
|
|
1500
|
+
this.publicClient = clients.publicClient;
|
|
1501
|
+
this.contract = (0, viem_1.getContract)({
|
|
1502
|
+
address,
|
|
1503
|
+
abi: exports.PresaleV2_jsonAbi,
|
|
1504
|
+
client: {
|
|
1505
|
+
public: clients.publicClient,
|
|
1506
|
+
wallet: clients.walletClient,
|
|
1507
|
+
},
|
|
1508
|
+
});
|
|
1509
|
+
}
|
|
1510
|
+
/**
|
|
1511
|
+
* Get the contract address
|
|
1512
|
+
*/
|
|
1513
|
+
get address() {
|
|
1514
|
+
return this.contractAddress;
|
|
1515
|
+
}
|
|
1516
|
+
/**
|
|
1517
|
+
* Get the underlying viem contract instance
|
|
1518
|
+
*/
|
|
1519
|
+
getContract() {
|
|
1520
|
+
return this.contract;
|
|
1521
|
+
}
|
|
1522
|
+
/**
|
|
1523
|
+
* USDCInterface
|
|
1524
|
+
* view
|
|
1525
|
+
*/
|
|
1526
|
+
async USDCInterface() {
|
|
1527
|
+
return this.contract.read.USDCInterface();
|
|
1528
|
+
}
|
|
1529
|
+
/**
|
|
1530
|
+
* USDTInterface
|
|
1531
|
+
* view
|
|
1532
|
+
*/
|
|
1533
|
+
async USDTInterface() {
|
|
1534
|
+
return this.contract.read.USDTInterface();
|
|
1535
|
+
}
|
|
1536
|
+
/**
|
|
1537
|
+
* admin
|
|
1538
|
+
* view
|
|
1539
|
+
*/
|
|
1540
|
+
async admin() {
|
|
1541
|
+
return this.contract.read.admin();
|
|
1542
|
+
}
|
|
1543
|
+
/**
|
|
1544
|
+
* aggregatorInterface
|
|
1545
|
+
* view
|
|
1546
|
+
*/
|
|
1547
|
+
async aggregatorInterface() {
|
|
1548
|
+
return this.contract.read.aggregatorInterface();
|
|
1549
|
+
}
|
|
1550
|
+
/**
|
|
1551
|
+
* baseDecimals
|
|
1552
|
+
* view
|
|
1553
|
+
*/
|
|
1554
|
+
async baseDecimals() {
|
|
1555
|
+
return this.contract.read.baseDecimals();
|
|
1556
|
+
}
|
|
1557
|
+
/**
|
|
1558
|
+
* calculatePrice
|
|
1559
|
+
* view
|
|
1560
|
+
*/
|
|
1561
|
+
async calculatePrice(_amount) {
|
|
1562
|
+
return this.contract.read.calculatePrice([_amount]);
|
|
1563
|
+
}
|
|
1564
|
+
/**
|
|
1565
|
+
* checkPoint
|
|
1566
|
+
* view
|
|
1567
|
+
*/
|
|
1568
|
+
async checkPoint() {
|
|
1569
|
+
return this.contract.read.checkPoint();
|
|
1570
|
+
}
|
|
1571
|
+
/**
|
|
1572
|
+
* claimStart
|
|
1573
|
+
* view
|
|
1574
|
+
*/
|
|
1575
|
+
async claimStart() {
|
|
1576
|
+
return this.contract.read.claimStart();
|
|
1577
|
+
}
|
|
1578
|
+
/**
|
|
1579
|
+
* currentStep
|
|
1580
|
+
* view
|
|
1581
|
+
*/
|
|
1582
|
+
async currentStep() {
|
|
1583
|
+
return this.contract.read.currentStep();
|
|
1584
|
+
}
|
|
1585
|
+
/**
|
|
1586
|
+
* dynamicTimeFlag
|
|
1587
|
+
* view
|
|
1588
|
+
*/
|
|
1589
|
+
async dynamicTimeFlag() {
|
|
1590
|
+
return this.contract.read.dynamicTimeFlag();
|
|
1591
|
+
}
|
|
1592
|
+
/**
|
|
1593
|
+
* endTime
|
|
1594
|
+
* view
|
|
1595
|
+
*/
|
|
1596
|
+
async endTime() {
|
|
1597
|
+
return this.contract.read.endTime();
|
|
1598
|
+
}
|
|
1599
|
+
/**
|
|
1600
|
+
* ethBuyHelper
|
|
1601
|
+
* view
|
|
1602
|
+
*/
|
|
1603
|
+
async ethBuyHelper(amount) {
|
|
1604
|
+
return this.contract.read.ethBuyHelper([amount]);
|
|
1605
|
+
}
|
|
1606
|
+
/**
|
|
1607
|
+
* getLatestPrice
|
|
1608
|
+
* view
|
|
1609
|
+
*/
|
|
1610
|
+
async getLatestPrice() {
|
|
1611
|
+
return this.contract.read.getLatestPrice();
|
|
1612
|
+
}
|
|
1613
|
+
/**
|
|
1614
|
+
* hasClaimed
|
|
1615
|
+
* view
|
|
1616
|
+
*/
|
|
1617
|
+
async hasClaimed(arg0) {
|
|
1618
|
+
return this.contract.read.hasClaimed([arg0]);
|
|
1619
|
+
}
|
|
1620
|
+
/**
|
|
1621
|
+
* isBlacklisted
|
|
1622
|
+
* view
|
|
1623
|
+
*/
|
|
1624
|
+
async isBlacklisted(arg0) {
|
|
1625
|
+
return this.contract.read.isBlacklisted([arg0]);
|
|
1626
|
+
}
|
|
1627
|
+
/**
|
|
1628
|
+
* isWhitelisted
|
|
1629
|
+
* view
|
|
1630
|
+
*/
|
|
1631
|
+
async isWhitelisted(arg0) {
|
|
1632
|
+
return this.contract.read.isWhitelisted([arg0]);
|
|
1633
|
+
}
|
|
1634
|
+
/**
|
|
1635
|
+
* maxTokensToBuy
|
|
1636
|
+
* view
|
|
1637
|
+
*/
|
|
1638
|
+
async maxTokensToBuy() {
|
|
1639
|
+
return this.contract.read.maxTokensToBuy();
|
|
1640
|
+
}
|
|
1641
|
+
/**
|
|
1642
|
+
* owner
|
|
1643
|
+
* view
|
|
1644
|
+
*/
|
|
1645
|
+
async owner() {
|
|
1646
|
+
return this.contract.read.owner();
|
|
1647
|
+
}
|
|
1648
|
+
/**
|
|
1649
|
+
* paused
|
|
1650
|
+
* view
|
|
1651
|
+
*/
|
|
1652
|
+
async paused() {
|
|
1653
|
+
return this.contract.read.paused();
|
|
1654
|
+
}
|
|
1655
|
+
/**
|
|
1656
|
+
* paymentWallet
|
|
1657
|
+
* view
|
|
1658
|
+
*/
|
|
1659
|
+
async paymentWallet() {
|
|
1660
|
+
return this.contract.read.paymentWallet();
|
|
1661
|
+
}
|
|
1662
|
+
/**
|
|
1663
|
+
* percentages
|
|
1664
|
+
* view
|
|
1665
|
+
*/
|
|
1666
|
+
async percentages(arg0) {
|
|
1667
|
+
return this.contract.read.percentages([arg0]);
|
|
1668
|
+
}
|
|
1669
|
+
/**
|
|
1670
|
+
* prevCheckpoints
|
|
1671
|
+
* view
|
|
1672
|
+
*/
|
|
1673
|
+
async prevCheckpoints(arg0) {
|
|
1674
|
+
return this.contract.read.prevCheckpoints([arg0]);
|
|
1675
|
+
}
|
|
1676
|
+
/**
|
|
1677
|
+
* remainingTokensTracker
|
|
1678
|
+
* view
|
|
1679
|
+
*/
|
|
1680
|
+
async remainingTokensTracker(arg0) {
|
|
1681
|
+
return this.contract.read.remainingTokensTracker([arg0]);
|
|
1682
|
+
}
|
|
1683
|
+
/**
|
|
1684
|
+
* roundDetails
|
|
1685
|
+
* view
|
|
1686
|
+
*/
|
|
1687
|
+
async roundDetails(_no) {
|
|
1688
|
+
return this.contract.read.roundDetails([_no]);
|
|
1689
|
+
}
|
|
1690
|
+
/**
|
|
1691
|
+
* rounds
|
|
1692
|
+
* view
|
|
1693
|
+
*/
|
|
1694
|
+
async rounds(arg0, arg1) {
|
|
1695
|
+
return this.contract.read.rounds([arg0, arg1]);
|
|
1696
|
+
}
|
|
1697
|
+
/**
|
|
1698
|
+
* saleToken
|
|
1699
|
+
* view
|
|
1700
|
+
*/
|
|
1701
|
+
async saleToken() {
|
|
1702
|
+
return this.contract.read.saleToken();
|
|
1703
|
+
}
|
|
1704
|
+
/**
|
|
1705
|
+
* stakeingWhitelistStatus
|
|
1706
|
+
* view
|
|
1707
|
+
*/
|
|
1708
|
+
async stakeingWhitelistStatus() {
|
|
1709
|
+
return this.contract.read.stakeingWhitelistStatus();
|
|
1710
|
+
}
|
|
1711
|
+
/**
|
|
1712
|
+
* stakingManagerInterface
|
|
1713
|
+
* view
|
|
1714
|
+
*/
|
|
1715
|
+
async stakingManagerInterface() {
|
|
1716
|
+
return this.contract.read.stakingManagerInterface();
|
|
1717
|
+
}
|
|
1718
|
+
/**
|
|
1719
|
+
* startTime
|
|
1720
|
+
* view
|
|
1721
|
+
*/
|
|
1722
|
+
async startTime() {
|
|
1723
|
+
return this.contract.read.startTime();
|
|
1724
|
+
}
|
|
1725
|
+
/**
|
|
1726
|
+
* timeConstant
|
|
1727
|
+
* view
|
|
1728
|
+
*/
|
|
1729
|
+
async timeConstant() {
|
|
1730
|
+
return this.contract.read.timeConstant();
|
|
1731
|
+
}
|
|
1732
|
+
/**
|
|
1733
|
+
* totalBoughtAndStaked
|
|
1734
|
+
* view
|
|
1735
|
+
*/
|
|
1736
|
+
async totalBoughtAndStaked() {
|
|
1737
|
+
return this.contract.read.totalBoughtAndStaked();
|
|
1738
|
+
}
|
|
1739
|
+
/**
|
|
1740
|
+
* totalTokensSold
|
|
1741
|
+
* view
|
|
1742
|
+
*/
|
|
1743
|
+
async totalTokensSold() {
|
|
1744
|
+
return this.contract.read.totalTokensSold();
|
|
1745
|
+
}
|
|
1746
|
+
/**
|
|
1747
|
+
* trackRemainingTokens
|
|
1748
|
+
* view
|
|
1749
|
+
*/
|
|
1750
|
+
async trackRemainingTokens() {
|
|
1751
|
+
return this.contract.read.trackRemainingTokens();
|
|
1752
|
+
}
|
|
1753
|
+
/**
|
|
1754
|
+
* usdRaised
|
|
1755
|
+
* view
|
|
1756
|
+
*/
|
|
1757
|
+
async usdRaised() {
|
|
1758
|
+
return this.contract.read.usdRaised();
|
|
1759
|
+
}
|
|
1760
|
+
/**
|
|
1761
|
+
* usdtBuyHelper
|
|
1762
|
+
* view
|
|
1763
|
+
*/
|
|
1764
|
+
async usdtBuyHelper(amount) {
|
|
1765
|
+
return this.contract.read.usdtBuyHelper([amount]);
|
|
1766
|
+
}
|
|
1767
|
+
/**
|
|
1768
|
+
* userDeposits
|
|
1769
|
+
* view
|
|
1770
|
+
*/
|
|
1771
|
+
async userDeposits(arg0) {
|
|
1772
|
+
return this.contract.read.userDeposits([arg0]);
|
|
1773
|
+
}
|
|
1774
|
+
/**
|
|
1775
|
+
* wallets
|
|
1776
|
+
* view
|
|
1777
|
+
*/
|
|
1778
|
+
async wallets(arg0) {
|
|
1779
|
+
return this.contract.read.wallets([arg0]);
|
|
1780
|
+
}
|
|
1781
|
+
/**
|
|
1782
|
+
* wertWhitelisted
|
|
1783
|
+
* view
|
|
1784
|
+
*/
|
|
1785
|
+
async wertWhitelisted(arg0) {
|
|
1786
|
+
return this.contract.read.wertWhitelisted([arg0]);
|
|
1787
|
+
}
|
|
1788
|
+
/**
|
|
1789
|
+
* whitelistClaimOnly
|
|
1790
|
+
* view
|
|
1791
|
+
*/
|
|
1792
|
+
async whitelistClaimOnly() {
|
|
1793
|
+
return this.contract.read.whitelistClaimOnly();
|
|
1794
|
+
}
|
|
1795
|
+
/**
|
|
1796
|
+
* blacklistUsers
|
|
1797
|
+
* nonpayable
|
|
1798
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1799
|
+
*/
|
|
1800
|
+
async blacklistUsers(_usersToBlacklist, options) {
|
|
1801
|
+
if (!this.contract.write) {
|
|
1802
|
+
throw new Error('Wallet client is required for write operations');
|
|
1803
|
+
}
|
|
1804
|
+
return this.contract.write.blacklistUsers([_usersToBlacklist], options);
|
|
1805
|
+
}
|
|
1806
|
+
/**
|
|
1807
|
+
* buyWithETHWert
|
|
1808
|
+
* payable
|
|
1809
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1810
|
+
*/
|
|
1811
|
+
async buyWithETHWert(_user, _amount, stake, options) {
|
|
1812
|
+
if (!this.contract.write) {
|
|
1813
|
+
throw new Error('Wallet client is required for write operations');
|
|
1814
|
+
}
|
|
1815
|
+
return this.contract.write.buyWithETHWert([_user, _amount, stake], options);
|
|
1816
|
+
}
|
|
1817
|
+
/**
|
|
1818
|
+
* buyWithEth
|
|
1819
|
+
* payable
|
|
1820
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1821
|
+
*/
|
|
1822
|
+
async buyWithEth(amount, stake, options) {
|
|
1823
|
+
if (!this.contract.write) {
|
|
1824
|
+
throw new Error('Wallet client is required for write operations');
|
|
1825
|
+
}
|
|
1826
|
+
return this.contract.write.buyWithEth([amount, stake], options);
|
|
1827
|
+
}
|
|
1828
|
+
/**
|
|
1829
|
+
* buyWithUSDC
|
|
1830
|
+
* nonpayable
|
|
1831
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1832
|
+
*/
|
|
1833
|
+
async buyWithUSDC(amount, stake, options) {
|
|
1834
|
+
if (!this.contract.write) {
|
|
1835
|
+
throw new Error('Wallet client is required for write operations');
|
|
1836
|
+
}
|
|
1837
|
+
return this.contract.write.buyWithUSDC([amount, stake], options);
|
|
1838
|
+
}
|
|
1839
|
+
/**
|
|
1840
|
+
* buyWithUSDT
|
|
1841
|
+
* nonpayable
|
|
1842
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1843
|
+
*/
|
|
1844
|
+
async buyWithUSDT(amount, stake, options) {
|
|
1845
|
+
if (!this.contract.write) {
|
|
1846
|
+
throw new Error('Wallet client is required for write operations');
|
|
1847
|
+
}
|
|
1848
|
+
return this.contract.write.buyWithUSDT([amount, stake], options);
|
|
1849
|
+
}
|
|
1850
|
+
/**
|
|
1851
|
+
* changeClaimStart
|
|
1852
|
+
* nonpayable
|
|
1853
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1854
|
+
*/
|
|
1855
|
+
async changeClaimStart(_claimStart, options) {
|
|
1856
|
+
if (!this.contract.write) {
|
|
1857
|
+
throw new Error('Wallet client is required for write operations');
|
|
1858
|
+
}
|
|
1859
|
+
return this.contract.write.changeClaimStart([_claimStart], options);
|
|
1860
|
+
}
|
|
1861
|
+
/**
|
|
1862
|
+
* changeMaxTokensToBuy
|
|
1863
|
+
* nonpayable
|
|
1864
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1865
|
+
*/
|
|
1866
|
+
async changeMaxTokensToBuy(_maxTokensToBuy, options) {
|
|
1867
|
+
if (!this.contract.write) {
|
|
1868
|
+
throw new Error('Wallet client is required for write operations');
|
|
1869
|
+
}
|
|
1870
|
+
return this.contract.write.changeMaxTokensToBuy([_maxTokensToBuy], options);
|
|
1871
|
+
}
|
|
1872
|
+
/**
|
|
1873
|
+
* changePaymentWallet
|
|
1874
|
+
* nonpayable
|
|
1875
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1876
|
+
*/
|
|
1877
|
+
async changePaymentWallet(_newPaymentWallet, options) {
|
|
1878
|
+
if (!this.contract.write) {
|
|
1879
|
+
throw new Error('Wallet client is required for write operations');
|
|
1880
|
+
}
|
|
1881
|
+
return this.contract.write.changePaymentWallet([_newPaymentWallet], options);
|
|
1882
|
+
}
|
|
1883
|
+
/**
|
|
1884
|
+
* changeRoundsData
|
|
1885
|
+
* nonpayable
|
|
1886
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1887
|
+
*/
|
|
1888
|
+
async changeRoundsData(_rounds, options) {
|
|
1889
|
+
if (!this.contract.write) {
|
|
1890
|
+
throw new Error('Wallet client is required for write operations');
|
|
1891
|
+
}
|
|
1892
|
+
return this.contract.write.changeRoundsData([_rounds], options);
|
|
1893
|
+
}
|
|
1894
|
+
/**
|
|
1895
|
+
* changeSaleTimes
|
|
1896
|
+
* nonpayable
|
|
1897
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1898
|
+
*/
|
|
1899
|
+
async changeSaleTimes(_startTime, _endTime, options) {
|
|
1900
|
+
if (!this.contract.write) {
|
|
1901
|
+
throw new Error('Wallet client is required for write operations');
|
|
1902
|
+
}
|
|
1903
|
+
return this.contract.write.changeSaleTimes([_startTime, _endTime], options);
|
|
1904
|
+
}
|
|
1905
|
+
/**
|
|
1906
|
+
* claim
|
|
1907
|
+
* nonpayable
|
|
1908
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1909
|
+
*/
|
|
1910
|
+
async claim(options) {
|
|
1911
|
+
if (!this.contract.write) {
|
|
1912
|
+
throw new Error('Wallet client is required for write operations');
|
|
1913
|
+
}
|
|
1914
|
+
return this.contract.write.claim(options);
|
|
1915
|
+
}
|
|
1916
|
+
/**
|
|
1917
|
+
* claimAndStake
|
|
1918
|
+
* nonpayable
|
|
1919
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1920
|
+
*/
|
|
1921
|
+
async claimAndStake(options) {
|
|
1922
|
+
if (!this.contract.write) {
|
|
1923
|
+
throw new Error('Wallet client is required for write operations');
|
|
1924
|
+
}
|
|
1925
|
+
return this.contract.write.claimAndStake(options);
|
|
1926
|
+
}
|
|
1927
|
+
/**
|
|
1928
|
+
* incrementCurrentStep
|
|
1929
|
+
* nonpayable
|
|
1930
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1931
|
+
*/
|
|
1932
|
+
async incrementCurrentStep(options) {
|
|
1933
|
+
if (!this.contract.write) {
|
|
1934
|
+
throw new Error('Wallet client is required for write operations');
|
|
1935
|
+
}
|
|
1936
|
+
return this.contract.write.incrementCurrentStep(options);
|
|
1937
|
+
}
|
|
1938
|
+
/**
|
|
1939
|
+
* pause
|
|
1940
|
+
* nonpayable
|
|
1941
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1942
|
+
*/
|
|
1943
|
+
async pause(options) {
|
|
1944
|
+
if (!this.contract.write) {
|
|
1945
|
+
throw new Error('Wallet client is required for write operations');
|
|
1946
|
+
}
|
|
1947
|
+
return this.contract.write.pause(options);
|
|
1948
|
+
}
|
|
1949
|
+
/**
|
|
1950
|
+
* removeFromBlacklist
|
|
1951
|
+
* nonpayable
|
|
1952
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1953
|
+
*/
|
|
1954
|
+
async removeFromBlacklist(_userToRemoveFromBlacklist, options) {
|
|
1955
|
+
if (!this.contract.write) {
|
|
1956
|
+
throw new Error('Wallet client is required for write operations');
|
|
1957
|
+
}
|
|
1958
|
+
return this.contract.write.removeFromBlacklist([_userToRemoveFromBlacklist], options);
|
|
1959
|
+
}
|
|
1960
|
+
/**
|
|
1961
|
+
* removeFromWhitelist
|
|
1962
|
+
* nonpayable
|
|
1963
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1964
|
+
*/
|
|
1965
|
+
async removeFromWhitelist(_userToRemoveFromWhitelist, options) {
|
|
1966
|
+
if (!this.contract.write) {
|
|
1967
|
+
throw new Error('Wallet client is required for write operations');
|
|
1968
|
+
}
|
|
1969
|
+
return this.contract.write.removeFromWhitelist([_userToRemoveFromWhitelist], options);
|
|
1970
|
+
}
|
|
1971
|
+
/**
|
|
1972
|
+
* removeFromWhitelistForWERT
|
|
1973
|
+
* nonpayable
|
|
1974
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1975
|
+
*/
|
|
1976
|
+
async removeFromWhitelistForWERT(_addressesToRemoveFromWhitelist, options) {
|
|
1977
|
+
if (!this.contract.write) {
|
|
1978
|
+
throw new Error('Wallet client is required for write operations');
|
|
1979
|
+
}
|
|
1980
|
+
return this.contract.write.removeFromWhitelistForWERT([_addressesToRemoveFromWhitelist], options);
|
|
1981
|
+
}
|
|
1982
|
+
/**
|
|
1983
|
+
* renounceOwnership
|
|
1984
|
+
* nonpayable
|
|
1985
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1986
|
+
*/
|
|
1987
|
+
async renounceOwnership(options) {
|
|
1988
|
+
if (!this.contract.write) {
|
|
1989
|
+
throw new Error('Wallet client is required for write operations');
|
|
1990
|
+
}
|
|
1991
|
+
return this.contract.write.renounceOwnership(options);
|
|
1992
|
+
}
|
|
1993
|
+
/**
|
|
1994
|
+
* setAdmin
|
|
1995
|
+
* nonpayable
|
|
1996
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1997
|
+
*/
|
|
1998
|
+
async setAdmin(_admin, options) {
|
|
1999
|
+
if (!this.contract.write) {
|
|
2000
|
+
throw new Error('Wallet client is required for write operations');
|
|
2001
|
+
}
|
|
2002
|
+
return this.contract.write.setAdmin([_admin], options);
|
|
2003
|
+
}
|
|
2004
|
+
/**
|
|
2005
|
+
* setClaimWhitelistStatus
|
|
2006
|
+
* nonpayable
|
|
2007
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2008
|
+
*/
|
|
2009
|
+
async setClaimWhitelistStatus(_status, options) {
|
|
2010
|
+
if (!this.contract.write) {
|
|
2011
|
+
throw new Error('Wallet client is required for write operations');
|
|
2012
|
+
}
|
|
2013
|
+
return this.contract.write.setClaimWhitelistStatus([_status], options);
|
|
2014
|
+
}
|
|
2015
|
+
/**
|
|
2016
|
+
* setCurrentStep
|
|
2017
|
+
* nonpayable
|
|
2018
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2019
|
+
*/
|
|
2020
|
+
async setCurrentStep(_step, _checkpoint, options) {
|
|
2021
|
+
if (!this.contract.write) {
|
|
2022
|
+
throw new Error('Wallet client is required for write operations');
|
|
2023
|
+
}
|
|
2024
|
+
return this.contract.write.setCurrentStep([_step, _checkpoint], options);
|
|
2025
|
+
}
|
|
2026
|
+
/**
|
|
2027
|
+
* setDynamicTimeFlag
|
|
2028
|
+
* nonpayable
|
|
2029
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2030
|
+
*/
|
|
2031
|
+
async setDynamicTimeFlag(_dynamicTimeFlag, options) {
|
|
2032
|
+
if (!this.contract.write) {
|
|
2033
|
+
throw new Error('Wallet client is required for write operations');
|
|
2034
|
+
}
|
|
2035
|
+
return this.contract.write.setDynamicTimeFlag([_dynamicTimeFlag], options);
|
|
2036
|
+
}
|
|
2037
|
+
/**
|
|
2038
|
+
* setRemainingTokensArray
|
|
2039
|
+
* nonpayable
|
|
2040
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2041
|
+
*/
|
|
2042
|
+
async setRemainingTokensArray(_unsoldTokens, options) {
|
|
2043
|
+
if (!this.contract.write) {
|
|
2044
|
+
throw new Error('Wallet client is required for write operations');
|
|
2045
|
+
}
|
|
2046
|
+
return this.contract.write.setRemainingTokensArray([_unsoldTokens], options);
|
|
2047
|
+
}
|
|
2048
|
+
/**
|
|
2049
|
+
* setSplits
|
|
2050
|
+
* nonpayable
|
|
2051
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2052
|
+
*/
|
|
2053
|
+
async setSplits(_wallets, _percentages, options) {
|
|
2054
|
+
if (!this.contract.write) {
|
|
2055
|
+
throw new Error('Wallet client is required for write operations');
|
|
2056
|
+
}
|
|
2057
|
+
return this.contract.write.setSplits([_wallets, _percentages], options);
|
|
2058
|
+
}
|
|
2059
|
+
/**
|
|
2060
|
+
* setStakeingWhitelistStatus
|
|
2061
|
+
* nonpayable
|
|
2062
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2063
|
+
*/
|
|
2064
|
+
async setStakeingWhitelistStatus(_status, options) {
|
|
2065
|
+
if (!this.contract.write) {
|
|
2066
|
+
throw new Error('Wallet client is required for write operations');
|
|
2067
|
+
}
|
|
2068
|
+
return this.contract.write.setStakeingWhitelistStatus([_status], options);
|
|
2069
|
+
}
|
|
2070
|
+
/**
|
|
2071
|
+
* setStakingManager
|
|
2072
|
+
* nonpayable
|
|
2073
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2074
|
+
*/
|
|
2075
|
+
async setStakingManager(_stakingManagerAddress, options) {
|
|
2076
|
+
if (!this.contract.write) {
|
|
2077
|
+
throw new Error('Wallet client is required for write operations');
|
|
2078
|
+
}
|
|
2079
|
+
return this.contract.write.setStakingManager([_stakingManagerAddress], options);
|
|
2080
|
+
}
|
|
2081
|
+
/**
|
|
2082
|
+
* setTimeConstant
|
|
2083
|
+
* nonpayable
|
|
2084
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2085
|
+
*/
|
|
2086
|
+
async setTimeConstant(_timeConstant, options) {
|
|
2087
|
+
if (!this.contract.write) {
|
|
2088
|
+
throw new Error('Wallet client is required for write operations');
|
|
2089
|
+
}
|
|
2090
|
+
return this.contract.write.setTimeConstant([_timeConstant], options);
|
|
2091
|
+
}
|
|
2092
|
+
/**
|
|
2093
|
+
* setUSDCInterface
|
|
2094
|
+
* nonpayable
|
|
2095
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2096
|
+
*/
|
|
2097
|
+
async setUSDCInterface(_usdc, options) {
|
|
2098
|
+
if (!this.contract.write) {
|
|
2099
|
+
throw new Error('Wallet client is required for write operations');
|
|
2100
|
+
}
|
|
2101
|
+
return this.contract.write.setUSDCInterface([_usdc], options);
|
|
2102
|
+
}
|
|
2103
|
+
/**
|
|
2104
|
+
* startClaim
|
|
2105
|
+
* nonpayable
|
|
2106
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2107
|
+
*/
|
|
2108
|
+
async startClaim(_claimStart, noOfTokens, _saleToken, _stakingManagerAddress, options) {
|
|
2109
|
+
if (!this.contract.write) {
|
|
2110
|
+
throw new Error('Wallet client is required for write operations');
|
|
2111
|
+
}
|
|
2112
|
+
return this.contract.write.startClaim([_claimStart, noOfTokens, _saleToken, _stakingManagerAddress], options);
|
|
2113
|
+
}
|
|
2114
|
+
/**
|
|
2115
|
+
* tokenTransfer
|
|
2116
|
+
* nonpayable
|
|
2117
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2118
|
+
*/
|
|
2119
|
+
async tokenTransfer(amount, options) {
|
|
2120
|
+
if (!this.contract.write) {
|
|
2121
|
+
throw new Error('Wallet client is required for write operations');
|
|
2122
|
+
}
|
|
2123
|
+
return this.contract.write.tokenTransfer([amount], options);
|
|
2124
|
+
}
|
|
2125
|
+
/**
|
|
2126
|
+
* transferOwnership
|
|
2127
|
+
* nonpayable
|
|
2128
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2129
|
+
*/
|
|
2130
|
+
async transferOwnership(newOwner, options) {
|
|
2131
|
+
if (!this.contract.write) {
|
|
2132
|
+
throw new Error('Wallet client is required for write operations');
|
|
2133
|
+
}
|
|
2134
|
+
return this.contract.write.transferOwnership([newOwner], options);
|
|
2135
|
+
}
|
|
2136
|
+
/**
|
|
2137
|
+
* unpause
|
|
2138
|
+
* nonpayable
|
|
2139
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2140
|
+
*/
|
|
2141
|
+
async unpause(options) {
|
|
2142
|
+
if (!this.contract.write) {
|
|
2143
|
+
throw new Error('Wallet client is required for write operations');
|
|
2144
|
+
}
|
|
2145
|
+
return this.contract.write.unpause(options);
|
|
2146
|
+
}
|
|
2147
|
+
/**
|
|
2148
|
+
* updateFromBSC
|
|
2149
|
+
* nonpayable
|
|
2150
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2151
|
+
*/
|
|
2152
|
+
async updateFromBSC(_users, _userDeposits, options) {
|
|
2153
|
+
if (!this.contract.write) {
|
|
2154
|
+
throw new Error('Wallet client is required for write operations');
|
|
2155
|
+
}
|
|
2156
|
+
return this.contract.write.updateFromBSC([_users, _userDeposits], options);
|
|
2157
|
+
}
|
|
2158
|
+
/**
|
|
2159
|
+
* whitelistUsers
|
|
2160
|
+
* nonpayable
|
|
2161
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2162
|
+
*/
|
|
2163
|
+
async whitelistUsers(_usersToWhitelist, options) {
|
|
2164
|
+
if (!this.contract.write) {
|
|
2165
|
+
throw new Error('Wallet client is required for write operations');
|
|
2166
|
+
}
|
|
2167
|
+
return this.contract.write.whitelistUsers([_usersToWhitelist], options);
|
|
2168
|
+
}
|
|
2169
|
+
/**
|
|
2170
|
+
* whitelistUsersForWERT
|
|
2171
|
+
* nonpayable
|
|
2172
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2173
|
+
*/
|
|
2174
|
+
async whitelistUsersForWERT(_addressesToWhitelist, options) {
|
|
2175
|
+
if (!this.contract.write) {
|
|
2176
|
+
throw new Error('Wallet client is required for write operations');
|
|
2177
|
+
}
|
|
2178
|
+
return this.contract.write.whitelistUsersForWERT([_addressesToWhitelist], options);
|
|
2179
|
+
}
|
|
2180
|
+
/**
|
|
2181
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
2182
|
+
*
|
|
2183
|
+
* @example
|
|
2184
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
2185
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
2186
|
+
* console.log('Would succeed:', result.result);
|
|
2187
|
+
*/
|
|
2188
|
+
get simulate() {
|
|
2189
|
+
const contract = this.contract;
|
|
2190
|
+
if (!contract.simulate) {
|
|
2191
|
+
throw new Error('Public client is required for simulation');
|
|
2192
|
+
}
|
|
2193
|
+
return {
|
|
2194
|
+
/**
|
|
2195
|
+
* Simulate blacklistUsers
|
|
2196
|
+
* Returns gas estimate and result without sending transaction
|
|
2197
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2198
|
+
*/
|
|
2199
|
+
async blacklistUsers(_usersToBlacklist, options) {
|
|
2200
|
+
return contract.simulate.blacklistUsers([_usersToBlacklist], options);
|
|
2201
|
+
},
|
|
2202
|
+
/**
|
|
2203
|
+
* Simulate buyWithETHWert
|
|
2204
|
+
* Returns gas estimate and result without sending transaction
|
|
2205
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2206
|
+
*/
|
|
2207
|
+
async buyWithETHWert(_user, _amount, stake, options) {
|
|
2208
|
+
return contract.simulate.buyWithETHWert([_user, _amount, stake], options);
|
|
2209
|
+
},
|
|
2210
|
+
/**
|
|
2211
|
+
* Simulate buyWithEth
|
|
2212
|
+
* Returns gas estimate and result without sending transaction
|
|
2213
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2214
|
+
*/
|
|
2215
|
+
async buyWithEth(amount, stake, options) {
|
|
2216
|
+
return contract.simulate.buyWithEth([amount, stake], options);
|
|
2217
|
+
},
|
|
2218
|
+
/**
|
|
2219
|
+
* Simulate buyWithUSDC
|
|
2220
|
+
* Returns gas estimate and result without sending transaction
|
|
2221
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2222
|
+
*/
|
|
2223
|
+
async buyWithUSDC(amount, stake, options) {
|
|
2224
|
+
return contract.simulate.buyWithUSDC([amount, stake], options);
|
|
2225
|
+
},
|
|
2226
|
+
/**
|
|
2227
|
+
* Simulate buyWithUSDT
|
|
2228
|
+
* Returns gas estimate and result without sending transaction
|
|
2229
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2230
|
+
*/
|
|
2231
|
+
async buyWithUSDT(amount, stake, options) {
|
|
2232
|
+
return contract.simulate.buyWithUSDT([amount, stake], options);
|
|
2233
|
+
},
|
|
2234
|
+
/**
|
|
2235
|
+
* Simulate changeClaimStart
|
|
2236
|
+
* Returns gas estimate and result without sending transaction
|
|
2237
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2238
|
+
*/
|
|
2239
|
+
async changeClaimStart(_claimStart, options) {
|
|
2240
|
+
return contract.simulate.changeClaimStart([_claimStart], options);
|
|
2241
|
+
},
|
|
2242
|
+
/**
|
|
2243
|
+
* Simulate changeMaxTokensToBuy
|
|
2244
|
+
* Returns gas estimate and result without sending transaction
|
|
2245
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2246
|
+
*/
|
|
2247
|
+
async changeMaxTokensToBuy(_maxTokensToBuy, options) {
|
|
2248
|
+
return contract.simulate.changeMaxTokensToBuy([_maxTokensToBuy], options);
|
|
2249
|
+
},
|
|
2250
|
+
/**
|
|
2251
|
+
* Simulate changePaymentWallet
|
|
2252
|
+
* Returns gas estimate and result without sending transaction
|
|
2253
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2254
|
+
*/
|
|
2255
|
+
async changePaymentWallet(_newPaymentWallet, options) {
|
|
2256
|
+
return contract.simulate.changePaymentWallet([_newPaymentWallet], options);
|
|
2257
|
+
},
|
|
2258
|
+
/**
|
|
2259
|
+
* Simulate changeRoundsData
|
|
2260
|
+
* Returns gas estimate and result without sending transaction
|
|
2261
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2262
|
+
*/
|
|
2263
|
+
async changeRoundsData(_rounds, options) {
|
|
2264
|
+
return contract.simulate.changeRoundsData([_rounds], options);
|
|
2265
|
+
},
|
|
2266
|
+
/**
|
|
2267
|
+
* Simulate changeSaleTimes
|
|
2268
|
+
* Returns gas estimate and result without sending transaction
|
|
2269
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2270
|
+
*/
|
|
2271
|
+
async changeSaleTimes(_startTime, _endTime, options) {
|
|
2272
|
+
return contract.simulate.changeSaleTimes([_startTime, _endTime], options);
|
|
2273
|
+
},
|
|
2274
|
+
/**
|
|
2275
|
+
* Simulate claim
|
|
2276
|
+
* Returns gas estimate and result without sending transaction
|
|
2277
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2278
|
+
*/
|
|
2279
|
+
async claim(options) {
|
|
2280
|
+
return contract.simulate.claim(options);
|
|
2281
|
+
},
|
|
2282
|
+
/**
|
|
2283
|
+
* Simulate claimAndStake
|
|
2284
|
+
* Returns gas estimate and result without sending transaction
|
|
2285
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2286
|
+
*/
|
|
2287
|
+
async claimAndStake(options) {
|
|
2288
|
+
return contract.simulate.claimAndStake(options);
|
|
2289
|
+
},
|
|
2290
|
+
/**
|
|
2291
|
+
* Simulate incrementCurrentStep
|
|
2292
|
+
* Returns gas estimate and result without sending transaction
|
|
2293
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2294
|
+
*/
|
|
2295
|
+
async incrementCurrentStep(options) {
|
|
2296
|
+
return contract.simulate.incrementCurrentStep(options);
|
|
2297
|
+
},
|
|
2298
|
+
/**
|
|
2299
|
+
* Simulate pause
|
|
2300
|
+
* Returns gas estimate and result without sending transaction
|
|
2301
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2302
|
+
*/
|
|
2303
|
+
async pause(options) {
|
|
2304
|
+
return contract.simulate.pause(options);
|
|
2305
|
+
},
|
|
2306
|
+
/**
|
|
2307
|
+
* Simulate removeFromBlacklist
|
|
2308
|
+
* Returns gas estimate and result without sending transaction
|
|
2309
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2310
|
+
*/
|
|
2311
|
+
async removeFromBlacklist(_userToRemoveFromBlacklist, options) {
|
|
2312
|
+
return contract.simulate.removeFromBlacklist([_userToRemoveFromBlacklist], options);
|
|
2313
|
+
},
|
|
2314
|
+
/**
|
|
2315
|
+
* Simulate removeFromWhitelist
|
|
2316
|
+
* Returns gas estimate and result without sending transaction
|
|
2317
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2318
|
+
*/
|
|
2319
|
+
async removeFromWhitelist(_userToRemoveFromWhitelist, options) {
|
|
2320
|
+
return contract.simulate.removeFromWhitelist([_userToRemoveFromWhitelist], options);
|
|
2321
|
+
},
|
|
2322
|
+
/**
|
|
2323
|
+
* Simulate removeFromWhitelistForWERT
|
|
2324
|
+
* Returns gas estimate and result without sending transaction
|
|
2325
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2326
|
+
*/
|
|
2327
|
+
async removeFromWhitelistForWERT(_addressesToRemoveFromWhitelist, options) {
|
|
2328
|
+
return contract.simulate.removeFromWhitelistForWERT([_addressesToRemoveFromWhitelist], options);
|
|
2329
|
+
},
|
|
2330
|
+
/**
|
|
2331
|
+
* Simulate renounceOwnership
|
|
2332
|
+
* Returns gas estimate and result without sending transaction
|
|
2333
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2334
|
+
*/
|
|
2335
|
+
async renounceOwnership(options) {
|
|
2336
|
+
return contract.simulate.renounceOwnership(options);
|
|
2337
|
+
},
|
|
2338
|
+
/**
|
|
2339
|
+
* Simulate setAdmin
|
|
2340
|
+
* Returns gas estimate and result without sending transaction
|
|
2341
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2342
|
+
*/
|
|
2343
|
+
async setAdmin(_admin, options) {
|
|
2344
|
+
return contract.simulate.setAdmin([_admin], options);
|
|
2345
|
+
},
|
|
2346
|
+
/**
|
|
2347
|
+
* Simulate setClaimWhitelistStatus
|
|
2348
|
+
* Returns gas estimate and result without sending transaction
|
|
2349
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2350
|
+
*/
|
|
2351
|
+
async setClaimWhitelistStatus(_status, options) {
|
|
2352
|
+
return contract.simulate.setClaimWhitelistStatus([_status], options);
|
|
2353
|
+
},
|
|
2354
|
+
/**
|
|
2355
|
+
* Simulate setCurrentStep
|
|
2356
|
+
* Returns gas estimate and result without sending transaction
|
|
2357
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2358
|
+
*/
|
|
2359
|
+
async setCurrentStep(_step, _checkpoint, options) {
|
|
2360
|
+
return contract.simulate.setCurrentStep([_step, _checkpoint], options);
|
|
2361
|
+
},
|
|
2362
|
+
/**
|
|
2363
|
+
* Simulate setDynamicTimeFlag
|
|
2364
|
+
* Returns gas estimate and result without sending transaction
|
|
2365
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2366
|
+
*/
|
|
2367
|
+
async setDynamicTimeFlag(_dynamicTimeFlag, options) {
|
|
2368
|
+
return contract.simulate.setDynamicTimeFlag([_dynamicTimeFlag], options);
|
|
2369
|
+
},
|
|
2370
|
+
/**
|
|
2371
|
+
* Simulate setRemainingTokensArray
|
|
2372
|
+
* Returns gas estimate and result without sending transaction
|
|
2373
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2374
|
+
*/
|
|
2375
|
+
async setRemainingTokensArray(_unsoldTokens, options) {
|
|
2376
|
+
return contract.simulate.setRemainingTokensArray([_unsoldTokens], options);
|
|
2377
|
+
},
|
|
2378
|
+
/**
|
|
2379
|
+
* Simulate setSplits
|
|
2380
|
+
* Returns gas estimate and result without sending transaction
|
|
2381
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2382
|
+
*/
|
|
2383
|
+
async setSplits(_wallets, _percentages, options) {
|
|
2384
|
+
return contract.simulate.setSplits([_wallets, _percentages], options);
|
|
2385
|
+
},
|
|
2386
|
+
/**
|
|
2387
|
+
* Simulate setStakeingWhitelistStatus
|
|
2388
|
+
* Returns gas estimate and result without sending transaction
|
|
2389
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2390
|
+
*/
|
|
2391
|
+
async setStakeingWhitelistStatus(_status, options) {
|
|
2392
|
+
return contract.simulate.setStakeingWhitelistStatus([_status], options);
|
|
2393
|
+
},
|
|
2394
|
+
/**
|
|
2395
|
+
* Simulate setStakingManager
|
|
2396
|
+
* Returns gas estimate and result without sending transaction
|
|
2397
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2398
|
+
*/
|
|
2399
|
+
async setStakingManager(_stakingManagerAddress, options) {
|
|
2400
|
+
return contract.simulate.setStakingManager([_stakingManagerAddress], options);
|
|
2401
|
+
},
|
|
2402
|
+
/**
|
|
2403
|
+
* Simulate setTimeConstant
|
|
2404
|
+
* Returns gas estimate and result without sending transaction
|
|
2405
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2406
|
+
*/
|
|
2407
|
+
async setTimeConstant(_timeConstant, options) {
|
|
2408
|
+
return contract.simulate.setTimeConstant([_timeConstant], options);
|
|
2409
|
+
},
|
|
2410
|
+
/**
|
|
2411
|
+
* Simulate setUSDCInterface
|
|
2412
|
+
* Returns gas estimate and result without sending transaction
|
|
2413
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2414
|
+
*/
|
|
2415
|
+
async setUSDCInterface(_usdc, options) {
|
|
2416
|
+
return contract.simulate.setUSDCInterface([_usdc], options);
|
|
2417
|
+
},
|
|
2418
|
+
/**
|
|
2419
|
+
* Simulate startClaim
|
|
2420
|
+
* Returns gas estimate and result without sending transaction
|
|
2421
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2422
|
+
*/
|
|
2423
|
+
async startClaim(_claimStart, noOfTokens, _saleToken, _stakingManagerAddress, options) {
|
|
2424
|
+
return contract.simulate.startClaim([_claimStart, noOfTokens, _saleToken, _stakingManagerAddress], options);
|
|
2425
|
+
},
|
|
2426
|
+
/**
|
|
2427
|
+
* Simulate tokenTransfer
|
|
2428
|
+
* Returns gas estimate and result without sending transaction
|
|
2429
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2430
|
+
*/
|
|
2431
|
+
async tokenTransfer(amount, options) {
|
|
2432
|
+
return contract.simulate.tokenTransfer([amount], options);
|
|
2433
|
+
},
|
|
2434
|
+
/**
|
|
2435
|
+
* Simulate transferOwnership
|
|
2436
|
+
* Returns gas estimate and result without sending transaction
|
|
2437
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2438
|
+
*/
|
|
2439
|
+
async transferOwnership(newOwner, options) {
|
|
2440
|
+
return contract.simulate.transferOwnership([newOwner], options);
|
|
2441
|
+
},
|
|
2442
|
+
/**
|
|
2443
|
+
* Simulate unpause
|
|
2444
|
+
* Returns gas estimate and result without sending transaction
|
|
2445
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2446
|
+
*/
|
|
2447
|
+
async unpause(options) {
|
|
2448
|
+
return contract.simulate.unpause(options);
|
|
2449
|
+
},
|
|
2450
|
+
/**
|
|
2451
|
+
* Simulate updateFromBSC
|
|
2452
|
+
* Returns gas estimate and result without sending transaction
|
|
2453
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2454
|
+
*/
|
|
2455
|
+
async updateFromBSC(_users, _userDeposits, options) {
|
|
2456
|
+
return contract.simulate.updateFromBSC([_users, _userDeposits], options);
|
|
2457
|
+
},
|
|
2458
|
+
/**
|
|
2459
|
+
* Simulate whitelistUsers
|
|
2460
|
+
* Returns gas estimate and result without sending transaction
|
|
2461
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2462
|
+
*/
|
|
2463
|
+
async whitelistUsers(_usersToWhitelist, options) {
|
|
2464
|
+
return contract.simulate.whitelistUsers([_usersToWhitelist], options);
|
|
2465
|
+
},
|
|
2466
|
+
/**
|
|
2467
|
+
* Simulate whitelistUsersForWERT
|
|
2468
|
+
* Returns gas estimate and result without sending transaction
|
|
2469
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2470
|
+
*/
|
|
2471
|
+
async whitelistUsersForWERT(_addressesToWhitelist, options) {
|
|
2472
|
+
return contract.simulate.whitelistUsersForWERT([_addressesToWhitelist], options);
|
|
2473
|
+
}
|
|
2474
|
+
};
|
|
2475
|
+
}
|
|
2476
|
+
/**
|
|
2477
|
+
* Watch contract events
|
|
2478
|
+
*
|
|
2479
|
+
* @example
|
|
2480
|
+
* // Watch all Transfer events
|
|
2481
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
2482
|
+
* console.log('Transfer:', event);
|
|
2483
|
+
* });
|
|
2484
|
+
*
|
|
2485
|
+
* // Stop watching
|
|
2486
|
+
* unwatch();
|
|
2487
|
+
*/
|
|
2488
|
+
get watch() {
|
|
2489
|
+
return {
|
|
2490
|
+
/**
|
|
2491
|
+
* Watch ClaimStartUpdated events
|
|
2492
|
+
* @param callback Function to call when event is emitted
|
|
2493
|
+
* @param filter Optional filter for indexed parameters
|
|
2494
|
+
* @returns Unwatch function to stop listening
|
|
2495
|
+
*/
|
|
2496
|
+
ClaimStartUpdated: (callback) => {
|
|
2497
|
+
return this.publicClient.watchContractEvent({
|
|
2498
|
+
address: this.contractAddress,
|
|
2499
|
+
abi: exports.PresaleV2_jsonAbi,
|
|
2500
|
+
eventName: 'ClaimStartUpdated',
|
|
2501
|
+
onLogs: (logs) => {
|
|
2502
|
+
logs.forEach((log) => {
|
|
2503
|
+
callback(log.args);
|
|
2504
|
+
});
|
|
2505
|
+
},
|
|
2506
|
+
});
|
|
2507
|
+
},
|
|
2508
|
+
/**
|
|
2509
|
+
* Watch Initialized events
|
|
2510
|
+
* @param callback Function to call when event is emitted
|
|
2511
|
+
* @param filter Optional filter for indexed parameters
|
|
2512
|
+
* @returns Unwatch function to stop listening
|
|
2513
|
+
*/
|
|
2514
|
+
Initialized: (callback) => {
|
|
2515
|
+
return this.publicClient.watchContractEvent({
|
|
2516
|
+
address: this.contractAddress,
|
|
2517
|
+
abi: exports.PresaleV2_jsonAbi,
|
|
2518
|
+
eventName: 'Initialized',
|
|
2519
|
+
onLogs: (logs) => {
|
|
2520
|
+
logs.forEach((log) => {
|
|
2521
|
+
callback(log.args);
|
|
2522
|
+
});
|
|
2523
|
+
},
|
|
2524
|
+
});
|
|
2525
|
+
},
|
|
2526
|
+
/**
|
|
2527
|
+
* Watch MaxTokensUpdated events
|
|
2528
|
+
* @param callback Function to call when event is emitted
|
|
2529
|
+
* @param filter Optional filter for indexed parameters
|
|
2530
|
+
* @returns Unwatch function to stop listening
|
|
2531
|
+
*/
|
|
2532
|
+
MaxTokensUpdated: (callback) => {
|
|
2533
|
+
return this.publicClient.watchContractEvent({
|
|
2534
|
+
address: this.contractAddress,
|
|
2535
|
+
abi: exports.PresaleV2_jsonAbi,
|
|
2536
|
+
eventName: 'MaxTokensUpdated',
|
|
2537
|
+
onLogs: (logs) => {
|
|
2538
|
+
logs.forEach((log) => {
|
|
2539
|
+
callback(log.args);
|
|
2540
|
+
});
|
|
2541
|
+
},
|
|
2542
|
+
});
|
|
2543
|
+
},
|
|
2544
|
+
/**
|
|
2545
|
+
* Watch OwnershipTransferred events
|
|
2546
|
+
* @param callback Function to call when event is emitted
|
|
2547
|
+
* @param filter Optional filter for indexed parameters
|
|
2548
|
+
* @returns Unwatch function to stop listening
|
|
2549
|
+
*/
|
|
2550
|
+
OwnershipTransferred: (callback, filter) => {
|
|
2551
|
+
return this.publicClient.watchContractEvent({
|
|
2552
|
+
address: this.contractAddress,
|
|
2553
|
+
abi: exports.PresaleV2_jsonAbi,
|
|
2554
|
+
eventName: 'OwnershipTransferred',
|
|
2555
|
+
args: filter,
|
|
2556
|
+
onLogs: (logs) => {
|
|
2557
|
+
logs.forEach((log) => {
|
|
2558
|
+
callback(log.args);
|
|
2559
|
+
});
|
|
2560
|
+
},
|
|
2561
|
+
});
|
|
2562
|
+
},
|
|
2563
|
+
/**
|
|
2564
|
+
* Watch Paused events
|
|
2565
|
+
* @param callback Function to call when event is emitted
|
|
2566
|
+
* @param filter Optional filter for indexed parameters
|
|
2567
|
+
* @returns Unwatch function to stop listening
|
|
2568
|
+
*/
|
|
2569
|
+
Paused: (callback) => {
|
|
2570
|
+
return this.publicClient.watchContractEvent({
|
|
2571
|
+
address: this.contractAddress,
|
|
2572
|
+
abi: exports.PresaleV2_jsonAbi,
|
|
2573
|
+
eventName: 'Paused',
|
|
2574
|
+
onLogs: (logs) => {
|
|
2575
|
+
logs.forEach((log) => {
|
|
2576
|
+
callback(log.args);
|
|
2577
|
+
});
|
|
2578
|
+
},
|
|
2579
|
+
});
|
|
2580
|
+
},
|
|
2581
|
+
/**
|
|
2582
|
+
* Watch SaleTimeSet events
|
|
2583
|
+
* @param callback Function to call when event is emitted
|
|
2584
|
+
* @param filter Optional filter for indexed parameters
|
|
2585
|
+
* @returns Unwatch function to stop listening
|
|
2586
|
+
*/
|
|
2587
|
+
SaleTimeSet: (callback) => {
|
|
2588
|
+
return this.publicClient.watchContractEvent({
|
|
2589
|
+
address: this.contractAddress,
|
|
2590
|
+
abi: exports.PresaleV2_jsonAbi,
|
|
2591
|
+
eventName: 'SaleTimeSet',
|
|
2592
|
+
onLogs: (logs) => {
|
|
2593
|
+
logs.forEach((log) => {
|
|
2594
|
+
callback(log.args);
|
|
2595
|
+
});
|
|
2596
|
+
},
|
|
2597
|
+
});
|
|
2598
|
+
},
|
|
2599
|
+
/**
|
|
2600
|
+
* Watch SaleTimeUpdated events
|
|
2601
|
+
* @param callback Function to call when event is emitted
|
|
2602
|
+
* @param filter Optional filter for indexed parameters
|
|
2603
|
+
* @returns Unwatch function to stop listening
|
|
2604
|
+
*/
|
|
2605
|
+
SaleTimeUpdated: (callback, filter) => {
|
|
2606
|
+
return this.publicClient.watchContractEvent({
|
|
2607
|
+
address: this.contractAddress,
|
|
2608
|
+
abi: exports.PresaleV2_jsonAbi,
|
|
2609
|
+
eventName: 'SaleTimeUpdated',
|
|
2610
|
+
args: filter,
|
|
2611
|
+
onLogs: (logs) => {
|
|
2612
|
+
logs.forEach((log) => {
|
|
2613
|
+
callback(log.args);
|
|
2614
|
+
});
|
|
2615
|
+
},
|
|
2616
|
+
});
|
|
2617
|
+
},
|
|
2618
|
+
/**
|
|
2619
|
+
* Watch TokensAdded events
|
|
2620
|
+
* @param callback Function to call when event is emitted
|
|
2621
|
+
* @param filter Optional filter for indexed parameters
|
|
2622
|
+
* @returns Unwatch function to stop listening
|
|
2623
|
+
*/
|
|
2624
|
+
TokensAdded: (callback, filter) => {
|
|
2625
|
+
return this.publicClient.watchContractEvent({
|
|
2626
|
+
address: this.contractAddress,
|
|
2627
|
+
abi: exports.PresaleV2_jsonAbi,
|
|
2628
|
+
eventName: 'TokensAdded',
|
|
2629
|
+
args: filter,
|
|
2630
|
+
onLogs: (logs) => {
|
|
2631
|
+
logs.forEach((log) => {
|
|
2632
|
+
callback(log.args);
|
|
2633
|
+
});
|
|
2634
|
+
},
|
|
2635
|
+
});
|
|
2636
|
+
},
|
|
2637
|
+
/**
|
|
2638
|
+
* Watch TokensBought events
|
|
2639
|
+
* @param callback Function to call when event is emitted
|
|
2640
|
+
* @param filter Optional filter for indexed parameters
|
|
2641
|
+
* @returns Unwatch function to stop listening
|
|
2642
|
+
*/
|
|
2643
|
+
TokensBought: (callback, filter) => {
|
|
2644
|
+
return this.publicClient.watchContractEvent({
|
|
2645
|
+
address: this.contractAddress,
|
|
2646
|
+
abi: exports.PresaleV2_jsonAbi,
|
|
2647
|
+
eventName: 'TokensBought',
|
|
2648
|
+
args: filter,
|
|
2649
|
+
onLogs: (logs) => {
|
|
2650
|
+
logs.forEach((log) => {
|
|
2651
|
+
callback(log.args);
|
|
2652
|
+
});
|
|
2653
|
+
},
|
|
2654
|
+
});
|
|
2655
|
+
},
|
|
2656
|
+
/**
|
|
2657
|
+
* Watch TokensBoughtAndStaked events
|
|
2658
|
+
* @param callback Function to call when event is emitted
|
|
2659
|
+
* @param filter Optional filter for indexed parameters
|
|
2660
|
+
* @returns Unwatch function to stop listening
|
|
2661
|
+
*/
|
|
2662
|
+
TokensBoughtAndStaked: (callback, filter) => {
|
|
2663
|
+
return this.publicClient.watchContractEvent({
|
|
2664
|
+
address: this.contractAddress,
|
|
2665
|
+
abi: exports.PresaleV2_jsonAbi,
|
|
2666
|
+
eventName: 'TokensBoughtAndStaked',
|
|
2667
|
+
args: filter,
|
|
2668
|
+
onLogs: (logs) => {
|
|
2669
|
+
logs.forEach((log) => {
|
|
2670
|
+
callback(log.args);
|
|
2671
|
+
});
|
|
2672
|
+
},
|
|
2673
|
+
});
|
|
2674
|
+
},
|
|
2675
|
+
/**
|
|
2676
|
+
* Watch TokensClaimed events
|
|
2677
|
+
* @param callback Function to call when event is emitted
|
|
2678
|
+
* @param filter Optional filter for indexed parameters
|
|
2679
|
+
* @returns Unwatch function to stop listening
|
|
2680
|
+
*/
|
|
2681
|
+
TokensClaimed: (callback, filter) => {
|
|
2682
|
+
return this.publicClient.watchContractEvent({
|
|
2683
|
+
address: this.contractAddress,
|
|
2684
|
+
abi: exports.PresaleV2_jsonAbi,
|
|
2685
|
+
eventName: 'TokensClaimed',
|
|
2686
|
+
args: filter,
|
|
2687
|
+
onLogs: (logs) => {
|
|
2688
|
+
logs.forEach((log) => {
|
|
2689
|
+
callback(log.args);
|
|
2690
|
+
});
|
|
2691
|
+
},
|
|
2692
|
+
});
|
|
2693
|
+
},
|
|
2694
|
+
/**
|
|
2695
|
+
* Watch TokensClaimedAndStaked events
|
|
2696
|
+
* @param callback Function to call when event is emitted
|
|
2697
|
+
* @param filter Optional filter for indexed parameters
|
|
2698
|
+
* @returns Unwatch function to stop listening
|
|
2699
|
+
*/
|
|
2700
|
+
TokensClaimedAndStaked: (callback, filter) => {
|
|
2701
|
+
return this.publicClient.watchContractEvent({
|
|
2702
|
+
address: this.contractAddress,
|
|
2703
|
+
abi: exports.PresaleV2_jsonAbi,
|
|
2704
|
+
eventName: 'TokensClaimedAndStaked',
|
|
2705
|
+
args: filter,
|
|
2706
|
+
onLogs: (logs) => {
|
|
2707
|
+
logs.forEach((log) => {
|
|
2708
|
+
callback(log.args);
|
|
2709
|
+
});
|
|
2710
|
+
},
|
|
2711
|
+
});
|
|
2712
|
+
},
|
|
2713
|
+
/**
|
|
2714
|
+
* Watch Unpaused events
|
|
2715
|
+
* @param callback Function to call when event is emitted
|
|
2716
|
+
* @param filter Optional filter for indexed parameters
|
|
2717
|
+
* @returns Unwatch function to stop listening
|
|
2718
|
+
*/
|
|
2719
|
+
Unpaused: (callback) => {
|
|
2720
|
+
return this.publicClient.watchContractEvent({
|
|
2721
|
+
address: this.contractAddress,
|
|
2722
|
+
abi: exports.PresaleV2_jsonAbi,
|
|
2723
|
+
eventName: 'Unpaused',
|
|
2724
|
+
onLogs: (logs) => {
|
|
2725
|
+
logs.forEach((log) => {
|
|
2726
|
+
callback(log.args);
|
|
2727
|
+
});
|
|
2728
|
+
},
|
|
2729
|
+
});
|
|
2730
|
+
}
|
|
2731
|
+
};
|
|
2732
|
+
}
|
|
2733
|
+
}
|
|
2734
|
+
exports.PresaleV2_json = PresaleV2_json;
|