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