All packages
vara_common

vara_common

StreamingFast
v0.1.6/27 downloads

Package ref

vara-common@v0.1.6

Run package

CLI

Run filtered_extrinsics from the command line.

substreams run vara-common@v0.1.6 filtered_extrinsics -e vara-mainnet --start-block -1
Authenticate by running substreams auth or directly on thegraph.market (see docs).

README

Vara Mainnet Foundational Modules

In this repository, you will find all the foundational modules containing various mappers and indexed Substreams. These foundational modules allow users to easily consume any Extrinsic or Even from the Vara Mainnet blockchain. The Substreams were written in Golang using tinygo, for reference and wizer, for reference

Usage

substreams gui

The raw sf.gear.type.v1.Block will contain the Extrinsics and the Events of each block in raw format. Run map_decoded_block to get the augmented block with all Extrinsics and Events decoded.

Modules

all_extrinsics

Output the extrinsics decoded with this format sf.substreams.gear.type.v1.Extrinsics.

substreams gui

index_extrinsics

The keys for the extrinsics will follow this format: extrinsic:${CallName} and extrinsic:${CallName}:event:${eventName}.

You can visit this page to see all the Runtime Modules. The extrinsics are named Call Functions on the Runtime Modules. For example, you can see the extrinsics for set Timestamp module here.

So for example, for the Timestamp - set, you will have keys of this format: extrinsic:Timestamp.set.

filtered_extrinsics

This module is probably the most interesting one to use. The filtered_extrinsics module will output only the extrinsics of the query passed in --params.

substreams gui

Contributing

For more information on how to contribute refer to CONTRIBUTING.md

Modules

Execution graph

4 modules
mapMain

filtered_extrinsics

`filtered_extrinsics` reads from `all_extrinsics` and applies a filter on keys, only outputting extrinsics that match the filter. Example usage: `(extrinsic:Timestamp.set || extrinsic:Gear.run)`

Output

sf.substreams.vara.type.v1.Extrinsics

Inputs

map

all_extrinsics

`all_extrinsics` reads from the `sf.substreams.vara.type.v1.Block` source and outputs a list of all extrinsics in the block.

Output

sf.substreams.gear.type.v1.Extrinsics

blockIndex

index_extrinsics

`index_extrinsics` sets the keys corresponding to all events and extrinsics in the block

Output

sf.substreams.index.v1.Keys