Skip to content

Commit

Permalink
✨ Now initialize tiles properly, and creating latest.png
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Erwin committed Sep 17, 2024
1 parent b05e183 commit 79b0dab
Show file tree
Hide file tree
Showing 8 changed files with 684 additions and 27 deletions.
4 changes: 1 addition & 3 deletions new-backend/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ go 1.23.0

require (
github.com/cenkalti/backoff/v4 v4.3.0
github.com/ethereum/go-ethereum v1.14.8
github.com/golang-module/dongle v0.2.8
github.com/joho/godotenv v1.5.1
github.com/lib/pq v1.10.9
Expand All @@ -17,7 +18,6 @@ require (
require (
github.com/Code-Hex/dd v1.1.0 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/StackExchange/wmi v1.2.1 // indirect
github.com/bits-and-blooms/bitset v1.14.3 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect
github.com/consensys/bavard v0.1.15 // indirect
Expand All @@ -28,8 +28,6 @@ require (
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
github.com/emmansun/gmsm v0.28.0 // indirect
github.com/ethereum/c-kzg-4844 v1.0.0 // indirect
github.com/ethereum/c-kzg-4844/bindings/go v0.0.0-20230126171313-363c7d7593b4 // indirect
github.com/ethereum/go-ethereum v1.14.8 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/google/uuid v1.6.0 // indirect
Expand Down
127 changes: 119 additions & 8 deletions new-backend/go.sum

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions new-backend/internal/db/migrations/001_initial_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@ CREATE TABLE current_state (
value BIGINT NOT NULL DEFAULT 0
);


CREATE TABLE tiles (
id SERIAL PRIMARY KEY,
id INTEGER PRIMARY KEY,
image VARCHAR(800) NOT NULL,
price DECIMAL(10, 2) NOT NULL,
url TEXT NOT NULL,
owner VARCHAR(42) NOT NULL,
wrapped BOOLEAN NOT NULL,
price VARCHAR(255) NOT NULL DEFAULT '2.00',
url VARCHAR(255) NOT NULL DEFAULT '',
owner VARCHAR(255) NOT NULL DEFAULT '0x4f4b7e7edf5ec41235624ce207a6ef352aca7050',
wrapped BOOLEAN NOT NULL DEFAULT FALSE,
ens VARCHAR(255) NOT NULL DEFAULT '',
opensea_price DECIMAL(10, 2) NOT NULL DEFAULT 0.0
opensea_price VARCHAR(255) NOT NULL DEFAULT '0.0'
);

CREATE TABLE data_histories (
Expand Down
14 changes: 14 additions & 0 deletions new-backend/internal/db/querier.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 79b0dab

Please sign in to comment.