Skip to content

Commit 9d45ade

Browse files
authored
SOV-813: contract config setup (#60)
* feat: contract config setup * feat: cover helper files with tests * chore: remove unused stuff * fix: review comments * fix: review comments
1 parent 6a9f57d commit 9d45ade

26 files changed

Lines changed: 6692 additions & 1 deletion

File tree

.changeset/kind-jeans-hide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'frontend': patch
3+
---
4+
5+
SOV-813: add helper functions to find contracts

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{
2+
}

apps/frontend/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
"ethers": "5.7.1",
1616
"i18next": "22.0.4",
1717
"i18next-browser-languagedetector": "7.0.0",
18+
"lodash.get": "4.4.2",
19+
"lodash.set": "4.3.2",
1820
"react": "18.2.0",
1921
"react-dom": "18.2.0",
2022
"react-i18next": "12.0.0",
Lines changed: 347 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,347 @@
1+
[
2+
{
3+
"inputs": [
4+
{
5+
"internalType": "string",
6+
"name": "_name",
7+
"type": "string"
8+
},
9+
{
10+
"internalType": "string",
11+
"name": "_symbol",
12+
"type": "string"
13+
},
14+
{
15+
"internalType": "uint8",
16+
"name": "_decimals",
17+
"type": "uint8"
18+
},
19+
{
20+
"internalType": "uint256",
21+
"name": "_initialAmount",
22+
"type": "uint256"
23+
}
24+
],
25+
"payable": false,
26+
"stateMutability": "nonpayable",
27+
"type": "constructor"
28+
},
29+
{
30+
"anonymous": false,
31+
"inputs": [
32+
{
33+
"indexed": true,
34+
"internalType": "address",
35+
"name": "owner",
36+
"type": "address"
37+
},
38+
{
39+
"indexed": true,
40+
"internalType": "address",
41+
"name": "spender",
42+
"type": "address"
43+
},
44+
{
45+
"indexed": false,
46+
"internalType": "uint256",
47+
"name": "value",
48+
"type": "uint256"
49+
}
50+
],
51+
"name": "Approval",
52+
"type": "event"
53+
},
54+
{
55+
"anonymous": false,
56+
"inputs": [
57+
{
58+
"indexed": true,
59+
"internalType": "address",
60+
"name": "burner",
61+
"type": "address"
62+
},
63+
{
64+
"indexed": false,
65+
"internalType": "uint256",
66+
"name": "value",
67+
"type": "uint256"
68+
}
69+
],
70+
"name": "Burn",
71+
"type": "event"
72+
},
73+
{
74+
"anonymous": false,
75+
"inputs": [
76+
{
77+
"indexed": true,
78+
"internalType": "address",
79+
"name": "minter",
80+
"type": "address"
81+
},
82+
{
83+
"indexed": false,
84+
"internalType": "uint256",
85+
"name": "value",
86+
"type": "uint256"
87+
}
88+
],
89+
"name": "Mint",
90+
"type": "event"
91+
},
92+
{
93+
"anonymous": false,
94+
"inputs": [
95+
{
96+
"indexed": true,
97+
"internalType": "address",
98+
"name": "from",
99+
"type": "address"
100+
},
101+
{
102+
"indexed": true,
103+
"internalType": "address",
104+
"name": "to",
105+
"type": "address"
106+
},
107+
{
108+
"indexed": false,
109+
"internalType": "uint256",
110+
"name": "value",
111+
"type": "uint256"
112+
}
113+
],
114+
"name": "Transfer",
115+
"type": "event"
116+
},
117+
{
118+
"constant": true,
119+
"inputs": [
120+
{
121+
"internalType": "address",
122+
"name": "_owner",
123+
"type": "address"
124+
},
125+
{
126+
"internalType": "address",
127+
"name": "_spender",
128+
"type": "address"
129+
}
130+
],
131+
"name": "allowance",
132+
"outputs": [
133+
{
134+
"internalType": "uint256",
135+
"name": "",
136+
"type": "uint256"
137+
}
138+
],
139+
"payable": false,
140+
"stateMutability": "view",
141+
"type": "function"
142+
},
143+
{
144+
"constant": false,
145+
"inputs": [
146+
{
147+
"internalType": "address",
148+
"name": "_spender",
149+
"type": "address"
150+
},
151+
{
152+
"internalType": "uint256",
153+
"name": "_value",
154+
"type": "uint256"
155+
}
156+
],
157+
"name": "approve",
158+
"outputs": [
159+
{
160+
"internalType": "bool",
161+
"name": "",
162+
"type": "bool"
163+
}
164+
],
165+
"payable": false,
166+
"stateMutability": "nonpayable",
167+
"type": "function"
168+
},
169+
{
170+
"constant": true,
171+
"inputs": [
172+
{
173+
"internalType": "address",
174+
"name": "_owner",
175+
"type": "address"
176+
}
177+
],
178+
"name": "balanceOf",
179+
"outputs": [
180+
{
181+
"internalType": "uint256",
182+
"name": "",
183+
"type": "uint256"
184+
}
185+
],
186+
"payable": false,
187+
"stateMutability": "view",
188+
"type": "function"
189+
},
190+
{
191+
"constant": false,
192+
"inputs": [
193+
{
194+
"internalType": "address",
195+
"name": "_who",
196+
"type": "address"
197+
},
198+
{
199+
"internalType": "uint256",
200+
"name": "_value",
201+
"type": "uint256"
202+
}
203+
],
204+
"name": "burn",
205+
"outputs": [],
206+
"payable": false,
207+
"stateMutability": "nonpayable",
208+
"type": "function"
209+
},
210+
{
211+
"constant": true,
212+
"inputs": [],
213+
"name": "decimals",
214+
"outputs": [
215+
{
216+
"internalType": "uint8",
217+
"name": "",
218+
"type": "uint8"
219+
}
220+
],
221+
"payable": false,
222+
"stateMutability": "view",
223+
"type": "function"
224+
},
225+
{
226+
"constant": false,
227+
"inputs": [
228+
{
229+
"internalType": "address",
230+
"name": "_to",
231+
"type": "address"
232+
},
233+
{
234+
"internalType": "uint256",
235+
"name": "_value",
236+
"type": "uint256"
237+
}
238+
],
239+
"name": "mint",
240+
"outputs": [],
241+
"payable": false,
242+
"stateMutability": "nonpayable",
243+
"type": "function"
244+
},
245+
{
246+
"constant": true,
247+
"inputs": [],
248+
"name": "name",
249+
"outputs": [
250+
{
251+
"internalType": "string",
252+
"name": "",
253+
"type": "string"
254+
}
255+
],
256+
"payable": false,
257+
"stateMutability": "view",
258+
"type": "function"
259+
},
260+
{
261+
"constant": true,
262+
"inputs": [],
263+
"name": "symbol",
264+
"outputs": [
265+
{
266+
"internalType": "string",
267+
"name": "",
268+
"type": "string"
269+
}
270+
],
271+
"payable": false,
272+
"stateMutability": "view",
273+
"type": "function"
274+
},
275+
{
276+
"constant": true,
277+
"inputs": [],
278+
"name": "totalSupply",
279+
"outputs": [
280+
{
281+
"internalType": "uint256",
282+
"name": "",
283+
"type": "uint256"
284+
}
285+
],
286+
"payable": false,
287+
"stateMutability": "view",
288+
"type": "function"
289+
},
290+
{
291+
"constant": false,
292+
"inputs": [
293+
{
294+
"internalType": "address",
295+
"name": "_to",
296+
"type": "address"
297+
},
298+
{
299+
"internalType": "uint256",
300+
"name": "_value",
301+
"type": "uint256"
302+
}
303+
],
304+
"name": "transfer",
305+
"outputs": [
306+
{
307+
"internalType": "bool",
308+
"name": "",
309+
"type": "bool"
310+
}
311+
],
312+
"payable": false,
313+
"stateMutability": "nonpayable",
314+
"type": "function"
315+
},
316+
{
317+
"constant": false,
318+
"inputs": [
319+
{
320+
"internalType": "address",
321+
"name": "_from",
322+
"type": "address"
323+
},
324+
{
325+
"internalType": "address",
326+
"name": "_to",
327+
"type": "address"
328+
},
329+
{
330+
"internalType": "uint256",
331+
"name": "_value",
332+
"type": "uint256"
333+
}
334+
],
335+
"name": "transferFrom",
336+
"outputs": [
337+
{
338+
"internalType": "bool",
339+
"name": "",
340+
"type": "bool"
341+
}
342+
],
343+
"payable": false,
344+
"stateMutability": "nonpayable",
345+
"type": "function"
346+
}
347+
]

0 commit comments

Comments
 (0)