gondi 0.61.0 → 0.62.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.
|
@@ -159,5 +159,7 @@ export declare class AllV6 extends BaseContract<typeof auctionWithBuyoutLoanLiqu
|
|
|
159
159
|
triggerFee: bigint;
|
|
160
160
|
}>;
|
|
161
161
|
}>;
|
|
162
|
+
/** The caller's auction with its NFT; throws when the struct is not a v6 one. */
|
|
163
|
+
private heldAuction;
|
|
162
164
|
private mapAuctionToAuctionArgs;
|
|
163
165
|
}
|
package/dist/src/gondi.d.ts
CHANGED
|
@@ -872,17 +872,23 @@ export declare class Gondi {
|
|
|
872
872
|
waitTxInBlock: () => Promise<TransactionReceipt>;
|
|
873
873
|
}>;
|
|
874
874
|
/**
|
|
875
|
-
* Cancels the wallet's trade orders by id, at most
|
|
875
|
+
* Cancels the wallet's trade orders by id, at most 100 per call, with one API call. Every order
|
|
876
|
+
* ends up unfillable: the default only skips the transaction for the bids no one can fill
|
|
877
|
+
* without the API, and cancels every other order on-chain.
|
|
876
878
|
*
|
|
877
879
|
* `cancelTradeOrders` cancels the bids that `cancelsOffChain` (restricted to the GONDI signed
|
|
878
880
|
* zone, so they only fill with a signature the API issues) without a transaction, and returns
|
|
879
|
-
* the Seaport cancel calldata of the rest
|
|
881
|
+
* the Seaport cancel calldata of the rest. Each calldata entry is sent as its own transaction,
|
|
882
|
+
* one after another: usually one per marketplace, and more when the API splits a marketplace's
|
|
883
|
+
* cancel because it would not fit in one transaction. So the number of transactions is only
|
|
884
|
+
* known from the result, and a later one can fail after an earlier one was sent.
|
|
880
885
|
*
|
|
881
886
|
* An off-chain cancel is final once the last fill signature already issued for the bid expires,
|
|
882
887
|
* a few minutes at most. Pass `onChain: true` to cancel every order on-chain instead, final as
|
|
883
888
|
* soon as the transaction is mined.
|
|
884
889
|
*
|
|
885
|
-
* @returns The ids cancelled off-chain, and one `{ txHash, waitTxInBlock }` per
|
|
890
|
+
* @returns The ids cancelled off-chain, and one `{ txHash, waitTxInBlock }` per transaction
|
|
891
|
+
* sent, in the order they were sent.
|
|
886
892
|
*/
|
|
887
893
|
cancelOrders({ orderIds, onChain }: {
|
|
888
894
|
orderIds: number[];
|
|
@@ -1029,14 +1035,24 @@ export declare class Gondi {
|
|
|
1029
1035
|
minOfferId: bigint;
|
|
1030
1036
|
}>;
|
|
1031
1037
|
}>;
|
|
1038
|
+
/**
|
|
1039
|
+
* Hides a loan offer from the GONDI API's listings. Off-chain only: the lender's signature stays
|
|
1040
|
+
* valid, so anyone already holding it can still start a loan with the offer. Use
|
|
1041
|
+
* {@link Gondi.cancelOffer} to make it unexecutable on-chain.
|
|
1042
|
+
*/
|
|
1032
1043
|
hideOffer({ id, contractAddress }: {
|
|
1033
1044
|
id: bigint;
|
|
1034
1045
|
contractAddress: Address;
|
|
1035
1046
|
}): Promise<import("./generated/graphql").HideOfferMutation>;
|
|
1047
|
+
/**
|
|
1048
|
+
* Hides several loan offers from the GONDI API's listings. Off-chain only, like
|
|
1049
|
+
* {@link Gondi.hideOffer}: use {@link Gondi.cancelOffers} to make them unexecutable on-chain.
|
|
1050
|
+
*/
|
|
1036
1051
|
hideOffers({ ids, contractAddress }: {
|
|
1037
1052
|
ids: bigint[];
|
|
1038
1053
|
contractAddress: Address;
|
|
1039
1054
|
}): Promise<import("./generated/graphql").HideOffersMutation>;
|
|
1055
|
+
/** Lists a loan offer hidden with {@link Gondi.hideOffer} in the GONDI API again. */
|
|
1040
1056
|
unhideOffer({ id, contractAddress }: {
|
|
1041
1057
|
id: bigint;
|
|
1042
1058
|
contractAddress: Address;
|
|
@@ -1159,10 +1175,16 @@ export declare class Gondi {
|
|
|
1159
1175
|
renegotiationId: bigint;
|
|
1160
1176
|
}>;
|
|
1161
1177
|
}>;
|
|
1178
|
+
/**
|
|
1179
|
+
* Hides a renegotiation offer from the GONDI API's listings. Off-chain only: the lender's
|
|
1180
|
+
* signature stays valid, so anyone already holding it can still refinance with the offer. Use
|
|
1181
|
+
* {@link Gondi.cancelRefinanceOffer} to make it unexecutable on-chain.
|
|
1182
|
+
*/
|
|
1162
1183
|
hideRenegotiationOffer({ id, contractAddress }: {
|
|
1163
1184
|
id: bigint;
|
|
1164
1185
|
contractAddress: Address;
|
|
1165
1186
|
}): Promise<import("./generated/graphql").HideRenegotiationOfferMutation>;
|
|
1187
|
+
/** Lists a renegotiation offer hidden with {@link Gondi.hideRenegotiationOffer} again. */
|
|
1166
1188
|
unhideRenegotiationOffer({ id, contractAddress, }: {
|
|
1167
1189
|
id: bigint;
|
|
1168
1190
|
contractAddress: Address;
|
|
@@ -4101,6 +4123,8 @@ export declare class Gondi {
|
|
|
4101
4123
|
largestTrancheIdx: bigint;
|
|
4102
4124
|
}>;
|
|
4103
4125
|
}>;
|
|
4126
|
+
/** The liquidator contract running `auction` for the collateral `tokenId` of `collectionContractAddress`. */
|
|
4127
|
+
private auctionLiquidator;
|
|
4104
4128
|
getAuctionRemainingLockupSeconds({ auction, }: {
|
|
4105
4129
|
auction: Pick<Auction, 'startTime' | 'loanAddress' | 'loanId'> & Partial<Pick<AuctionV8, 'buyoutWindow'>>;
|
|
4106
4130
|
}): Promise<number>;
|
package/dist/src/utils/loan.d.ts
CHANGED
|
@@ -149,6 +149,15 @@ export declare const loanToMslLoan: (loan: LoanToMslLoanType) => {
|
|
|
149
149
|
};
|
|
150
150
|
export declare const getMslLoanId: (loan: LoanToMslLoanType) => bigint;
|
|
151
151
|
export declare const getRemainingSeconds: (loan: Pick<LoanToMslLoanType, "startTime" | "duration">) => number;
|
|
152
|
+
/**
|
|
153
|
+
* Seconds left before a loan's newest tranche can be refinanced: the lock is `lockPeriodBps`
|
|
154
|
+
* of the time from that tranche's start to the loan's end, counted from the tranche's start.
|
|
155
|
+
*/
|
|
156
|
+
export declare const remainingLockupSeconds: ({ loanEndTime, newestStartTime, lockPeriodBps, }: {
|
|
157
|
+
loanEndTime: bigint;
|
|
158
|
+
newestStartTime: bigint;
|
|
159
|
+
lockPeriodBps: bigint;
|
|
160
|
+
}) => number;
|
|
152
161
|
export declare const isLoanVersion: (address: Address, chainId: number) => {
|
|
153
162
|
isV1: boolean;
|
|
154
163
|
isV2: boolean;
|