@pearldigital/p3-abis 3.2.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,109 @@
1
+ // Auto-generated by scripts/build-abis.mjs. Do not edit by hand.
2
+ export declare const abi: [
3
+ {
4
+ "type": "function",
5
+ "name": "arm",
6
+ "inputs": [],
7
+ "outputs": [
8
+ {
9
+ "name": "",
10
+ "type": "address",
11
+ "internalType": "address"
12
+ }
13
+ ],
14
+ "stateMutability": "view"
15
+ },
16
+ {
17
+ "type": "function",
18
+ "name": "getIdentityRecord",
19
+ "inputs": [
20
+ {
21
+ "name": "wallet_",
22
+ "type": "address",
23
+ "internalType": "address"
24
+ }
25
+ ],
26
+ "outputs": [
27
+ {
28
+ "name": "binderHash",
29
+ "type": "bytes32",
30
+ "internalType": "bytes32"
31
+ },
32
+ {
33
+ "name": "registeredAt",
34
+ "type": "uint256",
35
+ "internalType": "uint256"
36
+ }
37
+ ],
38
+ "stateMutability": "view"
39
+ },
40
+ {
41
+ "type": "function",
42
+ "name": "getWalletAgentValidation",
43
+ "inputs": [
44
+ {
45
+ "name": "wallet_",
46
+ "type": "address",
47
+ "internalType": "address"
48
+ }
49
+ ],
50
+ "outputs": [
51
+ {
52
+ "name": "isAgent_",
53
+ "type": "bool",
54
+ "internalType": "bool"
55
+ },
56
+ {
57
+ "name": "capabilities_",
58
+ "type": "uint16",
59
+ "internalType": "uint16"
60
+ },
61
+ {
62
+ "name": "singleSendLimit_",
63
+ "type": "uint128",
64
+ "internalType": "uint128"
65
+ },
66
+ {
67
+ "name": "rollingWindowLimit_",
68
+ "type": "uint128",
69
+ "internalType": "uint128"
70
+ },
71
+ {
72
+ "name": "windowDuration_",
73
+ "type": "uint32",
74
+ "internalType": "uint32"
75
+ },
76
+ {
77
+ "name": "bufferSize_",
78
+ "type": "uint8",
79
+ "internalType": "uint8"
80
+ }
81
+ ],
82
+ "stateMutability": "view"
83
+ },
84
+ {
85
+ "type": "function",
86
+ "name": "isPermissioned",
87
+ "inputs": [
88
+ {
89
+ "name": "wallet_",
90
+ "type": "address",
91
+ "internalType": "address"
92
+ }
93
+ ],
94
+ "outputs": [
95
+ {
96
+ "name": "",
97
+ "type": "bool",
98
+ "internalType": "bool"
99
+ }
100
+ ],
101
+ "stateMutability": "view"
102
+ },
103
+ {
104
+ "type": "error",
105
+ "name": "P3BridgeRegistryAdapterZeroArm",
106
+ "inputs": []
107
+ }
108
+ ];
109
+ export default abi;
@@ -0,0 +1,109 @@
1
+ // Auto-generated by scripts/build-abis.mjs. Do not edit by hand.
2
+ export const abi = [
3
+ {
4
+ "type": "function",
5
+ "name": "arm",
6
+ "inputs": [],
7
+ "outputs": [
8
+ {
9
+ "name": "",
10
+ "type": "address",
11
+ "internalType": "address"
12
+ }
13
+ ],
14
+ "stateMutability": "view"
15
+ },
16
+ {
17
+ "type": "function",
18
+ "name": "getIdentityRecord",
19
+ "inputs": [
20
+ {
21
+ "name": "wallet_",
22
+ "type": "address",
23
+ "internalType": "address"
24
+ }
25
+ ],
26
+ "outputs": [
27
+ {
28
+ "name": "binderHash",
29
+ "type": "bytes32",
30
+ "internalType": "bytes32"
31
+ },
32
+ {
33
+ "name": "registeredAt",
34
+ "type": "uint256",
35
+ "internalType": "uint256"
36
+ }
37
+ ],
38
+ "stateMutability": "view"
39
+ },
40
+ {
41
+ "type": "function",
42
+ "name": "getWalletAgentValidation",
43
+ "inputs": [
44
+ {
45
+ "name": "wallet_",
46
+ "type": "address",
47
+ "internalType": "address"
48
+ }
49
+ ],
50
+ "outputs": [
51
+ {
52
+ "name": "isAgent_",
53
+ "type": "bool",
54
+ "internalType": "bool"
55
+ },
56
+ {
57
+ "name": "capabilities_",
58
+ "type": "uint16",
59
+ "internalType": "uint16"
60
+ },
61
+ {
62
+ "name": "singleSendLimit_",
63
+ "type": "uint128",
64
+ "internalType": "uint128"
65
+ },
66
+ {
67
+ "name": "rollingWindowLimit_",
68
+ "type": "uint128",
69
+ "internalType": "uint128"
70
+ },
71
+ {
72
+ "name": "windowDuration_",
73
+ "type": "uint32",
74
+ "internalType": "uint32"
75
+ },
76
+ {
77
+ "name": "bufferSize_",
78
+ "type": "uint8",
79
+ "internalType": "uint8"
80
+ }
81
+ ],
82
+ "stateMutability": "view"
83
+ },
84
+ {
85
+ "type": "function",
86
+ "name": "isPermissioned",
87
+ "inputs": [
88
+ {
89
+ "name": "wallet_",
90
+ "type": "address",
91
+ "internalType": "address"
92
+ }
93
+ ],
94
+ "outputs": [
95
+ {
96
+ "name": "",
97
+ "type": "bool",
98
+ "internalType": "bool"
99
+ }
100
+ ],
101
+ "stateMutability": "view"
102
+ },
103
+ {
104
+ "type": "error",
105
+ "name": "P3BridgeRegistryAdapterZeroArm",
106
+ "inputs": []
107
+ }
108
+ ];
109
+ export default abi;
@@ -0,0 +1,373 @@
1
+ // Auto-generated by scripts/build-abis.mjs. Do not edit by hand.
2
+ export declare const abi: [
3
+ {
4
+ "type": "function",
5
+ "name": "activateChain",
6
+ "inputs": [
7
+ {
8
+ "name": "chainId_",
9
+ "type": "uint256",
10
+ "internalType": "uint256"
11
+ }
12
+ ],
13
+ "outputs": [],
14
+ "stateMutability": "nonpayable"
15
+ },
16
+ {
17
+ "type": "function",
18
+ "name": "deactivateChain",
19
+ "inputs": [
20
+ {
21
+ "name": "chainId_",
22
+ "type": "uint256",
23
+ "internalType": "uint256"
24
+ }
25
+ ],
26
+ "outputs": [],
27
+ "stateMutability": "nonpayable"
28
+ },
29
+ {
30
+ "type": "function",
31
+ "name": "getActiveChainMask",
32
+ "inputs": [],
33
+ "outputs": [
34
+ {
35
+ "name": "",
36
+ "type": "uint32",
37
+ "internalType": "uint32"
38
+ }
39
+ ],
40
+ "stateMutability": "view"
41
+ },
42
+ {
43
+ "type": "function",
44
+ "name": "getChain",
45
+ "inputs": [
46
+ {
47
+ "name": "chainId_",
48
+ "type": "uint256",
49
+ "internalType": "uint256"
50
+ }
51
+ ],
52
+ "outputs": [
53
+ {
54
+ "name": "",
55
+ "type": "tuple",
56
+ "internalType": "struct IP3ChainRegistry.ChainRecord",
57
+ "components": [
58
+ {
59
+ "name": "chainId",
60
+ "type": "uint256",
61
+ "internalType": "uint256"
62
+ },
63
+ {
64
+ "name": "chainBit",
65
+ "type": "uint8",
66
+ "internalType": "uint8"
67
+ },
68
+ {
69
+ "name": "mirrorContract",
70
+ "type": "address",
71
+ "internalType": "address"
72
+ },
73
+ {
74
+ "name": "bridgeContract",
75
+ "type": "address",
76
+ "internalType": "address"
77
+ },
78
+ {
79
+ "name": "active",
80
+ "type": "bool",
81
+ "internalType": "bool"
82
+ },
83
+ {
84
+ "name": "registeredAt",
85
+ "type": "uint256",
86
+ "internalType": "uint256"
87
+ }
88
+ ]
89
+ }
90
+ ],
91
+ "stateMutability": "view"
92
+ },
93
+ {
94
+ "type": "function",
95
+ "name": "getChainBit",
96
+ "inputs": [
97
+ {
98
+ "name": "chainId_",
99
+ "type": "uint256",
100
+ "internalType": "uint256"
101
+ }
102
+ ],
103
+ "outputs": [
104
+ {
105
+ "name": "",
106
+ "type": "uint8",
107
+ "internalType": "uint8"
108
+ }
109
+ ],
110
+ "stateMutability": "view"
111
+ },
112
+ {
113
+ "type": "function",
114
+ "name": "getRegisteredChainIds",
115
+ "inputs": [],
116
+ "outputs": [
117
+ {
118
+ "name": "",
119
+ "type": "uint256[]",
120
+ "internalType": "uint256[]"
121
+ }
122
+ ],
123
+ "stateMutability": "view"
124
+ },
125
+ {
126
+ "type": "function",
127
+ "name": "isChainActive",
128
+ "inputs": [
129
+ {
130
+ "name": "chainId_",
131
+ "type": "uint256",
132
+ "internalType": "uint256"
133
+ }
134
+ ],
135
+ "outputs": [
136
+ {
137
+ "name": "",
138
+ "type": "bool",
139
+ "internalType": "bool"
140
+ }
141
+ ],
142
+ "stateMutability": "view"
143
+ },
144
+ {
145
+ "type": "function",
146
+ "name": "isChainRegistered",
147
+ "inputs": [
148
+ {
149
+ "name": "chainId_",
150
+ "type": "uint256",
151
+ "internalType": "uint256"
152
+ }
153
+ ],
154
+ "outputs": [
155
+ {
156
+ "name": "",
157
+ "type": "bool",
158
+ "internalType": "bool"
159
+ }
160
+ ],
161
+ "stateMutability": "view"
162
+ },
163
+ {
164
+ "type": "function",
165
+ "name": "registerChain",
166
+ "inputs": [
167
+ {
168
+ "name": "chainId_",
169
+ "type": "uint256",
170
+ "internalType": "uint256"
171
+ },
172
+ {
173
+ "name": "chainBit_",
174
+ "type": "uint8",
175
+ "internalType": "uint8"
176
+ },
177
+ {
178
+ "name": "mirrorContract_",
179
+ "type": "address",
180
+ "internalType": "address"
181
+ },
182
+ {
183
+ "name": "bridgeContract_",
184
+ "type": "address",
185
+ "internalType": "address"
186
+ }
187
+ ],
188
+ "outputs": [],
189
+ "stateMutability": "nonpayable"
190
+ },
191
+ {
192
+ "type": "function",
193
+ "name": "updateChainContracts",
194
+ "inputs": [
195
+ {
196
+ "name": "chainId_",
197
+ "type": "uint256",
198
+ "internalType": "uint256"
199
+ },
200
+ {
201
+ "name": "mirrorContract_",
202
+ "type": "address",
203
+ "internalType": "address"
204
+ },
205
+ {
206
+ "name": "bridgeContract_",
207
+ "type": "address",
208
+ "internalType": "address"
209
+ }
210
+ ],
211
+ "outputs": [],
212
+ "stateMutability": "nonpayable"
213
+ },
214
+ {
215
+ "type": "event",
216
+ "name": "ChainActivated",
217
+ "inputs": [
218
+ {
219
+ "name": "chainId",
220
+ "type": "uint256",
221
+ "indexed": true,
222
+ "internalType": "uint256"
223
+ }
224
+ ],
225
+ "anonymous": false
226
+ },
227
+ {
228
+ "type": "event",
229
+ "name": "ChainContractsUpdated",
230
+ "inputs": [
231
+ {
232
+ "name": "chainId",
233
+ "type": "uint256",
234
+ "indexed": true,
235
+ "internalType": "uint256"
236
+ },
237
+ {
238
+ "name": "mirrorContract",
239
+ "type": "address",
240
+ "indexed": false,
241
+ "internalType": "address"
242
+ },
243
+ {
244
+ "name": "bridgeContract",
245
+ "type": "address",
246
+ "indexed": false,
247
+ "internalType": "address"
248
+ }
249
+ ],
250
+ "anonymous": false
251
+ },
252
+ {
253
+ "type": "event",
254
+ "name": "ChainDeactivated",
255
+ "inputs": [
256
+ {
257
+ "name": "chainId",
258
+ "type": "uint256",
259
+ "indexed": true,
260
+ "internalType": "uint256"
261
+ }
262
+ ],
263
+ "anonymous": false
264
+ },
265
+ {
266
+ "type": "event",
267
+ "name": "ChainRegistered",
268
+ "inputs": [
269
+ {
270
+ "name": "chainId",
271
+ "type": "uint256",
272
+ "indexed": true,
273
+ "internalType": "uint256"
274
+ },
275
+ {
276
+ "name": "chainBit",
277
+ "type": "uint8",
278
+ "indexed": true,
279
+ "internalType": "uint8"
280
+ },
281
+ {
282
+ "name": "mirrorContract",
283
+ "type": "address",
284
+ "indexed": false,
285
+ "internalType": "address"
286
+ },
287
+ {
288
+ "name": "bridgeContract",
289
+ "type": "address",
290
+ "indexed": false,
291
+ "internalType": "address"
292
+ }
293
+ ],
294
+ "anonymous": false
295
+ },
296
+ {
297
+ "type": "error",
298
+ "name": "P3ChainAlreadyActive",
299
+ "inputs": [
300
+ {
301
+ "name": "chainId",
302
+ "type": "uint256",
303
+ "internalType": "uint256"
304
+ }
305
+ ]
306
+ },
307
+ {
308
+ "type": "error",
309
+ "name": "P3ChainAlreadyInactive",
310
+ "inputs": [
311
+ {
312
+ "name": "chainId",
313
+ "type": "uint256",
314
+ "internalType": "uint256"
315
+ }
316
+ ]
317
+ },
318
+ {
319
+ "type": "error",
320
+ "name": "P3ChainAlreadyRegistered",
321
+ "inputs": [
322
+ {
323
+ "name": "chainId",
324
+ "type": "uint256",
325
+ "internalType": "uint256"
326
+ }
327
+ ]
328
+ },
329
+ {
330
+ "type": "error",
331
+ "name": "P3ChainBitConflict",
332
+ "inputs": [
333
+ {
334
+ "name": "chainBit",
335
+ "type": "uint8",
336
+ "internalType": "uint8"
337
+ },
338
+ {
339
+ "name": "existingChainId",
340
+ "type": "uint256",
341
+ "internalType": "uint256"
342
+ }
343
+ ]
344
+ },
345
+ {
346
+ "type": "error",
347
+ "name": "P3ChainBitOutOfRange",
348
+ "inputs": [
349
+ {
350
+ "name": "chainBit",
351
+ "type": "uint8",
352
+ "internalType": "uint8"
353
+ }
354
+ ]
355
+ },
356
+ {
357
+ "type": "error",
358
+ "name": "P3ChainIdIsZero",
359
+ "inputs": []
360
+ },
361
+ {
362
+ "type": "error",
363
+ "name": "P3ChainNotFound",
364
+ "inputs": [
365
+ {
366
+ "name": "chainId",
367
+ "type": "uint256",
368
+ "internalType": "uint256"
369
+ }
370
+ ]
371
+ }
372
+ ];
373
+ export default abi;