@morpho-dev/router 0.7.2 → 0.9.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.
Files changed (68) hide show
  1. package/dist/cli.js +834 -334
  2. package/dist/drizzle/migrations/0000_setup_single_migration_folder.sql +64 -64
  3. package/dist/drizzle/migrations/0001_add-trigger-for-consumed-events.sql +5 -5
  4. package/dist/drizzle/migrations/0002_insert-status-code.sql +1 -1
  5. package/dist/drizzle/migrations/0003_update-triggers-for-consumed-events.sql +1 -1
  6. package/dist/drizzle/migrations/0004_drop-status-offers-foreign-key-constraint.sql +1 -1
  7. package/dist/drizzle/migrations/0005_add-index-to-boost-group-query-and-offer-hash.sql +1 -1
  8. package/dist/drizzle/migrations/0006_add-callbacks-and-positions-relations.sql +11 -11
  9. package/dist/drizzle/migrations/0008_validation.sql +10 -10
  10. package/dist/drizzle/migrations/0009_add-transfers-table.sql +4 -4
  11. package/dist/drizzle/migrations/0010_add-price.sql +1 -1
  12. package/dist/drizzle/migrations/0011_nullable-callback-amount.sql +1 -1
  13. package/dist/drizzle/migrations/0012_add-position-asset.sql +1 -1
  14. package/dist/drizzle/migrations/0013_remove-depecrated-domains.sql +13 -13
  15. package/dist/drizzle/migrations/0014_rename-offers-v2-into-offers.sql +19 -19
  16. package/dist/drizzle/migrations/0015_add-lots-table.sql +3 -3
  17. package/dist/drizzle/migrations/0016_merkle-metadata.sql +7 -7
  18. package/dist/drizzle/migrations/0017_dusty_the_hunter.sql +1 -1
  19. package/dist/drizzle/migrations/0018_add_chain_collector_constraints.sql +3 -3
  20. package/dist/drizzle/migrations/0019_add-obligation-units-shares.sql +2 -2
  21. package/dist/drizzle/migrations/0020_add-session.sql +1 -1
  22. package/dist/drizzle/migrations/0021_drop_chain_collector_epoch_indexes.sql +2 -2
  23. package/dist/drizzle/migrations/0021_migrate-rate-to-price.sql +6 -6
  24. package/dist/drizzle/migrations/0022_consolidate-price.sql +5 -5
  25. package/dist/drizzle/migrations/0023_remove-block-number-for-collaterals.sql +1 -1
  26. package/dist/drizzle/migrations/0024_add-obligation-id-to-lots.sql +8 -0
  27. package/dist/drizzle/migrations/0025_rename-price-to-tick.sql +202 -0
  28. package/dist/drizzle/migrations/0026_add-receiver-if-maker-is-seller.sql +1 -0
  29. package/dist/drizzle/migrations/meta/0000_snapshot.json +48 -48
  30. package/dist/drizzle/migrations/meta/0001_snapshot.json +48 -48
  31. package/dist/drizzle/migrations/meta/0002_snapshot.json +48 -48
  32. package/dist/drizzle/migrations/meta/0003_snapshot.json +48 -48
  33. package/dist/drizzle/migrations/meta/0004_snapshot.json +47 -47
  34. package/dist/drizzle/migrations/meta/0005_snapshot.json +47 -47
  35. package/dist/drizzle/migrations/meta/0006_snapshot.json +61 -61
  36. package/dist/drizzle/migrations/meta/0008_snapshot.json +62 -62
  37. package/dist/drizzle/migrations/meta/0009_snapshot.json +66 -66
  38. package/dist/drizzle/migrations/meta/0010_snapshot.json +66 -66
  39. package/dist/drizzle/migrations/meta/0013_snapshot.json +48 -48
  40. package/dist/drizzle/migrations/meta/0014_snapshot.json +48 -48
  41. package/dist/drizzle/migrations/meta/0015_snapshot.json +52 -52
  42. package/dist/drizzle/migrations/meta/0016_snapshot.json +61 -61
  43. package/dist/drizzle/migrations/meta/0017_snapshot.json +61 -61
  44. package/dist/drizzle/migrations/meta/0018_snapshot.json +62 -62
  45. package/dist/drizzle/migrations/meta/0019_snapshot.json +62 -62
  46. package/dist/drizzle/migrations/meta/0023_snapshot.json +62 -62
  47. package/dist/drizzle/migrations/meta/0024_snapshot.json +1448 -0
  48. package/dist/drizzle/migrations/meta/0025_snapshot.json +1448 -0
  49. package/dist/drizzle/migrations/meta/0026_snapshot.json +1454 -0
  50. package/dist/drizzle/migrations/meta/_journal.json +21 -0
  51. package/dist/evm/bytecode/morpho.txt +1 -1
  52. package/dist/index.browser.d.mts +206 -77
  53. package/dist/index.browser.d.mts.map +1 -1
  54. package/dist/index.browser.d.ts +206 -77
  55. package/dist/index.browser.d.ts.map +1 -1
  56. package/dist/index.browser.js +445 -197
  57. package/dist/index.browser.js.map +1 -1
  58. package/dist/index.browser.mjs +440 -198
  59. package/dist/index.browser.mjs.map +1 -1
  60. package/dist/index.node.d.mts +347 -119
  61. package/dist/index.node.d.mts.map +1 -1
  62. package/dist/index.node.d.ts +347 -119
  63. package/dist/index.node.d.ts.map +1 -1
  64. package/dist/index.node.js +865 -312
  65. package/dist/index.node.js.map +1 -1
  66. package/dist/index.node.mjs +861 -314
  67. package/dist/index.node.mjs.map +1 -1
  68. package/package.json +1 -1
@@ -16,15 +16,17 @@ declare namespace BookResponse_d_exports {
16
16
  export { BookLevelResponse, from$15 as from };
17
17
  }
18
18
  type BookLevelResponse = {
19
+ tick: number;
19
20
  price: string;
20
21
  assets: string;
21
22
  count: number;
22
23
  };
23
- declare function from$15(level: {
24
- price: bigint;
24
+ type Input$1 = {
25
+ tick: number;
25
26
  assets: bigint;
26
27
  count: number;
27
- }): BookLevelResponse;
28
+ };
29
+ declare function from$15(level: Input$1): BookLevelResponse;
28
30
  //#endregion
