gondi 0.54.0 → 0.58.1

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.
@@ -1,7 +1,8 @@
1
1
  import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
2
+ import { Address } from 'viem';
2
3
  import { getSdkApollo } from '../../clients/api/sdk';
3
4
  import { Wallet } from '../../clients/contracts';
4
- import { BnplOrderInput, BulkNftOrdersInput, CollectionOrderInput, CollectionSignedOfferInput, DealInput, ListListingsQueryVariables, ListLoansQueryVariables, ListOffersQueryVariables, LoanOfferPublicationInput, NftOrderInput, NftSetOrderInput, RenegotiationOfferInput, SingleNftOfferInput, SingleNftOrderInput, SingleNftSignedOfferInput, TraitOrderInput, TraitSignedOfferInput } from '../../generated/graphql';
5
+ import { BnplOrderInput, BulkNftOrdersInput, CollectionOrderInput, CollectionSignedOfferInput, DealInput, ListListingsQueryVariables, ListLoansQueryVariables, ListOffersQueryVariables, ListOrdersQueryVariables, LoanOfferPublicationInput, NftOrderInput, NftSetOrderInput, RenegotiationOfferInput, SingleNftOfferInput, SingleNftOrderInput, SingleNftSignedOfferInput, TraitOrderInput, TraitSignedOfferInput } from '../../generated/graphql';
5
6
  import { OnStepChange } from '../../gondi';
6
7
  import { RenegotiationOffer } from '../../model';
