Skip to content

Commit

Permalink
sx.stats substream
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroShkvorets committed Jan 5, 2024
1 parent 8261600 commit fd1f18e
Show file tree
Hide file tree
Showing 14 changed files with 908 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ members = [
"deferred",
"antelope.trxstats",
"bitcoin.ordinals",
"sx.stats",
]

[workspace.dependencies]
Expand Down
20 changes: 20 additions & 0 deletions sx.stats/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "sx_stats"
version = "0.1.0"
edition = "2021"

[lib]
crate-type = ["cdylib"]

[dependencies]
prost = { workspace = true }
prost-types = { workspace = true }
substreams = { workspace = true }
#substreams-antelope = { path = "/Users/shkvo/github/Pinax/substreams-antelope/substreams-antelope" }
substreams-antelope = "0.3"
serde_json = "1.0.91"
serde = { version = "1.0", features = ["derive"] }
substreams-database-change = { workspace = true }

[build-dependencies]
substreams-antelope = "0.3"
39 changes: 39 additions & 0 deletions sx.stats/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.PHONY: all
all:
make build
make pack
make graph
make info

.PHONY: build
build:
cargo build --target wasm32-unknown-unknown --release

.PHONY: protogen
protogen:
substreams protogen --exclude-paths sf/substreams,google

.PHONY: pack
pack:
substreams pack

.PHONY: graph
graph:
substreams graph

.PHONY: info
info:
substreams info

.PHONY: run
run:
substreams run -e eos.substreams.pinax.network:443 map_logs -s 350410392 -t +300

.PHONY: gui
gui:
substreams gui -e eos.substreams.pinax.network:443 map_logs -s 350410392 -t +300

.PHONY: sql
sql:
substreams gui -e eos.substreams.pinax.network:443 db_out -s 350410392 -t +300

Loading

0 comments on commit fd1f18e

Please sign in to comment.