Skip to content

Commit 8a83473

Browse files
committed
Fixes
1 parent 4fc1513 commit 8a83473

File tree

4 files changed

+40
-39
lines changed

4 files changed

+40
-39
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: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,47 +14,41 @@ jobs:
1414
lint:
1515
name: Lint
1616
runs-on: ubuntu-latest
17-
defaults:
18-
run:
19-
working-directory: ./ui
2017
steps:
2118
- uses: actions/checkout@v4
2219
- uses: actions/setup-node@v4
2320
with:
2421
node-version: '20'
2522
cache: 'npm'
2623
cache-dependency-path: ui/package-lock.json
27-
- run: npm ci
28-
- run: npm run lint
24+
- run: cp .env.example ui/.env
25+
- run: cd ui && npm ci
26+
- run: cd ui && npm run lint
2927

3028
type-check:
3129
name: Type Check
3230
runs-on: ubuntu-latest
33-
defaults:
34-
run:
35-
working-directory: ./ui
3631
steps:
3732
- uses: actions/checkout@v4
3833
- uses: actions/setup-node@v4
3934
with:
4035
node-version: '20'
4136
cache: 'npm'
4237
cache-dependency-path: ui/package-lock.json
43-
- run: npm ci
44-
- run: npx tsc --noEmit
38+
- run: cp .env.example ui/.env
39+
- run: cd ui && npm ci
40+
- run: cd ui && npx tsc --noEmit
4541

4642
build:
4743
name: Build
4844
runs-on: ubuntu-latest
49-
defaults:
50-
run:
51-
working-directory: ./ui
5245
steps:
5346
- uses: actions/checkout@v4
5447
- uses: actions/setup-node@v4
5548
with:
5649
node-version: '20'
5750
cache: 'npm'
5851
cache-dependency-path: ui/package-lock.json
59-
- run: npm ci
60-
- run: npm run build
52+
- run: cp .env.example ui/.env
53+
- run: cd ui && npm ci
54+
- run: cd ui && 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)