7
8
  export type Props = {
@@ -169,7 +170,7 @@ export declare class Api {
169
170
  id: string;
170
171
  status: string;
171
172
  signature: import("viem").Hex;
172
- marketPlaceAddress: import("viem").Address;
173
+ marketPlaceAddress: Address;
173
174
  } | {
174
175
  __typename?: "SignatureRequest";
175
176
  key: string;
@@ -185,25 +186,25 @@ export declare class Api {
185
186
  id: string;
186
187
  status: string;
187
188
  signature: import("viem").Hex;
188
- marketPlaceAddress: import("viem").Address;
189
+ marketPlaceAddress: Address;
189
190
  } | {
190
191
  __typename?: "SingleNFTOrder";
191
192
  id: string;
192
193
  status: string;
193
194
  signature: import("viem").Hex;
194
- marketPlaceAddress: import("viem").Address;
195
+ marketPlaceAddress: Address;
195
196
  } | {
196
197
  __typename?: "SetBidOrder";
197
198
  id: string;
198
199
  status: string;
199
200
  signature: import("viem").Hex;
200
- marketPlaceAddress: import("viem").Address;
201
+ marketPlaceAddress: Address;
201
202
  } | {
202
203
  __typename?: "CollectionOrder";
203
204
  id: string;
204
205
  status: string;
205
206
  signature: import("viem").Hex;
206
- marketPlaceAddress: import("viem").Address;
207
+ marketPlaceAddress: Address;
207
208
  }>;
208
209
  publishDeal(dealInput: DealInput): Promise<{
209
210
  __typename?: "Deal";
@@ -231,7 +232,7 @@ export declare class Api {
231
232
  status: string;
232
233
  signature: import("viem").Hex;
233
234
  repaymentCalldata: import("viem").Hex;
234
- marketPlaceAddress: import("viem").Address;
235
+ marketPlaceAddress: Address;
235
236
  } | {
236
237
  __typename?: "SignatureRequest";
237
238
  key: string;
@@ -249,9 +250,9 @@ export declare class Api {
249
250
  status: string;
250
251
  signature: import("viem").Hex;
251
252
  emitCalldata: import("viem").Hex;
252
- marketPlaceAddress: import("viem").Address;
253
+ marketPlaceAddress: Address;
253
254
  price: bigint;
254
- currencyAddress: import("viem").Address;
255
+ currencyAddress: Address;
255
256
  } | {
256
257
  __typename?: "ExtraSeaportData";
257
258
  extraData: import("viem").Hex;
@@ -273,23 +274,30 @@ export declare class Api {
273
274
  id: string;
274
275
  price: bigint;
275
276
  fees: bigint;
276
- currencyAddress: import("viem").Address;
277
+ currencyAddress: Address;
277
278
  marketPlace: string;
278
279
  status: string;
279
280
  startTime: Date;
280
281
  expiration: Date;
281
- maker: import("viem").Address;
282
+ maker: Address;
282
283
  isAsk: boolean;
283
284
  nonce: bigint;
284
- taker: import("viem").Address;
285
+ taker: Address;
285
286
  signature: import("viem").Hex;
286
- marketPlaceAddress: import("viem").Address;
287
+ marketPlaceAddress: Address;
287
288
  evmOrder?: object | null;
288
289
  nft: {
289
290
  __typename?: "NFT";
290
291
  id: string;
291
292
  };
292
293
  }>;
294
+ openSeaListings: Array<{
295
+ __typename?: "OpenSeaListingResult";
296
+ contractAddress: Address;
297
+ tokenId: bigint;
298
+ orderHash?: import("viem").Hash | null;
299
+ error?: string | null;
300
+ }>;
293
301
  } | {
294
302
  __typename?: "SignatureRequest";
295
303
  key: string;
@@ -380,30 +388,30 @@ export declare class Api {
380
388
  offerValidators: {
381
389
  __typename?: "OfferValidator";
382
390
  arguments: import("viem").Hex;
383
- validator: import("viem").Address;
391
+ validator: Address;
384
392
  }[] | {
385
393
  __typename?: "OfferValidator";
386
394
  arguments: import("viem").Hex;
387
- validator: import("viem").Address;
395
+ validator: Address;
388
396
  }[] | {
389
397
  __typename?: "OfferValidator";
390
398
  arguments: import("viem").Hex;
391
- validator: import("viem").Address;
399
+ validator: Address;
392
400
  }[] | {
393
401
  __typename?: "OfferValidator";
394
402
  arguments: import("viem").Hex;
395
- validator: import("viem").Address;
403
+ validator: Address;
396
404
  }[];
397
405
  nftCollateralAddress: `0x${string}`;
398
406
  nftCollateralTokenId: bigint;
399
407
  id: string;
400
408
  offerId: bigint;
401
- lenderAddress?: import("viem").Address | null;
402
- borrowerAddress?: import("viem").Address | null;
403
- signerAddress?: import("viem").Address | null;
404
- contractAddress: import("viem").Address;
409
+ lenderAddress?: Address | null;
410
+ borrowerAddress?: Address | null;
411
+ signerAddress?: Address | null;
412
+ contractAddress: Address;
405
413
  requiresLiquidation?: boolean | null;
406
- principalAddress: import("viem").Address;
414
+ principalAddress: Address;
407
415
  principalAmount: bigint;
408
416
  aprBps: bigint;
409
417
  fee: bigint;
@@ -424,19 +432,19 @@ export declare class Api {
424
432
  slug: string;
425
433
  contractData: {
426
434
  __typename?: "ContractData";
427
- contractAddress: import("viem").Address;
435
+ contractAddress: Address;
428
436
  };
429
437
  };
430
438
  currency: {
431
439
  __typename?: "Currency";
432
440
  symbol: string;
433
441
  decimals: number;
434
- address: import("viem").Address;
442
+ address: Address;
435
443
  };
436
444
  validators: Array<{
437
445
  __typename?: "OfferValidator";
438
446
  arguments: import("viem").Hex;
439
- validator: import("viem").Address;
447
+ validator: Address;
440
448
  }>;
441
449
  } | {
442
450
  type: "CollectionOffer" | "SetOffer" | "SingleNFTOffer" | "TraitOffer" | undefined;
@@ -446,30 +454,30 @@ export declare class Api {
446
454
  offerValidators: {
447
455
  __typename?: "OfferValidator";
448
456
  arguments: import("viem").Hex;
449
- validator: import("viem").Address;
457
+ validator: Address;
450
458
  }[] | {
451
459
  __typename?: "OfferValidator";
452
460
  arguments: import("viem").Hex;
453
- validator: import("viem").Address;
461
+ validator: Address;
454
462
  }[] | {
455
463
  __typename?: "OfferValidator";
456
464
  arguments: import("viem").Hex;
457
- validator: import("viem").Address;
465
+ validator: Address;
458
466
  }[] | {
459
467
  __typename?: "OfferValidator";
460
468
  arguments: import("viem").Hex;
461
- validator: import("viem").Address;
469
+ validator: Address;
462
470
  }[];
463
471
  nftCollateralAddress: `0x${string}`;
464
472
  nftCollateralTokenId: bigint;
465
473
  id: string;
466
474
  offerId: bigint;
467
- lenderAddress?: import("viem").Address | null;
468
- borrowerAddress?: import("viem").Address | null;
469
- signerAddress?: import("viem").Address | null;
470
- contractAddress: import("viem").Address;
475
+ lenderAddress?: Address | null;
476
+ borrowerAddress?: Address | null;
477
+ signerAddress?: Address | null;
478
+ contractAddress: Address;
471
479
  requiresLiquidation?: boolean | null;
472
- principalAddress: import("viem").Address;
480
+ principalAddress: Address;
473
481
  principalAmount: bigint;
474
482
  aprBps: bigint;
475
483
  fee: bigint;
@@ -494,7 +502,7 @@ export declare class Api {
494
502
  slug: string;
495
503
  contractData: {
496
504
  __typename?: "ContractData";
497
- contractAddress: import("viem").Address;
505
+ contractAddress: Address;
498
506
  };
499
507
  } | null;
500
508
  };
@@ -502,12 +510,12 @@ export declare class Api {
502
510
  __typename?: "Currency";
503
511
  symbol: string;
504
512
  decimals: number;
505
- address: import("viem").Address;
513
+ address: Address;
506
514
  };
507
515
  validators: Array<{
508
516
  __typename?: "OfferValidator";
509
517
  arguments: import("viem").Hex;
510
- validator: import("viem").Address;
518
+ validator: Address;
511
519
  }>;
512
520
  } | {
513
521
  type: "CollectionOffer" | "SetOffer" | "SingleNFTOffer" | "TraitOffer" | undefined;
@@ -517,30 +525,30 @@ export declare class Api {
517
525
  offerValidators: {
518
526
  __typename?: "OfferValidator";
519
527
  arguments: import("viem").Hex;
520
- validator: import("viem").Address;
528
+ validator: Address;
521
529
  }[] | {
522
530
  __typename?: "OfferValidator";
523
531
  arguments: import("viem").Hex;
524
- validator: import("viem").Address;
532
+ validator: Address;
525
533
  }[] | {
526
534
  __typename?: "OfferValidator";
527
535
  arguments: import("viem").Hex;
528
- validator: import("viem").Address;
536
+ validator: Address;
529
537
  }[] | {
530
538
  __typename?: "OfferValidator";
531
539
  arguments: import("viem").Hex;
532
- validator: import("viem").Address;
540
+ validator: Address;
533
541
  }[];
534
542
  nftCollateralAddress: `0x${string}`;
535
543
  nftCollateralTokenId: bigint;
536
544
  id: string;
537
545
  offerId: bigint;
538
- lenderAddress?: import("viem").Address | null;
539
- borrowerAddress?: import("viem").Address | null;
540
- signerAddress?: import("viem").Address | null;
541
- contractAddress: import("viem").Address;
546
+ lenderAddress?: Address | null;
547
+ borrowerAddress?: Address | null;
548
+ signerAddress?: Address | null;
549
+ contractAddress: Address;
542
550
  requiresLiquidation?: boolean | null;
543
- principalAddress: import("viem").Address;
551
+ principalAddress: Address;
544
552
  principalAmount: bigint;
545
553
  aprBps: bigint;
546
554
  fee: bigint;
@@ -561,7 +569,7 @@ export declare class Api {
561
569
  slug: string;
562
570
  contractData: {
563
571
  __typename?: "ContractData";
564
- contractAddress: import("viem").Address;
572
+ contractAddress: Address;
565
573
  };
566
574
  };
567
575
  traits: Array<{
@@ -574,12 +582,12 @@ export declare class Api {
574
582
  __typename?: "Currency";
575
583
  symbol: string;
576
584
  decimals: number;
577
- address: import("viem").Address;
585
+ address: Address;
578
586
  };
579
587
  validators: Array<{
580
588
  __typename?: "OfferValidator";
581
589
  arguments: import("viem").Hex;
582
- validator: import("viem").Address;
590
+ validator: Address;
583
591
  }>;
584
592
  })[];
585
593
  hasNextPage: true;
@@ -593,30 +601,30 @@ export declare class Api {
593
601
  offerValidators: {
594
602
  __typename?: "OfferValidator";
595
603
  arguments: import("viem").Hex;
596
- validator: import("viem").Address;
604
+ validator: Address;
597
605
  }[] | {
598
606
  __typename?: "OfferValidator";
599
607
  arguments: import("viem").Hex;
600
- validator: import("viem").Address;
608
+ validator: Address;
601
609
  }[] | {
602
610
  __typename?: "OfferValidator";
603
611
  arguments: import("viem").Hex;
604
- validator: import("viem").Address;
612
+ validator: Address;
605
613
  }[] | {
606
614
  __typename?: "OfferValidator";
607
615
  arguments: import("viem").Hex;
608
- validator: import("viem").Address;
616
+ validator: Address;
609
617
  }[];
610
618
  nftCollateralAddress: `0x${string}`;
611
619
  nftCollateralTokenId: bigint;
612
620
  id: string;
613
621
  offerId: bigint;
614
- lenderAddress?: import("viem").Address | null;
615
- borrowerAddress?: import("viem").Address | null;
616
- signerAddress?: import("viem").Address | null;
617
- contractAddress: import("viem").Address;
622
+ lenderAddress?: Address | null;
623
+ borrowerAddress?: Address | null;
624
+ signerAddress?: Address | null;
625
+ contractAddress: Address;
618
626
  requiresLiquidation?: boolean | null;
619
- principalAddress: import("viem").Address;
627
+ principalAddress: Address;
620
628
  principalAmount: bigint;
621
629
  aprBps: bigint;
622
630
  fee: bigint;
@@ -637,19 +645,19 @@ export declare class Api {
637
645
  slug: string;
638
646
  contractData: {
639
647
  __typename?: "ContractData";
640
- contractAddress: import("viem").Address;
648
+ contractAddress: Address;
641
649
  };
642
650
  };
643
651
  currency: {
644
652
  __typename?: "Currency";
645
653
  symbol: string;
646
654
  decimals: number;
647
- address: import("viem").Address;
655
+ address: Address;
648
656
  };
649
657
  validators: Array<{
650
658
  __typename?: "OfferValidator";
651
659
  arguments: import("viem").Hex;
652
- validator: import("viem").Address;
660
+ validator: Address;
653
661
  }>;
654
662
  } | {
655
663
  type: "CollectionOffer" | "SetOffer" | "SingleNFTOffer" | "TraitOffer" | undefined;
@@ -659,30 +667,30 @@ export declare class Api {
659
667
  offerValidators: {
660
668
  __typename?: "OfferValidator";
661
669
  arguments: import("viem").Hex;
662
- validator: import("viem").Address;
670
+ validator: Address;
663
671
  }[] | {
664
672
  __typename?: "OfferValidator";
665
673
  arguments: import("viem").Hex;
666
- validator: import("viem").Address;
674
+ validator: Address;
667
675
  }[] | {
668
676
  __typename?: "OfferValidator";
669
677
  arguments: import("viem").Hex;
670
- validator: import("viem").Address;
678
+ validator: Address;
671
679
  }[] | {
672
680
  __typename?: "OfferValidator";
673
681
  arguments: import("viem").Hex;
674
- validator: import("viem").Address;
682
+ validator: Address;
675
683
  }[];
676
684
  nftCollateralAddress: `0x${string}`;
677
685
  nftCollateralTokenId: bigint;
678
686
  id: string;
679
687
  offerId: bigint;
680
- lenderAddress?: import("viem").Address | null;
681
- borrowerAddress?: import("viem").Address | null;
682
- signerAddress?: import("viem").Address | null;
683
- contractAddress: import("viem").Address;
688
+ lenderAddress?: Address | null;
689
+ borrowerAddress?: Address | null;
690
+ signerAddress?: Address | null;
691
+ contractAddress: Address;
684
692
  requiresLiquidation?: boolean | null;
685
- principalAddress: import("viem").Address;
693
+ principalAddress: Address;
686
694
  principalAmount: bigint;
687
695
  aprBps: bigint;
688
696
  fee: bigint;
@@ -707,7 +715,7 @@ export declare class Api {
707
715
  slug: string;
708
716
  contractData: {
709
717
  __typename?: "ContractData";
710
- contractAddress: import("viem").Address;
718
+ contractAddress: Address;
711
719
  };
712
720
  } | null;
713
721
  };
@@ -715,12 +723,12 @@ export declare class Api {
715
723
  __typename?: "Currency";
716
724
  symbol: string;
717
725
  decimals: number;
718
- address: import("viem").Address;
726
+ address: Address;
719
727
  };
720
728
  validators: Array<{
721
729
  __typename?: "OfferValidator";
722
730
  arguments: import("viem").Hex;
723
- validator: import("viem").Address;
731
+ validator: Address;
724
732
  }>;
725
733
  } | {
726
734
  type: "CollectionOffer" | "SetOffer" | "SingleNFTOffer" | "TraitOffer" | undefined;
@@ -730,30 +738,30 @@ export declare class Api {
730
738
  offerValidators: {
731
739
  __typename?: "OfferValidator";
732
740
  arguments: import("viem").Hex;
733
- validator: import("viem").Address;
741
+ validator: Address;
734
742
  }[] | {
735
743
  __typename?: "OfferValidator";
736
744
  arguments: import("viem").Hex;
737
- validator: import("viem").Address;
745
+ validator: Address;
738
746
  }[] | {
739
747
  __typename?: "OfferValidator";
740
748
  arguments: import("viem").Hex;
741
- validator: import("viem").Address;
749
+ validator: Address;
742
750
  }[] | {
743
751
  __typename?: "OfferValidator";
744
752
  arguments: import("viem").Hex;
745
- validator: import("viem").Address;
753
+ validator: Address;
746
754
  }[];
747
755
  nftCollateralAddress: `0x${string}`;
748
756
  nftCollateralTokenId: bigint;
749
757
  id: string;
750
758
  offerId: bigint;
751
- lenderAddress?: import("viem").Address | null;
752
- borrowerAddress?: import("viem").Address | null;
753
- signerAddress?: import("viem").Address | null;
754
- contractAddress: import("viem").Address;
759
+ lenderAddress?: Address | null;
760
+ borrowerAddress?: Address | null;
761
+ signerAddress?: Address | null;
762
+ contractAddress: Address;
755
763
  requiresLiquidation?: boolean | null;
756
- principalAddress: import("viem").Address;
764
+ principalAddress: Address;
757
765
  principalAmount: bigint;
758
766
  aprBps: bigint;
759
767
  fee: bigint;
@@ -774,7 +782,7 @@ export declare class Api {
774
782
  slug: string;
775
783
  contractData: {
776
784
  __typename?: "ContractData";
777
- contractAddress: import("viem").Address;
785
+ contractAddress: Address;
778
786
  };
779
787
  };
780
788
  traits: Array<{
@@ -787,12 +795,12 @@ export declare class Api {
787
795
  __typename?: "Currency";
788
796
  symbol: string;
789
797
  decimals: number;
790
- address: import("viem").Address;
798
+ address: Address;
791
799
  };
792
800
  validators: Array<{
793
801
  __typename?: "OfferValidator";
794
802
  arguments: import("viem").Hex;
795
- validator: import("viem").Address;
803
+ validator: Address;
796
804
  }>;
797
805
  })[];
798
806
  hasNextPage: false;
@@ -819,13 +827,13 @@ export declare class Api {
819
827
  aprBps: bigint;
820
828
  }[];
821
829
  id: string;
822
- address: import("viem").Address;
830
+ address: Address;
823
831
  loanId: number;
824
832
  timestamp: Date;
825
833
  txHash: import("viem").Hash;
826
834
  indexInBlock: number;
827
- borrowerAddress: import("viem").Address;
828
- principalAddress: import("viem").Address;
835
+ borrowerAddress: Address;
836
+ principalAddress: Address;
829
837
  duration: bigint;
830
838
  status: string;
831
839
  principalAmount: bigint;
@@ -836,25 +844,25 @@ export declare class Api {
836
844
  offer: {
837
845
  __typename?: "CollectionOffer";
838
846
  offerId: bigint;
839
- signerAddress?: import("viem").Address | null;
847
+ signerAddress?: Address | null;
840
848
  } | {
841
849
  __typename?: "SetOffer";
842
850
  offerId: bigint;
843
- signerAddress?: import("viem").Address | null;
851
+ signerAddress?: Address | null;
844
852
  } | {
845
853
  __typename?: "SingleNFTOffer";
846
854
  offerId: bigint;
847
- signerAddress?: import("viem").Address | null;
855
+ signerAddress?: Address | null;
848
856
  } | {
849
857
  __typename?: "TraitOffer";
850
858
  offerId: bigint;
851
- signerAddress?: import("viem").Address | null;
859
+ signerAddress?: Address | null;
852
860
  };
853
861
  currency: {
854
862
  __typename?: "Currency";
855
863
  symbol: string;
856
864
  decimals: number;
857
- address: import("viem").Address;
865
+ address: Address;
858
866
  };
859
867
  repaidActivity?: {
860
868
  __typename?: "LoanRepaid";
@@ -867,7 +875,7 @@ export declare class Api {
867
875
  name?: string | null;
868
876
  tokenId: bigint;
869
877
  nftId: string;
870
- owner?: import("viem").Address | null;
878
+ owner?: Address | null;
871
879
  image?: {
872
880
  __typename?: "Asset";
873
881
  data: string;
@@ -883,7 +891,7 @@ export declare class Api {
883
891
  nftsCount?: number | null;
884
892
  contractData: {
885
893
  __typename?: "ContractData";
886
- contractAddress: import("viem").Address;
894
+ contractAddress: Address;
887
895
  };
888
896
  } | null;
889
897
  };
@@ -922,13 +930,13 @@ export declare class Api {
922
930
  aprBps: bigint;
923
931
  }[];
924
932
  id: string;
925
- address: import("viem").Address;
933
+ address: Address;
926
934
  loanId: number;
927
935
  timestamp: Date;
928
936
  txHash: import("viem").Hash;
929
937
  indexInBlock: number;
930
- borrowerAddress: import("viem").Address;
931
- principalAddress: import("viem").Address;
938
+ borrowerAddress: Address;
939
+ principalAddress: Address;
932
940
  duration: bigint;
933
941
  status: string;
934
942
  principalAmount: bigint;
@@ -939,25 +947,25 @@ export declare class Api {
939
947
  offer: {
940
948
  __typename?: "CollectionOffer";
941
949
  offerId: bigint;
942
- signerAddress?: import("viem").Address | null;
950
+ signerAddress?: Address | null;
943
951
  } | {
944
952
  __typename?: "SetOffer";
945
953
  offerId: bigint;
946
- signerAddress?: import("viem").Address | null;
954
+ signerAddress?: Address | null;
947
955
  } | {
948
956
  __typename?: "SingleNFTOffer";
949
957
  offerId: bigint;
950
- signerAddress?: import("viem").Address | null;
958
+ signerAddress?: Address | null;
951
959
  } | {
952
960
  __typename?: "TraitOffer";
953
961
  offerId: bigint;
954
- signerAddress?: import("viem").Address | null;
962
+ signerAddress?: Address | null;
955
963
  };
956
964
  currency: {
957
965
  __typename?: "Currency";
958
966
  symbol: string;
959
967
  decimals: number;
960
- address: import("viem").Address;
968
+ address: Address;
961
969
  };
962
970
  repaidActivity?: {
963
971
  __typename?: "LoanRepaid";
@@ -970,7 +978,7 @@ export declare class Api {
970
978
  name?: string | null;
971
979
  tokenId: bigint;
972
980
  nftId: string;
973
- owner?: import("viem").Address | null;
981
+ owner?: Address | null;
974
982
  image?: {
975
983
  __typename?: "Asset";
976
984
  data: string;
@@ -986,7 +994,7 @@ export declare class Api {
986
994
  nftsCount?: number | null;
987
995
  contractData: {
988
996
  __typename?: "ContractData";
989
- contractAddress: import("viem").Address;
997
+ contractAddress: Address;
990
998
  };
991
999
  } | null;
992
1000
  };
@@ -1012,10 +1020,10 @@ export declare class Api {
1012
1020
  marketplaceName: import("../../generated/graphql").MarketplaceEnum;
1013
1021
  createdDate: Date;
1014
1022
  desiredDuration?: number | null;
1015
- desiredPrincipalAddress?: import("viem").Address | null;
1023
+ desiredPrincipalAddress?: Address | null;
1016
1024
  user: {
1017
1025
  __typename?: "User";
1018
- walletAddress: import("viem").Address;
1026
+ walletAddress: Address;
1019
1027
  };
1020
1028
  nft: {
1021
1029
  __typename?: "NFT";
@@ -1027,7 +1035,7 @@ export declare class Api {
1027
1035
  slug: string;
1028
1036
  contractData: {
1029
1037
  __typename?: "ContractData";
1030
- contractAddress: import("viem").Address;
1038
+ contractAddress: Address;
1031
1039
  };
1032
1040
  } | null;
1033
1041
  };
@@ -1041,10 +1049,10 @@ export declare class Api {
1041
1049
  marketplaceName: import("../../generated/graphql").MarketplaceEnum;
1042
1050
  createdDate: Date;
1043
1051
  desiredDuration?: number | null;
1044
- desiredPrincipalAddress?: import("viem").Address | null;
1052
+ desiredPrincipalAddress?: Address | null;
1045
1053
  user: {
1046
1054
  __typename?: "User";
1047
- walletAddress: import("viem").Address;
1055
+ walletAddress: Address;
1048
1056
  };
1049
1057
  nft: {
1050
1058
  __typename?: "NFT";
@@ -1056,7 +1064,7 @@ export declare class Api {
1056
1064
  slug: string;
1057
1065
  contractData: {
1058
1066
  __typename?: "ContractData";
1059
- contractAddress: import("viem").Address;
1067
+ contractAddress: Address;
1060
1068
  };
1061
1069
  } | null;
1062
1070
  };
@@ -1064,6 +1072,469 @@ export declare class Api {
1064
1072
  hasNextPage: false;
1065
1073
  cursor: null;
1066
1074
  }>;
1075
+ listOrders(props: ListOrdersQueryVariables): Promise<{
1076
+ orders: ({
1077
+ __typename: "BuyNowPayLaterOrder";
1078
+ id: string;
1079
+ price: bigint;
1080
+ steppedPrice?: bigint | null;
1081
+ currencyAddress: Address;
1082
+ maker: Address;
1083
+ isAsk: boolean;
1084
+ status: string;
1085
+ startTime: Date;
1086
+ expiration: Date;
1087
+ executions: number;
1088
+ maxExecutions: number;
1089
+ cancelsOffChain: boolean;
1090
+ marketPlace: string;
1091
+ marketPlaceAddress: Address;
1092
+ } | {
1093
+ __typename: "CollectionOrder";
1094
+ collectionId: number;
1095
+ id: string;
1096
+ price: bigint;
1097
+ steppedPrice?: bigint | null;
1098
+ currencyAddress: Address;
1099
+ maker: Address;
1100
+ isAsk: boolean;
1101
+ status: string;
1102
+ startTime: Date;
1103
+ expiration: Date;
1104
+ executions: number;
1105
+ maxExecutions: number;
1106
+ cancelsOffChain: boolean;
1107
+ marketPlace: string;
1108
+ marketPlaceAddress: Address;
1109
+ } | {
1110
+ __typename: "MultipleTraitOrder";
1111
+ collectionId: number;
1112
+ id: string;
1113
+ price: bigint;
1114
+ steppedPrice?: bigint | null;
1115
+ currencyAddress: Address;
1116
+ maker: Address;
1117
+ isAsk: boolean;
1118
+ status: string;
1119
+ startTime: Date;
1120
+ expiration: Date;
1121
+ executions: number;
1122
+ maxExecutions: number;
1123
+ cancelsOffChain: boolean;
1124
+ marketPlace: string;
1125
+ marketPlaceAddress: Address;
1126
+ } | {
1127
+ __typename: "SellAndRepayOrder";
1128
+ id: string;
1129
+ price: bigint;
1130
+ steppedPrice?: bigint | null;
1131
+ currencyAddress: Address;
1132
+ maker: Address;
1133
+ isAsk: boolean;
1134
+ status: string;
1135
+ startTime: Date;
1136
+ expiration: Date;
1137
+ executions: number;
1138
+ maxExecutions: number;
1139
+ cancelsOffChain: boolean;
1140
+ marketPlace: string;
1141
+ marketPlaceAddress: Address;
1142
+ } | {
1143
+ __typename: "SetBidOrder";
1144
+ collectionId: number;
1145
+ id: string;
1146
+ price: bigint;
1147
+ steppedPrice?: bigint | null;
1148
+ currencyAddress: Address;
1149
+ maker: Address;
1150
+ isAsk: boolean;
1151
+ status: string;
1152
+ startTime: Date;
1153
+ expiration: Date;
1154
+ executions: number;
1155
+ maxExecutions: number;
1156
+ cancelsOffChain: boolean;
1157
+ marketPlace: string;
1158
+ marketPlaceAddress: Address;
1159
+ } | {
1160
+ __typename: "SingleNFTOrder";
1161
+ id: string;
1162
+ price: bigint;
1163
+ steppedPrice?: bigint | null;
1164
+ currencyAddress: Address;
1165
+ maker: Address;
1166
+ isAsk: boolean;
1167
+ status: string;
1168
+ startTime: Date;
1169
+ expiration: Date;
1170
+ executions: number;
1171
+ maxExecutions: number;
1172
+ cancelsOffChain: boolean;
1173
+ marketPlace: string;
1174
+ marketPlaceAddress: Address;
1175
+ nft: {
1176
+ __typename?: "NFT";
1177
+ id: string;
1178
+ tokenId: bigint;
1179
+ collection?: {
1180
+ __typename?: "Collection";
1181
+ id: string;
1182
+ } | null;
1183
+ };
1184
+ } | {
1185
+ __typename: "StealthMaskedOrder";
1186
+ id: string;
1187
+ price: bigint;
1188
+ steppedPrice?: bigint | null;
1189
+ currencyAddress: Address;
1190
+ maker: Address;
1191
+ isAsk: boolean;
1192
+ status: string;
1193
+ startTime: Date;
1194
+ expiration: Date;
1195
+ executions: number;
1196
+ maxExecutions: number;
1197
+ cancelsOffChain: boolean;
1198
+ marketPlace: string;
1199
+ marketPlaceAddress: Address;
1200
+ } | {
1201
+ __typename: "TraitOrder";
1202
+ collectionId: number;
1203
+ id: string;
1204
+ price: bigint;
1205
+ steppedPrice?: bigint | null;
1206
+ currencyAddress: Address;
1207
+ maker: Address;
1208
+ isAsk: boolean;
1209
+ status: string;
1210
+ startTime: Date;
1211
+ expiration: Date;
1212
+ executions: number;
1213
+ maxExecutions: number;
1214
+ cancelsOffChain: boolean;
1215
+ marketPlace: string;
1216
+ marketPlaceAddress: Address;
1217
+ })[];
1218
+ hasNextPage: true;
1219
+ cursor: string;
1220
+ } | {
1221
+ orders: ({
1222
+ __typename: "BuyNowPayLaterOrder";
1223
+ id: string;
1224
+ price: bigint;
1225
+ steppedPrice?: bigint | null;
1226
+ currencyAddress: Address;
1227
+ maker: Address;
1228
+ isAsk: boolean;
1229
+ status: string;
1230
+ startTime: Date;
1231
+ expiration: Date;
1232
+ executions: number;
1233
+ maxExecutions: number;
1234
+ cancelsOffChain: boolean;
1235
+ marketPlace: string;
1236
+ marketPlaceAddress: Address;
1237
+ } | {
1238
+ __typename: "CollectionOrder";
1239
+ collectionId: number;
1240
+ id: string;
1241
+ price: bigint;
1242
+ steppedPrice?: bigint | null;
1243
+ currencyAddress: Address;
1244
+ maker: Address;
1245
+ isAsk: boolean;
1246
+ status: string;
1247
+ startTime: Date;
1248
+ expiration: Date;
1249
+ executions: number;
1250
+ maxExecutions: number;
1251
+ cancelsOffChain: boolean;
1252
+ marketPlace: string;
1253
+ marketPlaceAddress: Address;
1254
+ } | {
1255
+ __typename: "MultipleTraitOrder";
1256
+ collectionId: number;
1257
+ id: string;
1258
+ price: bigint;
1259
+ steppedPrice?: bigint | null;
1260
+ currencyAddress: Address;
1261
+ maker: Address;
1262
+ isAsk: boolean;
1263
+ status: string;
1264
+ startTime: Date;
1265
+ expiration: Date;
1266
+ executions: number;
1267
+ maxExecutions: number;
1268
+ cancelsOffChain: boolean;
1269
+ marketPlace: string;
1270
+ marketPlaceAddress: Address;
1271
+ } | {
1272
+ __typename: "SellAndRepayOrder";
1273
+ id: string;
1274
+ price: bigint;
1275
+ steppedPrice?: bigint | null;
1276
+ currencyAddress: Address;
1277
+ maker: Address;
1278
+ isAsk: boolean;
1279
+ status: string;
1280
+ startTime: Date;
1281
+ expiration: Date;
1282
+ executions: number;
1283
+ maxExecutions: number;
1284
+ cancelsOffChain: boolean;
1285
+ marketPlace: string;
1286
+ marketPlaceAddress: Address;
1287
+ } | {
1288
+ __typename: "SetBidOrder";
1289
+ collectionId: number;
1290
+ id: string;
1291
+ price: bigint;
1292
+ steppedPrice?: bigint | null;
1293
+ currencyAddress: Address;
1294
+ maker: Address;
1295
+ isAsk: boolean;
1296
+ status: string;
1297
+ startTime: Date;
1298
+ expiration: Date;
1299
+ executions: number;
1300
+ maxExecutions: number;
1301
+ cancelsOffChain: boolean;
1302
+ marketPlace: string;
1303
+ marketPlaceAddress: Address;
1304
+ } | {
1305
+ __typename: "SingleNFTOrder";
1306
+ id: string;
1307
+ price: bigint;
1308
+ steppedPrice?: bigint | null;
1309
+ currencyAddress: Address;
1310
+ maker: Address;
1311
+ isAsk: boolean;
1312
+ status: string;
1313
+ startTime: Date;
1314
+ expiration: Date;
1315
+ executions: number;
1316
+ maxExecutions: number;
1317
+ cancelsOffChain: boolean;
1318
+ marketPlace: string;
1319
+ marketPlaceAddress: Address;
1320
+ nft: {
1321
+ __typename?: "NFT";
1322
+ id: string;
1323
+ tokenId: bigint;
1324
+ collection?: {
1325
+ __typename?: "Collection";
1326
+ id: string;
1327
+ } | null;
1328
+ };
1329
+ } | {
1330
+ __typename: "StealthMaskedOrder";
1331
+ id: string;
1332
+ price: bigint;
1333
+ steppedPrice?: bigint | null;
1334
+ currencyAddress: Address;
1335
+ maker: Address;
1336
+ isAsk: boolean;
1337
+ status: string;
1338
+ startTime: Date;
1339
+ expiration: Date;
1340
+ executions: number;
1341
+ maxExecutions: number;
1342
+ cancelsOffChain: boolean;
1343
+ marketPlace: string;
1344
+ marketPlaceAddress: Address;
1345
+ } | {
1346
+ __typename: "TraitOrder";
1347
+ collectionId: number;
1348
+ id: string;
1349
+ price: bigint;
1350
+ steppedPrice?: bigint | null;
1351
+ currencyAddress: Address;
1352
+ maker: Address;
1353
+ isAsk: boolean;
1354
+ status: string;
1355
+ startTime: Date;
1356
+ expiration: Date;
1357
+ executions: number;
1358
+ maxExecutions: number;
1359
+ cancelsOffChain: boolean;
1360
+ marketPlace: string;
1361
+ marketPlaceAddress: Address;
1362
+ })[];
1363
+ hasNextPage: false;
1364
+ cursor: null;
1365
+ }>;
1366
+ /** The collection's market, or `null` when no collection has that slug. */
1367
+ collectionMarket(props: {
1368
+ slug: string;
1369
+ currencyAddresses?: Address[];
1370
+ }): Promise<{
1371
+ __typename?: "Collection";
1372
+ id: string;
1373
+ seaportConduitKey: import("viem").Hash;
1374
+ contractData: {
1375
+ __typename?: "ContractData";
1376
+ contractAddress: Address;
1377
+ };
1378
+ royalties: Array<{
1379
+ __typename?: "Royalty";
1380
+ beneficiary: Address;
1381
+ percentage: number;
1382
+ required: boolean;
1383
+ }>;
1384
+ statistics: {
1385
+ __typename?: "CollectionStatistics";
1386
+ minAskPrice?: {
1387
+ __typename?: "BigIntCurrencyAmount";
1388
+ amount: bigint;
1389
+ currency: {
1390
+ __typename?: "Currency";
1391
+ address: Address;
1392
+ };
1393
+ } | null;
1394
+ highestApplicableBid?: {
1395
+ __typename: "BuyNowPayLaterOrder";
1396
+ id: string;
1397
+ price: bigint;
1398
+ steppedPrice?: bigint | null;
1399
+ currencyAddress: Address;
1400
+ maker: Address;
1401
+ isAsk: boolean;
1402
+ status: string;
1403
+ startTime: Date;
1404
+ expiration: Date;
1405
+ executions: number;
1406
+ maxExecutions: number;
1407
+ cancelsOffChain: boolean;
1408
+ marketPlace: string;
1409
+ marketPlaceAddress: Address;
1410
+ } | {
1411
+ __typename: "CollectionOrder";
1412
+ collectionId: number;
1413
+ id: string;
1414
+ price: bigint;
1415
+ steppedPrice?: bigint | null;
1416
+ currencyAddress: Address;
1417
+ maker: Address;
1418
+ isAsk: boolean;
1419
+ status: string;
1420
+ startTime: Date;
1421
+ expiration: Date;
1422
+ executions: number;
1423
+ maxExecutions: number;
1424
+ cancelsOffChain: boolean;
1425
+ marketPlace: string;
1426
+ marketPlaceAddress: Address;
1427
+ } | {
1428
+ __typename: "MultipleTraitOrder";
1429
+ collectionId: number;
1430
+ id: string;
1431
+ price: bigint;
1432
+ steppedPrice?: bigint | null;
1433
+ currencyAddress: Address;
1434
+ maker: Address;
1435
+ isAsk: boolean;
1436
+ status: string;
1437
+ startTime: Date;
1438
+ expiration: Date;
1439
+ executions: number;
1440
+ maxExecutions: number;
1441
+ cancelsOffChain: boolean;
1442
+ marketPlace: string;
1443
+ marketPlaceAddress: Address;
1444
+ } | {
1445
+ __typename: "SellAndRepayOrder";
1446
+ id: string;
1447
+ price: bigint;
1448
+ steppedPrice?: bigint | null;
1449
+ currencyAddress: Address;
1450
+ maker: Address;
1451
+ isAsk: boolean;
1452
+ status: string;
1453
+ startTime: Date;
1454
+ expiration: Date;
1455
+ executions: number;
1456
+ maxExecutions: number;
1457
+ cancelsOffChain: boolean;
1458
+ marketPlace: string;
1459
+ marketPlaceAddress: Address;
1460
+ } | {
1461
+ __typename: "SetBidOrder";
1462
+ collectionId: number;
1463
+ id: string;
1464
+ price: bigint;
1465
+ steppedPrice?: bigint | null;
1466
+ currencyAddress: Address;
1467
+ maker: Address;
1468
+ isAsk: boolean;
1469
+ status: string;
1470
+ startTime: Date;
1471
+ expiration: Date;
1472
+ executions: number;
1473
+ maxExecutions: number;
1474
+ cancelsOffChain: boolean;
1475
+ marketPlace: string;
1476
+ marketPlaceAddress: Address;
1477
+ } | {
1478
+ __typename: "SingleNFTOrder";
1479
+ id: string;
1480
+ price: bigint;
1481
+ steppedPrice?: bigint | null;
1482
+ currencyAddress: Address;
1483
+ maker: Address;
1484
+ isAsk: boolean;
1485
+ status: string;
1486
+ startTime: Date;
1487
+ expiration: Date;
1488
+ executions: number;
1489
+ maxExecutions: number;
1490
+ cancelsOffChain: boolean;
1491
+ marketPlace: string;
1492
+ marketPlaceAddress: Address;
1493
+ nft: {
1494
+ __typename?: "NFT";
1495
+ id: string;
1496
+ tokenId: bigint;
1497
+ collection?: {
1498
+ __typename?: "Collection";
1499
+ id: string;
1500
+ } | null;
1501
+ };
1502
+ } | {
1503
+ __typename: "StealthMaskedOrder";
1504
+ id: string;
1505
+ price: bigint;
1506
+ steppedPrice?: bigint | null;
1507
+ currencyAddress: Address;
1508
+ maker: Address;
1509
+ isAsk: boolean;
1510
+ status: string;
1511
+ startTime: Date;
1512
+ expiration: Date;
1513
+ executions: number;
1514
+ maxExecutions: number;
1515
+ cancelsOffChain: boolean;
1516
+ marketPlace: string;
1517
+ marketPlaceAddress: Address;
1518
+ } | {
1519
+ __typename: "TraitOrder";
1520
+ collectionId: number;
1521
+ id: string;
1522
+ price: bigint;
1523
+ steppedPrice?: bigint | null;
1524
+ currencyAddress: Address;
1525
+ maker: Address;
1526
+ isAsk: boolean;
1527
+ status: string;
1528
+ startTime: Date;
1529
+ expiration: Date;
1530
+ executions: number;
1531
+ maxExecutions: number;
1532
+ cancelsOffChain: boolean;
1533
+ marketPlace: string;
1534
+ marketPlaceAddress: Address;
1535
+ } | null;
1536
+ };
1537
+ } | null>;
1067
1538
  getWrapperAddress(collection: {
1068
1539
  contractData: {
1069
1540
  contractAddress: `0x${string}`;