@morpho-dev/router 0.0.18 → 0.0.20
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.browser.d.cts +19 -19
- package/dist/index.browser.d.ts +19 -19
- package/dist/index.browser.js +186 -114
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +187 -115
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.cts +31 -31
- package/dist/index.node.d.ts +31 -31
- package/dist/index.node.js +186 -114
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +188 -116
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.browser.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _morpho_dev_mempool from '@morpho-dev/mempool';
|
|
2
|
-
import { Compute, Offer, Errors, Format } from '@morpho-dev/mempool';
|
|
2
|
+
import { Compute, Offer, Errors, Format, Maturity, LLTV } from '@morpho-dev/mempool';
|
|
3
3
|
export * from '@morpho-dev/mempool';
|
|
4
4
|
import * as viem from 'viem';
|
|
5
5
|
import { Address, Hex, PublicClient } from 'viem';
|
|
@@ -158,9 +158,9 @@ type GetParameters = {
|
|
|
158
158
|
/** Maximum rate per asset (in wei) */
|
|
159
159
|
maxRate?: bigint;
|
|
160
160
|
/** Minimum maturity timestamp (Unix timestamp in seconds) */
|
|
161
|
-
minMaturity?:
|
|
161
|
+
minMaturity?: Maturity.Maturity;
|
|
162
162
|
/** Maximum maturity timestamp (Unix timestamp in seconds) */
|
|
163
|
-
maxMaturity?:
|
|
163
|
+
maxMaturity?: Maturity.Maturity;
|
|
164
164
|
/** Minimum expiry timestamp (Unix timestamp in seconds) */
|
|
165
165
|
minExpiry?: number;
|
|
166
166
|
/** Maximum expiry timestamp (Unix timestamp in seconds) */
|
|
@@ -173,12 +173,12 @@ type GetParameters = {
|
|
|
173
173
|
collateralTuple?: Array<{
|
|
174
174
|
asset: string;
|
|
175
175
|
oracle?: string;
|
|
176
|
-
lltv?:
|
|
176
|
+
lltv?: LLTV.LLTV;
|
|
177
177
|
}>;
|
|
178
178
|
/** Minimum Loan-to-Value ratio (LLTV) for collateral (percentage as decimal) */
|
|
179
|
-
minLltv?:
|
|
179
|
+
minLltv?: LLTV.LLTV;
|
|
180
180
|
/** Maximum Loan-to-Value ratio (LLTV) for collateral (percentage as decimal) */
|
|
181
|
-
maxLltv?:
|
|
181
|
+
maxLltv?: LLTV.LLTV;
|
|
182
182
|
/** Field to sort results by */
|
|
183
183
|
sortBy?: "rate" | "maturity" | "expiry" | "amount";
|
|
184
184
|
/** Sort direction: asc (ascending) or desc (descending, default) */
|
|
@@ -199,14 +199,14 @@ type MatchParameters = {
|
|
|
199
199
|
collaterals?: Array<{
|
|
200
200
|
asset: string;
|
|
201
201
|
oracle: string;
|
|
202
|
-
lltv:
|
|
202
|
+
lltv: LLTV.LLTV;
|
|
203
203
|
}>;
|
|
204
204
|
/** Exact maturity timestamp (Unix timestamp in seconds) */
|
|
205
|
-
maturity?:
|
|
205
|
+
maturity?: Maturity.Maturity;
|
|
206
206
|
/** Minimum maturity timestamp (Unix timestamp in seconds, inclusive) */
|
|
207
|
-
minMaturity?:
|
|
207
|
+
minMaturity?: Maturity.Maturity;
|
|
208
208
|
/** Maximum maturity timestamp (Unix timestamp in seconds, inclusive) */
|
|
209
|
-
maxMaturity?:
|
|
209
|
+
maxMaturity?: Maturity.Maturity;
|
|
210
210
|
/** The loan asset address to match against */
|
|
211
211
|
loanToken?: string;
|
|
212
212
|
/** Filter by a specific offer creator address */
|
|
@@ -360,8 +360,8 @@ type GetOffersFilters = {
|
|
|
360
360
|
maxAmount?: bigint;
|
|
361
361
|
minRate?: bigint;
|
|
362
362
|
maxRate?: bigint;
|
|
363
|
-
minMaturity?:
|
|
364
|
-
maxMaturity?:
|
|
363
|
+
minMaturity?: Maturity.Maturity;
|
|
364
|
+
maxMaturity?: Maturity.Maturity;
|
|
365
365
|
minExpiry?: number;
|
|
366
366
|
maxExpiry?: number;
|
|
367
367
|
collateralAssets?: string[];
|
|
@@ -369,10 +369,10 @@ type GetOffersFilters = {
|
|
|
369
369
|
collateralTuple?: Array<{
|
|
370
370
|
asset: string;
|
|
371
371
|
oracle?: string;
|
|
372
|
-
lltv?:
|
|
372
|
+
lltv?: LLTV.LLTV;
|
|
373
373
|
}>;
|
|
374
|
-
minLltv?:
|
|
375
|
-
maxLltv?:
|
|
374
|
+
minLltv?: LLTV.LLTV;
|
|
375
|
+
maxLltv?: LLTV.LLTV;
|
|
376
376
|
sortBy?: "rate" | "maturity" | "expiry" | "amount";
|
|
377
377
|
sortOrder?: "asc" | "desc";
|
|
378
378
|
cursor?: string;
|
|
@@ -385,11 +385,11 @@ type FindMatchingOffersParams = {
|
|
|
385
385
|
collaterals?: Array<{
|
|
386
386
|
asset: string;
|
|
387
387
|
oracle: string;
|
|
388
|
-
lltv:
|
|
388
|
+
lltv: LLTV.LLTV;
|
|
389
389
|
}>;
|
|
390
|
-
maturity?:
|
|
391
|
-
minMaturity?:
|
|
392
|
-
maxMaturity?:
|
|
390
|
+
maturity?: Maturity.Maturity;
|
|
391
|
+
minMaturity?: Maturity.Maturity;
|
|
392
|
+
maxMaturity?: Maturity.Maturity;
|
|
393
393
|
loanToken?: string;
|
|
394
394
|
creator?: string;
|
|
395
395
|
/** Filter by offer status; if omitted defaults to ["valid"] */
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _morpho_dev_mempool from '@morpho-dev/mempool';
|
|
2
|
-
import { Compute, Offer, Errors, Format } from '@morpho-dev/mempool';
|
|
2
|
+
import { Compute, Offer, Errors, Format, Maturity, LLTV } from '@morpho-dev/mempool';
|
|
3
3
|
export * from '@morpho-dev/mempool';
|
|
4
4
|
import * as viem from 'viem';
|
|
5
5
|
import { Address, Hex, PublicClient } from 'viem';
|
|
@@ -158,9 +158,9 @@ type GetParameters = {
|
|
|
158
158
|
/** Maximum rate per asset (in wei) */
|
|
159
159
|
maxRate?: bigint;
|
|
160
160
|
/** Minimum maturity timestamp (Unix timestamp in seconds) */
|
|
161
|
-
minMaturity?:
|
|
161
|
+
minMaturity?: Maturity.Maturity;
|
|
162
162
|
/** Maximum maturity timestamp (Unix timestamp in seconds) */
|
|
163
|
-
maxMaturity?:
|
|
163
|
+
maxMaturity?: Maturity.Maturity;
|
|
164
164
|
/** Minimum expiry timestamp (Unix timestamp in seconds) */
|
|
165
165
|
minExpiry?: number;
|
|
166
166
|
/** Maximum expiry timestamp (Unix timestamp in seconds) */
|
|
@@ -173,12 +173,12 @@ type GetParameters = {
|
|
|
173
173
|
collateralTuple?: Array<{
|
|
174
174
|
asset: string;
|
|
175
175
|
oracle?: string;
|
|
176
|
-
lltv?:
|
|
176
|
+
lltv?: LLTV.LLTV;
|
|
177
177
|
}>;
|
|
178
178
|
/** Minimum Loan-to-Value ratio (LLTV) for collateral (percentage as decimal) */
|
|
179
|
-
minLltv?:
|
|
179
|
+
minLltv?: LLTV.LLTV;
|
|
180
180
|
/** Maximum Loan-to-Value ratio (LLTV) for collateral (percentage as decimal) */
|
|
181
|
-
maxLltv?:
|
|
181
|
+
maxLltv?: LLTV.LLTV;
|
|
182
182
|
/** Field to sort results by */
|
|
183
183
|
sortBy?: "rate" | "maturity" | "expiry" | "amount";
|
|
184
184
|
/** Sort direction: asc (ascending) or desc (descending, default) */
|
|
@@ -199,14 +199,14 @@ type MatchParameters = {
|
|
|
199
199
|
collaterals?: Array<{
|
|
200
200
|
asset: string;
|
|
201
201
|
oracle: string;
|
|
202
|
-
lltv:
|
|
202
|
+
lltv: LLTV.LLTV;
|
|
203
203
|
}>;
|
|
204
204
|
/** Exact maturity timestamp (Unix timestamp in seconds) */
|
|
205
|
-
maturity?:
|
|
205
|
+
maturity?: Maturity.Maturity;
|
|
206
206
|
/** Minimum maturity timestamp (Unix timestamp in seconds, inclusive) */
|
|
207
|
-
minMaturity?:
|
|
207
|
+
minMaturity?: Maturity.Maturity;
|
|
208
208
|
/** Maximum maturity timestamp (Unix timestamp in seconds, inclusive) */
|
|
209
|
-
maxMaturity?:
|
|
209
|
+
maxMaturity?: Maturity.Maturity;
|
|
210
210
|
/** The loan asset address to match against */
|
|
211
211
|
loanToken?: string;
|
|
212
212
|
/** Filter by a specific offer creator address */
|
|
@@ -360,8 +360,8 @@ type GetOffersFilters = {
|
|
|
360
360
|
maxAmount?: bigint;
|
|
361
361
|
minRate?: bigint;
|
|
362
362
|
maxRate?: bigint;
|
|
363
|
-
minMaturity?:
|
|
364
|
-
maxMaturity?:
|
|
363
|
+
minMaturity?: Maturity.Maturity;
|
|
364
|
+
maxMaturity?: Maturity.Maturity;
|
|
365
365
|
minExpiry?: number;
|
|
366
366
|
maxExpiry?: number;
|
|
367
367
|
collateralAssets?: string[];
|
|
@@ -369,10 +369,10 @@ type GetOffersFilters = {
|
|
|
369
369
|
collateralTuple?: Array<{
|
|
370
370
|
asset: string;
|
|
371
371
|
oracle?: string;
|
|
372
|
-
lltv?:
|
|
372
|
+
lltv?: LLTV.LLTV;
|
|
373
373
|
}>;
|
|
374
|
-
minLltv?:
|
|
375
|
-
maxLltv?:
|
|
374
|
+
minLltv?: LLTV.LLTV;
|
|
375
|
+
maxLltv?: LLTV.LLTV;
|
|
376
376
|
sortBy?: "rate" | "maturity" | "expiry" | "amount";
|
|
377
377
|
sortOrder?: "asc" | "desc";
|
|
378
378
|
cursor?: string;
|
|
@@ -385,11 +385,11 @@ type FindMatchingOffersParams = {
|
|
|
385
385
|
collaterals?: Array<{
|
|
386
386
|
asset: string;
|
|
387
387
|
oracle: string;
|
|
388
|
-
lltv:
|
|
388
|
+
lltv: LLTV.LLTV;
|
|
389
389
|
}>;
|
|
390
|
-
maturity?:
|
|
391
|
-
minMaturity?:
|
|
392
|
-
maxMaturity?:
|
|
390
|
+
maturity?: Maturity.Maturity;
|
|
391
|
+
minMaturity?: Maturity.Maturity;
|
|
392
|
+
maxMaturity?: Maturity.Maturity;
|
|
393
393
|
loanToken?: string;
|
|
394
394
|
creator?: string;
|
|
395
395
|
/** Filter by offer status; if omitted defaults to ["valid"] */
|