Skip to content

Commit 9ecb96a

Browse files
Merge pull request: Initial subgraph code to index offchain interests data
1 parent 9d2d7d6 commit 9ecb96a

File tree

21 files changed

+5265
-0
lines changed

21 files changed

+5265
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

abis/Interests.json

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
[
2+
{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" },
3+
{
4+
"anonymous": false,
5+
"inputs": [
6+
{
7+
"indexed": true,
8+
"internalType": "uint256",
9+
"name": "commitment",
10+
"type": "uint256"
11+
},
12+
{
13+
"indexed": false,
14+
"internalType": "string",
15+
"name": "interestsUrl",
16+
"type": "string"
17+
}
18+
],
19+
"name": "InterestsAdded",
20+
"type": "event"
21+
},
22+
{
23+
"anonymous": false,
24+
"inputs": [
25+
{
26+
"indexed": true,
27+
"internalType": "address",
28+
"name": "oldOwner",
29+
"type": "address"
30+
},
31+
{
32+
"indexed": true,
33+
"internalType": "address",
34+
"name": "newOwner",
35+
"type": "address"
36+
}
37+
],
38+
"name": "OwnerSet",
39+
"type": "event"
40+
},
41+
{
42+
"inputs": [
43+
{ "internalType": "address", "name": "newOwner", "type": "address" }
44+
],
45+
"name": "changeOwner",
46+
"outputs": [],
47+
"stateMutability": "nonpayable",
48+
"type": "function"
49+
},
50+
{
51+
"inputs": [
52+
{ "internalType": "uint256", "name": "commitment", "type": "uint256" }
53+
],
54+
"name": "getInterests",
55+
"outputs": [
56+
{ "internalType": "string", "name": "interestsUrl", "type": "string" }
57+
],
58+
"stateMutability": "view",
59+
"type": "function"
60+
},
61+
{
62+
"inputs": [],
63+
"name": "getOwner",
64+
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
65+
"stateMutability": "view",
66+
"type": "function"
67+
},
68+
{
69+
"inputs": [
70+
{ "internalType": "uint256", "name": "commitment", "type": "uint256" },
71+
{ "internalType": "string", "name": "interestsUrl", "type": "string" }
72+
],
73+
"name": "storeInterests",
74+
"outputs": [],
75+
"stateMutability": "nonpayable",
76+
"type": "function"
77+
},
78+
{
79+
"inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
80+
"name": "userInterests",
81+
"outputs": [{ "internalType": "string", "name": "", "type": "string" }],
82+
"stateMutability": "view",
83+
"type": "function"
84+
}
85+
]

build/Interests/Interests.wasm

36.3 KB
Binary file not shown.
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
[
2+
{
3+
"inputs": [],
4+
"stateMutability": "nonpayable",
5+
"type": "constructor"
6+
},
7+
{
8+
"anonymous": false,
9+
"inputs": [
10+
{
11+
"indexed": true,
12+
"internalType": "uint256",
13+
"name": "commitment",
14+
"type": "uint256"
15+
},
16+
{
17+
"indexed": false,
18+
"internalType": "string",
19+
"name": "interestsUrl",
20+
"type": "string"
21+
}
22+
],
23+
"name": "InterestsAdded",
24+
"type": "event"
25+
},
26+
{
27+
"anonymous": false,
28+
"inputs": [
29+
{
30+
"indexed": true,
31+
"internalType": "address",
32+
"name": "oldOwner",
33+
"type": "address"
34+
},
35+
{
36+
"indexed": true,
37+
"internalType": "address",
38+
"name": "newOwner",
39+
"type": "address"
40+
}
41+
],
42+
"name": "OwnerSet",
43+
"type": "event"
44+
},
45+
{
46+
"inputs": [
47+
{
48+
"internalType": "address",
49+
"name": "newOwner",
50+
"type": "address"
51+
}
52+
],
53+
"name": "changeOwner",
54+
"outputs": [],
55+
"stateMutability": "nonpayable",
56+
"type": "function"
57+
},
58+
{
59+
"inputs": [
60+
{
61+
"internalType": "uint256",
62+
"name": "commitment",
63+
"type": "uint256"
64+
}
65+
],
66+
"name": "getInterests",
67+
"outputs": [
68+
{
69+
"internalType": "string",
70+
"name": "interestsUrl",
71+
"type": "string"
72+
}
73+
],
74+
"stateMutability": "view",
75+
"type": "function"
76+
},
77+
{
78+
"inputs": [],
79+
"name": "getOwner",
80+
"outputs": [
81+
{
82+
"internalType": "address",
83+
"name": "",
84+
"type": "address"
85+
}
86+
],
87+
"stateMutability": "view",
88+
"type": "function"
89+
},
90+
{
91+
"inputs": [
92+
{
93+
"internalType": "uint256",
94+
"name": "commitment",
95+
"type": "uint256"
96+
},
97+
{
98+
"internalType": "string",
99+
"name": "interestsUrl",
100+
"type": "string"
101+
}
102+
],
103+
"name": "storeInterests",
104+
"outputs": [],
105+
"stateMutability": "nonpayable",
106+
"type": "function"
107+
},
108+
{
109+
"inputs": [
110+
{
111+
"internalType": "uint256",
112+
"name": "",
113+
"type": "uint256"
114+
}
115+
],
116+
"name": "userInterests",
117+
"outputs": [
118+
{
119+
"internalType": "string",
120+
"name": "",
121+
"type": "string"
122+
}
123+
],
124+
"stateMutability": "view",
125+
"type": "function"
126+
}
127+
]
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
[
2+
{
3+
"inputs": [],
4+
"stateMutability": "nonpayable",
5+
"type": "constructor"
6+
},
7+
{
8+
"anonymous": false,
9+
"inputs": [
10+
{
11+
"indexed": true,
12+
"internalType": "uint256",
13+
"name": "commitment",
14+
"type": "uint256"
15+
},
16+
{
17+
"indexed": false,
18+
"internalType": "string",
19+
"name": "interestsUrl",
20+
"type": "string"
21+
}
22+
],
23+
"name": "InterestsAdded",
24+
"type": "event"
25+
},
26+
{
27+
"anonymous": false,
28+
"inputs": [
29+
{
30+
"indexed": true,
31+
"internalType": "address",
32+
"name": "oldOwner",
33+
"type": "address"
34+
},
35+
{
36+
"indexed": true,
37+
"internalType": "address",
38+
"name": "newOwner",
39+
"type": "address"
40+
}
41+
],
42+
"name": "OwnerSet",
43+
"type": "event"
44+
},
45+
{
46+
"inputs": [
47+
{
48+
"internalType": "address",
49+
"name": "newOwner",
50+
"type": "address"
51+
}
52+
],
53+
"name": "changeOwner",
54+
"outputs": [],
55+
"stateMutability": "nonpayable",
56+
"type": "function"
57+
},
58+
{
59+
"inputs": [
60+
{
61+
"internalType": "uint256",
62+
"name": "commitment",
63+
"type": "uint256"
64+
}
65+
],
66+
"name": "getInterests",
67+
"outputs": [
68+
{
69+
"internalType": "string",
70+
"name": "interestsUrl",
71+
"type": "string"
72+
}
73+
],
74+
"stateMutability": "view",
75+
"type": "function"
76+
},
77+
{
78+
"inputs": [],
79+
"name": "getOwner",
80+
"outputs": [
81+
{
82+
"internalType": "address",
83+
"name": "",
84+
"type": "address"
85+
}
86+
],
87+
"stateMutability": "view",
88+
"type": "function"
89+
},
90+
{
91+
"inputs": [
92+
{
93+
"internalType": "uint256",
94+
"name": "commitment",
95+
"type": "uint256"
96+
},
97+
{
98+
"internalType": "string",
99+
"name": "interestsUrl",
100+
"type": "string"
101+
}
102+
],
103+
"name": "storeInterests",
104+
"outputs": [],
105+
"stateMutability": "nonpayable",
106+
"type": "function"
107+
},
108+
{
109+
"inputs": [
110+
{
111+
"internalType": "uint256",
112+
"name": "",
113+
"type": "uint256"
114+
}
115+
],
116+
"name": "userInterests",
117+
"outputs": [
118+
{
119+
"internalType": "string",
120+
"name": "",
121+
"type": "string"
122+
}
123+
],
124+
"stateMutability": "view",
125+
"type": "function"
126+
}
127+
]

0 commit comments

Comments
 (0)