Substrate Processoris defined in an
npmpackage that needs to be installed before being able to use it:
SubstrateProcessorclass can be imported from the package
SubstrateProcessorclass exposes a method to customize its data source, by specifying a blockchain RPC WebSocked URL and an Archive endpoint URL:
SubstrateProcessorexposes a method for this:
SubstrateProcessorto 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.
readOldTypesBundlefunctions are defined as such: