@rareprotocol/rare-cli 0.4.1 → 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/dist/client.d.ts CHANGED
@@ -1,43 +1,1606 @@
1
- import { Chain, Address, Hash, TransactionReceipt, PublicClient, WalletClient } from 'viem';
1
+ import { Address, Hex as Hex$1, Hash, PublicClient, WalletClient } from 'viem';
2
+ import { S as SupportedChain, C as CurrencyInput, a as CurrencyInfo, R as ResolvedCurrency } from './addresses-BE3luaB3.js';
3
+ export { b as CurrencyName, c as CustomCurrencyInfo } from './addresses-BE3luaB3.js';
4
+ import { I as IntegerInput, B as BatchTokenListArtifact, A as AmountInput, T as TimestampInput, a as TransactionResult, b as BatchTokenProofArtifact, c as BatchListingNamespace, d as BuildUtilsTreeParams, U as UtilsTreeArtifact, e as UtilsTreeProofParams, f as UtilsTreeProofArtifact, g as UtilsTreeProofVerifyParams, h as UtilsMerkleProofParams, i as UtilsMerkleProofArtifact, R as ResolvedCurrencyWithDecimals } from './batch-listing-Cu5Hoqxs.js';
5
+ export { j as BatchListingBuyParams, k as BatchListingBuyResult, l as BatchListingCancelParams, m as BatchListingCancelResult, n as BatchListingCreateParams, o as BatchListingCreateResult, p as BatchListingProofArtifact, q as BatchListingRootArtifact, r as BatchListingSetAllowListParams, s as BatchListingSetAllowListResult, t as BatchListingStatus, u as BatchListingStatusParams, v as BatchListingTokenEntry, w as UtilsMerkleRootArtifact, x as UtilsMerkleTokenEntry, W as WalletAccount } from './batch-listing-Cu5Hoqxs.js';
2
6
 
3
- declare const supportedChains: readonly ["mainnet", "sepolia", "base", "base-sepolia"];
4
- type SupportedChain = (typeof supportedChains)[number];
5
- declare const viemChains: Record<SupportedChain, Chain>;
6
- declare const chainIds: Record<SupportedChain, number>;
7
- type ContractSet = {
8
- factory: `0x${string}`;
9
- auction: `0x${string}`;
10
- };
11
- declare const contractAddresses: Partial<Record<SupportedChain, ContractSet>>;
12
- declare function getContractAddresses(chain: SupportedChain): ContractSet;
13
- declare function isSupportedChain(value: string): value is SupportedChain;
7
+ /**
8
+ * This file was auto-generated by openapi-typescript.
9
+ * Do not make direct changes to the file.
10
+ */
14
11
 
