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