gondi 0.61.0 → 0.61.1
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.
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +2 -2
- package/dist/src/gondi.d.ts +19 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/gondi.d.ts
CHANGED
|
@@ -872,7 +872,9 @@ export declare class Gondi {
|
|
|
872
872
|
waitTxInBlock: () => Promise<TransactionReceipt>;
|
|
873
873
|
}>;
|
|
874
874
|
/**
|
|
875
|
-
* Cancels the wallet's trade orders by id, at most 50 per call, with one API call.
|
|
875
|
+
* Cancels the wallet's trade orders by id, at most 50 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
|
|
@@ -1029,14 +1031,24 @@ export declare class Gondi {
|
|
|
1029
1031
|
minOfferId: bigint;
|
|
1030
1032
|
}>;
|
|
1031
1033
|
}>;
|
|
1034
|
+
/**
|
|
1035
|
+
* Hides a loan offer from the GONDI API's listings. Off-chain only: the lender's signature stays
|
|
1036
|
+
* valid, so anyone already holding it can still start a loan with the offer. Use
|
|
1037
|
+
* {@link Gondi.cancelOffer} to make it unexecutable on-chain.
|
|
1038
|
+
*/
|
|
1032
1039
|
hideOffer({ id, contractAddress }: {
|
|
1033
1040
|
id: bigint;
|
|
1034
1041
|
contractAddress: Address;
|
|
1035
1042
|
}): Promise<import("./generated/graphql").HideOfferMutation>;
|
|
1043
|
+
/**
|
|
1044
|
+
* Hides several loan offers from the GONDI API's listings. Off-chain only, like
|
|
1045
|
+
* {@link Gondi.hideOffer}: use {@link Gondi.cancelOffers} to make them unexecutable on-chain.
|
|
1046
|
+
*/
|
|
1036
1047
|
hideOffers({ ids, contractAddress }: {
|
|
1037
1048
|
ids: bigint[];
|
|
1038
1049
|
contractAddress: Address;
|
|
1039
1050
|
}): Promise<import("./generated/graphql").HideOffersMutation>;
|
|
1051
|
+
/** Lists a loan offer hidden with {@link Gondi.hideOffer} in the GONDI API again. */
|
|
1040
1052
|
unhideOffer({ id, contractAddress }: {
|
|
1041
1053
|
id: bigint;
|
|
1042
1054
|
contractAddress: Address;
|
|
@@ -1159,10 +1171,16 @@ export declare class Gondi {
|
|
|
1159
1171
|
renegotiationId: bigint;
|
|
1160
1172
|
}>;
|
|
1161
1173
|
}>;
|
|
1174
|
+
/**
|
|
1175
|
+
* Hides a renegotiation offer from the GONDI API's listings. Off-chain only: the lender's
|
|
1176
|
+
* signature stays valid, so anyone already holding it can still refinance with the offer. Use
|
|
1177
|
+
* {@link Gondi.cancelRefinanceOffer} to make it unexecutable on-chain.
|
|
1178
|
+
*/
|
|
1162
1179
|
hideRenegotiationOffer({ id, contractAddress }: {
|
|
1163
1180
|
id: bigint;
|
|
1164
1181
|
contractAddress: Address;
|
|
1165
1182
|
}): Promise<import("./generated/graphql").HideRenegotiationOfferMutation>;
|
|
1183
|
+
/** Lists a renegotiation offer hidden with {@link Gondi.hideRenegotiationOffer} again. */
|
|
1166
1184
|
unhideRenegotiationOffer({ id, contractAddress, }: {
|
|
1167
1185
|
id: bigint;
|
|
1168
1186
|
contractAddress: Address;
|