15
- type SearchPageResponse = {
16
- items: Record<string, unknown>[];
17
- total: number;
18
- hasNextPage: boolean;
19
- nextCursor: number;
20
- };
21
- type NftSearchParams = {
22
- query?: string;
23
- take?: number;
24
- cursor?: number;
25
- sortBy?: string;
26
- ownerAddresses?: string[];
27
- creatorAddresses?: string[];
28
- collectionIds?: string[];
29
- contractAddresses?: string[];
30
- auctionStates?: string[];
31
- chainIds?: number[];
32
- };
33
- type CollectionSearchParams = {
34
- query?: string;
35
- take?: number;
36
- cursor?: number;
37
- sortBy?: string;
38
- ownerAddresses?: string[];
12
+ interface paths {
13
+ "/v1/nfts": {
14
+ parameters: {
15
+ query?: never;
16
+ header?: never;
17
+ path?: never;
18
+ cookie?: never;
19
+ };
20
+ /**
21
+ * List NFTs
22
+ * @description Search, filter, and list NFTs with rich query parameters
23
+ */
24
+ get: {
25
+ parameters: {
26
+ query?: {
27
+ page?: number;
28
+ perPage?: number;
29
+ /** @description Full-text search */
30
+ q?: string;
31
+ /** @description Checksummed Ethereum address */
32
+ creatorAddress?: components["schemas"]["EthereumAddress"];
33
+ /** @description Checksummed Ethereum address */
34
+ ownerAddress?: components["schemas"]["EthereumAddress"];
35
+ /** @description Checksummed Ethereum address */
36
+ contractAddress?: components["schemas"]["EthereumAddress"] & unknown;
37
+ collectionId?: string;
38
+ /** @description Supported blockchain network id */
39
+ chainId?: components["schemas"]["ChainId"];
40
+ listingType?: "SALE_PRICE" | "BATCH_SALE_PRICE";
41
+ hasAuction?: boolean | null;
42
+ auctionState?: "PENDING" | "RUNNING" | "UNSETTLED";
43
+ auctionType?: "RESERVE_AUCTION" | "BATCH_RESERVE_AUCTION" | "SCHEDULED_AUCTION";
44
+ /** @description Checksummed Ethereum address */
45
+ auctionCreatorAddress?: components["schemas"]["EthereumAddress"];
46
+ /** @description Checksummed Ethereum address */
47
+ auctionBidderAddress?: components["schemas"]["EthereumAddress"];
48
+ hasListing?: boolean | null;
49
+ hasOffer?: boolean | null;
50
+ /** @description Checksummed Ethereum address */
51
+ offerBuyerAddress?: components["schemas"]["EthereumAddress"];
52
+ isPrimarySale?: boolean | null;
53
+ isSecondarySale?: boolean | null;
54
+ priceMin?: number | null;
55
+ priceMax?: number | null;
56
+ /** @description Checksummed Ethereum address */
57
+ currency?: components["schemas"]["EthereumAddress"] & unknown;
58
+ mediaType?: "AUDIO" | "HTML" | "IMAGE" | "THREE_D" | "VIDEO";
59
+ tags?: string[] | string;
60
+ sortBy?: "newest" | "oldest" | "priceAsc" | "priceDesc" | "recentlySold" | "auctionEndingSoon" | "recentActivity" | "bidAsc" | "bidDesc";
61
+ };
62
+ header?: never;
63
+ path?: never;
64
+ cookie?: never;
65
+ };
66
+ requestBody?: never;
67
+ responses: {
68
+ /** @description List of NFTs */
69
+ 200: {
70
+ headers: {
71
+ [name: string]: unknown;
72
+ };
73
+ content: {
74
+ "application/json": {
75
+ data: components["schemas"]["Nft"][];
76
+ pagination: components["schemas"]["Pagination"];
77
+ };
78
+ };
79
+ };
80
+ };
81
+ };
82
+ put?: never;
83
+ post?: never;
84
+ delete?: never;
85
+ options?: never;
86
+ head?: never;
87
+ patch?: never;
88
+ trace?: never;
89
+ };
90
+ "/v1/nfts/{universalTokenId}": {
91
+ parameters: {
92
+ query?: never;
93
+ header?: never;
94
+ path?: never;
95
+ cookie?: never;
96
+ };
97
+ /**
98
+ * Get NFT
99
+ * @description Get a single NFT by its universal token ID
100
+ */
101
+ get: {
102
+ parameters: {
103
+ query?: never;
104
+ header?: never;
105
+ path: {
106
+ /** @description Canonical NFT identifier in chainId-contractAddress-tokenId format. */
107
+ universalTokenId: components["schemas"]["UniversalTokenId"];
108
+ };
109
+ cookie?: never;
110
+ };
111
+ requestBody?: never;
112
+ responses: {
113
+ /** @description NFT detail */
114
+ 200: {
115
+ headers: {
116
+ [name: string]: unknown;
117
+ };
118
+ content: {
119
+ "application/json": {
120
+ data: components["schemas"]["Nft"];
121
+ };
122
+ };
123
+ };
124
+ /** @description NFT not found */
125
+ 404: {
126
+ headers: {
127
+ [name: string]: unknown;
128
+ };
129
+ content: {
130
+ "application/json": {
131
+ error: string;
132
+ };
133
+ };
134
+ };
135
+ };
136
+ };
137
+ put?: never;
138
+ post?: never;
139
+ delete?: never;
140
+ options?: never;
141
+ head?: never;
142
+ patch?: never;
143
+ trace?: never;
144
+ };
145
+ "/v1/nfts/{universalTokenId}/events": {
146
+ parameters: {
147
+ query?: never;
148
+ header?: never;
149
+ path?: never;
150
+ cookie?: never;
151
+ };
152
+ /**
153
+ * List NFT events
154
+ * @description Get events for a specific NFT
155
+ */
156
+ get: {
157
+ parameters: {
158
+ query?: {
159
+ page?: number;
160
+ perPage?: number;
161
+ eventType?: ("CANCEL_AUCTION" | "CANCEL_OFFER" | "CLOSE_AUCTION" | "CREATE_NFT" | "CREATE_NFT_SUPPLY" | "CREATE_RESERVE_AUCTION" | "CREATE_SCHEDULED_AUCTION" | "END_AUCTION" | "MAKE_AUCTION_BID" | "MAKE_LISTING" | "MAKE_OFFER" | "SETTLE_AUCTION" | "START_AUCTION" | "TAKE_LISTING" | "TAKE_OFFER" | "TRANSFER_NFT" | "TRANSFER_NFT_SUPPLY")[];
162
+ sortBy?: "newest" | "oldest";
163
+ };
164
+ header?: never;
165
+ path: {
166
+ /** @description Canonical NFT identifier in chainId-contractAddress-tokenId format. */
167
+ universalTokenId: components["schemas"]["UniversalTokenId"];
168
+ };
169
+ cookie?: never;
170
+ };
171
+ requestBody?: never;
172
+ responses: {
173
+ /** @description List of NFT events */
174
+ 200: {
175
+ headers: {
176
+ [name: string]: unknown;
177
+ };
178
+ content: {
179
+ "application/json": {
180
+ data: components["schemas"]["NftEvent"][];
181
+ pagination: components["schemas"]["Pagination"];
182
+ };
183
+ };
184
+ };
185
+ };
186
+ };
187
+ put?: never;
188
+ post?: never;
189
+ delete?: never;
190
+ options?: never;
191
+ head?: never;
192
+ patch?: never;
193
+ trace?: never;
194
+ };
195
+ "/v1/nfts/metadata": {
196
+ parameters: {
197
+ query?: never;
198
+ header?: never;
199
+ path?: never;
200
+ cookie?: never;
201
+ };
202
+ get?: never;
203
+ put?: never;
204
+ /**
205
+ * Pin NFT Metadata
206
+ * @description Assemble NFT metadata JSON from media assets and pin to IPFS via Filebase
207
+ */
208
+ post: {
209
+ parameters: {
210
+ query?: never;
211
+ header?: never;
212
+ path?: never;
213
+ cookie?: never;
214
+ };
215
+ requestBody: {
216
+ content: {
217
+ "application/json": components["schemas"]["CreateNftMetadataRequest"];
218
+ };
219
+ };
220
+ responses: {
221
+ /** @description Metadata pinned to IPFS */
222
+ 201: {
223
+ headers: {
224
+ [name: string]: unknown;
225
+ };
226
+ content: {
227
+ "application/json": components["schemas"]["CreateNftMetadataResponse"];
228
+ };
229
+ };
230
+ /** @description Invalid request */
231
+ 400: {
232
+ headers: {
233
+ [name: string]: unknown;
234
+ };
235
+ content: {
236
+ "application/json": {
237
+ error: string;
238
+ };
239
+ };
240
+ };
241
+ };
242
+ };
243
+ delete?: never;
244
+ options?: never;
245
+ head?: never;
246
+ patch?: never;
247
+ trace?: never;
248
+ };
249
+ "/v1/nfts/metadata/media/uploads": {
250
+ parameters: {
251
+ query?: never;
252
+ header?: never;
253
+ path?: never;
254
+ cookie?: never;
255
+ };
256
+ get?: never;
257
+ put?: never;
258
+ /**
259
+ * Create Media Upload
260
+ * @description Initiate a multipart upload to Filebase/IPFS, returning presigned URLs for each part
261
+ */
262
+ post: {
263
+ parameters: {
264
+ query?: never;
265
+ header?: never;
266
+ path?: never;
267
+ cookie?: never;
268
+ };
269
+ requestBody: {
270
+ content: {
271
+ "application/json": components["schemas"]["CreateMediaUploadRequest"];
272
+ };
273
+ };
274
+ responses: {
275
+ /** @description Multipart upload initiated */
276
+ 201: {
277
+ headers: {
278
+ [name: string]: unknown;
279
+ };
280
+ content: {
281
+ "application/json": components["schemas"]["CreateMediaUploadResponse"];
282
+ };
283
+ };
284
+ /** @description Invalid request */
285
+ 400: {
286
+ headers: {
287
+ [name: string]: unknown;
288
+ };
289
+ content: {
290
+ "application/json": {
291
+ error: string;
292
+ };
293
+ };
294
+ };
295
+ };
296
+ };
297
+ delete?: never;
298
+ options?: never;
299
+ head?: never;
300
+ patch?: never;
301
+ trace?: never;
302
+ };
303
+ "/v1/nfts/metadata/media/uploads/complete": {
304
+ parameters: {
305
+ query?: never;
306
+ header?: never;
307
+ path?: never;
308
+ cookie?: never;
309
+ };
310
+ get?: never;
311
+ put?: never;
312
+ /**
313
+ * Complete Media Upload
314
+ * @description Complete a multipart upload, resolve IPFS CID, and return IPFS/gateway URLs
315
+ */
316
+ post: {
317
+ parameters: {
318
+ query?: never;
319
+ header?: never;
320
+ path?: never;
321
+ cookie?: never;
322
+ };
323
+ requestBody: {
324
+ content: {
325
+ "application/json": components["schemas"]["CompleteMediaUploadRequest"];
326
+ };
327
+ };
328
+ responses: {
329
+ /** @description Upload completed */
330
+ 200: {
331
+ headers: {
332
+ [name: string]: unknown;
333
+ };
334
+ content: {
335
+ "application/json": components["schemas"]["IpfsUploadResponse"];
336
+ };
337
+ };
338
+ /** @description Invalid request */
339
+ 400: {
340
+ headers: {
341
+ [name: string]: unknown;
342
+ };
343
+ content: {
344
+ "application/json": {
345
+ error: string;
346
+ };
347
+ };
348
+ };
349
+ };
350
+ };
351
+ delete?: never;
352
+ options?: never;
353
+ head?: never;
354
+ patch?: never;
355
+ trace?: never;
356
+ };
357
+ "/v1/nfts/metadata/media/generate": {
358
+ parameters: {
359
+ query?: never;
360
+ header?: never;
361
+ path?: never;
362
+ cookie?: never;
363
+ };
364
+ get?: never;
365
+ put?: never;
366
+ /**
367
+ * Generate Media Metadata
368
+ * @description Call pipelines to extract media metadata (dimensions, size, type) from a URI
369
+ */
370
+ post: {
371
+ parameters: {
372
+ query?: never;
373
+ header?: never;
374
+ path?: never;
375
+ cookie?: never;
376
+ };
377
+ requestBody: {
378
+ content: {
379
+ "application/json": components["schemas"]["GenerateMediaRequest"];
380
+ };
381
+ };
382
+ responses: {
383
+ /** @description Media metadata generated */
384
+ 200: {
385
+ headers: {
386
+ [name: string]: unknown;
387
+ };
388
+ content: {
389
+ "application/json": components["schemas"]["GenerateMediaResponse"];
390
+ };
391
+ };
392
+ /** @description Invalid request */
393
+ 400: {
394
+ headers: {
395
+ [name: string]: unknown;
396
+ };
397
+ content: {
398
+ "application/json": {
399
+ error: string;
400
+ };
401
+ };
402
+ };
403
+ };
404
+ };
405
+ delete?: never;
406
+ options?: never;
407
+ head?: never;
408
+ patch?: never;
409
+ trace?: never;
410
+ };
411
+ "/v1/collections": {
412
+ parameters: {
413
+ query?: never;
414
+ header?: never;
415
+ path?: never;
416
+ cookie?: never;
417
+ };
418
+ /**
419
+ * List collections
420
+ * @description Search, filter, and list collections
421
+ */
422
+ get: {
423
+ parameters: {
424
+ query?: {
425
+ page?: number;
426
+ perPage?: number;
427
+ /** @description Full-text search */
428
+ q?: string;
429
+ /** @description Checksummed Ethereum address */
430
+ ownerAddress?: components["schemas"]["EthereumAddress"];
431
+ /** @description Supported blockchain network id */
432
+ chainId?: components["schemas"]["ChainId"];
433
+ sortBy?: "newest" | "oldest";
434
+ };
435
+ header?: never;
436
+ path?: never;
437
+ cookie?: never;
438
+ };
439
+ requestBody?: never;
440
+ responses: {
441
+ /** @description List of collections */
442
+ 200: {
443
+ headers: {
444
+ [name: string]: unknown;
445
+ };
446
+ content: {
447
+ "application/json": {
448
+ data: components["schemas"]["Collection"][];
449
+ pagination: components["schemas"]["Pagination"];
450
+ };
451
+ };
452
+ };
453
+ };
454
+ };
455
+ put?: never;
456
+ post?: never;
457
+ delete?: never;
458
+ options?: never;
459
+ head?: never;
460
+ patch?: never;
461
+ trace?: never;
462
+ };
463
+ "/v1/collections/{id}": {
464
+ parameters: {
465
+ query?: never;
466
+ header?: never;
467
+ path?: never;
468
+ cookie?: never;
469
+ };
470
+ /**
471
+ * Get collection
472
+ * @description Get a single collection by ID
473
+ */
474
+ get: {
475
+ parameters: {
476
+ query?: never;
477
+ header?: never;
478
+ path: {
479
+ id: string;
480
+ };
481
+ cookie?: never;
482
+ };
483
+ requestBody?: never;
484
+ responses: {
485
+ /** @description Collection detail */
486
+ 200: {
487
+ headers: {
488
+ [name: string]: unknown;
489
+ };
490
+ content: {
491
+ "application/json": {
492
+ data: components["schemas"]["Collection"];
493
+ };
494
+ };
495
+ };
496
+ /** @description Collection not found */
497
+ 404: {
498
+ headers: {
499
+ [name: string]: unknown;
500
+ };
501
+ content: {
502
+ "application/json": {
503
+ error: string;
504
+ };
505
+ };
506
+ };
507
+ };
508
+ };
509
+ put?: never;
510
+ post?: never;
511
+ delete?: never;
512
+ options?: never;
513
+ head?: never;
514
+ patch?: never;
515
+ trace?: never;
516
+ };
517
+ "/v1/collections/{id}/events": {
518
+ parameters: {
519
+ query?: never;
520
+ header?: never;
521
+ path?: never;
522
+ cookie?: never;
523
+ };
524
+ /**
525
+ * List collection events
526
+ * @description Get events across all NFTs in a collection
527
+ */
528
+ get: {
529
+ parameters: {
530
+ query?: {
531
+ page?: number;
532
+ perPage?: number;
533
+ eventType?: ("CANCEL_AUCTION" | "CANCEL_OFFER" | "CLOSE_AUCTION" | "CREATE_NFT" | "CREATE_NFT_SUPPLY" | "CREATE_RESERVE_AUCTION" | "CREATE_SCHEDULED_AUCTION" | "END_AUCTION" | "MAKE_AUCTION_BID" | "MAKE_LISTING" | "MAKE_OFFER" | "SETTLE_AUCTION" | "START_AUCTION" | "TAKE_LISTING" | "TAKE_OFFER" | "TRANSFER_NFT" | "TRANSFER_NFT_SUPPLY")[];
534
+ sortBy?: "newest" | "oldest";
535
+ };
536
+ header?: never;
537
+ path: {
538
+ id: string;
539
+ };
540
+ cookie?: never;
541
+ };
542
+ requestBody?: never;
543
+ responses: {
544
+ /** @description List of collection events */
545
+ 200: {
546
+ headers: {
547
+ [name: string]: unknown;
548
+ };
549
+ content: {
550
+ "application/json": {
551
+ data: components["schemas"]["NftEvent"][];
552
+ pagination: components["schemas"]["Pagination"];
553
+ };
554
+ };
555
+ };
556
+ };
557
+ };
558
+ put?: never;
559
+ post?: never;
560
+ delete?: never;
561
+ options?: never;
562
+ head?: never;
563
+ patch?: never;
564
+ trace?: never;
565
+ };
566
+ "/v1/collections/import": {
567
+ parameters: {
568
+ query?: never;
569
+ header?: never;
570
+ path?: never;
571
+ cookie?: never;
572
+ };
573
+ get?: never;
574
+ put?: never;
575
+ /**
576
+ * Import ERC-721 Collection
577
+ * @description Validate an ERC-721 contract on-chain and register it for indexing via pipelines
578
+ */
579
+ post: {
580
+ parameters: {
581
+ query?: never;
582
+ header?: never;
583
+ path?: never;
584
+ cookie?: never;
585
+ };
586
+ requestBody: {
587
+ content: {
588
+ "application/json": components["schemas"]["ImportCollectionRequest"];
589
+ };
590
+ };
591
+ responses: {
592
+ /** @description Collection imported or already exists */
593
+ 200: {
594
+ headers: {
595
+ [name: string]: unknown;
596
+ };
597
+ content: {
598
+ "application/json": components["schemas"]["ImportCollectionResponse"];
599
+ };
600
+ };
601
+ /** @description Validation failed */
602
+ 400: {
603
+ headers: {
604
+ [name: string]: unknown;
605
+ };
606
+ content: {
607
+ "application/json": {
608
+ error: string;
609
+ };
610
+ };
611
+ };
612
+ /** @description Collection already indexed */
613
+ 409: {
614
+ headers: {
615
+ [name: string]: unknown;
616
+ };
617
+ content: {
618
+ "application/json": {
619
+ error: string;
620
+ collectionId: string;
621
+ };
622
+ };
623
+ };
624
+ };
625
+ };
626
+ delete?: never;
627
+ options?: never;
628
+ head?: never;
629
+ patch?: never;
630
+ trace?: never;
631
+ };
632
+ "/v1/users/{address}": {
633
+ parameters: {
634
+ query?: never;
635
+ header?: never;
636
+ path?: never;
637
+ cookie?: never;
638
+ };
639
+ /**
640
+ * Get user
641
+ * @description Get a user profile by Ethereum address
642
+ */
643
+ get: {
644
+ parameters: {
645
+ query?: never;
646
+ header?: never;
647
+ path: {
648
+ /** @description Checksummed Ethereum address */
649
+ address: components["schemas"]["EthereumAddress"];
650
+ };
651
+ cookie?: never;
652
+ };
653
+ requestBody?: never;
654
+ responses: {
655
+ /** @description User profile */
656
+ 200: {
657
+ headers: {
658
+ [name: string]: unknown;
659
+ };
660
+ content: {
661
+ "application/json": {
662
+ data: components["schemas"]["UserProfile"];
663
+ };
664
+ };
665
+ };
666
+ /** @description User not found */
667
+ 404: {
668
+ headers: {
669
+ [name: string]: unknown;
670
+ };
671
+ content: {
672
+ "application/json": {
673
+ error: string;
674
+ };
675
+ };
676
+ };
677
+ };
678
+ };
679
+ put?: never;
680
+ post?: never;
681
+ delete?: never;
682
+ options?: never;
683
+ head?: never;
684
+ patch?: never;
685
+ trace?: never;
686
+ };
687
+ "/v1/tokens/price/{symbol}": {
688
+ parameters: {
689
+ query?: never;
690
+ header?: never;
691
+ path?: never;
692
+ cookie?: never;
693
+ };
694
+ /**
695
+ * Get Token Price
696
+ * @description Fetch the current USD price for a token by symbol (e.g., rare, eth, usdc)
697
+ */
698
+ get: {
699
+ parameters: {
700
+ query?: never;
701
+ header?: never;
702
+ path: {
703
+ /** @description Token symbol (case-insensitive) */
704
+ symbol: components["schemas"]["TokenSymbol"];
705
+ };
706
+ cookie?: never;
707
+ };
708
+ requestBody?: never;
709
+ responses: {
710
+ /** @description Token price */
711
+ 200: {
712
+ headers: {
713
+ "Cache-Control": string;
714
+ [name: string]: unknown;
715
+ };
716
+ content: {
717
+ "application/json": components["schemas"]["TokenPriceResponse"];
718
+ };
719
+ };
720
+ /** @description Token not found */
721
+ 404: {
722
+ headers: {
723
+ [name: string]: unknown;
724
+ };
725
+ content: {
726
+ "application/json": {
727
+ error: string;
728
+ };
729
+ };
730
+ };
731
+ };
732
+ };
733
+ put?: never;
734
+ post?: never;
735
+ delete?: never;
736
+ options?: never;
737
+ head?: never;
738
+ patch?: never;
739
+ trace?: never;
740
+ };
741
+ "/v1/merkle-roots/nfts": {
742
+ parameters: {
743
+ query?: never;
744
+ header?: never;
745
+ path?: never;
746
+ cookie?: never;
747
+ };
748
+ get?: never;
749
+ put?: never;
750
+ /**
751
+ * Generate NFT Merkle Root
752
+ * @description Generate and store an NFT merkle root via the pipelines service
753
+ */
754
+ post: {
755
+ parameters: {
756
+ query?: never;
757
+ header?: never;
758
+ path?: never;
759
+ cookie?: never;
760
+ };
761
+ requestBody: {
762
+ content: {
763
+ "application/json": components["schemas"]["GenerateNftMerkleRootRequest"];
764
+ };
765
+ };
766
+ responses: {
767
+ /** @description NFT merkle root generated */
768
+ 200: {
769
+ headers: {
770
+ [name: string]: unknown;
771
+ };
772
+ content: {
773
+ "application/json": components["schemas"]["GenerateNftMerkleRootResponse"];
774
+ };
775
+ };
776
+ /** @description Invalid request */
777
+ 400: {
778
+ headers: {
779
+ [name: string]: unknown;
780
+ };
781
+ content: {
782
+ "application/json": {
783
+ error: string;
784
+ };
785
+ };
786
+ };
787
+ /** @description Pipelines request failed */
788
+ 502: {
789
+ headers: {
790
+ [name: string]: unknown;
791
+ };
792
+ content: {
793
+ "application/json": {
794
+ error: string;
795
+ };
796
+ };
797
+ };
798
+ };
799
+ };
800
+ delete?: never;
801
+ options?: never;
802
+ head?: never;
803
+ patch?: never;
804
+ trace?: never;
805
+ };
806
+ "/v1/merkle-roots/addresses": {
807
+ parameters: {
808
+ query?: never;
809
+ header?: never;
810
+ path?: never;
811
+ cookie?: never;
812
+ };
813
+ get?: never;
814
+ put?: never;
815
+ /**
816
+ * Generate Address Merkle Root
817
+ * @description Generate and store an address merkle root via the pipelines service
818
+ */
819
+ post: {
820
+ parameters: {
821
+ query?: never;
822
+ header?: never;
823
+ path?: never;
824
+ cookie?: never;
825
+ };
826
+ requestBody: {
827
+ content: {
828
+ "application/json": components["schemas"]["GenerateAddressMerkleRootJsonRequest"];
829
+ "multipart/form-data": components["schemas"]["GenerateAddressMerkleRootFormRequest"];
830
+ };
831
+ };
832
+ responses: {
833
+ /** @description Address merkle root generated */
834
+ 200: {
835
+ headers: {
836
+ [name: string]: unknown;
837
+ };
838
+ content: {
839
+ "application/json": components["schemas"]["GenerateAddressMerkleRootResponse"];
840
+ };
841
+ };
842
+ /** @description Invalid request */
843
+ 400: {
844
+ headers: {
845
+ [name: string]: unknown;
846
+ };
847
+ content: {
848
+ "application/json": {
849
+ error: string;
850
+ };
851
+ };
852
+ };
853
+ /** @description Pipelines request failed */
854
+ 502: {
855
+ headers: {
856
+ [name: string]: unknown;
857
+ };
858
+ content: {
859
+ "application/json": {
860
+ error: string;
861
+ };
862
+ };
863
+ };
864
+ };
865
+ };
866
+ delete?: never;
867
+ options?: never;
868
+ head?: never;
869
+ patch?: never;
870
+ trace?: never;
871
+ };
872
+ "/v1/merkle-roots/nfts/proof": {
873
+ parameters: {
874
+ query?: never;
875
+ header?: never;
876
+ path?: never;
877
+ cookie?: never;
878
+ };
879
+ get?: never;
880
+ put?: never;
881
+ /**
882
+ * Generate NFT Merkle Proof
883
+ * @description Resolve an NFT Merkle root and generate a token proof from the stored Merkle list
884
+ */
885
+ post: {
886
+ parameters: {
887
+ query?: never;
888
+ header?: never;
889
+ path?: never;
890
+ cookie?: never;
891
+ };
892
+ requestBody: {
893
+ content: {
894
+ "application/json": components["schemas"]["GenerateNftMerkleProofRequest"];
895
+ };
896
+ };
897
+ responses: {
898
+ /** @description NFT Merkle proof generated */
899
+ 200: {
900
+ headers: {
901
+ [name: string]: unknown;
902
+ };
903
+ content: {
904
+ "application/json": components["schemas"]["GenerateNftMerkleProofResponse"];
905
+ };
906
+ };
907
+ /** @description Merkle root or NFT entry not found */
908
+ 404: {
909
+ headers: {
910
+ [name: string]: unknown;
911
+ };
912
+ content: {
913
+ "application/json": {
914
+ error: string;
915
+ };
916
+ };
917
+ };
918
+ /** @description Multiple matching roots were found */
919
+ 409: {
920
+ headers: {
921
+ [name: string]: unknown;
922
+ };
923
+ content: {
924
+ "application/json": {
925
+ error: string;
926
+ };
927
+ };
928
+ };
929
+ };
930
+ };
931
+ delete?: never;
932
+ options?: never;
933
+ head?: never;
934
+ patch?: never;
935
+ trace?: never;
936
+ };
937
+ "/v1/merkle-roots/addresses/proof": {
938
+ parameters: {
939
+ query?: never;
940
+ header?: never;
941
+ path?: never;
942
+ cookie?: never;
943
+ };
944
+ get?: never;
945
+ put?: never;
946
+ /**
947
+ * Generate Address Merkle Proof
948
+ * @description Generate an address proof from a stored Merkle root list
949
+ */
950
+ post: {
951
+ parameters: {
952
+ query?: never;
953
+ header?: never;
954
+ path?: never;
955
+ cookie?: never;
956
+ };
957
+ requestBody: {
958
+ content: {
959
+ "application/json": components["schemas"]["GenerateAddressMerkleProofRequest"];
960
+ };
961
+ };
962
+ responses: {
963
+ /** @description Address Merkle proof generated */
964
+ 200: {
965
+ headers: {
966
+ [name: string]: unknown;
967
+ };
968
+ content: {
969
+ "application/json": components["schemas"]["GenerateAddressMerkleProofResponse"];
970
+ };
971
+ };
972
+ /** @description Merkle root or address entry not found */
973
+ 404: {
974
+ headers: {
975
+ [name: string]: unknown;
976
+ };
977
+ content: {
978
+ "application/json": {
979
+ error: string;
980
+ };
981
+ };
982
+ };
983
+ /** @description Multiple matching roots were found */
984
+ 409: {
985
+ headers: {
986
+ [name: string]: unknown;
987
+ };
988
+ content: {
989
+ "application/json": {
990
+ error: string;
991
+ };
992
+ };
993
+ };
994
+ };
995
+ };
996
+ delete?: never;
997
+ options?: never;
998
+ head?: never;
999
+ patch?: never;
1000
+ trace?: never;
1001
+ };
1002
+ }
1003
+ interface components {
1004
+ schemas: {
1005
+ Nft: {
1006
+ /** @example 1-0xb932a70a57673d89f4acffbe830e8ed7f75fb9e0-12345 */
1007
+ universalTokenId: string;
1008
+ /** @example 0xb932a70a57673d89f4acffbe830e8ed7f75fb9e0 */
1009
+ contractAddress: string;
1010
+ /** @example 1 */
1011
+ chainId: string;
1012
+ /** @example 12345 */
1013
+ tokenId: string;
1014
+ /**
1015
+ * @example ERC721
1016
+ * @enum {string}
1017
+ */
1018
+ type: "ERC721" | "ERC1155";
1019
+ creator: components["schemas"]["User"];
1020
+ owner: components["schemas"]["User"];
1021
+ owners?: {
1022
+ /** @example 0xba5BDe662c17e2aDFF1075610382B9B691296350 */
1023
+ address: string;
1024
+ /** @example 1 */
1025
+ balance: string;
1026
+ }[];
1027
+ metadata: {
1028
+ /** @example Genesis */
1029
+ name: string | null;
1030
+ /** @example A unique digital artwork */
1031
+ description: string | null;
1032
+ /**
1033
+ * @example [
1034
+ * "art",
1035
+ * "digital"
1036
+ * ]
1037
+ */
1038
+ tags: string[];
1039
+ /** @example image/png */
1040
+ mediaType: string | null;
1041
+ /** @example https://example.com/image.png */
1042
+ imageUri: string | null;
1043
+ /** @example null */
1044
+ videoUri: string | null;
1045
+ };
1046
+ market: {
1047
+ listings: components["schemas"]["Listing"][];
1048
+ offers: components["schemas"]["Offer"][];
1049
+ auctions: components["schemas"]["Auction"][];
1050
+ };
1051
+ lastSale: components["schemas"]["LastSale"];
1052
+ attributes: {
1053
+ /** @example Background */
1054
+ property: string;
1055
+ /** @example Blue */
1056
+ value: string;
1057
+ }[];
1058
+ /** @example 1704067200 */
1059
+ createdAt: number;
1060
+ };
1061
+ User: {
1062
+ /** @example 0xba5BDe662c17e2aDFF1075610382B9B691296350 */
1063
+ address: string;
1064
+ /** @example satoshi */
1065
+ username: string | null;
1066
+ /** @example https://example.com/avatar.png */
1067
+ avatar: string | null;
1068
+ /** @example Satoshi Nakamoto */
1069
+ fullName: string | null;
1070
+ };
1071
+ Listing: {
1072
+ /** @example 0x1234567890abcdef1234567890abcdef12345678 */
1073
+ contractAddress: string;
1074
+ /**
1075
+ * @example SALE_PRICE
1076
+ * @enum {string}
1077
+ */
1078
+ type: "SALE_PRICE" | "BATCH_SALE_PRICE";
1079
+ price: components["schemas"]["CryptoValue"];
1080
+ /** @example 0xba5BDe662c17e2aDFF1075610382B9B691296350 */
1081
+ seller: string;
1082
+ /** @example 0xcf6398559ea0e93d7d7233ca93b09912da8ff57b45ebe7a3ede9c74d17a76f13 */
1083
+ merkleRoot?: string;
1084
+ allowlist?: {
1085
+ root: string;
1086
+ } | null;
1087
+ };
1088
+ CryptoValue: {
1089
+ /** @example 1000000000000000000 */
1090
+ cryptoAmount: string;
1091
+ currency: components["schemas"]["Currency"];
1092
+ /** @example 3500 */
1093
+ usdAmount: number | null;
1094
+ };
1095
+ Currency: {
1096
+ /** @example 0x0000000000000000000000000000000000000000 */
1097
+ address: string;
1098
+ /** @example ETH */
1099
+ symbol: string;
1100
+ /** @example 18 */
1101
+ decimals: number;
1102
+ /** @example 1 */
1103
+ chainId: number;
1104
+ };
1105
+ Offer: {
1106
+ /** @example 0x1234567890abcdef1234567890abcdef12345678 */
1107
+ contractAddress: string;
1108
+ /**
1109
+ * @example OFFER
1110
+ * @enum {string}
1111
+ */
1112
+ type: "OFFER" | "BATCH_OFFER";
1113
+ price: components["schemas"]["CryptoValue"];
1114
+ buyer: components["schemas"]["User"] & unknown;
1115
+ /** @example 0xba5BDe662c17e2aDFF1075610382B9B691296350 */
1116
+ buyerAddress: string;
1117
+ };
1118
+ Auction: {
1119
+ /** @example 0x1234567890abcdef1234567890abcdef12345678 */
1120
+ contractAddress: string;
1121
+ /**
1122
+ * @example RESERVE_AUCTION
1123
+ * @enum {string}
1124
+ */
1125
+ type: "RESERVE_AUCTION" | "BATCH_RESERVE_AUCTION" | "SCHEDULED_AUCTION";
1126
+ /**
1127
+ * @example RUNNING
1128
+ * @enum {string}
1129
+ */
1130
+ state: "PENDING" | "RUNNING" | "UNSETTLED";
1131
+ /** @example 2024-01-01T00:00:00.000Z */
1132
+ startTime: string | null;
1133
+ /** @example 2024-01-02T00:00:00.000Z */
1134
+ endTime: string | null;
1135
+ /** @example 0x0000000000000000000000000000000000000000 */
1136
+ currencyAddress: string;
1137
+ /** @example 0xba5BDe662c17e2aDFF1075610382B9B691296350 */
1138
+ sellerAddress: string;
1139
+ currentBid: components["schemas"]["CryptoValue"] & unknown;
1140
+ reservePrice: components["schemas"]["CryptoValue"] & unknown;
1141
+ highestBidder: components["schemas"]["User"] & unknown;
1142
+ /** @example 0xcf6398559ea0e93d7d7233ca93b09912da8ff57b45ebe7a3ede9c74d17a76f13 */
1143
+ merkleRoot?: string;
1144
+ };
1145
+ LastSale: {
1146
+ /** @example evt_123 */
1147
+ eventId: string;
1148
+ price: components["schemas"]["CryptoValue"];
1149
+ } | null;
1150
+ Pagination: {
1151
+ /** @example 1 */
1152
+ page: number;
1153
+ /** @example 20 */
1154
+ perPage: number;
1155
+ /** @example 100 */
1156
+ totalCount: number;
1157
+ /** @example 5 */
1158
+ totalPages: number;
1159
+ };
1160
+ /**
1161
+ * @description Checksummed Ethereum address
1162
+ * @example 0xba5BDe662c17e2aDFF1075610382B9B691296350
1163
+ */
1164
+ EthereumAddress: string;
1165
+ /**
1166
+ * @description Supported blockchain network id
1167
+ * @example 1
1168
+ */
1169
+ ChainId: number;
1170
+ /**
1171
+ * @description Canonical NFT identifier in chainId-contractAddress-tokenId format.
1172
+ * @example 1-0xb932a70a57673d89f4acffbe830e8ed7f75fb9e0-12345
1173
+ */
1174
+ UniversalTokenId: string;
1175
+ NftEvent: components["schemas"]["SaleEvent"] | components["schemas"]["TransferEvent"] | components["schemas"]["CreationEvent"] | components["schemas"]["ListingEvent"] | components["schemas"]["OfferEvent"] | components["schemas"]["AuctionBidEvent"] | components["schemas"]["AuctionLifecycleEvent"];
1176
+ SaleEvent: {
1177
+ /** @example evt_123 */
1178
+ eventId: string;
1179
+ /** @example 2024-01-01T00:00:00.000Z */
1180
+ createdAt: string;
1181
+ /** @example 0xabc123 */
1182
+ transactionHash: string | null;
1183
+ /** @example 12345678 */
1184
+ blockNumber: number | null;
1185
+ /** @enum {string} */
1186
+ eventType: "SETTLE_AUCTION" | "TAKE_LISTING" | "TAKE_OFFER";
1187
+ buyer: components["schemas"]["User"];
1188
+ seller: components["schemas"]["User"];
1189
+ price: components["schemas"]["CryptoValue"];
1190
+ };
1191
+ TransferEvent: {
1192
+ /** @example evt_123 */
1193
+ eventId: string;
1194
+ /** @example 2024-01-01T00:00:00.000Z */
1195
+ createdAt: string;
1196
+ /** @example 0xabc123 */
1197
+ transactionHash: string | null;
1198
+ /** @example 12345678 */
1199
+ blockNumber: number | null;
1200
+ /** @enum {string} */
1201
+ eventType: "TRANSFER_NFT" | "TRANSFER_NFT_SUPPLY";
1202
+ from: components["schemas"]["User"];
1203
+ to: components["schemas"]["User"];
1204
+ /** @example 1 */
1205
+ amount?: string;
1206
+ };
1207
+ CreationEvent: {
1208
+ /** @example evt_123 */
1209
+ eventId: string;
1210
+ /** @example 2024-01-01T00:00:00.000Z */
1211
+ createdAt: string;
1212
+ /** @example 0xabc123 */
1213
+ transactionHash: string | null;
1214
+ /** @example 12345678 */
1215
+ blockNumber: number | null;
1216
+ /** @enum {string} */
1217
+ eventType: "CREATE_NFT" | "CREATE_NFT_SUPPLY";
1218
+ creator: components["schemas"]["User"];
1219
+ /** @example 100 */
1220
+ amount?: string;
1221
+ };
1222
+ ListingEvent: {
1223
+ /** @example evt_123 */
1224
+ eventId: string;
1225
+ /** @example 2024-01-01T00:00:00.000Z */
1226
+ createdAt: string;
1227
+ /** @example 0xabc123 */
1228
+ transactionHash: string | null;
1229
+ /** @example 12345678 */
1230
+ blockNumber: number | null;
1231
+ /** @enum {string} */
1232
+ eventType: "MAKE_LISTING";
1233
+ price: components["schemas"]["CryptoValue"];
1234
+ targetBuyer: components["schemas"]["User"] & unknown;
1235
+ };
1236
+ OfferEvent: {
1237
+ /** @example evt_123 */
1238
+ eventId: string;
1239
+ /** @example 2024-01-01T00:00:00.000Z */
1240
+ createdAt: string;
1241
+ /** @example 0xabc123 */
1242
+ transactionHash: string | null;
1243
+ /** @example 12345678 */
1244
+ blockNumber: number | null;
1245
+ /** @enum {string} */
1246
+ eventType: "MAKE_OFFER" | "CANCEL_OFFER";
1247
+ buyer: components["schemas"]["User"];
1248
+ price: components["schemas"]["CryptoValue"];
1249
+ };
1250
+ AuctionBidEvent: {
1251
+ /** @example evt_123 */
1252
+ eventId: string;
1253
+ /** @example 2024-01-01T00:00:00.000Z */
1254
+ createdAt: string;
1255
+ /** @example 0xabc123 */
1256
+ transactionHash: string | null;
1257
+ /** @example 12345678 */
1258
+ blockNumber: number | null;
1259
+ /** @enum {string} */
1260
+ eventType: "MAKE_AUCTION_BID";
1261
+ bidder: components["schemas"]["User"];
1262
+ price: components["schemas"]["CryptoValue"];
1263
+ previousBidder: components["schemas"]["User"] & unknown;
1264
+ /** @example false */
1265
+ extendsAuction: boolean;
1266
+ };
1267
+ AuctionLifecycleEvent: {
1268
+ /** @example evt_123 */
1269
+ eventId: string;
1270
+ /** @example 2024-01-01T00:00:00.000Z */
1271
+ createdAt: string;
1272
+ /** @example 0xabc123 */
1273
+ transactionHash: string | null;
1274
+ /** @example 12345678 */
1275
+ blockNumber: number | null;
1276
+ /** @enum {string} */
1277
+ eventType: "CREATE_RESERVE_AUCTION" | "CREATE_SCHEDULED_AUCTION" | "START_AUCTION" | "END_AUCTION" | "CANCEL_AUCTION" | "CLOSE_AUCTION";
1278
+ seller: components["schemas"]["User"] & unknown;
1279
+ buyer: components["schemas"]["User"] & unknown;
1280
+ price: components["schemas"]["CryptoValue"] & unknown;
1281
+ minimumBid: components["schemas"]["CryptoValue"] & unknown;
1282
+ /** @example 2024-01-01T00:00:00.000Z */
1283
+ startTime: string | null;
1284
+ };
1285
+ CreateNftMetadataResponse: {
1286
+ cid: string;
1287
+ ipfsUrl: string;
1288
+ gatewayUrl: string;
1289
+ metadata: {
1290
+ name: string;
1291
+ description: string;
1292
+ image: string;
1293
+ media: {
1294
+ uri: string;
1295
+ mimeType: string;
1296
+ size?: number;
1297
+ dimensions?: string;
1298
+ };
1299
+ animation_url?: string;
1300
+ tags: string[];
1301
+ attributes?: {
1302
+ trait_type: string;
1303
+ value: string | number | boolean;
1304
+ display_type?: string;
1305
+ }[];
1306
+ };
1307
+ };
1308
+ CreateNftMetadataRequest: {
1309
+ /** @example My NFT */
1310
+ name: string;
1311
+ /** @example A beautiful artwork */
1312
+ description: string;
1313
+ /**
1314
+ * @example [
1315
+ * "art",
1316
+ * "digital"
1317
+ * ]
1318
+ */
1319
+ tags: string[];
1320
+ attributes?: {
1321
+ trait_type: string;
1322
+ value: string | number | boolean;
1323
+ display_type?: string;
1324
+ }[];
1325
+ nftMedia: components["schemas"]["NftMediaInput"];
1326
+ };
1327
+ NftMediaInput: {
1328
+ image: components["schemas"]["MediaAsset"];
1329
+ video?: components["schemas"]["MediaAsset"];
1330
+ threeD?: components["schemas"]["MediaAsset"];
1331
+ html?: components["schemas"]["MediaAsset"];
1332
+ };
1333
+ MediaAsset: {
1334
+ /**
1335
+ * Format: uri
1336
+ * @example ipfs://QmExample
1337
+ */
1338
+ url: string;
1339
+ /** @example image/png */
1340
+ mimeType: string;
1341
+ /** @example 1024000 */
1342
+ size: number;
1343
+ dimensions?: {
1344
+ width: number;
1345
+ height: number;
1346
+ };
1347
+ };
1348
+ CreateMediaUploadResponse: {
1349
+ /** @example abc123 */
1350
+ uploadId: string;
1351
+ /** @example a1b2c3d4/artwork.png */
1352
+ key: string;
1353
+ /** @example superrare-ipfs */
1354
+ bucket: string;
1355
+ /** @example 10000000 */
1356
+ partSize: number;
1357
+ presignedUrls: string[];
1358
+ /** @example https://superrare.myfilebase.com */
1359
+ gatewayBaseUrl: string;
1360
+ };
1361
+ CreateMediaUploadRequest: {
1362
+ /** @example 5000000 */
1363
+ fileSize: number;
1364
+ /** @example artwork.png */
1365
+ filename?: string;
1366
+ };
1367
+ IpfsUploadResponse: {
1368
+ /** @example QmExampleCid */
1369
+ cid: string;
1370
+ /** @example ipfs://QmExampleCid */
1371
+ ipfsUrl: string;
1372
+ /** @example https://superrare.myfilebase.com/ipfs/QmExampleCid */
1373
+ gatewayUrl: string;
1374
+ };
1375
+ CompleteMediaUploadRequest: {
1376
+ /** @example a1b2c3d4/artwork.png */
1377
+ key: string;
1378
+ /** @example abc123 */
1379
+ uploadId: string;
1380
+ /** @example superrare-ipfs */
1381
+ bucket: string;
1382
+ parts: {
1383
+ ETag: string;
1384
+ PartNumber: number;
1385
+ }[];
1386
+ };
1387
+ GenerateMediaResponse: {
1388
+ media: {
1389
+ uri: string;
1390
+ mimeType: string;
1391
+ size?: number;
1392
+ dimensions?: string;
1393
+ };
1394
+ };
1395
+ GenerateMediaRequest: {
1396
+ /** @example ipfs://QmMediaCid */
1397
+ uri: string;
1398
+ /** @example image/png */
1399
+ mimeType: string;
1400
+ };
1401
+ Collection: {
1402
+ /** @example col_123 */
1403
+ collectionId: string;
1404
+ /** @example SuperRare Genesis */
1405
+ name: string | null;
1406
+ /** @example The original SuperRare collection */
1407
+ description: string | null;
1408
+ /** @example SUPR */
1409
+ symbol: string | null;
1410
+ /** @example https://example.com/banner.png */
1411
+ bannerImage: string | null;
1412
+ /** @example https://example.com/preview.png */
1413
+ previewImage: string | null;
1414
+ owner: components["schemas"]["User"];
1415
+ stats: {
1416
+ /** @example 1000 */
1417
+ tokenCount: number;
1418
+ /** @example 250 */
1419
+ collectorCount: number;
1420
+ /** @example 500 */
1421
+ floorPriceUsd: number | null;
1422
+ /** @example 10000 */
1423
+ topOfferUsd: number | null;
1424
+ /** @example 5000000 */
1425
+ saleVolumeUsd: number | null;
1426
+ };
1427
+ /**
1428
+ * @example [
1429
+ * "Background",
1430
+ * "Eyes",
1431
+ * "Mouth"
1432
+ * ]
1433
+ */
1434
+ attributes: string[];
1435
+ /**
1436
+ * @example [
1437
+ * 1
1438
+ * ]
1439
+ */
1440
+ chainIds: number[];
1441
+ /** @example 1704067200 */
1442
+ createdAt: number;
1443
+ };
1444
+ ImportCollectionResponse: {
1445
+ imported: boolean;
1446
+ collection?: {
1447
+ name: string;
1448
+ symbol: string;
1449
+ };
1450
+ };
1451
+ ImportCollectionRequest: {
1452
+ chainId: components["schemas"]["ChainId"];
1453
+ contractAddress: components["schemas"]["EthereumAddress"];
1454
+ ownerAddress: components["schemas"]["EthereumAddress"];
1455
+ };
1456
+ UserProfile: {
1457
+ /** @example 0xba5BDe662c17e2aDFF1075610382B9B691296350 */
1458
+ address: string;
1459
+ /** @example satoshi */
1460
+ username: string;
1461
+ /** @example Satoshi Nakamoto */
1462
+ fullName: string | null;
1463
+ stats: {
1464
+ /** @example 42 */
1465
+ created: number;
1466
+ /** @example 15 */
1467
+ owned: number;
1468
+ /** @example 1000 */
1469
+ followerCount: number;
1470
+ /** @example true */
1471
+ isCollector: boolean;
1472
+ /** @example true */
1473
+ isCreator: boolean;
1474
+ };
1475
+ };
1476
+ TokenPriceResponse: {
1477
+ data: {
1478
+ symbol: string;
1479
+ priceUsd: number;
1480
+ decimals: number;
1481
+ chainId: number;
1482
+ address: string;
1483
+ };
1484
+ };
1485
+ /**
1486
+ * @description Token symbol (case-insensitive)
1487
+ * @example rare
1488
+ */
1489
+ TokenSymbol: string;
1490
+ GenerateNftMerkleRootResponse: {
1491
+ /** @example 0xcf6398559ea0e93d7d7233ca93b09912da8ff57b45ebe7a3ede9c74d17a76f13 */
1492
+ merkleRoot: string;
1493
+ /** @example 0xcf6398559ea0e93d7d7233ca93b09912da8ff57b45ebe7a3ede9c74d17a76f13.json */
1494
+ key: string;
1495
+ };
1496
+ GenerateNftMerkleRootRequest: {
1497
+ nfts: components["schemas"]["NftMerkleRootEntry"][];
1498
+ };
1499
+ NftMerkleRootEntry: {
1500
+ contractAddress: components["schemas"]["EthereumAddress"];
1501
+ /** @example 12345 */
1502
+ tokenId: string | number;
1503
+ };
1504
+ GenerateAddressMerkleRootResponse: {
1505
+ /** @example 0xcf6398559ea0e93d7d7233ca93b09912da8ff57b45ebe7a3ede9c74d17a76f13 */
1506
+ merkleRoot: string;
1507
+ locations: components["schemas"]["MerkleRootLocation"][];
1508
+ };
1509
+ MerkleRootLocation: {
1510
+ /** @enum {string} */
1511
+ storageTarget: "batch-listing" | "collection-allowlist";
1512
+ bucket: string;
1513
+ key: string;
1514
+ /** Format: uri */
1515
+ publicUrl: string;
1516
+ };
1517
+ GenerateAddressMerkleRootJsonRequest: {
1518
+ addresses: components["schemas"]["EthereumAddress"][];
1519
+ storageTarget?: components["schemas"]["MerkleRootStorageTarget"];
1520
+ };
1521
+ /**
1522
+ * @description Storage destination for address merkle roots
1523
+ * @default both
1524
+ * @example both
1525
+ * @enum {string}
1526
+ */
1527
+ MerkleRootStorageTarget: "batch-listing" | "collection-allowlist" | "both";
1528
+ GenerateAddressMerkleRootFormRequest: {
1529
+ /**
1530
+ * Format: binary
1531
+ * @description CSV file with an address column
1532
+ */
1533
+ file?: string;
1534
+ storageTarget?: components["schemas"]["MerkleRootStorageTarget"];
1535
+ };
1536
+ GenerateNftMerkleProofResponse: {
1537
+ /** @example 0xcf6398559ea0e93d7d7233ca93b09912da8ff57b45ebe7a3ede9c74d17a76f13 */
1538
+ root: string;
1539
+ /** @example 0x8Db4B93Fa258E1c265d46f861ae9EbDE0B938670 */
1540
+ contractAddress: string;
1541
+ /** @example 12345 */
1542
+ tokenId: string;
1543
+ /** @example 0x83a68bd27e04afae4b40e8647019086ae8b4915bb243a4cf186f6271e1e65341 */
1544
+ leaf: string;
1545
+ proof: string[];
1546
+ };
1547
+ GenerateNftMerkleProofRequest: {
1548
+ /** @example 1 */
1549
+ chainId: number;
1550
+ contractAddress: components["schemas"]["EthereumAddress"];
1551
+ /** @example 12345 */
1552
+ tokenId: string | number;
1553
+ /** @example 0xcf6398559ea0e93d7d7233ca93b09912da8ff57b45ebe7a3ede9c74d17a76f13 */
1554
+ root?: string;
1555
+ context?: components["schemas"]["NftMerkleProofContext"];
1556
+ creator?: components["schemas"]["EthereumAddress"];
1557
+ };
1558
+ /**
1559
+ * @description Market state context used when resolving a root from Typesense
1560
+ * @example batch-listing
1561
+ * @enum {string}
1562
+ */
1563
+ NftMerkleProofContext: "batch-listing" | "batch-auction" | "batch-offer";
1564
+ GenerateAddressMerkleProofResponse: {
1565
+ /** @example 0xcf6398559ea0e93d7d7233ca93b09912da8ff57b45ebe7a3ede9c74d17a76f13 */
1566
+ root: string;
1567
+ /** @example 0x8Db4B93Fa258E1c265d46f861ae9EbDE0B938670 */
1568
+ address: string;
1569
+ /** @example 0x83a68bd27e04afae4b40e8647019086ae8b4915bb243a4cf186f6271e1e65341 */
1570
+ leaf: string;
1571
+ proof: string[];
1572
+ };
1573
+ GenerateAddressMerkleProofRequest: {
1574
+ /** @example 0xcf6398559ea0e93d7d7233ca93b09912da8ff57b45ebe7a3ede9c74d17a76f13 */
1575
+ root: string;
1576
+ address: components["schemas"]["EthereumAddress"];
1577
+ storageTarget?: components["schemas"]["MerkleRootProofStorageTarget"];
1578
+ };
1579
+ /**
1580
+ * @description Storage source for address merkle proof generation
1581
+ * @default collection-allowlist
1582
+ * @example collection-allowlist
1583
+ * @enum {string}
1584
+ */
1585
+ MerkleRootProofStorageTarget: "batch-listing" | "collection-allowlist";
1586
+ };
1587
+ responses: never;
1588
+ parameters: never;
1589
+ requestBodies: never;
1590
+ headers: never;
1591
+ pathItems: never;
1592
+ }
1593
+
1594
+ type EventSearchTargetParams = {
1595
+ chain?: SupportedChain;
1596
+ chainId?: IntegerInput;
1597
+ contract?: Address;
1598
+ tokenId?: IntegerInput;
1599
+ collectionId?: string;
39
1600
  };
40
1601
 
1602
+ type NftListQuery = NonNullable<paths['/v1/nfts']['get']['parameters']['query']>;
1603
+ type CollectionListQuery = NonNullable<paths['/v1/collections']['get']['parameters']['query']>;
41
1604
  type NftMediaEntry = {
42
1605
  url: string;
43
1606
  mimeType: string;
@@ -48,7 +1611,7 @@ type NftMediaEntry = {
48
1611
  };
49
1612
  };
50
1613
  type NftAttribute = {
51
- trait_type?: string;
1614
+ trait_type: string;
52
1615
  value: string | number;
53
1616
  display_type?: 'number' | 'boost_number' | 'boost_percentage' | 'date';
54
1617
  max_value?: number;
@@ -65,64 +1628,223 @@ type ImportErc721Params = {
65
1628
  contract: Address;
66
1629
  owner?: Address;
67
1630
  };
1631
+ type NftSearchParams = {
1632
+ query?: string;
1633
+ page?: number;
1634
+ perPage?: number;
1635
+ sortBy?: NftListQuery['sortBy'];
1636
+ ownerAddress?: string;
1637
+ creatorAddress?: string;
1638
+ contractAddress?: string;
1639
+ collectionId?: string;
1640
+ chainId?: number;
1641
+ listingType?: NftListQuery['listingType'];
1642
+ hasAuction?: boolean;
1643
+ auctionState?: NftListQuery['auctionState'];
1644
+ auctionCreatorAddress?: string;
1645
+ auctionBidderAddress?: string;
1646
+ hasListing?: boolean;
1647
+ hasOffer?: boolean;
1648
+ offerBuyerAddress?: string;
1649
+ tags?: string[];
1650
+ mediaType?: NftListQuery['mediaType'];
1651
+ };
1652
+ type CollectionSearchParams = {
1653
+ query?: string;
1654
+ page?: number;
1655
+ perPage?: number;
1656
+ sortBy?: CollectionListQuery['sortBy'];
1657
+ ownerAddress?: string;
1658
+ chainId?: number;
1659
+ };
68
1660
 
69
- type IntegerInput = bigint | number | string;
70
- type AmountInput = bigint | number | string;
71
- interface RareClientConfig {
72
- publicClient: PublicClient;
73
- walletClient?: WalletClient;
74
- account?: Address;
75
- }
76
- interface TransactionResult {
77
- txHash: Hash;
78
- receipt: TransactionReceipt;
79
- }
80
- interface DeployErc721Params {
81
- name: string;
82
- symbol: string;
83
- maxTokens?: IntegerInput;
84
- }
85
- interface DeployErc721Result extends TransactionResult {
86
- contract: Address | undefined;
87
- }
88
- interface MintToParams {
1661
+ type Nft = components['schemas']['Nft'];
1662
+ type Collection = components['schemas']['Collection'];
1663
+ type NftEvent = components['schemas']['NftEvent'];
1664
+ type UserProfile = components['schemas']['UserProfile'];
1665
+ type Pagination = components['schemas']['Pagination'];
1666
+
1667
+ type SearchPageResponse<T> = {
1668
+ data: T[];
1669
+ pagination: Pagination;
1670
+ };
1671
+ type NftEventQuery = NonNullable<paths['/v1/nfts/{universalTokenId}/events']['get']['parameters']['query']>;
1672
+ type NftEventType = NonNullable<NftEventQuery['eventType']>[number];
1673
+ type NftEventOptions = {
1674
+ page?: number;
1675
+ perPage?: number;
1676
+ eventType?: NftEventType | NftEventType[];
1677
+ sortBy?: NftEventQuery['sortBy'];
1678
+ };
1679
+ type EventSearchParams = EventSearchTargetParams & NftEventOptions;
1680
+
1681
+ type NftIdentityParams = {
1682
+ chain?: SupportedChain;
1683
+ chainId?: IntegerInput;
89
1684
  contract: Address;
90
- tokenUri: string;
91
- to?: Address;
92
- royaltyReceiver?: Address;
93
- }
94
- interface MintToResult extends TransactionResult {
95
- tokenId: bigint | undefined;
96
- }
97
- interface AuctionCreateParams {
1685
+ tokenId: IntegerInput;
1686
+ };
1687
+
1688
+ type BatchAuctionRootSource = {
1689
+ root: Hex$1;
1690
+ artifact?: BatchTokenListArtifact;
1691
+ } | {
1692
+ artifact: BatchTokenListArtifact;
1693
+ root?: Hex$1;
1694
+ };
1695
+ type BatchAuctionCreateParams = BatchAuctionRootSource & {
1696
+ price: AmountInput;
1697
+ currency?: CurrencyInput;
1698
+ endTime: TimestampInput;
1699
+ splitAddresses?: Address[];
1700
+ splitRatios?: number[];
1701
+ autoApprove?: boolean;
1702
+ };
1703
+ type BatchAuctionCreateResult = {
1704
+ batchAuctionHouse: Address;
1705
+ creator: Address;
1706
+ root: Hex$1;
1707
+ currency: Address;
1708
+ reserveAmount: bigint;
1709
+ duration: bigint;
1710
+ nonce: number;
1711
+ approvalTxHashes: Hash[];
1712
+ } & TransactionResult;
1713
+ type BatchAuctionCancelParams = {
1714
+ root?: Hex$1;
1715
+ artifact?: BatchTokenListArtifact;
1716
+ };
1717
+ type BatchAuctionRootsParams = {
1718
+ creator?: Address;
1719
+ };
1720
+ type BatchAuctionCancelResult = {
1721
+ batchAuctionHouse: Address;
1722
+ creator: Address;
1723
+ root: Hex$1;
1724
+ } & TransactionResult;
1725
+ type BatchAuctionBidParams = {
1726
+ creator: Address;
1727
+ root?: Hex$1;
1728
+ proof?: readonly Hex$1[];
1729
+ proofArtifact?: BatchTokenProofArtifact;
1730
+ contract: Address;
1731
+ tokenId: IntegerInput;
1732
+ currency?: CurrencyInput;
1733
+ price: AmountInput;
1734
+ autoApprove?: boolean;
1735
+ };
1736
+ type BatchAuctionBidResult = {
1737
+ batchAuctionHouse: Address;
1738
+ bidder: Address;
1739
+ creator: Address;
1740
+ contract: Address;
1741
+ tokenId: bigint;
1742
+ root: Hex$1;
1743
+ currency: Address;
1744
+ amount: bigint;
1745
+ nonce: number;
1746
+ requiredPayment: bigint;
1747
+ approvalTxHash?: Hash;
1748
+ } & TransactionResult;
1749
+ type BatchAuctionSettleParams = {
98
1750
  contract: Address;
99
1751
  tokenId: IntegerInput;
100
- startingPrice: AmountInput;
101
- duration: IntegerInput;
102
- currency?: Address;
1752
+ };
1753
+ type BatchAuctionSettleResult = {
1754
+ batchAuctionHouse: Address;
1755
+ seller: Address;
1756
+ bidder: Address;
1757
+ contract: Address;
1758
+ tokenId: bigint;
1759
+ currency: Address;
1760
+ amount: bigint;
1761
+ marketplaceFee: number;
1762
+ } & TransactionResult;
1763
+ type BatchAuctionStatusParams = {
1764
+ contract: Address;
1765
+ tokenId: IntegerInput;
1766
+ creator?: Address;
1767
+ root?: Hex$1;
1768
+ artifact?: BatchTokenListArtifact;
1769
+ proof?: readonly Hex$1[];
1770
+ proofArtifact?: BatchTokenProofArtifact;
1771
+ };
1772
+ type BatchAuctionStatus = {
1773
+ seller: Address;
1774
+ root: Hex$1 | null;
1775
+ currency: Address;
1776
+ reserveAmount: bigint;
1777
+ duration: bigint;
1778
+ creationBlock: bigint;
1779
+ startingTime: bigint;
1780
+ endTime: bigint | null;
1781
+ splitAddresses: Address[];
1782
+ splitRatios: number[];
1783
+ hasRootConfig: boolean;
1784
+ rootNonce: number | null;
1785
+ tokenNonce: number | null;
1786
+ tokenNonceConsumed: boolean | null;
1787
+ hasAuction: boolean;
1788
+ started: boolean;
1789
+ ended: boolean;
1790
+ settlementEligible: boolean;
1791
+ currentBidder: Address | null;
1792
+ currentBid: bigint;
1793
+ currentBidCurrency: Address;
1794
+ currentBidMarketplaceFee: number;
1795
+ minimumNextBid: bigint;
1796
+ state: 'NONE' | 'CONFIGURED' | 'RESERVE_NOT_MET' | 'ACTIVE' | 'ENDED' | 'USED';
1797
+ isEth: boolean;
1798
+ };
1799
+ type BatchAuctionNamespace = {
1800
+ create: (params: BatchAuctionCreateParams) => Promise<BatchAuctionCreateResult>;
1801
+ cancel: (params: BatchAuctionCancelParams) => Promise<BatchAuctionCancelResult>;
1802
+ roots: (params?: BatchAuctionRootsParams) => Promise<Hex$1[]>;
1803
+ bid: (params: BatchAuctionBidParams) => Promise<BatchAuctionBidResult>;
1804
+ settle: (params: BatchAuctionSettleParams) => Promise<BatchAuctionSettleResult>;
1805
+ status: (params: BatchAuctionStatusParams) => Promise<BatchAuctionStatus>;
1806
+ };
1807
+
1808
+ type AuctionCreateParams = {
1809
+ contract: Address;
1810
+ tokenId: IntegerInput;
1811
+ price: AmountInput;
1812
+ endTime: TimestampInput;
1813
+ currency?: CurrencyInput;
1814
+ auctionType?: 'reserve' | 'scheduled';
1815
+ startTime?: TimestampInput;
103
1816
  splitAddresses?: Address[];
104
1817
  splitRatios?: number[];
105
1818
  autoApprove?: boolean;
106
- }
107
- interface AuctionBidParams {
1819
+ };
1820
+ type AuctionCreateResult = TransactionResult & {
1821
+ approvalTxHash?: Hash;
1822
+ auctionType: 'reserve' | 'scheduled';
1823
+ startTime: bigint;
1824
+ };
1825
+ type AuctionBidParams = {
108
1826
  contract: Address;
109
1827
  tokenId: IntegerInput;
110
- amount: AmountInput;
111
- currency?: Address;
112
- }
113
- interface AuctionSettleParams {
1828
+ price: AmountInput;
1829
+ currency?: CurrencyInput;
1830
+ autoApprove?: boolean;
1831
+ };
1832
+ type AuctionBidResult = TransactionResult & {
1833
+ approvalTxHash?: Hash;
1834
+ };
1835
+ type AuctionSettleParams = {
114
1836
  contract: Address;
115
1837
  tokenId: IntegerInput;
116
- }
117
- interface AuctionCancelParams {
1838
+ };
1839
+ type AuctionCancelParams = {
118
1840
  contract: Address;
119
1841
  tokenId: IntegerInput;
120
- }
121
- interface AuctionStatusParams {
1842
+ };
1843
+ type AuctionStatusParams = {
122
1844
  contract: Address;
123
1845
  tokenId: IntegerInput;
124
- }
125
- interface AuctionStatus {
1846
+ };
1847
+ type AuctionStatus = {
126
1848
  seller: Address;
127
1849
  creationBlock: bigint;
128
1850
  startingTime: bigint;
@@ -130,2095 +1852,1040 @@ interface AuctionStatus {
130
1852
  currency: Address;
131
1853
  minimumBid: bigint;
132
1854
  auctionType: `0x${string}`;
1855
+ auctionTypeName: 'reserve' | 'scheduled' | 'none' | 'unknown';
133
1856
  splitAddresses: Address[];
134
1857
  splitRatios: number[];
135
1858
  isEth: boolean;
1859
+ hasAuction: boolean;
136
1860
  started: boolean;
137
1861
  endTime: bigint | null;
138
1862
  status: 'PENDING' | 'RUNNING' | 'ENDED';
139
- }
140
- interface OfferCreateParams {
1863
+ state: 'NONE' | 'RESERVE_NOT_MET' | 'SCHEDULED' | 'ACTIVE' | 'ENDED';
1864
+ currentBidder: Address | null;
1865
+ currentBid: bigint;
1866
+ currentBidCurrency: Address;
1867
+ currentBidMarketplaceFee: number;
1868
+ minimumNextBid: bigint;
1869
+ settlementEligible: boolean;
1870
+ };
1871
+ type AuctionMarketplaceNamespace = {
1872
+ create: (params: AuctionCreateParams) => Promise<AuctionCreateResult>;
1873
+ bid: (params: AuctionBidParams) => Promise<AuctionBidResult>;
1874
+ settle: (params: AuctionSettleParams) => Promise<TransactionResult>;
1875
+ cancel: (params: AuctionCancelParams) => Promise<TransactionResult>;
1876
+ status: (params: AuctionStatusParams) => Promise<AuctionStatus>;
1877
+ };
1878
+ type AuctionNamespace = AuctionMarketplaceNamespace & {
1879
+ batch: BatchAuctionNamespace;
1880
+ };
1881
+
1882
+ declare const lazySovereignCollectionContractTypes: readonly ["lazy", "lazy-royalty-guard", "lazy-deadman-royalty-guard"];
1883
+ type LazySovereignCollectionContractType = (typeof lazySovereignCollectionContractTypes)[number];
1884
+
1885
+ type DeployErc721Params = {
1886
+ name: string;
1887
+ symbol: string;
1888
+ maxTokens?: IntegerInput;
1889
+ };
1890
+ type DeployErc721Result = {
1891
+ contract: Address;
1892
+ } & TransactionResult;
1893
+ type DeployLazyBatchMintParams = {
1894
+ name: string;
1895
+ symbol: string;
1896
+ maxTokens?: IntegerInput;
1897
+ };
1898
+ type DeployLazyBatchMintResult = {
1899
+ contract: Address;
1900
+ } & TransactionResult;
1901
+ type DeployLazyErc721Params = {
1902
+ name: string;
1903
+ symbol: string;
1904
+ maxTokens: IntegerInput;
1905
+ contractType?: LazySovereignCollectionContractType;
1906
+ };
1907
+ type DeployLazyErc721Result = {
1908
+ contract: Address;
1909
+ factory: Address;
1910
+ contractType: LazySovereignCollectionContractType;
1911
+ nextStep: string;
1912
+ } & TransactionResult;
1913
+ type CollectionMintBatchParams = {
1914
+ contract: Address;
1915
+ baseUri: string;
1916
+ amount: IntegerInput;
1917
+ };
1918
+ type CollectionMintBatchResult = {
1919
+ contract: Address;
1920
+ baseUri: string;
1921
+ tokenCount: bigint;
1922
+ fromTokenId: bigint;
1923
+ toTokenId: bigint;
1924
+ owner: Address;
1925
+ } & TransactionResult;
1926
+ type CollectionPrepareLazyMintParams = {
1927
+ contract: Address;
1928
+ baseUri: string;
1929
+ amount: IntegerInput;
1930
+ minter?: Address;
1931
+ };
1932
+ type CollectionPrepareLazyMintResult = {
1933
+ contract: Address;
1934
+ baseUri: string;
1935
+ tokenCount: bigint;
1936
+ fromTokenId?: bigint;
1937
+ toTokenId?: bigint;
1938
+ minter?: Address;
1939
+ } & TransactionResult;
1940
+ type CollectionTokenCreatorParams = {
141
1941
  contract: Address;
142
1942
  tokenId: IntegerInput;
143
- currency?: Address;
144
- amount: AmountInput;
145
- convertible?: boolean;
146
- }
147
- interface OfferCancelParams {
1943
+ };
1944
+ type CollectionTokenCreatorResult = {
1945
+ contract: Address;
1946
+ tokenId: bigint;
1947
+ creator: Address;
1948
+ };
1949
+ type CollectionRoyaltyInfoParams = {
148
1950
  contract: Address;
149
1951
  tokenId: IntegerInput;
150
- currency?: Address;
151
- }
152
- interface OfferAcceptParams {
1952
+ price?: IntegerInput;
1953
+ };
1954
+ type CollectionRoyaltyInfoResult = {
1955
+ contract: Address;
1956
+ tokenId: bigint;
1957
+ salePrice: bigint;
1958
+ receiver: Address;
1959
+ royaltyAmount: bigint;
1960
+ defaultReceiver?: Address;
1961
+ defaultPercentage?: bigint;
1962
+ };
1963
+ type CollectionSetDefaultRoyaltyReceiverParams = {
1964
+ contract: Address;
1965
+ receiver: Address;
1966
+ };
1967
+ type CollectionSetDefaultRoyaltyReceiverResult = {
1968
+ contract: Address;
1969
+ receiver: Address;
1970
+ } & TransactionResult;
1971
+ type CollectionSetDefaultRoyaltyPercentageParams = {
1972
+ contract: Address;
1973
+ percentage: IntegerInput;
1974
+ };
1975
+ type CollectionSetDefaultRoyaltyPercentageResult = {
1976
+ contract: Address;
1977
+ percentage: number;
1978
+ } & TransactionResult;
1979
+ type CollectionSetTokenRoyaltyReceiverParams = {
153
1980
  contract: Address;
154
1981
  tokenId: IntegerInput;
155
- currency?: Address;
156
- amount: AmountInput;
1982
+ receiver: Address;
1983
+ };
1984
+ type CollectionSetTokenRoyaltyReceiverResult = {
1985
+ contract: Address;
1986
+ tokenId: bigint;
1987
+ receiver: Address;
1988
+ } & TransactionResult;
1989
+ type CollectionMintConfigParams = {
1990
+ contract: Address;
1991
+ };
1992
+ type CollectionMintConfigResult = {
1993
+ contract: Address;
1994
+ tokenCount: bigint;
1995
+ baseUri: string;
1996
+ lockedMetadata: boolean;
1997
+ };
1998
+ type CollectionUpdateBaseUriParams = {
1999
+ contract: Address;
2000
+ baseUri: string;
2001
+ };
2002
+ type CollectionUpdateBaseUriResult = {
2003
+ contract: Address;
2004
+ baseUri: string;
2005
+ } & TransactionResult;
2006
+ type CollectionUpdateTokenUriParams = {
2007
+ contract: Address;
2008
+ tokenId: IntegerInput;
2009
+ tokenUri: string;
2010
+ };
2011
+ type CollectionUpdateTokenUriResult = {
2012
+ contract: Address;
2013
+ tokenId: bigint;
2014
+ tokenUri: string;
2015
+ } & TransactionResult;
2016
+ type CollectionLockBaseUriParams = {
2017
+ contract: Address;
2018
+ };
2019
+ type CollectionLockBaseUriResult = {
2020
+ contract: Address;
2021
+ baseUri: string;
2022
+ } & TransactionResult;
2023
+ type CollectionMintParams = {
2024
+ contract: Address;
2025
+ tokenUri: string;
2026
+ to?: Address;
2027
+ royaltyReceiver?: Address;
2028
+ };
2029
+ type CollectionMintResult = {
2030
+ tokenId: bigint;
2031
+ } & TransactionResult;
2032
+ type CollectionDeployNamespace = {
2033
+ erc721: (params: DeployErc721Params) => Promise<DeployErc721Result>;
2034
+ lazyErc721: (params: DeployLazyErc721Params) => Promise<DeployLazyErc721Result>;
2035
+ lazyBatchMint: (params: DeployLazyBatchMintParams) => Promise<DeployLazyBatchMintResult>;
2036
+ };
2037
+ type CollectionNamespace = {
2038
+ get: (id: string) => Promise<Collection>;
2039
+ deploy: CollectionDeployNamespace;
2040
+ mint: (params: CollectionMintParams) => Promise<CollectionMintResult>;
2041
+ mintBatch: (params: CollectionMintBatchParams) => Promise<CollectionMintBatchResult>;
2042
+ prepareLazyMint: (params: CollectionPrepareLazyMintParams) => Promise<CollectionPrepareLazyMintResult>;
2043
+ getTokenCreator: (params: CollectionTokenCreatorParams) => Promise<CollectionTokenCreatorResult>;
2044
+ royalty: {
2045
+ status: (params: CollectionRoyaltyInfoParams) => Promise<CollectionRoyaltyInfoResult>;
2046
+ };
2047
+ metadata: {
2048
+ status: (params: CollectionMintConfigParams) => Promise<CollectionMintConfigResult>;
2049
+ };
2050
+ setDefaultRoyaltyReceiver: (params: CollectionSetDefaultRoyaltyReceiverParams) => Promise<CollectionSetDefaultRoyaltyReceiverResult>;
2051
+ setDefaultRoyaltyPercentage: (params: CollectionSetDefaultRoyaltyPercentageParams) => Promise<CollectionSetDefaultRoyaltyPercentageResult>;
2052
+ setTokenRoyaltyReceiver: (params: CollectionSetTokenRoyaltyReceiverParams) => Promise<CollectionSetTokenRoyaltyReceiverResult>;
2053
+ updateBaseUri: (params: CollectionUpdateBaseUriParams) => Promise<CollectionUpdateBaseUriResult>;
2054
+ updateTokenUri: (params: CollectionUpdateTokenUriParams) => Promise<CollectionUpdateTokenUriResult>;
2055
+ lockBaseUri: (params: CollectionLockBaseUriParams) => Promise<CollectionLockBaseUriResult>;
2056
+ };
2057
+
2058
+ type LiquidFactoryConfig = {
2059
+ baseToken: Address;
2060
+ maxTotalSupplyWei: bigint;
2061
+ creatorLaunchRewardWei: bigint;
2062
+ curvePoolSupplyWei: bigint;
2063
+ minRareLiquidityWei: bigint;
2064
+ maxTotalSupplyTokens: string;
2065
+ creatorLaunchRewardTokens: string;
2066
+ curvePoolSupplyTokens: string;
2067
+ minRareLiquidityTokens: string;
2068
+ lpTickLower: number;
2069
+ lpTickUpper: number;
2070
+ poolTickSpacing: number;
2071
+ };
2072
+
2073
+ type CurvePresetKey = 'low-demand' | 'medium-demand' | 'high-demand';
2074
+ type LiquidCurveSegment = {
2075
+ tickLower: number;
2076
+ tickUpper: number;
2077
+ numPositions: number;
2078
+ shares: string;
2079
+ };
2080
+ type LiquidCurveSegmentSummary = {
2081
+ tickLower: number;
2082
+ tickUpper: number;
2083
+ numPositions: number;
2084
+ shares: string;
2085
+ startTokenPriceUsd?: number;
2086
+ endTokenPriceUsd?: number;
2087
+ };
2088
+ type LiquidCurvePreview = {
2089
+ totalPositions: number;
2090
+ totalShare: number;
2091
+ curvePoolSupplyTokens: string;
2092
+ maxTotalSupplyTokens: string;
2093
+ creatorLaunchRewardTokens: string;
2094
+ baseToken: Address;
2095
+ rarePriceUsd?: number;
2096
+ segments: LiquidCurveSegmentSummary[];
2097
+ };
2098
+
2099
+ type GeneratePresetCurvesParams = {
2100
+ preset: CurvePresetKey;
2101
+ totalSupply?: AmountInput;
2102
+ };
2103
+ type GeneratePresetCurvesResult = {
2104
+ preset: CurvePresetKey;
2105
+ rarePriceUsd: number;
2106
+ curves: LiquidCurveSegment[];
2107
+ preview: LiquidCurvePreview;
2108
+ };
2109
+ type ValidateLiquidCurvesParams = {
2110
+ curves: LiquidCurveSegment[];
2111
+ totalSupply?: AmountInput;
2112
+ };
2113
+ type DeployLiquidEditionParams = {
2114
+ name: string;
2115
+ symbol: string;
2116
+ tokenUri: string;
2117
+ initialRareLiquidity?: AmountInput;
2118
+ totalSupply?: AmountInput;
2119
+ curves: LiquidCurveSegment[];
2120
+ };
2121
+ type DeployLiquidEditionResult = {
2122
+ contract: Address;
2123
+ tokenUri: string;
2124
+ curves: LiquidCurveSegment[];
2125
+ } & TransactionResult;
2126
+ type LiquidEditionPoolKey = {
2127
+ currency0: Address;
2128
+ currency1: Address;
2129
+ fee: number;
2130
+ tickSpacing: number;
2131
+ hooks: Address;
2132
+ };
2133
+ type LiquidEditionPoolInfo = {
2134
+ contract: Address;
2135
+ poolId: Hex$1;
2136
+ poolKey: LiquidEditionPoolKey;
2137
+ };
2138
+ type LiquidEditionMarketState = {
2139
+ rarePerToken: bigint;
2140
+ tokenPerRare: bigint;
2141
+ sqrtPriceX96: bigint;
2142
+ currentTick: number;
2143
+ liquidity: bigint;
2144
+ currentSupply: bigint;
2145
+ };
2146
+ type LiquidEditionCurrentPrice = {
2147
+ contract: Address;
2148
+ rarePerToken: bigint;
2149
+ tokenPerRare: bigint;
2150
+ };
2151
+ type LiquidEditionTelemetry = {
2152
+ contract: Address;
2153
+ name: string;
2154
+ symbol: string;
2155
+ decimals: number;
2156
+ totalSupply: bigint;
2157
+ maxTotalSupply: bigint;
2158
+ poolLaunchSupply: bigint;
2159
+ creatorLaunchReward: bigint;
2160
+ baseToken: Address;
2161
+ tokenCreator: Address;
2162
+ initialTokenUri: string;
2163
+ tokenUri: string;
2164
+ renderContract: Address;
2165
+ poolManager: Address;
2166
+ pool: LiquidEditionPoolInfo;
2167
+ lpTickLower: number;
2168
+ lpTickUpper: number;
2169
+ lpLiquidity: bigint;
2170
+ totalLiquidity: bigint;
2171
+ marketState: LiquidEditionMarketState;
2172
+ currentPrice: LiquidEditionCurrentPrice;
2173
+ };
2174
+ type SetLiquidEditionRenderContractParams = {
2175
+ contract: Address;
2176
+ renderContract: Address;
2177
+ };
2178
+ type SetLiquidEditionRenderContractResult = {
2179
+ contract: Address;
2180
+ renderContract: Address;
2181
+ } & TransactionResult;
2182
+ type LiquidEditionNamespace = {
2183
+ getFactoryConfig: () => Promise<LiquidFactoryConfig>;
2184
+ generatePresetCurves: (params: GeneratePresetCurvesParams) => Promise<GeneratePresetCurvesResult>;
2185
+ validateCurves: (params: ValidateLiquidCurvesParams) => Promise<LiquidCurvePreview>;
2186
+ deploy: {
2187
+ multiCurve: (params: DeployLiquidEditionParams) => Promise<DeployLiquidEditionResult>;
2188
+ };
2189
+ getTokenUri: (params: {
2190
+ contract: Address;
2191
+ }) => Promise<string>;
2192
+ getRenderContract: (params: {
2193
+ contract: Address;
2194
+ }) => Promise<Address>;
2195
+ setRenderContract: (params: SetLiquidEditionRenderContractParams) => Promise<SetLiquidEditionRenderContractResult>;
2196
+ getPoolInfo: (params: {
2197
+ contract: Address;
2198
+ }) => Promise<LiquidEditionPoolInfo>;
2199
+ getMarketState: (params: {
2200
+ contract: Address;
2201
+ }) => Promise<LiquidEditionMarketState>;
2202
+ getCurrentPrice: (params: {
2203
+ contract: Address;
2204
+ }) => Promise<LiquidEditionCurrentPrice>;
2205
+ status: (params: {
2206
+ contract: Address;
2207
+ }) => Promise<LiquidEditionTelemetry>;
2208
+ };
2209
+
2210
+ type ReleaseConfigureParams = {
2211
+ contract: Address;
2212
+ currency?: CurrencyInput;
2213
+ price: AmountInput;
2214
+ startTime?: TimestampInput;
2215
+ maxMints: IntegerInput;
157
2216
  splitAddresses?: Address[];
158
2217
  splitRatios?: number[];
159
- }
160
- interface OfferStatusParams {
2218
+ };
2219
+ type ReleaseConfigureResult = {
2220
+ rareMinter: Address;
2221
+ contract: Address;
2222
+ currencyAddress: Address;
2223
+ price: bigint;
2224
+ startTime: bigint;
2225
+ maxMints: bigint;
2226
+ splitRecipients: Address[];
2227
+ splitRatios: number[];
2228
+ } & TransactionResult;
2229
+ type ReleaseMintDirectSaleParams = {
2230
+ contract: Address;
2231
+ quantity?: IntegerInput;
2232
+ currency?: CurrencyInput;
2233
+ price?: AmountInput;
2234
+ proof?: readonly Hash[];
2235
+ recipient?: Address;
2236
+ autoApprove?: boolean;
2237
+ };
2238
+ type ReleaseMintDirectSaleResult = {
2239
+ rareMinter: Address;
161
2240
  contract: Address;
162
- tokenId: IntegerInput;
163
- currency?: Address;
164
- }
165
- interface OfferStatus {
166
2241
  buyer: Address;
167
- amount: bigint;
168
- timestamp: bigint;
169
- marketplaceFee: number;
170
- convertible: boolean;
171
- hasOffer: boolean;
172
- }
173
- interface ListingCreateParams {
2242
+ recipient: Address;
2243
+ quantity: number;
2244
+ currencyAddress: Address;
2245
+ price: bigint;
2246
+ totalPrice: bigint;
2247
+ requiredPayment: bigint;
2248
+ approvalTxHash?: Hash;
2249
+ allowlistRequired: boolean;
2250
+ tokenIdStart: bigint;
2251
+ tokenIdEnd: bigint;
2252
+ tokenIds: bigint[];
2253
+ } & TransactionResult;
2254
+ type ReleaseAllowlistInputFormat = 'csv' | 'json';
2255
+ type ReleaseAllowlistWalletProof = {
2256
+ address: Address;
2257
+ leaf: Hex$1;
2258
+ proof: Hex$1[];
2259
+ };
2260
+ type ReleaseAllowlistArtifact = {
2261
+ kind: 'rare-release-allowlist-v1';
2262
+ version: 1;
2263
+ leafEncoding: 'keccak256(address)';
2264
+ tree: 'sorted-addresses-sort-pairs';
2265
+ root: Hex$1;
2266
+ wallets: ReleaseAllowlistWalletProof[];
2267
+ };
2268
+ type ReleaseAllowlistConfig = {
2269
+ rareMinter: Address;
2270
+ contract: Address;
2271
+ root: Hash;
2272
+ endTimestamp: bigint;
2273
+ active: boolean;
2274
+ now: bigint;
2275
+ };
2276
+ type ReleaseLimitConfig = {
2277
+ rareMinter: Address;
2278
+ contract: Address;
2279
+ limit: bigint;
2280
+ enabled: boolean;
2281
+ };
2282
+ type ReleaseSetAllowlistConfigParams = {
2283
+ contract: Address;
2284
+ root?: Hash;
2285
+ artifact?: ReleaseAllowlistArtifact;
2286
+ endTime: TimestampInput;
2287
+ };
2288
+ type ReleaseSetAllowlistConfigResult = {
2289
+ config: ReleaseAllowlistConfig;
2290
+ } & TransactionResult;
2291
+ type ReleaseSetLimitParams = {
2292
+ contract: Address;
2293
+ limit: IntegerInput;
2294
+ };
2295
+ type ReleaseSetLimitResult = {
2296
+ config: ReleaseLimitConfig;
2297
+ } & TransactionResult;
2298
+ type ReleaseStatusParams = {
2299
+ contract: Address;
2300
+ account?: Address;
2301
+ };
2302
+ type ReleaseStatus = {
2303
+ rareMinter: Address;
2304
+ contract: Address;
2305
+ configured: boolean;
2306
+ seller: Address;
2307
+ currencyAddress: Address;
2308
+ currencyDecimals: number | null;
2309
+ price: bigint;
2310
+ startTime: bigint;
2311
+ maxMints: bigint;
2312
+ splitRecipients: Address[];
2313
+ splitRatios: number[];
2314
+ allowlistRoot: `0x${string}`;
2315
+ allowlistEndTimestamp: bigint;
2316
+ allowlistActive: boolean;
2317
+ requiresAllowlist: boolean;
2318
+ mintLimit: bigint;
2319
+ txLimit: bigint;
2320
+ account: Address | null;
2321
+ accountMints: bigint | null;
2322
+ accountTxs: bigint | null;
2323
+ totalSupply: bigint | null;
2324
+ maxSupply: bigint | null;
2325
+ remainingSupply: bigint | null;
2326
+ soldOut: boolean | null;
2327
+ started: boolean;
2328
+ currentlyMintable: boolean;
2329
+ isEth: boolean;
2330
+ now: bigint;
2331
+ };
2332
+ type ReleaseAllowlistNamespace = {
2333
+ build: (params: {
2334
+ input: string;
2335
+ format: ReleaseAllowlistInputFormat;
2336
+ }) => ReleaseAllowlistArtifact;
2337
+ parse: (params: {
2338
+ input: string;
2339
+ }) => ReleaseAllowlistArtifact;
2340
+ proof: (params: {
2341
+ artifact: ReleaseAllowlistArtifact;
2342
+ address: Address;
2343
+ }) => ReleaseAllowlistWalletProof | null;
2344
+ getConfig: (params: {
2345
+ contract: Address;
2346
+ }) => Promise<ReleaseAllowlistConfig>;
2347
+ setConfig: (params: ReleaseSetAllowlistConfigParams) => Promise<ReleaseSetAllowlistConfigResult>;
2348
+ clear: (params: {
2349
+ contract: Address;
2350
+ }) => Promise<ReleaseSetAllowlistConfigResult>;
2351
+ };
2352
+ type ReleaseLimitsNamespace = {
2353
+ getMint: (params: {
2354
+ contract: Address;
2355
+ }) => Promise<ReleaseLimitConfig>;
2356
+ setMint: (params: ReleaseSetLimitParams) => Promise<ReleaseSetLimitResult>;
2357
+ getTx: (params: {
2358
+ contract: Address;
2359
+ }) => Promise<ReleaseLimitConfig>;
2360
+ setTx: (params: ReleaseSetLimitParams) => Promise<ReleaseSetLimitResult>;
2361
+ };
2362
+ type ReleaseNamespace = {
2363
+ allowlist: ReleaseAllowlistNamespace;
2364
+ limits: ReleaseLimitsNamespace;
2365
+ configure: (params: ReleaseConfigureParams) => Promise<ReleaseConfigureResult>;
2366
+ mint: (params: ReleaseMintDirectSaleParams) => Promise<ReleaseMintDirectSaleResult>;
2367
+ status: (params: ReleaseStatusParams) => Promise<ReleaseStatus>;
2368
+ };
2369
+
2370
+ type ListingCreateParams = {
174
2371
  contract: Address;
175
2372
  tokenId: IntegerInput;
176
- currency?: Address;
2373
+ currency?: CurrencyInput;
177
2374
  price: AmountInput;
178
2375
  target?: Address;
179
2376
  splitAddresses?: Address[];
180
2377
  splitRatios?: number[];
181
2378
  autoApprove?: boolean;
182
- }
183
- interface ListingCancelParams {
2379
+ };
2380
+ type ListingCreateResult = TransactionResult & {
2381
+ approvalTxHash?: Hash;
2382
+ };
2383
+ type ListingCancelParams = {
184
2384
  contract: Address;
185
2385
  tokenId: IntegerInput;
186
2386
  target?: Address;
187
- }
188
- interface ListingBuyParams {
2387
+ };
2388
+ type ListingBuyParams = {
189
2389
  contract: Address;
190
2390
  tokenId: IntegerInput;
191
- currency?: Address;
192
- amount: AmountInput;
193
- }
194
- interface ListingStatusParams {
2391
+ currency?: CurrencyInput;
2392
+ price: AmountInput;
2393
+ autoApprove?: boolean;
2394
+ };
2395
+ type ListingBuyResult = TransactionResult & {
2396
+ approvalTxHash?: Hash;
2397
+ };
2398
+ type ListingStatusParams = {
195
2399
  contract: Address;
196
2400
  tokenId: IntegerInput;
197
2401
  target?: Address;
198
- }
199
- interface ListingStatus {
2402
+ };
2403
+ type ListingStatus = {
200
2404
  seller: Address;
201
2405
  currencyAddress: Address;
202
2406
  amount: bigint;
203
2407
  hasListing: boolean;
204
2408
  isEth: boolean;
205
- }
206
- interface TokenContractInfo {
2409
+ target: Address;
2410
+ splitAddresses: Address[];
2411
+ splitRatios: number[];
2412
+ canBuy: boolean | null;
2413
+ };
2414
+ type ListingMarketplaceNamespace = {
2415
+ create: (params: ListingCreateParams) => Promise<ListingCreateResult>;
2416
+ cancel: (params: ListingCancelParams) => Promise<TransactionResult>;
2417
+ buy: (params: ListingBuyParams) => Promise<ListingBuyResult>;
2418
+ status: (params: ListingStatusParams) => Promise<ListingStatus>;
2419
+ };
2420
+ type ListingNamespace = ListingMarketplaceNamespace & {
2421
+ release: ReleaseNamespace;
2422
+ batch: BatchListingNamespace;
2423
+ };
2424
+
2425
+ type BatchOfferRootSource = {
2426
+ root: Hex$1;
2427
+ artifact?: BatchTokenListArtifact;
2428
+ } | {
2429
+ artifact: BatchTokenListArtifact;
2430
+ root?: Hex$1;
2431
+ };
2432
+ type BatchOfferCreateParams = BatchOfferRootSource & {
2433
+ price: AmountInput;
2434
+ currency?: CurrencyInput;
2435
+ endTime: TimestampInput;
2436
+ autoApprove?: boolean;
2437
+ };
2438
+ type BatchOfferCreateResult = {
2439
+ batchOfferCreator: Address;
2440
+ creator: Address;
2441
+ root: Hex$1;
2442
+ amount: bigint;
2443
+ currency: Address;
2444
+ expiry: bigint;
2445
+ requiredPayment: bigint;
2446
+ approvalTxHash?: Hash;
2447
+ } & TransactionResult;
2448
+ type BatchOfferRevokeParams = BatchOfferRootSource | {
2449
+ contract: Address;
2450
+ tokenId: IntegerInput;
2451
+ root?: Hex$1;
2452
+ artifact?: BatchTokenListArtifact;
2453
+ };
2454
+ type BatchOfferRevokeResult = {
2455
+ batchOfferCreator: Address;
2456
+ creator: Address;
2457
+ root: Hex$1;
2458
+ amount: bigint;
2459
+ currency: Address;
2460
+ } & TransactionResult;
2461
+ type BatchOfferAcceptParams = {
2462
+ creator: Address;
2463
+ root?: Hex$1;
2464
+ proof?: readonly Hex$1[];
2465
+ proofArtifact?: BatchTokenProofArtifact;
2466
+ contract: Address;
2467
+ tokenId: IntegerInput;
2468
+ splitAddresses?: Address[];
2469
+ splitRatios?: number[];
2470
+ autoApprove?: boolean;
2471
+ };
2472
+ type BatchOfferAcceptResult = {
2473
+ batchOfferCreator: Address;
2474
+ seller: Address;
2475
+ buyer: Address;
2476
+ creator: Address;
2477
+ contract: Address;
2478
+ tokenId: bigint;
2479
+ root: Hex$1;
2480
+ currency: Address;
2481
+ amount: bigint;
2482
+ approvalTxHash?: Hash;
2483
+ } & TransactionResult;
2484
+ type BatchOfferStatusParams = {
2485
+ creator: Address;
2486
+ root?: Hex$1;
2487
+ artifact?: BatchTokenListArtifact;
2488
+ };
2489
+ type BatchOfferStatus = {
2490
+ creator: Address;
2491
+ root: Hex$1;
2492
+ amount: bigint;
2493
+ currency: Address;
2494
+ expiry: bigint;
2495
+ feePercentage: bigint;
2496
+ hasOffer: boolean;
2497
+ expired: boolean;
2498
+ revoked: boolean | null;
2499
+ fillable: boolean;
2500
+ state: 'NONE' | 'ACTIVE' | 'EXPIRED';
2501
+ isEth: boolean;
2502
+ };
2503
+ type BatchOfferNamespace = {
2504
+ create: (params: BatchOfferCreateParams) => Promise<BatchOfferCreateResult>;
2505
+ revoke: (params: BatchOfferRevokeParams) => Promise<BatchOfferRevokeResult>;
2506
+ accept: (params: BatchOfferAcceptParams) => Promise<BatchOfferAcceptResult>;
2507
+ status: (params: BatchOfferStatusParams) => Promise<BatchOfferStatus>;
2508
+ };
2509
+
2510
+ type OfferCreateParams = {
2511
+ contract: Address;
2512
+ tokenId: IntegerInput;
2513
+ currency?: CurrencyInput;
2514
+ price: AmountInput;
2515
+ autoApprove?: boolean;
2516
+ };
2517
+ type OfferCreateResult = TransactionResult & {
2518
+ approvalTxHash?: Hash;
2519
+ };
2520
+ type OfferCancelParams = {
2521
+ contract: Address;
2522
+ tokenId: IntegerInput;
2523
+ currency?: CurrencyInput;
2524
+ };
2525
+ type OfferAcceptParams = {
2526
+ contract: Address;
2527
+ tokenId: IntegerInput;
2528
+ currency?: CurrencyInput;
2529
+ price: AmountInput;
2530
+ splitAddresses?: Address[];
2531
+ splitRatios?: number[];
2532
+ autoApprove?: boolean;
2533
+ };
2534
+ type OfferAcceptResult = TransactionResult & {
2535
+ approvalTxHash?: Hash;
2536
+ };
2537
+ type OfferStatusParams = {
2538
+ contract: Address;
2539
+ tokenId: IntegerInput;
2540
+ currency?: CurrencyInput;
2541
+ };
2542
+ type OfferStatus = {
2543
+ buyer: Address;
2544
+ amount: bigint;
2545
+ timestamp: bigint;
2546
+ marketplaceFee: number;
2547
+ hasOffer: boolean;
2548
+ currency: Address;
2549
+ tokenOwner: Address | null;
2550
+ cancellableAfter: bigint | null;
2551
+ canAccept: boolean | null;
2552
+ canCancel: boolean | null;
2553
+ };
2554
+ type OfferMarketplaceNamespace = {
2555
+ create: (params: OfferCreateParams) => Promise<OfferCreateResult>;
2556
+ cancel: (params: OfferCancelParams) => Promise<TransactionResult>;
2557
+ accept: (params: OfferAcceptParams) => Promise<OfferAcceptResult>;
2558
+ status: (params: OfferStatusParams) => Promise<OfferStatus>;
2559
+ };
2560
+ type OfferNamespace = OfferMarketplaceNamespace & {
2561
+ batch: BatchOfferNamespace;
2562
+ };
2563
+
2564
+ type Hex = `0x${string}`;
2565
+ type RouterBuyParams = {
2566
+ token: Address;
2567
+ amountIn: AmountInput;
2568
+ minAmountOut: AmountInput;
2569
+ commands: `0x${string}`;
2570
+ inputs: readonly `0x${string}`[];
2571
+ recipient?: Address;
2572
+ deadline?: IntegerInput;
2573
+ };
2574
+ type RouterSellParams = {
2575
+ token: Address;
2576
+ amountIn: AmountInput;
2577
+ minAmountOut: AmountInput;
2578
+ commands: `0x${string}`;
2579
+ inputs: readonly `0x${string}`[];
2580
+ recipient?: Address;
2581
+ deadline?: IntegerInput;
2582
+ };
2583
+ type RouterSwapTokensParams = {
2584
+ tokenIn: Address;
2585
+ amountIn: AmountInput;
2586
+ tokenOut: Address;
2587
+ minAmountOut: AmountInput;
2588
+ commands: `0x${string}`;
2589
+ inputs: readonly `0x${string}`[];
2590
+ recipient?: Address;
2591
+ deadline?: IntegerInput;
2592
+ };
2593
+ type BuyRareParams = {
2594
+ amountIn: AmountInput;
2595
+ minAmountOut?: AmountInput;
2596
+ slippageBps?: IntegerInput;
2597
+ recipient?: Address;
2598
+ deadline?: IntegerInput;
2599
+ };
2600
+ type TokenTradeRouteMode = 'auto' | 'local' | 'uniswap';
2601
+ type TokenTradeExecutionRoute = TokenTradeRouteMode | 'raw';
2602
+ type TokenTradeBaseParams = {
2603
+ token: Address;
2604
+ amountIn: AmountInput;
2605
+ minAmountOut?: AmountInput;
2606
+ slippageBps?: IntegerInput;
2607
+ recipient?: Address;
2608
+ deadline?: IntegerInput;
2609
+ };
2610
+ type TokenTradeQuoteParams = TokenTradeBaseParams & {
2611
+ route?: TokenTradeRouteMode;
2612
+ };
2613
+ type TokenTradeRawRouteParams = Omit<TokenTradeBaseParams, 'minAmountOut' | 'slippageBps'> & {
2614
+ route: 'raw';
2615
+ minAmountOut: AmountInput;
2616
+ commands: Hex;
2617
+ inputs: readonly Hex[];
2618
+ };
2619
+ type BuyTokenParams = TokenTradeQuoteParams | TokenTradeRawRouteParams;
2620
+ type SellTokenParams = TokenTradeQuoteParams | TokenTradeRawRouteParams;
2621
+ type TokenTradeRouteSource = 'liquid-edition' | 'known-pool' | 'uniswap-api' | 'raw';
2622
+ type TokenTradeExecution = 'liquid-router' | 'uniswap-api' | 'raw-router';
2623
+ type TokenTradeQuoteBase = {
2624
+ amountIn: bigint;
2625
+ estimatedAmountOut: bigint;
2626
+ minAmountOut: bigint;
2627
+ tokenIn: Address;
2628
+ tokenOut: Address;
2629
+ inputDecimals: number;
2630
+ outputDecimals: number;
2631
+ slippageBps: number;
2632
+ routeDescription: string;
2633
+ };
2634
+ type LiquidRouterTokenTradeQuote = {
2635
+ routeSource: Extract<TokenTradeRouteSource, 'liquid-edition' | 'known-pool'>;
2636
+ execution: 'liquid-router';
2637
+ commands: `0x${string}`;
2638
+ inputs: readonly `0x${string}`[];
2639
+ } & TokenTradeQuoteBase;
2640
+ type UniswapApiTokenTradeQuote = {
2641
+ routeSource: 'uniswap-api';
2642
+ execution: 'uniswap-api';
2643
+ } & TokenTradeQuoteBase;
2644
+ type TokenTradeQuote = LiquidRouterTokenTradeQuote | UniswapApiTokenTradeQuote;
2645
+ type TokenTradeResult = {
2646
+ estimatedAmountOut: bigint;
2647
+ minAmountOut: bigint;
2648
+ routeSource: TokenTradeRouteSource;
2649
+ execution: TokenTradeExecution;
2650
+ commands?: Hex;
2651
+ inputs?: readonly Hex[];
2652
+ approvalTxHash?: Hex;
2653
+ approvalResetTxHash?: Hex;
2654
+ } & TransactionResult;
2655
+ type BuyRareQuote = {
2656
+ ethAmount: bigint;
2657
+ rareAddress: Address;
2658
+ estimatedRareOut: bigint;
2659
+ minRareOut: bigint;
2660
+ slippageBps: number;
2661
+ commands: `0x${string}`;
2662
+ inputs: readonly `0x${string}`[];
2663
+ };
2664
+ type BuyRareResult = {
2665
+ estimatedRareOut: bigint;
2666
+ minRareOut: bigint;
2667
+ commands: `0x${string}`;
2668
+ inputs: readonly `0x${string}`[];
2669
+ } & TransactionResult;
2670
+ type SwapNamespace = {
2671
+ buy: (params: RouterBuyParams) => Promise<TransactionResult>;
2672
+ sell: (params: RouterSellParams) => Promise<TransactionResult>;
2673
+ swapTokens: (params: RouterSwapTokensParams) => Promise<TransactionResult>;
2674
+ quoteBuyToken: (params: TokenTradeQuoteParams) => Promise<TokenTradeQuote>;
2675
+ buyToken: (params: BuyTokenParams) => Promise<TokenTradeResult>;
2676
+ quoteSellToken: (params: TokenTradeQuoteParams) => Promise<TokenTradeQuote>;
2677
+ sellToken: (params: SellTokenParams) => Promise<TokenTradeResult>;
2678
+ quoteBuyRare: (params: BuyRareParams) => Promise<BuyRareQuote>;
2679
+ buyRare: (params: BuyRareParams) => Promise<BuyRareResult>;
2680
+ };
2681
+
2682
+ type TokenContractInfo = {
207
2683
  contract: Address;
208
2684
  chain: SupportedChain;
209
2685
  name: string;
210
2686
  symbol: string;
211
- totalSupply: bigint;
212
- }
213
- interface TokenInfo {
2687
+ totalSupply: bigint | null;
2688
+ };
2689
+ type TokenInfo = {
214
2690
  contract: Address;
215
2691
  tokenId: bigint;
216
2692
  owner: Address;
217
2693
  tokenUri: string;
218
- }
219
- interface RareClient {
220
- chain: SupportedChain;
221
- chainId: number;
222
- contracts: {
223
- factory: Address;
224
- auction: Address;
225
- };
226
- deploy: {
227
- erc721(params: DeployErc721Params): Promise<DeployErc721Result>;
228
- };
229
- mint: {
230
- mintTo(params: MintToParams): Promise<MintToResult>;
231
- };
232
- auction: {
233
- create(params: AuctionCreateParams): Promise<TransactionResult & {
234
- approvalTxHash?: Hash;
235
- }>;
236
- bid(params: AuctionBidParams): Promise<TransactionResult>;
237
- settle(params: AuctionSettleParams): Promise<TransactionResult>;
238
- cancel(params: AuctionCancelParams): Promise<TransactionResult>;
239
- getStatus(params: AuctionStatusParams): Promise<AuctionStatus>;
240
- };
241
- offer: {
242
- create(params: OfferCreateParams): Promise<TransactionResult>;
243
- cancel(params: OfferCancelParams): Promise<TransactionResult>;
244
- accept(params: OfferAcceptParams): Promise<TransactionResult>;
245
- getStatus(params: OfferStatusParams): Promise<OfferStatus>;
246
- };
247
- listing: {
248
- create(params: ListingCreateParams): Promise<TransactionResult & {
249
- approvalTxHash?: Hash;
250
- }>;
251
- cancel(params: ListingCancelParams): Promise<TransactionResult>;
252
- buy(params: ListingBuyParams): Promise<TransactionResult>;
253
- getStatus(params: ListingStatusParams): Promise<ListingStatus>;
254
- };
255
- search: {
256
- nfts(params?: NftSearchParams): Promise<SearchPageResponse>;
257
- collections(params?: CollectionSearchParams): Promise<SearchPageResponse>;
258
- };
259
- media: {
260
- upload(buffer: Uint8Array, filename: string): Promise<NftMediaEntry>;
261
- pinMetadata(opts: PinMetadataParams): Promise<string>;
262
- };
263
- import: {
264
- erc721(params: ImportErc721Params): Promise<void>;
2694
+ };
2695
+ type TokenStatus = {
2696
+ contract: TokenContractInfo;
2697
+ token?: TokenInfo;
2698
+ };
2699
+ type TokenNamespace = {
2700
+ status: (params: {
2701
+ contract: Address;
2702
+ tokenId?: IntegerInput;
2703
+ }) => Promise<TokenStatus>;
2704
+ getPrice: (symbol: string) => Promise<{
2705
+ symbol: string;
2706
+ priceUsd: number;
2707
+ decimals: number;
2708
+ chainId: number;
2709
+ address: string;
2710
+ }>;
2711
+ };
2712
+
2713
+ type UtilsNamespace = {
2714
+ tree: {
2715
+ build: (params: BuildUtilsTreeParams) => UtilsTreeArtifact;
2716
+ proof: (params: UtilsTreeProofParams) => UtilsTreeProofArtifact;
2717
+ verify: (params: UtilsTreeProofVerifyParams) => boolean;
265
2718
  };
266
- token: {
267
- getContractInfo(params: {
268
- contract: Address;
269
- }): Promise<TokenContractInfo>;
270
- getTokenInfo(params: {
271
- contract: Address;
272
- tokenId: IntegerInput;
273
- }): Promise<TokenInfo>;
2719
+ merkle: {
2720
+ proof: (params: UtilsMerkleProofParams) => UtilsMerkleProofArtifact;
274
2721
  };
275
- }
276
- declare function createRareClient(config: RareClientConfig): RareClient;
2722
+ };
2723
+
2724
+ /**
2725
+ * Configuration for {@link createRareClient}.
2726
+ */
2727
+ type RareClientConfig = {
2728
+ /**
2729
+ * Viem public client with an explicit supported chain. The RARE SDK uses this
2730
+ * chain for every read and write on the returned client.
2731
+ */
2732
+ publicClient: PublicClient;
2733
+ /**
2734
+ * Optional viem wallet client for contract writes and signed flows.
2735
+ */
2736
+ walletClient?: WalletClient;
2737
+ /**
2738
+ * Optional account address used by SDK flows that need a default owner or
2739
+ * sender when the wallet client does not expose an account.
2740
+ */
2741
+ account?: Address;
2742
+ /**
2743
+ * Optional Rare API base URL. Defaults to the production Rare API.
2744
+ */
2745
+ apiBaseUrl?: string;
2746
+ /**
2747
+ * Optional fetch implementation for API-backed SDK methods.
2748
+ */
2749
+ apiFetch?: typeof fetch;
2750
+ };
2751
+ type RareClientNftSearchParams = Omit<NftSearchParams, 'chainId'>;
2752
+ type RareClientCollectionSearchParams = Omit<CollectionSearchParams, 'chainId'>;
2753
+ type RareClientEventSearchParams = Omit<EventSearchParams, 'chain' | 'chainId'>;
2754
+ type RareClientNftGetParams = Omit<NftIdentityParams, 'chain' | 'chainId'>;
2755
+ type RareClientContracts = {
2756
+ factory: Address;
2757
+ auction: Address;
2758
+ sovereignFactory?: Address;
2759
+ lazySovereignFactory?: Address;
2760
+ rareMinter?: Address;
2761
+ lazyBatchMintFactory?: Address;
2762
+ batchListing?: Address;
2763
+ batchOfferCreator?: Address;
2764
+ batchAuctionHouse?: Address;
2765
+ marketplaceSettings?: Address;
2766
+ erc20ApprovalManager?: Address;
2767
+ erc721ApprovalManager?: Address;
2768
+ liquidFactory?: Address;
2769
+ swapRouter?: Address;
2770
+ v4Quoter?: Address;
2771
+ };
2772
+ type SearchNamespace = {
2773
+ nfts: (params?: RareClientNftSearchParams) => Promise<SearchPageResponse<Nft>>;
2774
+ collections: (params?: RareClientCollectionSearchParams) => Promise<SearchPageResponse<Collection>>;
2775
+ events: (params: RareClientEventSearchParams) => Promise<SearchPageResponse<NftEvent>>;
2776
+ };
2777
+ type NftNamespace = {
2778
+ get: (params: RareClientNftGetParams) => Promise<Nft>;
2779
+ };
2780
+ type UserNamespace = {
2781
+ get: (address: string) => Promise<UserProfile>;
2782
+ };
2783
+ type MediaNamespace = {
2784
+ upload: (buffer: Uint8Array, filename: string) => Promise<NftMediaEntry>;
2785
+ pinMetadata: (opts: PinMetadataParams) => Promise<string>;
2786
+ };
2787
+ type ImportNamespace = {
2788
+ erc721: (params: ImportErc721Params) => Promise<void>;
2789
+ };
2790
+ type CurrencyNamespace = {
2791
+ list: () => CurrencyInfo[];
2792
+ resolve: (input: CurrencyInput) => ResolvedCurrency;
2793
+ resolveDecimals: (input: CurrencyInput) => Promise<ResolvedCurrencyWithDecimals>;
2794
+ };
2795
+ /**
2796
+ * Chain-bound RARE SDK surface returned by {@link createRareClient}.
2797
+ */
2798
+ type RareClient = {
2799
+ /**
2800
+ * Supported RARE chain inferred from the viem public client.
2801
+ */
2802
+ chain: SupportedChain;
2803
+ /**
2804
+ * Numeric chain ID for {@link chain}.
2805
+ */
2806
+ chainId: number;
2807
+ /**
2808
+ * RARE contract addresses available on the client chain.
2809
+ */
2810
+ contracts: RareClientContracts;
2811
+ liquidEdition: LiquidEditionNamespace;
2812
+ swap: SwapNamespace;
2813
+ auction: AuctionNamespace;
2814
+ offer: OfferNamespace;
2815
+ listing: ListingNamespace;
2816
+ utils: UtilsNamespace;
2817
+ search: SearchNamespace;
2818
+ nft: NftNamespace;
2819
+ collection: CollectionNamespace;
2820
+ user: UserNamespace;
2821
+ media: MediaNamespace;
2822
+ import: ImportNamespace;
2823
+ token: TokenNamespace;
2824
+ currency: CurrencyNamespace;
2825
+ };
277
2826
 
278
- declare const factoryAbi: readonly [{
279
- readonly type: "constructor";
280
- readonly inputs: readonly [{
281
- readonly name: "_sovereignBatchMintImplementation";
282
- readonly type: "address";
283
- readonly internalType: "address";
284
- }];
285
- readonly stateMutability: "nonpayable";
286
- }, {
287
- readonly type: "function";
288
- readonly name: "createSovereignBatchMint";
289
- readonly inputs: readonly [{
290
- readonly name: "_name";
291
- readonly type: "string";
292
- readonly internalType: "string";
293
- }, {
294
- readonly name: "_symbol";
295
- readonly type: "string";
296
- readonly internalType: "string";
297
- }];
298
- readonly outputs: readonly [{
299
- readonly name: "";
300
- readonly type: "address";
301
- readonly internalType: "address";
302
- }];
303
- readonly stateMutability: "nonpayable";
304
- }, {
305
- readonly type: "function";
306
- readonly name: "createSovereignBatchMint";
307
- readonly inputs: readonly [{
308
- readonly name: "_name";
309
- readonly type: "string";
310
- readonly internalType: "string";
311
- }, {
312
- readonly name: "_symbol";
313
- readonly type: "string";
314
- readonly internalType: "string";
315
- }, {
316
- readonly name: "_maxTokens";
317
- readonly type: "uint256";
318
- readonly internalType: "uint256";
319
- }];
320
- readonly outputs: readonly [{
321
- readonly name: "";
322
- readonly type: "address";
323
- readonly internalType: "address";
324
- }];
325
- readonly stateMutability: "nonpayable";
326
- }, {
327
- readonly type: "function";
328
- readonly name: "owner";
329
- readonly inputs: readonly [];
330
- readonly outputs: readonly [{
331
- readonly name: "";
332
- readonly type: "address";
333
- readonly internalType: "address";
334
- }];
335
- readonly stateMutability: "view";
336
- }, {
337
- readonly type: "function";
338
- readonly name: "renounceOwnership";
339
- readonly inputs: readonly [];
340
- readonly outputs: readonly [];
341
- readonly stateMutability: "nonpayable";
342
- }, {
343
- readonly type: "function";
344
- readonly name: "setSovereignBatchMint";
345
- readonly inputs: readonly [{
346
- readonly name: "_sovereignNFT";
347
- readonly type: "address";
348
- readonly internalType: "address";
349
- }];
350
- readonly outputs: readonly [];
351
- readonly stateMutability: "nonpayable";
352
- }, {
353
- readonly type: "function";
354
- readonly name: "sovereignNFT";
355
- readonly inputs: readonly [];
356
- readonly outputs: readonly [{
357
- readonly name: "";
358
- readonly type: "address";
359
- readonly internalType: "address";
360
- }];
361
- readonly stateMutability: "view";
362
- }, {
363
- readonly type: "function";
364
- readonly name: "transferOwnership";
365
- readonly inputs: readonly [{
366
- readonly name: "newOwner";
367
- readonly type: "address";
368
- readonly internalType: "address";
369
- }];
370
- readonly outputs: readonly [];
371
- readonly stateMutability: "nonpayable";
372
- }, {
373
- readonly type: "event";
374
- readonly name: "OwnershipTransferred";
375
- readonly inputs: readonly [{
376
- readonly name: "previousOwner";
377
- readonly type: "address";
378
- readonly indexed: true;
379
- readonly internalType: "address";
380
- }, {
381
- readonly name: "newOwner";
382
- readonly type: "address";
383
- readonly indexed: true;
384
- readonly internalType: "address";
385
- }];
386
- readonly anonymous: false;
387
- }, {
388
- readonly type: "event";
389
- readonly name: "SovereignBatchMintCreated";
390
- readonly inputs: readonly [{
391
- readonly name: "contractAddress";
392
- readonly type: "address";
393
- readonly indexed: true;
394
- readonly internalType: "address";
395
- }, {
396
- readonly name: "owner";
397
- readonly type: "address";
398
- readonly indexed: true;
399
- readonly internalType: "address";
400
- }];
401
- readonly anonymous: false;
402
- }];
2827
+ /**
2828
+ * Creates a chain-bound RARE SDK client from viem clients.
2829
+ *
2830
+ * The returned client derives its RARE network from `config.publicClient.chain`.
2831
+ * Read-only namespaces such as `search`, `nft`, `collection.get`, `token`,
2832
+ * and `currency` only require a public client. Write flows such as minting,
2833
+ * listings, offers, auctions, imports, releases, and swaps require a wallet
2834
+ * client and may also use `config.account` when the viem wallet client does
2835
+ * not expose one directly.
2836
+ *
2837
+ * Create a separate RareClient for each chain you want to read or write. SDK
2838
+ * methods intentionally reject per-call `chain` or `chainId` overrides when
2839
+ * the client already knows its chain.
2840
+ *
2841
+ * See the generated [SDK Client Methods](/sdk/client-methods) page for the
2842
+ * flat list of callable `rare.*` methods exposed by the returned client.
2843
+ *
2844
+ * @example
2845
+ * ```ts
2846
+ * import { createPublicClient, createWalletClient, http } from 'viem';
2847
+ * import { privateKeyToAccount } from 'viem/accounts';
2848
+ * import { sepolia } from 'viem/chains';
2849
+ * import { createRareClient } from '@rareprotocol/rare-cli/client';
2850
+ *
2851
+ * const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);
2852
+ * const publicClient = createPublicClient({
2853
+ * chain: sepolia,
2854
+ * transport: http(process.env.RPC_URL),
2855
+ * });
2856
+ * const walletClient = createWalletClient({
2857
+ * account,
2858
+ * chain: sepolia,
2859
+ * transport: http(process.env.RPC_URL),
2860
+ * });
2861
+ *
2862
+ * const rare = createRareClient({ publicClient, walletClient });
2863
+ *
2864
+ * const nfts = await rare.search.nfts({ query: 'portrait', perPage: 10 });
2865
+ * const token = await rare.nft.get({
2866
+ * contract: '0x...',
2867
+ * tokenId: '1',
2868
+ * });
2869
+ * ```
2870
+ */
2871
+ declare function createRareClient(config: RareClientConfig): RareClient;
403
2872
 
404
- declare const auctionAbi: readonly [{
405
- readonly type: "function";
406
- readonly name: "COLDIE_AUCTION";
407
- readonly inputs: readonly [];
408
- readonly outputs: readonly [{
409
- readonly name: "";
410
- readonly type: "bytes32";
411
- readonly internalType: "bytes32";
412
- }];
413
- readonly stateMutability: "view";
414
- }, {
415
- readonly type: "function";
416
- readonly name: "NO_AUCTION";
417
- readonly inputs: readonly [];
418
- readonly outputs: readonly [{
419
- readonly name: "";
420
- readonly type: "bytes32";
421
- readonly internalType: "bytes32";
422
- }];
423
- readonly stateMutability: "view";
424
- }, {
425
- readonly type: "function";
426
- readonly name: "SCHEDULED_AUCTION";
427
- readonly inputs: readonly [];
428
- readonly outputs: readonly [{
429
- readonly name: "";
430
- readonly type: "bytes32";
431
- readonly internalType: "bytes32";
432
- }];
433
- readonly stateMutability: "view";
434
- }, {
435
- readonly type: "function";
436
- readonly name: "acceptOffer";
437
- readonly inputs: readonly [{
438
- readonly name: "_originContract";
439
- readonly type: "address";
440
- readonly internalType: "address";
441
- }, {
442
- readonly name: "_tokenId";
443
- readonly type: "uint256";
444
- readonly internalType: "uint256";
445
- }, {
446
- readonly name: "_currencyAddress";
447
- readonly type: "address";
448
- readonly internalType: "address";
449
- }, {
450
- readonly name: "_amount";
451
- readonly type: "uint256";
452
- readonly internalType: "uint256";
453
- }, {
454
- readonly name: "_splitAddresses";
455
- readonly type: "address[]";
456
- readonly internalType: "address payable[]";
457
- }, {
458
- readonly name: "_splitRatios";
459
- readonly type: "uint8[]";
460
- readonly internalType: "uint8[]";
461
- }];
462
- readonly outputs: readonly [];
463
- readonly stateMutability: "nonpayable";
464
- }, {
465
- readonly type: "function";
466
- readonly name: "approvedTokenRegistry";
467
- readonly inputs: readonly [];
468
- readonly outputs: readonly [{
469
- readonly name: "";
470
- readonly type: "address";
471
- readonly internalType: "contract IApprovedTokenRegistry";
472
- }];
473
- readonly stateMutability: "view";
474
- }, {
475
- readonly type: "function";
476
- readonly name: "auctionBids";
477
- readonly inputs: readonly [{
478
- readonly name: "";
479
- readonly type: "address";
480
- readonly internalType: "address";
481
- }, {
482
- readonly name: "";
483
- readonly type: "uint256";
484
- readonly internalType: "uint256";
485
- }];
486
- readonly outputs: readonly [{
487
- readonly name: "bidder";
488
- readonly type: "address";
489
- readonly internalType: "address payable";
490
- }, {
491
- readonly name: "currencyAddress";
492
- readonly type: "address";
493
- readonly internalType: "address";
494
- }, {
495
- readonly name: "amount";
496
- readonly type: "uint256";
497
- readonly internalType: "uint256";
498
- }, {
499
- readonly name: "marketplaceFee";
500
- readonly type: "uint8";
501
- readonly internalType: "uint8";
502
- }];
503
- readonly stateMutability: "view";
504
- }, {
505
- readonly type: "function";
506
- readonly name: "auctionLengthExtension";
507
- readonly inputs: readonly [];
508
- readonly outputs: readonly [{
509
- readonly name: "";
510
- readonly type: "uint256";
511
- readonly internalType: "uint256";
512
- }];
513
- readonly stateMutability: "view";
514
- }, {
515
- readonly type: "function";
516
- readonly name: "bid";
517
- readonly inputs: readonly [{
518
- readonly name: "_originContract";
519
- readonly type: "address";
520
- readonly internalType: "address";
521
- }, {
522
- readonly name: "_tokenId";
523
- readonly type: "uint256";
524
- readonly internalType: "uint256";
525
- }, {
526
- readonly name: "_currencyAddress";
527
- readonly type: "address";
528
- readonly internalType: "address";
529
- }, {
530
- readonly name: "_amount";
531
- readonly type: "uint256";
532
- readonly internalType: "uint256";
533
- }];
534
- readonly outputs: readonly [];
535
- readonly stateMutability: "payable";
536
- }, {
537
- readonly type: "function";
538
- readonly name: "buy";
539
- readonly inputs: readonly [{
540
- readonly name: "_originContract";
541
- readonly type: "address";
542
- readonly internalType: "address";
543
- }, {
544
- readonly name: "_tokenId";
545
- readonly type: "uint256";
546
- readonly internalType: "uint256";
547
- }, {
548
- readonly name: "_currencyAddress";
549
- readonly type: "address";
550
- readonly internalType: "address";
551
- }, {
552
- readonly name: "_amount";
553
- readonly type: "uint256";
554
- readonly internalType: "uint256";
555
- }];
556
- readonly outputs: readonly [];
557
- readonly stateMutability: "payable";
558
- }, {
559
- readonly type: "function";
560
- readonly name: "cancelAuction";
561
- readonly inputs: readonly [{
562
- readonly name: "_originContract";
563
- readonly type: "address";
564
- readonly internalType: "address";
565
- }, {
566
- readonly name: "_tokenId";
567
- readonly type: "uint256";
568
- readonly internalType: "uint256";
569
- }];
570
- readonly outputs: readonly [];
571
- readonly stateMutability: "nonpayable";
572
- }, {
573
- readonly type: "function";
574
- readonly name: "cancelOffer";
575
- readonly inputs: readonly [{
576
- readonly name: "_originContract";
577
- readonly type: "address";
578
- readonly internalType: "address";
579
- }, {
580
- readonly name: "_tokenId";
581
- readonly type: "uint256";
582
- readonly internalType: "uint256";
583
- }, {
584
- readonly name: "_currencyAddress";
585
- readonly type: "address";
586
- readonly internalType: "address";
587
- }];
588
- readonly outputs: readonly [];
589
- readonly stateMutability: "nonpayable";
590
- }, {
591
- readonly type: "function";
592
- readonly name: "configureAuction";
593
- readonly inputs: readonly [{
594
- readonly name: "_auctionType";
595
- readonly type: "bytes32";
596
- readonly internalType: "bytes32";
597
- }, {
598
- readonly name: "_originContract";
599
- readonly type: "address";
600
- readonly internalType: "address";
601
- }, {
602
- readonly name: "_tokenId";
603
- readonly type: "uint256";
604
- readonly internalType: "uint256";
605
- }, {
606
- readonly name: "_startingAmount";
607
- readonly type: "uint256";
608
- readonly internalType: "uint256";
609
- }, {
610
- readonly name: "_currencyAddress";
611
- readonly type: "address";
612
- readonly internalType: "address";
613
- }, {
614
- readonly name: "_lengthOfAuction";
615
- readonly type: "uint256";
616
- readonly internalType: "uint256";
617
- }, {
618
- readonly name: "_startTime";
619
- readonly type: "uint256";
620
- readonly internalType: "uint256";
621
- }, {
622
- readonly name: "_splitAddresses";
623
- readonly type: "address[]";
624
- readonly internalType: "address payable[]";
625
- }, {
626
- readonly name: "_splitRatios";
627
- readonly type: "uint8[]";
628
- readonly internalType: "uint8[]";
629
- }];
630
- readonly outputs: readonly [];
631
- readonly stateMutability: "nonpayable";
632
- }, {
633
- readonly type: "function";
634
- readonly name: "convertOfferToAuction";
635
- readonly inputs: readonly [{
636
- readonly name: "_originContract";
637
- readonly type: "address";
638
- readonly internalType: "address";
639
- }, {
640
- readonly name: "_tokenId";
641
- readonly type: "uint256";
642
- readonly internalType: "uint256";
643
- }, {
644
- readonly name: "_currencyAddress";
645
- readonly type: "address";
646
- readonly internalType: "address";
647
- }, {
648
- readonly name: "_amount";
649
- readonly type: "uint256";
650
- readonly internalType: "uint256";
651
- }, {
652
- readonly name: "_lengthOfAuction";
653
- readonly type: "uint256";
654
- readonly internalType: "uint256";
655
- }, {
656
- readonly name: "_splitAddresses";
657
- readonly type: "address[]";
658
- readonly internalType: "address payable[]";
659
- }, {
660
- readonly name: "_splitRatios";
661
- readonly type: "uint8[]";
662
- readonly internalType: "uint8[]";
663
- }];
664
- readonly outputs: readonly [];
665
- readonly stateMutability: "nonpayable";
666
- }, {
667
- readonly type: "function";
668
- readonly name: "getAuctionDetails";
669
- readonly inputs: readonly [{
670
- readonly name: "_originContract";
671
- readonly type: "address";
672
- readonly internalType: "address";
673
- }, {
674
- readonly name: "_tokenId";
675
- readonly type: "uint256";
676
- readonly internalType: "uint256";
677
- }];
678
- readonly outputs: readonly [{
679
- readonly name: "";
680
- readonly type: "address";
681
- readonly internalType: "address";
682
- }, {
683
- readonly name: "";
684
- readonly type: "uint256";
685
- readonly internalType: "uint256";
686
- }, {
687
- readonly name: "";
688
- readonly type: "uint256";
689
- readonly internalType: "uint256";
690
- }, {
691
- readonly name: "";
692
- readonly type: "uint256";
693
- readonly internalType: "uint256";
694
- }, {
695
- readonly name: "";
696
- readonly type: "address";
697
- readonly internalType: "address";
698
- }, {
699
- readonly name: "";
700
- readonly type: "uint256";
701
- readonly internalType: "uint256";
702
- }, {
703
- readonly name: "";
704
- readonly type: "bytes32";
705
- readonly internalType: "bytes32";
706
- }, {
707
- readonly name: "";
708
- readonly type: "address[]";
709
- readonly internalType: "address payable[]";
710
- }, {
711
- readonly name: "";
712
- readonly type: "uint8[]";
713
- readonly internalType: "uint8[]";
714
- }];
715
- readonly stateMutability: "view";
716
- }, {
717
- readonly type: "function";
718
- readonly name: "getSalePrice";
719
- readonly inputs: readonly [{
720
- readonly name: "_originContract";
721
- readonly type: "address";
722
- readonly internalType: "address";
723
- }, {
724
- readonly name: "_tokenId";
725
- readonly type: "uint256";
726
- readonly internalType: "uint256";
727
- }, {
728
- readonly name: "_target";
729
- readonly type: "address";
730
- readonly internalType: "address";
731
- }];
732
- readonly outputs: readonly [{
733
- readonly name: "";
734
- readonly type: "address";
735
- readonly internalType: "address";
736
- }, {
737
- readonly name: "";
738
- readonly type: "address";
739
- readonly internalType: "address";
740
- }, {
741
- readonly name: "";
742
- readonly type: "uint256";
743
- readonly internalType: "uint256";
744
- }, {
745
- readonly name: "";
746
- readonly type: "address[]";
747
- readonly internalType: "address payable[]";
748
- }, {
749
- readonly name: "";
750
- readonly type: "uint8[]";
751
- readonly internalType: "uint8[]";
752
- }];
753
- readonly stateMutability: "view";
754
- }, {
755
- readonly type: "function";
756
- readonly name: "initialize";
757
- readonly inputs: readonly [{
758
- readonly name: "_marketplaceSettings";
759
- readonly type: "address";
760
- readonly internalType: "address";
761
- }, {
762
- readonly name: "_royaltyRegistry";
763
- readonly type: "address";
764
- readonly internalType: "address";
765
- }, {
766
- readonly name: "_royaltyEngine";
767
- readonly type: "address";
768
- readonly internalType: "address";
769
- }, {
770
- readonly name: "_superRareMarketplace";
771
- readonly type: "address";
772
- readonly internalType: "address";
773
- }, {
774
- readonly name: "_superRareAuctionHouse";
775
- readonly type: "address";
776
- readonly internalType: "address";
777
- }, {
778
- readonly name: "_spaceOperatorRegistry";
779
- readonly type: "address";
780
- readonly internalType: "address";
781
- }, {
782
- readonly name: "_approvedTokenRegistry";
783
- readonly type: "address";
784
- readonly internalType: "address";
785
- }, {
786
- readonly name: "_payments";
787
- readonly type: "address";
788
- readonly internalType: "address";
789
- }, {
790
- readonly name: "_stakingRegistry";
791
- readonly type: "address";
792
- readonly internalType: "address";
793
- }, {
794
- readonly name: "_networkBeneficiary";
795
- readonly type: "address";
796
- readonly internalType: "address";
797
- }];
798
- readonly outputs: readonly [];
799
- readonly stateMutability: "nonpayable";
800
- }, {
801
- readonly type: "function";
802
- readonly name: "marketplaceSettings";
803
- readonly inputs: readonly [];
804
- readonly outputs: readonly [{
805
- readonly name: "";
806
- readonly type: "address";
807
- readonly internalType: "contract IMarketplaceSettings";
808
- }];
809
- readonly stateMutability: "view";
810
- }, {
811
- readonly type: "function";
812
- readonly name: "maxAuctionLength";
813
- readonly inputs: readonly [];
814
- readonly outputs: readonly [{
815
- readonly name: "";
816
- readonly type: "uint256";
817
- readonly internalType: "uint256";
818
- }];
819
- readonly stateMutability: "view";
820
- }, {
821
- readonly type: "function";
822
- readonly name: "minimumBidIncreasePercentage";
823
- readonly inputs: readonly [];
824
- readonly outputs: readonly [{
825
- readonly name: "";
826
- readonly type: "uint8";
827
- readonly internalType: "uint8";
828
- }];
829
- readonly stateMutability: "view";
830
- }, {
831
- readonly type: "function";
832
- readonly name: "networkBeneficiary";
833
- readonly inputs: readonly [];
834
- readonly outputs: readonly [{
835
- readonly name: "";
836
- readonly type: "address";
837
- readonly internalType: "address";
838
- }];
839
- readonly stateMutability: "view";
840
- }, {
841
- readonly type: "function";
842
- readonly name: "offer";
843
- readonly inputs: readonly [{
844
- readonly name: "_originContract";
845
- readonly type: "address";
846
- readonly internalType: "address";
847
- }, {
848
- readonly name: "_tokenId";
849
- readonly type: "uint256";
850
- readonly internalType: "uint256";
851
- }, {
852
- readonly name: "_currencyAddress";
853
- readonly type: "address";
854
- readonly internalType: "address";
855
- }, {
856
- readonly name: "_amount";
857
- readonly type: "uint256";
858
- readonly internalType: "uint256";
859
- }, {
860
- readonly name: "_convertible";
861
- readonly type: "bool";
862
- readonly internalType: "bool";
863
- }];
864
- readonly outputs: readonly [];
865
- readonly stateMutability: "payable";
866
- }, {
867
- readonly type: "function";
868
- readonly name: "offerCancelationDelay";
869
- readonly inputs: readonly [];
870
- readonly outputs: readonly [{
871
- readonly name: "";
872
- readonly type: "uint256";
873
- readonly internalType: "uint256";
874
- }];
875
- readonly stateMutability: "view";
876
- }, {
877
- readonly type: "function";
878
- readonly name: "owner";
879
- readonly inputs: readonly [];
880
- readonly outputs: readonly [{
881
- readonly name: "";
882
- readonly type: "address";
883
- readonly internalType: "address";
884
- }];
885
- readonly stateMutability: "view";
886
- }, {
887
- readonly type: "function";
888
- readonly name: "payments";
889
- readonly inputs: readonly [];
890
- readonly outputs: readonly [{
891
- readonly name: "";
892
- readonly type: "address";
893
- readonly internalType: "contract IPayments";
894
- }];
895
- readonly stateMutability: "view";
896
- }, {
897
- readonly type: "function";
898
- readonly name: "removeSalePrice";
899
- readonly inputs: readonly [{
900
- readonly name: "_originContract";
901
- readonly type: "address";
902
- readonly internalType: "address";
903
- }, {
904
- readonly name: "_tokenId";
905
- readonly type: "uint256";
906
- readonly internalType: "uint256";
907
- }, {
908
- readonly name: "_target";
909
- readonly type: "address";
910
- readonly internalType: "address";
911
- }];
912
- readonly outputs: readonly [];
913
- readonly stateMutability: "nonpayable";
914
- }, {
915
- readonly type: "function";
916
- readonly name: "renounceOwnership";
917
- readonly inputs: readonly [];
918
- readonly outputs: readonly [];
919
- readonly stateMutability: "nonpayable";
920
- }, {
921
- readonly type: "function";
922
- readonly name: "royaltyEngine";
923
- readonly inputs: readonly [];
924
- readonly outputs: readonly [{
925
- readonly name: "";
926
- readonly type: "address";
927
- readonly internalType: "contract IRoyaltyEngineV1";
928
- }];
929
- readonly stateMutability: "view";
930
- }, {
931
- readonly type: "function";
932
- readonly name: "royaltyRegistry";
933
- readonly inputs: readonly [];
934
- readonly outputs: readonly [{
935
- readonly name: "";
936
- readonly type: "address";
937
- readonly internalType: "contract IRoyaltyRegistry";
938
- }];
939
- readonly stateMutability: "view";
940
- }, {
941
- readonly type: "function";
942
- readonly name: "setApprovedTokenRegistry";
943
- readonly inputs: readonly [{
944
- readonly name: "_approvedTokenRegistry";
945
- readonly type: "address";
946
- readonly internalType: "address";
947
- }];
948
- readonly outputs: readonly [];
949
- readonly stateMutability: "nonpayable";
950
- }, {
951
- readonly type: "function";
952
- readonly name: "setAuctionLengthExtension";
953
- readonly inputs: readonly [{
954
- readonly name: "_auctionLengthExtension";
955
- readonly type: "uint256";
956
- readonly internalType: "uint256";
957
- }];
958
- readonly outputs: readonly [];
959
- readonly stateMutability: "nonpayable";
960
- }, {
961
- readonly type: "function";
962
- readonly name: "setMarketplaceSettings";
963
- readonly inputs: readonly [{
964
- readonly name: "_marketplaceSettings";
965
- readonly type: "address";
966
- readonly internalType: "address";
967
- }];
968
- readonly outputs: readonly [];
969
- readonly stateMutability: "nonpayable";
970
- }, {
971
- readonly type: "function";
972
- readonly name: "setMaxAuctionLength";
973
- readonly inputs: readonly [{
974
- readonly name: "_maxAuctionLength";
975
- readonly type: "uint8";
976
- readonly internalType: "uint8";
977
- }];
978
- readonly outputs: readonly [];
979
- readonly stateMutability: "nonpayable";
980
- }, {
981
- readonly type: "function";
982
- readonly name: "setMinimumBidIncreasePercentage";
983
- readonly inputs: readonly [{
984
- readonly name: "_minimumBidIncreasePercentage";
985
- readonly type: "uint8";
986
- readonly internalType: "uint8";
987
- }];
988
- readonly outputs: readonly [];
989
- readonly stateMutability: "nonpayable";
990
- }, {
991
- readonly type: "function";
992
- readonly name: "setNetworkBeneficiary";
993
- readonly inputs: readonly [{
994
- readonly name: "_networkBeneficiary";
995
- readonly type: "address";
996
- readonly internalType: "address";
997
- }];
998
- readonly outputs: readonly [];
999
- readonly stateMutability: "nonpayable";
1000
- }, {
1001
- readonly type: "function";
1002
- readonly name: "setOfferCancelationDelay";
1003
- readonly inputs: readonly [{
1004
- readonly name: "_offerCancelationDelay";
1005
- readonly type: "uint256";
1006
- readonly internalType: "uint256";
1007
- }];
1008
- readonly outputs: readonly [];
1009
- readonly stateMutability: "nonpayable";
1010
- }, {
1011
- readonly type: "function";
1012
- readonly name: "setPayments";
1013
- readonly inputs: readonly [{
1014
- readonly name: "_payments";
1015
- readonly type: "address";
1016
- readonly internalType: "address";
1017
- }];
1018
- readonly outputs: readonly [];
1019
- readonly stateMutability: "nonpayable";
1020
- }, {
1021
- readonly type: "function";
1022
- readonly name: "setRoyaltyEngine";
1023
- readonly inputs: readonly [{
1024
- readonly name: "_royaltyEngine";
1025
- readonly type: "address";
1026
- readonly internalType: "address";
1027
- }];
1028
- readonly outputs: readonly [];
1029
- readonly stateMutability: "nonpayable";
1030
- }, {
1031
- readonly type: "function";
1032
- readonly name: "setRoyaltyRegistry";
1033
- readonly inputs: readonly [{
1034
- readonly name: "_royaltyRegistry";
1035
- readonly type: "address";
1036
- readonly internalType: "address";
1037
- }];
1038
- readonly outputs: readonly [];
1039
- readonly stateMutability: "nonpayable";
1040
- }, {
1041
- readonly type: "function";
1042
- readonly name: "setSalePrice";
1043
- readonly inputs: readonly [{
1044
- readonly name: "_originContract";
1045
- readonly type: "address";
1046
- readonly internalType: "address";
1047
- }, {
1048
- readonly name: "_tokenId";
1049
- readonly type: "uint256";
1050
- readonly internalType: "uint256";
1051
- }, {
1052
- readonly name: "_currencyAddress";
1053
- readonly type: "address";
1054
- readonly internalType: "address";
1055
- }, {
1056
- readonly name: "_listPrice";
1057
- readonly type: "uint256";
1058
- readonly internalType: "uint256";
1059
- }, {
1060
- readonly name: "_target";
1061
- readonly type: "address";
1062
- readonly internalType: "address";
1063
- }, {
1064
- readonly name: "_splitAddresses";
1065
- readonly type: "address[]";
1066
- readonly internalType: "address payable[]";
1067
- }, {
1068
- readonly name: "_splitRatios";
1069
- readonly type: "uint8[]";
1070
- readonly internalType: "uint8[]";
1071
- }];
1072
- readonly outputs: readonly [];
1073
- readonly stateMutability: "nonpayable";
1074
- }, {
1075
- readonly type: "function";
1076
- readonly name: "setSpaceOperatorRegistry";
1077
- readonly inputs: readonly [{
1078
- readonly name: "_spaceOperatorRegistry";
1079
- readonly type: "address";
1080
- readonly internalType: "address";
1081
- }];
1082
- readonly outputs: readonly [];
1083
- readonly stateMutability: "nonpayable";
1084
- }, {
1085
- readonly type: "function";
1086
- readonly name: "setStakingRegistry";
1087
- readonly inputs: readonly [{
1088
- readonly name: "_stakingRegistry";
1089
- readonly type: "address";
1090
- readonly internalType: "address";
1091
- }];
1092
- readonly outputs: readonly [];
1093
- readonly stateMutability: "nonpayable";
1094
- }, {
1095
- readonly type: "function";
1096
- readonly name: "setSuperRareAuctionHouse";
1097
- readonly inputs: readonly [{
1098
- readonly name: "_superRareAuctionHouse";
1099
- readonly type: "address";
1100
- readonly internalType: "address";
1101
- }];
1102
- readonly outputs: readonly [];
1103
- readonly stateMutability: "nonpayable";
1104
- }, {
1105
- readonly type: "function";
1106
- readonly name: "setSuperRareMarketplace";
1107
- readonly inputs: readonly [{
1108
- readonly name: "_superRareMarketplace";
1109
- readonly type: "address";
1110
- readonly internalType: "address";
1111
- }];
1112
- readonly outputs: readonly [];
1113
- readonly stateMutability: "nonpayable";
1114
- }, {
1115
- readonly type: "function";
1116
- readonly name: "settleAuction";
1117
- readonly inputs: readonly [{
1118
- readonly name: "_originContract";
1119
- readonly type: "address";
1120
- readonly internalType: "address";
1121
- }, {
1122
- readonly name: "_tokenId";
1123
- readonly type: "uint256";
1124
- readonly internalType: "uint256";
1125
- }];
1126
- readonly outputs: readonly [];
1127
- readonly stateMutability: "nonpayable";
1128
- }, {
1129
- readonly type: "function";
1130
- readonly name: "spaceOperatorRegistry";
1131
- readonly inputs: readonly [];
1132
- readonly outputs: readonly [{
1133
- readonly name: "";
1134
- readonly type: "address";
1135
- readonly internalType: "contract ISpaceOperatorRegistry";
1136
- }];
1137
- readonly stateMutability: "view";
1138
- }, {
1139
- readonly type: "function";
1140
- readonly name: "stakingRegistry";
1141
- readonly inputs: readonly [];
1142
- readonly outputs: readonly [{
1143
- readonly name: "";
1144
- readonly type: "address";
1145
- readonly internalType: "address";
1146
- }];
1147
- readonly stateMutability: "view";
1148
- }, {
1149
- readonly type: "function";
1150
- readonly name: "superRareAuctionHouse";
1151
- readonly inputs: readonly [];
1152
- readonly outputs: readonly [{
1153
- readonly name: "";
1154
- readonly type: "address";
1155
- readonly internalType: "address";
1156
- }];
1157
- readonly stateMutability: "view";
1158
- }, {
1159
- readonly type: "function";
1160
- readonly name: "superRareMarketplace";
1161
- readonly inputs: readonly [];
1162
- readonly outputs: readonly [{
1163
- readonly name: "";
1164
- readonly type: "address";
1165
- readonly internalType: "address";
1166
- }];
1167
- readonly stateMutability: "view";
1168
- }, {
1169
- readonly type: "function";
1170
- readonly name: "tokenAuctions";
1171
- readonly inputs: readonly [{
1172
- readonly name: "";
1173
- readonly type: "address";
1174
- readonly internalType: "address";
1175
- }, {
1176
- readonly name: "";
1177
- readonly type: "uint256";
1178
- readonly internalType: "uint256";
1179
- }];
1180
- readonly outputs: readonly [{
1181
- readonly name: "auctionCreator";
1182
- readonly type: "address";
1183
- readonly internalType: "address payable";
1184
- }, {
1185
- readonly name: "creationBlock";
1186
- readonly type: "uint256";
1187
- readonly internalType: "uint256";
1188
- }, {
1189
- readonly name: "startingTime";
1190
- readonly type: "uint256";
1191
- readonly internalType: "uint256";
1192
- }, {
1193
- readonly name: "lengthOfAuction";
1194
- readonly type: "uint256";
1195
- readonly internalType: "uint256";
1196
- }, {
1197
- readonly name: "currencyAddress";
1198
- readonly type: "address";
1199
- readonly internalType: "address";
1200
- }, {
1201
- readonly name: "minimumBid";
1202
- readonly type: "uint256";
1203
- readonly internalType: "uint256";
1204
- }, {
1205
- readonly name: "auctionType";
1206
- readonly type: "bytes32";
1207
- readonly internalType: "bytes32";
1208
- }];
1209
- readonly stateMutability: "view";
1210
- }, {
1211
- readonly type: "function";
1212
- readonly name: "tokenCurrentOffers";
1213
- readonly inputs: readonly [{
1214
- readonly name: "";
1215
- readonly type: "address";
1216
- readonly internalType: "address";
1217
- }, {
1218
- readonly name: "";
1219
- readonly type: "uint256";
1220
- readonly internalType: "uint256";
1221
- }, {
1222
- readonly name: "";
1223
- readonly type: "address";
1224
- readonly internalType: "address";
1225
- }];
1226
- readonly outputs: readonly [{
1227
- readonly name: "buyer";
1228
- readonly type: "address";
1229
- readonly internalType: "address payable";
1230
- }, {
1231
- readonly name: "amount";
1232
- readonly type: "uint256";
1233
- readonly internalType: "uint256";
1234
- }, {
1235
- readonly name: "timestamp";
1236
- readonly type: "uint256";
1237
- readonly internalType: "uint256";
1238
- }, {
1239
- readonly name: "marketplaceFee";
1240
- readonly type: "uint8";
1241
- readonly internalType: "uint8";
1242
- }, {
1243
- readonly name: "convertible";
1244
- readonly type: "bool";
1245
- readonly internalType: "bool";
1246
- }];
1247
- readonly stateMutability: "view";
1248
- }, {
1249
- readonly type: "function";
1250
- readonly name: "tokenSalePrices";
1251
- readonly inputs: readonly [{
1252
- readonly name: "";
1253
- readonly type: "address";
1254
- readonly internalType: "address";
1255
- }, {
1256
- readonly name: "";
1257
- readonly type: "uint256";
1258
- readonly internalType: "uint256";
1259
- }, {
1260
- readonly name: "";
1261
- readonly type: "address";
1262
- readonly internalType: "address";
1263
- }];
1264
- readonly outputs: readonly [{
1265
- readonly name: "seller";
1266
- readonly type: "address";
1267
- readonly internalType: "address payable";
1268
- }, {
1269
- readonly name: "currencyAddress";
1270
- readonly type: "address";
1271
- readonly internalType: "address";
1272
- }, {
1273
- readonly name: "amount";
1274
- readonly type: "uint256";
1275
- readonly internalType: "uint256";
1276
- }];
1277
- readonly stateMutability: "view";
1278
- }, {
1279
- readonly type: "function";
1280
- readonly name: "transferOwnership";
1281
- readonly inputs: readonly [{
1282
- readonly name: "newOwner";
1283
- readonly type: "address";
1284
- readonly internalType: "address";
1285
- }];
1286
- readonly outputs: readonly [];
1287
- readonly stateMutability: "nonpayable";
1288
- }, {
1289
- readonly type: "event";
1290
- readonly name: "AcceptOffer";
1291
- readonly inputs: readonly [{
1292
- readonly name: "_originContract";
1293
- readonly type: "address";
1294
- readonly indexed: true;
1295
- readonly internalType: "address";
1296
- }, {
1297
- readonly name: "_bidder";
1298
- readonly type: "address";
1299
- readonly indexed: true;
1300
- readonly internalType: "address";
1301
- }, {
1302
- readonly name: "_seller";
1303
- readonly type: "address";
1304
- readonly indexed: true;
1305
- readonly internalType: "address";
1306
- }, {
1307
- readonly name: "_currencyAddress";
1308
- readonly type: "address";
1309
- readonly indexed: false;
1310
- readonly internalType: "address";
1311
- }, {
1312
- readonly name: "_amount";
1313
- readonly type: "uint256";
1314
- readonly indexed: false;
1315
- readonly internalType: "uint256";
1316
- }, {
1317
- readonly name: "_tokenId";
1318
- readonly type: "uint256";
1319
- readonly indexed: false;
1320
- readonly internalType: "uint256";
1321
- }, {
1322
- readonly name: "_splitAddresses";
1323
- readonly type: "address[]";
1324
- readonly indexed: false;
1325
- readonly internalType: "address payable[]";
1326
- }, {
1327
- readonly name: "_splitRatios";
1328
- readonly type: "uint8[]";
1329
- readonly indexed: false;
1330
- readonly internalType: "uint8[]";
1331
- }];
1332
- readonly anonymous: false;
1333
- }, {
1334
- readonly type: "event";
1335
- readonly name: "AuctionBid";
1336
- readonly inputs: readonly [{
1337
- readonly name: "_contractAddress";
1338
- readonly type: "address";
1339
- readonly indexed: true;
1340
- readonly internalType: "address";
1341
- }, {
1342
- readonly name: "_bidder";
1343
- readonly type: "address";
1344
- readonly indexed: true;
1345
- readonly internalType: "address";
1346
- }, {
1347
- readonly name: "_tokenId";
1348
- readonly type: "uint256";
1349
- readonly indexed: true;
1350
- readonly internalType: "uint256";
1351
- }, {
1352
- readonly name: "_currencyAddress";
1353
- readonly type: "address";
1354
- readonly indexed: false;
1355
- readonly internalType: "address";
1356
- }, {
1357
- readonly name: "_amount";
1358
- readonly type: "uint256";
1359
- readonly indexed: false;
1360
- readonly internalType: "uint256";
1361
- }, {
1362
- readonly name: "_startedAuction";
1363
- readonly type: "bool";
1364
- readonly indexed: false;
1365
- readonly internalType: "bool";
1366
- }, {
1367
- readonly name: "_newAuctionLength";
1368
- readonly type: "uint256";
1369
- readonly indexed: false;
1370
- readonly internalType: "uint256";
1371
- }, {
1372
- readonly name: "_previousBidder";
1373
- readonly type: "address";
1374
- readonly indexed: false;
1375
- readonly internalType: "address";
1376
- }];
1377
- readonly anonymous: false;
1378
- }, {
1379
- readonly type: "event";
1380
- readonly name: "AuctionSettled";
1381
- readonly inputs: readonly [{
1382
- readonly name: "_contractAddress";
1383
- readonly type: "address";
1384
- readonly indexed: true;
1385
- readonly internalType: "address";
1386
- }, {
1387
- readonly name: "_bidder";
1388
- readonly type: "address";
1389
- readonly indexed: true;
1390
- readonly internalType: "address";
1391
- }, {
1392
- readonly name: "_seller";
1393
- readonly type: "address";
1394
- readonly indexed: false;
1395
- readonly internalType: "address";
1396
- }, {
1397
- readonly name: "_tokenId";
1398
- readonly type: "uint256";
1399
- readonly indexed: true;
1400
- readonly internalType: "uint256";
1401
- }, {
1402
- readonly name: "_currencyAddress";
1403
- readonly type: "address";
1404
- readonly indexed: false;
1405
- readonly internalType: "address";
1406
- }, {
1407
- readonly name: "_amount";
1408
- readonly type: "uint256";
1409
- readonly indexed: false;
1410
- readonly internalType: "uint256";
1411
- }];
1412
- readonly anonymous: false;
1413
- }, {
1414
- readonly type: "event";
1415
- readonly name: "CancelAuction";
1416
- readonly inputs: readonly [{
1417
- readonly name: "_contractAddress";
1418
- readonly type: "address";
1419
- readonly indexed: true;
1420
- readonly internalType: "address";
1421
- }, {
1422
- readonly name: "_tokenId";
1423
- readonly type: "uint256";
1424
- readonly indexed: true;
1425
- readonly internalType: "uint256";
1426
- }, {
1427
- readonly name: "_auctionCreator";
1428
- readonly type: "address";
1429
- readonly indexed: true;
1430
- readonly internalType: "address";
1431
- }];
1432
- readonly anonymous: false;
1433
- }, {
1434
- readonly type: "event";
1435
- readonly name: "CancelOffer";
1436
- readonly inputs: readonly [{
1437
- readonly name: "_originContract";
1438
- readonly type: "address";
1439
- readonly indexed: true;
1440
- readonly internalType: "address";
1441
- }, {
1442
- readonly name: "_bidder";
1443
- readonly type: "address";
1444
- readonly indexed: true;
1445
- readonly internalType: "address";
1446
- }, {
1447
- readonly name: "_currencyAddress";
1448
- readonly type: "address";
1449
- readonly indexed: true;
1450
- readonly internalType: "address";
1451
- }, {
1452
- readonly name: "_amount";
1453
- readonly type: "uint256";
1454
- readonly indexed: false;
1455
- readonly internalType: "uint256";
1456
- }, {
1457
- readonly name: "_tokenId";
1458
- readonly type: "uint256";
1459
- readonly indexed: false;
1460
- readonly internalType: "uint256";
1461
- }];
1462
- readonly anonymous: false;
1463
- }, {
1464
- readonly type: "event";
1465
- readonly name: "Initialized";
1466
- readonly inputs: readonly [{
1467
- readonly name: "version";
1468
- readonly type: "uint8";
1469
- readonly indexed: false;
1470
- readonly internalType: "uint8";
1471
- }];
1472
- readonly anonymous: false;
1473
- }, {
1474
- readonly type: "event";
1475
- readonly name: "NewAuction";
1476
- readonly inputs: readonly [{
1477
- readonly name: "_contractAddress";
1478
- readonly type: "address";
1479
- readonly indexed: true;
1480
- readonly internalType: "address";
1481
- }, {
1482
- readonly name: "_tokenId";
1483
- readonly type: "uint256";
1484
- readonly indexed: true;
1485
- readonly internalType: "uint256";
1486
- }, {
1487
- readonly name: "_auctionCreator";
1488
- readonly type: "address";
1489
- readonly indexed: true;
1490
- readonly internalType: "address";
1491
- }, {
1492
- readonly name: "_currencyAddress";
1493
- readonly type: "address";
1494
- readonly indexed: false;
1495
- readonly internalType: "address";
1496
- }, {
1497
- readonly name: "_startingTime";
1498
- readonly type: "uint256";
1499
- readonly indexed: false;
1500
- readonly internalType: "uint256";
1501
- }, {
1502
- readonly name: "_minimumBid";
1503
- readonly type: "uint256";
1504
- readonly indexed: false;
1505
- readonly internalType: "uint256";
1506
- }, {
1507
- readonly name: "_lengthOfAuction";
1508
- readonly type: "uint256";
1509
- readonly indexed: false;
1510
- readonly internalType: "uint256";
1511
- }];
1512
- readonly anonymous: false;
1513
- }, {
1514
- readonly type: "event";
1515
- readonly name: "OfferPlaced";
1516
- readonly inputs: readonly [{
1517
- readonly name: "_originContract";
1518
- readonly type: "address";
1519
- readonly indexed: true;
1520
- readonly internalType: "address";
1521
- }, {
1522
- readonly name: "_bidder";
1523
- readonly type: "address";
1524
- readonly indexed: true;
1525
- readonly internalType: "address";
1526
- }, {
1527
- readonly name: "_currencyAddress";
1528
- readonly type: "address";
1529
- readonly indexed: true;
1530
- readonly internalType: "address";
1531
- }, {
1532
- readonly name: "_amount";
1533
- readonly type: "uint256";
1534
- readonly indexed: false;
1535
- readonly internalType: "uint256";
1536
- }, {
1537
- readonly name: "_tokenId";
1538
- readonly type: "uint256";
1539
- readonly indexed: false;
1540
- readonly internalType: "uint256";
1541
- }, {
1542
- readonly name: "_convertible";
1543
- readonly type: "bool";
1544
- readonly indexed: false;
1545
- readonly internalType: "bool";
1546
- }];
1547
- readonly anonymous: false;
1548
- }, {
1549
- readonly type: "event";
1550
- readonly name: "OwnershipTransferred";
1551
- readonly inputs: readonly [{
1552
- readonly name: "previousOwner";
1553
- readonly type: "address";
1554
- readonly indexed: true;
1555
- readonly internalType: "address";
1556
- }, {
1557
- readonly name: "newOwner";
1558
- readonly type: "address";
1559
- readonly indexed: true;
1560
- readonly internalType: "address";
1561
- }];
1562
- readonly anonymous: false;
1563
- }, {
1564
- readonly type: "event";
1565
- readonly name: "SetSalePrice";
1566
- readonly inputs: readonly [{
1567
- readonly name: "_originContract";
1568
- readonly type: "address";
1569
- readonly indexed: true;
1570
- readonly internalType: "address";
1571
- }, {
1572
- readonly name: "_currencyAddress";
1573
- readonly type: "address";
1574
- readonly indexed: true;
1575
- readonly internalType: "address";
1576
- }, {
1577
- readonly name: "_target";
1578
- readonly type: "address";
1579
- readonly indexed: false;
1580
- readonly internalType: "address";
1581
- }, {
1582
- readonly name: "_amount";
1583
- readonly type: "uint256";
1584
- readonly indexed: false;
1585
- readonly internalType: "uint256";
1586
- }, {
1587
- readonly name: "_tokenId";
1588
- readonly type: "uint256";
1589
- readonly indexed: false;
1590
- readonly internalType: "uint256";
1591
- }, {
1592
- readonly name: "_splitRecipients";
1593
- readonly type: "address[]";
1594
- readonly indexed: false;
1595
- readonly internalType: "address payable[]";
1596
- }, {
1597
- readonly name: "_splitRatios";
1598
- readonly type: "uint8[]";
1599
- readonly indexed: false;
1600
- readonly internalType: "uint8[]";
1601
- }];
1602
- readonly anonymous: false;
1603
- }, {
1604
- readonly type: "event";
1605
- readonly name: "Sold";
1606
- readonly inputs: readonly [{
1607
- readonly name: "_originContract";
1608
- readonly type: "address";
1609
- readonly indexed: true;
1610
- readonly internalType: "address";
1611
- }, {
1612
- readonly name: "_buyer";
1613
- readonly type: "address";
1614
- readonly indexed: true;
1615
- readonly internalType: "address";
1616
- }, {
1617
- readonly name: "_seller";
1618
- readonly type: "address";
1619
- readonly indexed: true;
1620
- readonly internalType: "address";
1621
- }, {
1622
- readonly name: "_currencyAddress";
1623
- readonly type: "address";
1624
- readonly indexed: false;
1625
- readonly internalType: "address";
1626
- }, {
1627
- readonly name: "_amount";
1628
- readonly type: "uint256";
1629
- readonly indexed: false;
1630
- readonly internalType: "uint256";
1631
- }, {
1632
- readonly name: "_tokenId";
1633
- readonly type: "uint256";
1634
- readonly indexed: false;
1635
- readonly internalType: "uint256";
1636
- }];
1637
- readonly anonymous: false;
1638
- }];
2873
+ declare class NftApprovalRequiredError extends Error {
2874
+ readonly nftAddress: Address;
2875
+ readonly operator: Address;
2876
+ constructor(params: {
2877
+ nftAddress: Address;
2878
+ operator: Address;
2879
+ });
2880
+ }
1639
2881
 
1640
- declare const tokenAbi: readonly [{
1641
- readonly anonymous: false;
1642
- readonly inputs: readonly [{
1643
- readonly indexed: true;
1644
- readonly internalType: "address";
1645
- readonly name: "owner";
1646
- readonly type: "address";
1647
- }, {
1648
- readonly indexed: true;
1649
- readonly internalType: "address";
1650
- readonly name: "approved";
1651
- readonly type: "address";
1652
- }, {
1653
- readonly indexed: true;
1654
- readonly internalType: "uint256";
1655
- readonly name: "tokenId";
1656
- readonly type: "uint256";
1657
- }];
1658
- readonly name: "Approval";
1659
- readonly type: "event";
1660
- }, {
1661
- readonly anonymous: false;
1662
- readonly inputs: readonly [{
1663
- readonly indexed: true;
1664
- readonly internalType: "address";
1665
- readonly name: "owner";
1666
- readonly type: "address";
1667
- }, {
1668
- readonly indexed: true;
1669
- readonly internalType: "address";
1670
- readonly name: "operator";
1671
- readonly type: "address";
1672
- }, {
1673
- readonly indexed: false;
1674
- readonly internalType: "bool";
1675
- readonly name: "approved";
1676
- readonly type: "bool";
1677
- }];
1678
- readonly name: "ApprovalForAll";
1679
- readonly type: "event";
1680
- }, {
1681
- readonly anonymous: false;
1682
- readonly inputs: readonly [{
1683
- readonly indexed: true;
1684
- readonly internalType: "uint256";
1685
- readonly name: "fromTokenId";
1686
- readonly type: "uint256";
1687
- }, {
1688
- readonly indexed: false;
1689
- readonly internalType: "uint256";
1690
- readonly name: "toTokenId";
1691
- readonly type: "uint256";
1692
- }, {
1693
- readonly indexed: true;
1694
- readonly internalType: "address";
1695
- readonly name: "fromAddress";
1696
- readonly type: "address";
1697
- }, {
1698
- readonly indexed: true;
1699
- readonly internalType: "address";
1700
- readonly name: "toAddress";
1701
- readonly type: "address";
1702
- }];
1703
- readonly name: "ConsecutiveTransfer";
1704
- readonly type: "event";
1705
- }, {
1706
- readonly anonymous: false;
1707
- readonly inputs: readonly [{
1708
- readonly indexed: true;
1709
- readonly internalType: "address";
1710
- readonly name: "user";
1711
- readonly type: "address";
1712
- }];
1713
- readonly name: "ContractDisabled";
1714
- readonly type: "event";
1715
- }, {
1716
- readonly anonymous: false;
1717
- readonly inputs: readonly [{
1718
- readonly indexed: true;
1719
- readonly internalType: "address";
1720
- readonly name: "previousOwner";
1721
- readonly type: "address";
1722
- }, {
1723
- readonly indexed: true;
1724
- readonly internalType: "address";
1725
- readonly name: "newOwner";
1726
- readonly type: "address";
1727
- }];
1728
- readonly name: "OwnershipTransferred";
1729
- readonly type: "event";
1730
- }, {
1731
- readonly anonymous: false;
1732
- readonly inputs: readonly [{
1733
- readonly indexed: true;
1734
- readonly internalType: "address";
1735
- readonly name: "from";
1736
- readonly type: "address";
1737
- }, {
1738
- readonly indexed: true;
1739
- readonly internalType: "address";
1740
- readonly name: "to";
1741
- readonly type: "address";
1742
- }, {
1743
- readonly indexed: true;
1744
- readonly internalType: "uint256";
1745
- readonly name: "tokenId";
1746
- readonly type: "uint256";
1747
- }];
1748
- readonly name: "Transfer";
1749
- readonly type: "event";
1750
- }, {
1751
- readonly inputs: readonly [{
1752
- readonly internalType: "string";
1753
- readonly name: "_uri";
1754
- readonly type: "string";
1755
- }];
1756
- readonly name: "addNewToken";
1757
- readonly outputs: readonly [];
1758
- readonly stateMutability: "nonpayable";
1759
- readonly type: "function";
1760
- }, {
1761
- readonly inputs: readonly [{
1762
- readonly internalType: "address";
1763
- readonly name: "to";
1764
- readonly type: "address";
1765
- }, {
1766
- readonly internalType: "uint256";
1767
- readonly name: "tokenId";
1768
- readonly type: "uint256";
1769
- }];
1770
- readonly name: "approve";
1771
- readonly outputs: readonly [];
1772
- readonly stateMutability: "nonpayable";
1773
- readonly type: "function";
1774
- }, {
1775
- readonly inputs: readonly [{
1776
- readonly internalType: "address";
1777
- readonly name: "owner";
1778
- readonly type: "address";
1779
- }];
1780
- readonly name: "balanceOf";
1781
- readonly outputs: readonly [{
1782
- readonly internalType: "uint256";
1783
- readonly name: "";
1784
- readonly type: "uint256";
1785
- }];
1786
- readonly stateMutability: "view";
1787
- readonly type: "function";
1788
- }, {
1789
- readonly inputs: readonly [];
1790
- readonly name: "baseURI";
1791
- readonly outputs: readonly [{
1792
- readonly internalType: "string";
1793
- readonly name: "";
1794
- readonly type: "string";
1795
- }];
1796
- readonly stateMutability: "view";
1797
- readonly type: "function";
1798
- }, {
1799
- readonly inputs: readonly [{
1800
- readonly internalType: "string";
1801
- readonly name: "_baseURI";
1802
- readonly type: "string";
1803
- }, {
1804
- readonly internalType: "uint256";
1805
- readonly name: "_numberOfTokens";
1806
- readonly type: "uint256";
1807
- }];
1808
- readonly name: "batchMint";
1809
- readonly outputs: readonly [];
1810
- readonly stateMutability: "nonpayable";
1811
- readonly type: "function";
1812
- }, {
1813
- readonly inputs: readonly [{
1814
- readonly internalType: "uint256";
1815
- readonly name: "_tokenId";
1816
- readonly type: "uint256";
1817
- }];
1818
- readonly name: "burn";
1819
- readonly outputs: readonly [];
1820
- readonly stateMutability: "nonpayable";
1821
- readonly type: "function";
1822
- }, {
1823
- readonly inputs: readonly [];
1824
- readonly name: "calcIERC721CreatorInterfaceId";
1825
- readonly outputs: readonly [{
1826
- readonly internalType: "bytes4";
1827
- readonly name: "";
1828
- readonly type: "bytes4";
1829
- }];
1830
- readonly stateMutability: "pure";
1831
- readonly type: "function";
1832
- }, {
1833
- readonly inputs: readonly [];
1834
- readonly name: "defaultRoyaltyPercentage";
1835
- readonly outputs: readonly [{
1836
- readonly internalType: "uint256";
1837
- readonly name: "";
1838
- readonly type: "uint256";
1839
- }];
1840
- readonly stateMutability: "view";
1841
- readonly type: "function";
1842
- }, {
1843
- readonly inputs: readonly [];
1844
- readonly name: "defaultRoyaltyReceiver";
1845
- readonly outputs: readonly [{
1846
- readonly internalType: "address";
1847
- readonly name: "";
1848
- readonly type: "address";
1849
- }];
1850
- readonly stateMutability: "view";
1851
- readonly type: "function";
1852
- }, {
1853
- readonly inputs: readonly [{
1854
- readonly internalType: "uint256";
1855
- readonly name: "_tokenId";
1856
- readonly type: "uint256";
1857
- }];
1858
- readonly name: "deleteToken";
1859
- readonly outputs: readonly [];
1860
- readonly stateMutability: "nonpayable";
1861
- readonly type: "function";
1862
- }, {
1863
- readonly inputs: readonly [];
1864
- readonly name: "disableContract";
1865
- readonly outputs: readonly [];
1866
- readonly stateMutability: "nonpayable";
1867
- readonly type: "function";
1868
- }, {
1869
- readonly inputs: readonly [];
1870
- readonly name: "disabled";
1871
- readonly outputs: readonly [{
1872
- readonly internalType: "bool";
1873
- readonly name: "";
1874
- readonly type: "bool";
1875
- }];
1876
- readonly stateMutability: "view";
1877
- readonly type: "function";
1878
- }, {
1879
- readonly inputs: readonly [{
1880
- readonly internalType: "uint256";
1881
- readonly name: "_tokenId";
1882
- readonly type: "uint256";
1883
- }];
1884
- readonly name: "getApproved";
1885
- readonly outputs: readonly [{
1886
- readonly internalType: "address";
1887
- readonly name: "";
1888
- readonly type: "address";
1889
- }];
1890
- readonly stateMutability: "view";
1891
- readonly type: "function";
1892
- }, {
1893
- readonly inputs: readonly [{
1894
- readonly internalType: "string";
1895
- readonly name: "_name";
1896
- readonly type: "string";
1897
- }, {
1898
- readonly internalType: "string";
1899
- readonly name: "_symbol";
1900
- readonly type: "string";
1901
- }, {
1902
- readonly internalType: "address";
1903
- readonly name: "_creator";
1904
- readonly type: "address";
1905
- }, {
1906
- readonly internalType: "uint256";
1907
- readonly name: "_maxTokens";
1908
- readonly type: "uint256";
1909
- }];
1910
- readonly name: "init";
1911
- readonly outputs: readonly [];
1912
- readonly stateMutability: "nonpayable";
1913
- readonly type: "function";
1914
- }, {
1915
- readonly inputs: readonly [{
1916
- readonly internalType: "address";
1917
- readonly name: "owner";
1918
- readonly type: "address";
1919
- }, {
1920
- readonly internalType: "address";
1921
- readonly name: "operator";
1922
- readonly type: "address";
1923
- }];
1924
- readonly name: "isApprovedForAll";
1925
- readonly outputs: readonly [{
1926
- readonly internalType: "bool";
1927
- readonly name: "";
1928
- readonly type: "bool";
1929
- }];
1930
- readonly stateMutability: "view";
1931
- readonly type: "function";
1932
- }, {
1933
- readonly inputs: readonly [];
1934
- readonly name: "maxTokens";
1935
- readonly outputs: readonly [{
1936
- readonly internalType: "uint256";
1937
- readonly name: "";
1938
- readonly type: "uint256";
1939
- }];
1940
- readonly stateMutability: "view";
1941
- readonly type: "function";
1942
- }, {
1943
- readonly inputs: readonly [{
1944
- readonly internalType: "string";
1945
- readonly name: "_uri";
1946
- readonly type: "string";
1947
- }, {
1948
- readonly internalType: "address";
1949
- readonly name: "_receiver";
1950
- readonly type: "address";
1951
- }, {
1952
- readonly internalType: "address";
1953
- readonly name: "_royaltyReceiver";
1954
- readonly type: "address";
1955
- }];
1956
- readonly name: "mintTo";
1957
- readonly outputs: readonly [];
1958
- readonly stateMutability: "nonpayable";
1959
- readonly type: "function";
1960
- }, {
1961
- readonly inputs: readonly [];
1962
- readonly name: "name";
1963
- readonly outputs: readonly [{
1964
- readonly internalType: "string";
1965
- readonly name: "";
1966
- readonly type: "string";
1967
- }];
1968
- readonly stateMutability: "view";
1969
- readonly type: "function";
1970
- }, {
1971
- readonly inputs: readonly [];
1972
- readonly name: "owner";
1973
- readonly outputs: readonly [{
1974
- readonly internalType: "address";
1975
- readonly name: "";
1976
- readonly type: "address";
1977
- }];
1978
- readonly stateMutability: "view";
1979
- readonly type: "function";
1980
- }, {
1981
- readonly inputs: readonly [{
1982
- readonly internalType: "uint256";
1983
- readonly name: "_tokenId";
1984
- readonly type: "uint256";
1985
- }];
1986
- readonly name: "ownerOf";
1987
- readonly outputs: readonly [{
1988
- readonly internalType: "address";
1989
- readonly name: "";
1990
- readonly type: "address";
1991
- }];
1992
- readonly stateMutability: "view";
1993
- readonly type: "function";
1994
- }, {
1995
- readonly inputs: readonly [];
1996
- readonly name: "renounceOwnership";
1997
- readonly outputs: readonly [];
1998
- readonly stateMutability: "view";
1999
- readonly type: "function";
2000
- }, {
2001
- readonly inputs: readonly [{
2002
- readonly internalType: "uint256";
2003
- readonly name: "_tokenId";
2004
- readonly type: "uint256";
2005
- }, {
2006
- readonly internalType: "uint256";
2007
- readonly name: "_salePrice";
2008
- readonly type: "uint256";
2009
- }];
2010
- readonly name: "royaltyInfo";
2011
- readonly outputs: readonly [{
2012
- readonly internalType: "address";
2013
- readonly name: "receiver";
2014
- readonly type: "address";
2015
- }, {
2016
- readonly internalType: "uint256";
2017
- readonly name: "royaltyAmount";
2018
- readonly type: "uint256";
2019
- }];
2020
- readonly stateMutability: "view";
2021
- readonly type: "function";
2022
- }, {
2023
- readonly inputs: readonly [{
2024
- readonly internalType: "address";
2025
- readonly name: "from";
2026
- readonly type: "address";
2027
- }, {
2028
- readonly internalType: "address";
2029
- readonly name: "to";
2030
- readonly type: "address";
2031
- }, {
2032
- readonly internalType: "uint256";
2033
- readonly name: "tokenId";
2034
- readonly type: "uint256";
2035
- }];
2036
- readonly name: "safeTransferFrom";
2037
- readonly outputs: readonly [];
2038
- readonly stateMutability: "nonpayable";
2039
- readonly type: "function";
2040
- }, {
2041
- readonly inputs: readonly [{
2042
- readonly internalType: "address";
2043
- readonly name: "from";
2044
- readonly type: "address";
2045
- }, {
2046
- readonly internalType: "address";
2047
- readonly name: "to";
2048
- readonly type: "address";
2049
- }, {
2050
- readonly internalType: "uint256";
2051
- readonly name: "tokenId";
2052
- readonly type: "uint256";
2053
- }, {
2054
- readonly internalType: "bytes";
2055
- readonly name: "_data";
2056
- readonly type: "bytes";
2057
- }];
2058
- readonly name: "safeTransferFrom";
2059
- readonly outputs: readonly [];
2060
- readonly stateMutability: "nonpayable";
2061
- readonly type: "function";
2062
- }, {
2063
- readonly inputs: readonly [{
2064
- readonly internalType: "address";
2065
- readonly name: "operator";
2066
- readonly type: "address";
2067
- }, {
2068
- readonly internalType: "bool";
2069
- readonly name: "approved";
2070
- readonly type: "bool";
2071
- }];
2072
- readonly name: "setApprovalForAll";
2073
- readonly outputs: readonly [];
2074
- readonly stateMutability: "nonpayable";
2075
- readonly type: "function";
2076
- }, {
2077
- readonly inputs: readonly [{
2078
- readonly internalType: "address";
2079
- readonly name: "_receiver";
2080
- readonly type: "address";
2081
- }];
2082
- readonly name: "setDefaultRoyaltyReceiver";
2083
- readonly outputs: readonly [];
2084
- readonly stateMutability: "nonpayable";
2085
- readonly type: "function";
2086
- }, {
2087
- readonly inputs: readonly [{
2088
- readonly internalType: "address";
2089
- readonly name: "_receiver";
2090
- readonly type: "address";
2091
- }, {
2092
- readonly internalType: "uint256";
2093
- readonly name: "_tokenId";
2094
- readonly type: "uint256";
2095
- }];
2096
- readonly name: "setRoyaltyReceiverForToken";
2097
- readonly outputs: readonly [];
2098
- readonly stateMutability: "nonpayable";
2099
- readonly type: "function";
2100
- }, {
2101
- readonly inputs: readonly [{
2102
- readonly internalType: "bytes4";
2103
- readonly name: "interfaceId";
2104
- readonly type: "bytes4";
2105
- }];
2106
- readonly name: "supportsInterface";
2107
- readonly outputs: readonly [{
2108
- readonly internalType: "bool";
2109
- readonly name: "";
2110
- readonly type: "bool";
2111
- }];
2112
- readonly stateMutability: "view";
2113
- readonly type: "function";
2114
- }, {
2115
- readonly inputs: readonly [];
2116
- readonly name: "symbol";
2117
- readonly outputs: readonly [{
2118
- readonly internalType: "string";
2119
- readonly name: "";
2120
- readonly type: "string";
2121
- }];
2122
- readonly stateMutability: "view";
2123
- readonly type: "function";
2124
- }, {
2125
- readonly inputs: readonly [{
2126
- readonly internalType: "uint256";
2127
- readonly name: "index";
2128
- readonly type: "uint256";
2129
- }];
2130
- readonly name: "tokenByIndex";
2131
- readonly outputs: readonly [{
2132
- readonly internalType: "uint256";
2133
- readonly name: "";
2134
- readonly type: "uint256";
2135
- }];
2136
- readonly stateMutability: "view";
2137
- readonly type: "function";
2138
- }, {
2139
- readonly inputs: readonly [{
2140
- readonly internalType: "uint256";
2141
- readonly name: "";
2142
- readonly type: "uint256";
2143
- }];
2144
- readonly name: "tokenCreator";
2145
- readonly outputs: readonly [{
2146
- readonly internalType: "address payable";
2147
- readonly name: "";
2148
- readonly type: "address";
2149
- }];
2150
- readonly stateMutability: "view";
2151
- readonly type: "function";
2152
- }, {
2153
- readonly inputs: readonly [{
2154
- readonly internalType: "address";
2155
- readonly name: "owner";
2156
- readonly type: "address";
2157
- }, {
2158
- readonly internalType: "uint256";
2159
- readonly name: "index";
2160
- readonly type: "uint256";
2161
- }];
2162
- readonly name: "tokenOfOwnerByIndex";
2163
- readonly outputs: readonly [{
2164
- readonly internalType: "uint256";
2165
- readonly name: "";
2166
- readonly type: "uint256";
2167
- }];
2168
- readonly stateMutability: "view";
2169
- readonly type: "function";
2170
- }, {
2171
- readonly inputs: readonly [{
2172
- readonly internalType: "uint256";
2173
- readonly name: "_tokenId";
2174
- readonly type: "uint256";
2175
- }];
2176
- readonly name: "tokenURI";
2177
- readonly outputs: readonly [{
2178
- readonly internalType: "string";
2179
- readonly name: "";
2180
- readonly type: "string";
2181
- }];
2182
- readonly stateMutability: "view";
2183
- readonly type: "function";
2184
- }, {
2185
- readonly inputs: readonly [];
2186
- readonly name: "totalSupply";
2187
- readonly outputs: readonly [{
2188
- readonly internalType: "uint256";
2189
- readonly name: "";
2190
- readonly type: "uint256";
2191
- }];
2192
- readonly stateMutability: "view";
2193
- readonly type: "function";
2194
- }, {
2195
- readonly inputs: readonly [{
2196
- readonly internalType: "address";
2197
- readonly name: "from";
2198
- readonly type: "address";
2199
- }, {
2200
- readonly internalType: "address";
2201
- readonly name: "to";
2202
- readonly type: "address";
2203
- }, {
2204
- readonly internalType: "uint256";
2205
- readonly name: "tokenId";
2206
- readonly type: "uint256";
2207
- }];
2208
- readonly name: "transferFrom";
2209
- readonly outputs: readonly [];
2210
- readonly stateMutability: "nonpayable";
2211
- readonly type: "function";
2212
- }, {
2213
- readonly inputs: readonly [{
2214
- readonly internalType: "address";
2215
- readonly name: "";
2216
- readonly type: "address";
2217
- }];
2218
- readonly name: "transferOwnership";
2219
- readonly outputs: readonly [];
2220
- readonly stateMutability: "view";
2221
- readonly type: "function";
2222
- }];
2882
+ declare class PaymentApprovalRequiredError extends Error {
2883
+ readonly requiredAmount: bigint;
2884
+ readonly spenderAddress: Address;
2885
+ constructor(params: {
2886
+ requiredAmount: bigint;
2887
+ spenderAddress: Address;
2888
+ });
2889
+ }
2223
2890
 
2224
- export { type CollectionSearchParams, type ImportErc721Params, type NftAttribute, type NftMediaEntry, type NftSearchParams, type PinMetadataParams, type RareClient, type RareClientConfig, type SearchPageResponse, type SupportedChain, auctionAbi, chainIds, contractAddresses, createRareClient, factoryAbi, getContractAddresses, isSupportedChain, tokenAbi, viemChains };
2891
+ export { AmountInput, type AuctionBidParams, type AuctionBidResult, type AuctionCancelParams, type AuctionCreateParams, type AuctionCreateResult, type AuctionMarketplaceNamespace, type AuctionNamespace, type AuctionSettleParams, type AuctionStatus, type AuctionStatusParams, type BatchAuctionBidParams, type BatchAuctionBidResult, type BatchAuctionCancelParams, type BatchAuctionCancelResult, type BatchAuctionCreateParams, type BatchAuctionCreateResult, type BatchAuctionNamespace, type BatchAuctionRootSource, type BatchAuctionRootsParams, type BatchAuctionSettleParams, type BatchAuctionSettleResult, type BatchAuctionStatus, type BatchAuctionStatusParams, BatchListingNamespace, type BatchOfferAcceptParams, type BatchOfferAcceptResult, type BatchOfferCreateParams, type BatchOfferCreateResult, type BatchOfferNamespace, type BatchOfferRevokeParams, type BatchOfferRevokeResult, type BatchOfferRootSource, type BatchOfferStatus, type BatchOfferStatusParams, BuildUtilsTreeParams, type BuyRareParams, type BuyRareQuote, type BuyRareResult, type BuyTokenParams, type Collection, type CollectionDeployNamespace, type CollectionLockBaseUriParams, type CollectionLockBaseUriResult, type CollectionMintBatchParams, type CollectionMintBatchResult, type CollectionMintConfigParams, type CollectionMintConfigResult, type CollectionMintParams, type CollectionMintResult, type CollectionNamespace, type CollectionPrepareLazyMintParams, type CollectionPrepareLazyMintResult, type CollectionRoyaltyInfoParams, type CollectionRoyaltyInfoResult, type CollectionSearchParams, type CollectionSetDefaultRoyaltyPercentageParams, type CollectionSetDefaultRoyaltyPercentageResult, type CollectionSetDefaultRoyaltyReceiverParams, type CollectionSetDefaultRoyaltyReceiverResult, type CollectionSetTokenRoyaltyReceiverParams, type CollectionSetTokenRoyaltyReceiverResult, type CollectionTokenCreatorParams, type CollectionTokenCreatorResult, type CollectionUpdateBaseUriParams, type CollectionUpdateBaseUriResult, type CollectionUpdateTokenUriParams, type CollectionUpdateTokenUriResult, CurrencyInfo, CurrencyInput, type CurrencyNamespace, type CurvePresetKey, type DeployErc721Params, type DeployErc721Result, type DeployLazyBatchMintParams, type DeployLazyBatchMintResult, type DeployLazyErc721Params, type DeployLazyErc721Result, type DeployLiquidEditionParams, type DeployLiquidEditionResult, type EventSearchParams, type GeneratePresetCurvesParams, type GeneratePresetCurvesResult, type ImportErc721Params, type ImportNamespace, IntegerInput, type LiquidCurvePreview, type LiquidCurveSegment, type LiquidEditionCurrentPrice, type LiquidEditionMarketState, type LiquidEditionNamespace, type LiquidEditionPoolInfo, type LiquidEditionPoolKey, type LiquidEditionTelemetry, type LiquidFactoryConfig, type LiquidRouterTokenTradeQuote, type ListingBuyParams, type ListingBuyResult, type ListingCancelParams, type ListingCreateParams, type ListingCreateResult, type ListingMarketplaceNamespace, type ListingNamespace, type ListingStatus, type ListingStatusParams, type MediaNamespace, type Nft, NftApprovalRequiredError, type NftAttribute, type NftEvent, type NftMediaEntry, type NftNamespace, type NftSearchParams, type OfferAcceptParams, type OfferAcceptResult, type OfferCancelParams, type OfferCreateParams, type OfferCreateResult, type OfferMarketplaceNamespace, type OfferNamespace, type OfferStatus, type OfferStatusParams, type Pagination, PaymentApprovalRequiredError, type PinMetadataParams, type RareClient, type RareClientCollectionSearchParams, type RareClientConfig, type RareClientContracts, type RareClientEventSearchParams, type RareClientNftGetParams, type RareClientNftSearchParams, type ReleaseAllowlistArtifact, type ReleaseAllowlistConfig, type ReleaseAllowlistInputFormat, type ReleaseAllowlistNamespace, type ReleaseAllowlistWalletProof, type ReleaseConfigureParams, type ReleaseConfigureResult, type ReleaseLimitConfig, type ReleaseLimitsNamespace, type ReleaseMintDirectSaleParams, type ReleaseMintDirectSaleResult, type ReleaseNamespace, type ReleaseSetAllowlistConfigParams, type ReleaseSetAllowlistConfigResult, type ReleaseSetLimitParams, type ReleaseSetLimitResult, type ReleaseStatus, type ReleaseStatusParams, ResolvedCurrency, ResolvedCurrencyWithDecimals, type RouterBuyParams, type RouterSellParams, type RouterSwapTokensParams, type SearchNamespace, type SearchPageResponse, type SellTokenParams, type SetLiquidEditionRenderContractParams, type SetLiquidEditionRenderContractResult, type SwapNamespace, TimestampInput, type TokenContractInfo, type TokenInfo, type TokenNamespace, type TokenStatus, type TokenTradeBaseParams, type TokenTradeExecution, type TokenTradeExecutionRoute, type TokenTradeQuote, type TokenTradeQuoteBase, type TokenTradeQuoteParams, type TokenTradeRawRouteParams, type TokenTradeResult, type TokenTradeRouteMode, type TokenTradeRouteSource, TransactionResult, type UniswapApiTokenTradeQuote, type UserNamespace, type UserProfile, UtilsMerkleProofArtifact, UtilsMerkleProofParams, type UtilsNamespace, UtilsTreeArtifact, UtilsTreeProofArtifact, UtilsTreeProofParams, UtilsTreeProofVerifyParams, type ValidateLiquidCurvesParams, createRareClient };