gondi 0.30.3 → 0.31.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.
@@ -71,6 +71,7 @@ export declare class Gondi {
71
71
  expirationTime: import("./generated/graphql").Scalars["BigInt"];
72
72
  fee: import("./generated/graphql").Scalars["BigInt"];
73
73
  lenderAddress: import("./generated/graphql").Scalars["Address"];
74
+ lenderRefinanceDisabled?: import("./generated/graphql").Scalars["Boolean"];
74
75
  maxSeniorRepayment?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
75
76
  maxTrancheFloor?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
76
77
  nftId: import("./generated/graphql").Scalars["Int"];
@@ -100,6 +101,7 @@ export declare class Gondi {
100
101
  expirationTime: import("./generated/graphql").Scalars["BigInt"];
101
102
  fee: import("./generated/graphql").Scalars["BigInt"];
102
103
  lenderAddress: import("./generated/graphql").Scalars["Address"];
104
+ lenderRefinanceDisabled?: import("./generated/graphql").Scalars["Boolean"];
103
105
  maxSeniorRepayment?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
104
106
  maxTrancheFloor?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
105
107
  offerHash: import("./generated/graphql").Scalars["Hash"];
@@ -125,6 +127,7 @@ export declare class Gondi {
125
127
  expirationTime: import("./generated/graphql").Scalars["BigInt"];
126
128
  fee: import("./generated/graphql").Scalars["BigInt"];
127
129
  lenderAddress: import("./generated/graphql").Scalars["Address"];
130
+ lenderRefinanceDisabled?: import("./generated/graphql").Scalars["Boolean"];
128
131
  maxSeniorRepayment?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
129
132
  maxTrancheFloor?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
130
133
  offerHash: import("./generated/graphql").Scalars["Hash"];
@@ -402,6 +405,7 @@ export declare class Gondi {
402
405
  replaceOrderIdInt64?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int64"]>;
403
406
  signature: import("./generated/graphql").InputMaybe<`0x${string}`>;
404
407
  startTime: import("./generated/graphql").Scalars["BigInt"];
408
+ stealth?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Boolean"]>;
405
409
  taker?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Address"]>;
406
410
  tokenId: import("./generated/graphql").Scalars["BigInt"];
407
411
  __typename?: "SellAndRepayOrder";
@@ -480,6 +484,26 @@ export declare class Gondi {
480
484
  type: import("viem").TransactionType;
481
485
  lender: `0x${string}`;
482
486
  offerId: bigint;
487
+ } | {
488
+ blobGasPrice?: bigint | undefined;
489
+ blobGasUsed?: bigint | undefined;
490
+ blockHash: Hash;
491
+ blockNumber: bigint;
492
+ contractAddress: Address | null | undefined;
493
+ cumulativeGasUsed: bigint;
494
+ effectiveGasPrice: bigint;
495
+ from: Address;
496
+ gasUsed: bigint;
497
+ logs: import("viem").Log<bigint, number, false>[];
498
+ logsBloom: Hex;
499
+ root?: Hash | undefined;
500
+ status: "success" | "reverted";
501
+ to: Address | null;
502
+ transactionHash: Hash;
503
+ transactionIndex: number;
504
+ type: import("viem").TransactionType;
505
+ lender: `0x${string}`;
506
+ offerId: bigint;
483
507
  }>;
484
508
  }>;
485
509
  cancelOffers({ ids, contractAddress }: {
@@ -511,6 +535,9 @@ export declare class Gondi {
511
535
  } | {
512
536
  lender: `0x${string}`;
513
537
  offerId: bigint;
538
+ } | {
539
+ lender: `0x${string}`;
540
+ offerId: bigint;
514
541
  })[];
515
542
  }>;
516
543
  }>;
@@ -634,6 +661,26 @@ export declare class Gondi {
634
661
  type: import("viem").TransactionType;
635
662
  lender: `0x${string}`;
636
663
  renegotiationId: bigint;
664
+ } | {
665
+ blobGasPrice?: bigint | undefined;
666
+ blobGasUsed?: bigint | undefined;
667
+ blockHash: Hash;
668
+ blockNumber: bigint;
669
+ contractAddress: Address | null | undefined;
670
+ cumulativeGasUsed: bigint;
671
+ effectiveGasPrice: bigint;
672
+ from: Address;
673
+ gasUsed: bigint;
674
+ logs: import("viem").Log<bigint, number, false>[];
675
+ logsBloom: Hex;
676
+ root?: Hash | undefined;
677
+ status: "success" | "reverted";
678
+ to: Address | null;
679
+ transactionHash: Hash;
680
+ transactionIndex: number;
681
+ type: import("viem").TransactionType;
682
+ lender: `0x${string}`;
683
+ renegotiationId: bigint;
637
684
  }>;
638
685
  }>;
639
686
  hideRenegotiationOffer({ id, contractAddress }: {
@@ -738,6 +785,27 @@ export declare class Gondi {
738
785
  }[];
739
786
  protocolFee: bigint;
740
787
  id: string;
788
+ } | {
789
+ contractAddress: `0x${string}`;
790
+ borrower: `0x${string}`;
791
+ nftCollateralTokenId: bigint;
792
+ nftCollateralAddress: `0x${string}`;
793
+ principalAddress: `0x${string}`;
794
+ principalAmount: bigint;
795
+ startTime: bigint;
796
+ duration: bigint;
797
+ tranche: readonly {
798
+ loanId: bigint;
799
+ floor: bigint;
800
+ principalAmount: bigint;
801
+ lender: `0x${string}`;
802
+ accruedInterest: bigint;
803
+ startTime: bigint;
804
+ aprBps: bigint;
805
+ }[];
806
+ protocolFee: bigint;
807
+ lenderRefinanceDisabled: boolean;
808
+ id: string;
741
809
  };
742
810
  loanId: bigint;
743
811
  offerIds: string[];
@@ -849,6 +917,27 @@ export declare class Gondi {
849
917
  }[];
850
918
  protocolFee: bigint;
851
919
  id: string;
920
+ } | {
921
+ contractAddress: `0x${string}`;
922
+ borrower: `0x${string}`;
923
+ nftCollateralTokenId: bigint;
924
+ nftCollateralAddress: `0x${string}`;
925
+ principalAddress: `0x${string}`;
926
+ principalAmount: bigint;
927
+ startTime: bigint;
928
+ duration: bigint;
929
+ tranche: readonly {
930
+ loanId: bigint;
931
+ floor: bigint;
932
+ principalAmount: bigint;
933
+ lender: `0x${string}`;
934
+ accruedInterest: bigint;
935
+ startTime: bigint;
936
+ aprBps: bigint;
937
+ }[];
938
+ protocolFee: bigint;
939
+ lenderRefinanceDisabled: boolean;
940
+ id: string;
852
941
  };
853
942
  loanId: bigint;
854
943
  offerIds: string[];
@@ -911,6 +1000,27 @@ export declare class Gondi {
911
1000
  loanId: bigint;
912
1001
  totalRepayment: bigint;
913
1002
  fee: bigint;
1003
+ } | {
1004
+ blobGasPrice?: bigint | undefined;
1005
+ blobGasUsed?: bigint | undefined;
1006
+ blockHash: Hash;
1007
+ blockNumber: bigint;
1008
+ contractAddress: Address | null | undefined;
1009
+ cumulativeGasUsed: bigint;
1010
+ effectiveGasPrice: bigint;
1011
+ from: Address;
1012
+ gasUsed: bigint;
1013
+ logs: import("viem").Log<bigint, number, false>[];
1014
+ logsBloom: Hex;
1015
+ root?: Hash | undefined;
1016
+ status: "success" | "reverted";
1017
+ to: Address | null;
1018
+ transactionHash: Hash;
1019
+ transactionIndex: number;
1020
+ type: import("viem").TransactionType;
1021
+ loanId: bigint;
1022
+ totalRepayment: bigint;
1023
+ fee: bigint;
914
1024
  }>;
915
1025
  }>;
916
1026
  offers({ limit, cursor, sortBy, filterBy, }: model.ListOffersProps): Promise<{
@@ -951,6 +1061,7 @@ export declare class Gondi {
951
1061
  repayment: bigint;
952
1062
  hidden?: boolean | null;
953
1063
  maxSeniorRepayment: bigint;
1064
+ lenderRefinanceDisabled: boolean;
954
1065
  collection: {
955
1066
  __typename?: "Collection";
956
1067
  id: string;
@@ -1008,6 +1119,7 @@ export declare class Gondi {
1008
1119
  repayment: bigint;
1009
1120
  hidden?: boolean | null;
1010
1121
  maxSeniorRepayment: bigint;
1122
+ lenderRefinanceDisabled: boolean;
1011
1123
  nft: {
1012
1124
  __typename?: "NFT";
1013
1125
  id: string;
@@ -1074,6 +1186,7 @@ export declare class Gondi {
1074
1186
  repayment: bigint;
1075
1187
  hidden?: boolean | null;
1076
1188
  maxSeniorRepayment: bigint;
1189
+ lenderRefinanceDisabled: boolean;
1077
1190
  collection: {
1078
1191
  __typename?: "Collection";
1079
1192
  id: string;
@@ -1131,6 +1244,7 @@ export declare class Gondi {
1131
1244
  repayment: bigint;
1132
1245
  hidden?: boolean | null;
1133
1246
  maxSeniorRepayment: bigint;
1247
+ lenderRefinanceDisabled: boolean;
1134
1248
  nft: {
1135
1249
  __typename?: "NFT";
1136
1250
  id: string;
@@ -1194,6 +1308,7 @@ export declare class Gondi {
1194
1308
  blendedAprBps: number;
1195
1309
  totalOriginationFee: bigint;
1196
1310
  protocolFee: bigint;
1311
+ lenderRefinanceDisabled: boolean;
1197
1312
  offer: {
1198
1313
  __typename?: "CollectionOffer";
1199
1314
  offerId: bigint;
@@ -1288,6 +1403,7 @@ export declare class Gondi {
1288
1403
  blendedAprBps: number;
1289
1404
  totalOriginationFee: bigint;
1290
1405
  protocolFee: bigint;
1406
+ lenderRefinanceDisabled: boolean;
1291
1407
  offer: {
1292
1408
  __typename?: "CollectionOffer";
1293
1409
  offerId: bigint;
@@ -1592,6 +1708,14 @@ export declare class Gondi {
1592
1708
  address: Address;
1593
1709
  decimals: number;
1594
1710
  };
1711
+ } | {
1712
+ __typename?: "StealthMaskedOrder";
1713
+ price: bigint;
1714
+ currency: {
1715
+ __typename?: "Currency";
1716
+ address: Address;
1717
+ decimals: number;
1718
+ };
1595
1719
  } | {
1596
1720
  __typename?: "TraitOrder";
1597
1721
  price: bigint;
@@ -1692,6 +1816,27 @@ export declare class Gondi {
1692
1816
  }[];
1693
1817
  protocolFee: bigint;
1694
1818
  id: string;
1819
+ } | {
1820
+ contractAddress: `0x${string}`;
1821
+ borrower: `0x${string}`;
1822
+ nftCollateralTokenId: bigint;
1823
+ nftCollateralAddress: `0x${string}`;
1824
+ principalAddress: `0x${string}`;
1825
+ principalAmount: bigint;
1826
+ startTime: bigint;
1827
+ duration: bigint;
1828
+ tranche: readonly {
1829
+ loanId: bigint;
1830
+ floor: bigint;
1831
+ principalAmount: bigint;
1832
+ lender: `0x${string}`;
1833
+ accruedInterest: bigint;
1834
+ startTime: bigint;
1835
+ aprBps: bigint;
1836
+ }[];
1837
+ protocolFee: bigint;
1838
+ lenderRefinanceDisabled: boolean;
1839
+ id: string;
1695
1840
  };
1696
1841
  loanId: bigint;
1697
1842
  renegotiationId: string;
@@ -1803,6 +1948,27 @@ export declare class Gondi {
1803
1948
  }[];
1804
1949
  protocolFee: bigint;
1805
1950
  id: string;
1951
+ } | {
1952
+ contractAddress: `0x${string}`;
1953
+ borrower: `0x${string}`;
1954
+ nftCollateralTokenId: bigint;
1955
+ nftCollateralAddress: `0x${string}`;
1956
+ principalAddress: `0x${string}`;
1957
+ principalAmount: bigint;
1958
+ startTime: bigint;
1959
+ duration: bigint;
1960
+ tranche: readonly {
1961
+ loanId: bigint;
1962
+ floor: bigint;
1963
+ principalAmount: bigint;
1964
+ lender: `0x${string}`;
1965
+ accruedInterest: bigint;
1966
+ startTime: bigint;
1967
+ aprBps: bigint;
1968
+ }[];
1969
+ protocolFee: bigint;
1970
+ lenderRefinanceDisabled: boolean;
1971
+ id: string;
1806
1972
  };
1807
1973
  loanId: bigint;
1808
1974
  renegotiationId: string;
@@ -1914,6 +2080,27 @@ export declare class Gondi {
1914
2080
  }[];
1915
2081
  protocolFee: bigint;
1916
2082
  id: string;
2083
+ } | {
2084
+ contractAddress: `0x${string}`;
2085
+ borrower: `0x${string}`;
2086
+ nftCollateralTokenId: bigint;
2087
+ nftCollateralAddress: `0x${string}`;
2088
+ principalAddress: `0x${string}`;
2089
+ principalAmount: bigint;
2090
+ startTime: bigint;
2091
+ duration: bigint;
2092
+ tranche: readonly {
2093
+ loanId: bigint;
2094
+ floor: bigint;
2095
+ principalAmount: bigint;
2096
+ lender: `0x${string}`;
2097
+ accruedInterest: bigint;
2098
+ startTime: bigint;
2099
+ aprBps: bigint;
2100
+ }[];
2101
+ protocolFee: bigint;
2102
+ lenderRefinanceDisabled: boolean;
2103
+ id: string;
1917
2104
  };
1918
2105
  loanId: bigint;
1919
2106
  renegotiationId: string;
@@ -2170,6 +2357,27 @@ export declare class Gondi {
2170
2357
  }[];
2171
2358
  protocolFee: bigint;
2172
2359
  id: string;
2360
+ } | {
2361
+ contractAddress: `0x${string}`;
2362
+ borrower: `0x${string}`;
2363
+ nftCollateralTokenId: bigint;
2364
+ nftCollateralAddress: `0x${string}`;
2365
+ principalAddress: `0x${string}`;
2366
+ principalAmount: bigint;
2367
+ startTime: bigint;
2368
+ duration: bigint;
2369
+ tranche: readonly {
2370
+ loanId: bigint;
2371
+ floor: bigint;
2372
+ principalAmount: bigint;
2373
+ lender: `0x${string}`;
2374
+ accruedInterest: bigint;
2375
+ startTime: bigint;
2376
+ aprBps: bigint;
2377
+ }[];
2378
+ protocolFee: bigint;
2379
+ lenderRefinanceDisabled: boolean;
2380
+ id: string;
2173
2381
  };
2174
2382
  loanId: bigint;
2175
2383
  }>;
@@ -2286,6 +2494,25 @@ export declare class Gondi {
2286
2494
  transactionIndex: number;
2287
2495
  type: import("viem").TransactionType;
2288
2496
  loanId: bigint;
2497
+ } | {
2498
+ blobGasPrice?: bigint | undefined;
2499
+ blobGasUsed?: bigint | undefined;
2500
+ blockHash: Hash;
2501
+ blockNumber: bigint;
2502
+ contractAddress: Address | null | undefined;
2503
+ cumulativeGasUsed: bigint;
2504
+ effectiveGasPrice: bigint;
2505
+ from: Address;
2506
+ gasUsed: bigint;
2507
+ logs: import("viem").Log<bigint, number, false>[];
2508
+ logsBloom: Hex;
2509
+ root?: Hash | undefined;
2510
+ status: "success" | "reverted";
2511
+ to: Address | null;
2512
+ transactionHash: Hash;
2513
+ transactionIndex: number;
2514
+ type: import("viem").TransactionType;
2515
+ loanId: bigint;
2289
2516
  }>;
2290
2517
  }>;
2291
2518
  placeBid({ collectionContractAddress, tokenId, bid, auction, }: {
@@ -2883,6 +3110,9 @@ export declare class Gondi {
2883
3110
  } | {
2884
3111
  recipient: `0x${string}`;
2885
3112
  fraction: bigint;
3113
+ } | {
3114
+ recipient: `0x${string}`;
3115
+ fraction: bigint;
2886
3116
  }>;
2887
3117
  }
2888
3118
  type MakeOfferType = Omit<Awaited<ReturnType<Gondi['makeSingleNftOffer']>>, 'nftId'> | Omit<Awaited<ReturnType<Gondi['makeCollectionOffer']>>, 'collectionId'>;
@@ -49,6 +49,7 @@ export declare const loanToMslLoan: (loan: LoanToMslLoanType) => {
49
49
  aprBps: bigint;
50
50
  }[];
51
51
  protocolFee: bigint;
52
+ lenderRefinanceDisabled: unknown;
52
53
  borrower: `0x${string}`;
53
54
  nftCollateralTokenId: bigint;
54
55
  principalAddress: `0x${string}`;
@@ -78,6 +79,7 @@ export declare const loanToMslLoan: (loan: LoanToMslLoanType) => {
78
79
  aprBps: bigint;
79
80
  }[];
80
81
  protocolFee: bigint;
82
+ lenderRefinanceDisabled: unknown;
81
83
  borrower: `0x${string}`;
82
84
  nftCollateralTokenId: bigint;
83
85
  principalAddress: `0x${string}`;
@@ -107,6 +109,7 @@ export declare const loanToMslLoan: (loan: LoanToMslLoanType) => {
107
109
  aprBps: bigint;
108
110
  }[];
109
111
  protocolFee: bigint;
112
+ lenderRefinanceDisabled: unknown;
110
113
  borrower: `0x${string}`;
111
114
  nftCollateralTokenId: bigint;
112
115
  principalAddress: `0x${string}`;
@@ -120,6 +123,7 @@ export declare const isLoanVersion: (address: Address, chainId: number) => {
120
123
  isV2: boolean;
121
124
  isV3: boolean;
122
125
  isV3_1: boolean;
126
+ isV3_2: boolean;
123
127
  };
124
128
  interface TrancheOwed {
125
129
  principalAmount: bigint;