Skip to content

Commit 79b0dab

Browse files
author
Ken Erwin
committed
✨ Now initialize tiles properly, and creating latest.png
1 parent b05e183 commit 79b0dab

File tree

8 files changed

+684
-27
lines changed

8 files changed

+684
-27
lines changed

new-backend/go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ go 1.23.0
44

55
require (
66
github.com/cenkalti/backoff/v4 v4.3.0
7+
github.com/ethereum/go-ethereum v1.14.8
78
github.com/golang-module/dongle v0.2.8
89
github.com/joho/godotenv v1.5.1
910
github.com/lib/pq v1.10.9
@@ -17,7 +18,6 @@ require (
1718
require (
1819
github.com/Code-Hex/dd v1.1.0 // indirect
1920
github.com/Microsoft/go-winio v0.6.2 // indirect
20-
github.com/StackExchange/wmi v1.2.1 // indirect
2121
github.com/bits-and-blooms/bitset v1.14.3 // indirect
2222
github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect
2323
github.com/consensys/bavard v0.1.15 // indirect
@@ -28,8 +28,6 @@ require (
2828
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
2929
github.com/emmansun/gmsm v0.28.0 // indirect
3030
github.com/ethereum/c-kzg-4844 v1.0.0 // indirect
31-
github.com/ethereum/c-kzg-4844/bindings/go v0.0.0-20230126171313-363c7d7593b4 // indirect
32-
github.com/ethereum/go-ethereum v1.14.8 // indirect
3331
github.com/fsnotify/fsnotify v1.7.0 // indirect
3432
github.com/go-ole/go-ole v1.3.0 // indirect
3533
github.com/google/uuid v1.6.0 // indirect

new-backend/go.sum

Lines changed: 119 additions & 8 deletions
Large diffs are not rendered by default.

new-backend/internal/db/migrations/001_initial_schema.sql

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,15 @@ CREATE TABLE current_state (
1212
value BIGINT NOT NULL DEFAULT 0
1313
);
1414

15-
1615
CREATE TABLE tiles (
17-
id SERIAL PRIMARY KEY,
16+
id INTEGER PRIMARY KEY,
1817
image VARCHAR(800) NOT NULL,
19-
price DECIMAL(10, 2) NOT NULL,
20-
url TEXT NOT NULL,
21-
owner VARCHAR(42) NOT NULL,
22-
wrapped BOOLEAN NOT NULL,
18+
price VARCHAR(255) NOT NULL DEFAULT '2.00',
19+
url VARCHAR(255) NOT NULL DEFAULT '',
20+
owner VARCHAR(255) NOT NULL DEFAULT '0x4f4b7e7edf5ec41235624ce207a6ef352aca7050',
21+
wrapped BOOLEAN NOT NULL DEFAULT FALSE,
2322
ens VARCHAR(255) NOT NULL DEFAULT '',
24-
opensea_price DECIMAL(10, 2) NOT NULL DEFAULT 0.0
23+
opensea_price VARCHAR(255) NOT NULL DEFAULT '0.0'
2524
);
2625

2726
CREATE TABLE data_histories (

new-backend/internal/db/querier.go

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)