gondi 0.58.2 → 0.58.3

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.
@@ -147,6 +147,8 @@ export declare class Gondi {
147
147
  }) => string;
148
148
  /**
149
149
  * Signs and saves an item offer.
150
+ * A `lenderRefinanceDisabled` offer signs for MultiSourceLoan v3.2, the only version
151
+ * that signs the flag; any other offer signs for v3.1.
150
152
  * @param publication Optional unsigned admission metadata. Previews before signing
151
153
  * and throws the backend rejection reason. Identical retries after failed saves
152
154
  * reuse the signature; a successful save clears that pending signature.
@@ -182,6 +184,8 @@ export declare class Gondi {
182
184
  _makeSingleNftOffer(offer: model.SingleNftOfferInput, mslContractAddress?: Address, skipSave?: false, publication?: LoanOfferPublicationInput): ReturnType<Api['saveSingleNftOffer']>;
183
185
  /**
184
186
  * Signs and saves a collection offer without an item preview.
187
+ * A `lenderRefinanceDisabled` offer signs for MultiSourceLoan v3.2, the only version
188
+ * that signs the flag; any other offer signs for v3.1.
185
189
  * @param publication Optional unsigned admission metadata. Identical retries after
186
190
  * failed saves reuse the signature; a successful save clears that pending signature.
187
191
  * The backend evaluates collection offers independently for each item.
@@ -237,7 +241,11 @@ export declare class Gondi {
237
241
  nftCollateralAddress: `0x${string}`;
238
242
  nftCollateralTokenId: bigint;
239
243
  }>;
240
- /** A loan offer any NFT of the collection carrying every one of `offer.traitIds` can borrow against. */
244
+ /**
245
+ * A loan offer any NFT of the collection carrying every one of `offer.traitIds` can borrow against.
246
+ * A `lenderRefinanceDisabled` offer signs for MultiSourceLoan v3.2, the only version
247
+ * that signs the flag; any other offer signs for v3.1.
248
+ */
241
249
  makeTraitOffer(offer: model.TraitOfferInput): Promise<{
242
250
  aprBps: import("./generated/graphql").Scalars["BigInt"];
243
251
  borrowerAddress: import("./generated/graphql").Scalars["Address"];
@@ -3129,10 +3137,16 @@ export declare class Gondi {
3129
3137
  }): Promise<boolean>;
3130
3138
  /**
3131
3139
  * 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.
3140
+ * `makeTraitOffer` sign for on the wallet's chain when the caller names none:
3141
+ * the `to` a lender approves the principal for before publishing those offers.
3142
+ * v3.2 is the only version whose signed `LoanOffer` carries
3143
+ * `lenderRefinanceDisabled`, so a flagged offer signs for it and throws on a
3144
+ * chain without a v3.2 deployment; any other offer, or no offer, signs for the
3145
+ * default contract.
3134
3146
  */
3135
- offerContractAddress(): `0x${string}`;
3147
+ offerContractAddress({ lenderRefinanceDisabled, }?: {
3148
+ lenderRefinanceDisabled?: boolean | null;
3149
+ }): `0x${string}`;
3136
3150
  private getDefaults;
3137
3151
  refinanceFullLoan({ offer, loan, loanId, }: {
3138
3152
  offer: model.RenegotiationOffer;