eth: add docs, image and network

This commit is contained in:
colindickson
2023-11-02 10:56:16 -04:00
parent b25cb3afe5
commit 2dc78ab1bf
3 changed files with 21 additions and 6 deletions

View File

@@ -1,11 +1,11 @@
.PHONY: build
build:
cargo build --target wasm32-unknown-unknown --release
.PHONY: protogen .PHONY: protogen
protogen: protogen:
substreams protogen ./substreams.yaml --exclude-paths="sf/substreams,google" substreams protogen ./substreams.yaml --exclude-paths="sf/substreams,google"
.PHONY: pack .PHONY: build
pack: build build:
cargo build --target wasm32-unknown-unknown --release
.PHONY: package
package: build
substreams pack substreams.yaml substreams pack substreams.yaml

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@@ -1,11 +1,17 @@
specVersion: v0.1.0 specVersion: v0.1.0
package: package:
name: "ethereum_explorer" name: "ethereum_explorer"
image: ./ethereum.png
url: "http://github.com/streamingfast/substreams-explorers/"
version: v0.1.0 version: v0.1.0
doc: |
This packages holds simple modules to allow you to explore the Ethereum data model.
imports: imports:
ethereum: https://github.com/streamingfast/firehose-ethereum/releases/download/v1.4.8/ethereum-v1.0.0.spkg ethereum: https://github.com/streamingfast/firehose-ethereum/releases/download/v1.4.8/ethereum-v1.0.0.spkg
network: mainnet
protobuf: protobuf:
files: files:
- transaction.proto - transaction.proto
@@ -26,6 +32,8 @@ modules:
- source: sf.ethereum.type.v2.Block - source: sf.ethereum.type.v2.Block
output: output:
type: proto:eth.block_meta.v1.BlockMeta type: proto:eth.block_meta.v1.BlockMeta
doc: |
`map_block_meta` allows you to view a basic information about a block
- name: map_block_full - name: map_block_full
kind: map kind: map
@@ -33,6 +41,8 @@ modules:
- source: sf.ethereum.type.v2.Block - source: sf.ethereum.type.v2.Block
output: output:
type: proto:sf.ethereum.type.v2.Block type: proto:sf.ethereum.type.v2.Block
doc: |
`map_block_full` allows you to view a complete block, as received by a Substreams module
- name: map_filter_transactions - name: map_filter_transactions
kind: map kind: map
@@ -41,6 +51,8 @@ modules:
- source: sf.ethereum.type.v2.Block - source: sf.ethereum.type.v2.Block
output: output:
type: proto:eth.transaction.v1.Transactions type: proto:eth.transaction.v1.Transactions
doc: |
`map_filter_transaction` allows you to find a transaction by specifying either `to` or `from` value in the parameters. You might need to scope your search to the blocks you know you are going to find that transaction. Check with your preferred block explorer first.
- name: map_contract_events - name: map_contract_events
kind: map kind: map
@@ -49,6 +61,9 @@ modules:
- source: sf.ethereum.type.v2.Block - source: sf.ethereum.type.v2.Block
output: output:
type: proto:eth.event.v1.Events type: proto:eth.event.v1.Events
doc: |
`map_contract_events` allows you to get instructions executed by a certain contract, and returns the raw Event data model.
params: params:
# Filtering transactions with to = 0xdAC17F958D2ee523a2206206994597C13D831ec7 (USDT contract address) # Filtering transactions with to = 0xdAC17F958D2ee523a2206206994597C13D831ec7 (USDT contract address)