11export const VaultViewerAbi = [
22 {
33 inputs : [
4- {
5- internalType : 'address' ,
6- name : '_vaultHubAddress' ,
7- type : 'address' ,
8- } ,
4+ { internalType : 'address' , name : '_vaultHubAddress' , type : 'address' } ,
95 ] ,
106 stateMutability : 'nonpayable' ,
117 type : 'constructor' ,
128 } ,
139 {
1410 inputs : [
15- {
16- internalType : 'uint256' ,
17- name : '_from' ,
18- type : 'uint256' ,
19- } ,
20- {
21- internalType : 'uint256' ,
22- name : '_to' ,
23- type : 'uint256' ,
24- } ,
11+ { internalType : 'uint256' , name : '_from' , type : 'uint256' } ,
12+ { internalType : 'uint256' , name : '_to' , type : 'uint256' } ,
2513 ] ,
2614 name : 'WrongPaginationRange' ,
2715 type : 'error' ,
2816 } ,
2917 {
30- inputs : [
31- {
32- internalType : 'string' ,
33- name : 'argName' ,
34- type : 'string' ,
35- } ,
36- ] ,
18+ inputs : [ { internalType : 'string' , name : 'argName' , type : 'string' } ] ,
3719 name : 'ZeroArgument' ,
3820 type : 'error' ,
3921 } ,
4022 {
4123 inputs : [ ] ,
4224 name : 'DEFAULT_ADMIN_ROLE' ,
43- outputs : [
44- {
45- internalType : 'bytes32' ,
46- name : '' ,
47- type : 'bytes32' ,
48- } ,
49- ] ,
25+ outputs : [ { internalType : 'bytes32' , name : '' , type : 'bytes32' } ] ,
5026 stateMutability : 'view' ,
5127 type : 'function' ,
5228 } ,
5329 {
5430 inputs : [
55- {
56- internalType : 'contract IVault' ,
57- name : 'vault' ,
58- type : 'address' ,
59- } ,
60- {
61- internalType : 'address' ,
62- name : '_member' ,
63- type : 'address' ,
64- } ,
65- {
66- internalType : 'bytes32' ,
67- name : '_role' ,
68- type : 'bytes32' ,
69- } ,
31+ { internalType : 'contract IVault' , name : 'vault' , type : 'address' } ,
32+ { internalType : 'address' , name : '_member' , type : 'address' } ,
33+ { internalType : 'bytes32' , name : '_role' , type : 'bytes32' } ,
7034 ] ,
7135 name : 'hasRole' ,
72- outputs : [
73- {
74- internalType : 'bool' ,
75- name : '' ,
76- type : 'bool' ,
77- } ,
78- ] ,
36+ outputs : [ { internalType : 'bool' , name : '' , type : 'bool' } ] ,
7937 stateMutability : 'view' ,
8038 type : 'function' ,
8139 } ,
8240 {
83- inputs : [
84- {
85- internalType : 'address' ,
86- name : 'account' ,
87- type : 'address' ,
88- } ,
89- ] ,
41+ inputs : [ { internalType : 'address' , name : 'account' , type : 'address' } ] ,
9042 name : 'isContract' ,
91- outputs : [
92- {
93- internalType : 'bool' ,
94- name : '' ,
95- type : 'bool' ,
96- } ,
97- ] ,
43+ outputs : [ { internalType : 'bool' , name : '' , type : 'bool' } ] ,
9844 stateMutability : 'view' ,
9945 type : 'function' ,
10046 } ,
10147 {
10248 inputs : [
103- {
104- internalType : 'contract IVault' ,
105- name : 'vault' ,
106- type : 'address' ,
107- } ,
108- {
109- internalType : 'address' ,
110- name : '_owner' ,
111- type : 'address' ,
112- } ,
49+ { internalType : 'contract IVault' , name : 'vault' , type : 'address' } ,
50+ { internalType : 'address' , name : '_owner' , type : 'address' } ,
11351 ] ,
11452 name : 'isOwner' ,
115- outputs : [
116- {
117- internalType : 'bool' ,
118- name : '' ,
119- type : 'bool' ,
120- } ,
121- ] ,
53+ outputs : [ { internalType : 'bool' , name : '' , type : 'bool' } ] ,
12254 stateMutability : 'view' ,
12355 type : 'function' ,
12456 } ,
12557 {
12658 inputs : [ ] ,
12759 name : 'vaultHub' ,
128- outputs : [
129- {
130- internalType : 'contract VaultHub' ,
131- name : '' ,
132- type : 'address' ,
133- } ,
134- ] ,
60+ outputs : [ { internalType : 'contract VaultHub' , name : '' , type : 'address' } ] ,
13561 stateMutability : 'view' ,
13662 type : 'function' ,
13763 } ,
13864 {
13965 inputs : [
14066 {
141- internalType : 'address ' ,
142- name : '_owner ' ,
67+ internalType : 'contract IStakingVault ' ,
68+ name : '_vault ' ,
14369 type : 'address' ,
14470 } ,
14571 ] ,
146- name : 'vaultsByOwner ' ,
72+ name : 'vaultState ' ,
14773 outputs : [
14874 {
149- internalType : 'contract IVault[] ' ,
75+ internalType : 'enum VaultDataViewer.VaultState ' ,
15076 name : '' ,
151- type : 'address[] ' ,
77+ type : 'uint8 ' ,
15278 } ,
15379 ] ,
15480 stateMutability : 'view' ,
15581 type : 'function' ,
15682 } ,
83+ {
84+ inputs : [ { internalType : 'address' , name : '_owner' , type : 'address' } ] ,
85+ name : 'vaultsByOwner' ,
86+ outputs : [
87+ { internalType : 'contract IVault[]' , name : '' , type : 'address[]' } ,
88+ ] ,
89+ stateMutability : 'view' ,
90+ type : 'function' ,
91+ } ,
15792 {
15893 inputs : [
159- {
160- internalType : 'address' ,
161- name : '_owner' ,
162- type : 'address' ,
163- } ,
164- {
165- internalType : 'uint256' ,
166- name : '_from' ,
167- type : 'uint256' ,
168- } ,
169- {
170- internalType : 'uint256' ,
171- name : '_to' ,
172- type : 'uint256' ,
173- } ,
94+ { internalType : 'address' , name : '_owner' , type : 'address' } ,
95+ { internalType : 'uint256' , name : '_from' , type : 'uint256' } ,
96+ { internalType : 'uint256' , name : '_to' , type : 'uint256' } ,
17497 ] ,
17598 name : 'vaultsByOwnerBound' ,
17699 outputs : [
177- {
178- internalType : 'contract IVault[]' ,
179- name : '' ,
180- type : 'address[]' ,
181- } ,
182- {
183- internalType : 'uint256' ,
184- name : '' ,
185- type : 'uint256' ,
186- } ,
100+ { internalType : 'contract IVault[]' , name : '' , type : 'address[]' } ,
101+ { internalType : 'uint256' , name : '' , type : 'uint256' } ,
187102 ] ,
188103 stateMutability : 'view' ,
189104 type : 'function' ,
190105 } ,
191106 {
192107 inputs : [
193- {
194- internalType : 'bytes32' ,
195- name : '_role' ,
196- type : 'bytes32' ,
197- } ,
198- {
199- internalType : 'address' ,
200- name : '_member' ,
201- type : 'address' ,
202- } ,
108+ { internalType : 'bytes32' , name : '_role' , type : 'bytes32' } ,
109+ { internalType : 'address' , name : '_member' , type : 'address' } ,
203110 ] ,
204111 name : 'vaultsByRole' ,
205112 outputs : [
206- {
207- internalType : 'contract IVault[]' ,
208- name : '' ,
209- type : 'address[]' ,
210- } ,
113+ { internalType : 'contract IVault[]' , name : '' , type : 'address[]' } ,
211114 ] ,
212115 stateMutability : 'view' ,
213116 type : 'function' ,
214117 } ,
215118 {
216119 inputs : [
217- {
218- internalType : 'bytes32' ,
219- name : '_role' ,
220- type : 'bytes32' ,
221- } ,
222- {
223- internalType : 'address' ,
224- name : '_member' ,
225- type : 'address' ,
226- } ,
227- {
228- internalType : 'uint256' ,
229- name : '_from' ,
230- type : 'uint256' ,
231- } ,
232- {
233- internalType : 'uint256' ,
234- name : '_to' ,
235- type : 'uint256' ,
236- } ,
120+ { internalType : 'bytes32' , name : '_role' , type : 'bytes32' } ,
121+ { internalType : 'address' , name : '_member' , type : 'address' } ,
122+ { internalType : 'uint256' , name : '_from' , type : 'uint256' } ,
123+ { internalType : 'uint256' , name : '_to' , type : 'uint256' } ,
237124 ] ,
238125 name : 'vaultsByRoleBound' ,
239126 outputs : [
240- {
241- internalType : 'contract IVault[]' ,
242- name : '' ,
243- type : 'address[]' ,
244- } ,
245- {
246- internalType : 'uint256' ,
247- name : '' ,
248- type : 'uint256' ,
249- } ,
127+ { internalType : 'contract IVault[]' , name : '' , type : 'address[]' } ,
128+ { internalType : 'uint256' , name : '' , type : 'uint256' } ,
250129 ] ,
251130 stateMutability : 'view' ,
252131 type : 'function' ,
@@ -255,40 +134,20 @@ export const VaultViewerAbi = [
255134 inputs : [ ] ,
256135 name : 'vaultsConnected' ,
257136 outputs : [
258- {
259- internalType : 'contract IVault[]' ,
260- name : '' ,
261- type : 'address[]' ,
262- } ,
137+ { internalType : 'contract IVault[]' , name : '' , type : 'address[]' } ,
263138 ] ,
264139 stateMutability : 'view' ,
265140 type : 'function' ,
266141 } ,
267142 {
268143 inputs : [
269- {
270- internalType : 'uint256' ,
271- name : '_from' ,
272- type : 'uint256' ,
273- } ,
274- {
275- internalType : 'uint256' ,
276- name : '_to' ,
277- type : 'uint256' ,
278- } ,
144+ { internalType : 'uint256' , name : '_from' , type : 'uint256' } ,
145+ { internalType : 'uint256' , name : '_to' , type : 'uint256' } ,
279146 ] ,
280147 name : 'vaultsConnectedBound' ,
281148 outputs : [
282- {
283- internalType : 'contract IVault[]' ,
284- name : '' ,
285- type : 'address[]' ,
286- } ,
287- {
288- internalType : 'uint256' ,
289- name : '' ,
290- type : 'uint256' ,
291- } ,
149+ { internalType : 'contract IVault[]' , name : '' , type : 'address[]' } ,
150+ { internalType : 'uint256' , name : '' , type : 'uint256' } ,
292151 ] ,
293152 stateMutability : 'view' ,
294153 type : 'function' ,
0 commit comments