@morpho-org/midnight-sdk 1.5.1-next.0 → 1.6.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.
@@ -1,2 +1,2 @@
1
1
  /** @internal Installed Midnight SDK package version. */
2
- export declare const MIDNIGHT_SDK_VERSION = "1.5.1-next.0";
2
+ export declare const MIDNIGHT_SDK_VERSION = "1.6.0";
@@ -3,4 +3,4 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.MIDNIGHT_SDK_VERSION = void 0;
5
5
  /** @internal Installed Midnight SDK package version. */
6
- exports.MIDNIGHT_SDK_VERSION = "1.5.1-next.0";
6
+ exports.MIDNIGHT_SDK_VERSION = "1.6.0";
@@ -292,7 +292,11 @@ export type MarketInput = IMarketParams | IMarket;
292
292
  * registerCustomAddresses({
293
293
  * addresses: {
294
294
  * 31337: {
295
- * blue: "0x0000000000000000000000000000000000000001",
295
+ * morpho: "0x0000000000000000000000000000000000000001",
296
+ * bundler3: {
297
+ * bundler3: "0x0000000000000000000000000000000000000002",
298
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
299
+ * },
296
300
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
297
301
  * midnight: "0x0000000000000000000000000000000000001000",
298
302
  * },
@@ -408,7 +412,11 @@ export declare class Market {
408
412
  * registerCustomAddresses({
409
413
  * addresses: {
410
414
  * 31337: {
411
- * blue: "0x0000000000000000000000000000000000000001",
415
+ * morpho: "0x0000000000000000000000000000000000000001",
416
+ * bundler3: {
417
+ * bundler3: "0x0000000000000000000000000000000000000002",
418
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
419
+ * },
412
420
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
413
421
  * midnight: "0x0000000000000000000000000000000000001000",
414
422
  * },
@@ -459,7 +467,11 @@ export declare class Market {
459
467
  * registerCustomAddresses({
460
468
  * addresses: {
461
469
  * 31337: {
462
- * blue: "0x0000000000000000000000000000000000000001",
470
+ * morpho: "0x0000000000000000000000000000000000000001",
471
+ * bundler3: {
472
+ * bundler3: "0x0000000000000000000000000000000000000002",
473
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
474
+ * },
463
475
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
464
476
  * midnight: "0x0000000000000000000000000000000000001000",
465
477
  * },
@@ -510,7 +522,11 @@ export declare class Market {
510
522
  * registerCustomAddresses({
511
523
  * addresses: {
512
524
  * 31337: {
513
- * blue: "0x0000000000000000000000000000000000000001",
525
+ * morpho: "0x0000000000000000000000000000000000000001",
526
+ * bundler3: {
527
+ * bundler3: "0x0000000000000000000000000000000000000002",
528
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
529
+ * },
514
530
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
515
531
  * midnight: "0x0000000000000000000000000000000000001000",
516
532
  * },
@@ -561,7 +577,11 @@ export declare class Market {
561
577
  * registerCustomAddresses({
562
578
  * addresses: {
563
579
  * 31337: {
564
- * blue: "0x0000000000000000000000000000000000000001",
580
+ * morpho: "0x0000000000000000000000000000000000000001",
581
+ * bundler3: {
582
+ * bundler3: "0x0000000000000000000000000000000000000002",
583
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
584
+ * },
565
585
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
566
586
  * midnight: "0x0000000000000000000000000000000000001000",
567
587
  * },
@@ -613,7 +633,11 @@ export declare class Market {
613
633
  * registerCustomAddresses({
614
634
  * addresses: {
615
635
  * 31337: {
616
- * blue: "0x0000000000000000000000000000000000000001",
636
+ * morpho: "0x0000000000000000000000000000000000000001",
637
+ * bundler3: {
638
+ * bundler3: "0x0000000000000000000000000000000000000002",
639
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
640
+ * },
617
641
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
618
642
  * midnight: "0x0000000000000000000000000000000000001000",
619
643
  * },
@@ -191,7 +191,11 @@ exports.MarketParams = MarketParams;
191
191
  * registerCustomAddresses({
192
192
  * addresses: {
193
193
  * 31337: {
194
- * blue: "0x0000000000000000000000000000000000000001",
194
+ * morpho: "0x0000000000000000000000000000000000000001",
195
+ * bundler3: {
196
+ * bundler3: "0x0000000000000000000000000000000000000002",
197
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
198
+ * },
195
199
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
196
200
  * midnight: "0x0000000000000000000000000000000000001000",
197
201
  * },
@@ -320,7 +324,11 @@ class Market {
320
324
  * registerCustomAddresses({
321
325
  * addresses: {
322
326
  * 31337: {
323
- * blue: "0x0000000000000000000000000000000000000001",
327
+ * morpho: "0x0000000000000000000000000000000000000001",
328
+ * bundler3: {
329
+ * bundler3: "0x0000000000000000000000000000000000000002",
330
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
331
+ * },
324
332
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
325
333
  * midnight: "0x0000000000000000000000000000000000001000",
326
334
  * },
@@ -377,7 +385,11 @@ class Market {
377
385
  * registerCustomAddresses({
378
386
  * addresses: {
379
387
  * 31337: {
380
- * blue: "0x0000000000000000000000000000000000000001",
388
+ * morpho: "0x0000000000000000000000000000000000000001",
389
+ * bundler3: {
390
+ * bundler3: "0x0000000000000000000000000000000000000002",
391
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
392
+ * },
381
393
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
382
394
  * midnight: "0x0000000000000000000000000000000000001000",
383
395
  * },
@@ -433,7 +445,11 @@ class Market {
433
445
  * registerCustomAddresses({
434
446
  * addresses: {
435
447
  * 31337: {
436
- * blue: "0x0000000000000000000000000000000000000001",
448
+ * morpho: "0x0000000000000000000000000000000000000001",
449
+ * bundler3: {
450
+ * bundler3: "0x0000000000000000000000000000000000000002",
451
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
452
+ * },
437
453
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
438
454
  * midnight: "0x0000000000000000000000000000000000001000",
439
455
  * },
@@ -486,7 +502,11 @@ class Market {
486
502
  * registerCustomAddresses({
487
503
  * addresses: {
488
504
  * 31337: {
489
- * blue: "0x0000000000000000000000000000000000000001",
505
+ * morpho: "0x0000000000000000000000000000000000000001",
506
+ * bundler3: {
507
+ * bundler3: "0x0000000000000000000000000000000000000002",
508
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
509
+ * },
490
510
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
491
511
  * midnight: "0x0000000000000000000000000000000000001000",
492
512
  * },
@@ -542,7 +562,11 @@ class Market {
542
562
  * registerCustomAddresses({
543
563
  * addresses: {
544
564
  * 31337: {
545
- * blue: "0x0000000000000000000000000000000000000001",
565
+ * morpho: "0x0000000000000000000000000000000000000001",
566
+ * bundler3: {
567
+ * bundler3: "0x0000000000000000000000000000000000000002",
568
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
569
+ * },
546
570
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
547
571
  * midnight: "0x0000000000000000000000000000000000001000",
548
572
  * },
@@ -67,8 +67,7 @@ export declare namespace OfferChainUtils {
67
67
  * Use before a make-borrow or supply-collateral-and-make-borrow flow when a
68
68
  * borrower wants one displayed fixed borrow rate across a longer window. Map
69
69
  * the returned legs to `Offer.create({ buy: false, ... })`, then group and
70
- * submit them through the maker flow. Pass the same market tick spacing to
71
- * `Offer.create` so leg validation uses the chain's grid.
70
+ * submit them through the maker flow.
72
71
  *
73
72
  * Borrow chains read their target rate at each leg's expiry edge. If a leg
74
73
  * would need to extend past `chainEndTimestamp`, it is dropped rather than
@@ -98,7 +97,6 @@ export declare namespace OfferChainUtils {
98
97
  * ...baseOffer,
99
98
  * buy: false,
100
99
  * tick: leg.tick,
101
- * tickSpacing: market.tickSpacing,
102
100
  * start: leg.startTimestamp,
103
101
  * expiry: leg.expiryTimestamp,
104
102
  * }),
@@ -112,8 +110,7 @@ export declare namespace OfferChainUtils {
112
110
  * Use before a make-lend flow when a lender wants one displayed fixed lend
113
111
  * rate across a longer window. Map the returned legs to
114
112
  * `Offer.create({ buy: true, ... })`, then group and submit them through the
115
- * maker flow. Pass the same market tick spacing to `Offer.create` so leg
116
- * validation uses the chain's grid.
113
+ * maker flow.
117
114
  *
118
115
  * Lend chains read their target rate at each leg's start edge. The first leg
119
116
  * may start before `chainStartTimestamp`; clamping that edge would move the
@@ -143,7 +140,6 @@ export declare namespace OfferChainUtils {
143
140
  * ...baseOffer,
144
141
  * buy: true,
145
142
  * tick: leg.tick,
146
- * tickSpacing: market.tickSpacing,
147
143
  * start: leg.startTimestamp,
148
144
  * expiry: leg.expiryTimestamp,
149
145
  * }),
@@ -58,8 +58,7 @@ var OfferChainUtils;
58
58
  * Use before a make-borrow or supply-collateral-and-make-borrow flow when a
59
59
  * borrower wants one displayed fixed borrow rate across a longer window. Map
60
60
  * the returned legs to `Offer.create({ buy: false, ... })`, then group and
61
- * submit them through the maker flow. Pass the same market tick spacing to
62
- * `Offer.create` so leg validation uses the chain's grid.
61
+ * submit them through the maker flow.
63
62
  *
64
63
  * Borrow chains read their target rate at each leg's expiry edge. If a leg
65
64
  * would need to extend past `chainEndTimestamp`, it is dropped rather than
@@ -89,7 +88,6 @@ var OfferChainUtils;
89
88
  * ...baseOffer,
90
89
  * buy: false,
91
90
  * tick: leg.tick,
92
- * tickSpacing: market.tickSpacing,
93
91
  * start: leg.startTimestamp,
94
92
  * expiry: leg.expiryTimestamp,
95
93
  * }),
@@ -206,8 +204,7 @@ var OfferChainUtils;
206
204
  * Use before a make-lend flow when a lender wants one displayed fixed lend
207
205
  * rate across a longer window. Map the returned legs to
208
206
  * `Offer.create({ buy: true, ... })`, then group and submit them through the
209
- * maker flow. Pass the same market tick spacing to `Offer.create` so leg
210
- * validation uses the chain's grid.
207
+ * maker flow.
211
208
  *
212
209
  * Lend chains read their target rate at each leg's start edge. The first leg
213
210
  * may start before `chainStartTimestamp`; clamping that edge would move the
@@ -237,7 +234,6 @@ var OfferChainUtils;
237
234
  * ...baseOffer,
238
235
  * buy: true,
239
236
  * tick: leg.tick,
240
- * tickSpacing: market.tickSpacing,
241
237
  * start: leg.startTimestamp,
242
238
  * expiry: leg.expiryTimestamp,
243
239
  * }),
@@ -120,7 +120,11 @@ export interface IAccrualPosition extends Omit<IPosition, "marketId"> {
120
120
  * registerCustomAddresses({
121
121
  * addresses: {
122
122
  * 31337: {
123
- * blue: "0x0000000000000000000000000000000000000001",
123
+ * morpho: "0x0000000000000000000000000000000000000001",
124
+ * bundler3: {
125
+ * bundler3: "0x0000000000000000000000000000000000000002",
126
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
127
+ * },
124
128
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
125
129
  * midnight: "0x0000000000000000000000000000000000001000",
126
130
  * },
@@ -240,7 +244,11 @@ export declare class AccrualPosition extends Position implements IAccrualPositio
240
244
  * registerCustomAddresses({
241
245
  * addresses: {
242
246
  * 31337: {
243
- * blue: "0x0000000000000000000000000000000000000001",
247
+ * morpho: "0x0000000000000000000000000000000000000001",
248
+ * bundler3: {
249
+ * bundler3: "0x0000000000000000000000000000000000000002",
250
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
251
+ * },
244
252
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
245
253
  * midnight: "0x0000000000000000000000000000000000001000",
246
254
  * },
@@ -303,7 +311,11 @@ export declare class AccrualPosition extends Position implements IAccrualPositio
303
311
  * registerCustomAddresses({
304
312
  * addresses: {
305
313
  * 31337: {
306
- * blue: "0x0000000000000000000000000000000000000001",
314
+ * morpho: "0x0000000000000000000000000000000000000001",
315
+ * bundler3: {
316
+ * bundler3: "0x0000000000000000000000000000000000000002",
317
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
318
+ * },
307
319
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
308
320
  * midnight: "0x0000000000000000000000000000000000001000",
309
321
  * },
@@ -367,7 +379,11 @@ export declare class AccrualPosition extends Position implements IAccrualPositio
367
379
  * registerCustomAddresses({
368
380
  * addresses: {
369
381
  * 31337: {
370
- * blue: "0x0000000000000000000000000000000000000001",
382
+ * morpho: "0x0000000000000000000000000000000000000001",
383
+ * bundler3: {
384
+ * bundler3: "0x0000000000000000000000000000000000000002",
385
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
386
+ * },
371
387
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
372
388
  * midnight: "0x0000000000000000000000000000000000001000",
373
389
  * },
@@ -433,7 +449,11 @@ export declare class AccrualPosition extends Position implements IAccrualPositio
433
449
  * registerCustomAddresses({
434
450
  * addresses: {
435
451
  * 31337: {
436
- * blue: "0x0000000000000000000000000000000000000001",
452
+ * morpho: "0x0000000000000000000000000000000000000001",
453
+ * bundler3: {
454
+ * bundler3: "0x0000000000000000000000000000000000000002",
455
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
456
+ * },
437
457
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
438
458
  * midnight: "0x0000000000000000000000000000000000001000",
439
459
  * },
@@ -94,7 +94,11 @@ exports.Position = Position;
94
94
  * registerCustomAddresses({
95
95
  * addresses: {
96
96
  * 31337: {
97
- * blue: "0x0000000000000000000000000000000000000001",
97
+ * morpho: "0x0000000000000000000000000000000000000001",
98
+ * bundler3: {
99
+ * bundler3: "0x0000000000000000000000000000000000000002",
100
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
101
+ * },
98
102
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
99
103
  * midnight: "0x0000000000000000000000000000000000001000",
100
104
  * },
@@ -225,7 +229,11 @@ class AccrualPosition extends Position {
225
229
  * registerCustomAddresses({
226
230
  * addresses: {
227
231
  * 31337: {
228
- * blue: "0x0000000000000000000000000000000000000001",
232
+ * morpho: "0x0000000000000000000000000000000000000001",
233
+ * bundler3: {
234
+ * bundler3: "0x0000000000000000000000000000000000000002",
235
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
236
+ * },
229
237
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
230
238
  * midnight: "0x0000000000000000000000000000000000001000",
231
239
  * },
@@ -293,7 +301,11 @@ class AccrualPosition extends Position {
293
301
  * registerCustomAddresses({
294
302
  * addresses: {
295
303
  * 31337: {
296
- * blue: "0x0000000000000000000000000000000000000001",
304
+ * morpho: "0x0000000000000000000000000000000000000001",
305
+ * bundler3: {
306
+ * bundler3: "0x0000000000000000000000000000000000000002",
307
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
308
+ * },
297
309
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
298
310
  * midnight: "0x0000000000000000000000000000000000001000",
299
311
  * },
@@ -360,7 +372,11 @@ class AccrualPosition extends Position {
360
372
  * registerCustomAddresses({
361
373
  * addresses: {
362
374
  * 31337: {
363
- * blue: "0x0000000000000000000000000000000000000001",
375
+ * morpho: "0x0000000000000000000000000000000000000001",
376
+ * bundler3: {
377
+ * bundler3: "0x0000000000000000000000000000000000000002",
378
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
379
+ * },
364
380
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
365
381
  * midnight: "0x0000000000000000000000000000000000001000",
366
382
  * },
@@ -428,7 +444,11 @@ class AccrualPosition extends Position {
428
444
  * registerCustomAddresses({
429
445
  * addresses: {
430
446
  * 31337: {
431
- * blue: "0x0000000000000000000000000000000000000001",
447
+ * morpho: "0x0000000000000000000000000000000000000001",
448
+ * bundler3: {
449
+ * bundler3: "0x0000000000000000000000000000000000000002",
450
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
451
+ * },
432
452
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
433
453
  * midnight: "0x0000000000000000000000000000000000001000",
434
454
  * },
@@ -1,2 +1,2 @@
1
1
  /** @internal Installed Midnight SDK package version. */
2
- export declare const MIDNIGHT_SDK_VERSION = "1.5.1-next.0";
2
+ export declare const MIDNIGHT_SDK_VERSION = "1.6.0";
@@ -1,3 +1,3 @@
1
1
  // Generated by scripts/release/generate-midnight-package-version.mjs. Do not edit.
2
2
  /** @internal Installed Midnight SDK package version. */
3
- export const MIDNIGHT_SDK_VERSION = "1.5.1-next.0";
3
+ export const MIDNIGHT_SDK_VERSION = "1.6.0";
@@ -292,7 +292,11 @@ export type MarketInput = IMarketParams | IMarket;
292
292
  * registerCustomAddresses({
293
293
  * addresses: {
294
294
  * 31337: {
295
- * blue: "0x0000000000000000000000000000000000000001",
295
+ * morpho: "0x0000000000000000000000000000000000000001",
296
+ * bundler3: {
297
+ * bundler3: "0x0000000000000000000000000000000000000002",
298
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
299
+ * },
296
300
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
297
301
  * midnight: "0x0000000000000000000000000000000000001000",
298
302
  * },
@@ -408,7 +412,11 @@ export declare class Market {
408
412
  * registerCustomAddresses({
409
413
  * addresses: {
410
414
  * 31337: {
411
- * blue: "0x0000000000000000000000000000000000000001",
415
+ * morpho: "0x0000000000000000000000000000000000000001",
416
+ * bundler3: {
417
+ * bundler3: "0x0000000000000000000000000000000000000002",
418
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
419
+ * },
412
420
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
413
421
  * midnight: "0x0000000000000000000000000000000000001000",
414
422
  * },
@@ -459,7 +467,11 @@ export declare class Market {
459
467
  * registerCustomAddresses({
460
468
  * addresses: {
461
469
  * 31337: {
462
- * blue: "0x0000000000000000000000000000000000000001",
470
+ * morpho: "0x0000000000000000000000000000000000000001",
471
+ * bundler3: {
472
+ * bundler3: "0x0000000000000000000000000000000000000002",
473
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
474
+ * },
463
475
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
464
476
  * midnight: "0x0000000000000000000000000000000000001000",
465
477
  * },
@@ -510,7 +522,11 @@ export declare class Market {
510
522
  * registerCustomAddresses({
511
523
  * addresses: {
512
524
  * 31337: {
513
- * blue: "0x0000000000000000000000000000000000000001",
525
+ * morpho: "0x0000000000000000000000000000000000000001",
526
+ * bundler3: {
527
+ * bundler3: "0x0000000000000000000000000000000000000002",
528
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
529
+ * },
514
530
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
515
531
  * midnight: "0x0000000000000000000000000000000000001000",
516
532
  * },
@@ -561,7 +577,11 @@ export declare class Market {
561
577
  * registerCustomAddresses({
562
578
  * addresses: {
563
579
  * 31337: {
564
- * blue: "0x0000000000000000000000000000000000000001",
580
+ * morpho: "0x0000000000000000000000000000000000000001",
581
+ * bundler3: {
582
+ * bundler3: "0x0000000000000000000000000000000000000002",
583
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
584
+ * },
565
585
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
566
586
  * midnight: "0x0000000000000000000000000000000000001000",
567
587
  * },
@@ -613,7 +633,11 @@ export declare class Market {
613
633
  * registerCustomAddresses({
614
634
  * addresses: {
615
635
  * 31337: {
616
- * blue: "0x0000000000000000000000000000000000000001",
636
+ * morpho: "0x0000000000000000000000000000000000000001",
637
+ * bundler3: {
638
+ * bundler3: "0x0000000000000000000000000000000000000002",
639
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
640
+ * },
617
641
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
618
642
  * midnight: "0x0000000000000000000000000000000000001000",
619
643
  * },
@@ -187,7 +187,11 @@ export class MarketParams {
187
187
  * registerCustomAddresses({
188
188
  * addresses: {
189
189
  * 31337: {
190
- * blue: "0x0000000000000000000000000000000000000001",
190
+ * morpho: "0x0000000000000000000000000000000000000001",
191
+ * bundler3: {
192
+ * bundler3: "0x0000000000000000000000000000000000000002",
193
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
194
+ * },
191
195
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
192
196
  * midnight: "0x0000000000000000000000000000000000001000",
193
197
  * },
@@ -316,7 +320,11 @@ export class Market {
316
320
  * registerCustomAddresses({
317
321
  * addresses: {
318
322
  * 31337: {
319
- * blue: "0x0000000000000000000000000000000000000001",
323
+ * morpho: "0x0000000000000000000000000000000000000001",
324
+ * bundler3: {
325
+ * bundler3: "0x0000000000000000000000000000000000000002",
326
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
327
+ * },
320
328
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
321
329
  * midnight: "0x0000000000000000000000000000000000001000",
322
330
  * },
@@ -373,7 +381,11 @@ export class Market {
373
381
  * registerCustomAddresses({
374
382
  * addresses: {
375
383
  * 31337: {
376
- * blue: "0x0000000000000000000000000000000000000001",
384
+ * morpho: "0x0000000000000000000000000000000000000001",
385
+ * bundler3: {
386
+ * bundler3: "0x0000000000000000000000000000000000000002",
387
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
388
+ * },
377
389
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
378
390
  * midnight: "0x0000000000000000000000000000000000001000",
379
391
  * },
@@ -429,7 +441,11 @@ export class Market {
429
441
  * registerCustomAddresses({
430
442
  * addresses: {
431
443
  * 31337: {
432
- * blue: "0x0000000000000000000000000000000000000001",
444
+ * morpho: "0x0000000000000000000000000000000000000001",
445
+ * bundler3: {
446
+ * bundler3: "0x0000000000000000000000000000000000000002",
447
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
448
+ * },
433
449
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
434
450
  * midnight: "0x0000000000000000000000000000000000001000",
435
451
  * },
@@ -482,7 +498,11 @@ export class Market {
482
498
  * registerCustomAddresses({
483
499
  * addresses: {
484
500
  * 31337: {
485
- * blue: "0x0000000000000000000000000000000000000001",
501
+ * morpho: "0x0000000000000000000000000000000000000001",
502
+ * bundler3: {
503
+ * bundler3: "0x0000000000000000000000000000000000000002",
504
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
505
+ * },
486
506
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
487
507
  * midnight: "0x0000000000000000000000000000000000001000",
488
508
  * },
@@ -538,7 +558,11 @@ export class Market {
538
558
  * registerCustomAddresses({
539
559
  * addresses: {
540
560
  * 31337: {
541
- * blue: "0x0000000000000000000000000000000000000001",
561
+ * morpho: "0x0000000000000000000000000000000000000001",
562
+ * bundler3: {
563
+ * bundler3: "0x0000000000000000000000000000000000000002",
564
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
565
+ * },
542
566
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
543
567
  * midnight: "0x0000000000000000000000000000000000001000",
544
568
  * },
@@ -67,8 +67,7 @@ export declare namespace OfferChainUtils {
67
67
  * Use before a make-borrow or supply-collateral-and-make-borrow flow when a
68
68
  * borrower wants one displayed fixed borrow rate across a longer window. Map
69
69
  * the returned legs to `Offer.create({ buy: false, ... })`, then group and
70
- * submit them through the maker flow. Pass the same market tick spacing to
71
- * `Offer.create` so leg validation uses the chain's grid.
70
+ * submit them through the maker flow.
72
71
  *
73
72
  * Borrow chains read their target rate at each leg's expiry edge. If a leg
74
73
  * would need to extend past `chainEndTimestamp`, it is dropped rather than
@@ -98,7 +97,6 @@ export declare namespace OfferChainUtils {
98
97
  * ...baseOffer,
99
98
  * buy: false,
100
99
  * tick: leg.tick,
101
- * tickSpacing: market.tickSpacing,
102
100
  * start: leg.startTimestamp,
103
101
  * expiry: leg.expiryTimestamp,
104
102
  * }),
@@ -112,8 +110,7 @@ export declare namespace OfferChainUtils {
112
110
  * Use before a make-lend flow when a lender wants one displayed fixed lend
113
111
  * rate across a longer window. Map the returned legs to
114
112
  * `Offer.create({ buy: true, ... })`, then group and submit them through the
115
- * maker flow. Pass the same market tick spacing to `Offer.create` so leg
116
- * validation uses the chain's grid.
113
+ * maker flow.
117
114
  *
118
115
  * Lend chains read their target rate at each leg's start edge. The first leg
119
116
  * may start before `chainStartTimestamp`; clamping that edge would move the
@@ -143,7 +140,6 @@ export declare namespace OfferChainUtils {
143
140
  * ...baseOffer,
144
141
  * buy: true,
145
142
  * tick: leg.tick,
146
- * tickSpacing: market.tickSpacing,
147
143
  * start: leg.startTimestamp,
148
144
  * expiry: leg.expiryTimestamp,
149
145
  * }),
@@ -55,8 +55,7 @@ export var OfferChainUtils;
55
55
  * Use before a make-borrow or supply-collateral-and-make-borrow flow when a
56
56
  * borrower wants one displayed fixed borrow rate across a longer window. Map
57
57
  * the returned legs to `Offer.create({ buy: false, ... })`, then group and
58
- * submit them through the maker flow. Pass the same market tick spacing to
59
- * `Offer.create` so leg validation uses the chain's grid.
58
+ * submit them through the maker flow.
60
59
  *
61
60
  * Borrow chains read their target rate at each leg's expiry edge. If a leg
62
61
  * would need to extend past `chainEndTimestamp`, it is dropped rather than
@@ -86,7 +85,6 @@ export var OfferChainUtils;
86
85
  * ...baseOffer,
87
86
  * buy: false,
88
87
  * tick: leg.tick,
89
- * tickSpacing: market.tickSpacing,
90
88
  * start: leg.startTimestamp,
91
89
  * expiry: leg.expiryTimestamp,
92
90
  * }),
@@ -203,8 +201,7 @@ export var OfferChainUtils;
203
201
  * Use before a make-lend flow when a lender wants one displayed fixed lend
204
202
  * rate across a longer window. Map the returned legs to
205
203
  * `Offer.create({ buy: true, ... })`, then group and submit them through the
206
- * maker flow. Pass the same market tick spacing to `Offer.create` so leg
207
- * validation uses the chain's grid.
204
+ * maker flow.
208
205
  *
209
206
  * Lend chains read their target rate at each leg's start edge. The first leg
210
207
  * may start before `chainStartTimestamp`; clamping that edge would move the
@@ -234,7 +231,6 @@ export var OfferChainUtils;
234
231
  * ...baseOffer,
235
232
  * buy: true,
236
233
  * tick: leg.tick,
237
- * tickSpacing: market.tickSpacing,
238
234
  * start: leg.startTimestamp,
239
235
  * expiry: leg.expiryTimestamp,
240
236
  * }),
@@ -120,7 +120,11 @@ export interface IAccrualPosition extends Omit<IPosition, "marketId"> {
120
120
  * registerCustomAddresses({
121
121
  * addresses: {
122
122
  * 31337: {
123
- * blue: "0x0000000000000000000000000000000000000001",
123
+ * morpho: "0x0000000000000000000000000000000000000001",
124
+ * bundler3: {
125
+ * bundler3: "0x0000000000000000000000000000000000000002",
126
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
127
+ * },
124
128
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
125
129
  * midnight: "0x0000000000000000000000000000000000001000",
126
130
  * },
@@ -240,7 +244,11 @@ export declare class AccrualPosition extends Position implements IAccrualPositio
240
244
  * registerCustomAddresses({
241
245
  * addresses: {
242
246
  * 31337: {
243
- * blue: "0x0000000000000000000000000000000000000001",
247
+ * morpho: "0x0000000000000000000000000000000000000001",
248
+ * bundler3: {
249
+ * bundler3: "0x0000000000000000000000000000000000000002",
250
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
251
+ * },
244
252
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
245
253
  * midnight: "0x0000000000000000000000000000000000001000",
246
254
  * },
@@ -303,7 +311,11 @@ export declare class AccrualPosition extends Position implements IAccrualPositio
303
311
  * registerCustomAddresses({
304
312
  * addresses: {
305
313
  * 31337: {
306
- * blue: "0x0000000000000000000000000000000000000001",
314
+ * morpho: "0x0000000000000000000000000000000000000001",
315
+ * bundler3: {
316
+ * bundler3: "0x0000000000000000000000000000000000000002",
317
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
318
+ * },
307
319
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
308
320
  * midnight: "0x0000000000000000000000000000000000001000",
309
321
  * },
@@ -367,7 +379,11 @@ export declare class AccrualPosition extends Position implements IAccrualPositio
367
379
  * registerCustomAddresses({
368
380
  * addresses: {
369
381
  * 31337: {
370
- * blue: "0x0000000000000000000000000000000000000001",
382
+ * morpho: "0x0000000000000000000000000000000000000001",
383
+ * bundler3: {
384
+ * bundler3: "0x0000000000000000000000000000000000000002",
385
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
386
+ * },
371
387
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
372
388
  * midnight: "0x0000000000000000000000000000000000001000",
373
389
  * },
@@ -433,7 +449,11 @@ export declare class AccrualPosition extends Position implements IAccrualPositio
433
449
  * registerCustomAddresses({
434
450
  * addresses: {
435
451
  * 31337: {
436
- * blue: "0x0000000000000000000000000000000000000001",
452
+ * morpho: "0x0000000000000000000000000000000000000001",
453
+ * bundler3: {
454
+ * bundler3: "0x0000000000000000000000000000000000000002",
455
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
456
+ * },
437
457
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
438
458
  * midnight: "0x0000000000000000000000000000000000001000",
439
459
  * },
@@ -90,7 +90,11 @@ export class Position {
90
90
  * registerCustomAddresses({
91
91
  * addresses: {
92
92
  * 31337: {
93
- * blue: "0x0000000000000000000000000000000000000001",
93
+ * morpho: "0x0000000000000000000000000000000000000001",
94
+ * bundler3: {
95
+ * bundler3: "0x0000000000000000000000000000000000000002",
96
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
97
+ * },
94
98
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
95
99
  * midnight: "0x0000000000000000000000000000000000001000",
96
100
  * },
@@ -221,7 +225,11 @@ export class AccrualPosition extends Position {
221
225
  * registerCustomAddresses({
222
226
  * addresses: {
223
227
  * 31337: {
224
- * blue: "0x0000000000000000000000000000000000000001",
228
+ * morpho: "0x0000000000000000000000000000000000000001",
229
+ * bundler3: {
230
+ * bundler3: "0x0000000000000000000000000000000000000002",
231
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
232
+ * },
225
233
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
226
234
  * midnight: "0x0000000000000000000000000000000000001000",
227
235
  * },
@@ -289,7 +297,11 @@ export class AccrualPosition extends Position {
289
297
  * registerCustomAddresses({
290
298
  * addresses: {
291
299
  * 31337: {
292
- * blue: "0x0000000000000000000000000000000000000001",
300
+ * morpho: "0x0000000000000000000000000000000000000001",
301
+ * bundler3: {
302
+ * bundler3: "0x0000000000000000000000000000000000000002",
303
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
304
+ * },
293
305
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
294
306
  * midnight: "0x0000000000000000000000000000000000001000",
295
307
  * },
@@ -356,7 +368,11 @@ export class AccrualPosition extends Position {
356
368
  * registerCustomAddresses({
357
369
  * addresses: {
358
370
  * 31337: {
359
- * blue: "0x0000000000000000000000000000000000000001",
371
+ * morpho: "0x0000000000000000000000000000000000000001",
372
+ * bundler3: {
373
+ * bundler3: "0x0000000000000000000000000000000000000002",
374
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
375
+ * },
360
376
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
361
377
  * midnight: "0x0000000000000000000000000000000000001000",
362
378
  * },
@@ -424,7 +440,11 @@ export class AccrualPosition extends Position {
424
440
  * registerCustomAddresses({
425
441
  * addresses: {
426
442
  * 31337: {
427
- * blue: "0x0000000000000000000000000000000000000001",
443
+ * morpho: "0x0000000000000000000000000000000000000001",
444
+ * bundler3: {
445
+ * bundler3: "0x0000000000000000000000000000000000000002",
446
+ * generalAdapter1: "0x0000000000000000000000000000000000000003",
447
+ * },
428
448
  * adaptiveCurveIrm: "0x0000000000000000000000000000000000000004",
429
449
  * midnight: "0x0000000000000000000000000000000000001000",
430
450
  * },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@morpho-org/midnight-sdk",
3
3
  "description": "Viem-based package for Morpho Midnight that exports protocol utilities, fetch helpers, and Midnight API utilities under a dedicated API subpath.",
4
- "version": "1.5.1-next.0",
4
+ "version": "1.6.0",
5
5
  "author": "Morpho Association <contact@morpho.org>",
6
6
  "contributors": [
7
7
  "Rubilmax <rmilon@gmail.com>"
@@ -43,15 +43,15 @@
43
43
  "lib"
44
44
  ],
45
45
  "peerDependencies": {
46
- "@morpho-org/morpho-ts": "^2.8.0 || ^3.0.0",
46
+ "@morpho-org/morpho-ts": "^2.8.0",
47
47
  "viem": "^2.0.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "fast-check": "^4.9.0",
51
51
  "typescript": "7.0.2",
52
52
  "viem": "^2.55.10",
53
- "vitest": "^4.1.10",
54
- "@morpho-org/morpho-ts": "^3.0.0-next.0",
53
+ "vitest": "^4.1.11",
54
+ "@morpho-org/morpho-ts": "^2.15.0",
55
55
  "@morpho-org/test": "^2.10.0"
56
56
  },
57
57
  "scripts": {