gondi 0.61.1 → 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,19 +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
876
|
* ends up unfillable: the default only skips the transaction for the bids no one can fill
|
|
877
877
|
* without the API, and cancels every other order on-chain.
|
|
878
878
|
*
|
|
879
879
|
* `cancelTradeOrders` cancels the bids that `cancelsOffChain` (restricted to the GONDI signed
|
|
880
880
|
* zone, so they only fill with a signature the API issues) without a transaction, and returns
|
|
881
|
-
* 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.
|
|
882
885
|
*
|
|
883
886
|
* An off-chain cancel is final once the last fill signature already issued for the bid expires,
|
|
884
887
|
* a few minutes at most. Pass `onChain: true` to cancel every order on-chain instead, final as
|
|
885
888
|
* soon as the transaction is mined.
|
|
886
889
|
*
|
|
887
|
-
* @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.
|
|
888
892
|
*/
|
|
889
893
|
cancelOrders({ orderIds, onChain }: {
|
|
890
894
|
orderIds: number[];
|
|
@@ -4119,6 +4123,8 @@ export declare class Gondi {
|
|
|
4119
4123
|
largestTrancheIdx: bigint;
|
|
4120
4124
|
}>;
|
|
4121
4125
|
}>;
|
|
4126
|
+
/** The liquidator contract running `auction` for the collateral `tokenId` of `collectionContractAddress`. */
|
|
4127
|
+
private auctionLiquidator;
|
|
4122
4128
|
getAuctionRemainingLockupSeconds({ auction, }: {
|
|
4123
4129
|
auction: Pick<Auction, 'startTime' | 'loanAddress' | 'loanId'> & Partial<Pick<AuctionV8, 'buyoutWindow'>>;
|
|
4124
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;
|