Skip to content

Commit

Permalink
Adjust Templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Corantin committed Nov 6, 2023
1 parent 05d1def commit 88c1f96
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/subgraphs/govern-subgraph/manifest/data/goerli.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
},
{
"name": "GovernQueueV2",
"startBlock": 7985656,
"startBlock": 7986054,
"address": "0xc73BCDc0FF18Fb903FCd34de4BFfE37BE66b4E8f",
"customTemplate": "GovernQueue"
},
{
"name": "GovernQueueV3",
"startBlock": 9637990,
"startBlock": 9638502,
"address": "0xce38877414ffd60c1a1e20ddb1d52fa5840d9ca6",
"customTemplate": "GovernQueue"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
handler: handleResolved
- event: Revoked(indexed bytes4,indexed address,indexed address)
handler: handleRevoked
file: ./src/GovernQueue.ts
file: ./src/GovernQueueV2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
- kind: ethereum/contract
name: {{name}}
network: {{network}}
source:
abi: GovernQueue
address: "{{address}}"
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Collateral
- Config
- Container
- ContainerEvent
- Payload
- Role
abis:
- name: GovernQueue
file: ./govern-core/abi/contracts/pipelines/GovernQueue.sol/GovernQueueV3.json
- name: ERC20
file: ./govern-contract-utils/abi/contracts/erc20/ERC20.sol/ERC20.json
eventHandlers:
- event: Configured(indexed bytes32,indexed address,(uint256,(address,uint256),(address,uint256),address,bytes,uint256))
handler: handleConfigured
- event: Frozen(indexed bytes4,indexed address)
handler: handleFrozen
- event: Granted(indexed bytes4,indexed address,indexed address,address)
handler: handleGranted
- event: Scheduled(indexed bytes32,(uint256,uint256,address,address,(address,uint256,bytes)[],bytes32,bytes,address))
handler: handleScheduled
- event: Executed(indexed bytes32,indexed address)
handler: handleExecuted
- event: Challenged(indexed bytes32,indexed address,bytes,uint256,(address,uint256))
handler: handleChallenged
- event: Vetoed(indexed bytes32,indexed address,bytes)
handler: handleVetoed
- event: Resolved(indexed bytes32,indexed address,uint256)
handler: handleResolved
- event: Revoked(indexed bytes4,indexed address,indexed address)
handler: handleRevoked
file: ./src/GovernQueueV3.ts
2 changes: 1 addition & 1 deletion packages/subgraphs/govern-subgraph/subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ dataSources:
handler: handleResolved
- event: Revoked(indexed bytes4,indexed address,indexed address)
handler: handleRevoked
file: ./src/GovernQueue.ts
file: ./src/GovernQueueV2.ts
- kind: ethereum/contract
name: GovernQueueV3
network: goerli
Expand Down

0 comments on commit 88c1f96

Please sign in to comment.