description: This SubQuery project can be use as a starting point for Astar network
repository: <https://github.com/subquery/astar-subql-starters>
endpoint: wss://astar.api.onfinality.io/public-wss
# genesis hash of connecting blockchahin
genesisHash: '0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6'
file: ./dist/chaintypes.js
# one kind per one contract to track
- kind: substrate/FrontierEvm
startBlock: 436282 # block to start tracking events
erc20: # declare ABI to refer within the file
file: './erc20.abi.json' # abi file directory
# Processor library for websocket data
file: './node_modules/@subql/contract-processors/dist/frontierEVM.js'
address: '0x3d4dcfd2b483549527f7611ccfecb40b47d0c17b'
# mapping for contract event
- handler: handleFrontierEvmEvent
kind: substrate/FrontierEvmEvent
## Topics that follow Ethereum JSON-RPC log filters
## <https://docs.ethers.io/v5/concepts/events/>
## With a couple of added benefits:
## - Values don't need to be 0 padded
## - Event fragments can be provided and automatically converted to their id
# - '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'
# - Transfer(address,address,u256)
# - Transfer(address from,address to,uint256 value)
## Example of OR filter, will capture Transfer or Approval events
# - - 'Transfer(address indexed from,address indexed to,uint256 value)'
# - 'Approval(address indexed owner, address indexed spender, uint256 value)'
- Transfer(address indexed from,address indexed to,uint256 value)
- handler: handleFrontierEvmCall
kind: substrate/FrontierEvmCall
## The function can either be the method fragment or signature
# function: '0x7ff36ab500000000000000000000000000000000000000000000000000000000'
# function: approve(address,uint256)
function: approve(address to,uint256 value)
## The transaction sender
from: '0x6bd193ee6d2104f14f94e2ca6efefae561a4334b'