@morpho-dev/router 0.1.18 → 0.2.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 (41) hide show
  1. package/README.md +28 -18
  2. package/dist/cli.js +3020 -2174
  3. package/dist/cli.js.map +1 -1
  4. package/dist/drizzle/VERSION.ts +3 -0
  5. package/dist/drizzle/drizzle.config.ts +18 -0
  6. package/dist/drizzle/index.ts +2 -0
  7. package/dist/drizzle/{router_v1.4/0000_add_obligation_id.sql → router_v1.5/0000_add_block_number_to_liquidity_graph_and_offer_liquidity_pools_relation.sql} +49 -39
  8. package/dist/drizzle/router_v1.5/0001_create_new_relations_to_prepare_new_liquidity_model.sql +55 -0
  9. package/dist/drizzle/router_v1.5/0002_add_new_offer_status_relation.sql +9 -0
  10. package/dist/drizzle/router_v1.5/0003_insert-status-code.sql +1 -0
  11. package/dist/drizzle/router_v1.5/0004_add_index_for_fast_book_lookup.sql +3 -0
  12. package/dist/drizzle/router_v1.5/0005_add_group_consumed_events_table.sql +12 -0
  13. package/dist/drizzle/router_v1.5/0006_add-trigger-for-consumed-events.sql +58 -0
  14. package/dist/drizzle/router_v1.5/0007_update_index_for_fast_book_lookup.sql +5 -0
  15. package/dist/drizzle/router_v1.5/0008_rename_consumed_events_table.sql +8 -0
  16. package/dist/drizzle/{router_v1.4 → router_v1.5}/meta/0000_snapshot.json +83 -27
  17. package/dist/drizzle/{router_v1.4 → router_v1.5}/meta/0001_snapshot.json +459 -27
  18. package/dist/drizzle/router_v1.5/meta/0002_snapshot.json +1463 -0
  19. package/dist/drizzle/router_v1.5/meta/0003_snapshot.json +1463 -0
  20. package/dist/drizzle/router_v1.5/meta/0004_snapshot.json +1569 -0
  21. package/dist/drizzle/router_v1.5/meta/0005_snapshot.json +1664 -0
  22. package/dist/drizzle/router_v1.5/meta/0006_snapshot.json +1664 -0
  23. package/dist/drizzle/router_v1.5/meta/0007_snapshot.json +1752 -0
  24. package/dist/drizzle/router_v1.5/meta/0008_snapshot.json +1752 -0
  25. package/dist/drizzle/router_v1.5/meta/_journal.json +69 -0
  26. package/dist/drizzle/schema.ts +363 -0
  27. package/dist/index.browser.d.cts +884 -156
  28. package/dist/index.browser.d.ts +884 -156
  29. package/dist/index.browser.js +1433 -1010
  30. package/dist/index.browser.js.map +1 -1
  31. package/dist/index.browser.mjs +1426 -1009
  32. package/dist/index.browser.mjs.map +1 -1
  33. package/dist/index.node.d.cts +2578 -930
  34. package/dist/index.node.d.ts +2578 -930
  35. package/dist/index.node.js +6544 -5459
  36. package/dist/index.node.js.map +1 -1
  37. package/dist/index.node.mjs +6769 -5688
  38. package/dist/index.node.mjs.map +1 -1
  39. package/package.json +17 -13
  40. package/dist/drizzle/router_v1.4/0001_update-primary-key-on-link.sql +0 -3
  41. package/dist/drizzle/router_v1.4/meta/_journal.json +0 -20