29
31
  //#region src/api/Schema/health.d.ts
30
32
  declare const CollectorHealth: z.ZodObject<{
@@ -34,9 +36,9 @@ declare const CollectorHealth: z.ZodObject<{
34
36
  updated_at: z.ZodNullable<z.ZodString>;
35
37
  lag: z.ZodNullable<z.ZodNumber>;
36
38
  status: z.ZodEnum<{
37
- unknown: "unknown";
38
39
  live: "live";
39
40
  lagging: "lagging";
41
+ unknown: "unknown";
40
42
  }>;
41
43
  initialized: z.ZodBoolean;
42
44
  }, z.core.$strip>;
@@ -47,9 +49,9 @@ declare const CollectorsHealthResponse: z.ZodArray<z.ZodObject<{
47
49
  updated_at: z.ZodNullable<z.ZodString>;
48
50
  lag: z.ZodNullable<z.ZodNumber>;
49
51
  status: z.ZodEnum<{
50
- unknown: "unknown";
51
52
  live: "live";
52
53
  lagging: "lagging";
54
+ unknown: "unknown";
53
55
  }>;
54
56
  initialized: z.ZodBoolean;
55
57
  }, z.core.$strip>>;
@@ -580,7 +582,7 @@ declare const MorphoV2: readonly [{
580
582
  readonly stateMutability: "nonpayable";
581
583
  readonly inputs: readonly [{
582
584
  readonly type: "address";
583
- readonly name: "recipient";
585
+ readonly name: "feeRecipient";
584
586
  }];
585
587
  readonly outputs: readonly [];
586
588
  }, {
@@ -660,6 +662,15 @@ declare const MorphoV2: readonly [{
660
662
  }, {
661
663
  readonly type: "address";
662
664
  readonly name: "taker";
665
+ }, {
666
+ readonly type: "address";
667
+ readonly name: "takerCallback";
668
+ }, {
669
+ readonly type: "bytes";
670
+ readonly name: "takerCallbackData";
671
+ }, {
672
+ readonly type: "address";
673
+ readonly name: "receiverIfTakerIsSeller";
663
674
  }, {
664
675
  readonly type: "tuple";
665
676
  readonly components: readonly [{
@@ -721,6 +732,9 @@ declare const MorphoV2: readonly [{
721
732
  }, {
722
733
  readonly type: "bytes";
723
734
  readonly name: "callbackData";
735
+ }, {
736
+ readonly type: "address";
737
+ readonly name: "receiverIfMakerIsSeller";
724
738
  }];
725
739
  readonly name: "offer";
726
740
  }, {
@@ -742,12 +756,6 @@ declare const MorphoV2: readonly [{
742
756
  }, {
743
757
  readonly type: "bytes32[]";
744
758
  readonly name: "proof";
745
- }, {
746
- readonly type: "address";
747
- readonly name: "takerCallback";
748
- }, {
749
- readonly type: "bytes";
750
- readonly name: "takerCallbackData";
751
759
  }];
752
760
  readonly outputs: readonly [{
753
761
  readonly type: "uint256";
@@ -869,6 +877,9 @@ declare const MorphoV2: readonly [{
869
877
  }, {
870
878
  readonly type: "address";
871
879
  readonly name: "onBehalf";
880
+ }, {
881
+ readonly type: "address";
882
+ readonly name: "receiver";
872
883
  }];
873
884
  readonly outputs: readonly [{
874
885
  readonly type: "uint256";
@@ -911,6 +922,9 @@ declare const MorphoV2: readonly [{
911
922
  }, {
912
923
  readonly type: "address";
913
924
  readonly name: "onBehalf";
925
+ }, {
926
+ readonly type: "address";
927
+ readonly name: "receiver";
914
928
  }];
915
929
  readonly outputs: readonly [];
916
930
  }, {
@@ -1098,7 +1112,7 @@ declare const MorphoV2: readonly [{
1098
1112
  readonly type: "event";
1099
1113
  readonly inputs: readonly [{
1100
1114
  readonly type: "address";
1101
- readonly name: "recipient";
1115
+ readonly name: "feeRecipient";
1102
1116
  readonly indexed: true;
1103
1117
  }];
1104
1118
  }, {
@@ -1173,6 +1187,9 @@ declare const MorphoV2: readonly [{
1173
1187
  }, {
1174
1188
  readonly type: "bool";
1175
1189
  readonly name: "sellerIsBorrower";
1190
+ }, {
1191
+ readonly type: "address";
1192
+ readonly name: "sellerReceiver";
1176
1193
  }, {
1177
1194
  readonly type: "bytes32";
1178
1195
  readonly name: "group";
@@ -1186,7 +1203,6 @@ declare const MorphoV2: readonly [{
1186
1203
  readonly inputs: readonly [{
1187
1204
  readonly type: "address";
1188
1205
  readonly name: "caller";
1189
- readonly indexed: true;
1190
1206
  }, {
1191
1207
  readonly type: "bytes32";
1192
1208
  readonly name: "id";
@@ -1201,6 +1217,10 @@ declare const MorphoV2: readonly [{
1201
1217
  readonly type: "address";
1202
1218
  readonly name: "onBehalf";
1203
1219
  readonly indexed: true;
1220
+ }, {
1221
+ readonly type: "address";
1222
+ readonly name: "receiver";
1223
+ readonly indexed: true;
1204
1224
  }];
1205
1225
  }, {
1206
1226
  readonly name: "WithdrawCollateral";
@@ -1223,6 +1243,9 @@ declare const MorphoV2: readonly [{
1223
1243
  readonly type: "address";
1224
1244
  readonly name: "onBehalf";
1225
1245
  readonly indexed: true;
1246
+ }, {
1247
+ readonly type: "address";
1248
+ readonly name: "receiver";
1226
1249
  }];
1227
1250
  }];
1228
1251
  type MorphoV2 = typeof MorphoV2;
@@ -1942,8 +1965,8 @@ type Offer = {
1942
1965
  /** The address that made the offer. */readonly maker: Address; /** The amount of assets offered. Mutually exclusive with obligationUnits and obligationShares. */
1943
1966
  readonly assets: bigint; /** The max debt units to trade. Mutually exclusive with assets and obligationShares. */
1944
1967
  readonly obligationUnits: bigint; /** The max lending shares to trade. Mutually exclusive with assets and obligationUnits. */
1945
- readonly obligationShares: bigint; /** The price (18 decimals). */
1946
- readonly price: bigint; /** The date at which all interests will be paid. */
1968
+ readonly obligationShares: bigint; /** The offer tick. */
1969
+ readonly tick: number; /** The date at which all interests will be paid. */
1947
1970
  readonly maturity: Maturity; /** The date at which the offer will expire. */
1948
1971
  readonly expiry: number; /** The date at which the offer will start. */
1949
1972
  readonly start: number; /** The group. Used for OCO (One-Cancelled-Other) mechanism. */
@@ -1956,7 +1979,8 @@ type Offer = {
1956
1979
  readonly callback: {
1957
1980
  readonly address: Address;
1958
1981
  readonly data: Hex;
1959
- };
1982
+ }; /** Receiver of loan token proceeds when maker is seller on `take()`. */
1983
+ readonly receiverIfMakerIsSeller: Address;
1960
1984
  };
1961
1985
  declare enum Status {
1962
1986
  VALID = "VALID",
@@ -1971,7 +1995,7 @@ declare const OfferSchema: () => z$1.ZodObject<{
1971
1995
  assets: z$1.ZodBigInt;
1972
1996
  obligationUnits: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBigInt>>;
1973
1997
  obligationShares: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBigInt>>;
1974
- price: z$1.ZodBigInt;
1998
+ tick: z$1.ZodCoercedNumber<unknown>;
1975
1999
  maturity: z$1.ZodPipe<z$1.ZodNumber, z$1.ZodTransform<Maturity, number>>;
1976
2000
  expiry: z$1.ZodNumber;
1977
2001
  start: z$1.ZodNumber;
@@ -1989,6 +2013,7 @@ declare const OfferSchema: () => z$1.ZodObject<{
1989
2013
  address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
1990
2014
  data: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
1991
2015
  }, z$1.core.$strip>;
2016
+ receiverIfMakerIsSeller: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
1992
2017
  }, z$1.core.$strip>;
1993
2018
  /**
1994
2019
  * Input type for creating offers. Accepts flexible group types that will be coerced to Hex.
@@ -2001,12 +2026,13 @@ declare const OfferSchema: () => z$1.ZodObject<{
2001
2026
  *
2002
2027
  * All values validated to be non-negative and within bytes32 range.
2003
2028
  */
2004
- type OfferInput = Compute<Omit<Offer, "chainId" | "group" | "session" | "obligationUnits" | "obligationShares"> & {
2029
+ type OfferInput = Compute<Omit<Offer, "chainId" | "group" | "session" | "obligationUnits" | "obligationShares" | "receiverIfMakerIsSeller"> & {
2005
2030
  chainId: number;
2006
2031
  group: Hex | bigint | number | string; /** Optional: defaults to zero bytes32. */
2007
2032
  session?: Hex | bigint | number | string; /** Optional: defaults to 0n. Mutually exclusive with assets and obligationShares. */
2008
2033
  obligationUnits?: bigint; /** Optional: defaults to 0n. Mutually exclusive with assets and obligationUnits. */
2009
- obligationShares?: bigint;
2034
+ obligationShares?: bigint; /** Optional: defaults to maker for backward compatibility. */
2035
+ receiverIfMakerIsSeller?: Address;
2010
2036
  }>;
2011
2037
  /**
2012
2038
  * Creates an offer from a plain object.
@@ -2024,9 +2050,9 @@ declare namespace from$10 {
2024
2050
  * @param input - The offer to create.
2025
2051
  * @returns The created offer.
2026
2052
  */
2027
- declare function fromSnakeCase$1(input: Snake<Omit<Offer, "chainId" | "session"> & {
2028
- chainId: number;
2029
- session: string;
2053
+ declare function fromSnakeCase$1(input: Snake<Omit<Offer, "session" | "receiverIfMakerIsSeller"> & {
2054
+ session?: Hex;
2055
+ receiverIfMakerIsSeller?: Address;
2030
2056
  }>): Offer;
2031
2057
  /**
2032
2058
  * Converts an offer to a snake case object.
@@ -2046,7 +2072,7 @@ declare const serialize: (offer: Offer) => {
2046
2072
  assets: string;
2047
2073
  obligationUnits: string;
2048
2074
  obligationShares: string;
2049
- price: string;
2075
+ tick: number;
2050
2076
  maturity: number;
2051
2077
  expiry: number;
2052
2078
  start: number;
@@ -2064,6 +2090,7 @@ declare const serialize: (offer: Offer) => {
2064
2090
  address: `0x${string}`;
2065
2091
  data: `0x${string}`;
2066
2092
  };
2093
+ receiverIfMakerIsSeller: `0x${string}`;
2067
2094
  hash: `0x${string}`;
2068
2095
  };
2069
2096
  type RandomConfig = {
@@ -2081,11 +2108,12 @@ type RandomConfig = {
2081
2108
  expiry?: number;
2082
2109
  group?: Hex | bigint | number | string;
2083
2110
  session?: Hex | bigint | number | string;
2084
- price?: bigint;
2111
+ tick?: number;
2085
2112
  callback?: {
2086
2113
  address: Address;
2087
2114
  data: Hex;
2088
2115
  };
2116
+ receiverIfMakerIsSeller?: Address;
2089
2117
  collaterals?: readonly Collateral[];
2090
2118
  };
2091
2119
  /**
@@ -2130,7 +2158,7 @@ declare const types: {
2130
2158
  readonly name: "obligationShares";
2131
2159
  readonly type: "uint256";
2132
2160
  }, {
2133
- readonly name: "price";
2161
+ readonly name: "tick";
2134
2162
  readonly type: "uint256";
2135
2163
  }, {
2136
2164
  readonly name: "maturity";
@@ -2156,6 +2184,9 @@ declare const types: {
2156
2184
  }, {
2157
2185
  readonly name: "callback";
2158
2186
  readonly type: "Callback";
2187
+ }, {
2188
+ readonly name: "receiverIfMakerIsSeller";
2189
+ readonly type: "address";
2159
2190
  }];
2160
2191
  readonly Collateral: readonly [{
2161
2192
  readonly name: "asset";
@@ -2254,6 +2285,11 @@ declare const takeEvent: {
2254
2285
  readonly type: "bool";
2255
2286
  readonly indexed: false;
2256
2287
  readonly internalType: "bool";
2288
+ }, {
2289
+ readonly name: "sellerReceiver";
2290
+ readonly type: "address";
2291
+ readonly indexed: false;
2292
+ readonly internalType: "address";
2257
2293
  }, {
2258
2294
  readonly name: "group";
2259
2295
  readonly type: "bytes32";
@@ -2457,26 +2493,26 @@ declare namespace from$8 {
2457
2493
  type ReturnType = Position;
2458
2494
  }
2459
2495
  declare namespace Quote_d_exports {
2460
- export { InvalidQuoteError, Quote, QuoteSchema, from$7 as from, fromSnakeCase, random };
2496
+ export { InvalidQuoteError, Quote, QuoteInput, Side, from$7 as from, fromSnakeCase, random };
2461
2497
  }
2462
- type Quote = {
2498
+ type Side = {
2499
+ /** The best side tick, or null when no active quote exists. */tick: number | null; /** The side price for the obligation. (18 decimals). */
2500
+ price: bigint;
2501
+ };
2502
+ type QuoteInput = {
2463
2503
  /** The obligation id. */obligationId: Hex;
2464
2504
  ask: {
2465
- /** The ask price for the obligation. (18 decimals). */price: bigint;
2505
+ /** The best ask tick, or null when there is no active ask quote. */tick: number | null;
2466
2506
  };
2467
2507
  bid: {
2468
- /** The bid price for the obligation. (18 decimals). */price: bigint;
2508
+ /** The best bid tick, or null when there is no active bid quote. */tick: number | null;
2469
2509
  };
2470
2510
  };
2471
- declare const QuoteSchema: z$1.ZodObject<{
2472
- obligationId: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
2473
- ask: z$1.ZodObject<{
2474
- price: z$1.ZodBigInt;
2475
- }, z$1.core.$strip>;
2476
- bid: z$1.ZodObject<{
2477
- price: z$1.ZodBigInt;
2478
- }, z$1.core.$strip>;
2479
- }, z$1.core.$strip>;
2511
+ type Quote = {
2512
+ /** The obligation id. */obligationId: Hex;
2513
+ ask: Side;
2514
+ bid: Side;
2515
+ };
2480
2516
  /**
2481
2517
  * Creates a quote for a given obligation.
2482
2518
  * @constructor
@@ -2486,12 +2522,12 @@ declare const QuoteSchema: z$1.ZodObject<{
2486
2522
  *
2487
2523
  * @example
2488
2524
  * ```ts
2489
- * const quote = Quote.from({ obligationId: "0x123", ask: { price: 100n }, bid: { price: 100n } });
2525
+ * const quote = Quote.from({ obligationId: "0x123", ask: { tick: 500 }, bid: { tick: 510 } });
2490
2526
  * ```
2491
2527
  */
2492
2528
  declare function from$7(parameters: from$7.Parameters): from$7.ReturnType;
2493
2529
  declare namespace from$7 {
2494
- type Parameters = Quote;
2530
+ type Parameters = QuoteInput;
2495
2531
  type ReturnType = Quote;
2496
2532
  type ErrorType = InvalidQuoteError;
2497
2533
  }
@@ -2503,7 +2539,7 @@ declare namespace from$7 {
2503
2539
  */
2504
2540
  declare function fromSnakeCase(snake: fromSnakeCase.Parameters): fromSnakeCase.ReturnType;
2505
2541
  declare namespace fromSnakeCase {
2506
- type Parameters = Snake<Quote>;
2542
+ type Parameters = Snake<QuoteInput>;
2507
2543
  type ReturnType = Quote;
2508
2544
  type ErrorType = from$7.ErrorType;
2509
2545
  }
@@ -2526,6 +2562,41 @@ declare class InvalidQuoteError extends BaseError<z$1.ZodError | Error> {
2526
2562
  readonly name = "Quote.InvalidQuoteError";
2527
2563
  constructor(error: z$1.ZodError | Error);
2528
2564
  }
2565
+ declare namespace Tick_d_exports {
2566
+ export { InvalidPriceError, InvalidTickError, MAX_PRICE, TICK_RANGE, priceToTick, tickToPrice };
2567
+ }
2568
+ /** Tick domain supported by Morpho V2. */
2569
+ declare const TICK_RANGE = 990;
2570
+ /** Max allowed price (1e18 in wad). */
2571
+ declare const MAX_PRICE: bigint;
2572
+ /**
2573
+ * Converts a tick to a wad price using the same approximation and rounding as TickLib.
2574
+ * @param tick - Tick value in the inclusive range [0, 990].
2575
+ * @returns The price in wad units.
2576
+ * @throws {@link InvalidTickError} If tick is not an integer in range [0, 990].
2577
+ */
2578
+ declare function tickToPrice(tick: number): bigint;
2579
+ declare namespace tickToPrice {
2580
+ type ErrorType = InvalidTickError;
2581
+ }
2582
+ /**
2583
+ * Returns the lowest tick with a higher-or-equal price.
2584
+ * @param price - Price in wad units.
2585
+ * @returns The first tick whose {@link tickToPrice} is greater than or equal to `price`.
2586
+ * @throws {@link InvalidPriceError} If price is outside [0, 1e18].
2587
+ */
2588
+ declare function priceToTick(price: bigint): number;
2589
+ declare namespace priceToTick {
2590
+ type ErrorType = InvalidPriceError;
2591
+ }
2592
+ declare class InvalidTickError extends BaseError {
2593
+ readonly name = "Tick.InvalidTickError";
2594
+ constructor(tick: number);
2595
+ }
2596
+ declare class InvalidPriceError extends BaseError {
2597
+ readonly name = "Tick.InvalidPriceError";
2598
+ constructor(price: bigint);
2599
+ }
2529
2600
  declare namespace TradingFee_d_exports {
2530
2601
  export { BREAKPOINTS, Fees, InvalidFeeError, InvalidFeesLengthError, TradingFee, WAD, activate, compute, deactivate, from$6 as from, getFees, isActivated };
2531
2602
  }
@@ -2842,13 +2913,13 @@ interface paths {
2842
2913
  };
2843
2914
  /**
2844
2915
  * Get aggregated book
2845
- * @description Returns aggregated book data for a given obligation and side. Offers are grouped by computed price with summed takeable amounts. Book levels are sorted by price (ascending for buy side, descending for sell side).
2916
+ * @description Returns aggregated book data for a given obligation and side. Offers are grouped by tick with summed takeable amounts, and each level includes the corresponding wad-scaled price. Book levels are sorted by tick (ascending for sell side, descending for buy side).
2846
2917
  */
2847
2918
  get: {
2848
2919
  parameters: {
2849
2920
  query?: {
2850
2921
  /**
2851
- * @description Maximum number of price levels to return.
2922
+ * @description Maximum number of tick levels to return.
2852
2923
  * @example 10
2853
2924
  */
2854
2925
  limit?: number;
@@ -2964,7 +3035,7 @@ interface paths {
2964
3035
  };
2965
3036
  /**
2966
3037
  * Get config rules
2967
- * @description Returns configured rules (maturities, loan tokens, oracles) for supported chains.
3038
+ * @description Returns configured rules (maturities, loan tokens, collateral tokens, oracles) for supported chains.
2968
3039
  */
2969
3040
  get: {
2970
3041
  parameters: {
@@ -2976,7 +3047,7 @@ interface paths {
2976
3047
  chains?: number[];
2977
3048
  /**
2978
3049
  * @description Filter by rule types (comma-separated).
2979
- * @example maturity,loan_token,oracle
3050
+ * @example maturity,loan_token,collateral_token,oracle
2980
3051
  */
2981
3052
  types?: string[];
2982
3053
  /**
@@ -3095,11 +3166,16 @@ interface paths {
3095
3166
  };
3096
3167
  /**
3097
3168
  * List all obligations
3098
- * @description Returns a list of obligations with their current best ask and bid. Obligations are sorted by their id in ascending order by default.
3169
+ * @description Returns a list of obligations with their current best ask and bid. Sorting is customizable with the sort parameter and defaults to id ascending.
3099
3170
  */
3100
3171
  get: {
3101
3172
  parameters: {
3102
3173
  query?: {
3174
+ /**
3175
+ * @description Sort order as comma-separated fields (`id`, `ask`, `bid`, `maturity`). Prefix with `-` for descending order. Max 3 fields.
3176
+ * @example -ask,bid,maturity
3177
+ */
3178
+ sort?: string;
3103
3179
  /**
3104
3180
  * @description Filter by exact maturity timestamps (comma-separated, unix seconds).
3105
3181
  * @example 1761922800,1764524800
@@ -3126,8 +3202,8 @@ interface paths {
3126
3202
  */
3127
3203
  limit?: number;
3128
3204
  /**
3129
- * @description Obligation id cursor for pagination.
3130
- * @example 0x25690ae1aee324a005be565f3bcdd16dbf8daf7969b26c181c8b8f467dad9abc
3205
+ * @description Pagination cursor in base64url-encoded format.
3206
+ * @example eyJzb3J0IjpbImlkIl0sImlkIjoiMHgxMjM0NTY3ODkwMTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nzg5MDEyMzQ1Njc4OTAiLCJhc2siOiIwIiwiYmlkIjoiMCIsIm1hdHVyaXR5IjoxNzYxOTIyODAwfQ
3131
3207
  */
3132
3208
  cursor?: string;
3133
3209
  };
@@ -3356,7 +3432,7 @@ interface paths {
3356
3432
  };
3357
3433
  /**
3358
3434
  * Get user positions
3359
- * @description Returns positions for a user with reserved balance. The reserved balance is the amount locked by active offers (max lot upper - offset - consumed).
3435
+ * @description Returns positions for a user with reserved balance per obligation. Each (position, obligation) pair is returned as a separate row. Positions with no lots return a single row with obligation_id = null and reserved = 0.
3360
3436
  */
3361
3437
  get: {
3362
3438
  parameters: {
@@ -3465,14 +3541,19 @@ interface components {
3465
3541
  schemas: {
3466
3542
  BookListResponse: {
3467
3543
  meta: components["schemas"]["Meta"]; /** @example eyJvZmZzZXQiOjEwMH0 */
3468
- cursor: string | null; /** @description Aggregated book levels grouped by computed price. */
3544
+ cursor: string | null; /** @description Aggregated book levels grouped by offer tick. */
3469
3545
  data: components["schemas"]["BookLevelResponse"][];
3470
3546
  };
3471
3547
  Meta: {
3472
3548
  /** @example 2024-01-01T12:00:00.000Z */timestamp: string;
3473
3549
  };
3474
3550
  BookLevelResponse: {
3475
- /** @example 2750000000000000000 */price: string; /** @example 369216000000000000000000 */
3551
+ /** @example 495 */tick: number;
3552
+ /**
3553
+ * @description Price derived from tick, scaled by 1e18.
3554
+ * @example 500000000000000000
3555
+ */
3556
+ price: string; /** @example 369216000000000000000000 */
3476
3557
  assets: string; /** @example 5 */
3477
3558
  count: number;
3478
3559
  };
@@ -3549,6 +3630,11 @@ interface components {
3549
3630
  * "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
3550
3631
  * },
3551
3632
  * {
3633
+ * "type": "collateral_token",
3634
+ * "chain_id": 1,
3635
+ * "address": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"
3636
+ * },
3637
+ * {
3552
3638
  * "type": "oracle",
3553
3639
  * "chain_id": 1,
3554
3640
  * "address": "0xDddd770BADd886dF3864029e4B377B5F6a2B6b83"
@@ -3598,11 +3684,12 @@ interface components {
3598
3684
  * "obligation_shares": "0",
3599
3685
  * "start": 1761922790,
3600
3686
  * "expiry": 1761922799,
3601
- * "price": "2750000000000000000",
3687
+ * "tick": 495,
3602
3688
  * "group": "0x000000000000000000000000000000000000000000000000000000000008b8f4",
3603
3689
  * "session": "0x0000000000000000000000000000000000000000000000000000000000000000",
3604
3690
  * "callback": "0x0000000000000000000000000000000000000000",
3605
- * "callback_data": "0x"
3691
+ * "callback_data": "0x",
3692
+ * "receiver_if_maker_is_seller": "0x7b093658BE7f90B63D7c359e8f408e503c2D9401"
3606
3693
  * },
3607
3694
  * "offer_hash": "0xac4bd8318ec914f89f8af913f162230575b0ac0696a19256bc12138c5cfe1427",
3608
3695
  * "obligation_id": "0x25690ae1aee324a005be565f3bcdd16dbf8daf7969b26c181c8b8f467dad9abc",
@@ -3642,11 +3729,12 @@ interface components {
3642
3729
  * "obligation_shares": "0",
3643
3730
  * "start": 1761922790,
3644
3731
  * "expiry": 1761922799,
3645
- * "price": "2750000000000000000",
3732
+ * "tick": 495,
3646
3733
  * "group": "0x000000000000000000000000000000000000000000000000000000000008b8f4",
3647
3734
  * "session": "0x0000000000000000000000000000000000000000000000000000000000000000",
3648
3735
  * "callback": "0x0000000000000000000000000000000000000000",
3649
- * "callback_data": "0x"
3736
+ * "callback_data": "0x",
3737
+ * "receiver_if_maker_is_seller": "0x7b093658BE7f90B63D7c359e8f408e503c2D9401"
3650
3738
  * }
3651
3739
  */
3652
3740
  offer: components["schemas"]["OfferDataResponse"]; /** @example 0xac4bd8318ec914f89f8af913f162230575b0ac0696a19256bc12138c5cfe1427 */
@@ -3687,12 +3775,13 @@ interface components {
3687
3775
  obligation_units: string; /** @example 0 */
3688
3776
  obligation_shares: string; /** @example 1761922790 */
3689
3777
  start: number; /** @example 1761922799 */
3690
- expiry: number; /** @example 2750000000000000000 */
3691
- price: string; /** @example 0x000000000000000000000000000000000000000000000000000000000008b8f4 */
3778
+ expiry: number; /** @example 495 */
3779
+ tick: number; /** @example 0x000000000000000000000000000000000000000000000000000000000008b8f4 */
3692
3780
  group: string; /** @example 0x0000000000000000000000000000000000000000000000000000000000000000 */
3693
3781
  session: string; /** @example 0x0000000000000000000000000000000000000000 */
3694
3782
  callback: string; /** @example 0x */
3695
- callback_data: string;
3783
+ callback_data: string; /** @example 0x7b093658BE7f90B63D7c359e8f408e503c2D9401 */
3784
+ receiver_if_maker_is_seller: string;
3696
3785
  };
3697
3786
  ObligationOfferResponse: {
3698
3787
  /** @example 0xC9A9C45C0eB717f8b5F193Af6bAa05A1c0Ac5078 */loan_token: string;
@@ -3714,7 +3803,7 @@ interface components {
3714
3803
  oracle: string;
3715
3804
  };
3716
3805
  ObligationListResponse: {
3717
- meta: components["schemas"]["Meta"]; /** @example 0x25690ae1aee324a005be565f3bcdd16dbf8daf7969b26c181c8b8f467dad9abc */
3806
+ meta: components["schemas"]["Meta"]; /** @example eyJzb3J0IjpbImlkIl0sImlkIjoiMHgxMjM0NTY3ODkwMTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nzg5MDEyMzQ1Njc4OTAiLCJhc2siOiIwIiwiYmlkIjoiMCIsIm1hdHVyaXR5IjoxNzYxOTIyODAwfQ */
3718
3807
  cursor: string | null; /** @description List of obligations with takable offers. */
3719
3808
  data: components["schemas"]["ObligationResponse"][];
3720
3809
  };
@@ -3728,10 +3817,20 @@ interface components {
3728
3817
  bid: components["schemas"]["BidResponse"];
3729
3818
  };
3730
3819
  AskResponse: {
3731
- /** @example 1000000000000000000 */price: string;
3820
+ /**
3821
+ * @description Best ask tick. Null when there is no active ask quote.
3822
+ * @example 500
3823
+ */
3824
+ tick: number | null; /** @example 1000000000000000000 */
3825
+ price: string;
3732
3826
  };
3733
3827
  BidResponse: {
3734
- /** @example 1000000000000000000 */price: string;
3828
+ /**
3829
+ * @description Best bid tick. Null when there is no active bid quote.
3830
+ * @example 500
3831
+ */
3832
+ tick: number | null; /** @example 1000000000000000000 */
3833
+ price: string;
3735
3834
  };
3736
3835
  ObligationSingleSuccessResponse: {
3737
3836
  meta: components["schemas"]["Meta"]; /** @example null */
@@ -3837,6 +3936,7 @@ interface components {
3837
3936
  * "chain_id": 1,
3838
3937
  * "contract": "0xC9A9C45C0eB717f8b5F193Af6bAa05A1c0Ac5078",
3839
3938
  * "user": "0x7b093658BE7f90B63D7c359e8f408e503c2D9401",
3939
+ * "obligation_id": "0x12590ae1aee324a005be565f3bcdd16dbf8daf7969b26c181c8b8f467dad9f67",
3840
3940
  * "reserved": "200000000000000000000",
3841
3941
  * "block_number": 21345678
3842
3942
  * }
@@ -3847,7 +3947,12 @@ interface components {
3847
3947
  PositionListItemResponse: {
3848
3948
  /** @example 1 */chain_id: number; /** @example 0xC9A9C45C0eB717f8b5F193Af6bAa05A1c0Ac5078 */
3849
3949
  contract: string; /** @example 0x7b093658BE7f90B63D7c359e8f408e503c2D9401 */
3850
- user: string; /** @example 200000000000000000000 */
3950
+ user: string;
3951
+ /**
3952
+ * @description Obligation id this reserved amount belongs to, or null if no lots exist.
3953
+ * @example 0x12590ae1aee324a005be565f3bcdd16dbf8daf7969b26c181c8b8f467dad9f67
3954
+ */
3955
+ obligation_id: string | null; /** @example 200000000000000000000 */
3851
3956
  reserved: string; /** @example 21345678 */
3852
3957
  block_number: number;
3853
3958
  };
@@ -3858,8 +3963,8 @@ interface components {
3858
3963
  /** @example 0x7b093658BE7f90B63D7c359e8f408e503c2D9401 */maker: string; /** @example 369216000000000000000000 */
3859
3964
  assets: string; /** @example 0 */
3860
3965
  obligation_units?: string; /** @example 0 */
3861
- obligation_shares?: string; /** @example 2750000000000000000 */
3862
- price: string; /** @example 1761922799 */
3966
+ obligation_shares?: string; /** @example 495 */
3967
+ tick: number; /** @example 1761922799 */
3863
3968
  maturity: number; /** @example 1761922799 */
3864
3969
  expiry: number; /** @example 1761922790 */
3865
3970
  start: number; /** @example 0x000000000000000000000000000000000000000000000000000000000008b8f4 */
@@ -3884,7 +3989,8 @@ interface components {
3884
3989
  * "data": "0x"
3885
3990
  * }
3886
3991
  */
3887
- callback: components["schemas"]["ValidateCallbackRequest"];
3992
+ callback: components["schemas"]["ValidateCallbackRequest"]; /** @example 0x7b093658BE7f90B63D7c359e8f408e503c2D9401 */
3993
+ receiver_if_maker_is_seller: string;
3888
3994
  };
3889
3995
  ValidateCollateralRequest: {
3890
3996
  /** @example 0x34Cf890dB685FC536E05652FB41f02090c3fb751 */asset: string; /** @example 0x45093658BE7f90B63D7c359e8f408e503c2D9401 */
@@ -3927,6 +4033,7 @@ type ObligationResponse = paths["/v1/obligations"]["get"]["responses"]["200"]["c
3927
4033
  * Creates an `ObligationResponse` from a `Obligation`.
3928
4034
  * @constructor
3929
4035
  * @param obligation - {@link Obligation}
4036
+ * @param quote - {@link Quote}
3930
4037
  * @returns The created `ObligationResponse`. {@link ObligationResponse}
3931
4038
  */
3932
4039
  declare function from$3(obligation: Obligation, quote: Quote): ObligationResponse;
@@ -3940,7 +4047,7 @@ type Input = Readonly<{
3940
4047
  assets: bigint;
3941
4048
  obligationUnits: bigint;
3942
4049
  obligationShares: bigint;
3943
- price: bigint;
4050
+ tick: number;
3944
4051
  maturity: number;
3945
4052
  expiry: number;
3946
4053
  start: number;
@@ -3958,6 +4065,7 @@ type Input = Readonly<{
3958
4065
  address: Address;
3959
4066
  data: Hex;
3960
4067
  };
4068
+ receiverIfMakerIsSeller: Address;
3961
4069
  root?: Hex | undefined;
3962
4070
  proof?: Hex[] | undefined;
3963
4071
  signature?: Hex | undefined;
@@ -4016,7 +4124,8 @@ declare namespace getByUser {
4016
4124
  chainId: Id;
4017
4125
  contract: Address;
4018
4126
  user: Address;
4019
- blockNumber: number; /** The amount reserved by active offers: max(lot.upper) - offset - consumed */
4127
+ blockNumber: number; /** The obligation this reserved amount belongs to, or null if no lots exist */
4128
+ obligationId: string | null; /** The amount reserved by active offers: max(lot.upper) - offset - consumed */
4020
4129
  reserved: bigint;
4021
4130
  };
4022
4131
  type ReturnType = {
@@ -4031,6 +4140,7 @@ type PositionResponse = {
4031
4140
  chain_id: Id;
4032
4141
  contract: Address;
4033
4142
  user: Address;
4143
+ obligation_id: string | null;
4034
4144
  reserved: string;
4035
4145
  block_number: number;
4036
4146
  };
@@ -4080,6 +4190,7 @@ declare const schemas: {
4080
4190
  maturity: "maturity";
4081
4191
  callback: "callback";
4082
4192
  loan_token: "loan_token";
4193
+ collateral_token: "collateral_token";
4083
4194
  oracle: "oracle";
4084
4195
  }>>>>;
4085
4196
  chains: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodTransform<{} | null | undefined, unknown>, z$1.ZodArray<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>>>>;
@@ -4112,6 +4223,7 @@ declare const schemas: {
4112
4223
  loan_tokens: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodTransform<{} | null | undefined, unknown>, z$1.ZodArray<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>>>>;
4113
4224
  collateral_tokens: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodTransform<{} | null | undefined, unknown>, z$1.ZodArray<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>>>>;
4114
4225
  maturities: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodTransform<{} | null | undefined, unknown>, z$1.ZodArray<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>>>>;
4226
+ sort: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodTransform<{} | null | undefined, unknown>, z$1.ZodArray<z$1.ZodString>>>;
4115
4227
  limit: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>, z$1.ZodNumber>>>;
4116
4228
  }, z$1.core.$strip>;
4117
4229
  readonly get_obligation: z$1.ZodObject<{
@@ -4228,13 +4340,16 @@ declare namespace getOffers {
4228
4340
  }
4229
4341
  declare function getObligations(apiClient: Client<paths>, parameters?: getObligations.Parameters): Promise<getObligations.ReturnType>;
4230
4342
  declare namespace getObligations {
4343
+ type SortField = "id" | "ask" | "bid" | "maturity";
4344
+ type SortEntry = SortField | `-${SortField}`;
4231
4345
  type Parameters = {
4232
- /** Pagination cursor is a 32-byte hex string. */cursor?: Hex; /** Maximum number of obligations to return. @default 20 */
4346
+ /** Pagination cursor in base64url-encoded format. */cursor?: string; /** Maximum number of obligations to return. @default 20 */
4233
4347
  limit?: number; /** Filter by chain IDs (comma-separated). */
4234
4348
  chainIds?: number[]; /** Filter by loan token addresses (comma-separated). */
4235
4349
  loanTokens?: Address[]; /** Filter by collateral tokens (comma-separated, matches any collateral). */
4236
4350
  collateralTokens?: Address[]; /** Filter by exact maturity timestamps (comma-separated, unix seconds). */
4237
- maturities?: number[];
4351
+ maturities?: number[]; /** Sort order entries in priority order. Prefix with '-' for descending. Max 3 fields. */
4352
+ sort?: SortEntry[];
4238
4353
  };
4239
4354
  type ReturnType = {
4240
4355
  obligations: Compute<{
@@ -4353,6 +4468,10 @@ type ConfigRule = {
4353
4468
  type: "loan_token";
4354
4469
  chain_id: Id;
4355
4470
  address: Address;
4471
+ } | {
4472
+ type: "collateral_token";
4473
+ chain_id: Id;
4474
+ address: Address;
4356
4475
  } | {
4357
4476
  type: "oracle";
4358
4477
  chain_id: Id;
@@ -4440,9 +4559,9 @@ type GatekeeperParameters = {
4440
4559
  declare function create(parameters: GatekeeperParameters): Gatekeeper;
4441
4560
  //#endregion
4442
4561
  //#region src/gatekeeper/morphoRules.d.ts
4443
- declare const morphoRules: (chains: Chain$1[]) => (Rule<Offer, "mixed_maker"> | Rule<Offer, "amount_mutual_exclusivity"> | Rule<Offer, "chain_ids"> | Rule<Offer, "maturity"> | Rule<Offer, "callback"> | Rule<Offer, "token"> | Rule<Offer, "oracle">)[];
4562
+ declare const morphoRules: (chains: Chain$1[]) => (Rule<Offer, "mixed_maker"> | Rule<Offer, "amount_mutual_exclusivity"> | Rule<Offer, "chain_ids"> | Rule<Offer, "maturity"> | Rule<Offer, "callback"> | Rule<Offer, "loan_token"> | Rule<Offer, "collateral_token"> | Rule<Offer, "oracle">)[];
4444
4563
  declare namespace Rules_d_exports {
4445
- export { ValidityParameters, amountMutualExclusivity, callback, chains, maturity, oracle, sameMaker, token, validity };
4564
+ export { ValidityParameters, amountMutualExclusivity, callback, chains, collateralToken, loanToken, maturity, oracle, sameMaker, validity };
4446
4565
  }
4447
4566
  type ValidityParameters = {
4448
4567
  client: PublicClient<Transport, Chain$1>;
@@ -4471,15 +4590,25 @@ declare const callback: ({
4471
4590
  allowedAddresses: Address[];
4472
4591
  }) => Rule<Offer, "callback">;
4473
4592
  /**
4474
- * A validation rule that checks if the offer's tokens are allowed for its chain.
4475
- * @param assetsByChainId - Allowed assets indexed by chain id.
4593
+ * A validation rule that checks if the offer's loan token is allowed for its chain.
4594
+ * @param assetsByChainId - Allowed loan tokens indexed by chain id.
4476
4595
  * @returns The issue that was found. If the offer is valid, this will be undefined.
4477
4596
  */
4478
- declare const token: ({
4597
+ declare const loanToken: ({
4479
4598
  assetsByChainId
4480
4599
  }: {
4481
4600
  assetsByChainId: Partial<Record<Id, Address[]>>;
4482
- }) => Rule<Offer, "token">;
4601
+ }) => Rule<Offer, "loan_token">;
4602
+ /**
4603
+ * A validation rule that checks if the offer's collateral tokens are allowed for its chain.
4604
+ * @param collateralAssetsByChainId - Allowed collateral tokens indexed by chain id.
4605
+ * @returns The issue that was found. If the offer is valid, this will be undefined.
4606
+ */
4607
+ declare const collateralToken: ({
4608
+ collateralAssetsByChainId
4609
+ }: {
4610
+ collateralAssetsByChainId: Partial<Record<Id, Address[]>>;
4611
+ }) => Rule<Offer, "collateral_token">;
4483
4612
  /**
4484
4613
  * A validation rule that checks if the offer's oracle addresses are allowed for its chain.
4485
4614
  * @param oraclesByChainId - Allowed oracles indexed by chain id.
@@ -4694,5 +4823,5 @@ declare namespace index_d_exports$2 {
4694
4823
  export { BaseError, GlobalErrorType, Group_d_exports as Group, Random_d_exports as Random, ReorgError, Snake, time_d_exports as Time, atMostOneNonZero, batch, batchMulticall, fromSnakeCase$3 as fromSnakeCase, lazy, max$1 as max, min, poll, retry, stringifyBigint, toSnakeCase$1 as toSnakeCase, wait };
4695
4824
  }
4696
4825
  //#endregion
4697
- export { index_d_exports as Abi, Brand, BrandTypeId, Callback_d_exports as Callback, Chain_d_exports as Chain, ChainRegistry_d_exports as ChainRegistry, Collateral_d_exports as Collateral, Compute, ConfigRule, ConfigRulesPayload, ERC4626_d_exports as ERC4626, ErrorPayload, Errors_d_exports as Errors, Format_d_exports as Format, Gatekeeper_d_exports as Gatekeeper, Client_d_exports as GatekeeperClient, LLTV_d_exports as LLTV, Liquidity_d_exports as Liquidity, Maturity_d_exports as Maturity, MempoolClient_d_exports as Mempool, Obligation_d_exports as Obligation, Offer_d_exports as Offer, Oracle_d_exports as Oracle, Position_d_exports as Position, Quote_d_exports as Quote, index_d_exports$1 as RouterApi, Client_d_exports$1 as RouterClient, Rules_d_exports as Rules, SuccessPayload, time_d_exports as Time, TradingFee_d_exports as TradingFee, Transfer_d_exports as Transfer, Tree_d_exports as Tree, index_d_exports$2 as Utils, ValidateOffersData, ValidateOffersIssues, ValidateOffersSuccess, Gate_d_exports as Validation, ValidationIssue, morphoRules };
4826
+ export { index_d_exports as Abi, Brand, BrandTypeId, Callback_d_exports as Callback, Chain_d_exports as Chain, ChainRegistry_d_exports as ChainRegistry, Collateral_d_exports as Collateral, Compute, ConfigRule, ConfigRulesPayload, ERC4626_d_exports as ERC4626, ErrorPayload, Errors_d_exports as Errors, Format_d_exports as Format, Gatekeeper_d_exports as Gatekeeper, Client_d_exports as GatekeeperClient, LLTV_d_exports as LLTV, Liquidity_d_exports as Liquidity, Maturity_d_exports as Maturity, MempoolClient_d_exports as Mempool, Obligation_d_exports as Obligation, Offer_d_exports as Offer, Oracle_d_exports as Oracle, Position_d_exports as Position, Quote_d_exports as Quote, index_d_exports$1 as RouterApi, Client_d_exports$1 as RouterClient, Rules_d_exports as Rules, SuccessPayload, Tick_d_exports as Tick, time_d_exports as Time, TradingFee_d_exports as TradingFee, Transfer_d_exports as Transfer, Tree_d_exports as Tree, index_d_exports$2 as Utils, ValidateOffersData, ValidateOffersIssues, ValidateOffersSuccess, Gate_d_exports as Validation, ValidationIssue, morphoRules };
4698
4827
  //# sourceMappingURL=index.browser.d.mts.map