@morpho-dev/router 0.0.17 → 0.0.18

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 (32) hide show
  1. package/dist/index.browser.d.cts +129 -2
  2. package/dist/index.browser.d.ts +129 -2
  3. package/dist/index.browser.js +377 -9
  4. package/dist/index.browser.js.map +1 -1
  5. package/dist/index.browser.mjs +377 -5
  6. package/dist/index.browser.mjs.map +1 -1
  7. package/dist/index.node.d.cts +101 -719
  8. package/dist/index.node.d.ts +101 -719
  9. package/dist/index.node.js +735 -1215
  10. package/dist/index.node.js.map +1 -1
  11. package/dist/index.node.mjs +734 -1204
  12. package/dist/index.node.mjs.map +1 -1
  13. package/package.json +3 -12
  14. package/dist/drizzle/0000_add-offers-table.sql +0 -37
  15. package/dist/drizzle/0001_create_offer_status_relation.sql +0 -10
  16. package/dist/drizzle/0002_add_created_at_in_offer_status_relation.sql +0 -3
  17. package/dist/drizzle/0003_add-cursor-indices-to-offers.sql +0 -6
  18. package/dist/drizzle/0004_offer-start.sql +0 -1
  19. package/dist/drizzle/0005_rename-price-token-buy.sql +0 -8
  20. package/dist/drizzle/0006_rename-buy.sql +0 -3
  21. package/dist/drizzle/0007_rename-offering.sql +0 -3
  22. package/dist/drizzle/0008_add-consumed-relation.sql +0 -10
  23. package/dist/drizzle/meta/0000_snapshot.json +0 -344
  24. package/dist/drizzle/meta/0001_snapshot.json +0 -426
  25. package/dist/drizzle/meta/0002_snapshot.json +0 -439
  26. package/dist/drizzle/meta/0003_snapshot.json +0 -553
  27. package/dist/drizzle/meta/0004_snapshot.json +0 -559
  28. package/dist/drizzle/meta/0005_snapshot.json +0 -559
  29. package/dist/drizzle/meta/0006_snapshot.json +0 -559
  30. package/dist/drizzle/meta/0007_snapshot.json +0 -559
  31. package/dist/drizzle/meta/0008_snapshot.json +0 -635
  32. package/dist/drizzle/meta/_journal.json +0 -69
