Substrate Processor
is defined in an npm
package that needs to be installed before being able to use it:SubstrateProcessor
class can be imported from the packageprocessor.ts
file in the subsquid-template projectSubstrateProcessor
class exposes a method to customize its data source, by specifying a blockchain RPC WebSocked URL and an Archive endpoint URL:DataSource
:SubstrateProcessor
exposes a method for this:SubstrateProcessor
to handle a range of block. The starting block is mandatory, when invoking this method, but the end block can be omitted, which means the Squid will continue to process new blocks as they are written to the blockchain.Range
.OldTypesBundle
interfaceSubstrateProcessor
class:getOldTypesBundle
and readOldTypesBundle
functions are defined as such: