-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
58 lines (58 loc) · 1.6 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: MoonStaking
network: aurora
source:
address: "0x0165878A594ca255338adfa4d48449f69242Eb8F"
abi: MoonStaking
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- MoonStaking
abis:
- name: MoonStaking
file: ./abis/MoonStaking.json
- name: StakingHelper
file: ./abis/StakingHelper.json
- name: sMoon
file: ./abis/sMoon.json
- name: MoonERC20Token
file: ./abis/MoonERC20Token.json
- name: ERC20
file: ./abis/ERC20.json
- name: MOONCirculatingSupplyContract
file: ./abis/MOONCirculatingSupplyContract.json
- name: UniswapV2Pair
file: ./abis/UniswapV2Pair.json
callHandlers:
- function: stake(uint256,address)
handler: handleStake
- function: unstake(uint256,bool)
handler: handleUnstake
file: ./src/MoonStaking.ts
- kind: ethereum/contract
name: sMoon
network: aurora
source:
address: '0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9'
abi: sMoon
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- sMoon
abis:
- name: sMoon
file: ./abis/sMoon.json
- name: MoonERC20Token
file: ./abis/MoonERC20Token.json
callHandlers:
- function: rebase(uint256,uint256)
handler: rebaseFunction
file: ./src/sMoon.ts