@morpho-dev/router 0.1.12 → 0.1.16

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.
@@ -0,0 +1,972 @@
1
+ {
2
+ "id": "66d93695-4e6b-4e8b-a439-f2150032c256",
3
+ "prevId": "bfd47937-9ca3-488e-96ec-b040b921e884",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "router_v1.4.chains": {
8
+ "name": "chains",
9
+ "schema": "router_v1.4",
10
+ "columns": {
11
+ "chain_id": {
12
+ "name": "chain_id",
13
+ "type": "bigint",
14
+ "primaryKey": false,
15
+ "notNull": true
16
+ },
17
+ "block_number": {
18
+ "name": "block_number",
19
+ "type": "bigint",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "epoch": {
24
+ "name": "epoch",
25
+ "type": "numeric(78, 0)",
26
+ "primaryKey": false,
27
+ "notNull": true,
28
+ "default": "'0'"
29
+ },
30
+ "updated_at": {
31
+ "name": "updated_at",
32
+ "type": "timestamp",
33
+ "primaryKey": false,
34
+ "notNull": true,
35
+ "default": "now()"
36
+ }
37
+ },
38
+ "indexes": {
39
+ "chains_id_epoch_idx": {
40
+ "name": "chains_id_epoch_idx",
41
+ "columns": [
42
+ {
43
+ "expression": "chain_id",
44
+ "isExpression": false,
45
+ "asc": true,
46
+ "nulls": "last"
47
+ },
48
+ {
49
+ "expression": "epoch",
50
+ "isExpression": false,
51
+ "asc": true,
52
+ "nulls": "last"
53
+ }
54
+ ],
55
+ "isUnique": true,
56
+ "concurrently": false,
57
+ "method": "btree",
58
+ "with": {}
59
+ }
60
+ },
61
+ "foreignKeys": {},
62
+ "compositePrimaryKeys": {},
63
+ "uniqueConstraints": {},
64
+ "policies": {},
65
+ "checkConstraints": {},
66
+ "isRLSEnabled": false
67
+ },
68
+ "router_v1.4.collectors": {
69
+ "name": "collectors",
70
+ "schema": "router_v1.4",
71
+ "columns": {
72
+ "chain_id": {
73
+ "name": "chain_id",
74
+ "type": "bigint",
75
+ "primaryKey": false,
76
+ "notNull": true
77
+ },
78
+ "name": {
79
+ "name": "name",
80
+ "type": "text",
81
+ "primaryKey": false,
82
+ "notNull": true
83
+ },
84
+ "block_number": {
85
+ "name": "block_number",
86
+ "type": "bigint",
87
+ "primaryKey": false,
88
+ "notNull": true
89
+ },
90
+ "epoch": {
91
+ "name": "epoch",
92
+ "type": "numeric(78, 0)",
93
+ "primaryKey": false,
94
+ "notNull": true,
95
+ "default": "'0'"
96
+ },
97
+ "updated_at": {
98
+ "name": "updated_at",
99
+ "type": "timestamp",
100
+ "primaryKey": false,
101
+ "notNull": true,
102
+ "default": "now()"
103
+ }
104
+ },
105
+ "indexes": {
106
+ "collectors_chain_name_epoch_idx": {
107
+ "name": "collectors_chain_name_epoch_idx",
108
+ "columns": [
109
+ {
110
+ "expression": "chain_id",
111
+ "isExpression": false,
112
+ "asc": true,
113
+ "nulls": "last"
114
+ },
115
+ {
116
+ "expression": "name",
117
+ "isExpression": false,
118
+ "asc": true,
119
+ "nulls": "last"
120
+ },
121
+ {
122
+ "expression": "epoch",
123
+ "isExpression": false,
124
+ "asc": true,
125
+ "nulls": "last"
126
+ }
127
+ ],
128
+ "isUnique": true,
129
+ "concurrently": false,
130
+ "method": "btree",
131
+ "with": {}
132
+ }
133
+ },
134
+ "foreignKeys": {},
135
+ "compositePrimaryKeys": {},
136
+ "uniqueConstraints": {},
137
+ "policies": {},
138
+ "checkConstraints": {},
139
+ "isRLSEnabled": false
140
+ },
141
+ "router_v1.4.consumed_per_user_and_nonce": {
142
+ "name": "consumed_per_user_and_nonce",
143
+ "schema": "router_v1.4",
144
+ "columns": {
145
+ "id": {
146
+ "name": "id",
147
+ "type": "varchar(255)",
148
+ "primaryKey": true,
149
+ "notNull": true
150
+ },
151
+ "chain_id": {
152
+ "name": "chain_id",
153
+ "type": "bigint",
154
+ "primaryKey": false,
155
+ "notNull": true
156
+ },
157
+ "offering": {
158
+ "name": "offering",
159
+ "type": "varchar(42)",
160
+ "primaryKey": false,
161
+ "notNull": true
162
+ },
163
+ "nonce": {
164
+ "name": "nonce",
165
+ "type": "bigint",
166
+ "primaryKey": false,
167
+ "notNull": true
168
+ },
169
+ "consumed": {
170
+ "name": "consumed",
171
+ "type": "numeric(78, 0)",
172
+ "primaryKey": false,
173
+ "notNull": true
174
+ },
175
+ "block_number": {
176
+ "name": "block_number",
177
+ "type": "bigint",
178
+ "primaryKey": false,
179
+ "notNull": true
180
+ },
181
+ "created_at": {
182
+ "name": "created_at",
183
+ "type": "timestamp",
184
+ "primaryKey": false,
185
+ "notNull": true,
186
+ "default": "now()"
187
+ }
188
+ },
189
+ "indexes": {
190
+ "consumed_per_user_and_nonce_chain_id_offering_nonce_block_number_idx": {
191
+ "name": "consumed_per_user_and_nonce_chain_id_offering_nonce_block_number_idx",
192
+ "columns": [
193
+ {
194
+ "expression": "chain_id",
195
+ "isExpression": false,
196
+ "asc": true,
197
+ "nulls": "last"
198
+ },
199
+ {
200
+ "expression": "offering",
201
+ "isExpression": false,
202
+ "asc": true,
203
+ "nulls": "last"
204
+ },
205
+ {
206
+ "expression": "nonce",
207
+ "isExpression": false,
208
+ "asc": true,
209
+ "nulls": "last"
210
+ },
211
+ {
212
+ "expression": "\"block_number\" desc",
213
+ "asc": true,
214
+ "isExpression": true,
215
+ "nulls": "last"
216
+ }
217
+ ],
218
+ "isUnique": false,
219
+ "concurrently": false,
220
+ "method": "btree",
221
+ "with": {}
222
+ }
223
+ },
224
+ "foreignKeys": {},
225
+ "compositePrimaryKeys": {},
226
+ "uniqueConstraints": {},
227
+ "policies": {},
228
+ "checkConstraints": {},
229
+ "isRLSEnabled": false
230
+ },
231
+ "router_v1.4.liquidity_links": {
232
+ "name": "liquidity_links",
233
+ "schema": "router_v1.4",
234
+ "columns": {
235
+ "parent_pool_id": {
236
+ "name": "parent_pool_id",
237
+ "type": "varchar(255)",
238
+ "primaryKey": false,
239
+ "notNull": true
240
+ },
241
+ "child_pool_id": {
242
+ "name": "child_pool_id",
243
+ "type": "varchar(255)",
244
+ "primaryKey": false,
245
+ "notNull": true
246
+ },
247
+ "priority": {
248
+ "name": "priority",
249
+ "type": "integer",
250
+ "primaryKey": false,
251
+ "notNull": true
252
+ },
253
+ "updated_at": {
254
+ "name": "updated_at",
255
+ "type": "timestamp",
256
+ "primaryKey": false,
257
+ "notNull": true,
258
+ "default": "now()"
259
+ }
260
+ },
261
+ "indexes": {
262
+ "liquidity_links_parent_pool_id_idx": {
263
+ "name": "liquidity_links_parent_pool_id_idx",
264
+ "columns": [
265
+ {
266
+ "expression": "parent_pool_id",
267
+ "isExpression": false,
268
+ "asc": true,
269
+ "nulls": "last"
270
+ }
271
+ ],
272
+ "isUnique": false,
273
+ "concurrently": false,
274
+ "method": "btree",
275
+ "with": {}
276
+ },
277
+ "liquidity_links_child_pool_id_idx": {
278
+ "name": "liquidity_links_child_pool_id_idx",
279
+ "columns": [
280
+ {
281
+ "expression": "child_pool_id",
282
+ "isExpression": false,
283
+ "asc": true,
284
+ "nulls": "last"
285
+ }
286
+ ],
287
+ "isUnique": false,
288
+ "concurrently": false,
289
+ "method": "btree",
290
+ "with": {}
291
+ }
292
+ },
293
+ "foreignKeys": {
294
+ "liquidity_links_parent_pool_id_liquidity_pools_id_fk": {
295
+ "name": "liquidity_links_parent_pool_id_liquidity_pools_id_fk",
296
+ "tableFrom": "liquidity_links",
297
+ "tableTo": "liquidity_pools",
298
+ "schemaTo": "router_v1.4",
299
+ "columnsFrom": ["parent_pool_id"],
300
+ "columnsTo": ["id"],
301
+ "onDelete": "cascade",
302
+ "onUpdate": "no action"
303
+ },
304
+ "liquidity_links_child_pool_id_liquidity_pools_id_fk": {
305
+ "name": "liquidity_links_child_pool_id_liquidity_pools_id_fk",
306
+ "tableFrom": "liquidity_links",
307
+ "tableTo": "liquidity_pools",
308
+ "schemaTo": "router_v1.4",
309
+ "columnsFrom": ["child_pool_id"],
310
+ "columnsTo": ["id"],
311
+ "onDelete": "cascade",
312
+ "onUpdate": "no action"
313
+ }
314
+ },
315
+ "compositePrimaryKeys": {
316
+ "liquidity_links_pk": {
317
+ "name": "liquidity_links_pk",
318
+ "columns": ["parent_pool_id", "priority"]
319
+ }
320
+ },
321
+ "uniqueConstraints": {},
322
+ "policies": {},
323
+ "checkConstraints": {},
324
+ "isRLSEnabled": false
325
+ },
326
+ "router_v1.4.liquidity_pools": {
327
+ "name": "liquidity_pools",
328
+ "schema": "router_v1.4",
329
+ "columns": {
330
+ "id": {
331
+ "name": "id",
332
+ "type": "varchar(255)",
333
+ "primaryKey": true,
334
+ "notNull": true
335
+ },
336
+ "amount": {
337
+ "name": "amount",
338
+ "type": "numeric(78, 0)",
339
+ "primaryKey": false,
340
+ "notNull": true
341
+ },
342
+ "updated_at": {
343
+ "name": "updated_at",
344
+ "type": "timestamp",
345
+ "primaryKey": false,
346
+ "notNull": true,
347
+ "default": "now()"
348
+ }
349
+ },
350
+ "indexes": {},
351
+ "foreignKeys": {},
352
+ "compositePrimaryKeys": {},
353
+ "uniqueConstraints": {},
354
+ "policies": {},
355
+ "checkConstraints": {},
356
+ "isRLSEnabled": false
357
+ },
358
+ "router_v1.4.obligation_collaterals": {
359
+ "name": "obligation_collaterals",
360
+ "schema": "router_v1.4",
361
+ "columns": {
362
+ "obligation_id": {
363
+ "name": "obligation_id",
364
+ "type": "varchar(66)",
365
+ "primaryKey": false,
366
+ "notNull": true
367
+ },
368
+ "asset": {
369
+ "name": "asset",
370
+ "type": "varchar(42)",
371
+ "primaryKey": false,
372
+ "notNull": true
373
+ },
374
+ "oracle": {
375
+ "name": "oracle",
376
+ "type": "varchar(42)",
377
+ "primaryKey": false,
378
+ "notNull": true
379
+ },
380
+ "lltv": {
381
+ "name": "lltv",
382
+ "type": "bigint",
383
+ "primaryKey": false,
384
+ "notNull": true
385
+ }
386
+ },
387
+ "indexes": {
388
+ "obligation_collaterals_obligation_id_idx": {
389
+ "name": "obligation_collaterals_obligation_id_idx",
390
+ "columns": [
391
+ {
392
+ "expression": "obligation_id",
393
+ "isExpression": false,
394
+ "asc": true,
395
+ "nulls": "last"
396
+ }
397
+ ],
398
+ "isUnique": false,
399
+ "concurrently": false,
400
+ "method": "btree",
401
+ "with": {}
402
+ }
403
+ },
404
+ "foreignKeys": {
405
+ "obligation_collaterals_obligation_id_obligations_obligation_id_fk": {
406
+ "name": "obligation_collaterals_obligation_id_obligations_obligation_id_fk",
407
+ "tableFrom": "obligation_collaterals",
408
+ "tableTo": "obligations",
409
+ "schemaTo": "router_v1.4",
410
+ "columnsFrom": ["obligation_id"],
411
+ "columnsTo": ["obligation_id"],
412
+ "onDelete": "cascade",
413
+ "onUpdate": "no action"
414
+ }
415
+ },
416
+ "compositePrimaryKeys": {
417
+ "obligation_collaterals_pk": {
418
+ "name": "obligation_collaterals_pk",
419
+ "columns": ["obligation_id", "asset"]
420
+ }
421
+ },
422
+ "uniqueConstraints": {},
423
+ "policies": {},
424
+ "checkConstraints": {},
425
+ "isRLSEnabled": false
426
+ },
427
+ "router_v1.4.obligations": {
428
+ "name": "obligations",
429
+ "schema": "router_v1.4",
430
+ "columns": {
431
+ "obligation_id": {
432
+ "name": "obligation_id",
433
+ "type": "varchar(66)",
434
+ "primaryKey": true,
435
+ "notNull": true
436
+ },
437
+ "chain_id": {
438
+ "name": "chain_id",
439
+ "type": "bigint",
440
+ "primaryKey": false,
441
+ "notNull": true
442
+ },
443
+ "loan_token": {
444
+ "name": "loan_token",
445
+ "type": "varchar(42)",
446
+ "primaryKey": false,
447
+ "notNull": true
448
+ },
449
+ "maturity": {
450
+ "name": "maturity",
451
+ "type": "integer",
452
+ "primaryKey": false,
453
+ "notNull": true
454
+ }
455
+ },
456
+ "indexes": {},
457
+ "foreignKeys": {},
458
+ "compositePrimaryKeys": {},
459
+ "uniqueConstraints": {},
460
+ "policies": {},
461
+ "checkConstraints": {},
462
+ "isRLSEnabled": false
463
+ },
464
+ "router_v1.4.offer_liquidity_pools": {
465
+ "name": "offer_liquidity_pools",
466
+ "schema": "router_v1.4",
467
+ "columns": {
468
+ "offer_hash": {
469
+ "name": "offer_hash",
470
+ "type": "varchar(66)",
471
+ "primaryKey": false,
472
+ "notNull": true
473
+ },
474
+ "pool_id": {
475
+ "name": "pool_id",
476
+ "type": "varchar(255)",
477
+ "primaryKey": false,
478
+ "notNull": true
479
+ },
480
+ "amount": {
481
+ "name": "amount",
482
+ "type": "numeric(78, 0)",
483
+ "primaryKey": false,
484
+ "notNull": true
485
+ },
486
+ "updated_at": {
487
+ "name": "updated_at",
488
+ "type": "timestamp",
489
+ "primaryKey": false,
490
+ "notNull": true,
491
+ "default": "now()"
492
+ }
493
+ },
494
+ "indexes": {
495
+ "offer_liquidity_pools_pool_id_idx": {
496
+ "name": "offer_liquidity_pools_pool_id_idx",
497
+ "columns": [
498
+ {
499
+ "expression": "pool_id",
500
+ "isExpression": false,
501
+ "asc": true,
502
+ "nulls": "last"
503
+ }
504
+ ],
505
+ "isUnique": false,
506
+ "concurrently": false,
507
+ "method": "btree",
508
+ "with": {}
509
+ }
510
+ },
511
+ "foreignKeys": {
512
+ "offer_liquidity_pools_offer_hash_offers_hash_fk": {
513
+ "name": "offer_liquidity_pools_offer_hash_offers_hash_fk",
514
+ "tableFrom": "offer_liquidity_pools",
515
+ "tableTo": "offers",
516
+ "schemaTo": "router_v1.4",
517
+ "columnsFrom": ["offer_hash"],
518
+ "columnsTo": ["hash"],
519
+ "onDelete": "cascade",
520
+ "onUpdate": "no action"
521
+ },
522
+ "offer_liquidity_pools_pool_id_liquidity_pools_id_fk": {
523
+ "name": "offer_liquidity_pools_pool_id_liquidity_pools_id_fk",
524
+ "tableFrom": "offer_liquidity_pools",
525
+ "tableTo": "liquidity_pools",
526
+ "schemaTo": "router_v1.4",
527
+ "columnsFrom": ["pool_id"],
528
+ "columnsTo": ["id"],
529
+ "onDelete": "cascade",
530
+ "onUpdate": "no action"
531
+ }
532
+ },
533
+ "compositePrimaryKeys": {
534
+ "offer_liquidity_pools_pk": {
535
+ "name": "offer_liquidity_pools_pk",
536
+ "columns": ["offer_hash", "pool_id"]
537
+ }
538
+ },
539
+ "uniqueConstraints": {},
540
+ "policies": {},
541
+ "checkConstraints": {},
542
+ "isRLSEnabled": false
543
+ },
544
+ "router_v1.4.offers": {
545
+ "name": "offers",
546
+ "schema": "router_v1.4",
547
+ "columns": {
548
+ "hash": {
549
+ "name": "hash",
550
+ "type": "varchar(66)",
551
+ "primaryKey": true,
552
+ "notNull": true
553
+ },
554
+ "obligation_id": {
555
+ "name": "obligation_id",
556
+ "type": "varchar(66)",
557
+ "primaryKey": false,
558
+ "notNull": true
559
+ },
560
+ "offering": {
561
+ "name": "offering",
562
+ "type": "varchar(42)",
563
+ "primaryKey": false,
564
+ "notNull": true
565
+ },
566
+ "assets": {
567
+ "name": "assets",
568
+ "type": "numeric(78, 0)",
569
+ "primaryKey": false,
570
+ "notNull": true
571
+ },
572
+ "rate": {
573
+ "name": "rate",
574
+ "type": "bigint",
575
+ "primaryKey": false,
576
+ "notNull": true
577
+ },
578
+ "maturity": {
579
+ "name": "maturity",
580
+ "type": "integer",
581
+ "primaryKey": false,
582
+ "notNull": true
583
+ },
584
+ "expiry": {
585
+ "name": "expiry",
586
+ "type": "integer",
587
+ "primaryKey": false,
588
+ "notNull": true
589
+ },
590
+ "start": {
591
+ "name": "start",
592
+ "type": "integer",
593
+ "primaryKey": false,
594
+ "notNull": true
595
+ },
596
+ "nonce": {
597
+ "name": "nonce",
598
+ "type": "bigint",
599
+ "primaryKey": false,
600
+ "notNull": true
601
+ },
602
+ "buy": {
603
+ "name": "buy",
604
+ "type": "boolean",
605
+ "primaryKey": false,
606
+ "notNull": true
607
+ },
608
+ "chain_id": {
609
+ "name": "chain_id",
610
+ "type": "bigint",
611
+ "primaryKey": false,
612
+ "notNull": true
613
+ },
614
+ "loan_token": {
615
+ "name": "loan_token",
616
+ "type": "varchar(42)",
617
+ "primaryKey": false,
618
+ "notNull": true
619
+ },
620
+ "callback_address": {
621
+ "name": "callback_address",
622
+ "type": "varchar(42)",
623
+ "primaryKey": false,
624
+ "notNull": true
625
+ },
626
+ "callback_data": {
627
+ "name": "callback_data",
628
+ "type": "text",
629
+ "primaryKey": false,
630
+ "notNull": true
631
+ },
632
+ "callback_gas_limit": {
633
+ "name": "callback_gas_limit",
634
+ "type": "bigint",
635
+ "primaryKey": false,
636
+ "notNull": true
637
+ },
638
+ "signature": {
639
+ "name": "signature",
640
+ "type": "varchar(132)",
641
+ "primaryKey": false,
642
+ "notNull": false
643
+ },
644
+ "created_at": {
645
+ "name": "created_at",
646
+ "type": "timestamp",
647
+ "primaryKey": false,
648
+ "notNull": true,
649
+ "default": "now()"
650
+ },
651
+ "block_number": {
652
+ "name": "block_number",
653
+ "type": "bigint",
654
+ "primaryKey": false,
655
+ "notNull": true
656
+ }
657
+ },
658
+ "indexes": {
659
+ "offers_obligation_id_idx": {
660
+ "name": "offers_obligation_id_idx",
661
+ "columns": [
662
+ {
663
+ "expression": "obligation_id",
664
+ "isExpression": false,
665
+ "asc": true,
666
+ "nulls": "last"
667
+ }
668
+ ],
669
+ "isUnique": false,
670
+ "concurrently": false,
671
+ "method": "btree",
672
+ "with": {}
673
+ },
674
+ "offers_offering_idx": {
675
+ "name": "offers_offering_idx",
676
+ "columns": [
677
+ {
678
+ "expression": "offering",
679
+ "isExpression": false,
680
+ "asc": true,
681
+ "nulls": "last"
682
+ }
683
+ ],
684
+ "isUnique": false,
685
+ "concurrently": false,
686
+ "method": "btree",
687
+ "with": {}
688
+ },
689
+ "offers_buy_idx": {
690
+ "name": "offers_buy_idx",
691
+ "columns": [
692
+ {
693
+ "expression": "buy",
694
+ "isExpression": false,
695
+ "asc": true,
696
+ "nulls": "last"
697
+ }
698
+ ],
699
+ "isUnique": false,
700
+ "concurrently": false,
701
+ "method": "btree",
702
+ "with": {}
703
+ },
704
+ "offers_chain_id_idx": {
705
+ "name": "offers_chain_id_idx",
706
+ "columns": [
707
+ {
708
+ "expression": "chain_id",
709
+ "isExpression": false,
710
+ "asc": true,
711
+ "nulls": "last"
712
+ }
713
+ ],
714
+ "isUnique": false,
715
+ "concurrently": false,
716
+ "method": "btree",
717
+ "with": {}
718
+ },
719
+ "offers_loan_token_idx": {
720
+ "name": "offers_loan_token_idx",
721
+ "columns": [
722
+ {
723
+ "expression": "loan_token",
724
+ "isExpression": false,
725
+ "asc": true,
726
+ "nulls": "last"
727
+ }
728
+ ],
729
+ "isUnique": false,
730
+ "concurrently": false,
731
+ "method": "btree",
732
+ "with": {}
733
+ },
734
+ "offers_maturity_idx": {
735
+ "name": "offers_maturity_idx",
736
+ "columns": [
737
+ {
738
+ "expression": "maturity",
739
+ "isExpression": false,
740
+ "asc": true,
741
+ "nulls": "last"
742
+ }
743
+ ],
744
+ "isUnique": false,
745
+ "concurrently": false,
746
+ "method": "btree",
747
+ "with": {}
748
+ },
749
+ "offers_expiry_idx": {
750
+ "name": "offers_expiry_idx",
751
+ "columns": [
752
+ {
753
+ "expression": "expiry",
754
+ "isExpression": false,
755
+ "asc": true,
756
+ "nulls": "last"
757
+ }
758
+ ],
759
+ "isUnique": false,
760
+ "concurrently": false,
761
+ "method": "btree",
762
+ "with": {}
763
+ },
764
+ "offers_rate_idx": {
765
+ "name": "offers_rate_idx",
766
+ "columns": [
767
+ {
768
+ "expression": "rate",
769
+ "isExpression": false,
770
+ "asc": true,
771
+ "nulls": "last"
772
+ }
773
+ ],
774
+ "isUnique": false,
775
+ "concurrently": false,
776
+ "method": "btree",
777
+ "with": {}
778
+ },
779
+ "offers_assets_idx": {
780
+ "name": "offers_assets_idx",
781
+ "columns": [
782
+ {
783
+ "expression": "assets",
784
+ "isExpression": false,
785
+ "asc": true,
786
+ "nulls": "last"
787
+ }
788
+ ],
789
+ "isUnique": false,
790
+ "concurrently": false,
791
+ "method": "btree",
792
+ "with": {}
793
+ },
794
+ "offers_created_at_idx": {
795
+ "name": "offers_created_at_idx",
796
+ "columns": [
797
+ {
798
+ "expression": "created_at",
799
+ "isExpression": false,
800
+ "asc": true,
801
+ "nulls": "last"
802
+ }
803
+ ],
804
+ "isUnique": false,
805
+ "concurrently": false,
806
+ "method": "btree",
807
+ "with": {}
808
+ },
809
+ "offers_block_number_idx": {
810
+ "name": "offers_block_number_idx",
811
+ "columns": [
812
+ {
813
+ "expression": "block_number",
814
+ "isExpression": false,
815
+ "asc": true,
816
+ "nulls": "last"
817
+ }
818
+ ],
819
+ "isUnique": false,
820
+ "concurrently": false,
821
+ "method": "btree",
822
+ "with": {}
823
+ },
824
+ "offers_rate_hash_idx": {
825
+ "name": "offers_rate_hash_idx",
826
+ "columns": [
827
+ {
828
+ "expression": "rate",
829
+ "isExpression": false,
830
+ "asc": true,
831
+ "nulls": "last"
832
+ },
833
+ {
834
+ "expression": "hash",
835
+ "isExpression": false,
836
+ "asc": true,
837
+ "nulls": "last"
838
+ }
839
+ ],
840
+ "isUnique": false,
841
+ "concurrently": false,
842
+ "method": "btree",
843
+ "with": {}
844
+ },
845
+ "offers_maturity_hash_idx": {
846
+ "name": "offers_maturity_hash_idx",
847
+ "columns": [
848
+ {
849
+ "expression": "maturity",
850
+ "isExpression": false,
851
+ "asc": true,
852
+ "nulls": "last"
853
+ },
854
+ {
855
+ "expression": "hash",
856
+ "isExpression": false,
857
+ "asc": true,
858
+ "nulls": "last"
859
+ }
860
+ ],
861
+ "isUnique": false,
862
+ "concurrently": false,
863
+ "method": "btree",
864
+ "with": {}
865
+ },
866
+ "offers_expiry_hash_idx": {
867
+ "name": "offers_expiry_hash_idx",
868
+ "columns": [
869
+ {
870
+ "expression": "expiry",
871
+ "isExpression": false,
872
+ "asc": true,
873
+ "nulls": "last"
874
+ },
875
+ {
876
+ "expression": "hash",
877
+ "isExpression": false,
878
+ "asc": true,
879
+ "nulls": "last"
880
+ }
881
+ ],
882
+ "isUnique": false,
883
+ "concurrently": false,
884
+ "method": "btree",
885
+ "with": {}
886
+ },
887
+ "offers_assets_hash_idx": {
888
+ "name": "offers_assets_hash_idx",
889
+ "columns": [
890
+ {
891
+ "expression": "assets",
892
+ "isExpression": false,
893
+ "asc": true,
894
+ "nulls": "last"
895
+ },
896
+ {
897
+ "expression": "hash",
898
+ "isExpression": false,
899
+ "asc": true,
900
+ "nulls": "last"
901
+ }
902
+ ],
903
+ "isUnique": false,
904
+ "concurrently": false,
905
+ "method": "btree",
906
+ "with": {}
907
+ },
908
+ "offers_rate_created_at_assets_hash_idx": {
909
+ "name": "offers_rate_created_at_assets_hash_idx",
910
+ "columns": [
911
+ {
912
+ "expression": "rate",
913
+ "isExpression": false,
914
+ "asc": true,
915
+ "nulls": "last"
916
+ },
917
+ {
918
+ "expression": "\"created_at\" asc",
919
+ "asc": true,
920
+ "isExpression": true,
921
+ "nulls": "last"
922
+ },
923
+ {
924
+ "expression": "\"assets\" desc",
925
+ "asc": true,
926
+ "isExpression": true,
927
+ "nulls": "last"
928
+ },
929
+ {
930
+ "expression": "\"hash\" asc",
931
+ "asc": true,
932
+ "isExpression": true,
933
+ "nulls": "last"
934
+ }
935
+ ],
936
+ "isUnique": false,
937
+ "concurrently": false,
938
+ "method": "btree",
939
+ "with": {}
940
+ }
941
+ },
942
+ "foreignKeys": {
943
+ "offers_obligation_id_obligations_obligation_id_fk": {
944
+ "name": "offers_obligation_id_obligations_obligation_id_fk",
945
+ "tableFrom": "offers",
946
+ "tableTo": "obligations",
947
+ "schemaTo": "router_v1.4",
948
+ "columnsFrom": ["obligation_id"],
949
+ "columnsTo": ["obligation_id"],
950
+ "onDelete": "cascade",
951
+ "onUpdate": "no action"
952
+ }
953
+ },
954
+ "compositePrimaryKeys": {},
955
+ "uniqueConstraints": {},
956
+ "policies": {},
957
+ "checkConstraints": {},
958
+ "isRLSEnabled": false
959
+ }
960
+ },
961
+ "enums": {},
962
+ "schemas": {},
963
+ "sequences": {},
964
+ "roles": {},
965
+ "policies": {},
966
+ "views": {},
967
+ "_meta": {
968
+ "columns": {},
969
+ "schemas": {},
970
+ "tables": {}
971
+ }
972
+ }