@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,426 +0,0 @@
1
- {
2
- "id": "5cff1f0a-a834-48e7-a3c8-520270cd35e9",
3
- "prevId": "5633b428-6ca8-4994-95c9-4f8f6f320d95",
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
- },
166
- "indexes": {
167
- "offer_status_offer_hash_idx": {
168
- "name": "offer_status_offer_hash_idx",
169
- "columns": [
170
- {
171
- "expression": "offer_hash",
172
- "isExpression": false,
173
- "asc": true,
174
- "nulls": "last"
175
- }
176
- ],
177
- "isUnique": false,
178
- "concurrently": false,
179
- "method": "btree",
180
- "with": {}
181
- },
182
- "offer_status_status_idx": {
183
- "name": "offer_status_status_idx",
184
- "columns": [
185
- {
186
- "expression": "status",
187
- "isExpression": false,
188
- "asc": true,
189
- "nulls": "last"
190
- }
191
- ],
192
- "isUnique": false,
193
- "concurrently": false,
194
- "method": "btree",
195
- "with": {}
196
- }
197
- },
198
- "foreignKeys": {
199
- "offer_status_offer_hash_offers_hash_fk": {
200
- "name": "offer_status_offer_hash_offers_hash_fk",
201
- "tableFrom": "offer_status",
202
- "tableTo": "offers",
203
- "columnsFrom": [
204
- "offer_hash"
205
- ],
206
- "columnsTo": [
207
- "hash"
208
- ],
209
- "onDelete": "cascade",
210
- "onUpdate": "no action"
211
- }
212
- },
213
- "compositePrimaryKeys": {},
214
- "uniqueConstraints": {},
215
- "policies": {},
216
- "checkConstraints": {},
217
- "isRLSEnabled": false
218
- },
219
- "public.offers": {
220
- "name": "offers",
221
- "schema": "",
222
- "columns": {
223
- "hash": {
224
- "name": "hash",
225
- "type": "varchar(66)",
226
- "primaryKey": true,
227
- "notNull": true
228
- },
229
- "address": {
230
- "name": "address",
231
- "type": "varchar(42)",
232
- "primaryKey": false,
233
- "notNull": true
234
- },
235
- "assets": {
236
- "name": "assets",
237
- "type": "bigint",
238
- "primaryKey": false,
239
- "notNull": true
240
- },
241
- "price": {
242
- "name": "price",
243
- "type": "bigint",
244
- "primaryKey": false,
245
- "notNull": true
246
- },
247
- "maturity": {
248
- "name": "maturity",
249
- "type": "integer",
250
- "primaryKey": false,
251
- "notNull": true
252
- },
253
- "expiry": {
254
- "name": "expiry",
255
- "type": "integer",
256
- "primaryKey": false,
257
- "notNull": true
258
- },
259
- "nonce": {
260
- "name": "nonce",
261
- "type": "bigint",
262
- "primaryKey": false,
263
- "notNull": true
264
- },
265
- "is_buy": {
266
- "name": "is_buy",
267
- "type": "boolean",
268
- "primaryKey": false,
269
- "notNull": true
270
- },
271
- "chain_id": {
272
- "name": "chain_id",
273
- "type": "bigint",
274
- "primaryKey": false,
275
- "notNull": true
276
- },
277
- "loan_asset": {
278
- "name": "loan_asset",
279
- "type": "varchar(42)",
280
- "primaryKey": false,
281
- "notNull": true
282
- },
283
- "callback_address": {
284
- "name": "callback_address",
285
- "type": "varchar(42)",
286
- "primaryKey": false,
287
- "notNull": true
288
- },
289
- "callback_data": {
290
- "name": "callback_data",
291
- "type": "text",
292
- "primaryKey": false,
293
- "notNull": true
294
- },
295
- "callback_gas_limit": {
296
- "name": "callback_gas_limit",
297
- "type": "bigint",
298
- "primaryKey": false,
299
- "notNull": true
300
- },
301
- "signature": {
302
- "name": "signature",
303
- "type": "varchar(132)",
304
- "primaryKey": false,
305
- "notNull": false
306
- },
307
- "created_at": {
308
- "name": "created_at",
309
- "type": "timestamp",
310
- "primaryKey": false,
311
- "notNull": true,
312
- "default": "now()"
313
- }
314
- },
315
- "indexes": {
316
- "offers_address_idx": {
317
- "name": "offers_address_idx",
318
- "columns": [
319
- {
320
- "expression": "address",
321
- "isExpression": false,
322
- "asc": true,
323
- "nulls": "last"
324
- }
325
- ],
326
- "isUnique": false,
327
- "concurrently": false,
328
- "method": "btree",
329
- "with": {}
330
- },
331
- "offers_is_buy_idx": {
332
- "name": "offers_is_buy_idx",
333
- "columns": [
334
- {
335
- "expression": "is_buy",
336
- "isExpression": false,
337
- "asc": true,
338
- "nulls": "last"
339
- }
340
- ],
341
- "isUnique": false,
342
- "concurrently": false,
343
- "method": "btree",
344
- "with": {}
345
- },
346
- "offers_chain_id_idx": {
347
- "name": "offers_chain_id_idx",
348
- "columns": [
349
- {
350
- "expression": "chain_id",
351
- "isExpression": false,
352
- "asc": true,
353
- "nulls": "last"
354
- }
355
- ],
356
- "isUnique": false,
357
- "concurrently": false,
358
- "method": "btree",
359
- "with": {}
360
- },
361
- "offers_loan_asset_idx": {
362
- "name": "offers_loan_asset_idx",
363
- "columns": [
364
- {
365
- "expression": "loan_asset",
366
- "isExpression": false,
367
- "asc": true,
368
- "nulls": "last"
369
- }
370
- ],
371
- "isUnique": false,
372
- "concurrently": false,
373
- "method": "btree",
374
- "with": {}
375
- },
376
- "offers_maturity_idx": {
377
- "name": "offers_maturity_idx",
378
- "columns": [
379
- {
380
- "expression": "maturity",
381
- "isExpression": false,
382
- "asc": true,
383
- "nulls": "last"
384
- }
385
- ],
386
- "isUnique": false,
387
- "concurrently": false,
388
- "method": "btree",
389
- "with": {}
390
- },
391
- "offers_expiry_idx": {
392
- "name": "offers_expiry_idx",
393
- "columns": [
394
- {
395
- "expression": "expiry",
396
- "isExpression": false,
397
- "asc": true,
398
- "nulls": "last"
399
- }
400
- ],
401
- "isUnique": false,
402
- "concurrently": false,
403
- "method": "btree",
404
- "with": {}
405
- }
406
- },
407
- "foreignKeys": {},
408
- "compositePrimaryKeys": {},
409
- "uniqueConstraints": {},
410
- "policies": {},
411
- "checkConstraints": {},
412
- "isRLSEnabled": false
413
- }
414
- },
415
- "enums": {},
416
- "schemas": {},
417
- "sequences": {},
418
- "roles": {},
419
- "policies": {},
420
- "views": {},
421
- "_meta": {
422
- "columns": {},
423
- "schemas": {},
424
- "tables": {}
425
- }
426
- }