@zero-tech/zauction-sdk 0.2.9 → 0.2.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. package/lib/actions/approveSpender.d.ts.map +1 -1
  2. package/lib/actions/approveSpender.js +3 -1
  3. package/lib/actions/approveSpender.js.map +1 -1
  4. package/lib/actions/cancelBid.d.ts.map +1 -1
  5. package/lib/actions/cancelBid.js.map +1 -1
  6. package/lib/actions/getPaymentTokenAllowance.d.ts.map +1 -1
  7. package/lib/actions/getPaymentTokenAllowance.js +3 -1
  8. package/lib/actions/getPaymentTokenAllowance.js.map +1 -1
  9. package/lib/api/actions/helpers.d.ts +1 -1
  10. package/lib/api/actions/helpers.d.ts.map +1 -1
  11. package/lib/api/actions/helpers.js +2 -2
  12. package/lib/api/actions/helpers.js.map +1 -1
  13. package/lib/api/actions/listBidsForAccount.d.ts +1 -1
  14. package/lib/api/actions/listBidsForAccount.d.ts.map +1 -1
  15. package/lib/api/actions/listBidsForAccount.js +2 -2
  16. package/lib/api/actions/listBidsForAccount.js.map +1 -1
  17. package/lib/api/actions/listBidsForTokens.d.ts +1 -1
  18. package/lib/api/actions/listBidsForTokens.d.ts.map +1 -1
  19. package/lib/api/actions/listBidsForTokens.js +2 -2
  20. package/lib/api/actions/listBidsForTokens.js.map +1 -1
  21. package/lib/api/actions/submitBid.d.ts.map +1 -1
  22. package/lib/api/actions/submitBid.js +1 -1
  23. package/lib/api/actions/submitBid.js.map +1 -1
  24. package/lib/api/actions/submitCancelMessage.d.ts.map +1 -1
  25. package/lib/api/actions/submitCancelMessage.js.map +1 -1
  26. package/lib/api/client.d.ts +2 -2
  27. package/lib/api/client.d.ts.map +1 -1
  28. package/lib/api/client.js +5 -5
  29. package/lib/api/client.js.map +1 -1
  30. package/lib/index.d.ts.map +1 -1
  31. package/lib/index.js +2 -2
  32. package/lib/index.js.map +1 -1
  33. package/lib/subgraph/actions/listAllBuyNowListings.d.ts.map +1 -1
  34. package/lib/subgraph/actions/listAllBuyNowListings.js +1 -0
  35. package/lib/subgraph/actions/listAllBuyNowListings.js.map +1 -1
  36. package/lib/subgraph/actions/listAllSales.d.ts.map +1 -1
  37. package/lib/subgraph/actions/listAllSales.js +1 -0
  38. package/lib/subgraph/actions/listAllSales.js.map +1 -1
  39. package/lib/subgraph/actions/listBuyNowSales.js +1 -1
  40. package/lib/subgraph/actions/listBuyNowSales.js.map +1 -1
  41. package/lib/subgraph/helpers/index.d.ts.map +1 -1
  42. package/lib/subgraph/helpers/index.js.map +1 -1
  43. package/lib/utilities/logging.js +1 -0
  44. package/lib/utilities/logging.js.map +1 -1
  45. package/package.json +3 -2
  46. package/src/actions/acceptBid.ts +167 -0
  47. package/src/actions/approveDomainTransfer.ts +25 -0
  48. package/src/actions/approveSpender.ts +27 -0
  49. package/src/actions/buyNow.ts +109 -0
  50. package/src/actions/cancelBid.ts +37 -0
  51. package/src/actions/getBuyNowListing.ts +65 -0
  52. package/src/actions/getPaymentTokenAllowance.ts +30 -0
  53. package/src/actions/index.ts +11 -0
  54. package/src/actions/isZAuctionApproved.ts +20 -0
  55. package/src/actions/placeBid.ts +102 -0
  56. package/src/actions/setBuyNowPrice.ts +56 -0
  57. package/src/actions/setNetworkPaymentToken.ts +46 -0
  58. package/src/api/actions/encodeBid.ts +44 -0
  59. package/src/api/actions/encodeCancelMessage.ts +24 -0
  60. package/src/api/actions/helpers.ts +61 -0
  61. package/src/api/actions/index.ts +6 -0
  62. package/src/api/actions/listBidsForAccount.ts +24 -0
  63. package/src/api/actions/listBidsForTokens.ts +39 -0
  64. package/src/api/actions/submitBid.ts +28 -0
  65. package/src/api/actions/submitCancelMessage.ts +30 -0
  66. package/src/api/client.ts +78 -0
  67. package/src/api/index.ts +1 -0
  68. package/src/api/types.ts +47 -0
  69. package/src/contracts/index.ts +53 -0
  70. package/src/contracts/types/IERC20.d.ts +294 -0
  71. package/src/contracts/types/IERC721.d.ts +472 -0
  72. package/src/contracts/types/IZNSHub.d.ts +578 -0
  73. package/src/contracts/types/ZAuction.d.ts +1487 -0
  74. package/src/contracts/types/ZAuctionV1.d.ts +440 -0
  75. package/src/contracts/types/commons.ts +36 -0
  76. package/src/contracts/types/factories/IERC20__factory.ts +203 -0
  77. package/src/contracts/types/factories/IERC721__factory.ts +308 -0
  78. package/src/contracts/types/factories/IZNSHub__factory.ts +311 -0
  79. package/src/contracts/types/factories/ZAuctionV1__factory.ts +326 -0
  80. package/src/contracts/types/factories/ZAuction__factory.ts +1033 -0
  81. package/src/contracts/types/index.ts +14 -0
  82. package/src/index.ts +468 -0
  83. package/src/subgraph/actions/index.ts +4 -0
  84. package/src/subgraph/actions/listAllBuyNowListings.ts +69 -0
  85. package/src/subgraph/actions/listAllSales.ts +57 -0
  86. package/src/subgraph/actions/listBuyNowSales.ts +44 -0
  87. package/src/subgraph/actions/listSales.ts +33 -0
  88. package/src/subgraph/client.ts +62 -0
  89. package/src/subgraph/helpers/index.ts +39 -0
  90. package/src/subgraph/index.ts +1 -0
  91. package/src/subgraph/queries.ts +75 -0
  92. package/src/subgraph/types.ts +58 -0
  93. package/src/types.ts +181 -0
  94. package/src/utilities/index.ts +2 -0
  95. package/src/utilities/logging.ts +27 -0
