Skip to content

Commit f8ea639

Browse files
committed
Fixes
1 parent 4fc1513 commit f8ea639

File tree

4 files changed

+34
-24
lines changed

4 files changed

+34
-24
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Rust CI
1+
name: Rust
22
permissions:
33
contents: read
44

.github/workflows/ui.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
node-version: '20'
2525
cache: 'npm'
2626
cache-dependency-path: ui/package-lock.json
27+
- run: cp ../.env.example .env
2728
- run: npm ci
2829
- run: npm run lint
2930

@@ -40,6 +41,7 @@ jobs:
4041
node-version: '20'
4142
cache: 'npm'
4243
cache-dependency-path: ui/package-lock.json
44+
- run: cp ../.env.example .env
4345
- run: npm ci
4446
- run: npx tsc --noEmit
4547

@@ -56,5 +58,6 @@ jobs:
5658
node-version: '20'
5759
cache: 'npm'
5860
cache-dependency-path: ui/package-lock.json
61+
- run: cp ../.env.example .env
5962
- run: npm ci
6063
- run: npm run build

ui/src/db/relations.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
import { relations } from "drizzle-orm/relations";
2-
import { } from "./schema";
3-

ui/src/db/schema.ts

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,33 @@
1-
import { pgTable, uuid, char, bigint, text, timestamp } from "drizzle-orm/pg-core"
2-
import { sql } from "drizzle-orm"
3-
4-
1+
import {
2+
bigint,
3+
char,
4+
pgTable,
5+
text,
6+
timestamp,
7+
uuid,
8+
} from "drizzle-orm/pg-core";
59

610
export const bundles = pgTable("bundles", {
7-
id: uuid().primaryKey().notNull(),
8-
senders: char({ length: 42 }).array(),
9-
// You can use { mode: "bigint" } if numbers are exceeding js number limitations
10-
minimumBaseFee: bigint("minimum_base_fee", { mode: "number" }),
11-
txnHashes: char("txn_hashes", { length: 66 }).array(),
12-
txs: text().array().notNull(),
13-
revertingTxHashes: char("reverting_tx_hashes", { length: 66 }).array(),
14-
droppingTxHashes: char("dropping_tx_hashes", { length: 66 }).array(),
15-
// You can use { mode: "bigint" } if numbers are exceeding js number limitations
16-
blockNumber: bigint("block_number", { mode: "number" }),
17-
// You can use { mode: "bigint" } if numbers are exceeding js number limitations
18-
minTimestamp: bigint("min_timestamp", { mode: "number" }),
19-
// You can use { mode: "bigint" } if numbers are exceeding js number limitations
20-
maxTimestamp: bigint("max_timestamp", { mode: "number" }),
21-
createdAt: timestamp("created_at", { withTimezone: true, mode: 'string' }).notNull(),
22-
updatedAt: timestamp("updated_at", { withTimezone: true, mode: 'string' }).notNull(),
11+
id: uuid().primaryKey().notNull(),
12+
senders: char({ length: 42 }).array(),
13+
// You can use { mode: "bigint" } if numbers are exceeding js number limitations
14+
minimumBaseFee: bigint("minimum_base_fee", { mode: "number" }),
15+
txnHashes: char("txn_hashes", { length: 66 }).array(),
16+
txs: text().array().notNull(),
17+
revertingTxHashes: char("reverting_tx_hashes", { length: 66 }).array(),
18+
droppingTxHashes: char("dropping_tx_hashes", { length: 66 }).array(),
19+
// You can use { mode: "bigint" } if numbers are exceeding js number limitations
20+
blockNumber: bigint("block_number", { mode: "number" }),
21+
// You can use { mode: "bigint" } if numbers are exceeding js number limitations
22+
minTimestamp: bigint("min_timestamp", { mode: "number" }),
23+
// You can use { mode: "bigint" } if numbers are exceeding js number limitations
24+
maxTimestamp: bigint("max_timestamp", { mode: "number" }),
25+
createdAt: timestamp("created_at", {
26+
withTimezone: true,
27+
mode: "string",
28+
}).notNull(),
29+
updatedAt: timestamp("updated_at", {
30+
withTimezone: true,
31+
mode: "string",
32+
}).notNull(),
2333
});

0 commit comments

Comments
 (0)