Skip to content

Commit

Permalink
refactor pinax.cosmos proto
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Nov 21, 2024
1 parent ff1f488 commit 43a16e5
Show file tree
Hide file tree
Showing 27 changed files with 86 additions and 1,751 deletions.
1 change: 0 additions & 1 deletion blocks/cosmos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ crate-type = ["cdylib"]
[dependencies]
common = { path = "../../common" }
substreams-cosmos = { workspace = true }
substreams-database-change = { workspace = true }
substreams = { workspace = true }
sha2 = "0.10.8"
serde_json = { workspace = true }
Expand Down
16 changes: 1 addition & 15 deletions blocks/cosmos/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,17 @@ all:
.PHONY: build
build:
cargo build --target wasm32-unknown-unknown --release

.PHONY: pack
pack:
substreams pack

.PHONY: graph
graph:
substreams graph

.PHONY: info
info:
substreams info

.PHONY: run
run:
substreams run substreams.yaml -e mainnet.injective.streamingfast.io:443 map_events -s 80000000 -o json

.PHONY: gui
gui:
substreams gui substreams.yaml -e mainnet.injective.streamingfast.io:443 map_events -s 80000000


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

.PHONY: parquet
parquet:
Expand Down
28 changes: 17 additions & 11 deletions blocks/cosmos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,23 @@
- [x] **Validator Updates**
- [x] **Consensus Param Updates**

## Graph

```mermaid
graph TD;
raw[sf.cosmos.type.v2.Block];
raw --> blocks;
raw --> transactions;
raw --> transaction_messages;
raw --> events;
raw --> misbehaviors;
raw --> validator_updates;
raw --> consensus_param_updates;
events --> block_events;
events --> transaction_events;
map_events[map: map_events];
sf.substreams.v1.Clock[source: sf.substreams.v1.Clock] --> map_events;
sf.cosmos.type.v2.Block[source: sf.cosmos.type.v2.Block] --> map_events;
```

## Modules

```bash
Name: map_events
Initial block: 0
Kind: map
Input: source: sf.substreams.v1.Clock
Input: source: sf.cosmos.type.v2.Block
Output Type: proto:cosmos.Events
Hash: def06497ee4c721b6799dc719ea4240c887cb48c
```
122 changes: 0 additions & 122 deletions blocks/cosmos/proto/cosmos.rawblocks.proto

This file was deleted.

Loading

0 comments on commit 43a16e5

Please sign in to comment.