@gitmyabi/mycryptochampcore 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/README.md +108 -0
- package/contracts/MyCryptoChampCore_json.d.ts +1617 -0
- package/contracts/MyCryptoChampCore_json.js +1574 -0
- package/contracts/MyCryptoChampCore_json.ts +2129 -0
- package/contracts/index.d.ts +2 -0
- package/contracts/index.js +7 -0
- package/contracts/index.ts +3 -0
- package/index.d.ts +1 -0
- package/index.js +19 -0
- package/package.json +43 -0
|
@@ -0,0 +1,1617 @@
|
|
|
1
|
+
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* MyCryptoChampCore_json ABI
|
|
4
|
+
*
|
|
5
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
6
|
+
*/
|
|
7
|
+
export declare const MyCryptoChampCore_jsonAbi: readonly [{
|
|
8
|
+
readonly constant: true;
|
|
9
|
+
readonly inputs: readonly [];
|
|
10
|
+
readonly name: "getItemsForSale";
|
|
11
|
+
readonly outputs: readonly [{
|
|
12
|
+
readonly name: "";
|
|
13
|
+
readonly type: "uint256[]";
|
|
14
|
+
}];
|
|
15
|
+
readonly payable: false;
|
|
16
|
+
readonly stateMutability: "view";
|
|
17
|
+
readonly type: "function";
|
|
18
|
+
}, {
|
|
19
|
+
readonly constant: true;
|
|
20
|
+
readonly inputs: readonly [];
|
|
21
|
+
readonly name: "itemsForSaleCount";
|
|
22
|
+
readonly outputs: readonly [{
|
|
23
|
+
readonly name: "";
|
|
24
|
+
readonly type: "uint256";
|
|
25
|
+
}];
|
|
26
|
+
readonly payable: false;
|
|
27
|
+
readonly stateMutability: "view";
|
|
28
|
+
readonly type: "function";
|
|
29
|
+
}, {
|
|
30
|
+
readonly constant: true;
|
|
31
|
+
readonly inputs: readonly [{
|
|
32
|
+
readonly name: "";
|
|
33
|
+
readonly type: "uint256";
|
|
34
|
+
}];
|
|
35
|
+
readonly name: "itemToOwner";
|
|
36
|
+
readonly outputs: readonly [{
|
|
37
|
+
readonly name: "";
|
|
38
|
+
readonly type: "address";
|
|
39
|
+
}];
|
|
40
|
+
readonly payable: false;
|
|
41
|
+
readonly stateMutability: "view";
|
|
42
|
+
readonly type: "function";
|
|
43
|
+
}, {
|
|
44
|
+
readonly constant: true;
|
|
45
|
+
readonly inputs: readonly [];
|
|
46
|
+
readonly name: "champsForSaleCount";
|
|
47
|
+
readonly outputs: readonly [{
|
|
48
|
+
readonly name: "";
|
|
49
|
+
readonly type: "uint256";
|
|
50
|
+
}];
|
|
51
|
+
readonly payable: false;
|
|
52
|
+
readonly stateMutability: "view";
|
|
53
|
+
readonly type: "function";
|
|
54
|
+
}, {
|
|
55
|
+
readonly constant: true;
|
|
56
|
+
readonly inputs: readonly [{
|
|
57
|
+
readonly name: "";
|
|
58
|
+
readonly type: "address";
|
|
59
|
+
}];
|
|
60
|
+
readonly name: "addressInfo";
|
|
61
|
+
readonly outputs: readonly [{
|
|
62
|
+
readonly name: "withdrawal";
|
|
63
|
+
readonly type: "uint256";
|
|
64
|
+
}, {
|
|
65
|
+
readonly name: "champsCount";
|
|
66
|
+
readonly type: "uint256";
|
|
67
|
+
}, {
|
|
68
|
+
readonly name: "itemsCount";
|
|
69
|
+
readonly type: "uint256";
|
|
70
|
+
}, {
|
|
71
|
+
readonly name: "name";
|
|
72
|
+
readonly type: "string";
|
|
73
|
+
}];
|
|
74
|
+
readonly payable: false;
|
|
75
|
+
readonly stateMutability: "view";
|
|
76
|
+
readonly type: "function";
|
|
77
|
+
}, {
|
|
78
|
+
readonly constant: true;
|
|
79
|
+
readonly inputs: readonly [{
|
|
80
|
+
readonly name: "_owner";
|
|
81
|
+
readonly type: "address";
|
|
82
|
+
}];
|
|
83
|
+
readonly name: "getItemsByOwner";
|
|
84
|
+
readonly outputs: readonly [{
|
|
85
|
+
readonly name: "";
|
|
86
|
+
readonly type: "uint256[]";
|
|
87
|
+
}];
|
|
88
|
+
readonly payable: false;
|
|
89
|
+
readonly stateMutability: "view";
|
|
90
|
+
readonly type: "function";
|
|
91
|
+
}, {
|
|
92
|
+
readonly constant: true;
|
|
93
|
+
readonly inputs: readonly [];
|
|
94
|
+
readonly name: "getChampsCount";
|
|
95
|
+
readonly outputs: readonly [{
|
|
96
|
+
readonly name: "";
|
|
97
|
+
readonly type: "uint256";
|
|
98
|
+
}];
|
|
99
|
+
readonly payable: false;
|
|
100
|
+
readonly stateMutability: "view";
|
|
101
|
+
readonly type: "function";
|
|
102
|
+
}, {
|
|
103
|
+
readonly constant: false;
|
|
104
|
+
readonly inputs: readonly [{
|
|
105
|
+
readonly name: "_affiliateAddress";
|
|
106
|
+
readonly type: "address";
|
|
107
|
+
}];
|
|
108
|
+
readonly name: "openLootbox";
|
|
109
|
+
readonly outputs: readonly [];
|
|
110
|
+
readonly payable: true;
|
|
111
|
+
readonly stateMutability: "payable";
|
|
112
|
+
readonly type: "function";
|
|
113
|
+
}, {
|
|
114
|
+
readonly constant: false;
|
|
115
|
+
readonly inputs: readonly [{
|
|
116
|
+
readonly name: "_id";
|
|
117
|
+
readonly type: "uint256";
|
|
118
|
+
}];
|
|
119
|
+
readonly name: "withdrawChamp";
|
|
120
|
+
readonly outputs: readonly [];
|
|
121
|
+
readonly payable: false;
|
|
122
|
+
readonly stateMutability: "nonpayable";
|
|
123
|
+
readonly type: "function";
|
|
124
|
+
}, {
|
|
125
|
+
readonly constant: false;
|
|
126
|
+
readonly inputs: readonly [{
|
|
127
|
+
readonly name: "_parentItemID";
|
|
128
|
+
readonly type: "uint256";
|
|
129
|
+
}, {
|
|
130
|
+
readonly name: "_childItemID";
|
|
131
|
+
readonly type: "uint256";
|
|
132
|
+
}];
|
|
133
|
+
readonly name: "forgeItems";
|
|
134
|
+
readonly outputs: readonly [];
|
|
135
|
+
readonly payable: false;
|
|
136
|
+
readonly stateMutability: "nonpayable";
|
|
137
|
+
readonly type: "function";
|
|
138
|
+
}, {
|
|
139
|
+
readonly constant: true;
|
|
140
|
+
readonly inputs: readonly [{
|
|
141
|
+
readonly name: "_champId";
|
|
142
|
+
readonly type: "uint256";
|
|
143
|
+
}];
|
|
144
|
+
readonly name: "getChampStats";
|
|
145
|
+
readonly outputs: readonly [{
|
|
146
|
+
readonly name: "";
|
|
147
|
+
readonly type: "uint256";
|
|
148
|
+
}, {
|
|
149
|
+
readonly name: "";
|
|
150
|
+
readonly type: "uint256";
|
|
151
|
+
}, {
|
|
152
|
+
readonly name: "";
|
|
153
|
+
readonly type: "uint256";
|
|
154
|
+
}];
|
|
155
|
+
readonly payable: false;
|
|
156
|
+
readonly stateMutability: "view";
|
|
157
|
+
readonly type: "function";
|
|
158
|
+
}, {
|
|
159
|
+
readonly constant: false;
|
|
160
|
+
readonly inputs: readonly [{
|
|
161
|
+
readonly name: "_champId";
|
|
162
|
+
readonly type: "uint256";
|
|
163
|
+
}, {
|
|
164
|
+
readonly name: "_itemId";
|
|
165
|
+
readonly type: "uint256";
|
|
166
|
+
}];
|
|
167
|
+
readonly name: "putOn";
|
|
168
|
+
readonly outputs: readonly [];
|
|
169
|
+
readonly payable: false;
|
|
170
|
+
readonly stateMutability: "nonpayable";
|
|
171
|
+
readonly type: "function";
|
|
172
|
+
}, {
|
|
173
|
+
readonly constant: true;
|
|
174
|
+
readonly inputs: readonly [];
|
|
175
|
+
readonly name: "getChampsForSale";
|
|
176
|
+
readonly outputs: readonly [{
|
|
177
|
+
readonly name: "";
|
|
178
|
+
readonly type: "uint256[]";
|
|
179
|
+
}];
|
|
180
|
+
readonly payable: false;
|
|
181
|
+
readonly stateMutability: "view";
|
|
182
|
+
readonly type: "function";
|
|
183
|
+
}, {
|
|
184
|
+
readonly constant: false;
|
|
185
|
+
readonly inputs: readonly [{
|
|
186
|
+
readonly name: "_id";
|
|
187
|
+
readonly type: "uint256";
|
|
188
|
+
}];
|
|
189
|
+
readonly name: "cancelChampSale";
|
|
190
|
+
readonly outputs: readonly [];
|
|
191
|
+
readonly payable: false;
|
|
192
|
+
readonly stateMutability: "nonpayable";
|
|
193
|
+
readonly type: "function";
|
|
194
|
+
}, {
|
|
195
|
+
readonly constant: false;
|
|
196
|
+
readonly inputs: readonly [{
|
|
197
|
+
readonly name: "_id";
|
|
198
|
+
readonly type: "uint256";
|
|
199
|
+
}];
|
|
200
|
+
readonly name: "buyChamp";
|
|
201
|
+
readonly outputs: readonly [];
|
|
202
|
+
readonly payable: true;
|
|
203
|
+
readonly stateMutability: "payable";
|
|
204
|
+
readonly type: "function";
|
|
205
|
+
}, {
|
|
206
|
+
readonly constant: false;
|
|
207
|
+
readonly inputs: readonly [{
|
|
208
|
+
readonly name: "_name";
|
|
209
|
+
readonly type: "string";
|
|
210
|
+
}];
|
|
211
|
+
readonly name: "changePlayersName";
|
|
212
|
+
readonly outputs: readonly [];
|
|
213
|
+
readonly payable: false;
|
|
214
|
+
readonly stateMutability: "nonpayable";
|
|
215
|
+
readonly type: "function";
|
|
216
|
+
}, {
|
|
217
|
+
readonly constant: false;
|
|
218
|
+
readonly inputs: readonly [{
|
|
219
|
+
readonly name: "_to";
|
|
220
|
+
readonly type: "address";
|
|
221
|
+
}, {
|
|
222
|
+
readonly name: "_champId";
|
|
223
|
+
readonly type: "uint256";
|
|
224
|
+
}];
|
|
225
|
+
readonly name: "giveChamp";
|
|
226
|
+
readonly outputs: readonly [];
|
|
227
|
+
readonly payable: false;
|
|
228
|
+
readonly stateMutability: "nonpayable";
|
|
229
|
+
readonly type: "function";
|
|
230
|
+
}, {
|
|
231
|
+
readonly constant: false;
|
|
232
|
+
readonly inputs: readonly [];
|
|
233
|
+
readonly name: "triggerPause";
|
|
234
|
+
readonly outputs: readonly [];
|
|
235
|
+
readonly payable: false;
|
|
236
|
+
readonly stateMutability: "nonpayable";
|
|
237
|
+
readonly type: "function";
|
|
238
|
+
}, {
|
|
239
|
+
readonly constant: true;
|
|
240
|
+
readonly inputs: readonly [{
|
|
241
|
+
readonly name: "";
|
|
242
|
+
readonly type: "uint256";
|
|
243
|
+
}];
|
|
244
|
+
readonly name: "champToName";
|
|
245
|
+
readonly outputs: readonly [{
|
|
246
|
+
readonly name: "";
|
|
247
|
+
readonly type: "string";
|
|
248
|
+
}];
|
|
249
|
+
readonly payable: false;
|
|
250
|
+
readonly stateMutability: "view";
|
|
251
|
+
readonly type: "function";
|
|
252
|
+
}, {
|
|
253
|
+
readonly constant: false;
|
|
254
|
+
readonly inputs: readonly [{
|
|
255
|
+
readonly name: "_affiliateAddress";
|
|
256
|
+
readonly type: "address";
|
|
257
|
+
}];
|
|
258
|
+
readonly name: "createChamp";
|
|
259
|
+
readonly outputs: readonly [];
|
|
260
|
+
readonly payable: true;
|
|
261
|
+
readonly stateMutability: "payable";
|
|
262
|
+
readonly type: "function";
|
|
263
|
+
}, {
|
|
264
|
+
readonly constant: true;
|
|
265
|
+
readonly inputs: readonly [{
|
|
266
|
+
readonly name: "_position";
|
|
267
|
+
readonly type: "uint256";
|
|
268
|
+
}];
|
|
269
|
+
readonly name: "getChampReward";
|
|
270
|
+
readonly outputs: readonly [{
|
|
271
|
+
readonly name: "";
|
|
272
|
+
readonly type: "uint256";
|
|
273
|
+
}];
|
|
274
|
+
readonly payable: false;
|
|
275
|
+
readonly stateMutability: "view";
|
|
276
|
+
readonly type: "function";
|
|
277
|
+
}, {
|
|
278
|
+
readonly constant: false;
|
|
279
|
+
readonly inputs: readonly [{
|
|
280
|
+
readonly name: "_address";
|
|
281
|
+
readonly type: "address";
|
|
282
|
+
}];
|
|
283
|
+
readonly name: "withdrawToAddress";
|
|
284
|
+
readonly outputs: readonly [];
|
|
285
|
+
readonly payable: false;
|
|
286
|
+
readonly stateMutability: "nonpayable";
|
|
287
|
+
readonly type: "function";
|
|
288
|
+
}, {
|
|
289
|
+
readonly constant: false;
|
|
290
|
+
readonly inputs: readonly [{
|
|
291
|
+
readonly name: "_id";
|
|
292
|
+
readonly type: "uint256";
|
|
293
|
+
}, {
|
|
294
|
+
readonly name: "_price";
|
|
295
|
+
readonly type: "uint256";
|
|
296
|
+
}];
|
|
297
|
+
readonly name: "setItemForSale";
|
|
298
|
+
readonly outputs: readonly [];
|
|
299
|
+
readonly payable: false;
|
|
300
|
+
readonly stateMutability: "nonpayable";
|
|
301
|
+
readonly type: "function";
|
|
302
|
+
}, {
|
|
303
|
+
readonly constant: false;
|
|
304
|
+
readonly inputs: readonly [{
|
|
305
|
+
readonly name: "_champId";
|
|
306
|
+
readonly type: "uint256";
|
|
307
|
+
}, {
|
|
308
|
+
readonly name: "_name";
|
|
309
|
+
readonly type: "string";
|
|
310
|
+
}];
|
|
311
|
+
readonly name: "changeChampsName";
|
|
312
|
+
readonly outputs: readonly [];
|
|
313
|
+
readonly payable: false;
|
|
314
|
+
readonly stateMutability: "nonpayable";
|
|
315
|
+
readonly type: "function";
|
|
316
|
+
}, {
|
|
317
|
+
readonly constant: true;
|
|
318
|
+
readonly inputs: readonly [{
|
|
319
|
+
readonly name: "";
|
|
320
|
+
readonly type: "uint256";
|
|
321
|
+
}];
|
|
322
|
+
readonly name: "leaderboard";
|
|
323
|
+
readonly outputs: readonly [{
|
|
324
|
+
readonly name: "";
|
|
325
|
+
readonly type: "uint256";
|
|
326
|
+
}];
|
|
327
|
+
readonly payable: false;
|
|
328
|
+
readonly stateMutability: "view";
|
|
329
|
+
readonly type: "function";
|
|
330
|
+
}, {
|
|
331
|
+
readonly constant: true;
|
|
332
|
+
readonly inputs: readonly [{
|
|
333
|
+
readonly name: "";
|
|
334
|
+
readonly type: "uint256";
|
|
335
|
+
}];
|
|
336
|
+
readonly name: "items";
|
|
337
|
+
readonly outputs: readonly [{
|
|
338
|
+
readonly name: "itemType";
|
|
339
|
+
readonly type: "uint8";
|
|
340
|
+
}, {
|
|
341
|
+
readonly name: "itemRarity";
|
|
342
|
+
readonly type: "uint8";
|
|
343
|
+
}, {
|
|
344
|
+
readonly name: "attackPower";
|
|
345
|
+
readonly type: "uint256";
|
|
346
|
+
}, {
|
|
347
|
+
readonly name: "defencePower";
|
|
348
|
+
readonly type: "uint256";
|
|
349
|
+
}, {
|
|
350
|
+
readonly name: "cooldownReduction";
|
|
351
|
+
readonly type: "uint256";
|
|
352
|
+
}, {
|
|
353
|
+
readonly name: "price";
|
|
354
|
+
readonly type: "uint256";
|
|
355
|
+
}, {
|
|
356
|
+
readonly name: "onChampId";
|
|
357
|
+
readonly type: "uint256";
|
|
358
|
+
}, {
|
|
359
|
+
readonly name: "onChamp";
|
|
360
|
+
readonly type: "bool";
|
|
361
|
+
}, {
|
|
362
|
+
readonly name: "forSale";
|
|
363
|
+
readonly type: "bool";
|
|
364
|
+
}];
|
|
365
|
+
readonly payable: false;
|
|
366
|
+
readonly stateMutability: "view";
|
|
367
|
+
readonly type: "function";
|
|
368
|
+
}, {
|
|
369
|
+
readonly constant: false;
|
|
370
|
+
readonly inputs: readonly [{
|
|
371
|
+
readonly name: "_id";
|
|
372
|
+
readonly type: "uint256";
|
|
373
|
+
}];
|
|
374
|
+
readonly name: "cancelItemSale";
|
|
375
|
+
readonly outputs: readonly [];
|
|
376
|
+
readonly payable: false;
|
|
377
|
+
readonly stateMutability: "nonpayable";
|
|
378
|
+
readonly type: "function";
|
|
379
|
+
}, {
|
|
380
|
+
readonly constant: true;
|
|
381
|
+
readonly inputs: readonly [{
|
|
382
|
+
readonly name: "";
|
|
383
|
+
readonly type: "uint256";
|
|
384
|
+
}];
|
|
385
|
+
readonly name: "champs";
|
|
386
|
+
readonly outputs: readonly [{
|
|
387
|
+
readonly name: "id";
|
|
388
|
+
readonly type: "uint256";
|
|
389
|
+
}, {
|
|
390
|
+
readonly name: "attackPower";
|
|
391
|
+
readonly type: "uint256";
|
|
392
|
+
}, {
|
|
393
|
+
readonly name: "defencePower";
|
|
394
|
+
readonly type: "uint256";
|
|
395
|
+
}, {
|
|
396
|
+
readonly name: "cooldownTime";
|
|
397
|
+
readonly type: "uint256";
|
|
398
|
+
}, {
|
|
399
|
+
readonly name: "readyTime";
|
|
400
|
+
readonly type: "uint256";
|
|
401
|
+
}, {
|
|
402
|
+
readonly name: "winCount";
|
|
403
|
+
readonly type: "uint256";
|
|
404
|
+
}, {
|
|
405
|
+
readonly name: "lossCount";
|
|
406
|
+
readonly type: "uint256";
|
|
407
|
+
}, {
|
|
408
|
+
readonly name: "position";
|
|
409
|
+
readonly type: "uint256";
|
|
410
|
+
}, {
|
|
411
|
+
readonly name: "price";
|
|
412
|
+
readonly type: "uint256";
|
|
413
|
+
}, {
|
|
414
|
+
readonly name: "withdrawCooldown";
|
|
415
|
+
readonly type: "uint256";
|
|
416
|
+
}, {
|
|
417
|
+
readonly name: "eq_sword";
|
|
418
|
+
readonly type: "uint256";
|
|
419
|
+
}, {
|
|
420
|
+
readonly name: "eq_shield";
|
|
421
|
+
readonly type: "uint256";
|
|
422
|
+
}, {
|
|
423
|
+
readonly name: "eq_helmet";
|
|
424
|
+
readonly type: "uint256";
|
|
425
|
+
}, {
|
|
426
|
+
readonly name: "forSale";
|
|
427
|
+
readonly type: "bool";
|
|
428
|
+
}];
|
|
429
|
+
readonly payable: false;
|
|
430
|
+
readonly stateMutability: "view";
|
|
431
|
+
readonly type: "function";
|
|
432
|
+
}, {
|
|
433
|
+
readonly constant: false;
|
|
434
|
+
readonly inputs: readonly [{
|
|
435
|
+
readonly name: "_fee";
|
|
436
|
+
readonly type: "uint256";
|
|
437
|
+
}];
|
|
438
|
+
readonly name: "setCreateChampFee";
|
|
439
|
+
readonly outputs: readonly [];
|
|
440
|
+
readonly payable: false;
|
|
441
|
+
readonly stateMutability: "nonpayable";
|
|
442
|
+
readonly type: "function";
|
|
443
|
+
}, {
|
|
444
|
+
readonly constant: false;
|
|
445
|
+
readonly inputs: readonly [{
|
|
446
|
+
readonly name: "_to";
|
|
447
|
+
readonly type: "address";
|
|
448
|
+
}, {
|
|
449
|
+
readonly name: "_itemID";
|
|
450
|
+
readonly type: "uint256";
|
|
451
|
+
}];
|
|
452
|
+
readonly name: "giveItem";
|
|
453
|
+
readonly outputs: readonly [];
|
|
454
|
+
readonly payable: false;
|
|
455
|
+
readonly stateMutability: "nonpayable";
|
|
456
|
+
readonly type: "function";
|
|
457
|
+
}, {
|
|
458
|
+
readonly constant: false;
|
|
459
|
+
readonly inputs: readonly [{
|
|
460
|
+
readonly name: "_champId";
|
|
461
|
+
readonly type: "uint256";
|
|
462
|
+
}, {
|
|
463
|
+
readonly name: "_type";
|
|
464
|
+
readonly type: "uint8";
|
|
465
|
+
}];
|
|
466
|
+
readonly name: "takeOffItem";
|
|
467
|
+
readonly outputs: readonly [];
|
|
468
|
+
readonly payable: false;
|
|
469
|
+
readonly stateMutability: "nonpayable";
|
|
470
|
+
readonly type: "function";
|
|
471
|
+
}, {
|
|
472
|
+
readonly constant: false;
|
|
473
|
+
readonly inputs: readonly [{
|
|
474
|
+
readonly name: "_fee";
|
|
475
|
+
readonly type: "uint256";
|
|
476
|
+
}];
|
|
477
|
+
readonly name: "setLootboxFee";
|
|
478
|
+
readonly outputs: readonly [];
|
|
479
|
+
readonly payable: false;
|
|
480
|
+
readonly stateMutability: "nonpayable";
|
|
481
|
+
readonly type: "function";
|
|
482
|
+
}, {
|
|
483
|
+
readonly constant: false;
|
|
484
|
+
readonly inputs: readonly [{
|
|
485
|
+
readonly name: "_champId";
|
|
486
|
+
readonly type: "uint256";
|
|
487
|
+
}, {
|
|
488
|
+
readonly name: "_targetId";
|
|
489
|
+
readonly type: "uint256";
|
|
490
|
+
}];
|
|
491
|
+
readonly name: "attack";
|
|
492
|
+
readonly outputs: readonly [];
|
|
493
|
+
readonly payable: false;
|
|
494
|
+
readonly stateMutability: "nonpayable";
|
|
495
|
+
readonly type: "function";
|
|
496
|
+
}, {
|
|
497
|
+
readonly constant: false;
|
|
498
|
+
readonly inputs: readonly [{
|
|
499
|
+
readonly name: "_id";
|
|
500
|
+
readonly type: "uint256";
|
|
501
|
+
}];
|
|
502
|
+
readonly name: "buyItem";
|
|
503
|
+
readonly outputs: readonly [];
|
|
504
|
+
readonly payable: true;
|
|
505
|
+
readonly stateMutability: "payable";
|
|
506
|
+
readonly type: "function";
|
|
507
|
+
}, {
|
|
508
|
+
readonly constant: false;
|
|
509
|
+
readonly inputs: readonly [{
|
|
510
|
+
readonly name: "_id";
|
|
511
|
+
readonly type: "uint256";
|
|
512
|
+
}, {
|
|
513
|
+
readonly name: "_price";
|
|
514
|
+
readonly type: "uint256";
|
|
515
|
+
}];
|
|
516
|
+
readonly name: "setChampForSale";
|
|
517
|
+
readonly outputs: readonly [];
|
|
518
|
+
readonly payable: false;
|
|
519
|
+
readonly stateMutability: "nonpayable";
|
|
520
|
+
readonly type: "function";
|
|
521
|
+
}, {
|
|
522
|
+
readonly constant: true;
|
|
523
|
+
readonly inputs: readonly [{
|
|
524
|
+
readonly name: "_owner";
|
|
525
|
+
readonly type: "address";
|
|
526
|
+
}];
|
|
527
|
+
readonly name: "getChampsByOwner";
|
|
528
|
+
readonly outputs: readonly [{
|
|
529
|
+
readonly name: "";
|
|
530
|
+
readonly type: "uint256[]";
|
|
531
|
+
}];
|
|
532
|
+
readonly payable: false;
|
|
533
|
+
readonly stateMutability: "view";
|
|
534
|
+
readonly type: "function";
|
|
535
|
+
}, {
|
|
536
|
+
readonly constant: false;
|
|
537
|
+
readonly inputs: readonly [{
|
|
538
|
+
readonly name: "newOwner";
|
|
539
|
+
readonly type: "address";
|
|
540
|
+
}];
|
|
541
|
+
readonly name: "transferOwnership";
|
|
542
|
+
readonly outputs: readonly [];
|
|
543
|
+
readonly payable: false;
|
|
544
|
+
readonly stateMutability: "nonpayable";
|
|
545
|
+
readonly type: "function";
|
|
546
|
+
}, {
|
|
547
|
+
readonly constant: true;
|
|
548
|
+
readonly inputs: readonly [{
|
|
549
|
+
readonly name: "";
|
|
550
|
+
readonly type: "uint256";
|
|
551
|
+
}];
|
|
552
|
+
readonly name: "champToOwner";
|
|
553
|
+
readonly outputs: readonly [{
|
|
554
|
+
readonly name: "";
|
|
555
|
+
readonly type: "address";
|
|
556
|
+
}];
|
|
557
|
+
readonly payable: false;
|
|
558
|
+
readonly stateMutability: "view";
|
|
559
|
+
readonly type: "function";
|
|
560
|
+
}, {
|
|
561
|
+
readonly anonymous: false;
|
|
562
|
+
readonly inputs: readonly [{
|
|
563
|
+
readonly indexed: false;
|
|
564
|
+
readonly name: "from";
|
|
565
|
+
readonly type: "address";
|
|
566
|
+
}, {
|
|
567
|
+
readonly indexed: false;
|
|
568
|
+
readonly name: "to";
|
|
569
|
+
readonly type: "address";
|
|
570
|
+
}, {
|
|
571
|
+
readonly indexed: false;
|
|
572
|
+
readonly name: "champID";
|
|
573
|
+
readonly type: "uint256";
|
|
574
|
+
}];
|
|
575
|
+
readonly name: "TransferChamp";
|
|
576
|
+
readonly type: "event";
|
|
577
|
+
}, {
|
|
578
|
+
readonly anonymous: false;
|
|
579
|
+
readonly inputs: readonly [{
|
|
580
|
+
readonly indexed: false;
|
|
581
|
+
readonly name: "winnerChampID";
|
|
582
|
+
readonly type: "uint256";
|
|
583
|
+
}, {
|
|
584
|
+
readonly indexed: false;
|
|
585
|
+
readonly name: "defeatedChampID";
|
|
586
|
+
readonly type: "uint256";
|
|
587
|
+
}, {
|
|
588
|
+
readonly indexed: false;
|
|
589
|
+
readonly name: "didAttackerWin";
|
|
590
|
+
readonly type: "bool";
|
|
591
|
+
}];
|
|
592
|
+
readonly name: "Attack";
|
|
593
|
+
readonly type: "event";
|
|
594
|
+
}, {
|
|
595
|
+
readonly anonymous: false;
|
|
596
|
+
readonly inputs: readonly [{
|
|
597
|
+
readonly indexed: false;
|
|
598
|
+
readonly name: "forgedItemID";
|
|
599
|
+
readonly type: "uint256";
|
|
600
|
+
}];
|
|
601
|
+
readonly name: "Forge";
|
|
602
|
+
readonly type: "event";
|
|
603
|
+
}, {
|
|
604
|
+
readonly anonymous: false;
|
|
605
|
+
readonly inputs: readonly [{
|
|
606
|
+
readonly indexed: false;
|
|
607
|
+
readonly name: "from";
|
|
608
|
+
readonly type: "address";
|
|
609
|
+
}, {
|
|
610
|
+
readonly indexed: false;
|
|
611
|
+
readonly name: "to";
|
|
612
|
+
readonly type: "address";
|
|
613
|
+
}, {
|
|
614
|
+
readonly indexed: false;
|
|
615
|
+
readonly name: "itemID";
|
|
616
|
+
readonly type: "uint256";
|
|
617
|
+
}];
|
|
618
|
+
readonly name: "TransferItem";
|
|
619
|
+
readonly type: "event";
|
|
620
|
+
}, {
|
|
621
|
+
readonly anonymous: false;
|
|
622
|
+
readonly inputs: readonly [{
|
|
623
|
+
readonly indexed: false;
|
|
624
|
+
readonly name: "itemID";
|
|
625
|
+
readonly type: "uint256";
|
|
626
|
+
}, {
|
|
627
|
+
readonly indexed: false;
|
|
628
|
+
readonly name: "owner";
|
|
629
|
+
readonly type: "address";
|
|
630
|
+
}];
|
|
631
|
+
readonly name: "NewItem";
|
|
632
|
+
readonly type: "event";
|
|
633
|
+
}, {
|
|
634
|
+
readonly anonymous: false;
|
|
635
|
+
readonly inputs: readonly [{
|
|
636
|
+
readonly indexed: false;
|
|
637
|
+
readonly name: "champID";
|
|
638
|
+
readonly type: "uint256";
|
|
639
|
+
}, {
|
|
640
|
+
readonly indexed: false;
|
|
641
|
+
readonly name: "owner";
|
|
642
|
+
readonly type: "address";
|
|
643
|
+
}];
|
|
644
|
+
readonly name: "NewChamp";
|
|
645
|
+
readonly type: "event";
|
|
646
|
+
}];
|
|
647
|
+
/**
|
|
648
|
+
* Type-safe ABI for MyCryptoChampCore_json
|
|
649
|
+
*/
|
|
650
|
+
export type MyCryptoChampCore_jsonAbi = typeof MyCryptoChampCore_jsonAbi;
|
|
651
|
+
/**
|
|
652
|
+
* Contract instance type for MyCryptoChampCore_json
|
|
653
|
+
*/
|
|
654
|
+
export type MyCryptoChampCore_jsonContract = any;
|
|
655
|
+
/**
|
|
656
|
+
* MyCryptoChampCore_json Contract Class
|
|
657
|
+
*
|
|
658
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
659
|
+
*
|
|
660
|
+
* @example
|
|
661
|
+
* ```typescript
|
|
662
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
663
|
+
* import { mainnet } from 'viem/chains';
|
|
664
|
+
* import { MyCryptoChampCore_json } from 'MyCryptoChampCore_json';
|
|
665
|
+
*
|
|
666
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
667
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
668
|
+
*
|
|
669
|
+
* const contract = new MyCryptoChampCore_json('0x...', { publicClient, walletClient });
|
|
670
|
+
*
|
|
671
|
+
* // Read functions
|
|
672
|
+
* const result = await contract.balanceOf('0x...');
|
|
673
|
+
*
|
|
674
|
+
* // Write functions
|
|
675
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
676
|
+
*
|
|
677
|
+
* // Simulate transactions (dry-run)
|
|
678
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
679
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
680
|
+
*
|
|
681
|
+
* // Watch events
|
|
682
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
683
|
+
* console.log('Transfer event:', event);
|
|
684
|
+
* });
|
|
685
|
+
* ```
|
|
686
|
+
*/
|
|
687
|
+
export declare class MyCryptoChampCore_json {
|
|
688
|
+
private contract;
|
|
689
|
+
private contractAddress;
|
|
690
|
+
private publicClient;
|
|
691
|
+
constructor(address: Address, clients: {
|
|
692
|
+
publicClient: PublicClient;
|
|
693
|
+
walletClient?: WalletClient;
|
|
694
|
+
});
|
|
695
|
+
/**
|
|
696
|
+
* Get the contract address
|
|
697
|
+
*/
|
|
698
|
+
get address(): Address;
|
|
699
|
+
/**
|
|
700
|
+
* Get the underlying viem contract instance
|
|
701
|
+
*/
|
|
702
|
+
getContract(): MyCryptoChampCore_jsonContract;
|
|
703
|
+
/**
|
|
704
|
+
* getItemsForSale
|
|
705
|
+
* view
|
|
706
|
+
*/
|
|
707
|
+
getItemsForSale(): Promise<bigint[]>;
|
|
708
|
+
/**
|
|
709
|
+
* itemsForSaleCount
|
|
710
|
+
* view
|
|
711
|
+
*/
|
|
712
|
+
itemsForSaleCount(): Promise<bigint>;
|
|
713
|
+
/**
|
|
714
|
+
* itemToOwner
|
|
715
|
+
* view
|
|
716
|
+
*/
|
|
717
|
+
itemToOwner(arg0: bigint): Promise<`0x${string}`>;
|
|
718
|
+
/**
|
|
719
|
+
* champsForSaleCount
|
|
720
|
+
* view
|
|
721
|
+
*/
|
|
722
|
+
champsForSaleCount(): Promise<bigint>;
|
|
723
|
+
/**
|
|
724
|
+
* addressInfo
|
|
725
|
+
* view
|
|
726
|
+
*/
|
|
727
|
+
addressInfo(arg0: `0x${string}`): Promise<[bigint, bigint, bigint, string]>;
|
|
728
|
+
/**
|
|
729
|
+
* getItemsByOwner
|
|
730
|
+
* view
|
|
731
|
+
*/
|
|
732
|
+
getItemsByOwner(_owner: `0x${string}`): Promise<bigint[]>;
|
|
733
|
+
/**
|
|
734
|
+
* getChampsCount
|
|
735
|
+
* view
|
|
736
|
+
*/
|
|
737
|
+
getChampsCount(): Promise<bigint>;
|
|
738
|
+
/**
|
|
739
|
+
* getChampStats
|
|
740
|
+
* view
|
|
741
|
+
*/
|
|
742
|
+
getChampStats(_champId: bigint): Promise<[bigint, bigint, bigint]>;
|
|
743
|
+
/**
|
|
744
|
+
* getChampsForSale
|
|
745
|
+
* view
|
|
746
|
+
*/
|
|
747
|
+
getChampsForSale(): Promise<bigint[]>;
|
|
748
|
+
/**
|
|
749
|
+
* champToName
|
|
750
|
+
* view
|
|
751
|
+
*/
|
|
752
|
+
champToName(arg0: bigint): Promise<string>;
|
|
753
|
+
/**
|
|
754
|
+
* getChampReward
|
|
755
|
+
* view
|
|
756
|
+
*/
|
|
757
|
+
getChampReward(_position: bigint): Promise<bigint>;
|
|
758
|
+
/**
|
|
759
|
+
* leaderboard
|
|
760
|
+
* view
|
|
761
|
+
*/
|
|
762
|
+
leaderboard(arg0: bigint): Promise<bigint>;
|
|
763
|
+
/**
|
|
764
|
+
* items
|
|
765
|
+
* view
|
|
766
|
+
*/
|
|
767
|
+
items(arg0: bigint): Promise<[bigint, bigint, bigint, bigint, bigint, bigint, bigint, boolean, boolean]>;
|
|
768
|
+
/**
|
|
769
|
+
* champs
|
|
770
|
+
* view
|
|
771
|
+
*/
|
|
772
|
+
champs(arg0: bigint): Promise<[bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint, boolean]>;
|
|
773
|
+
/**
|
|
774
|
+
* getChampsByOwner
|
|
775
|
+
* view
|
|
776
|
+
*/
|
|
777
|
+
getChampsByOwner(_owner: `0x${string}`): Promise<bigint[]>;
|
|
778
|
+
/**
|
|
779
|
+
* champToOwner
|
|
780
|
+
* view
|
|
781
|
+
*/
|
|
782
|
+
champToOwner(arg0: bigint): Promise<`0x${string}`>;
|
|
783
|
+
/**
|
|
784
|
+
* openLootbox
|
|
785
|
+
* payable
|
|
786
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
787
|
+
*/
|
|
788
|
+
openLootbox(_affiliateAddress: `0x${string}`, options?: {
|
|
789
|
+
accessList?: import('viem').AccessList;
|
|
790
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
791
|
+
chain?: import('viem').Chain | null;
|
|
792
|
+
dataSuffix?: `0x${string}`;
|
|
793
|
+
gas?: bigint;
|
|
794
|
+
gasPrice?: bigint;
|
|
795
|
+
maxFeePerGas?: bigint;
|
|
796
|
+
maxPriorityFeePerGas?: bigint;
|
|
797
|
+
nonce?: number;
|
|
798
|
+
value?: bigint;
|
|
799
|
+
}): Promise<`0x${string}`>;
|
|
800
|
+
/**
|
|
801
|
+
* withdrawChamp
|
|
802
|
+
* nonpayable
|
|
803
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
804
|
+
*/
|
|
805
|
+
withdrawChamp(_id: bigint, options?: {
|
|
806
|
+
accessList?: import('viem').AccessList;
|
|
807
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
808
|
+
chain?: import('viem').Chain | null;
|
|
809
|
+
dataSuffix?: `0x${string}`;
|
|
810
|
+
gas?: bigint;
|
|
811
|
+
gasPrice?: bigint;
|
|
812
|
+
maxFeePerGas?: bigint;
|
|
813
|
+
maxPriorityFeePerGas?: bigint;
|
|
814
|
+
nonce?: number;
|
|
815
|
+
value?: bigint;
|
|
816
|
+
}): Promise<`0x${string}`>;
|
|
817
|
+
/**
|
|
818
|
+
* forgeItems
|
|
819
|
+
* nonpayable
|
|
820
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
821
|
+
*/
|
|
822
|
+
forgeItems(_parentItemID: bigint, _childItemID: bigint, options?: {
|
|
823
|
+
accessList?: import('viem').AccessList;
|
|
824
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
825
|
+
chain?: import('viem').Chain | null;
|
|
826
|
+
dataSuffix?: `0x${string}`;
|
|
827
|
+
gas?: bigint;
|
|
828
|
+
gasPrice?: bigint;
|
|
829
|
+
maxFeePerGas?: bigint;
|
|
830
|
+
maxPriorityFeePerGas?: bigint;
|
|
831
|
+
nonce?: number;
|
|
832
|
+
value?: bigint;
|
|
833
|
+
}): Promise<`0x${string}`>;
|
|
834
|
+
/**
|
|
835
|
+
* putOn
|
|
836
|
+
* nonpayable
|
|
837
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
838
|
+
*/
|
|
839
|
+
putOn(_champId: bigint, _itemId: bigint, options?: {
|
|
840
|
+
accessList?: import('viem').AccessList;
|
|
841
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
842
|
+
chain?: import('viem').Chain | null;
|
|
843
|
+
dataSuffix?: `0x${string}`;
|
|
844
|
+
gas?: bigint;
|
|
845
|
+
gasPrice?: bigint;
|
|
846
|
+
maxFeePerGas?: bigint;
|
|
847
|
+
maxPriorityFeePerGas?: bigint;
|
|
848
|
+
nonce?: number;
|
|
849
|
+
value?: bigint;
|
|
850
|
+
}): Promise<`0x${string}`>;
|
|
851
|
+
/**
|
|
852
|
+
* cancelChampSale
|
|
853
|
+
* nonpayable
|
|
854
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
855
|
+
*/
|
|
856
|
+
cancelChampSale(_id: bigint, options?: {
|
|
857
|
+
accessList?: import('viem').AccessList;
|
|
858
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
859
|
+
chain?: import('viem').Chain | null;
|
|
860
|
+
dataSuffix?: `0x${string}`;
|
|
861
|
+
gas?: bigint;
|
|
862
|
+
gasPrice?: bigint;
|
|
863
|
+
maxFeePerGas?: bigint;
|
|
864
|
+
maxPriorityFeePerGas?: bigint;
|
|
865
|
+
nonce?: number;
|
|
866
|
+
value?: bigint;
|
|
867
|
+
}): Promise<`0x${string}`>;
|
|
868
|
+
/**
|
|
869
|
+
* buyChamp
|
|
870
|
+
* payable
|
|
871
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
872
|
+
*/
|
|
873
|
+
buyChamp(_id: bigint, options?: {
|
|
874
|
+
accessList?: import('viem').AccessList;
|
|
875
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
876
|
+
chain?: import('viem').Chain | null;
|
|
877
|
+
dataSuffix?: `0x${string}`;
|
|
878
|
+
gas?: bigint;
|
|
879
|
+
gasPrice?: bigint;
|
|
880
|
+
maxFeePerGas?: bigint;
|
|
881
|
+
maxPriorityFeePerGas?: bigint;
|
|
882
|
+
nonce?: number;
|
|
883
|
+
value?: bigint;
|
|
884
|
+
}): Promise<`0x${string}`>;
|
|
885
|
+
/**
|
|
886
|
+
* changePlayersName
|
|
887
|
+
* nonpayable
|
|
888
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
889
|
+
*/
|
|
890
|
+
changePlayersName(_name: string, options?: {
|
|
891
|
+
accessList?: import('viem').AccessList;
|
|
892
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
893
|
+
chain?: import('viem').Chain | null;
|
|
894
|
+
dataSuffix?: `0x${string}`;
|
|
895
|
+
gas?: bigint;
|
|
896
|
+
gasPrice?: bigint;
|
|
897
|
+
maxFeePerGas?: bigint;
|
|
898
|
+
maxPriorityFeePerGas?: bigint;
|
|
899
|
+
nonce?: number;
|
|
900
|
+
value?: bigint;
|
|
901
|
+
}): Promise<`0x${string}`>;
|
|
902
|
+
/**
|
|
903
|
+
* giveChamp
|
|
904
|
+
* nonpayable
|
|
905
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
906
|
+
*/
|
|
907
|
+
giveChamp(_to: `0x${string}`, _champId: bigint, options?: {
|
|
908
|
+
accessList?: import('viem').AccessList;
|
|
909
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
910
|
+
chain?: import('viem').Chain | null;
|
|
911
|
+
dataSuffix?: `0x${string}`;
|
|
912
|
+
gas?: bigint;
|
|
913
|
+
gasPrice?: bigint;
|
|
914
|
+
maxFeePerGas?: bigint;
|
|
915
|
+
maxPriorityFeePerGas?: bigint;
|
|
916
|
+
nonce?: number;
|
|
917
|
+
value?: bigint;
|
|
918
|
+
}): Promise<`0x${string}`>;
|
|
919
|
+
/**
|
|
920
|
+
* triggerPause
|
|
921
|
+
* nonpayable
|
|
922
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
923
|
+
*/
|
|
924
|
+
triggerPause(options?: {
|
|
925
|
+
accessList?: import('viem').AccessList;
|
|
926
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
927
|
+
chain?: import('viem').Chain | null;
|
|
928
|
+
dataSuffix?: `0x${string}`;
|
|
929
|
+
gas?: bigint;
|
|
930
|
+
gasPrice?: bigint;
|
|
931
|
+
maxFeePerGas?: bigint;
|
|
932
|
+
maxPriorityFeePerGas?: bigint;
|
|
933
|
+
nonce?: number;
|
|
934
|
+
value?: bigint;
|
|
935
|
+
}): Promise<`0x${string}`>;
|
|
936
|
+
/**
|
|
937
|
+
* createChamp
|
|
938
|
+
* payable
|
|
939
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
940
|
+
*/
|
|
941
|
+
createChamp(_affiliateAddress: `0x${string}`, options?: {
|
|
942
|
+
accessList?: import('viem').AccessList;
|
|
943
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
944
|
+
chain?: import('viem').Chain | null;
|
|
945
|
+
dataSuffix?: `0x${string}`;
|
|
946
|
+
gas?: bigint;
|
|
947
|
+
gasPrice?: bigint;
|
|
948
|
+
maxFeePerGas?: bigint;
|
|
949
|
+
maxPriorityFeePerGas?: bigint;
|
|
950
|
+
nonce?: number;
|
|
951
|
+
value?: bigint;
|
|
952
|
+
}): Promise<`0x${string}`>;
|
|
953
|
+
/**
|
|
954
|
+
* withdrawToAddress
|
|
955
|
+
* nonpayable
|
|
956
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
957
|
+
*/
|
|
958
|
+
withdrawToAddress(_address: `0x${string}`, options?: {
|
|
959
|
+
accessList?: import('viem').AccessList;
|
|
960
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
961
|
+
chain?: import('viem').Chain | null;
|
|
962
|
+
dataSuffix?: `0x${string}`;
|
|
963
|
+
gas?: bigint;
|
|
964
|
+
gasPrice?: bigint;
|
|
965
|
+
maxFeePerGas?: bigint;
|
|
966
|
+
maxPriorityFeePerGas?: bigint;
|
|
967
|
+
nonce?: number;
|
|
968
|
+
value?: bigint;
|
|
969
|
+
}): Promise<`0x${string}`>;
|
|
970
|
+
/**
|
|
971
|
+
* setItemForSale
|
|
972
|
+
* nonpayable
|
|
973
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
974
|
+
*/
|
|
975
|
+
setItemForSale(_id: bigint, _price: bigint, options?: {
|
|
976
|
+
accessList?: import('viem').AccessList;
|
|
977
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
978
|
+
chain?: import('viem').Chain | null;
|
|
979
|
+
dataSuffix?: `0x${string}`;
|
|
980
|
+
gas?: bigint;
|
|
981
|
+
gasPrice?: bigint;
|
|
982
|
+
maxFeePerGas?: bigint;
|
|
983
|
+
maxPriorityFeePerGas?: bigint;
|
|
984
|
+
nonce?: number;
|
|
985
|
+
value?: bigint;
|
|
986
|
+
}): Promise<`0x${string}`>;
|
|
987
|
+
/**
|
|
988
|
+
* changeChampsName
|
|
989
|
+
* nonpayable
|
|
990
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
991
|
+
*/
|
|
992
|
+
changeChampsName(_champId: bigint, _name: string, options?: {
|
|
993
|
+
accessList?: import('viem').AccessList;
|
|
994
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
995
|
+
chain?: import('viem').Chain | null;
|
|
996
|
+
dataSuffix?: `0x${string}`;
|
|
997
|
+
gas?: bigint;
|
|
998
|
+
gasPrice?: bigint;
|
|
999
|
+
maxFeePerGas?: bigint;
|
|
1000
|
+
maxPriorityFeePerGas?: bigint;
|
|
1001
|
+
nonce?: number;
|
|
1002
|
+
value?: bigint;
|
|
1003
|
+
}): Promise<`0x${string}`>;
|
|
1004
|
+
/**
|
|
1005
|
+
* cancelItemSale
|
|
1006
|
+
* nonpayable
|
|
1007
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1008
|
+
*/
|
|
1009
|
+
cancelItemSale(_id: bigint, options?: {
|
|
1010
|
+
accessList?: import('viem').AccessList;
|
|
1011
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1012
|
+
chain?: import('viem').Chain | null;
|
|
1013
|
+
dataSuffix?: `0x${string}`;
|
|
1014
|
+
gas?: bigint;
|
|
1015
|
+
gasPrice?: bigint;
|
|
1016
|
+
maxFeePerGas?: bigint;
|
|
1017
|
+
maxPriorityFeePerGas?: bigint;
|
|
1018
|
+
nonce?: number;
|
|
1019
|
+
value?: bigint;
|
|
1020
|
+
}): Promise<`0x${string}`>;
|
|
1021
|
+
/**
|
|
1022
|
+
* setCreateChampFee
|
|
1023
|
+
* nonpayable
|
|
1024
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1025
|
+
*/
|
|
1026
|
+
setCreateChampFee(_fee: bigint, options?: {
|
|
1027
|
+
accessList?: import('viem').AccessList;
|
|
1028
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1029
|
+
chain?: import('viem').Chain | null;
|
|
1030
|
+
dataSuffix?: `0x${string}`;
|
|
1031
|
+
gas?: bigint;
|
|
1032
|
+
gasPrice?: bigint;
|
|
1033
|
+
maxFeePerGas?: bigint;
|
|
1034
|
+
maxPriorityFeePerGas?: bigint;
|
|
1035
|
+
nonce?: number;
|
|
1036
|
+
value?: bigint;
|
|
1037
|
+
}): Promise<`0x${string}`>;
|
|
1038
|
+
/**
|
|
1039
|
+
* giveItem
|
|
1040
|
+
* nonpayable
|
|
1041
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1042
|
+
*/
|
|
1043
|
+
giveItem(_to: `0x${string}`, _itemID: bigint, options?: {
|
|
1044
|
+
accessList?: import('viem').AccessList;
|
|
1045
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1046
|
+
chain?: import('viem').Chain | null;
|
|
1047
|
+
dataSuffix?: `0x${string}`;
|
|
1048
|
+
gas?: bigint;
|
|
1049
|
+
gasPrice?: bigint;
|
|
1050
|
+
maxFeePerGas?: bigint;
|
|
1051
|
+
maxPriorityFeePerGas?: bigint;
|
|
1052
|
+
nonce?: number;
|
|
1053
|
+
value?: bigint;
|
|
1054
|
+
}): Promise<`0x${string}`>;
|
|
1055
|
+
/**
|
|
1056
|
+
* takeOffItem
|
|
1057
|
+
* nonpayable
|
|
1058
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1059
|
+
*/
|
|
1060
|
+
takeOffItem(_champId: bigint, _type: bigint, options?: {
|
|
1061
|
+
accessList?: import('viem').AccessList;
|
|
1062
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1063
|
+
chain?: import('viem').Chain | null;
|
|
1064
|
+
dataSuffix?: `0x${string}`;
|
|
1065
|
+
gas?: bigint;
|
|
1066
|
+
gasPrice?: bigint;
|
|
1067
|
+
maxFeePerGas?: bigint;
|
|
1068
|
+
maxPriorityFeePerGas?: bigint;
|
|
1069
|
+
nonce?: number;
|
|
1070
|
+
value?: bigint;
|
|
1071
|
+
}): Promise<`0x${string}`>;
|
|
1072
|
+
/**
|
|
1073
|
+
* setLootboxFee
|
|
1074
|
+
* nonpayable
|
|
1075
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1076
|
+
*/
|
|
1077
|
+
setLootboxFee(_fee: bigint, options?: {
|
|
1078
|
+
accessList?: import('viem').AccessList;
|
|
1079
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1080
|
+
chain?: import('viem').Chain | null;
|
|
1081
|
+
dataSuffix?: `0x${string}`;
|
|
1082
|
+
gas?: bigint;
|
|
1083
|
+
gasPrice?: bigint;
|
|
1084
|
+
maxFeePerGas?: bigint;
|
|
1085
|
+
maxPriorityFeePerGas?: bigint;
|
|
1086
|
+
nonce?: number;
|
|
1087
|
+
value?: bigint;
|
|
1088
|
+
}): Promise<`0x${string}`>;
|
|
1089
|
+
/**
|
|
1090
|
+
* attack
|
|
1091
|
+
* nonpayable
|
|
1092
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1093
|
+
*/
|
|
1094
|
+
attack(_champId: bigint, _targetId: bigint, options?: {
|
|
1095
|
+
accessList?: import('viem').AccessList;
|
|
1096
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1097
|
+
chain?: import('viem').Chain | null;
|
|
1098
|
+
dataSuffix?: `0x${string}`;
|
|
1099
|
+
gas?: bigint;
|
|
1100
|
+
gasPrice?: bigint;
|
|
1101
|
+
maxFeePerGas?: bigint;
|
|
1102
|
+
maxPriorityFeePerGas?: bigint;
|
|
1103
|
+
nonce?: number;
|
|
1104
|
+
value?: bigint;
|
|
1105
|
+
}): Promise<`0x${string}`>;
|
|
1106
|
+
/**
|
|
1107
|
+
* buyItem
|
|
1108
|
+
* payable
|
|
1109
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1110
|
+
*/
|
|
1111
|
+
buyItem(_id: bigint, options?: {
|
|
1112
|
+
accessList?: import('viem').AccessList;
|
|
1113
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1114
|
+
chain?: import('viem').Chain | null;
|
|
1115
|
+
dataSuffix?: `0x${string}`;
|
|
1116
|
+
gas?: bigint;
|
|
1117
|
+
gasPrice?: bigint;
|
|
1118
|
+
maxFeePerGas?: bigint;
|
|
1119
|
+
maxPriorityFeePerGas?: bigint;
|
|
1120
|
+
nonce?: number;
|
|
1121
|
+
value?: bigint;
|
|
1122
|
+
}): Promise<`0x${string}`>;
|
|
1123
|
+
/**
|
|
1124
|
+
* setChampForSale
|
|
1125
|
+
* nonpayable
|
|
1126
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1127
|
+
*/
|
|
1128
|
+
setChampForSale(_id: bigint, _price: bigint, options?: {
|
|
1129
|
+
accessList?: import('viem').AccessList;
|
|
1130
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1131
|
+
chain?: import('viem').Chain | null;
|
|
1132
|
+
dataSuffix?: `0x${string}`;
|
|
1133
|
+
gas?: bigint;
|
|
1134
|
+
gasPrice?: bigint;
|
|
1135
|
+
maxFeePerGas?: bigint;
|
|
1136
|
+
maxPriorityFeePerGas?: bigint;
|
|
1137
|
+
nonce?: number;
|
|
1138
|
+
value?: bigint;
|
|
1139
|
+
}): Promise<`0x${string}`>;
|
|
1140
|
+
/**
|
|
1141
|
+
* transferOwnership
|
|
1142
|
+
* nonpayable
|
|
1143
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1144
|
+
*/
|
|
1145
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
1146
|
+
accessList?: import('viem').AccessList;
|
|
1147
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1148
|
+
chain?: import('viem').Chain | null;
|
|
1149
|
+
dataSuffix?: `0x${string}`;
|
|
1150
|
+
gas?: bigint;
|
|
1151
|
+
gasPrice?: bigint;
|
|
1152
|
+
maxFeePerGas?: bigint;
|
|
1153
|
+
maxPriorityFeePerGas?: bigint;
|
|
1154
|
+
nonce?: number;
|
|
1155
|
+
value?: bigint;
|
|
1156
|
+
}): Promise<`0x${string}`>;
|
|
1157
|
+
/**
|
|
1158
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
1159
|
+
*
|
|
1160
|
+
* @example
|
|
1161
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
1162
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
1163
|
+
* console.log('Would succeed:', result.result);
|
|
1164
|
+
*/
|
|
1165
|
+
get simulate(): {
|
|
1166
|
+
/**
|
|
1167
|
+
* Simulate openLootbox
|
|
1168
|
+
* Returns gas estimate and result without sending transaction
|
|
1169
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1170
|
+
*/
|
|
1171
|
+
openLootbox(_affiliateAddress: `0x${string}`, options?: {
|
|
1172
|
+
accessList?: import("viem").AccessList;
|
|
1173
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1174
|
+
chain?: import("viem").Chain | null;
|
|
1175
|
+
dataSuffix?: `0x${string}`;
|
|
1176
|
+
gas?: bigint;
|
|
1177
|
+
gasPrice?: bigint;
|
|
1178
|
+
maxFeePerGas?: bigint;
|
|
1179
|
+
maxPriorityFeePerGas?: bigint;
|
|
1180
|
+
nonce?: number;
|
|
1181
|
+
value?: bigint;
|
|
1182
|
+
}): Promise<void>;
|
|
1183
|
+
/**
|
|
1184
|
+
* Simulate withdrawChamp
|
|
1185
|
+
* Returns gas estimate and result without sending transaction
|
|
1186
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1187
|
+
*/
|
|
1188
|
+
withdrawChamp(_id: bigint, options?: {
|
|
1189
|
+
accessList?: import("viem").AccessList;
|
|
1190
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1191
|
+
chain?: import("viem").Chain | null;
|
|
1192
|
+
dataSuffix?: `0x${string}`;
|
|
1193
|
+
gas?: bigint;
|
|
1194
|
+
gasPrice?: bigint;
|
|
1195
|
+
maxFeePerGas?: bigint;
|
|
1196
|
+
maxPriorityFeePerGas?: bigint;
|
|
1197
|
+
nonce?: number;
|
|
1198
|
+
value?: bigint;
|
|
1199
|
+
}): Promise<void>;
|
|
1200
|
+
/**
|
|
1201
|
+
* Simulate forgeItems
|
|
1202
|
+
* Returns gas estimate and result without sending transaction
|
|
1203
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1204
|
+
*/
|
|
1205
|
+
forgeItems(_parentItemID: bigint, _childItemID: bigint, options?: {
|
|
1206
|
+
accessList?: import("viem").AccessList;
|
|
1207
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1208
|
+
chain?: import("viem").Chain | null;
|
|
1209
|
+
dataSuffix?: `0x${string}`;
|
|
1210
|
+
gas?: bigint;
|
|
1211
|
+
gasPrice?: bigint;
|
|
1212
|
+
maxFeePerGas?: bigint;
|
|
1213
|
+
maxPriorityFeePerGas?: bigint;
|
|
1214
|
+
nonce?: number;
|
|
1215
|
+
value?: bigint;
|
|
1216
|
+
}): Promise<void>;
|
|
1217
|
+
/**
|
|
1218
|
+
* Simulate putOn
|
|
1219
|
+
* Returns gas estimate and result without sending transaction
|
|
1220
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1221
|
+
*/
|
|
1222
|
+
putOn(_champId: bigint, _itemId: bigint, options?: {
|
|
1223
|
+
accessList?: import("viem").AccessList;
|
|
1224
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1225
|
+
chain?: import("viem").Chain | null;
|
|
1226
|
+
dataSuffix?: `0x${string}`;
|
|
1227
|
+
gas?: bigint;
|
|
1228
|
+
gasPrice?: bigint;
|
|
1229
|
+
maxFeePerGas?: bigint;
|
|
1230
|
+
maxPriorityFeePerGas?: bigint;
|
|
1231
|
+
nonce?: number;
|
|
1232
|
+
value?: bigint;
|
|
1233
|
+
}): Promise<void>;
|
|
1234
|
+
/**
|
|
1235
|
+
* Simulate cancelChampSale
|
|
1236
|
+
* Returns gas estimate and result without sending transaction
|
|
1237
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1238
|
+
*/
|
|
1239
|
+
cancelChampSale(_id: bigint, options?: {
|
|
1240
|
+
accessList?: import("viem").AccessList;
|
|
1241
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1242
|
+
chain?: import("viem").Chain | null;
|
|
1243
|
+
dataSuffix?: `0x${string}`;
|
|
1244
|
+
gas?: bigint;
|
|
1245
|
+
gasPrice?: bigint;
|
|
1246
|
+
maxFeePerGas?: bigint;
|
|
1247
|
+
maxPriorityFeePerGas?: bigint;
|
|
1248
|
+
nonce?: number;
|
|
1249
|
+
value?: bigint;
|
|
1250
|
+
}): Promise<void>;
|
|
1251
|
+
/**
|
|
1252
|
+
* Simulate buyChamp
|
|
1253
|
+
* Returns gas estimate and result without sending transaction
|
|
1254
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1255
|
+
*/
|
|
1256
|
+
buyChamp(_id: bigint, options?: {
|
|
1257
|
+
accessList?: import("viem").AccessList;
|
|
1258
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1259
|
+
chain?: import("viem").Chain | null;
|
|
1260
|
+
dataSuffix?: `0x${string}`;
|
|
1261
|
+
gas?: bigint;
|
|
1262
|
+
gasPrice?: bigint;
|
|
1263
|
+
maxFeePerGas?: bigint;
|
|
1264
|
+
maxPriorityFeePerGas?: bigint;
|
|
1265
|
+
nonce?: number;
|
|
1266
|
+
value?: bigint;
|
|
1267
|
+
}): Promise<void>;
|
|
1268
|
+
/**
|
|
1269
|
+
* Simulate changePlayersName
|
|
1270
|
+
* Returns gas estimate and result without sending transaction
|
|
1271
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1272
|
+
*/
|
|
1273
|
+
changePlayersName(_name: string, options?: {
|
|
1274
|
+
accessList?: import("viem").AccessList;
|
|
1275
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1276
|
+
chain?: import("viem").Chain | null;
|
|
1277
|
+
dataSuffix?: `0x${string}`;
|
|
1278
|
+
gas?: bigint;
|
|
1279
|
+
gasPrice?: bigint;
|
|
1280
|
+
maxFeePerGas?: bigint;
|
|
1281
|
+
maxPriorityFeePerGas?: bigint;
|
|
1282
|
+
nonce?: number;
|
|
1283
|
+
value?: bigint;
|
|
1284
|
+
}): Promise<void>;
|
|
1285
|
+
/**
|
|
1286
|
+
* Simulate giveChamp
|
|
1287
|
+
* Returns gas estimate and result without sending transaction
|
|
1288
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1289
|
+
*/
|
|
1290
|
+
giveChamp(_to: `0x${string}`, _champId: bigint, options?: {
|
|
1291
|
+
accessList?: import("viem").AccessList;
|
|
1292
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1293
|
+
chain?: import("viem").Chain | null;
|
|
1294
|
+
dataSuffix?: `0x${string}`;
|
|
1295
|
+
gas?: bigint;
|
|
1296
|
+
gasPrice?: bigint;
|
|
1297
|
+
maxFeePerGas?: bigint;
|
|
1298
|
+
maxPriorityFeePerGas?: bigint;
|
|
1299
|
+
nonce?: number;
|
|
1300
|
+
value?: bigint;
|
|
1301
|
+
}): Promise<void>;
|
|
1302
|
+
/**
|
|
1303
|
+
* Simulate triggerPause
|
|
1304
|
+
* Returns gas estimate and result without sending transaction
|
|
1305
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1306
|
+
*/
|
|
1307
|
+
triggerPause(options?: {
|
|
1308
|
+
accessList?: import("viem").AccessList;
|
|
1309
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1310
|
+
chain?: import("viem").Chain | null;
|
|
1311
|
+
dataSuffix?: `0x${string}`;
|
|
1312
|
+
gas?: bigint;
|
|
1313
|
+
gasPrice?: bigint;
|
|
1314
|
+
maxFeePerGas?: bigint;
|
|
1315
|
+
maxPriorityFeePerGas?: bigint;
|
|
1316
|
+
nonce?: number;
|
|
1317
|
+
value?: bigint;
|
|
1318
|
+
}): Promise<void>;
|
|
1319
|
+
/**
|
|
1320
|
+
* Simulate createChamp
|
|
1321
|
+
* Returns gas estimate and result without sending transaction
|
|
1322
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1323
|
+
*/
|
|
1324
|
+
createChamp(_affiliateAddress: `0x${string}`, options?: {
|
|
1325
|
+
accessList?: import("viem").AccessList;
|
|
1326
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1327
|
+
chain?: import("viem").Chain | null;
|
|
1328
|
+
dataSuffix?: `0x${string}`;
|
|
1329
|
+
gas?: bigint;
|
|
1330
|
+
gasPrice?: bigint;
|
|
1331
|
+
maxFeePerGas?: bigint;
|
|
1332
|
+
maxPriorityFeePerGas?: bigint;
|
|
1333
|
+
nonce?: number;
|
|
1334
|
+
value?: bigint;
|
|
1335
|
+
}): Promise<void>;
|
|
1336
|
+
/**
|
|
1337
|
+
* Simulate withdrawToAddress
|
|
1338
|
+
* Returns gas estimate and result without sending transaction
|
|
1339
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1340
|
+
*/
|
|
1341
|
+
withdrawToAddress(_address: `0x${string}`, options?: {
|
|
1342
|
+
accessList?: import("viem").AccessList;
|
|
1343
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1344
|
+
chain?: import("viem").Chain | null;
|
|
1345
|
+
dataSuffix?: `0x${string}`;
|
|
1346
|
+
gas?: bigint;
|
|
1347
|
+
gasPrice?: bigint;
|
|
1348
|
+
maxFeePerGas?: bigint;
|
|
1349
|
+
maxPriorityFeePerGas?: bigint;
|
|
1350
|
+
nonce?: number;
|
|
1351
|
+
value?: bigint;
|
|
1352
|
+
}): Promise<void>;
|
|
1353
|
+
/**
|
|
1354
|
+
* Simulate setItemForSale
|
|
1355
|
+
* Returns gas estimate and result without sending transaction
|
|
1356
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1357
|
+
*/
|
|
1358
|
+
setItemForSale(_id: bigint, _price: bigint, options?: {
|
|
1359
|
+
accessList?: import("viem").AccessList;
|
|
1360
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1361
|
+
chain?: import("viem").Chain | null;
|
|
1362
|
+
dataSuffix?: `0x${string}`;
|
|
1363
|
+
gas?: bigint;
|
|
1364
|
+
gasPrice?: bigint;
|
|
1365
|
+
maxFeePerGas?: bigint;
|
|
1366
|
+
maxPriorityFeePerGas?: bigint;
|
|
1367
|
+
nonce?: number;
|
|
1368
|
+
value?: bigint;
|
|
1369
|
+
}): Promise<void>;
|
|
1370
|
+
/**
|
|
1371
|
+
* Simulate changeChampsName
|
|
1372
|
+
* Returns gas estimate and result without sending transaction
|
|
1373
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1374
|
+
*/
|
|
1375
|
+
changeChampsName(_champId: bigint, _name: string, options?: {
|
|
1376
|
+
accessList?: import("viem").AccessList;
|
|
1377
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1378
|
+
chain?: import("viem").Chain | null;
|
|
1379
|
+
dataSuffix?: `0x${string}`;
|
|
1380
|
+
gas?: bigint;
|
|
1381
|
+
gasPrice?: bigint;
|
|
1382
|
+
maxFeePerGas?: bigint;
|
|
1383
|
+
maxPriorityFeePerGas?: bigint;
|
|
1384
|
+
nonce?: number;
|
|
1385
|
+
value?: bigint;
|
|
1386
|
+
}): Promise<void>;
|
|
1387
|
+
/**
|
|
1388
|
+
* Simulate cancelItemSale
|
|
1389
|
+
* Returns gas estimate and result without sending transaction
|
|
1390
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1391
|
+
*/
|
|
1392
|
+
cancelItemSale(_id: bigint, options?: {
|
|
1393
|
+
accessList?: import("viem").AccessList;
|
|
1394
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1395
|
+
chain?: import("viem").Chain | null;
|
|
1396
|
+
dataSuffix?: `0x${string}`;
|
|
1397
|
+
gas?: bigint;
|
|
1398
|
+
gasPrice?: bigint;
|
|
1399
|
+
maxFeePerGas?: bigint;
|
|
1400
|
+
maxPriorityFeePerGas?: bigint;
|
|
1401
|
+
nonce?: number;
|
|
1402
|
+
value?: bigint;
|
|
1403
|
+
}): Promise<void>;
|
|
1404
|
+
/**
|
|
1405
|
+
* Simulate setCreateChampFee
|
|
1406
|
+
* Returns gas estimate and result without sending transaction
|
|
1407
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1408
|
+
*/
|
|
1409
|
+
setCreateChampFee(_fee: bigint, options?: {
|
|
1410
|
+
accessList?: import("viem").AccessList;
|
|
1411
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1412
|
+
chain?: import("viem").Chain | null;
|
|
1413
|
+
dataSuffix?: `0x${string}`;
|
|
1414
|
+
gas?: bigint;
|
|
1415
|
+
gasPrice?: bigint;
|
|
1416
|
+
maxFeePerGas?: bigint;
|
|
1417
|
+
maxPriorityFeePerGas?: bigint;
|
|
1418
|
+
nonce?: number;
|
|
1419
|
+
value?: bigint;
|
|
1420
|
+
}): Promise<void>;
|
|
1421
|
+
/**
|
|
1422
|
+
* Simulate giveItem
|
|
1423
|
+
* Returns gas estimate and result without sending transaction
|
|
1424
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1425
|
+
*/
|
|
1426
|
+
giveItem(_to: `0x${string}`, _itemID: bigint, options?: {
|
|
1427
|
+
accessList?: import("viem").AccessList;
|
|
1428
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1429
|
+
chain?: import("viem").Chain | null;
|
|
1430
|
+
dataSuffix?: `0x${string}`;
|
|
1431
|
+
gas?: bigint;
|
|
1432
|
+
gasPrice?: bigint;
|
|
1433
|
+
maxFeePerGas?: bigint;
|
|
1434
|
+
maxPriorityFeePerGas?: bigint;
|
|
1435
|
+
nonce?: number;
|
|
1436
|
+
value?: bigint;
|
|
1437
|
+
}): Promise<void>;
|
|
1438
|
+
/**
|
|
1439
|
+
* Simulate takeOffItem
|
|
1440
|
+
* Returns gas estimate and result without sending transaction
|
|
1441
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1442
|
+
*/
|
|
1443
|
+
takeOffItem(_champId: bigint, _type: bigint, options?: {
|
|
1444
|
+
accessList?: import("viem").AccessList;
|
|
1445
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1446
|
+
chain?: import("viem").Chain | null;
|
|
1447
|
+
dataSuffix?: `0x${string}`;
|
|
1448
|
+
gas?: bigint;
|
|
1449
|
+
gasPrice?: bigint;
|
|
1450
|
+
maxFeePerGas?: bigint;
|
|
1451
|
+
maxPriorityFeePerGas?: bigint;
|
|
1452
|
+
nonce?: number;
|
|
1453
|
+
value?: bigint;
|
|
1454
|
+
}): Promise<void>;
|
|
1455
|
+
/**
|
|
1456
|
+
* Simulate setLootboxFee
|
|
1457
|
+
* Returns gas estimate and result without sending transaction
|
|
1458
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1459
|
+
*/
|
|
1460
|
+
setLootboxFee(_fee: bigint, options?: {
|
|
1461
|
+
accessList?: import("viem").AccessList;
|
|
1462
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1463
|
+
chain?: import("viem").Chain | null;
|
|
1464
|
+
dataSuffix?: `0x${string}`;
|
|
1465
|
+
gas?: bigint;
|
|
1466
|
+
gasPrice?: bigint;
|
|
1467
|
+
maxFeePerGas?: bigint;
|
|
1468
|
+
maxPriorityFeePerGas?: bigint;
|
|
1469
|
+
nonce?: number;
|
|
1470
|
+
value?: bigint;
|
|
1471
|
+
}): Promise<void>;
|
|
1472
|
+
/**
|
|
1473
|
+
* Simulate attack
|
|
1474
|
+
* Returns gas estimate and result without sending transaction
|
|
1475
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1476
|
+
*/
|
|
1477
|
+
attack(_champId: bigint, _targetId: bigint, options?: {
|
|
1478
|
+
accessList?: import("viem").AccessList;
|
|
1479
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1480
|
+
chain?: import("viem").Chain | null;
|
|
1481
|
+
dataSuffix?: `0x${string}`;
|
|
1482
|
+
gas?: bigint;
|
|
1483
|
+
gasPrice?: bigint;
|
|
1484
|
+
maxFeePerGas?: bigint;
|
|
1485
|
+
maxPriorityFeePerGas?: bigint;
|
|
1486
|
+
nonce?: number;
|
|
1487
|
+
value?: bigint;
|
|
1488
|
+
}): Promise<void>;
|
|
1489
|
+
/**
|
|
1490
|
+
* Simulate buyItem
|
|
1491
|
+
* Returns gas estimate and result without sending transaction
|
|
1492
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1493
|
+
*/
|
|
1494
|
+
buyItem(_id: bigint, options?: {
|
|
1495
|
+
accessList?: import("viem").AccessList;
|
|
1496
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1497
|
+
chain?: import("viem").Chain | null;
|
|
1498
|
+
dataSuffix?: `0x${string}`;
|
|
1499
|
+
gas?: bigint;
|
|
1500
|
+
gasPrice?: bigint;
|
|
1501
|
+
maxFeePerGas?: bigint;
|
|
1502
|
+
maxPriorityFeePerGas?: bigint;
|
|
1503
|
+
nonce?: number;
|
|
1504
|
+
value?: bigint;
|
|
1505
|
+
}): Promise<void>;
|
|
1506
|
+
/**
|
|
1507
|
+
* Simulate setChampForSale
|
|
1508
|
+
* Returns gas estimate and result without sending transaction
|
|
1509
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1510
|
+
*/
|
|
1511
|
+
setChampForSale(_id: bigint, _price: bigint, options?: {
|
|
1512
|
+
accessList?: import("viem").AccessList;
|
|
1513
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1514
|
+
chain?: import("viem").Chain | null;
|
|
1515
|
+
dataSuffix?: `0x${string}`;
|
|
1516
|
+
gas?: bigint;
|
|
1517
|
+
gasPrice?: bigint;
|
|
1518
|
+
maxFeePerGas?: bigint;
|
|
1519
|
+
maxPriorityFeePerGas?: bigint;
|
|
1520
|
+
nonce?: number;
|
|
1521
|
+
value?: bigint;
|
|
1522
|
+
}): Promise<void>;
|
|
1523
|
+
/**
|
|
1524
|
+
* Simulate transferOwnership
|
|
1525
|
+
* Returns gas estimate and result without sending transaction
|
|
1526
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1527
|
+
*/
|
|
1528
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
1529
|
+
accessList?: import("viem").AccessList;
|
|
1530
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1531
|
+
chain?: import("viem").Chain | null;
|
|
1532
|
+
dataSuffix?: `0x${string}`;
|
|
1533
|
+
gas?: bigint;
|
|
1534
|
+
gasPrice?: bigint;
|
|
1535
|
+
maxFeePerGas?: bigint;
|
|
1536
|
+
maxPriorityFeePerGas?: bigint;
|
|
1537
|
+
nonce?: number;
|
|
1538
|
+
value?: bigint;
|
|
1539
|
+
}): Promise<void>;
|
|
1540
|
+
};
|
|
1541
|
+
/**
|
|
1542
|
+
* Watch contract events
|
|
1543
|
+
*
|
|
1544
|
+
* @example
|
|
1545
|
+
* // Watch all Transfer events
|
|
1546
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
1547
|
+
* console.log('Transfer:', event);
|
|
1548
|
+
* });
|
|
1549
|
+
*
|
|
1550
|
+
* // Stop watching
|
|
1551
|
+
* unwatch();
|
|
1552
|
+
*/
|
|
1553
|
+
get watch(): {
|
|
1554
|
+
/**
|
|
1555
|
+
* Watch TransferChamp events
|
|
1556
|
+
* @param callback Function to call when event is emitted
|
|
1557
|
+
* @param filter Optional filter for indexed parameters
|
|
1558
|
+
* @returns Unwatch function to stop listening
|
|
1559
|
+
*/
|
|
1560
|
+
TransferChamp: (callback: (event: {
|
|
1561
|
+
from: `0x${string}`;
|
|
1562
|
+
to: `0x${string}`;
|
|
1563
|
+
champID: bigint;
|
|
1564
|
+
}) => void) => () => void;
|
|
1565
|
+
/**
|
|
1566
|
+
* Watch Attack events
|
|
1567
|
+
* @param callback Function to call when event is emitted
|
|
1568
|
+
* @param filter Optional filter for indexed parameters
|
|
1569
|
+
* @returns Unwatch function to stop listening
|
|
1570
|
+
*/
|
|
1571
|
+
Attack: (callback: (event: {
|
|
1572
|
+
winnerChampID: bigint;
|
|
1573
|
+
defeatedChampID: bigint;
|
|
1574
|
+
didAttackerWin: boolean;
|
|
1575
|
+
}) => void) => () => void;
|
|
1576
|
+
/**
|
|
1577
|
+
* Watch Forge events
|
|
1578
|
+
* @param callback Function to call when event is emitted
|
|
1579
|
+
* @param filter Optional filter for indexed parameters
|
|
1580
|
+
* @returns Unwatch function to stop listening
|
|
1581
|
+
*/
|
|
1582
|
+
Forge: (callback: (event: {
|
|
1583
|
+
forgedItemID: bigint;
|
|
1584
|
+
}) => void) => () => void;
|
|
1585
|
+
/**
|
|
1586
|
+
* Watch TransferItem events
|
|
1587
|
+
* @param callback Function to call when event is emitted
|
|
1588
|
+
* @param filter Optional filter for indexed parameters
|
|
1589
|
+
* @returns Unwatch function to stop listening
|
|
1590
|
+
*/
|
|
1591
|
+
TransferItem: (callback: (event: {
|
|
1592
|
+
from: `0x${string}`;
|
|
1593
|
+
to: `0x${string}`;
|
|
1594
|
+
itemID: bigint;
|
|
1595
|
+
}) => void) => () => void;
|
|
1596
|
+
/**
|
|
1597
|
+
* Watch NewItem events
|
|
1598
|
+
* @param callback Function to call when event is emitted
|
|
1599
|
+
* @param filter Optional filter for indexed parameters
|
|
1600
|
+
* @returns Unwatch function to stop listening
|
|
1601
|
+
*/
|
|
1602
|
+
NewItem: (callback: (event: {
|
|
1603
|
+
itemID: bigint;
|
|
1604
|
+
owner: `0x${string}`;
|
|
1605
|
+
}) => void) => () => void;
|
|
1606
|
+
/**
|
|
1607
|
+
* Watch NewChamp events
|
|
1608
|
+
* @param callback Function to call when event is emitted
|
|
1609
|
+
* @param filter Optional filter for indexed parameters
|
|
1610
|
+
* @returns Unwatch function to stop listening
|
|
1611
|
+
*/
|
|
1612
|
+
NewChamp: (callback: (event: {
|
|
1613
|
+
champID: bigint;
|
|
1614
|
+
owner: `0x${string}`;
|
|
1615
|
+
}) => void) => () => void;
|
|
1616
|
+
};
|
|
1617
|
+
}
|