@@ -1,12 +1,12 @@
1
1
  {
2
- "id": "66d93695-4e6b-4e8b-a439-f2150032c256",
3
- "prevId": "bfd47937-9ca3-488e-96ec-b040b921e884",
2
+ "id": "b1fce416-5707-4ab1-8125-c465e47cd17b",
3
+ "prevId": "ebc5db1e-f7e2-4441-b9c0-4789d0715e09",
4
4
  "version": "7",
5
5
  "dialect": "postgresql",
6
6
  "tables": {
7
- "router_v1.4.chains": {
7
+ "router_v1.5.chains": {
8
8
  "name": "chains",
9
- "schema": "router_v1.4",
9
+ "schema": "router_v1.5",
10
10
  "columns": {
11
11
  "chain_id": {
12
12
  "name": "chain_id",
@@ -65,9 +65,9 @@
65
65
  "checkConstraints": {},
66
66
  "isRLSEnabled": false
67
67
  },
68
- "router_v1.4.collectors": {
68
+ "router_v1.5.collectors": {
69
69
  "name": "collectors",
70
- "schema": "router_v1.4",
70
+ "schema": "router_v1.5",
71
71
  "columns": {
72
72
  "chain_id": {
73
73
  "name": "chain_id",
@@ -138,9 +138,9 @@
138
138
  "checkConstraints": {},
139
139
  "isRLSEnabled": false
140
140
  },
141
- "router_v1.4.consumed_per_user_and_nonce": {
141
+ "router_v1.5.consumed_per_user_and_nonce": {
142
142
  "name": "consumed_per_user_and_nonce",
143
- "schema": "router_v1.4",
143
+ "schema": "router_v1.5",
144
144
  "columns": {
145
145
  "id": {
146
146
  "name": "id",
@@ -228,9 +228,64 @@
228
228
  "checkConstraints": {},
229
229
  "isRLSEnabled": false
230
230
  },
231
- "router_v1.4.liquidity_links": {
231
+ "router_v1.5.groups": {
232
+ "name": "groups",
233
+ "schema": "router_v1.5",
234
+ "columns": {
235
+ "chain_id": {
236
+ "name": "chain_id",
237
+ "type": "bigint",
238
+ "primaryKey": false,
239
+ "notNull": true
240
+ },
241
+ "maker": {
242
+ "name": "maker",
243
+ "type": "varchar(42)",
244
+ "primaryKey": false,
245
+ "notNull": true
246
+ },
247
+ "group": {
248
+ "name": "group",
249
+ "type": "varchar(66)",
250
+ "primaryKey": false,
251
+ "notNull": true
252
+ },
253
+ "consumed": {
254
+ "name": "consumed",
255
+ "type": "numeric(78, 0)",
256
+ "primaryKey": false,
257
+ "notNull": true
258
+ },
259
+ "block_number": {
260
+ "name": "block_number",
261
+ "type": "bigint",
262
+ "primaryKey": false,
263
+ "notNull": true
264
+ },
265
+ "updated_at": {
266
+ "name": "updated_at",
267
+ "type": "timestamp",
268
+ "primaryKey": false,
269
+ "notNull": true,
270
+ "default": "now()"
271
+ }
272
+ },
273
+ "indexes": {},
274
+ "foreignKeys": {},
275
+ "compositePrimaryKeys": {
276
+ "groups_pk": {
277
+ "name": "groups_pk",
278
+ "columns": ["chain_id", "maker", "group"]
279
+ }
280
+ },
281
+ "uniqueConstraints": {},
282
+ "policies": {},
283
+ "checkConstraints": {},
284
+ "isRLSEnabled": false
285
+ },
286
+ "router_v1.5.liquidity_links": {
232
287
  "name": "liquidity_links",
233
- "schema": "router_v1.4",
288
+ "schema": "router_v1.5",
234
289
  "columns": {
235
290
  "parent_pool_id": {
236
291
  "name": "parent_pool_id",
@@ -250,6 +305,12 @@
250
305
  "primaryKey": false,
251
306
  "notNull": true
252
307
  },
308
+ "block_number": {
309
+ "name": "block_number",
310
+ "type": "bigint",
311
+ "primaryKey": false,
312
+ "notNull": true
313
+ },
253
314
  "updated_at": {
254
315
  "name": "updated_at",
255
316
  "type": "timestamp",
@@ -295,7 +356,7 @@
295
356
  "name": "liquidity_links_parent_pool_id_liquidity_pools_id_fk",
296
357
  "tableFrom": "liquidity_links",
297
358
  "tableTo": "liquidity_pools",
298
- "schemaTo": "router_v1.4",
359
+ "schemaTo": "router_v1.5",
299
360
  "columnsFrom": ["parent_pool_id"],
300
361
  "columnsTo": ["id"],
301
362
  "onDelete": "cascade",
@@ -305,7 +366,7 @@
305
366
  "name": "liquidity_links_child_pool_id_liquidity_pools_id_fk",
306
367
  "tableFrom": "liquidity_links",
307
368
  "tableTo": "liquidity_pools",
308
- "schemaTo": "router_v1.4",
369
+ "schemaTo": "router_v1.5",
309
370
  "columnsFrom": ["child_pool_id"],
310
371
  "columnsTo": ["id"],
311
372
  "onDelete": "cascade",
@@ -323,9 +384,9 @@
323
384
  "checkConstraints": {},
324
385
  "isRLSEnabled": false
325
386
  },
326
- "router_v1.4.liquidity_pools": {
387
+ "router_v1.5.liquidity_pools": {
327
388
  "name": "liquidity_pools",
328
- "schema": "router_v1.4",
389
+ "schema": "router_v1.5",
329
390
  "columns": {
330
391
  "id": {
331
392
  "name": "id",
@@ -339,6 +400,12 @@
339
400
  "primaryKey": false,
340
401
  "notNull": true
341
402
  },
403
+ "block_number": {
404
+ "name": "block_number",
405
+ "type": "bigint",
406
+ "primaryKey": false,
407
+ "notNull": true
408
+ },
342
409
  "updated_at": {
343
410
  "name": "updated_at",
344
411
  "type": "timestamp",
@@ -355,9 +422,9 @@
355
422
  "checkConstraints": {},
356
423
  "isRLSEnabled": false
357
424
  },
358
- "router_v1.4.obligation_collaterals": {
425
+ "router_v1.5.obligation_collaterals": {
359
426
  "name": "obligation_collaterals",
360
- "schema": "router_v1.4",
427
+ "schema": "router_v1.5",
361
428
  "columns": {
362
429
  "obligation_id": {
363
430
  "name": "obligation_id",
@@ -406,7 +473,7 @@
406
473
  "name": "obligation_collaterals_obligation_id_obligations_obligation_id_fk",
407
474
  "tableFrom": "obligation_collaterals",
408
475
  "tableTo": "obligations",
409
- "schemaTo": "router_v1.4",
476
+ "schemaTo": "router_v1.5",
410
477
  "columnsFrom": ["obligation_id"],
411
478
  "columnsTo": ["obligation_id"],
412
479
  "onDelete": "cascade",
@@ -424,9 +491,128 @@
424
491
  "checkConstraints": {},
425
492
  "isRLSEnabled": false
426
493
  },
427
- "router_v1.4.obligations": {
494
+ "router_v1.5.obligation_collaterals_v2": {
495
+ "name": "obligation_collaterals_v2",
496
+ "schema": "router_v1.5",
497
+ "columns": {
498
+ "obligation_id": {
499
+ "name": "obligation_id",
500
+ "type": "varchar(66)",
501
+ "primaryKey": false,
502
+ "notNull": true
503
+ },
504
+ "asset": {
505
+ "name": "asset",
506
+ "type": "varchar(42)",
507
+ "primaryKey": false,
508
+ "notNull": true
509
+ },
510
+ "oracle_chain_id": {
511
+ "name": "oracle_chain_id",
512
+ "type": "bigint",
513
+ "primaryKey": false,
514
+ "notNull": true
515
+ },
516
+ "oracle_address": {
517
+ "name": "oracle_address",
518
+ "type": "varchar(42)",
519
+ "primaryKey": false,
520
+ "notNull": true
521
+ },
522
+ "lltv": {
523
+ "name": "lltv",
524
+ "type": "bigint",
525
+ "primaryKey": false,
526
+ "notNull": true
527
+ },
528
+ "block_number": {
529
+ "name": "block_number",
530
+ "type": "bigint",
531
+ "primaryKey": false,
532
+ "notNull": true
533
+ },
534
+ "updated_at": {
535
+ "name": "updated_at",
536
+ "type": "timestamp",
537
+ "primaryKey": false,
538
+ "notNull": true,
539
+ "default": "now()"
540
+ }
541
+ },
542
+ "indexes": {
543
+ "obligation_collaterals_v2_obligation_id_idx": {
544
+ "name": "obligation_collaterals_v2_obligation_id_idx",
545
+ "columns": [
546
+ {
547
+ "expression": "obligation_id",
548
+ "isExpression": false,
549
+ "asc": true,
550
+ "nulls": "last"
551
+ }
552
+ ],
553
+ "isUnique": false,
554
+ "concurrently": false,
555
+ "method": "btree",
556
+ "with": {}
557
+ },
558
+ "obligation_collaterals_v2_oracle_fk_idx": {
559
+ "name": "obligation_collaterals_v2_oracle_fk_idx",
560
+ "columns": [
561
+ {
562
+ "expression": "oracle_chain_id",
563
+ "isExpression": false,
564
+ "asc": true,
565
+ "nulls": "last"
566
+ },
567
+ {
568
+ "expression": "oracle_address",
569
+ "isExpression": false,
570
+ "asc": true,
571
+ "nulls": "last"
572
+ }
573
+ ],
574
+ "isUnique": false,
575
+ "concurrently": false,
576
+ "method": "btree",
577
+ "with": {}
578
+ }
579
+ },
580
+ "foreignKeys": {
581
+ "obligation_collaterals_v2_obligation_id_obligations_obligation_id_fk": {
582
+ "name": "obligation_collaterals_v2_obligation_id_obligations_obligation_id_fk",
583
+ "tableFrom": "obligation_collaterals_v2",
584
+ "tableTo": "obligations",
585
+ "schemaTo": "router_v1.5",
586
+ "columnsFrom": ["obligation_id"],
587
+ "columnsTo": ["obligation_id"],
588
+ "onDelete": "cascade",
589
+ "onUpdate": "no action"
590
+ },
591
+ "obligation_collaterals_v2_oracles_fk": {
592
+ "name": "obligation_collaterals_v2_oracles_fk",
593
+ "tableFrom": "obligation_collaterals_v2",
594
+ "tableTo": "oracles",
595
+ "schemaTo": "router_v1.5",
596
+ "columnsFrom": ["oracle_chain_id", "oracle_address"],
597
+ "columnsTo": ["chain_id", "address"],
598
+ "onDelete": "no action",
599
+ "onUpdate": "no action"
600
+ }
601
+ },
602
+ "compositePrimaryKeys": {
603
+ "obligation_collaterals_v2_pk": {
604
+ "name": "obligation_collaterals_v2_pk",
605
+ "columns": ["obligation_id", "asset"]
606
+ }
607
+ },
608
+ "uniqueConstraints": {},
609
+ "policies": {},
610
+ "checkConstraints": {},
611
+ "isRLSEnabled": false
612
+ },
613
+ "router_v1.5.obligations": {
428
614
  "name": "obligations",
429
- "schema": "router_v1.4",
615
+ "schema": "router_v1.5",
430
616
  "columns": {
431
617
  "obligation_id": {
432
618
  "name": "obligation_id",
@@ -461,9 +647,9 @@
461
647
  "checkConstraints": {},
462
648
  "isRLSEnabled": false
463
649
  },
464
- "router_v1.4.offer_liquidity_pools": {
650
+ "router_v1.5.offer_liquidity_pools": {
465
651
  "name": "offer_liquidity_pools",
466
- "schema": "router_v1.4",
652
+ "schema": "router_v1.5",
467
653
  "columns": {
468
654
  "offer_hash": {
469
655
  "name": "offer_hash",
@@ -483,6 +669,12 @@
483
669
  "primaryKey": false,
484
670
  "notNull": true
485
671
  },
672
+ "block_number": {
673
+ "name": "block_number",
674
+ "type": "bigint",
675
+ "primaryKey": false,
676
+ "notNull": true
677
+ },
486
678
  "updated_at": {
487
679
  "name": "updated_at",
488
680
  "type": "timestamp",
@@ -513,7 +705,7 @@
513
705
  "name": "offer_liquidity_pools_offer_hash_offers_hash_fk",
514
706
  "tableFrom": "offer_liquidity_pools",
515
707
  "tableTo": "offers",
516
- "schemaTo": "router_v1.4",
708
+ "schemaTo": "router_v1.5",
517
709
  "columnsFrom": ["offer_hash"],
518
710
  "columnsTo": ["hash"],
519
711
  "onDelete": "cascade",
@@ -523,7 +715,7 @@
523
715
  "name": "offer_liquidity_pools_pool_id_liquidity_pools_id_fk",
524
716
  "tableFrom": "offer_liquidity_pools",
525
717
  "tableTo": "liquidity_pools",
526
- "schemaTo": "router_v1.4",
718
+ "schemaTo": "router_v1.5",
527
719
  "columnsFrom": ["pool_id"],
528
720
  "columnsTo": ["id"],
529
721
  "onDelete": "cascade",
@@ -541,9 +733,9 @@
541
733
  "checkConstraints": {},
542
734
  "isRLSEnabled": false
543
735
  },
544
- "router_v1.4.offers": {
736
+ "router_v1.5.offers": {
545
737
  "name": "offers",
546
- "schema": "router_v1.4",
738
+ "schema": "router_v1.5",
547
739
  "columns": {
548
740
  "hash": {
549
741
  "name": "hash",
@@ -944,7 +1136,7 @@
944
1136
  "name": "offers_obligation_id_obligations_obligation_id_fk",
945
1137
  "tableFrom": "offers",
946
1138
  "tableTo": "obligations",
947
- "schemaTo": "router_v1.4",
1139
+ "schemaTo": "router_v1.5",
948
1140
  "columnsFrom": ["obligation_id"],
949
1141
  "columnsTo": ["obligation_id"],
950
1142
  "onDelete": "cascade",
@@ -956,9 +1148,249 @@
956
1148
  "policies": {},
957
1149
  "checkConstraints": {},
958
1150
  "isRLSEnabled": false
1151
+ },
1152
+ "router_v1.5.offers_v2": {
1153
+ "name": "offers_v2",
1154
+ "schema": "router_v1.5",
1155
+ "columns": {
1156
+ "hash": {
1157
+ "name": "hash",
1158
+ "type": "varchar(66)",
1159
+ "primaryKey": true,
1160
+ "notNull": true
1161
+ },
1162
+ "obligation_id": {
1163
+ "name": "obligation_id",
1164
+ "type": "varchar(66)",
1165
+ "primaryKey": false,
1166
+ "notNull": true
1167
+ },
1168
+ "assets": {
1169
+ "name": "assets",
1170
+ "type": "numeric(78, 0)",
1171
+ "primaryKey": false,
1172
+ "notNull": true
1173
+ },
1174
+ "rate": {
1175
+ "name": "rate",
1176
+ "type": "numeric(78, 0)",
1177
+ "primaryKey": false,
1178
+ "notNull": true
1179
+ },
1180
+ "maturity": {
1181
+ "name": "maturity",
1182
+ "type": "integer",
1183
+ "primaryKey": false,
1184
+ "notNull": true
1185
+ },
1186
+ "expiry": {
1187
+ "name": "expiry",
1188
+ "type": "integer",
1189
+ "primaryKey": false,
1190
+ "notNull": true
1191
+ },
1192
+ "start": {
1193
+ "name": "start",
1194
+ "type": "integer",
1195
+ "primaryKey": false,
1196
+ "notNull": true
1197
+ },
1198
+ "group_chain_id": {
1199
+ "name": "group_chain_id",
1200
+ "type": "bigint",
1201
+ "primaryKey": false,
1202
+ "notNull": true
1203
+ },
1204
+ "group_maker": {
1205
+ "name": "group_maker",
1206
+ "type": "varchar(42)",
1207
+ "primaryKey": false,
1208
+ "notNull": true
1209
+ },
1210
+ "group_group": {
1211
+ "name": "group_group",
1212
+ "type": "varchar(66)",
1213
+ "primaryKey": false,
1214
+ "notNull": true
1215
+ },
1216
+ "nonce": {
1217
+ "name": "nonce",
1218
+ "type": "varchar(66)",
1219
+ "primaryKey": false,
1220
+ "notNull": true
1221
+ },
1222
+ "buy": {
1223
+ "name": "buy",
1224
+ "type": "boolean",
1225
+ "primaryKey": false,
1226
+ "notNull": true
1227
+ },
1228
+ "callback_address": {
1229
+ "name": "callback_address",
1230
+ "type": "varchar(42)",
1231
+ "primaryKey": false,
1232
+ "notNull": true
1233
+ },
1234
+ "callback_data": {
1235
+ "name": "callback_data",
1236
+ "type": "text",
1237
+ "primaryKey": false,
1238
+ "notNull": true
1239
+ },
1240
+ "block_number": {
1241
+ "name": "block_number",
1242
+ "type": "bigint",
1243
+ "primaryKey": false,
1244
+ "notNull": true
1245
+ },
1246
+ "updated_at": {
1247
+ "name": "updated_at",
1248
+ "type": "timestamp",
1249
+ "primaryKey": false,
1250
+ "notNull": true,
1251
+ "default": "now()"
1252
+ }
1253
+ },
1254
+ "indexes": {
1255
+ "offers_v2_group_fk_idx": {
1256
+ "name": "offers_v2_group_fk_idx",
1257
+ "columns": [
1258
+ {
1259
+ "expression": "group_chain_id",
1260
+ "isExpression": false,
1261
+ "asc": true,
1262
+ "nulls": "last"
1263
+ },
1264
+ {
1265
+ "expression": "group_maker",
1266
+ "isExpression": false,
1267
+ "asc": true,
1268
+ "nulls": "last"
1269
+ },
1270
+ {
1271
+ "expression": "group_group",
1272
+ "isExpression": false,
1273
+ "asc": true,
1274
+ "nulls": "last"
1275
+ }
1276
+ ],
1277
+ "isUnique": false,
1278
+ "concurrently": false,
1279
+ "method": "btree",
1280
+ "with": {}
1281
+ }
1282
+ },
1283
+ "foreignKeys": {
1284
+ "offers_v2_obligation_id_obligations_obligation_id_fk": {
1285
+ "name": "offers_v2_obligation_id_obligations_obligation_id_fk",
1286
+ "tableFrom": "offers_v2",
1287
+ "tableTo": "obligations",
1288
+ "schemaTo": "router_v1.5",
1289
+ "columnsFrom": ["obligation_id"],
1290
+ "columnsTo": ["obligation_id"],
1291
+ "onDelete": "cascade",
1292
+ "onUpdate": "no action"
1293
+ },
1294
+ "offers_v2_groups_fk": {
1295
+ "name": "offers_v2_groups_fk",
1296
+ "tableFrom": "offers_v2",
1297
+ "tableTo": "groups",
1298
+ "schemaTo": "router_v1.5",
1299
+ "columnsFrom": ["group_chain_id", "group_maker", "group_group"],
1300
+ "columnsTo": ["chain_id", "maker", "group"],
1301
+ "onDelete": "cascade",
1302
+ "onUpdate": "no action"
1303
+ }
1304
+ },
1305
+ "compositePrimaryKeys": {},
1306
+ "uniqueConstraints": {},
1307
+ "policies": {},
1308
+ "checkConstraints": {},
1309
+ "isRLSEnabled": false
1310
+ },
1311
+ "router_v1.5.oracles": {
1312
+ "name": "oracles",
1313
+ "schema": "router_v1.5",
1314
+ "columns": {
1315
+ "chain_id": {
1316
+ "name": "chain_id",
1317
+ "type": "bigint",
1318
+ "primaryKey": false,
1319
+ "notNull": true
1320
+ },
1321
+ "address": {
1322
+ "name": "address",
1323
+ "type": "varchar(42)",
1324
+ "primaryKey": false,
1325
+ "notNull": true
1326
+ },
1327
+ "block_number": {
1328
+ "name": "block_number",
1329
+ "type": "bigint",
1330
+ "primaryKey": false,
1331
+ "notNull": true
1332
+ },
1333
+ "updated_at": {
1334
+ "name": "updated_at",
1335
+ "type": "timestamp",
1336
+ "primaryKey": false,
1337
+ "notNull": true,
1338
+ "default": "now()"
1339
+ }
1340
+ },
1341
+ "indexes": {},
1342
+ "foreignKeys": {},
1343
+ "compositePrimaryKeys": {
1344
+ "oracles_pk": {
1345
+ "name": "oracles_pk",
1346
+ "columns": ["chain_id", "address"]
1347
+ }
1348
+ },
1349
+ "uniqueConstraints": {},
1350
+ "policies": {},
1351
+ "checkConstraints": {},
1352
+ "isRLSEnabled": false
1353
+ },
1354
+ "router_v1.5.status": {
1355
+ "name": "status",
1356
+ "schema": "router_v1.5",
1357
+ "columns": {
1358
+ "id": {
1359
+ "name": "id",
1360
+ "type": "serial",
1361
+ "primaryKey": true,
1362
+ "notNull": true
1363
+ },
1364
+ "code": {
1365
+ "name": "code",
1366
+ "type": "status_code",
1367
+ "typeSchema": "router_v1.5",
1368
+ "primaryKey": false,
1369
+ "notNull": false
1370
+ }
1371
+ },
1372
+ "indexes": {},
1373
+ "foreignKeys": {},
1374
+ "compositePrimaryKeys": {},
1375
+ "uniqueConstraints": {
1376
+ "status_code_unique": {
1377
+ "name": "status_code_unique",
1378
+ "nullsNotDistinct": false,
1379
+ "columns": ["code"]
1380
+ }
1381
+ },
1382
+ "policies": {},
1383
+ "checkConstraints": {},
1384
+ "isRLSEnabled": false
1385
+ }
1386
+ },
1387
+ "enums": {
1388
+ "router_v1.5.status_code": {
1389
+ "name": "status_code",
1390
+ "schema": "router_v1.5",
1391
+ "values": ["VALID", "NOT_ENOUGH_LIQUIDITY"]
959
1392
  }
960
1393
  },
961
- "enums": {},
962
1394
  "schemas": {},
963
1395
  "sequences": {},
964
1396
  "roles": {},