Skip to content

Commit

Permalink
remove map_block
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroShkvorets committed Feb 4, 2023
1 parent 583f8c7 commit 6c72f1d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 27 deletions.
20 changes: 6 additions & 14 deletions common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

```mermaid
graph TD;
map_block[map: map_block]
sf.antelope.type.v1.Block[source: sf.antelope.type.v1.Block] --> map_block
map_block_header[map: map_block_header]
sf.antelope.type.v1.Block[source: sf.antelope.type.v1.Block] --> map_block_header
map_blockroot_merkle[map: map_blockroot_merkle]
Expand All @@ -30,46 +28,40 @@ Version: v0.3.0
Doc: Antelope based action traces & database operations.
Modules:
----
Name: map_block
Initial block: 2
Kind: map
Output Type: proto:sf.antelope.type.v1.Block
Hash: 2a7d26088ad491f76e3339665178cf78396c022d

Name: map_block_header
Initial block: 2
Kind: map
Output Type: proto:sf.antelope.type.v1.BlockHeader
Hash: 77f43dd05cc7aec645929dd52848967e7a424dd4
Hash: 4938a193662ecc692410a826b4b4480a4a74f6e7

Name: map_blockroot_merkle
Initial block: 2
Kind: map
Output Type: proto:sf.antelope.type.v1.BlockRootMerkle
Hash: 91f098a3e2a00c9339d9fa055b2cf2032af9f2cb
Hash: 7b203830ca24aa79a7c396fd69d58080243401b2

Name: map_transaction_traces
Initial block: 2
Kind: map
Output Type: proto:sf.antelope.type.v1.TransactionTraces
Hash: edb5f03c5353106adc0e71ededd37222e43c6e7e
Hash: 7677f6fba4957f44adb34a6245df96862dac5cc1

Name: map_action_traces
Initial block: 2
Kind: map
Output Type: proto:sf.antelope.type.v1.ActionTraces
Hash: 5dc7caf51ccb43b0339fc6fb33dfe7b85d0af4b0
Hash: beeedfc6447b202bcdc0854631f7ebdc16bc9a53

Name: map_db_ops
Initial block: 2
Kind: map
Output Type: proto:sf.antelope.type.v1.DBOps
Hash: fbbb656225dff3d41a1e6eec8609ffbf61f7f8b5
Hash: a46d52708fe11dc3c9cb8cd53349fdf1ea55da9d

Name: store_timestamp
Initial block: 2
Kind: store
Value Type: int64
Update Policy: UPDATE_POLICY_SET
Hash: 5fe01de39c6da27ec8997d37d462b339a8dd4daa
Hash: 70fb3568cdfb0032b30305b21c308c926552da6c
```
5 changes: 0 additions & 5 deletions common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ use substreams::{prelude::*, log};
use substreams::errors::Error;
use substreams_antelope::{Block, BlockHeader, ActionTraces, BlockRootMerkle, TransactionTraces, DbOps };

#[substreams::handlers::map]
fn map_block(block: Block) -> Result<Block, Error> {
Ok(block)
}

#[substreams::handlers::map]
fn map_block_header(block: Block) -> Result<BlockHeader, Error> {
Ok(block.header.unwrap())
Expand Down
8 changes: 0 additions & 8 deletions common/substreams.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ binaries:

modules:

- name: map_block
kind: map
initialBlock: 2
inputs:
- source: sf.antelope.type.v1.Block
output:
type: proto:sf.antelope.type.v1.Block

- name: map_block_header
kind: map
initialBlock: 2
Expand Down

0 comments on commit 6c72f1d

Please sign in to comment.