2021-08-02 13:42:11 +02:00
|
|
|
specVersion: 0.0.2
|
|
|
|
schema:
|
|
|
|
file: ./schema.graphql
|
|
|
|
dataSources:
|
|
|
|
- kind: ethereum/contract
|
|
|
|
name: VotingContract
|
|
|
|
network: ganache
|
|
|
|
source:
|
2021-08-26 18:57:05 +02:00
|
|
|
address: "0xb12F82fd2656362B8A3d2440Bc274ce669dBe6b3"
|
2021-08-02 13:42:11 +02:00
|
|
|
abi: VotingContract
|
|
|
|
mapping:
|
|
|
|
kind: ethereum/events
|
|
|
|
apiVersion: 0.0.4
|
|
|
|
language: wasm/assemblyscript
|
|
|
|
entities:
|
|
|
|
- VoteCast
|
|
|
|
- VotingRoomFinalized
|
|
|
|
- VotingRoomStarted
|
|
|
|
abis:
|
|
|
|
- name: VotingContract
|
|
|
|
file: ./abis/VotingContract.json
|
|
|
|
eventHandlers:
|
|
|
|
- event: VoteCast(uint256,address)
|
|
|
|
handler: handleVoteCast
|
2021-08-26 18:57:05 +02:00
|
|
|
- event: VotingRoomFinalized(uint256,bytes,bool,uint8)
|
2021-08-02 13:42:11 +02:00
|
|
|
handler: handleVotingRoomFinalized
|
2021-08-26 18:57:05 +02:00
|
|
|
- event: VotingRoomStarted(uint256,bytes)
|
2021-08-02 13:42:11 +02:00
|
|
|
handler: handleVotingRoomStarted
|
|
|
|
file: ./src/mapping.ts
|