@pearldigital/p3-abis 3.2.3 → 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,283 @@
1
+ // Auto-generated by scripts/build-abis.mjs. Do not edit by hand.
2
+ export declare const abi: [
3
+ {
4
+ "type": "function",
5
+ "name": "getChainId",
6
+ "inputs": [],
7
+ "outputs": [
8
+ {
9
+ "name": "",
10
+ "type": "uint256",
11
+ "internalType": "uint256"
12
+ }
13
+ ],
14
+ "stateMutability": "view"
15
+ },
16
+ {
17
+ "type": "function",
18
+ "name": "getPerChainReserve",
19
+ "inputs": [
20
+ {
21
+ "name": "token_",
22
+ "type": "address",
23
+ "internalType": "address"
24
+ }
25
+ ],
26
+ "outputs": [
27
+ {
28
+ "name": "",
29
+ "type": "uint256",
30
+ "internalType": "uint256"
31
+ }
32
+ ],
33
+ "stateMutability": "view"
34
+ },
35
+ {
36
+ "type": "function",
37
+ "name": "getReserveEpoch",
38
+ "inputs": [],
39
+ "outputs": [
40
+ {
41
+ "name": "",
42
+ "type": "uint256",
43
+ "internalType": "uint256"
44
+ }
45
+ ],
46
+ "stateMutability": "view"
47
+ },
48
+ {
49
+ "type": "function",
50
+ "name": "getReserveRecord",
51
+ "inputs": [
52
+ {
53
+ "name": "token_",
54
+ "type": "address",
55
+ "internalType": "address"
56
+ }
57
+ ],
58
+ "outputs": [
59
+ {
60
+ "name": "",
61
+ "type": "tuple",
62
+ "internalType": "struct IP3ReserveMirror.ReserveRecord",
63
+ "components": [
64
+ {
65
+ "name": "perChainReserve",
66
+ "type": "uint256",
67
+ "internalType": "uint256"
68
+ },
69
+ {
70
+ "name": "globalReserve",
71
+ "type": "uint256",
72
+ "internalType": "uint256"
73
+ },
74
+ {
75
+ "name": "globalSupply",
76
+ "type": "uint256",
77
+ "internalType": "uint256"
78
+ },
79
+ {
80
+ "name": "epoch",
81
+ "type": "uint256",
82
+ "internalType": "uint256"
83
+ },
84
+ {
85
+ "name": "attestedAt",
86
+ "type": "uint256",
87
+ "internalType": "uint256"
88
+ }
89
+ ]
90
+ }
91
+ ],
92
+ "stateMutability": "view"
93
+ },
94
+ {
95
+ "type": "function",
96
+ "name": "getReserveSigner",
97
+ "inputs": [],
98
+ "outputs": [
99
+ {
100
+ "name": "",
101
+ "type": "address",
102
+ "internalType": "address"
103
+ }
104
+ ],
105
+ "stateMutability": "view"
106
+ },
107
+ {
108
+ "type": "function",
109
+ "name": "pushReserveBatch",
110
+ "inputs": [
111
+ {
112
+ "name": "epoch_",
113
+ "type": "uint256",
114
+ "internalType": "uint256"
115
+ },
116
+ {
117
+ "name": "reserves_",
118
+ "type": "tuple[]",
119
+ "internalType": "struct IP3ReserveMirror.ReserveAttestationInput[]",
120
+ "components": [
121
+ {
122
+ "name": "token",
123
+ "type": "address",
124
+ "internalType": "address"
125
+ },
126
+ {
127
+ "name": "perChainReserve",
128
+ "type": "uint256",
129
+ "internalType": "uint256"
130
+ },
131
+ {
132
+ "name": "globalReserve",
133
+ "type": "uint256",
134
+ "internalType": "uint256"
135
+ },
136
+ {
137
+ "name": "globalSupply",
138
+ "type": "uint256",
139
+ "internalType": "uint256"
140
+ }
141
+ ]
142
+ },
143
+ {
144
+ "name": "pearlSignature_",
145
+ "type": "bytes",
146
+ "internalType": "bytes"
147
+ }
148
+ ],
149
+ "outputs": [],
150
+ "stateMutability": "nonpayable"
151
+ },
152
+ {
153
+ "type": "function",
154
+ "name": "rotateReserveSigner",
155
+ "inputs": [
156
+ {
157
+ "name": "newSigner_",
158
+ "type": "address",
159
+ "internalType": "address"
160
+ }
161
+ ],
162
+ "outputs": [],
163
+ "stateMutability": "nonpayable"
164
+ },
165
+ {
166
+ "type": "event",
167
+ "name": "ReserveAttested",
168
+ "inputs": [
169
+ {
170
+ "name": "token",
171
+ "type": "address",
172
+ "indexed": true,
173
+ "internalType": "address"
174
+ },
175
+ {
176
+ "name": "epoch",
177
+ "type": "uint256",
178
+ "indexed": true,
179
+ "internalType": "uint256"
180
+ },
181
+ {
182
+ "name": "perChainReserve",
183
+ "type": "uint256",
184
+ "indexed": false,
185
+ "internalType": "uint256"
186
+ },
187
+ {
188
+ "name": "globalReserve",
189
+ "type": "uint256",
190
+ "indexed": false,
191
+ "internalType": "uint256"
192
+ },
193
+ {
194
+ "name": "globalSupply",
195
+ "type": "uint256",
196
+ "indexed": false,
197
+ "internalType": "uint256"
198
+ }
199
+ ],
200
+ "anonymous": false
201
+ },
202
+ {
203
+ "type": "event",
204
+ "name": "ReserveBatchAttested",
205
+ "inputs": [
206
+ {
207
+ "name": "epoch",
208
+ "type": "uint256",
209
+ "indexed": true,
210
+ "internalType": "uint256"
211
+ },
212
+ {
213
+ "name": "batchSize",
214
+ "type": "uint256",
215
+ "indexed": false,
216
+ "internalType": "uint256"
217
+ },
218
+ {
219
+ "name": "pushedBy",
220
+ "type": "address",
221
+ "indexed": true,
222
+ "internalType": "address"
223
+ }
224
+ ],
225
+ "anonymous": false
226
+ },
227
+ {
228
+ "type": "event",
229
+ "name": "ReserveSignerRotated",
230
+ "inputs": [
231
+ {
232
+ "name": "oldSigner",
233
+ "type": "address",
234
+ "indexed": true,
235
+ "internalType": "address"
236
+ },
237
+ {
238
+ "name": "newSigner",
239
+ "type": "address",
240
+ "indexed": true,
241
+ "internalType": "address"
242
+ }
243
+ ],
244
+ "anonymous": false
245
+ },
246
+ {
247
+ "type": "error",
248
+ "name": "P3EmptyReserveBatch",
249
+ "inputs": []
250
+ },
251
+ {
252
+ "type": "error",
253
+ "name": "P3InvalidReserveSignature",
254
+ "inputs": []
255
+ },
256
+ {
257
+ "type": "error",
258
+ "name": "P3ReserveMirrorZeroOwner",
259
+ "inputs": []
260
+ },
261
+ {
262
+ "type": "error",
263
+ "name": "P3ReserveSignerIsZero",
264
+ "inputs": []
265
+ },
266
+ {
267
+ "type": "error",
268
+ "name": "P3StaleReserveEpoch",
269
+ "inputs": [
270
+ {
271
+ "name": "provided",
272
+ "type": "uint256",
273
+ "internalType": "uint256"
274
+ },
275
+ {
276
+ "name": "current",
277
+ "type": "uint256",
278
+ "internalType": "uint256"
279
+ }
280
+ ]
281
+ }
282
+ ];
283
+ export default abi;
@@ -0,0 +1,283 @@
1
+ // Auto-generated by scripts/build-abis.mjs. Do not edit by hand.
2
+ export const abi = [
3
+ {
4
+ "type": "function",
5
+ "name": "getChainId",
6
+ "inputs": [],
7
+ "outputs": [
8
+ {
9
+ "name": "",
10
+ "type": "uint256",
11
+ "internalType": "uint256"
12
+ }
13
+ ],
14
+ "stateMutability": "view"
15
+ },
16
+ {
17
+ "type": "function",
18
+ "name": "getPerChainReserve",
19
+ "inputs": [
20
+ {
21
+ "name": "token_",
22
+ "type": "address",
23
+ "internalType": "address"
24
+ }
25
+ ],
26
+ "outputs": [
27
+ {
28
+ "name": "",
29
+ "type": "uint256",
30
+ "internalType": "uint256"
31
+ }
32
+ ],
33
+ "stateMutability": "view"
34
+ },
35
+ {
36
+ "type": "function",
37
+ "name": "getReserveEpoch",
38
+ "inputs": [],
39
+ "outputs": [
40
+ {
41
+ "name": "",
42
+ "type": "uint256",
43
+ "internalType": "uint256"
44
+ }
45
+ ],
46
+ "stateMutability": "view"
47
+ },
48
+ {
49
+ "type": "function",
50
+ "name": "getReserveRecord",
51
+ "inputs": [
52
+ {
53
+ "name": "token_",
54
+ "type": "address",
55
+ "internalType": "address"
56
+ }
57
+ ],
58
+ "outputs": [
59
+ {
60
+ "name": "",
61
+ "type": "tuple",
62
+ "internalType": "struct IP3ReserveMirror.ReserveRecord",
63
+ "components": [
64
+ {
65
+ "name": "perChainReserve",
66
+ "type": "uint256",
67
+ "internalType": "uint256"
68
+ },
69
+ {
70
+ "name": "globalReserve",
71
+ "type": "uint256",
72
+ "internalType": "uint256"
73
+ },
74
+ {
75
+ "name": "globalSupply",
76
+ "type": "uint256",
77
+ "internalType": "uint256"
78
+ },
79
+ {
80
+ "name": "epoch",
81
+ "type": "uint256",
82
+ "internalType": "uint256"
83
+ },
84
+ {
85
+ "name": "attestedAt",
86
+ "type": "uint256",
87
+ "internalType": "uint256"
88
+ }
89
+ ]
90
+ }
91
+ ],
92
+ "stateMutability": "view"
93
+ },
94
+ {
95
+ "type": "function",
96
+ "name": "getReserveSigner",
97
+ "inputs": [],
98
+ "outputs": [
99
+ {
100
+ "name": "",
101
+ "type": "address",
102
+ "internalType": "address"
103
+ }
104
+ ],
105
+ "stateMutability": "view"
106
+ },
107
+ {
108
+ "type": "function",
109
+ "name": "pushReserveBatch",
110
+ "inputs": [
111
+ {
112
+ "name": "epoch_",
113
+ "type": "uint256",
114
+ "internalType": "uint256"
115
+ },
116
+ {
117
+ "name": "reserves_",
118
+ "type": "tuple[]",
119
+ "internalType": "struct IP3ReserveMirror.ReserveAttestationInput[]",
120
+ "components": [
121
+ {
122
+ "name": "token",
123
+ "type": "address",
124
+ "internalType": "address"
125
+ },
126
+ {
127
+ "name": "perChainReserve",
128
+ "type": "uint256",
129
+ "internalType": "uint256"
130
+ },
131
+ {
132
+ "name": "globalReserve",
133
+ "type": "uint256",
134
+ "internalType": "uint256"
135
+ },
136
+ {
137
+ "name": "globalSupply",
138
+ "type": "uint256",
139
+ "internalType": "uint256"
140
+ }
141
+ ]
142
+ },
143
+ {
144
+ "name": "pearlSignature_",
145
+ "type": "bytes",
146
+ "internalType": "bytes"
147
+ }
148
+ ],
149
+ "outputs": [],
150
+ "stateMutability": "nonpayable"
151
+ },
152
+ {
153
+ "type": "function",
154
+ "name": "rotateReserveSigner",
155
+ "inputs": [
156
+ {
157
+ "name": "newSigner_",
158
+ "type": "address",
159
+ "internalType": "address"
160
+ }
161
+ ],
162
+ "outputs": [],
163
+ "stateMutability": "nonpayable"
164
+ },
165
+ {
166
+ "type": "event",
167
+ "name": "ReserveAttested",
168
+ "inputs": [
169
+ {
170
+ "name": "token",
171
+ "type": "address",
172
+ "indexed": true,
173
+ "internalType": "address"
174
+ },
175
+ {
176
+ "name": "epoch",
177
+ "type": "uint256",
178
+ "indexed": true,
179
+ "internalType": "uint256"
180
+ },
181
+ {
182
+ "name": "perChainReserve",
183
+ "type": "uint256",
184
+ "indexed": false,
185
+ "internalType": "uint256"
186
+ },
187
+ {
188
+ "name": "globalReserve",
189
+ "type": "uint256",
190
+ "indexed": false,
191
+ "internalType": "uint256"
192
+ },
193
+ {
194
+ "name": "globalSupply",
195
+ "type": "uint256",
196
+ "indexed": false,
197
+ "internalType": "uint256"
198
+ }
199
+ ],
200
+ "anonymous": false
201
+ },
202
+ {
203
+ "type": "event",
204
+ "name": "ReserveBatchAttested",
205
+ "inputs": [
206
+ {
207
+ "name": "epoch",
208
+ "type": "uint256",
209
+ "indexed": true,
210
+ "internalType": "uint256"
211
+ },
212
+ {
213
+ "name": "batchSize",
214
+ "type": "uint256",
215
+ "indexed": false,
216
+ "internalType": "uint256"
217
+ },
218
+ {
219
+ "name": "pushedBy",
220
+ "type": "address",
221
+ "indexed": true,
222
+ "internalType": "address"
223
+ }
224
+ ],
225
+ "anonymous": false
226
+ },
227
+ {
228
+ "type": "event",
229
+ "name": "ReserveSignerRotated",
230
+ "inputs": [
231
+ {
232
+ "name": "oldSigner",
233
+ "type": "address",
234
+ "indexed": true,
235
+ "internalType": "address"
236
+ },
237
+ {
238
+ "name": "newSigner",
239
+ "type": "address",
240
+ "indexed": true,
241
+ "internalType": "address"
242
+ }
243
+ ],
244
+ "anonymous": false
245
+ },
246
+ {
247
+ "type": "error",
248
+ "name": "P3EmptyReserveBatch",
249
+ "inputs": []
250
+ },
251
+ {
252
+ "type": "error",
253
+ "name": "P3InvalidReserveSignature",
254
+ "inputs": []
255
+ },
256
+ {
257
+ "type": "error",
258
+ "name": "P3ReserveMirrorZeroOwner",
259
+ "inputs": []
260
+ },
261
+ {
262
+ "type": "error",
263
+ "name": "P3ReserveSignerIsZero",
264
+ "inputs": []
265
+ },
266
+ {
267
+ "type": "error",
268
+ "name": "P3StaleReserveEpoch",
269
+ "inputs": [
270
+ {
271
+ "name": "provided",
272
+ "type": "uint256",
273
+ "internalType": "uint256"
274
+ },
275
+ {
276
+ "name": "current",
277
+ "type": "uint256",
278
+ "internalType": "uint256"
279
+ }
280
+ ]
281
+ }
282
+ ];
283
+ export default abi;