Package Logo
vara_common
vara-common@v0.1.6
Total Downloads
23
Published
2 months ago
Publisher
User Avatar streamingfast

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

Documentation

Modules

Maps icon
Maps

map
map_decoded_block

beaef13e10b94a612ef3ef465af78d0f332f25bc
map map_decoded_block (
blocksf.gear.type.v1.Block
)  -> sf.substreams.vara.type.v1.Block
substreams gui vara-common@v0.1.6 map_decoded_block

map
all_extrinsics

caafeb212fbe9e3e1432576d5b2175aec60a3fb7

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

substreams gui vara-common@v0.1.6 all_extrinsics

map
filtered_extrinsics

bf285315a775169179da5edc8f5c219382a835c1
Default param : extrinsic:Timestamp.set

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)

substreams gui vara-common@v0.1.6 filtered_extrinsics
Block Indexes icon
Block Indexes

blockIndex
index_extrinsics

2375d0850d3875de49061c4105b2f84b0c1d2175

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

substreams gui vara-common@v0.1.6 index_extrinsics
Protobuf

Protobuf Docs Explorer

sf.gear.type.v1