ERC-20-Token-Allowance/subgraph.yaml

52 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2022-08-15 17:33:06 +00:00
specVersion: 0.0.5
2022-08-15 15:27:05 +00:00
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
2022-08-15 17:33:06 +00:00
name: InstaIndex
network: arbitrum-one
2022-08-15 15:27:05 +00:00
source:
abi: InstaIndex
2022-08-15 17:33:06 +00:00
address: "0x1eE00C305C51Ff3bE60162456A9B533C07cD9288"
startBlock: 337405
2022-08-15 15:27:05 +00:00
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
2022-08-15 17:33:06 +00:00
- Account
- ApprovalEvent
- Token
2022-08-15 15:27:05 +00:00
abis:
- name: InstaIndex
file: ./abis/InstaIndex.json
2022-08-15 17:33:06 +00:00
- name: InstaList
file: ./abis/InstaList.json
- name: InstaAccount
file: ./abis/InstaAccount.json
2022-08-15 15:27:05 +00:00
eventHandlers:
2022-08-15 17:33:06 +00:00
- event: LogAccountCreated(address,indexed address,indexed address,indexed
address)
2022-08-15 15:27:05 +00:00
handler: handleLogAccountCreated
file: ./src/insta-index.ts
2022-08-15 17:33:06 +00:00
- kind: ethereum/contract
name: ERC20
network: arbitrum-one
source:
abi: ERC20
startBlock: 337405
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- ApprovalEvent
- Token
abis:
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: Approval(indexed address,indexed address,uint256)
handler: handleApproval
file: ./src/erc20.ts