-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
83 lines (83 loc) · 2.35 KB
/
subgraph.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: AcquaNote
network: kovan
source:
address: "0x750A23D04E67F95bA11F849e835E69C2699fe0A9" # UPDATE THIS!
abi: AcquaNote
startBlock: 1
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Note
- Issuer
- NoteNumberLookUp
abis:
- name: AcquaNote
file: ./abis/AcquaNote.json
eventHandlers:
- event: newNote(uint256,indexed address,string,string,uint256)
handler: handlenewNote
- event: newNotePrice(string,uint256)
handler: handleNewNotePrice
file: ./src/mapping.ts
- kind: ethereum/contract
name: AcquaToken
network: kovan
source:
address: "0x039Dd4686ed01a2177c72E1EcE1140b3C9353e5E" # UPDATE THIS!
abi: AcquaToken
startBlock: 1
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Note
- Token
- Sale
- Transfer
abis:
- name: AcquaToken
file: ./abis/AcquaToken.json
- name: AcquaNote
file: ./abis/AcquaNote.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
- event: boughtNote(uint256,string,address,uint256)
handler: handleBoughtNote
- event: mintedNote(uint256,string,address)
handler: handleMintedNote
- event: newTokenPrice(uint256,uint256)
handler: handleNewTokenPrice
file: ./src/mapping.ts
- kind: ethereum/contract
name: AcquaMediator
network: kovan
source:
address: "0x110fdBE1a26FB2A98AA5C7A5C285DCC0bd6838C2" # UPDATE THIS!
abi: AcquaMediator
startBlock: 1
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Token
abis:
- name: AcquaMediator
file: ./abis/AcquaMediator.json
- name: AcquaToken
file: ./abis/AcquaToken.json
eventHandlers:
- event: tokenSentViaBridge(uint256,bytes32)
handler: handleTokenSentViaBridge
- event: newPrice(uint256)
handler: handleNewRelayPrice
file: ./src/mapping.ts