51 lines
1.6 KiB
YAML
51 lines
1.6 KiB
YAML
specVersion: 0.0.1
|
|
schema:
|
|
file: ./schema.graphql
|
|
dataSources:
|
|
- kind: ethereum/contract
|
|
name: Contract
|
|
network: ropsten
|
|
source:
|
|
address: "0x2cEfae94eB05737827D245E9cb6c1ca3C2A0Fe52"
|
|
abi: Contract
|
|
mapping:
|
|
kind: ethereum/events
|
|
apiVersion: 0.0.3
|
|
language: wasm/assemblyscript
|
|
entities:
|
|
- Transfer
|
|
- CancelProject
|
|
- GiverAdded
|
|
- GiverUpdated
|
|
- DelegateAdded
|
|
- DelegateUpdated
|
|
- ProjectAdded
|
|
- ProjectUpdated
|
|
- Profile
|
|
abis:
|
|
- name: Contract
|
|
file: ./abis/Contract.json
|
|
eventHandlers:
|
|
- event: Transfer(indexed uint256,indexed uint256,uint256)
|
|
handler: handleTransfer
|
|
- event: CancelProject(indexed uint256)
|
|
handler: handleCancelProject
|
|
- event: GiverAdded(indexed uint64,indexed address,string)
|
|
handler: handleGiverAdded
|
|
- event: GiverUpdated(indexed uint64,string)
|
|
handler: handleGiverUpdated
|
|
- event: DelegateAdded(indexed uint64,string)
|
|
handler: handleDelegateAdded
|
|
- event: DelegateUpdated(indexed uint64,string)
|
|
handler: handleDelegateUpdated
|
|
- event: ProjectAdded(indexed uint64,string)
|
|
handler: handleProjectAdded
|
|
- event: ProjectUpdated(indexed uint64,string)
|
|
handler: handleProjectUpdated
|
|
callHandlers:
|
|
- function: addProject(string,string,address,uint64,uint64,address)
|
|
handler: handleAddProject
|
|
- function: donate(uint64,uint64,address,uint256)
|
|
handler: handleDonate
|
|
file: ./src/mapping.ts
|