Output
sf.substreams.injective.oracle.v1.SetOraclePrice
Inputs

Package ref
pyth-oracle-price@v0.4.0Run package
CLI
Run injective:filtered_event_groups from the command line.
substreams run pyth-oracle-price@v0.4.0 injective:filtered_event_groups -e injective-mainnet --start-block -1substreams auth or directly on thegraph.market (see docs).README
This module is a simple injective substreams using injective-common modules to filter specific pyth oracle events.
substreams build
substreams auth
substreams gui
injective:filtered_eventsFilters EventSetPythPrices events.
Default param: injective:filtered_events: "type:injective.oracle.v1beta1.EventSetPythPrices"
map_set_oracle_pricesListens specific events from the injective:filtered_events module, specifically targeting EventSetPythPrices events related to a specified pair address (default is INJ/USD pair).
Default param: map_set_oracle_prices: "pairID:0x7a5bc1d2b56ad029048cd63964b3ad2776eadf812edc1a43a31406cb54bff592
store_set_oracle_pricesStores the EventSetPythPrices events from the map_set_oracle_prices.
Modules
Output
sf.substreams.injective.oracle.v1.SetOraclePrice
Inputs
Store value
proto:sf.substreams.injective.oracle.v1.SetOraclePrice
Update policy
set
Inputs
`filtered_event_groups` reads from `all_events` and applies a filter on the event types and attribute keys, outputing all the events from transactions that have at least one event matching the filter. Example usage: `type:injective.peggy.v1.EventDepositClaim || (type:wasm && attr:_contract_address)`
Output
sf.substreams.cosmos.v1.EventList
Inputs
Output
sf.substreams.cosmos.v1.EventList
Inputs
Output
sf.substreams.cosmos.v1.TransactionList
Inputs
`filtered_events_groups_by_attribute_value` reads from `all_events` and applies a filter on the event types, attribute keys and values, outputing all the events from transactions that have at least one event matching the filter. Example usage: "type:wasm && attr:_contract_address:inj1v77y5ttah96dc9qkcpc88ad7rce8n88e99t3m5" To use this module with an index, import it and override it with the `use:` parameter, setting blockFilter.Query.String to a query that matches the event type and attribute keys only (ex: `type:wasm && attr:_contract_address`)
Output
sf.substreams.cosmos.v1.EventList
Inputs
Output
sf.substreams.cosmos.v1.EventList
Inputs
`filtered_events_by_attribute_value` reads from `all_events` and applies a filter on the event types, attribute keys and values, only outputing the events that match the filter. Example usage: "type:wasm && attr:_contract_address:inj1v77y5ttah96dc9qkcpc88ad7rce8n88e99t3m5" To use this module with an index, import it and override it with the `use:` parameter, setting blockFilter.Query.String to a query that matches the event type and attribute keys only (ex: `type:wasm && attr:_contract_address`)
Output
sf.substreams.cosmos.v1.EventList
Inputs
`filtered_trx_by_events` reads from `all_transactions` and applies a filter on the event types and attribute keys, outputing the complete transactions that have at least one event matching the filter. Example usage: `type:injective.peggy.v1.EventDepositClaim || (type:wasm && attr:_contract_address)`
Output
sf.substreams.cosmos.v1.TransactionList
Inputs
`filtered_trx_by_events_attribute_value` reads from `all_events` and applies a filter on the event types, attribute keys and values, outputing the complete transactions that have at least one event matching the filter. Example usage: "type:wasm && attr:_contract_address:inj1v77y5ttah96dc9qkcpc88ad7rce8n88e99t3m5" To use this module with an index, import it and override it with the `use:` parameter, setting blockFilter.Query.String to a query that matches the event type and attribute keys only (ex: `type:wasm && attr:_contract_address`)
Output
sf.substreams.cosmos.v1.TransactionList
Inputs
`index_events` sets the keys corresponding to all event 'types' and 'attribute keys' in the block ex: `type:coin_received`, `type:injective.peggy.v1.EventDepositClaim`, `attr:action`, `attr:sender` ... The attribute values are never indexed because they have a high cardinality and would be too expensive to index.
Output
sf.substreams.index.v1.Keys
Inputs