-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubgraph.yaml
50 lines (50 loc) · 1.47 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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: TokenKrafterFactory
network: base-testnet
source:
address: "0x283e267a411a7bc5d37c25528a0b6aa3ba9c6719"
abi: TokenKrafterFactory
startBlock: 13484050
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Account
- Bucket
abis:
- name: TokenKrafterFactory
file: ./abis/TokenKrafterFactory.json
eventHandlers:
- event: BucketCreated(indexed address,indexed address,string,string,string,(address,uint256)[])
handler: handleBucketCreated
file: ./src/token-krafter-factory.ts
templates:
- kind: ethereum
name: TokenKrafterBucket
network: base-testnet
source:
abi: TokenKrafterBucket
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Allocation
- Investment
- Withdrawal
abis:
- name: TokenKrafterBucket
file: ./abis/TokenKrafterBucket.json
eventHandlers:
- event: Invested(indexed address,indexed address,uint256,uint256,(address,uint256)[])
handler: handleInvested
- event: Rebalanced(indexed address,(address,uint256)[])
handler: handleRebalanced
- event: Withdraw(indexed address,uint256)
handler: handleWithdraw
file: ./src/token-krafter-bucket.ts