📄 src/web3/contracts/addressRegistryAbi.ts
D-OPEN SOVEREIGN
1export const addressRegistryAbi = [
2  {
3    "inputs": [],
4    "stateMutability": "nonpayable",
5    "type": "constructor"
6  },
7  {
8    "anonymous": false,
9    "inputs": [
10      {
11        "indexed": true,
12        "internalType": "address",
13        "name": "oldAdmin",
14        "type": "address"
15      },
16      {
17        "indexed": true,
18        "internalType": "address",
19        "name": "newAdmin",
20        "type": "address"
21      }
22    ],
23    "name": "AdminChanged",
24    "type": "event"
25  },
26  {
27    "anonymous": false,
28    "inputs": [
29      {
30        "indexed": true,
31        "internalType": "string",
32        "name": "key",
33        "type": "string"
34      },
35      {
36        "indexed": false,
37        "internalType": "string",
38        "name": "arweaveTxId",
39        "type": "string"
40      },
41      {
42        "indexed": false,
43        "internalType": "bytes32",
44        "name": "sha256Hash",
45        "type": "bytes32"
46      },
47      {
48        "indexed": false,
49        "internalType": "uint256",
50        "name": "version",
51        "type": "uint256"
52      }
53    ],
54    "name": "BlobRefAdded",
55    "type": "event"
56  },
57  {
58    "anonymous": false,
59    "inputs": [
60      {
61        "indexed": true,
62        "internalType": "string",
63        "name": "name",
64        "type": "string"
65      },
66      {
67        "indexed": true,
68        "internalType": "address",
69        "name": "contractAddress",
70        "type": "address"
71      },
72      {
73        "indexed": false,
74        "internalType": "string",
75        "name": "abiUrl",
76        "type": "string"
77      },
78      {
79        "indexed": false,
80        "internalType": "uint256",
81        "name": "version",
82        "type": "uint256"
83      }
84    ],
85    "name": "ContractAdded",
86    "type": "event"
87  },
88  {
89    "anonymous": false,
90    "inputs": [
91      {
92        "indexed": true,
93        "internalType": "string",
94        "name": "key",
95        "type": "string"
96      },
97      {
98        "indexed": false,
99        "internalType": "string",
100        "name": "value",
101        "type": "string"
102      },
103      {
104        "indexed": false,
105        "internalType": "uint256",
106        "name": "version",
107        "type": "uint256"
108      }
109    ],
110    "name": "DataAdded",
111    "type": "event"
112  },
113  {
114    "inputs": [
115      {
116        "internalType": "string",
117        "name": "key",
118        "type": "string"
119      },
120      {
121        "internalType": "string",
122        "name": "arweaveTxId",
123        "type": "string"
124      },
125      {
126        "internalType": "bytes32",
127        "name": "sha256Hash",
128        "type": "bytes32"
129      }
130    ],
131    "name": "addBlobRef",
132    "outputs": [],
133    "stateMutability": "nonpayable",
134    "type": "function"
135  },
136  {
137    "inputs": [
138      {
139        "internalType": "string",
140        "name": "name",
141        "type": "string"
142      },
143      {
144        "internalType": "address",
145        "name": "contractAddress",
146        "type": "address"
147      },
148      {
149        "internalType": "string",
150        "name": "abiUrl",
151        "type": "string"
152      }
153    ],
154    "name": "addContract",
155    "outputs": [],
156    "stateMutability": "nonpayable",
157    "type": "function"
158  },
159  {
160    "inputs": [
161      {
162        "internalType": "string",
163        "name": "key",
164        "type": "string"
165      },
166      {
167        "internalType": "string",
168        "name": "value",
169        "type": "string"
170      }
171    ],
172    "name": "addData",
173    "outputs": [],
174    "stateMutability": "nonpayable",
175    "type": "function"
176  },
177  {
178    "inputs": [],
179    "name": "admin",
180    "outputs": [
181      {
182        "internalType": "address",
183        "name": "",
184        "type": "address"
185      }
186    ],
187    "stateMutability": "view",
188    "type": "function"
189  },
190  {
191    "inputs": [
192      {
193        "internalType": "address",
194        "name": "newAdmin",
195        "type": "address"
196      }
197    ],
198    "name": "changeAdmin",
199    "outputs": [],
200    "stateMutability": "nonpayable",
201    "type": "function"
202  },
203  {
204    "inputs": [],
205    "name": "getAllBlobRefKeys",
206    "outputs": [
207      {
208        "internalType": "string[]",
209        "name": "",
210        "type": "string[]"
211      }
212    ],
213    "stateMutability": "view",
214    "type": "function"
215  },
216  {
217    "inputs": [],
218    "name": "getAllContractNames",
219    "outputs": [
220      {
221        "internalType": "string[]",
222        "name": "",
223        "type": "string[]"
224      }
225    ],
226    "stateMutability": "view",
227    "type": "function"
228  },
229  {
230    "inputs": [],
231    "name": "getAllDataKeys",
232    "outputs": [
233      {
234        "internalType": "string[]",
235        "name": "",
236        "type": "string[]"
237      }
238    ],
239    "stateMutability": "view",
240    "type": "function"
241  },
242  {
243    "inputs": [
244      {
245        "internalType": "string",
246        "name": "key",
247        "type": "string"
248      },
249      {
250        "internalType": "uint256",
251        "name": "offset",
252        "type": "uint256"
253      },
254      {
255        "internalType": "uint256",
256        "name": "limit",
257        "type": "uint256"
258      }
259    ],
260    "name": "getBlobRefHistory",
261    "outputs": [
262      {
263        "components": [
264          {
265            "internalType": "string",
266            "name": "arweaveTxId",
267            "type": "string"
268          },
269          {
270            "internalType": "bytes32",
271            "name": "sha256Hash",
272            "type": "bytes32"
273          }
274        ],
275        "internalType": "struct AddressRegistry.BlobRef[]",
276        "name": "",
277        "type": "tuple[]"
278      }
279    ],
280    "stateMutability": "view",
281    "type": "function"
282  },
283  {
284    "inputs": [
285      {
286        "internalType": "string",
287        "name": "name",
288        "type": "string"
289      }
290    ],
291    "name": "getContractHistory",
292    "outputs": [
293      {
294        "components": [
295          {
296            "internalType": "address",
297            "name": "contractAddress",
298            "type": "address"
299          },
300          {
301            "internalType": "string",
302            "name": "abiUrl",
303            "type": "string"
304          }
305        ],
306        "internalType": "struct AddressRegistry.ContractRecord[]",
307        "name": "",
308        "type": "tuple[]"
309      }
310    ],
311    "stateMutability": "view",
312    "type": "function"
313  },
314  {
315    "inputs": [
316      {
317        "internalType": "string",
318        "name": "key",
319        "type": "string"
320      }
321    ],
322    "name": "getDataHistory",
323    "outputs": [
324      {
325        "internalType": "string[]",
326        "name": "",
327        "type": "string[]"
328      }
329    ],
330    "stateMutability": "view",
331    "type": "function"
332  },
333  {
334    "inputs": [
335      {
336        "internalType": "string",
337        "name": "key",
338        "type": "string"
339      }
340    ],
341    "name": "getLatestBlobRef",
342    "outputs": [
343      {
344        "internalType": "string",
345        "name": "",
346        "type": "string"
347      },
348      {
349        "internalType": "bytes32",
350        "name": "",
351        "type": "bytes32"
352      }
353    ],
354    "stateMutability": "view",
355    "type": "function"
356  },
357  {
358    "inputs": [
359      {
360        "internalType": "string",
361        "name": "name",
362        "type": "string"
363      }
364    ],
365    "name": "getLatestContract",
366    "outputs": [
367      {
368        "internalType": "address",
369        "name": "",
370        "type": "address"
371      },
372      {
373        "internalType": "string",
374        "name": "",
375        "type": "string"
376      }
377    ],
378    "stateMutability": "view",
379    "type": "function"
380  },
381  {
382    "inputs": [
383      {
384        "internalType": "string",
385        "name": "key",
386        "type": "string"
387      }
388    ],
389    "name": "getLatestData",
390    "outputs": [
391      {
392        "internalType": "string",
393        "name": "",
394        "type": "string"
395      }
396    ],
397    "stateMutability": "view",
398    "type": "function"
399  }
400] as const;
401