@morpho-dev/router 0.1.10 → 0.1.12
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.
- package/README.md +7 -7
- package/dist/drizzle/{offers_v1.1 → router_v1.1}/0000_init.sql +47 -39
- package/dist/drizzle/{offers_v1.1/meta/0005_snapshot.json → router_v1.1/meta/0000_snapshot.json} +76 -21
- package/dist/drizzle/router_v1.1/meta/_journal.json +13 -0
- package/dist/index.browser.d.cts +185 -143
- package/dist/index.browser.d.ts +185 -143
- package/dist/index.browser.js +808 -443
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +810 -445
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.cts +1861 -1792
- package/dist/index.node.d.ts +1861 -1792
- package/dist/index.node.js +2921 -2384
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +2923 -2385
- package/dist/index.node.mjs.map +1 -1
- package/package.json +4 -4
- package/dist/drizzle/offers_v1.1/0001_new_table_for_collectors_block_numbers.sql +0 -5
- package/dist/drizzle/offers_v1.1/0002_update-liquidity-tables.sql +0 -8
- package/dist/drizzle/offers_v1.1/0003_add-not-null-for-queue-id.sql +0 -1
- package/dist/drizzle/offers_v1.1/0004_add-callback-id-to-offer.sql +0 -1
- package/dist/drizzle/offers_v1.1/0005_add-missing-indices-to-liquidity-tables.sql +0 -2
- package/dist/drizzle/offers_v1.1/meta/0000_snapshot.json +0 -827
- package/dist/drizzle/offers_v1.1/meta/0001_snapshot.json +0 -827
- package/dist/drizzle/offers_v1.1/meta/0002_snapshot.json +0 -833
- package/dist/drizzle/offers_v1.1/meta/0003_snapshot.json +0 -833
- package/dist/drizzle/offers_v1.1/meta/0004_snapshot.json +0 -839
- package/dist/drizzle/offers_v1.1/meta/_journal.json +0 -48
package/README.md
CHANGED
|
@@ -13,26 +13,26 @@ pnpm add @morpho-dev/router
|
|
|
13
13
|
### Running the Local Server
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import {
|
|
16
|
+
import { RouterApi } from "@morpho-dev/router";
|
|
17
17
|
|
|
18
|
-
// Start a local router
|
|
19
|
-
await
|
|
18
|
+
// Start a local router api on port 8081
|
|
19
|
+
await RouterApi.serve({ port: 8081 });
|
|
20
20
|
// Server will be available at http://localhost:8081
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
### Basic Setup
|
|
24
24
|
|
|
25
25
|
```typescript
|
|
26
|
-
import {
|
|
26
|
+
import { RouterApi } from "@morpho-dev/router";
|
|
27
27
|
|
|
28
28
|
// Create a router client
|
|
29
|
-
const router =
|
|
29
|
+
const router = RouterApi.connect();
|
|
30
30
|
|
|
31
31
|
// With custom URL
|
|
32
|
-
const router =
|
|
32
|
+
const router = RouterApi.connect({ url: "https://router.morpho.dev" });
|
|
33
33
|
|
|
34
34
|
// Connect to local server
|
|
35
|
-
const router =
|
|
35
|
+
const router = RouterApi.connect({ url: "http://localhost:8081" });
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
### Get Offers
|
|
@@ -1,17 +1,26 @@
|
|
|
1
|
-
CREATE TABLE "
|
|
1
|
+
CREATE TABLE "router_v1.1"."available_liquidity_pools" (
|
|
2
2
|
"id" varchar(255) PRIMARY KEY NOT NULL,
|
|
3
3
|
"amount" numeric(78, 0) NOT NULL,
|
|
4
4
|
"updated_at" timestamp DEFAULT now() NOT NULL
|
|
5
5
|
);
|
|
6
6
|
--> statement-breakpoint
|
|
7
|
-
CREATE TABLE "
|
|
8
|
-
"
|
|
7
|
+
CREATE TABLE "router_v1.1"."available_liquidity_queues" (
|
|
8
|
+
"queue_id" varchar(255) NOT NULL,
|
|
9
9
|
"available_liquidity_pool_id" varchar(255) NOT NULL,
|
|
10
10
|
"index" integer NOT NULL,
|
|
11
|
+
"callback_amount" numeric(78, 0) DEFAULT '0' NOT NULL,
|
|
12
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
13
|
+
CONSTRAINT "available_liquidity_queues_pk" PRIMARY KEY("queue_id","available_liquidity_pool_id")
|
|
14
|
+
);
|
|
15
|
+
--> statement-breakpoint
|
|
16
|
+
CREATE TABLE "router_v1.1"."collector_block_numbers" (
|
|
17
|
+
"chain_id" bigint NOT NULL,
|
|
18
|
+
"name" text NOT NULL,
|
|
19
|
+
"block_number" bigint NOT NULL,
|
|
11
20
|
"updated_at" timestamp DEFAULT now() NOT NULL
|
|
12
21
|
);
|
|
13
22
|
--> statement-breakpoint
|
|
14
|
-
CREATE TABLE "
|
|
23
|
+
CREATE TABLE "router_v1.1"."consumed_per_user_and_nonce" (
|
|
15
24
|
"id" varchar(255) PRIMARY KEY NOT NULL,
|
|
16
25
|
"chain_id" bigint NOT NULL,
|
|
17
26
|
"offering" varchar(42) NOT NULL,
|
|
@@ -20,14 +29,7 @@ CREATE TABLE "offers_v1.1"."consumed_per_user_and_nonce" (
|
|
|
20
29
|
"created_at" timestamp DEFAULT now() NOT NULL
|
|
21
30
|
);
|
|
22
31
|
--> statement-breakpoint
|
|
23
|
-
CREATE TABLE "
|
|
24
|
-
"chain_id" bigint NOT NULL,
|
|
25
|
-
"event_type" text NOT NULL,
|
|
26
|
-
"latest_block_number" bigint NOT NULL,
|
|
27
|
-
"updated_at" timestamp DEFAULT now() NOT NULL
|
|
28
|
-
);
|
|
29
|
-
--> statement-breakpoint
|
|
30
|
-
CREATE TABLE "offers_v1.1"."offer_collaterals" (
|
|
32
|
+
CREATE TABLE "router_v1.1"."offer_collaterals" (
|
|
31
33
|
"id" serial PRIMARY KEY NOT NULL,
|
|
32
34
|
"offer_hash" varchar(66) NOT NULL,
|
|
33
35
|
"asset" varchar(42) NOT NULL,
|
|
@@ -35,7 +37,7 @@ CREATE TABLE "offers_v1.1"."offer_collaterals" (
|
|
|
35
37
|
"lltv" bigint NOT NULL
|
|
36
38
|
);
|
|
37
39
|
--> statement-breakpoint
|
|
38
|
-
CREATE TABLE "
|
|
40
|
+
CREATE TABLE "router_v1.1"."offer_status" (
|
|
39
41
|
"id" serial PRIMARY KEY NOT NULL,
|
|
40
42
|
"offer_hash" varchar(66) NOT NULL,
|
|
41
43
|
"status" text NOT NULL,
|
|
@@ -43,7 +45,7 @@ CREATE TABLE "offers_v1.1"."offer_status" (
|
|
|
43
45
|
"created_at" timestamp DEFAULT now() NOT NULL
|
|
44
46
|
);
|
|
45
47
|
--> statement-breakpoint
|
|
46
|
-
CREATE TABLE "
|
|
48
|
+
CREATE TABLE "router_v1.1"."offers" (
|
|
47
49
|
"hash" varchar(66) PRIMARY KEY NOT NULL,
|
|
48
50
|
"offering" varchar(42) NOT NULL,
|
|
49
51
|
"assets" numeric(78, 0) NOT NULL,
|
|
@@ -59,37 +61,43 @@ CREATE TABLE "offers_v1.1"."offers" (
|
|
|
59
61
|
"callback_data" text NOT NULL,
|
|
60
62
|
"callback_gas_limit" bigint NOT NULL,
|
|
61
63
|
"signature" varchar(132),
|
|
64
|
+
"callback_id" varchar(256),
|
|
62
65
|
"created_at" timestamp DEFAULT now() NOT NULL
|
|
63
66
|
);
|
|
64
67
|
--> statement-breakpoint
|
|
65
|
-
CREATE TABLE "
|
|
68
|
+
CREATE TABLE "router_v1.1"."user_positions" (
|
|
66
69
|
"id" varchar(255) PRIMARY KEY NOT NULL,
|
|
67
70
|
"available_liquidity_queue_id" varchar(255) NOT NULL,
|
|
71
|
+
"user" varchar(255) NOT NULL,
|
|
72
|
+
"chain_id" bigint NOT NULL,
|
|
68
73
|
"amount" numeric(78, 0) NOT NULL,
|
|
69
74
|
"updated_at" timestamp DEFAULT now() NOT NULL
|
|
70
75
|
);
|
|
71
76
|
--> statement-breakpoint
|
|
72
|
-
ALTER TABLE "
|
|
73
|
-
ALTER TABLE "
|
|
74
|
-
ALTER TABLE "
|
|
75
|
-
|
|
76
|
-
CREATE INDEX "
|
|
77
|
-
CREATE
|
|
78
|
-
CREATE INDEX "offer_collaterals_offer_hash_idx" ON "
|
|
79
|
-
CREATE INDEX "offer_collaterals_asset_idx" ON "
|
|
80
|
-
CREATE INDEX "offer_collaterals_oracle_idx" ON "
|
|
81
|
-
CREATE INDEX "offer_collaterals_tuple_idx" ON "
|
|
82
|
-
CREATE INDEX "offer_status_offer_hash_created_at_idx" ON "
|
|
83
|
-
CREATE INDEX "offer_status_status_idx" ON "
|
|
84
|
-
CREATE INDEX "offers_offering_idx" ON "
|
|
85
|
-
CREATE INDEX "offers_buy_idx" ON "
|
|
86
|
-
CREATE INDEX "offers_chain_id_idx" ON "
|
|
87
|
-
CREATE INDEX "offers_loan_token_idx" ON "
|
|
88
|
-
CREATE INDEX "offers_maturity_idx" ON "
|
|
89
|
-
CREATE INDEX "offers_expiry_idx" ON "
|
|
90
|
-
CREATE INDEX "offers_rate_idx" ON "
|
|
91
|
-
CREATE INDEX "offers_assets_idx" ON "
|
|
92
|
-
CREATE INDEX "
|
|
93
|
-
CREATE INDEX "
|
|
94
|
-
CREATE INDEX "
|
|
95
|
-
CREATE INDEX "
|
|
77
|
+
ALTER TABLE "router_v1.1"."available_liquidity_queues" ADD CONSTRAINT "available_liquidity_queues_available_liquidity_pool_id_available_liquidity_pools_id_fk" FOREIGN KEY ("available_liquidity_pool_id") REFERENCES "router_v1.1"."available_liquidity_pools"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
78
|
+
ALTER TABLE "router_v1.1"."offer_collaterals" ADD CONSTRAINT "offer_collaterals_offer_hash_offers_hash_fk" FOREIGN KEY ("offer_hash") REFERENCES "router_v1.1"."offers"("hash") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
79
|
+
ALTER TABLE "router_v1.1"."offer_status" ADD CONSTRAINT "offer_status_offer_hash_offers_hash_fk" FOREIGN KEY ("offer_hash") REFERENCES "router_v1.1"."offers"("hash") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
80
|
+
CREATE INDEX "available_liquidity_queues_queue_index_idx" ON "router_v1.1"."available_liquidity_queues" USING btree ("queue_id","index");--> statement-breakpoint
|
|
81
|
+
CREATE UNIQUE INDEX "collector_block_numbers_chain_name_idx" ON "router_v1.1"."collector_block_numbers" USING btree ("chain_id","name");--> statement-breakpoint
|
|
82
|
+
CREATE INDEX "consumed_per_user_and_nonce_chain_id_offering_nonce_created_at_idx" ON "router_v1.1"."consumed_per_user_and_nonce" USING btree ("chain_id","offering","nonce","created_at" desc);--> statement-breakpoint
|
|
83
|
+
CREATE INDEX "offer_collaterals_offer_hash_idx" ON "router_v1.1"."offer_collaterals" USING btree ("offer_hash");--> statement-breakpoint
|
|
84
|
+
CREATE INDEX "offer_collaterals_asset_idx" ON "router_v1.1"."offer_collaterals" USING btree ("asset");--> statement-breakpoint
|
|
85
|
+
CREATE INDEX "offer_collaterals_oracle_idx" ON "router_v1.1"."offer_collaterals" USING btree ("oracle");--> statement-breakpoint
|
|
86
|
+
CREATE INDEX "offer_collaterals_tuple_idx" ON "router_v1.1"."offer_collaterals" USING btree ("asset","oracle","lltv");--> statement-breakpoint
|
|
87
|
+
CREATE INDEX "offer_status_offer_hash_created_at_idx" ON "router_v1.1"."offer_status" USING btree ("offer_hash","created_at" desc);--> statement-breakpoint
|
|
88
|
+
CREATE INDEX "offer_status_status_idx" ON "router_v1.1"."offer_status" USING btree ("status");--> statement-breakpoint
|
|
89
|
+
CREATE INDEX "offers_offering_idx" ON "router_v1.1"."offers" USING btree ("offering");--> statement-breakpoint
|
|
90
|
+
CREATE INDEX "offers_buy_idx" ON "router_v1.1"."offers" USING btree ("buy");--> statement-breakpoint
|
|
91
|
+
CREATE INDEX "offers_chain_id_idx" ON "router_v1.1"."offers" USING btree ("chain_id");--> statement-breakpoint
|
|
92
|
+
CREATE INDEX "offers_loan_token_idx" ON "router_v1.1"."offers" USING btree ("loan_token");--> statement-breakpoint
|
|
93
|
+
CREATE INDEX "offers_maturity_idx" ON "router_v1.1"."offers" USING btree ("maturity");--> statement-breakpoint
|
|
94
|
+
CREATE INDEX "offers_expiry_idx" ON "router_v1.1"."offers" USING btree ("expiry");--> statement-breakpoint
|
|
95
|
+
CREATE INDEX "offers_rate_idx" ON "router_v1.1"."offers" USING btree ("rate");--> statement-breakpoint
|
|
96
|
+
CREATE INDEX "offers_assets_idx" ON "router_v1.1"."offers" USING btree ("assets");--> statement-breakpoint
|
|
97
|
+
CREATE INDEX "offers_created_at_idx" ON "router_v1.1"."offers" USING btree ("created_at");--> statement-breakpoint
|
|
98
|
+
CREATE INDEX "offers_rate_hash_idx" ON "router_v1.1"."offers" USING btree ("rate","hash");--> statement-breakpoint
|
|
99
|
+
CREATE INDEX "offers_maturity_hash_idx" ON "router_v1.1"."offers" USING btree ("maturity","hash");--> statement-breakpoint
|
|
100
|
+
CREATE INDEX "offers_expiry_hash_idx" ON "router_v1.1"."offers" USING btree ("expiry","hash");--> statement-breakpoint
|
|
101
|
+
CREATE INDEX "offers_assets_hash_idx" ON "router_v1.1"."offers" USING btree ("assets","hash");--> statement-breakpoint
|
|
102
|
+
CREATE INDEX "offers_rate_created_at_assets_hash_idx" ON "router_v1.1"."offers" USING btree ("rate","created_at" asc,"assets" desc,"hash" asc);--> statement-breakpoint
|
|
103
|
+
CREATE INDEX "user_positions_available_liquidity_queue_id_idx" ON "router_v1.1"."user_positions" USING btree ("available_liquidity_queue_id");
|
package/dist/drizzle/{offers_v1.1/meta/0005_snapshot.json → router_v1.1/meta/0000_snapshot.json}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "
|
|
3
|
-
"prevId": "
|
|
2
|
+
"id": "0de5bcf5-abeb-4b8c-9d3b-03152964372f",
|
|
3
|
+
"prevId": "00000000-0000-0000-0000-000000000000",
|
|
4
4
|
"version": "7",
|
|
5
5
|
"dialect": "postgresql",
|
|
6
6
|
"tables": {
|
|
7
|
-
"
|
|
7
|
+
"router_v1.1.available_liquidity_pools": {
|
|
8
8
|
"name": "available_liquidity_pools",
|
|
9
|
-
"schema": "
|
|
9
|
+
"schema": "router_v1.1",
|
|
10
10
|
"columns": {
|
|
11
11
|
"id": {
|
|
12
12
|
"name": "id",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"checkConstraints": {},
|
|
37
37
|
"isRLSEnabled": false
|
|
38
38
|
},
|
|
39
|
-
"
|
|
39
|
+
"router_v1.1.available_liquidity_queues": {
|
|
40
40
|
"name": "available_liquidity_queues",
|
|
41
|
-
"schema": "
|
|
41
|
+
"schema": "router_v1.1",
|
|
42
42
|
"columns": {
|
|
43
43
|
"queue_id": {
|
|
44
44
|
"name": "queue_id",
|
|
@@ -58,6 +58,13 @@
|
|
|
58
58
|
"primaryKey": false,
|
|
59
59
|
"notNull": true
|
|
60
60
|
},
|
|
61
|
+
"callback_amount": {
|
|
62
|
+
"name": "callback_amount",
|
|
63
|
+
"type": "numeric(78, 0)",
|
|
64
|
+
"primaryKey": false,
|
|
65
|
+
"notNull": true,
|
|
66
|
+
"default": "'0'"
|
|
67
|
+
},
|
|
61
68
|
"updated_at": {
|
|
62
69
|
"name": "updated_at",
|
|
63
70
|
"type": "timestamp",
|
|
@@ -94,7 +101,7 @@
|
|
|
94
101
|
"name": "available_liquidity_queues_available_liquidity_pool_id_available_liquidity_pools_id_fk",
|
|
95
102
|
"tableFrom": "available_liquidity_queues",
|
|
96
103
|
"tableTo": "available_liquidity_pools",
|
|
97
|
-
"schemaTo": "
|
|
104
|
+
"schemaTo": "router_v1.1",
|
|
98
105
|
"columnsFrom": ["available_liquidity_pool_id"],
|
|
99
106
|
"columnsTo": ["id"],
|
|
100
107
|
"onDelete": "cascade",
|
|
@@ -112,9 +119,9 @@
|
|
|
112
119
|
"checkConstraints": {},
|
|
113
120
|
"isRLSEnabled": false
|
|
114
121
|
},
|
|
115
|
-
"
|
|
122
|
+
"router_v1.1.collector_block_numbers": {
|
|
116
123
|
"name": "collector_block_numbers",
|
|
117
|
-
"schema": "
|
|
124
|
+
"schema": "router_v1.1",
|
|
118
125
|
"columns": {
|
|
119
126
|
"chain_id": {
|
|
120
127
|
"name": "chain_id",
|
|
@@ -172,9 +179,9 @@
|
|
|
172
179
|
"checkConstraints": {},
|
|
173
180
|
"isRLSEnabled": false
|
|
174
181
|
},
|
|
175
|
-
"
|
|
182
|
+
"router_v1.1.consumed_per_user_and_nonce": {
|
|
176
183
|
"name": "consumed_per_user_and_nonce",
|
|
177
|
-
"schema": "
|
|
184
|
+
"schema": "router_v1.1",
|
|
178
185
|
"columns": {
|
|
179
186
|
"id": {
|
|
180
187
|
"name": "id",
|
|
@@ -256,9 +263,9 @@
|
|
|
256
263
|
"checkConstraints": {},
|
|
257
264
|
"isRLSEnabled": false
|
|
258
265
|
},
|
|
259
|
-
"
|
|
266
|
+
"router_v1.1.offer_collaterals": {
|
|
260
267
|
"name": "offer_collaterals",
|
|
261
|
-
"schema": "
|
|
268
|
+
"schema": "router_v1.1",
|
|
262
269
|
"columns": {
|
|
263
270
|
"id": {
|
|
264
271
|
"name": "id",
|
|
@@ -370,7 +377,7 @@
|
|
|
370
377
|
"name": "offer_collaterals_offer_hash_offers_hash_fk",
|
|
371
378
|
"tableFrom": "offer_collaterals",
|
|
372
379
|
"tableTo": "offers",
|
|
373
|
-
"schemaTo": "
|
|
380
|
+
"schemaTo": "router_v1.1",
|
|
374
381
|
"columnsFrom": ["offer_hash"],
|
|
375
382
|
"columnsTo": ["hash"],
|
|
376
383
|
"onDelete": "cascade",
|
|
@@ -383,9 +390,9 @@
|
|
|
383
390
|
"checkConstraints": {},
|
|
384
391
|
"isRLSEnabled": false
|
|
385
392
|
},
|
|
386
|
-
"
|
|
393
|
+
"router_v1.1.offer_status": {
|
|
387
394
|
"name": "offer_status",
|
|
388
|
-
"schema": "
|
|
395
|
+
"schema": "router_v1.1",
|
|
389
396
|
"columns": {
|
|
390
397
|
"id": {
|
|
391
398
|
"name": "id",
|
|
@@ -462,7 +469,7 @@
|
|
|
462
469
|
"name": "offer_status_offer_hash_offers_hash_fk",
|
|
463
470
|
"tableFrom": "offer_status",
|
|
464
471
|
"tableTo": "offers",
|
|
465
|
-
"schemaTo": "
|
|
472
|
+
"schemaTo": "router_v1.1",
|
|
466
473
|
"columnsFrom": ["offer_hash"],
|
|
467
474
|
"columnsTo": ["hash"],
|
|
468
475
|
"onDelete": "cascade",
|
|
@@ -475,9 +482,9 @@
|
|
|
475
482
|
"checkConstraints": {},
|
|
476
483
|
"isRLSEnabled": false
|
|
477
484
|
},
|
|
478
|
-
"
|
|
485
|
+
"router_v1.1.offers": {
|
|
479
486
|
"name": "offers",
|
|
480
|
-
"schema": "
|
|
487
|
+
"schema": "router_v1.1",
|
|
481
488
|
"columns": {
|
|
482
489
|
"hash": {
|
|
483
490
|
"name": "hash",
|
|
@@ -704,6 +711,21 @@
|
|
|
704
711
|
"method": "btree",
|
|
705
712
|
"with": {}
|
|
706
713
|
},
|
|
714
|
+
"offers_created_at_idx": {
|
|
715
|
+
"name": "offers_created_at_idx",
|
|
716
|
+
"columns": [
|
|
717
|
+
{
|
|
718
|
+
"expression": "created_at",
|
|
719
|
+
"isExpression": false,
|
|
720
|
+
"asc": true,
|
|
721
|
+
"nulls": "last"
|
|
722
|
+
}
|
|
723
|
+
],
|
|
724
|
+
"isUnique": false,
|
|
725
|
+
"concurrently": false,
|
|
726
|
+
"method": "btree",
|
|
727
|
+
"with": {}
|
|
728
|
+
},
|
|
707
729
|
"offers_rate_hash_idx": {
|
|
708
730
|
"name": "offers_rate_hash_idx",
|
|
709
731
|
"columns": [
|
|
@@ -787,6 +809,39 @@
|
|
|
787
809
|
"concurrently": false,
|
|
788
810
|
"method": "btree",
|
|
789
811
|
"with": {}
|
|
812
|
+
},
|
|
813
|
+
"offers_rate_created_at_assets_hash_idx": {
|
|
814
|
+
"name": "offers_rate_created_at_assets_hash_idx",
|
|
815
|
+
"columns": [
|
|
816
|
+
{
|
|
817
|
+
"expression": "rate",
|
|
818
|
+
"isExpression": false,
|
|
819
|
+
"asc": true,
|
|
820
|
+
"nulls": "last"
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
"expression": "\"created_at\" asc",
|
|
824
|
+
"asc": true,
|
|
825
|
+
"isExpression": true,
|
|
826
|
+
"nulls": "last"
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"expression": "\"assets\" desc",
|
|
830
|
+
"asc": true,
|
|
831
|
+
"isExpression": true,
|
|
832
|
+
"nulls": "last"
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"expression": "\"hash\" asc",
|
|
836
|
+
"asc": true,
|
|
837
|
+
"isExpression": true,
|
|
838
|
+
"nulls": "last"
|
|
839
|
+
}
|
|
840
|
+
],
|
|
841
|
+
"isUnique": false,
|
|
842
|
+
"concurrently": false,
|
|
843
|
+
"method": "btree",
|
|
844
|
+
"with": {}
|
|
790
845
|
}
|
|
791
846
|
},
|
|
792
847
|
"foreignKeys": {},
|
|
@@ -796,9 +851,9 @@
|
|
|
796
851
|
"checkConstraints": {},
|
|
797
852
|
"isRLSEnabled": false
|
|
798
853
|
},
|
|
799
|
-
"
|
|
854
|
+
"router_v1.1.user_positions": {
|
|
800
855
|
"name": "user_positions",
|
|
801
|
-
"schema": "
|
|
856
|
+
"schema": "router_v1.1",
|
|
802
857
|
"columns": {
|
|
803
858
|
"id": {
|
|
804
859
|
"name": "id",
|