gondi 0.47.0 → 0.48.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.
@@ -762,8 +762,8 @@ export declare class Gondi {
762
762
  * saves reuse both signatures; a successful save clears the pending payloads.
763
763
  * @param props.private Shows the offer only to the loan's borrower and to the lender.
764
764
  * The API accepts it only for a principal worth at least the private minimum in USD
765
- * ($50k), and never together with `withFallbackOffer`, whose fallback would publish
766
- * the same terms. It is not part of the signed struct.
765
+ * ($50k). It is not part of the signed struct. With `withFallbackOffer`, the fallback
766
+ * is signed for `props.borrowerAddress`, the loan's borrower, so it stays private too.
767
767
  */
768
768
  makeRefinanceOffer({ renegotiation, contractAddress, publication, ...props }: MakeRefinanceOfferProps): Promise<{
769
769
  id: string;
@@ -3825,7 +3825,17 @@ type MakeRefinanceOfferProps = {
3825
3825
  principalAddress: Address;
3826
3826
  nftId: number;
3827
3827
  maxSeniorRepayment?: bigint;
3828
- private?: never;
3828
+ private?: false;
3829
+ borrowerAddress?: never;
3830
+ } | {
3831
+ skipSignature?: never;
3832
+ withFallbackOffer: true;
3833
+ principalAddress: Address;
3834
+ nftId: number;
3835
+ maxSeniorRepayment?: bigint;
3836
+ private: true;
3837
+ /** The loan's borrower: the private fallback is signed for this address only. */
3838
+ borrowerAddress: Address;
3829
3839
  });
3830
3840
  export type CreateVaultNfts = {
3831
3841
  collection: Address;