@@ -0,0 +1,1033 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type { ZAuction, ZAuctionInterface } from "../ZAuction";
8
+
9
+ const _abi = [
10
+ {
11
+ anonymous: false,
12
+ inputs: [
13
+ {
14
+ indexed: false,
15
+ internalType: "uint256",
16
+ name: "bidNonce",
17
+ type: "uint256",
18
+ },
19
+ {
20
+ indexed: true,
21
+ internalType: "address",
22
+ name: "bidder",
23
+ type: "address",
24
+ },
25
+ {
26
+ indexed: true,
27
+ internalType: "address",
28
+ name: "seller",
29
+ type: "address",
30
+ },
31
+ {
32
+ indexed: false,
33
+ internalType: "uint256",
34
+ name: "amount",
35
+ type: "uint256",
36
+ },
37
+ {
38
+ indexed: false,
39
+ internalType: "address",
40
+ name: "nftAddress",
41
+ type: "address",
42
+ },
43
+ {
44
+ indexed: false,
45
+ internalType: "uint256",
46
+ name: "tokenId",
47
+ type: "uint256",
48
+ },
49
+ {
50
+ indexed: false,
51
+ internalType: "uint256",
52
+ name: "expireBlock",
53
+ type: "uint256",
54
+ },
55
+ ],
56
+ name: "BidAccepted",
57
+ type: "event",
58
+ },
59
+ {
60
+ anonymous: false,
61
+ inputs: [
62
+ {
63
+ indexed: false,
64
+ internalType: "uint256",
65
+ name: "bidNonce",
66
+ type: "uint256",
67
+ },
68
+ {
69
+ indexed: true,
70
+ internalType: "address",
71
+ name: "bidder",
72
+ type: "address",
73
+ },
74
+ {
75
+ indexed: true,
76
+ internalType: "address",
77
+ name: "seller",
78
+ type: "address",
79
+ },
80
+ {
81
+ indexed: false,
82
+ internalType: "uint256",
83
+ name: "amount",
84
+ type: "uint256",
85
+ },
86
+ {
87
+ indexed: false,
88
+ internalType: "address",
89
+ name: "nftAddress",
90
+ type: "address",
91
+ },
92
+ {
93
+ indexed: false,
94
+ internalType: "uint256",
95
+ name: "tokenId",
96
+ type: "uint256",
97
+ },
98
+ {
99
+ indexed: false,
100
+ internalType: "uint256",
101
+ name: "expireBlock",
102
+ type: "uint256",
103
+ },
104
+ {
105
+ indexed: false,
106
+ internalType: "address",
107
+ name: "paymentToken",
108
+ type: "address",
109
+ },
110
+ {
111
+ indexed: false,
112
+ internalType: "uint256",
113
+ name: "topLevelDomainId",
114
+ type: "uint256",
115
+ },
116
+ ],
117
+ name: "BidAcceptedV2",
118
+ type: "event",
119
+ },
120
+ {
121
+ anonymous: false,
122
+ inputs: [
123
+ {
124
+ indexed: false,
125
+ internalType: "uint256",
126
+ name: "bidNonce",
127
+ type: "uint256",
128
+ },
129
+ {
130
+ indexed: true,
131
+ internalType: "address",
132
+ name: "bidder",
133
+ type: "address",
134
+ },
135
+ ],
136
+ name: "BidCancelled",
137
+ type: "event",
138
+ },
139
+ {
140
+ anonymous: false,
141
+ inputs: [
142
+ {
143
+ indexed: true,
144
+ internalType: "uint256",
145
+ name: "tokenId",
146
+ type: "uint256",
147
+ },
148
+ {
149
+ indexed: false,
150
+ internalType: "uint256",
151
+ name: "amount",
152
+ type: "uint256",
153
+ },
154
+ ],
155
+ name: "BuyNowPriceSet",
156
+ type: "event",
157
+ },
158
+ {
159
+ anonymous: false,
160
+ inputs: [
161
+ {
162
+ indexed: true,
163
+ internalType: "uint256",
164
+ name: "tokenId",
165
+ type: "uint256",
166
+ },
167
+ {
168
+ indexed: false,
169
+ internalType: "uint256",
170
+ name: "amount",
171
+ type: "uint256",
172
+ },
173
+ {
174
+ indexed: false,
175
+ internalType: "address",
176
+ name: "paymentToken",
177
+ type: "address",
178
+ },
179
+ ],
180
+ name: "BuyNowPriceSetV2",
181
+ type: "event",
182
+ },
183
+ {
184
+ anonymous: false,
185
+ inputs: [
186
+ {
187
+ indexed: true,
188
+ internalType: "address",
189
+ name: "buyer",
190
+ type: "address",
191
+ },
192
+ {
193
+ indexed: true,
194
+ internalType: "address",
195
+ name: "seller",
196
+ type: "address",
197
+ },
198
+ {
199
+ indexed: false,
200
+ internalType: "uint256",
201
+ name: "amount",
202
+ type: "uint256",
203
+ },
204
+ {
205
+ indexed: false,
206
+ internalType: "address",
207
+ name: "nftAddress",
208
+ type: "address",
209
+ },
210
+ {
211
+ indexed: true,
212
+ internalType: "uint256",
213
+ name: "tokenId",
214
+ type: "uint256",
215
+ },
216
+ ],
217
+ name: "DomainSold",
218
+ type: "event",
219
+ },
220
+ {
221
+ anonymous: false,
222
+ inputs: [
223
+ {
224
+ indexed: true,
225
+ internalType: "address",
226
+ name: "buyer",
227
+ type: "address",
228
+ },
229
+ {
230
+ indexed: true,
231
+ internalType: "address",
232
+ name: "seller",
233
+ type: "address",
234
+ },
235
+ {
236
+ indexed: false,
237
+ internalType: "uint256",
238
+ name: "amount",
239
+ type: "uint256",
240
+ },
241
+ {
242
+ indexed: false,
243
+ internalType: "address",
244
+ name: "nftAddress",
245
+ type: "address",
246
+ },
247
+ {
248
+ indexed: true,
249
+ internalType: "uint256",
250
+ name: "tokenId",
251
+ type: "uint256",
252
+ },
253
+ {
254
+ indexed: false,
255
+ internalType: "address",
256
+ name: "paymentToken",
257
+ type: "address",
258
+ },
259
+ {
260
+ indexed: false,
261
+ internalType: "uint256",
262
+ name: "topLevelDomainId",
263
+ type: "uint256",
264
+ },
265
+ ],
266
+ name: "DomainSoldV2",
267
+ type: "event",
268
+ },
269
+ {
270
+ anonymous: false,
271
+ inputs: [
272
+ {
273
+ indexed: true,
274
+ internalType: "address",
275
+ name: "previousOwner",
276
+ type: "address",
277
+ },
278
+ {
279
+ indexed: true,
280
+ internalType: "address",
281
+ name: "newOwner",
282
+ type: "address",
283
+ },
284
+ ],
285
+ name: "OwnershipTransferred",
286
+ type: "event",
287
+ },
288
+ {
289
+ inputs: [
290
+ {
291
+ internalType: "bytes",
292
+ name: "signature",
293
+ type: "bytes",
294
+ },
295
+ {
296
+ internalType: "uint256",
297
+ name: "bidNonce",
298
+ type: "uint256",
299
+ },
300
+ {
301
+ internalType: "address",
302
+ name: "bidder",
303
+ type: "address",
304
+ },
305
+ {
306
+ internalType: "uint256",
307
+ name: "bid",
308
+ type: "uint256",
309
+ },
310
+ {
311
+ internalType: "uint256",
312
+ name: "domainTokenId",
313
+ type: "uint256",
314
+ },
315
+ {
316
+ internalType: "uint256",
317
+ name: "minbid",
318
+ type: "uint256",
319
+ },
320
+ {
321
+ internalType: "uint256",
322
+ name: "startBlock",
323
+ type: "uint256",
324
+ },
325
+ {
326
+ internalType: "uint256",
327
+ name: "expireBlock",
328
+ type: "uint256",
329
+ },
330
+ ],
331
+ name: "acceptBid",
332
+ outputs: [],
333
+ stateMutability: "nonpayable",
334
+ type: "function",
335
+ },
336
+ {
337
+ inputs: [
338
+ {
339
+ internalType: "bytes",
340
+ name: "signature",
341
+ type: "bytes",
342
+ },
343
+ {
344
+ internalType: "uint256",
345
+ name: "bidNonce",
346
+ type: "uint256",
347
+ },
348
+ {
349
+ internalType: "address",
350
+ name: "bidder",
351
+ type: "address",
352
+ },
353
+ {
354
+ internalType: "uint256",
355
+ name: "bid",
356
+ type: "uint256",
357
+ },
358
+ {
359
+ internalType: "uint256",
360
+ name: "domainTokenId",
361
+ type: "uint256",
362
+ },
363
+ {
364
+ internalType: "uint256",
365
+ name: "minbid",
366
+ type: "uint256",
367
+ },
368
+ {
369
+ internalType: "uint256",
370
+ name: "startBlock",
371
+ type: "uint256",
372
+ },
373
+ {
374
+ internalType: "uint256",
375
+ name: "expireBlock",
376
+ type: "uint256",
377
+ },
378
+ {
379
+ internalType: "contract IERC20",
380
+ name: "bidToken",
381
+ type: "address",
382
+ },
383
+ ],
384
+ name: "acceptBidV2",
385
+ outputs: [],
386
+ stateMutability: "nonpayable",
387
+ type: "function",
388
+ },
389
+ {
390
+ inputs: [
391
+ {
392
+ internalType: "uint256",
393
+ name: "amount",
394
+ type: "uint256",
395
+ },
396
+ {
397
+ internalType: "uint256",
398
+ name: "domainTokenId",
399
+ type: "uint256",
400
+ },
401
+ ],
402
+ name: "buyNow",
403
+ outputs: [],
404
+ stateMutability: "nonpayable",
405
+ type: "function",
406
+ },
407
+ {
408
+ inputs: [
409
+ {
410
+ internalType: "uint256",
411
+ name: "amount",
412
+ type: "uint256",
413
+ },
414
+ {
415
+ internalType: "uint256",
416
+ name: "domainTokenId",
417
+ type: "uint256",
418
+ },
419
+ ],
420
+ name: "buyNowV2",
421
+ outputs: [],
422
+ stateMutability: "nonpayable",
423
+ type: "function",
424
+ },
425
+ {
426
+ inputs: [
427
+ {
428
+ internalType: "uint256",
429
+ name: "id",
430
+ type: "uint256",
431
+ },
432
+ {
433
+ internalType: "uint256",
434
+ name: "bid",
435
+ type: "uint256",
436
+ },
437
+ ],
438
+ name: "calculateMinterRoyalty",
439
+ outputs: [
440
+ {
441
+ internalType: "uint256",
442
+ name: "",
443
+ type: "uint256",
444
+ },
445
+ ],
446
+ stateMutability: "pure",
447
+ type: "function",
448
+ },
449
+ {
450
+ inputs: [
451
+ {
452
+ internalType: "uint256",
453
+ name: "topLevelId",
454
+ type: "uint256",
455
+ },
456
+ {
457
+ internalType: "uint256",
458
+ name: "bid",
459
+ type: "uint256",
460
+ },
461
+ ],
462
+ name: "calculateTopLevelDomainFee",
463
+ outputs: [
464
+ {
465
+ internalType: "uint256",
466
+ name: "",
467
+ type: "uint256",
468
+ },
469
+ ],
470
+ stateMutability: "view",
471
+ type: "function",
472
+ },
473
+ {
474
+ inputs: [
475
+ {
476
+ internalType: "address",
477
+ name: "account",
478
+ type: "address",
479
+ },
480
+ {
481
+ internalType: "uint256",
482
+ name: "bidNonce",
483
+ type: "uint256",
484
+ },
485
+ ],
486
+ name: "cancelBid",
487
+ outputs: [],
488
+ stateMutability: "nonpayable",
489
+ type: "function",
490
+ },
491
+ {
492
+ inputs: [
493
+ {
494
+ internalType: "address",
495
+ name: "",
496
+ type: "address",
497
+ },
498
+ {
499
+ internalType: "uint256",
500
+ name: "",
501
+ type: "uint256",
502
+ },
503
+ ],
504
+ name: "consumed",
505
+ outputs: [
506
+ {
507
+ internalType: "bool",
508
+ name: "",
509
+ type: "bool",
510
+ },
511
+ ],
512
+ stateMutability: "view",
513
+ type: "function",
514
+ },
515
+ {
516
+ inputs: [
517
+ {
518
+ internalType: "uint256",
519
+ name: "bidNonce",
520
+ type: "uint256",
521
+ },
522
+ {
523
+ internalType: "uint256",
524
+ name: "bid",
525
+ type: "uint256",
526
+ },
527
+ {
528
+ internalType: "address",
529
+ name: "nftAddress",
530
+ type: "address",
531
+ },
532
+ {
533
+ internalType: "uint256",
534
+ name: "tokenId",
535
+ type: "uint256",
536
+ },
537
+ {
538
+ internalType: "uint256",
539
+ name: "minbid",
540
+ type: "uint256",
541
+ },
542
+ {
543
+ internalType: "uint256",
544
+ name: "startBlock",
545
+ type: "uint256",
546
+ },
547
+ {
548
+ internalType: "uint256",
549
+ name: "expireBlock",
550
+ type: "uint256",
551
+ },
552
+ ],
553
+ name: "createBid",
554
+ outputs: [
555
+ {
556
+ internalType: "bytes32",
557
+ name: "data",
558
+ type: "bytes32",
559
+ },
560
+ ],
561
+ stateMutability: "view",
562
+ type: "function",
563
+ },
564
+ {
565
+ inputs: [
566
+ {
567
+ internalType: "uint256",
568
+ name: "bidNonce",
569
+ type: "uint256",
570
+ },
571
+ {
572
+ internalType: "uint256",
573
+ name: "bid",
574
+ type: "uint256",
575
+ },
576
+ {
577
+ internalType: "uint256",
578
+ name: "tokenId",
579
+ type: "uint256",
580
+ },
581
+ {
582
+ internalType: "uint256",
583
+ name: "minbid",
584
+ type: "uint256",
585
+ },
586
+ {
587
+ internalType: "uint256",
588
+ name: "startBlock",
589
+ type: "uint256",
590
+ },
591
+ {
592
+ internalType: "uint256",
593
+ name: "expireBlock",
594
+ type: "uint256",
595
+ },
596
+ {
597
+ internalType: "address",
598
+ name: "bidToken",
599
+ type: "address",
600
+ },
601
+ ],
602
+ name: "createBidV2",
603
+ outputs: [
604
+ {
605
+ internalType: "bytes32",
606
+ name: "data",
607
+ type: "bytes32",
608
+ },
609
+ ],
610
+ stateMutability: "view",
611
+ type: "function",
612
+ },
613
+ {
614
+ inputs: [],
615
+ name: "defaultPaymentToken",
616
+ outputs: [
617
+ {
618
+ internalType: "contract IERC20",
619
+ name: "",
620
+ type: "address",
621
+ },
622
+ ],
623
+ stateMutability: "view",
624
+ type: "function",
625
+ },
626
+ {
627
+ inputs: [
628
+ {
629
+ internalType: "uint256",
630
+ name: "domainTokenId",
631
+ type: "uint256",
632
+ },
633
+ ],
634
+ name: "getPaymentTokenForDomain",
635
+ outputs: [
636
+ {
637
+ internalType: "contract IERC20",
638
+ name: "",
639
+ type: "address",
640
+ },
641
+ ],
642
+ stateMutability: "view",
643
+ type: "function",
644
+ },
645
+ {
646
+ inputs: [],
647
+ name: "getProxyAdmin",
648
+ outputs: [
649
+ {
650
+ internalType: "address",
651
+ name: "",
652
+ type: "address",
653
+ },
654
+ ],
655
+ stateMutability: "view",
656
+ type: "function",
657
+ },
658
+ {
659
+ inputs: [
660
+ {
661
+ internalType: "uint256",
662
+ name: "domainTokenId",
663
+ type: "uint256",
664
+ },
665
+ ],
666
+ name: "getTopLevelId",
667
+ outputs: [
668
+ {
669
+ internalType: "uint256",
670
+ name: "",
671
+ type: "uint256",
672
+ },
673
+ ],
674
+ stateMutability: "view",
675
+ type: "function",
676
+ },
677
+ {
678
+ inputs: [],
679
+ name: "hub",
680
+ outputs: [
681
+ {
682
+ internalType: "contract IZNSHub",
683
+ name: "",
684
+ type: "address",
685
+ },
686
+ ],
687
+ stateMutability: "view",
688
+ type: "function",
689
+ },
690
+ {
691
+ inputs: [
692
+ {
693
+ internalType: "contract IERC20",
694
+ name: "tokenAddress",
695
+ type: "address",
696
+ },
697
+ {
698
+ internalType: "contract IRegistrar",
699
+ name: "registrarAddress",
700
+ type: "address",
701
+ },
702
+ ],
703
+ name: "initialize",
704
+ outputs: [],
705
+ stateMutability: "nonpayable",
706
+ type: "function",
707
+ },
708
+ {
709
+ inputs: [
710
+ {
711
+ internalType: "uint256",
712
+ name: "",
713
+ type: "uint256",
714
+ },
715
+ ],
716
+ name: "networkPaymentToken",
717
+ outputs: [
718
+ {
719
+ internalType: "contract IERC20",
720
+ name: "",
721
+ type: "address",
722
+ },
723
+ ],
724
+ stateMutability: "view",
725
+ type: "function",
726
+ },
727
+ {
728
+ inputs: [],
729
+ name: "owner",
730
+ outputs: [
731
+ {
732
+ internalType: "address",
733
+ name: "",
734
+ type: "address",
735
+ },
736
+ ],
737
+ stateMutability: "view",
738
+ type: "function",
739
+ },
740
+ {
741
+ inputs: [
742
+ {
743
+ internalType: "uint256",
744
+ name: "",
745
+ type: "uint256",
746
+ },
747
+ ],
748
+ name: "priceInfo",
749
+ outputs: [
750
+ {
751
+ internalType: "uint256",
752
+ name: "price",
753
+ type: "uint256",
754
+ },
755
+ {
756
+ internalType: "address",
757
+ name: "holder",
758
+ type: "address",
759
+ },
760
+ {
761
+ internalType: "contract IERC20",
762
+ name: "paymentToken",
763
+ type: "address",
764
+ },
765
+ ],
766
+ stateMutability: "view",
767
+ type: "function",
768
+ },
769
+ {
770
+ inputs: [
771
+ {
772
+ internalType: "bytes32",
773
+ name: "hash",
774
+ type: "bytes32",
775
+ },
776
+ {
777
+ internalType: "bytes",
778
+ name: "signature",
779
+ type: "bytes",
780
+ },
781
+ ],
782
+ name: "recover",
783
+ outputs: [
784
+ {
785
+ internalType: "address",
786
+ name: "",
787
+ type: "address",
788
+ },
789
+ ],
790
+ stateMutability: "pure",
791
+ type: "function",
792
+ },
793
+ {
794
+ inputs: [],
795
+ name: "registrar",
796
+ outputs: [
797
+ {
798
+ internalType: "contract IRegistrar",
799
+ name: "",
800
+ type: "address",
801
+ },
802
+ ],
803
+ stateMutability: "view",
804
+ type: "function",
805
+ },
806
+ {
807
+ inputs: [],
808
+ name: "renounceOwnership",
809
+ outputs: [],
810
+ stateMutability: "nonpayable",
811
+ type: "function",
812
+ },
813
+ {
814
+ inputs: [
815
+ {
816
+ internalType: "uint256",
817
+ name: "amount",
818
+ type: "uint256",
819
+ },
820
+ {
821
+ internalType: "uint256",
822
+ name: "domainTokenId",
823
+ type: "uint256",
824
+ },
825
+ ],
826
+ name: "setBuyPrice",
827
+ outputs: [],
828
+ stateMutability: "nonpayable",
829
+ type: "function",
830
+ },
831
+ {
832
+ inputs: [
833
+ {
834
+ internalType: "contract IERC20",
835
+ name: "newDefaultToken",
836
+ type: "address",
837
+ },
838
+ ],
839
+ name: "setDefaultPaymentToken",
840
+ outputs: [],
841
+ stateMutability: "nonpayable",
842
+ type: "function",
843
+ },
844
+ {
845
+ inputs: [
846
+ {
847
+ internalType: "uint256",
848
+ name: "domainNetworkId",
849
+ type: "uint256",
850
+ },
851
+ {
852
+ internalType: "contract IERC20",
853
+ name: "domainNetworkToken",
854
+ type: "address",
855
+ },
856
+ ],
857
+ name: "setNetworkToken",
858
+ outputs: [],
859
+ stateMutability: "nonpayable",
860
+ type: "function",
861
+ },
862
+ {
863
+ inputs: [
864
+ {
865
+ internalType: "uint256",
866
+ name: "id",
867
+ type: "uint256",
868
+ },
869
+ {
870
+ internalType: "uint256",
871
+ name: "amount",
872
+ type: "uint256",
873
+ },
874
+ ],
875
+ name: "setTopLevelDomainFee",
876
+ outputs: [],
877
+ stateMutability: "nonpayable",
878
+ type: "function",
879
+ },
880
+ {
881
+ inputs: [
882
+ {
883
+ internalType: "contract IERC20",
884
+ name: "token",
885
+ type: "address",
886
+ },
887
+ ],
888
+ name: "setWildToken",
889
+ outputs: [],
890
+ stateMutability: "nonpayable",
891
+ type: "function",
892
+ },
893
+ {
894
+ inputs: [
895
+ {
896
+ internalType: "contract IZNSHub",
897
+ name: "hubAddress",
898
+ type: "address",
899
+ },
900
+ ],
901
+ name: "setZNSHub",
902
+ outputs: [],
903
+ stateMutability: "nonpayable",
904
+ type: "function",
905
+ },
906
+ {
907
+ inputs: [
908
+ {
909
+ internalType: "bytes32",
910
+ name: "hash",
911
+ type: "bytes32",
912
+ },
913
+ ],
914
+ name: "toEthSignedMessageHash",
915
+ outputs: [
916
+ {
917
+ internalType: "bytes32",
918
+ name: "",
919
+ type: "bytes32",
920
+ },
921
+ ],
922
+ stateMutability: "pure",
923
+ type: "function",
924
+ },
925
+ {
926
+ inputs: [],
927
+ name: "token",
928
+ outputs: [
929
+ {
930
+ internalType: "contract IERC20",
931
+ name: "",
932
+ type: "address",
933
+ },
934
+ ],
935
+ stateMutability: "view",
936
+ type: "function",
937
+ },
938
+ {
939
+ inputs: [
940
+ {
941
+ internalType: "uint256",
942
+ name: "",
943
+ type: "uint256",
944
+ },
945
+ ],
946
+ name: "topLevelDomainFee",
947
+ outputs: [
948
+ {
949
+ internalType: "uint256",
950
+ name: "",
951
+ type: "uint256",
952
+ },
953
+ ],
954
+ stateMutability: "view",
955
+ type: "function",
956
+ },
957
+ {
958
+ inputs: [
959
+ {
960
+ internalType: "uint256",
961
+ name: "",
962
+ type: "uint256",
963
+ },
964
+ ],
965
+ name: "topLevelDomainIdCache",
966
+ outputs: [
967
+ {
968
+ internalType: "uint256",
969
+ name: "",
970
+ type: "uint256",
971
+ },
972
+ ],
973
+ stateMutability: "view",
974
+ type: "function",
975
+ },
976
+ {
977
+ inputs: [
978
+ {
979
+ internalType: "address",
980
+ name: "newOwner",
981
+ type: "address",
982
+ },
983
+ ],
984
+ name: "transferOwnership",
985
+ outputs: [],
986
+ stateMutability: "nonpayable",
987
+ type: "function",
988
+ },
989
+ {
990
+ inputs: [
991
+ {
992
+ internalType: "address",
993
+ name: "_defaultToken",
994
+ type: "address",
995
+ },
996
+ {
997
+ internalType: "address",
998
+ name: "_wildToken",
999
+ type: "address",
1000
+ },
1001
+ ],
1002
+ name: "upgradeFromV2",
1003
+ outputs: [],
1004
+ stateMutability: "nonpayable",
1005
+ type: "function",
1006
+ },
1007
+ {
1008
+ inputs: [],
1009
+ name: "wildToken",
1010
+ outputs: [
1011
+ {
1012
+ internalType: "contract IERC20",
1013
+ name: "",
1014
+ type: "address",
1015
+ },
1016
+ ],
1017
+ stateMutability: "view",
1018
+ type: "function",
1019
+ },
1020
+ ];
1021
+
1022
+ export class ZAuction__factory {
1023
+ static readonly abi = _abi;
1024
+ static createInterface(): ZAuctionInterface {
1025
+ return new utils.Interface(_abi) as ZAuctionInterface;
1026
+ }
1027
+ static connect(
1028
+ address: string,
1029
+ signerOrProvider: Signer | Provider
1030
+ ): ZAuction {
1031
+ return new Contract(address, _abi, signerOrProvider) as ZAuction;
1032
+ }
1033
+ }