instadapp-dsa-subgraph/subgraph.yaml
2020-06-03 18:05:32 -03:00

125 lines
3.9 KiB
YAML

specVersion: 0.0.2
description: InstaDapp Defi Smart Account
repository: https://github.com/protofire/instadapp-dsa-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: InstaIndex
network: mainnet
source:
address: "0x2971adfa57b20e5a416ae5a708a8655a9c74f723"
abi: InstaIndex
startBlock: 9747241
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/index.ts
entities:
- User
- SmartAccount
abis:
- name: InstaIndex
file: ./abis/InstaIndex.json
- name: InstaList
file: ./abis/InstaList.json
eventHandlers:
- event: LogAccountCreated(address,indexed address,indexed address,indexed address)
handler: handleLogAccountCreated
- event: LogNewAccount(indexed address,indexed address,indexed address)
handler: handleLogNewAccount
- event: LogNewCheck(indexed uint256,indexed address)
handler: handleLogNewCheck
- event: LogNewMaster(indexed address)
handler: handleLogNewMaster
- event: LogUpdateMaster(indexed address)
handler: handleLogUpdateMaster
callHandlers:
- function: setBasics(address,address,address,address)
handler: handleSetBasics
- function: build(address,uint256,address)
handler: handleBuild
- kind: ethereum/contract
name: InstaEvents
network: mainnet
source:
address: "0x2af7ea6cb911035f3eb1ed895cb6692c39ecba97"
abi: InstaEvents
startBlock: 9747294
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/index.ts
entities:
- SmartAccount
- Connector
- ConnectorEvent
abis:
- name: InstaEvents
file: ./abis/InstaEvents.json
- name: InstaList
file: ./abis/InstaList.json
eventHandlers:
- event: LogEvent(uint64,indexed uint64,indexed uint64,indexed bytes32,bytes)
handler: handleLogEvent
templates:
- name: InstaConnectors
kind: ethereum/contract
network: mainnet
source:
abi: InstaConnectors
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/index.ts
entities:
- InstaConnector
- Connector
abis:
- name: InstaConnectors
file: ./abis/InstaConnectors.json
- name: Connector
file: ./abis/Connector.json
- name: InstaList
file: ./abis/InstaList.json
eventHandlers:
- event: LogDisable(indexed address)
handler: handleLogDisableConnector
- event: LogEnable(indexed address)
handler: handleLogEnableConnector
- event: LogEnableStatic(indexed address)
handler: handleLogEnableStaticConnector
- event: LogAddController(indexed address)
handler: handleLogAddController
- event: LogRemoveController(indexed address)
handler: handleLogRemoveController
- name: InstaAccount
kind: ethereum/contract
network: mainnet
source:
abi: InstaAccount
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/index.ts
entities:
- SmartAccount
abis:
- name: InstaAccount
file: ./abis/InstaAccount.json
- name: InstaList
file: ./abis/InstaList.json
eventHandlers:
- event: LogCast(indexed address,indexed address,uint256)
handler: handleLogCast
- event: LogDisable(indexed address)
handler: handleLogDisableSmartAccountOwner
- event: LogEnable(indexed address)
handler: handleLogEnableSmartAccountOwner
- event: LogSwitchShield(bool)
handler: handleLogSwitchShield