networks update

This commit is contained in:
Richa-iitr 2022-08-04 21:28:34 +05:30
parent 5937fba5ee
commit eaadc81c2d
2 changed files with 21 additions and 44 deletions

View File

@ -1,7 +1,14 @@
{
"matic": {
"undefined": {
"address": "0x6Bf41D02026b5B21F2a0bb0880b8545768a7151f"
"InstaAutomation": {
"address": "0x3cF499Dbd2aBB6505f48Db27a9871523A38e6e2C",
"startBlock": 31471200
}
},
"avalanche": {
"InstaAutomation": {
"address": "0x08c1c01be430C9381AD2794412C3E940254CD97c",
"startBlock": 18160000
}
}
}
}

View File

@ -4,11 +4,11 @@ schema:
dataSources:
- kind: ethereum
name: InstaAutomation
network: matic
network: avalanche
source:
abi: InstaAutomation
address: "0x3cF499Dbd2aBB6505f48Db27a9871523A38e6e2C"
startBlock: 31471200
address: "0x08c1c01be430C9381AD2794412C3E940254CD97c"
startBlock: 18160000
mapping:
kind: ethereum/events
apiVersion: 0.0.5
@ -30,48 +30,18 @@ dataSources:
eventHandlers:
- event: LogCancelledAutomation(indexed address,indexed uint32,indexed uint32)
handler: handleLogCancelAutomation
- event: LogSubmittedAutomation(indexed address,indexed uint32,uint128,uint128,uint128)
- event: LogSubmittedAutomation(indexed address,indexed
uint32,uint128,uint128,uint128)
handler: handleLogSubmitAutomation
- event: LogExecutedAutomationParams(indexed address,indexed uint32,indexed uint32,uint128,uint128,uint16,(address,address,uint256,uint256,uint256,(address,address,uint256,uint256,bytes),uint256,uint256),(string[],bytes[]))
- event: LogExecutedAutomationParams(indexed address,indexed uint32,indexed
uint32,uint128,uint128,uint16,(address,address,uint256,uint256,uint256,(address,address,uint256,uint256,bytes),uint256,uint256),(string[],bytes[]))
handler: handleLogExecuteAutomation
- event: LogExecutedAutomation(indexed address,indexed uint32,indexed uint32,bool,bytes)
- event: LogExecutedAutomation(indexed address,indexed uint32,indexed
uint32,bool,bytes)
handler: handleLogExecuteAutomationMetadata
- event: LogSystemCancelledAutomation(indexed address,indexed uint32,indexed uint32,uint8)
- event: LogSystemCancelledAutomation(indexed address,indexed uint32,indexed
uint32,uint8)
handler: handleSystemCancelledAutomation
- event: LogFlippedExecutors(address[],bool[])
handler: handleExecutors
file: ./src/insta-automation.ts
# templates:
# - kind: ethereum/contract
# name: InstaAutomation
# network: matic
# source:
# abi: InstaAutomation
# mapping:
# kind: ethereum/events
# apiVersion: 0.0.5
# language: wasm/assemblyscript
# entities:
# - Account
# - SubmitData
# - ExecuteData
# - ExecuteMetaData
# - CancelData
# - SystemCancelData
# abis:
# - name: InstaAutomation
# file: ./abis/InstaAutomation.json
# eventHandlers:
# - event: LogCancelledAutomation(indexed address,indexed uint32,indexed uint32)
# handler: handleLogCancelAutomation
# - event: LogSubmittedAutomation(indexed address,indexed uint32,uint128,uint128,uint128)
# handler: handleLogSubmitAutomation
# - event: LogExecutedAutomationParams(indexed address,indexed uint32,indexed uint32,uint128,uint128,uint16,(address,address,uint256,uint256,uint256,(address,address,uint256,uint256,bytes),uint256,uint256),(string[],bytes[]))
# handler: handleLogExecuteAutomation
# - event: LogExecutedAutomation(indexed address,indexed uint32,indexed uint32,bool,bytes)
# handler: handleLogExecuteAutomationMetadata
# - event: LogSystemCancelledAutomation(indexed address,indexed uint32,indexed uint32,uint8)
# handler: handleSystemCancelledAutomation
# - event: LogFlippedExecutors(address[],bool[])
# handler: handleExecutors
# file: ./src/insta-automation.ts