Skip to content

Commit

Permalink
Merge pull request #7 from avichalp/avichalp/events-refactor
Browse files Browse the repository at this point in the history
Refactor events and DB
  • Loading branch information
haardikk21 authored Jan 10, 2024
2 parents 68dfb10 + 8db24dd commit 9045a67
Show file tree
Hide file tree
Showing 34 changed files with 836 additions and 421 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FARCASTER_PRIV_KEY=0xYourPrivateKey
OPTIMISM_L2_RPC_URL=Your Op-mainnet RPC URL

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

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

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

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

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

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

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

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

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

97 changes: 96 additions & 1 deletion Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ futures-util = { version = "0.3.17" }
alloy-dyn-abi = { version = "0.5.3", features = ["eip712"] }
alloy-primitives = { version = "0.5.3" }
futures = { version = "0.3.17" }
figment = { version = "0.10.12", features = ["toml", "env"] }
dotenv = { version = "0.15.0" }


[profile.release]
codegen-units = 1
Expand Down
9 changes: 9 additions & 0 deletions Config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
db_path = "sqlite:./farcaster.db"
db_migrations_path = "./lib/storage/migrations"
farcaster_priv_key = ""
optimism_l2_rpc_url = ""
chain_id = 10
id_registry_address = "0x00000000Fc6c5F01Fc30151999387Bb99A9f489b"
key_registry_address = "0x00000000Fc1237824fb747aBDE0FF18990E59b7e"
storage_registry_address = "0x00000000fcce7f938e7ae6d3c335bd6a1a7c593d"
abi_dir = "./lib/eth/abis"
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ db-create:
db-migrate:
DATABASE_URL=$(DATABASE_URL) sqlx migrate run --source $(MIGRATIONS_DIR)

.PHONY: db-create db-migrate
db-query-prepare:
DATABASE_URL=$(DATABASE_URL) cargo sqlx prepare --workspace

.PHONY: db-create db-migrate db-query-prepare
2 changes: 1 addition & 1 deletion lib/eth/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
authors = { workspace = true }
description = "ETH interaction for Teleport"
description = "ETH event indexing for Teleport"
edition = { workspace = true }
name = "teleport_eth"
homepage = { workspace = true }
Expand Down
Loading

0 comments on commit 9045a67

Please sign in to comment.