@@ -1,553 +0,0 @@
1
- {
2
- "id": "540ff674-3d06-4648-ad83-63c05d8b1818",
3
- "prevId": "d92bf13d-a494-4a83-9c3f-5ba0163b394a",
4
- "version": "7",
5
- "dialect": "postgresql",
6
- "tables": {
7
- "public.offer_collaterals": {
8
- "name": "offer_collaterals",
9
- "schema": "",
10
- "columns": {
11
- "id": {
12
- "name": "id",
13
- "type": "serial",
14
- "primaryKey": true,
15
- "notNull": true
16
- },
17
- "offer_hash": {
18
- "name": "offer_hash",
19
- "type": "varchar(66)",
20
- "primaryKey": false,
21
- "notNull": true
22
- },
23
- "asset": {
24
- "name": "asset",
25
- "type": "varchar(42)",
26
- "primaryKey": false,
27
- "notNull": true
28
- },
29
- "oracle": {
30
- "name": "oracle",
31
- "type": "varchar(42)",
32
- "primaryKey": false,
33
- "notNull": true
34
- },
35
- "lltv": {
36
- "name": "lltv",
37
- "type": "bigint",
38
- "primaryKey": false,
39
- "notNull": true
40
- }
41
- },
42
- "indexes": {
43
- "offer_collaterals_offer_hash_idx": {
44
- "name": "offer_collaterals_offer_hash_idx",
45
- "columns": [
46
- {
47
- "expression": "offer_hash",
48
- "isExpression": false,
49
- "asc": true,
50
- "nulls": "last"
51
- }
52
- ],
53
- "isUnique": false,
54
- "concurrently": false,
55
- "method": "btree",
56
- "with": {}
57
- },
58
- "offer_collaterals_asset_idx": {
59
- "name": "offer_collaterals_asset_idx",
60
- "columns": [
61
- {
62
- "expression": "asset",
63
- "isExpression": false,
64
- "asc": true,
65
- "nulls": "last"
66
- }
67
- ],
68
- "isUnique": false,
69
- "concurrently": false,
70
- "method": "btree",
71
- "with": {}
72
- },
73
- "offer_collaterals_oracle_idx": {
74
- "name": "offer_collaterals_oracle_idx",
75
- "columns": [
76
- {
77
- "expression": "oracle",
78
- "isExpression": false,
79
- "asc": true,
80
- "nulls": "last"
81
- }
82
- ],
83
- "isUnique": false,
84
- "concurrently": false,
85
- "method": "btree",
86
- "with": {}
87
- },
88
- "offer_collaterals_tuple_idx": {
89
- "name": "offer_collaterals_tuple_idx",
90
- "columns": [
91
- {
92
- "expression": "asset",
93
- "isExpression": false,
94
- "asc": true,
95
- "nulls": "last"
96
- },
97
- {
98
- "expression": "oracle",
99
- "isExpression": false,
100
- "asc": true,
101
- "nulls": "last"
102
- },
103
- {
104
- "expression": "lltv",
105
- "isExpression": false,
106
- "asc": true,
107
- "nulls": "last"
108
- }
109
- ],
110
- "isUnique": false,
111
- "concurrently": false,
112
- "method": "btree",
113
- "with": {}
114
- }
115
- },
116
- "foreignKeys": {
117
- "offer_collaterals_offer_hash_offers_hash_fk": {
118
- "name": "offer_collaterals_offer_hash_offers_hash_fk",
119
- "tableFrom": "offer_collaterals",
120
- "tableTo": "offers",
121
- "columnsFrom": [
122
- "offer_hash"
123
- ],
124
- "columnsTo": [
125
- "hash"
126
- ],
127
- "onDelete": "cascade",
128
- "onUpdate": "no action"
129
- }
130
- },
131
- "compositePrimaryKeys": {},
132
- "uniqueConstraints": {},
133
- "policies": {},
134
- "checkConstraints": {},
135
- "isRLSEnabled": false
136
- },
137
- "public.offer_status": {
138
- "name": "offer_status",
139
- "schema": "",
140
- "columns": {
141
- "id": {
142
- "name": "id",
143
- "type": "serial",
144
- "primaryKey": true,
145
- "notNull": true
146
- },
147
- "offer_hash": {
148
- "name": "offer_hash",
149
- "type": "varchar(66)",
150
- "primaryKey": false,
151
- "notNull": true
152
- },
153
- "status": {
154
- "name": "status",
155
- "type": "text",
156
- "primaryKey": false,
157
- "notNull": true
158
- },
159
- "metadata": {
160
- "name": "metadata",
161
- "type": "jsonb",
162
- "primaryKey": false,
163
- "notNull": false
164
- },
165
- "created_at": {
166
- "name": "created_at",
167
- "type": "timestamp",
168
- "primaryKey": false,
169
- "notNull": true,
170
- "default": "now()"
171
- }
172
- },
173
- "indexes": {
174
- "offer_status_offer_hash_created_at_idx": {
175
- "name": "offer_status_offer_hash_created_at_idx",
176
- "columns": [
177
- {
178
- "expression": "offer_hash",
179
- "isExpression": false,
180
- "asc": true,
181
- "nulls": "last"
182
- },
183
- {
184
- "expression": "\"created_at\" desc",
185
- "asc": true,
186
- "isExpression": true,
187
- "nulls": "last"
188
- }
189
- ],
190
- "isUnique": false,
191
- "concurrently": false,
192
- "method": "btree",
193
- "with": {}
194
- },
195
- "offer_status_status_idx": {
196
- "name": "offer_status_status_idx",
197
- "columns": [
198
- {
199
- "expression": "status",
200
- "isExpression": false,
201
- "asc": true,
202
- "nulls": "last"
203
- }
204
- ],
205
- "isUnique": false,
206
- "concurrently": false,
207
- "method": "btree",
208
- "with": {}
209
- }
210
- },
211
- "foreignKeys": {
212
- "offer_status_offer_hash_offers_hash_fk": {
213
- "name": "offer_status_offer_hash_offers_hash_fk",
214
- "tableFrom": "offer_status",
215
- "tableTo": "offers",
216
- "columnsFrom": [
217
- "offer_hash"
218
- ],
219
- "columnsTo": [
220
- "hash"
221
- ],
222
- "onDelete": "cascade",
223
- "onUpdate": "no action"
224
- }
225
- },
226
- "compositePrimaryKeys": {},
227
- "uniqueConstraints": {},
228
- "policies": {},
229
- "checkConstraints": {},
230
- "isRLSEnabled": false
231
- },
232
- "public.offers": {
233
- "name": "offers",
234
- "schema": "",
235
- "columns": {
236
- "hash": {
237
- "name": "hash",
238
- "type": "varchar(66)",
239
- "primaryKey": true,
240
- "notNull": true
241
- },
242
- "address": {
243
- "name": "address",
244
- "type": "varchar(42)",
245
- "primaryKey": false,
246
- "notNull": true
247
- },
248
- "assets": {
249
- "name": "assets",
250
- "type": "bigint",
251
- "primaryKey": false,
252
- "notNull": true
253
- },
254
- "price": {
255
- "name": "price",
256
- "type": "bigint",
257
- "primaryKey": false,
258
- "notNull": true
259
- },
260
- "maturity": {
261
- "name": "maturity",
262
- "type": "integer",
263
- "primaryKey": false,
264
- "notNull": true
265
- },
266
- "expiry": {
267
- "name": "expiry",
268
- "type": "integer",
269
- "primaryKey": false,
270
- "notNull": true
271
- },
272
- "nonce": {
273
- "name": "nonce",
274
- "type": "bigint",
275
- "primaryKey": false,
276
- "notNull": true
277
- },
278
- "is_buy": {
279
- "name": "is_buy",
280
- "type": "boolean",
281
- "primaryKey": false,
282
- "notNull": true
283
- },
284
- "chain_id": {
285
- "name": "chain_id",
286
- "type": "bigint",
287
- "primaryKey": false,
288
- "notNull": true
289
- },
290
- "loan_asset": {
291
- "name": "loan_asset",
292
- "type": "varchar(42)",
293
- "primaryKey": false,
294
- "notNull": true
295
- },
296
- "callback_address": {
297
- "name": "callback_address",
298
- "type": "varchar(42)",
299
- "primaryKey": false,
300
- "notNull": true
301
- },
302
- "callback_data": {
303
- "name": "callback_data",
304
- "type": "text",
305
- "primaryKey": false,
306
- "notNull": true
307
- },
308
- "callback_gas_limit": {
309
- "name": "callback_gas_limit",
310
- "type": "bigint",
311
- "primaryKey": false,
312
- "notNull": true
313
- },
314
- "signature": {
315
- "name": "signature",
316
- "type": "varchar(132)",
317
- "primaryKey": false,
318
- "notNull": false
319
- },
320
- "created_at": {
321
- "name": "created_at",
322
- "type": "timestamp",
323
- "primaryKey": false,
324
- "notNull": true,
325
- "default": "now()"
326
- }
327
- },
328
- "indexes": {
329
- "offers_address_idx": {
330
- "name": "offers_address_idx",
331
- "columns": [
332
- {
333
- "expression": "address",
334
- "isExpression": false,
335
- "asc": true,
336
- "nulls": "last"
337
- }
338
- ],
339
- "isUnique": false,
340
- "concurrently": false,
341
- "method": "btree",
342
- "with": {}
343
- },
344
- "offers_is_buy_idx": {
345
- "name": "offers_is_buy_idx",
346
- "columns": [
347
- {
348
- "expression": "is_buy",
349
- "isExpression": false,
350
- "asc": true,
351
- "nulls": "last"
352
- }
353
- ],
354
- "isUnique": false,
355
- "concurrently": false,
356
- "method": "btree",
357
- "with": {}
358
- },
359
- "offers_chain_id_idx": {
360
- "name": "offers_chain_id_idx",
361
- "columns": [
362
- {
363
- "expression": "chain_id",
364
- "isExpression": false,
365
- "asc": true,
366
- "nulls": "last"
367
- }
368
- ],
369
- "isUnique": false,
370
- "concurrently": false,
371
- "method": "btree",
372
- "with": {}
373
- },
374
- "offers_loan_asset_idx": {
375
- "name": "offers_loan_asset_idx",
376
- "columns": [
377
- {
378
- "expression": "loan_asset",
379
- "isExpression": false,
380
- "asc": true,
381
- "nulls": "last"
382
- }
383
- ],
384
- "isUnique": false,
385
- "concurrently": false,
386
- "method": "btree",
387
- "with": {}
388
- },
389
- "offers_maturity_idx": {
390
- "name": "offers_maturity_idx",
391
- "columns": [
392
- {
393
- "expression": "maturity",
394
- "isExpression": false,
395
- "asc": true,
396
- "nulls": "last"
397
- }
398
- ],
399
- "isUnique": false,
400
- "concurrently": false,
401
- "method": "btree",
402
- "with": {}
403
- },
404
- "offers_expiry_idx": {
405
- "name": "offers_expiry_idx",
406
- "columns": [
407
- {
408
- "expression": "expiry",
409
- "isExpression": false,
410
- "asc": true,
411
- "nulls": "last"
412
- }
413
- ],
414
- "isUnique": false,
415
- "concurrently": false,
416
- "method": "btree",
417
- "with": {}
418
- },
419
- "offers_price_idx": {
420
- "name": "offers_price_idx",
421
- "columns": [
422
- {
423
- "expression": "price",
424
- "isExpression": false,
425
- "asc": true,
426
- "nulls": "last"
427
- }
428
- ],
429
- "isUnique": false,
430
- "concurrently": false,
431
- "method": "btree",
432
- "with": {}
433
- },
434
- "offers_assets_idx": {
435
- "name": "offers_assets_idx",
436
- "columns": [
437
- {
438
- "expression": "assets",
439
- "isExpression": false,
440
- "asc": true,
441
- "nulls": "last"
442
- }
443
- ],
444
- "isUnique": false,
445
- "concurrently": false,
446
- "method": "btree",
447
- "with": {}
448
- },
449
- "offers_price_hash_idx": {
450
- "name": "offers_price_hash_idx",
451
- "columns": [
452
- {
453
- "expression": "price",
454
- "isExpression": false,
455
- "asc": true,
456
- "nulls": "last"
457
- },
458
- {
459
- "expression": "hash",
460
- "isExpression": false,
461
- "asc": true,
462
- "nulls": "last"
463
- }
464
- ],
465
- "isUnique": false,
466
- "concurrently": false,
467
- "method": "btree",
468
- "with": {}
469
- },
470
- "offers_maturity_hash_idx": {
471
- "name": "offers_maturity_hash_idx",
472
- "columns": [
473
- {
474
- "expression": "maturity",
475
- "isExpression": false,
476
- "asc": true,
477
- "nulls": "last"
478
- },
479
- {
480
- "expression": "hash",
481
- "isExpression": false,
482
- "asc": true,
483
- "nulls": "last"
484
- }
485
- ],
486
- "isUnique": false,
487
- "concurrently": false,
488
- "method": "btree",
489
- "with": {}
490
- },
491
- "offers_expiry_hash_idx": {
492
- "name": "offers_expiry_hash_idx",
493
- "columns": [
494
- {
495
- "expression": "expiry",
496
- "isExpression": false,
497
- "asc": true,
498
- "nulls": "last"
499
- },
500
- {
501
- "expression": "hash",
502
- "isExpression": false,
503
- "asc": true,
504
- "nulls": "last"
505
- }
506
- ],
507
- "isUnique": false,
508
- "concurrently": false,
509
- "method": "btree",
510
- "with": {}
511
- },
512
- "offers_assets_hash_idx": {
513
- "name": "offers_assets_hash_idx",
514
- "columns": [
515
- {
516
- "expression": "assets",
517
- "isExpression": false,
518
- "asc": true,
519
- "nulls": "last"
520
- },
521
- {
522
- "expression": "hash",
523
- "isExpression": false,
524
- "asc": true,
525
- "nulls": "last"
526
- }
527
- ],
528
- "isUnique": false,
529
- "concurrently": false,
530
- "method": "btree",
531
- "with": {}
532
- }
533
- },
534
- "foreignKeys": {},
535
- "compositePrimaryKeys": {},
536
- "uniqueConstraints": {},
537
- "policies": {},
538
- "checkConstraints": {},
539
- "isRLSEnabled": false
540
- }
541
- },
542
- "enums": {},
543
- "schemas": {},
544
- "sequences": {},
545
- "roles": {},
546
- "policies": {},
547
- "views": {},
548
- "_meta": {
549
- "columns": {},
550
- "schemas": {},
551
- "tables": {}
552
- }
553
- }