gondi 0.54.0 → 0.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/index.mjs +497 -72
- package/dist/index.mjs.map +4 -4
- package/dist/src/clients/api/auth.d.ts +11 -1
- package/dist/src/clients/api/index.d.ts +582 -111
- package/dist/src/clients/api/sdk.d.ts +19 -0
- package/dist/src/clients/contracts/AllV4.d.ts +8 -0
- package/dist/src/clients/contracts/AllV5.d.ts +5 -0
- package/dist/src/clients/contracts/AllV6.d.ts +5 -0
- package/dist/src/clients/contracts/index.d.ts +27 -3
- package/dist/src/errors.d.ts +1 -23
- package/dist/src/generated/graphql/index.d.ts +856 -34
- package/dist/src/gondi.d.ts +599 -14
- package/dist/src/index.d.ts +1 -1
- package/dist/src/model.d.ts +22 -1
- package/dist/src/utils/steps.d.ts +8 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/gondi.d.ts
CHANGED
|
@@ -73,17 +73,40 @@ type TransactionStep = TransactionStepBase & ({
|
|
|
73
73
|
transactionHash: Hash;
|
|
74
74
|
/** Hash the wallet broadcast; equals `transactionHash` unless it was replaced. */
|
|
75
75
|
originalTransactionHash: Hash;
|
|
76
|
+
} | {
|
|
77
|
+
/**
|
|
78
|
+
* The wallet refused to send the transaction, or it was sent and then
|
|
79
|
+
* reverted, was cancelled or was replaced by a different call.
|
|
80
|
+
*/
|
|
81
|
+
status: 'error';
|
|
82
|
+
/** Hash the wallet broadcast; absent when the wallet never sent it. */
|
|
83
|
+
transactionHash?: Hash;
|
|
84
|
+
/** What the SDK call rejects with. */
|
|
85
|
+
error: unknown;
|
|
76
86
|
});
|
|
77
|
-
|
|
87
|
+
/** A step that failed; the SDK call rejects with `error` right after reporting it. */
|
|
88
|
+
type FailedStep = {
|
|
89
|
+
status: 'error';
|
|
90
|
+
error: unknown;
|
|
91
|
+
};
|
|
92
|
+
type Step = ({
|
|
78
93
|
type: 'signature';
|
|
79
94
|
primaryType: string;
|
|
95
|
+
} & ({
|
|
80
96
|
status: 'waiting' | 'success';
|
|
81
|
-
} | TransactionStep | {
|
|
97
|
+
} | FailedStep)) | TransactionStep | ({
|
|
82
98
|
type: 'api';
|
|
83
|
-
status: 'waiting' | 'success';
|
|
84
99
|
mutationName: string;
|
|
85
100
|
variables?: OperationVariables;
|
|
86
|
-
}
|
|
101
|
+
} & ({
|
|
102
|
+
status: 'waiting' | 'success';
|
|
103
|
+
} | FailedStep));
|
|
104
|
+
/**
|
|
105
|
+
* Reports each signature, transaction and API mutation as it moves from
|
|
106
|
+
* `waiting` to `success`, or to `error` when it fails. The SDK awaits every call.
|
|
107
|
+
* An error the callback itself throws is not a failed step: the SDK call
|
|
108
|
+
* rejects with it and no `error` step follows.
|
|
109
|
+
*/
|
|
87
110
|
export type OnStepChange = (step: Step) => Promise<void>;
|
|
88
111
|
export declare class Gondi {
|
|
89
112
|
private pendingSingleNftPublications;
|
|
@@ -295,7 +318,9 @@ export declare class Gondi {
|
|
|
295
318
|
*/
|
|
296
319
|
makeOrder(orderInput: OrderInput): Promise<{
|
|
297
320
|
amount?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
321
|
+
budgetId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
|
|
298
322
|
contractAddress: import("./generated/graphql").Scalars["Address"];
|
|
323
|
+
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
299
324
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
300
325
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
301
326
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
@@ -312,7 +337,9 @@ export declare class Gondi {
|
|
|
312
337
|
marketPlaceAddress: Address;
|
|
313
338
|
} | {
|
|
314
339
|
amount?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
340
|
+
budgetId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
|
|
315
341
|
collectionId: import("./generated/graphql").Scalars["Int"];
|
|
342
|
+
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
316
343
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
317
344
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
318
345
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
@@ -329,6 +356,8 @@ export declare class Gondi {
|
|
|
329
356
|
marketPlaceAddress: Address;
|
|
330
357
|
} | {
|
|
331
358
|
amount?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
359
|
+
budgetId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
|
|
360
|
+
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
332
361
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
333
362
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
334
363
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
@@ -346,8 +375,10 @@ export declare class Gondi {
|
|
|
346
375
|
marketPlaceAddress: Address;
|
|
347
376
|
} | {
|
|
348
377
|
amount?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
378
|
+
budgetId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
|
|
349
379
|
collectionId: import("./generated/graphql").Scalars["Int"];
|
|
350
380
|
condition?: import("./generated/graphql").InputMaybe<import("./generated/graphql").NftSetConditionInput>;
|
|
381
|
+
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
351
382
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
352
383
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
353
384
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
@@ -365,7 +396,9 @@ export declare class Gondi {
|
|
|
365
396
|
marketPlaceAddress: Address;
|
|
366
397
|
} | {
|
|
367
398
|
amount?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
399
|
+
budgetId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
|
|
368
400
|
contractAddress: import("./generated/graphql").Scalars["Address"];
|
|
401
|
+
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
369
402
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
370
403
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
371
404
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
@@ -382,7 +415,9 @@ export declare class Gondi {
|
|
|
382
415
|
marketPlaceAddress: Address;
|
|
383
416
|
} | {
|
|
384
417
|
amount?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
418
|
+
budgetId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
|
|
385
419
|
collectionId: import("./generated/graphql").Scalars["Int"];
|
|
420
|
+
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
386
421
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
387
422
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
388
423
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
@@ -399,6 +434,8 @@ export declare class Gondi {
|
|
|
399
434
|
marketPlaceAddress: Address;
|
|
400
435
|
} | {
|
|
401
436
|
amount?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
437
|
+
budgetId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
|
|
438
|
+
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
402
439
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
403
440
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
404
441
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
@@ -416,8 +453,10 @@ export declare class Gondi {
|
|
|
416
453
|
marketPlaceAddress: Address;
|
|
417
454
|
} | {
|
|
418
455
|
amount?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
456
|
+
budgetId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
|
|
419
457
|
collectionId: import("./generated/graphql").Scalars["Int"];
|
|
420
458
|
condition?: import("./generated/graphql").InputMaybe<import("./generated/graphql").NftSetConditionInput>;
|
|
459
|
+
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
421
460
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
422
461
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
423
462
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
@@ -435,7 +474,9 @@ export declare class Gondi {
|
|
|
435
474
|
marketPlaceAddress: Address;
|
|
436
475
|
} | {
|
|
437
476
|
amount?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
477
|
+
budgetId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
|
|
438
478
|
contractAddress: import("./generated/graphql").Scalars["Address"];
|
|
479
|
+
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
439
480
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
440
481
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
441
482
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
@@ -452,7 +493,9 @@ export declare class Gondi {
|
|
|
452
493
|
marketPlaceAddress: Address;
|
|
453
494
|
} | {
|
|
454
495
|
amount?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
496
|
+
budgetId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
|
|
455
497
|
collectionId: import("./generated/graphql").Scalars["Int"];
|
|
498
|
+
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
456
499
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
457
500
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
458
501
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
@@ -469,6 +512,8 @@ export declare class Gondi {
|
|
|
469
512
|
marketPlaceAddress: Address;
|
|
470
513
|
} | {
|
|
471
514
|
amount?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
515
|
+
budgetId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
|
|
516
|
+
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
472
517
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
473
518
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
474
519
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
@@ -486,8 +531,10 @@ export declare class Gondi {
|
|
|
486
531
|
marketPlaceAddress: Address;
|
|
487
532
|
} | {
|
|
488
533
|
amount?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
534
|
+
budgetId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
|
|
489
535
|
collectionId: import("./generated/graphql").Scalars["Int"];
|
|
490
536
|
condition?: import("./generated/graphql").InputMaybe<import("./generated/graphql").NftSetConditionInput>;
|
|
537
|
+
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
491
538
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
492
539
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
493
540
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
@@ -505,7 +552,9 @@ export declare class Gondi {
|
|
|
505
552
|
marketPlaceAddress: Address;
|
|
506
553
|
} | {
|
|
507
554
|
amount?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
555
|
+
budgetId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
|
|
508
556
|
contractAddress: import("./generated/graphql").Scalars["Address"];
|
|
557
|
+
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
509
558
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
510
559
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
511
560
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
@@ -522,7 +571,9 @@ export declare class Gondi {
|
|
|
522
571
|
marketPlaceAddress: Address;
|
|
523
572
|
} | {
|
|
524
573
|
amount?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
574
|
+
budgetId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
|
|
525
575
|
collectionId: import("./generated/graphql").Scalars["Int"];
|
|
576
|
+
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
526
577
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
527
578
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
528
579
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
@@ -539,6 +590,8 @@ export declare class Gondi {
|
|
|
539
590
|
marketPlaceAddress: Address;
|
|
540
591
|
} | {
|
|
541
592
|
amount?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
593
|
+
budgetId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
|
|
594
|
+
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
542
595
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
543
596
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
544
597
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
@@ -556,8 +609,10 @@ export declare class Gondi {
|
|
|
556
609
|
marketPlaceAddress: Address;
|
|
557
610
|
} | {
|
|
558
611
|
amount?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
612
|
+
budgetId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
|
|
559
613
|
collectionId: import("./generated/graphql").Scalars["Int"];
|
|
560
614
|
condition?: import("./generated/graphql").InputMaybe<import("./generated/graphql").NftSetConditionInput>;
|
|
615
|
+
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
561
616
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
562
617
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
563
618
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
@@ -575,7 +630,9 @@ export declare class Gondi {
|
|
|
575
630
|
marketPlaceAddress: Address;
|
|
576
631
|
} | {
|
|
577
632
|
amount?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
633
|
+
budgetId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
|
|
578
634
|
contractAddress: import("./generated/graphql").Scalars["Address"];
|
|
635
|
+
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
579
636
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
580
637
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
581
638
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
@@ -592,7 +649,9 @@ export declare class Gondi {
|
|
|
592
649
|
marketPlaceAddress: Address;
|
|
593
650
|
} | {
|
|
594
651
|
amount?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
652
|
+
budgetId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
|
|
595
653
|
collectionId: import("./generated/graphql").Scalars["Int"];
|
|
654
|
+
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
596
655
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
597
656
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
598
657
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
@@ -609,6 +668,8 @@ export declare class Gondi {
|
|
|
609
668
|
marketPlaceAddress: Address;
|
|
610
669
|
} | {
|
|
611
670
|
amount?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
671
|
+
budgetId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
|
|
672
|
+
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
612
673
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
613
674
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
614
675
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
@@ -626,8 +687,10 @@ export declare class Gondi {
|
|
|
626
687
|
marketPlaceAddress: Address;
|
|
627
688
|
} | {
|
|
628
689
|
amount?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
690
|
+
budgetId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
|
|
629
691
|
collectionId: import("./generated/graphql").Scalars["Int"];
|
|
630
692
|
condition?: import("./generated/graphql").InputMaybe<import("./generated/graphql").NftSetConditionInput>;
|
|
693
|
+
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
631
694
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
632
695
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
633
696
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
@@ -666,6 +729,46 @@ export declare class Gondi {
|
|
|
666
729
|
id: string;
|
|
667
730
|
};
|
|
668
731
|
}[]>;
|
|
732
|
+
/**
|
|
733
|
+
* Publishes `orders` like `makeOrders` and lists each one on OpenSea too, under the same
|
|
734
|
+
* signature. Public asks on Ethereum only; the owner must have approved OpenSea's conduit for
|
|
735
|
+
* each collection. A refusal never touches the GONDI ask: `openSeaListings` holds one entry per
|
|
736
|
+
* ask, with its `orderHash` once OpenSea took it, or the `error` saying why it did not.
|
|
737
|
+
*/
|
|
738
|
+
makeOrdersOnOpenSea(orders: SingleNftOrderInput[]): Promise<{
|
|
739
|
+
__typename?: "BulkNFTOrdersResult";
|
|
740
|
+
orders: Array<{
|
|
741
|
+
__typename?: "SingleNFTOrder";
|
|
742
|
+
id: string;
|
|
743
|
+
price: bigint;
|
|
744
|
+
fees: bigint;
|
|
745
|
+
currencyAddress: Address;
|
|
746
|
+
marketPlace: string;
|
|
747
|
+
status: string;
|
|
748
|
+
startTime: Date;
|
|
749
|
+
expiration: Date;
|
|
750
|
+
maker: Address;
|
|
751
|
+
isAsk: boolean;
|
|
752
|
+
nonce: bigint;
|
|
753
|
+
taker: Address;
|
|
754
|
+
signature: Hex;
|
|
755
|
+
marketPlaceAddress: Address;
|
|
756
|
+
evmOrder?: object | null;
|
|
757
|
+
nft: {
|
|
758
|
+
__typename?: "NFT";
|
|
759
|
+
id: string;
|
|
760
|
+
};
|
|
761
|
+
}>;
|
|
762
|
+
openSeaListings: Array<{
|
|
763
|
+
__typename?: "OpenSeaListingResult";
|
|
764
|
+
contractAddress: Address;
|
|
765
|
+
tokenId: bigint;
|
|
766
|
+
orderHash?: Hash | null;
|
|
767
|
+
error?: string | null;
|
|
768
|
+
}>;
|
|
769
|
+
}>;
|
|
770
|
+
/** Publishes the batch, signing the typed data the API answers with when it asks for it. */
|
|
771
|
+
private publishBulkOrders;
|
|
669
772
|
makeDeal(dealInput: DealInput): Promise<{
|
|
670
773
|
blockchain: import("./generated/graphql").BlockchainEnum;
|
|
671
774
|
counterOfferForId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int"]>;
|
|
@@ -2425,6 +2528,477 @@ export declare class Gondi {
|
|
|
2425
2528
|
slug?: never;
|
|
2426
2529
|
contractAddress: Address;
|
|
2427
2530
|
}): Promise<number[]>;
|
|
2531
|
+
/**
|
|
2532
|
+
* Lists trade orders — bids and listings — across the marketplaces GONDI indexes, newest first
|
|
2533
|
+
* unless `sortBy` says otherwise. Only active orders unless `statuses` is given.
|
|
2534
|
+
*
|
|
2535
|
+
* @returns One page of orders, with the cursor of the next one.
|
|
2536
|
+
*/
|
|
2537
|
+
orders({ side, collections, traits, nfts, makers, excludeMakers, currencies, statuses, matchMode, orderTypes, sortBy, limit, cursor, }: model.ListOrdersProps): Promise<{
|
|
2538
|
+
orders: ({
|
|
2539
|
+
__typename: "BuyNowPayLaterOrder";
|
|
2540
|
+
id: string;
|
|
2541
|
+
price: bigint;
|
|
2542
|
+
steppedPrice?: bigint | null;
|
|
2543
|
+
currencyAddress: Address;
|
|
2544
|
+
maker: Address;
|
|
2545
|
+
isAsk: boolean;
|
|
2546
|
+
status: string;
|
|
2547
|
+
startTime: Date;
|
|
2548
|
+
expiration: Date;
|
|
2549
|
+
executions: number;
|
|
2550
|
+
maxExecutions: number;
|
|
2551
|
+
cancelsOffChain: boolean;
|
|
2552
|
+
marketPlace: string;
|
|
2553
|
+
marketPlaceAddress: Address;
|
|
2554
|
+
} | {
|
|
2555
|
+
__typename: "CollectionOrder";
|
|
2556
|
+
collectionId: number;
|
|
2557
|
+
id: string;
|
|
2558
|
+
price: bigint;
|
|
2559
|
+
steppedPrice?: bigint | null;
|
|
2560
|
+
currencyAddress: Address;
|
|
2561
|
+
maker: Address;
|
|
2562
|
+
isAsk: boolean;
|
|
2563
|
+
status: string;
|
|
2564
|
+
startTime: Date;
|
|
2565
|
+
expiration: Date;
|
|
2566
|
+
executions: number;
|
|
2567
|
+
maxExecutions: number;
|
|
2568
|
+
cancelsOffChain: boolean;
|
|
2569
|
+
marketPlace: string;
|
|
2570
|
+
marketPlaceAddress: Address;
|
|
2571
|
+
} | {
|
|
2572
|
+
__typename: "MultipleTraitOrder";
|
|
2573
|
+
collectionId: number;
|
|
2574
|
+
id: string;
|
|
2575
|
+
price: bigint;
|
|
2576
|
+
steppedPrice?: bigint | null;
|
|
2577
|
+
currencyAddress: Address;
|
|
2578
|
+
maker: Address;
|
|
2579
|
+
isAsk: boolean;
|
|
2580
|
+
status: string;
|
|
2581
|
+
startTime: Date;
|
|
2582
|
+
expiration: Date;
|
|
2583
|
+
executions: number;
|
|
2584
|
+
maxExecutions: number;
|
|
2585
|
+
cancelsOffChain: boolean;
|
|
2586
|
+
marketPlace: string;
|
|
2587
|
+
marketPlaceAddress: Address;
|
|
2588
|
+
} | {
|
|
2589
|
+
__typename: "SellAndRepayOrder";
|
|
2590
|
+
id: string;
|
|
2591
|
+
price: bigint;
|
|
2592
|
+
steppedPrice?: bigint | null;
|
|
2593
|
+
currencyAddress: Address;
|
|
2594
|
+
maker: Address;
|
|
2595
|
+
isAsk: boolean;
|
|
2596
|
+
status: string;
|
|
2597
|
+
startTime: Date;
|
|
2598
|
+
expiration: Date;
|
|
2599
|
+
executions: number;
|
|
2600
|
+
maxExecutions: number;
|
|
2601
|
+
cancelsOffChain: boolean;
|
|
2602
|
+
marketPlace: string;
|
|
2603
|
+
marketPlaceAddress: Address;
|
|
2604
|
+
} | {
|
|
2605
|
+
__typename: "SetBidOrder";
|
|
2606
|
+
collectionId: number;
|
|
2607
|
+
id: string;
|
|
2608
|
+
price: bigint;
|
|
2609
|
+
steppedPrice?: bigint | null;
|
|
2610
|
+
currencyAddress: Address;
|
|
2611
|
+
maker: Address;
|
|
2612
|
+
isAsk: boolean;
|
|
2613
|
+
status: string;
|
|
2614
|
+
startTime: Date;
|
|
2615
|
+
expiration: Date;
|
|
2616
|
+
executions: number;
|
|
2617
|
+
maxExecutions: number;
|
|
2618
|
+
cancelsOffChain: boolean;
|
|
2619
|
+
marketPlace: string;
|
|
2620
|
+
marketPlaceAddress: Address;
|
|
2621
|
+
} | {
|
|
2622
|
+
__typename: "SingleNFTOrder";
|
|
2623
|
+
id: string;
|
|
2624
|
+
price: bigint;
|
|
2625
|
+
steppedPrice?: bigint | null;
|
|
2626
|
+
currencyAddress: Address;
|
|
2627
|
+
maker: Address;
|
|
2628
|
+
isAsk: boolean;
|
|
2629
|
+
status: string;
|
|
2630
|
+
startTime: Date;
|
|
2631
|
+
expiration: Date;
|
|
2632
|
+
executions: number;
|
|
2633
|
+
maxExecutions: number;
|
|
2634
|
+
cancelsOffChain: boolean;
|
|
2635
|
+
marketPlace: string;
|
|
2636
|
+
marketPlaceAddress: Address;
|
|
2637
|
+
nft: {
|
|
2638
|
+
__typename?: "NFT";
|
|
2639
|
+
id: string;
|
|
2640
|
+
tokenId: bigint;
|
|
2641
|
+
collection?: {
|
|
2642
|
+
__typename?: "Collection";
|
|
2643
|
+
id: string;
|
|
2644
|
+
} | null;
|
|
2645
|
+
};
|
|
2646
|
+
} | {
|
|
2647
|
+
__typename: "StealthMaskedOrder";
|
|
2648
|
+
id: string;
|
|
2649
|
+
price: bigint;
|
|
2650
|
+
steppedPrice?: bigint | null;
|
|
2651
|
+
currencyAddress: Address;
|
|
2652
|
+
maker: Address;
|
|
2653
|
+
isAsk: boolean;
|
|
2654
|
+
status: string;
|
|
2655
|
+
startTime: Date;
|
|
2656
|
+
expiration: Date;
|
|
2657
|
+
executions: number;
|
|
2658
|
+
maxExecutions: number;
|
|
2659
|
+
cancelsOffChain: boolean;
|
|
2660
|
+
marketPlace: string;
|
|
2661
|
+
marketPlaceAddress: Address;
|
|
2662
|
+
} | {
|
|
2663
|
+
__typename: "TraitOrder";
|
|
2664
|
+
collectionId: number;
|
|
2665
|
+
id: string;
|
|
2666
|
+
price: bigint;
|
|
2667
|
+
steppedPrice?: bigint | null;
|
|
2668
|
+
currencyAddress: Address;
|
|
2669
|
+
maker: Address;
|
|
2670
|
+
isAsk: boolean;
|
|
2671
|
+
status: string;
|
|
2672
|
+
startTime: Date;
|
|
2673
|
+
expiration: Date;
|
|
2674
|
+
executions: number;
|
|
2675
|
+
maxExecutions: number;
|
|
2676
|
+
cancelsOffChain: boolean;
|
|
2677
|
+
marketPlace: string;
|
|
2678
|
+
marketPlaceAddress: Address;
|
|
2679
|
+
})[];
|
|
2680
|
+
hasNextPage: true;
|
|
2681
|
+
cursor: string;
|
|
2682
|
+
} | {
|
|
2683
|
+
orders: ({
|
|
2684
|
+
__typename: "BuyNowPayLaterOrder";
|
|
2685
|
+
id: string;
|
|
2686
|
+
price: bigint;
|
|
2687
|
+
steppedPrice?: bigint | null;
|
|
2688
|
+
currencyAddress: Address;
|
|
2689
|
+
maker: Address;
|
|
2690
|
+
isAsk: boolean;
|
|
2691
|
+
status: string;
|
|
2692
|
+
startTime: Date;
|
|
2693
|
+
expiration: Date;
|
|
2694
|
+
executions: number;
|
|
2695
|
+
maxExecutions: number;
|
|
2696
|
+
cancelsOffChain: boolean;
|
|
2697
|
+
marketPlace: string;
|
|
2698
|
+
marketPlaceAddress: Address;
|
|
2699
|
+
} | {
|
|
2700
|
+
__typename: "CollectionOrder";
|
|
2701
|
+
collectionId: number;
|
|
2702
|
+
id: string;
|
|
2703
|
+
price: bigint;
|
|
2704
|
+
steppedPrice?: bigint | null;
|
|
2705
|
+
currencyAddress: Address;
|
|
2706
|
+
maker: Address;
|
|
2707
|
+
isAsk: boolean;
|
|
2708
|
+
status: string;
|
|
2709
|
+
startTime: Date;
|
|
2710
|
+
expiration: Date;
|
|
2711
|
+
executions: number;
|
|
2712
|
+
maxExecutions: number;
|
|
2713
|
+
cancelsOffChain: boolean;
|
|
2714
|
+
marketPlace: string;
|
|
2715
|
+
marketPlaceAddress: Address;
|
|
2716
|
+
} | {
|
|
2717
|
+
__typename: "MultipleTraitOrder";
|
|
2718
|
+
collectionId: number;
|
|
2719
|
+
id: string;
|
|
2720
|
+
price: bigint;
|
|
2721
|
+
steppedPrice?: bigint | null;
|
|
2722
|
+
currencyAddress: Address;
|
|
2723
|
+
maker: Address;
|
|
2724
|
+
isAsk: boolean;
|
|
2725
|
+
status: string;
|
|
2726
|
+
startTime: Date;
|
|
2727
|
+
expiration: Date;
|
|
2728
|
+
executions: number;
|
|
2729
|
+
maxExecutions: number;
|
|
2730
|
+
cancelsOffChain: boolean;
|
|
2731
|
+
marketPlace: string;
|
|
2732
|
+
marketPlaceAddress: Address;
|
|
2733
|
+
} | {
|
|
2734
|
+
__typename: "SellAndRepayOrder";
|
|
2735
|
+
id: string;
|
|
2736
|
+
price: bigint;
|
|
2737
|
+
steppedPrice?: bigint | null;
|
|
2738
|
+
currencyAddress: Address;
|
|
2739
|
+
maker: Address;
|
|
2740
|
+
isAsk: boolean;
|
|
2741
|
+
status: string;
|
|
2742
|
+
startTime: Date;
|
|
2743
|
+
expiration: Date;
|
|
2744
|
+
executions: number;
|
|
2745
|
+
maxExecutions: number;
|
|
2746
|
+
cancelsOffChain: boolean;
|
|
2747
|
+
marketPlace: string;
|
|
2748
|
+
marketPlaceAddress: Address;
|
|
2749
|
+
} | {
|
|
2750
|
+
__typename: "SetBidOrder";
|
|
2751
|
+
collectionId: number;
|
|
2752
|
+
id: string;
|
|
2753
|
+
price: bigint;
|
|
2754
|
+
steppedPrice?: bigint | null;
|
|
2755
|
+
currencyAddress: Address;
|
|
2756
|
+
maker: Address;
|
|
2757
|
+
isAsk: boolean;
|
|
2758
|
+
status: string;
|
|
2759
|
+
startTime: Date;
|
|
2760
|
+
expiration: Date;
|
|
2761
|
+
executions: number;
|
|
2762
|
+
maxExecutions: number;
|
|
2763
|
+
cancelsOffChain: boolean;
|
|
2764
|
+
marketPlace: string;
|
|
2765
|
+
marketPlaceAddress: Address;
|
|
2766
|
+
} | {
|
|
2767
|
+
__typename: "SingleNFTOrder";
|
|
2768
|
+
id: string;
|
|
2769
|
+
price: bigint;
|
|
2770
|
+
steppedPrice?: bigint | null;
|
|
2771
|
+
currencyAddress: Address;
|
|
2772
|
+
maker: Address;
|
|
2773
|
+
isAsk: boolean;
|
|
2774
|
+
status: string;
|
|
2775
|
+
startTime: Date;
|
|
2776
|
+
expiration: Date;
|
|
2777
|
+
executions: number;
|
|
2778
|
+
maxExecutions: number;
|
|
2779
|
+
cancelsOffChain: boolean;
|
|
2780
|
+
marketPlace: string;
|
|
2781
|
+
marketPlaceAddress: Address;
|
|
2782
|
+
nft: {
|
|
2783
|
+
__typename?: "NFT";
|
|
2784
|
+
id: string;
|
|
2785
|
+
tokenId: bigint;
|
|
2786
|
+
collection?: {
|
|
2787
|
+
__typename?: "Collection";
|
|
2788
|
+
id: string;
|
|
2789
|
+
} | null;
|
|
2790
|
+
};
|
|
2791
|
+
} | {
|
|
2792
|
+
__typename: "StealthMaskedOrder";
|
|
2793
|
+
id: string;
|
|
2794
|
+
price: bigint;
|
|
2795
|
+
steppedPrice?: bigint | null;
|
|
2796
|
+
currencyAddress: Address;
|
|
2797
|
+
maker: Address;
|
|
2798
|
+
isAsk: boolean;
|
|
2799
|
+
status: string;
|
|
2800
|
+
startTime: Date;
|
|
2801
|
+
expiration: Date;
|
|
2802
|
+
executions: number;
|
|
2803
|
+
maxExecutions: number;
|
|
2804
|
+
cancelsOffChain: boolean;
|
|
2805
|
+
marketPlace: string;
|
|
2806
|
+
marketPlaceAddress: Address;
|
|
2807
|
+
} | {
|
|
2808
|
+
__typename: "TraitOrder";
|
|
2809
|
+
collectionId: number;
|
|
2810
|
+
id: string;
|
|
2811
|
+
price: bigint;
|
|
2812
|
+
steppedPrice?: bigint | null;
|
|
2813
|
+
currencyAddress: Address;
|
|
2814
|
+
maker: Address;
|
|
2815
|
+
isAsk: boolean;
|
|
2816
|
+
status: string;
|
|
2817
|
+
startTime: Date;
|
|
2818
|
+
expiration: Date;
|
|
2819
|
+
executions: number;
|
|
2820
|
+
maxExecutions: number;
|
|
2821
|
+
cancelsOffChain: boolean;
|
|
2822
|
+
marketPlace: string;
|
|
2823
|
+
marketPlaceAddress: Address;
|
|
2824
|
+
})[];
|
|
2825
|
+
hasNextPage: false;
|
|
2826
|
+
cursor: null;
|
|
2827
|
+
}>;
|
|
2828
|
+
/**
|
|
2829
|
+
* Reads what pricing and placing a bid or a listing on a collection needs: its id and contract
|
|
2830
|
+
* address, the Seaport conduit key its listings are approved through (zero for Seaport itself),
|
|
2831
|
+
* its floor (the cheapest active listing in `currencies`, any currency when omitted), its highest
|
|
2832
|
+
* bid that any item can fill, and its royalties (`required` ones must be paid as listing fees).
|
|
2833
|
+
*
|
|
2834
|
+
* Looks the collection up by slug, the lookup the API answers fastest.
|
|
2835
|
+
*
|
|
2836
|
+
* @throws Error when no collection has `slug`.
|
|
2837
|
+
*/
|
|
2838
|
+
collectionMarket({ slug, currencies }: {
|
|
2839
|
+
slug: string;
|
|
2840
|
+
currencies?: Address[];
|
|
2841
|
+
}): Promise<{
|
|
2842
|
+
collectionId: number;
|
|
2843
|
+
contractAddress: `0x${string}`;
|
|
2844
|
+
seaportConduitKey: `0x${string}`;
|
|
2845
|
+
floorPrice: {
|
|
2846
|
+
__typename?: "BigIntCurrencyAmount";
|
|
2847
|
+
amount: bigint;
|
|
2848
|
+
currency: {
|
|
2849
|
+
__typename?: "Currency";
|
|
2850
|
+
address: Address;
|
|
2851
|
+
};
|
|
2852
|
+
} | null;
|
|
2853
|
+
highestBid: {
|
|
2854
|
+
__typename: "BuyNowPayLaterOrder";
|
|
2855
|
+
id: string;
|
|
2856
|
+
price: bigint;
|
|
2857
|
+
steppedPrice?: bigint | null;
|
|
2858
|
+
currencyAddress: Address;
|
|
2859
|
+
maker: Address;
|
|
2860
|
+
isAsk: boolean;
|
|
2861
|
+
status: string;
|
|
2862
|
+
startTime: Date;
|
|
2863
|
+
expiration: Date;
|
|
2864
|
+
executions: number;
|
|
2865
|
+
maxExecutions: number;
|
|
2866
|
+
cancelsOffChain: boolean;
|
|
2867
|
+
marketPlace: string;
|
|
2868
|
+
marketPlaceAddress: Address;
|
|
2869
|
+
} | {
|
|
2870
|
+
__typename: "CollectionOrder";
|
|
2871
|
+
collectionId: number;
|
|
2872
|
+
id: string;
|
|
2873
|
+
price: bigint;
|
|
2874
|
+
steppedPrice?: bigint | null;
|
|
2875
|
+
currencyAddress: Address;
|
|
2876
|
+
maker: Address;
|
|
2877
|
+
isAsk: boolean;
|
|
2878
|
+
status: string;
|
|
2879
|
+
startTime: Date;
|
|
2880
|
+
expiration: Date;
|
|
2881
|
+
executions: number;
|
|
2882
|
+
maxExecutions: number;
|
|
2883
|
+
cancelsOffChain: boolean;
|
|
2884
|
+
marketPlace: string;
|
|
2885
|
+
marketPlaceAddress: Address;
|
|
2886
|
+
} | {
|
|
2887
|
+
__typename: "MultipleTraitOrder";
|
|
2888
|
+
collectionId: number;
|
|
2889
|
+
id: string;
|
|
2890
|
+
price: bigint;
|
|
2891
|
+
steppedPrice?: bigint | null;
|
|
2892
|
+
currencyAddress: Address;
|
|
2893
|
+
maker: Address;
|
|
2894
|
+
isAsk: boolean;
|
|
2895
|
+
status: string;
|
|
2896
|
+
startTime: Date;
|
|
2897
|
+
expiration: Date;
|
|
2898
|
+
executions: number;
|
|
2899
|
+
maxExecutions: number;
|
|
2900
|
+
cancelsOffChain: boolean;
|
|
2901
|
+
marketPlace: string;
|
|
2902
|
+
marketPlaceAddress: Address;
|
|
2903
|
+
} | {
|
|
2904
|
+
__typename: "SellAndRepayOrder";
|
|
2905
|
+
id: string;
|
|
2906
|
+
price: bigint;
|
|
2907
|
+
steppedPrice?: bigint | null;
|
|
2908
|
+
currencyAddress: Address;
|
|
2909
|
+
maker: Address;
|
|
2910
|
+
isAsk: boolean;
|
|
2911
|
+
status: string;
|
|
2912
|
+
startTime: Date;
|
|
2913
|
+
expiration: Date;
|
|
2914
|
+
executions: number;
|
|
2915
|
+
maxExecutions: number;
|
|
2916
|
+
cancelsOffChain: boolean;
|
|
2917
|
+
marketPlace: string;
|
|
2918
|
+
marketPlaceAddress: Address;
|
|
2919
|
+
} | {
|
|
2920
|
+
__typename: "SetBidOrder";
|
|
2921
|
+
collectionId: number;
|
|
2922
|
+
id: string;
|
|
2923
|
+
price: bigint;
|
|
2924
|
+
steppedPrice?: bigint | null;
|
|
2925
|
+
currencyAddress: Address;
|
|
2926
|
+
maker: Address;
|
|
2927
|
+
isAsk: boolean;
|
|
2928
|
+
status: string;
|
|
2929
|
+
startTime: Date;
|
|
2930
|
+
expiration: Date;
|
|
2931
|
+
executions: number;
|
|
2932
|
+
maxExecutions: number;
|
|
2933
|
+
cancelsOffChain: boolean;
|
|
2934
|
+
marketPlace: string;
|
|
2935
|
+
marketPlaceAddress: Address;
|
|
2936
|
+
} | {
|
|
2937
|
+
__typename: "SingleNFTOrder";
|
|
2938
|
+
id: string;
|
|
2939
|
+
price: bigint;
|
|
2940
|
+
steppedPrice?: bigint | null;
|
|
2941
|
+
currencyAddress: Address;
|
|
2942
|
+
maker: Address;
|
|
2943
|
+
isAsk: boolean;
|
|
2944
|
+
status: string;
|
|
2945
|
+
startTime: Date;
|
|
2946
|
+
expiration: Date;
|
|
2947
|
+
executions: number;
|
|
2948
|
+
maxExecutions: number;
|
|
2949
|
+
cancelsOffChain: boolean;
|
|
2950
|
+
marketPlace: string;
|
|
2951
|
+
marketPlaceAddress: Address;
|
|
2952
|
+
nft: {
|
|
2953
|
+
__typename?: "NFT";
|
|
2954
|
+
id: string;
|
|
2955
|
+
tokenId: bigint;
|
|
2956
|
+
collection?: {
|
|
2957
|
+
__typename?: "Collection";
|
|
2958
|
+
id: string;
|
|
2959
|
+
} | null;
|
|
2960
|
+
};
|
|
2961
|
+
} | {
|
|
2962
|
+
__typename: "StealthMaskedOrder";
|
|
2963
|
+
id: string;
|
|
2964
|
+
price: bigint;
|
|
2965
|
+
steppedPrice?: bigint | null;
|
|
2966
|
+
currencyAddress: Address;
|
|
2967
|
+
maker: Address;
|
|
2968
|
+
isAsk: boolean;
|
|
2969
|
+
status: string;
|
|
2970
|
+
startTime: Date;
|
|
2971
|
+
expiration: Date;
|
|
2972
|
+
executions: number;
|
|
2973
|
+
maxExecutions: number;
|
|
2974
|
+
cancelsOffChain: boolean;
|
|
2975
|
+
marketPlace: string;
|
|
2976
|
+
marketPlaceAddress: Address;
|
|
2977
|
+
} | {
|
|
2978
|
+
__typename: "TraitOrder";
|
|
2979
|
+
collectionId: number;
|
|
2980
|
+
id: string;
|
|
2981
|
+
price: bigint;
|
|
2982
|
+
steppedPrice?: bigint | null;
|
|
2983
|
+
currencyAddress: Address;
|
|
2984
|
+
maker: Address;
|
|
2985
|
+
isAsk: boolean;
|
|
2986
|
+
status: string;
|
|
2987
|
+
startTime: Date;
|
|
2988
|
+
expiration: Date;
|
|
2989
|
+
executions: number;
|
|
2990
|
+
maxExecutions: number;
|
|
2991
|
+
cancelsOffChain: boolean;
|
|
2992
|
+
marketPlace: string;
|
|
2993
|
+
marketPlaceAddress: Address;
|
|
2994
|
+
} | null;
|
|
2995
|
+
royalties: {
|
|
2996
|
+
__typename?: "Royalty";
|
|
2997
|
+
beneficiary: Address;
|
|
2998
|
+
percentage: number;
|
|
2999
|
+
required: boolean;
|
|
3000
|
+
}[];
|
|
3001
|
+
}>;
|
|
2428
3002
|
collectionStepsById(props: {
|
|
2429
3003
|
collectionId: number;
|
|
2430
3004
|
}): Promise<{
|
|
@@ -2553,6 +3127,12 @@ export declare class Gondi {
|
|
|
2553
3127
|
durationFromRenegotiationOrStart: bigint;
|
|
2554
3128
|
};
|
|
2555
3129
|
}): Promise<boolean>;
|
|
3130
|
+
/**
|
|
3131
|
+
* The MultiSourceLoan address `makeSingleNftOffer`, `makeCollectionOffer` and
|
|
3132
|
+
* `makeTraitOffer` sign for on the wallet's chain: the `to` a lender approves
|
|
3133
|
+
* the principal for before publishing those offers.
|
|
3134
|
+
*/
|
|
3135
|
+
offerContractAddress(): `0x${string}`;
|
|
2556
3136
|
private getDefaults;
|
|
2557
3137
|
refinanceFullLoan({ offer, loan, loanId, }: {
|
|
2558
3138
|
offer: model.RenegotiationOffer;
|
|
@@ -3540,15 +4120,17 @@ export declare class Gondi {
|
|
|
3540
4120
|
nftAddress: Address;
|
|
3541
4121
|
tokenId: bigint;
|
|
3542
4122
|
}): Promise<bigint>;
|
|
3543
|
-
|
|
4123
|
+
/** Whether the wallet has approved `to` as operator for every NFT of `nftAddress`. */
|
|
4124
|
+
isApprovedNFTForAll({ nftAddress, standard, to, }: {
|
|
3544
4125
|
nftAddress: Address;
|
|
3545
4126
|
standard: Parameters<Contracts['Nft']>[1];
|
|
3546
|
-
to
|
|
4127
|
+
to: Address;
|
|
3547
4128
|
}): Promise<boolean>;
|
|
3548
|
-
|
|
4129
|
+
/** Approves `to`, the contract that will pull the NFT, as operator for all of `nftAddress`. */
|
|
4130
|
+
approveNFTForAll({ nftAddress, standard, to, }: {
|
|
3549
4131
|
nftAddress: Address;
|
|
3550
4132
|
standard: Parameters<Contracts['Nft']>[1];
|
|
3551
|
-
to
|
|
4133
|
+
to: Address;
|
|
3552
4134
|
}): Promise<{
|
|
3553
4135
|
txHash: `0x${string}`;
|
|
3554
4136
|
waitTxInBlock: () => Promise<{
|
|
@@ -3630,15 +4212,17 @@ export declare class Gondi {
|
|
|
3630
4212
|
id: bigint;
|
|
3631
4213
|
} & TransactionReceipt>;
|
|
3632
4214
|
}>;
|
|
3633
|
-
|
|
4215
|
+
/** Whether the wallet's allowance of `tokenAddress` to `to` covers `amount`. */
|
|
4216
|
+
isApprovedToken({ tokenAddress, amount, to, }: {
|
|
3634
4217
|
tokenAddress: Address;
|
|
3635
4218
|
amount: bigint;
|
|
3636
|
-
to
|
|
4219
|
+
to: Address;
|
|
3637
4220
|
}): Promise<boolean>;
|
|
3638
|
-
|
|
4221
|
+
/** Approves `to`, the contract that will pull it, to spend `amount` (default unlimited). */
|
|
4222
|
+
approveToken({ tokenAddress, amount, to, }: {
|
|
3639
4223
|
tokenAddress: Address;
|
|
3640
4224
|
amount?: bigint;
|
|
3641
|
-
to
|
|
4225
|
+
to: Address;
|
|
3642
4226
|
}): Promise<{
|
|
3643
4227
|
txHash: `0x${string}`;
|
|
3644
4228
|
waitTxInBlock: () => Promise<{
|
|
@@ -3665,9 +4249,10 @@ export declare class Gondi {
|
|
|
3665
4249
|
amount: bigint;
|
|
3666
4250
|
}>;
|
|
3667
4251
|
}>;
|
|
3668
|
-
|
|
4252
|
+
/** The wallet's allowance of `tokenAddress` to `to`. */
|
|
4253
|
+
currencyAllowance({ tokenAddress, to }: {
|
|
3669
4254
|
tokenAddress: Address;
|
|
3670
|
-
to
|
|
4255
|
+
to: Address;
|
|
3671
4256
|
}): Promise<bigint>;
|
|
3672
4257
|
currencyBalance({ tokenAddress }: {
|
|
3673
4258
|
tokenAddress: Address;
|