@invisi-labs/protocol 1.1.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.
- package/dist/chunk-XTOQXQES.js +4011 -0
- package/dist/chunk-XTOQXQES.js.map +1 -0
- package/dist/contracts.cjs +4042 -0
- package/dist/contracts.cjs.map +1 -0
- package/dist/contracts.d.cts +12 -0
- package/dist/contracts.d.ts +12 -0
- package/dist/contracts.js +17 -0
- package/dist/contracts.js.map +1 -0
- package/dist/index.cjs +7207 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +948 -0
- package/dist/index.d.ts +948 -0
- package/dist/index.js +3613 -0
- package/dist/index.js.map +1 -0
- package/dist/types-RN45XzKc.d.cts +3193 -0
- package/dist/types-RN45XzKc.d.ts +3193 -0
- package/package.json +46 -0
|
@@ -0,0 +1,3193 @@
|
|
|
1
|
+
import { Address, Hex } from '@invisi-labs/core';
|
|
2
|
+
|
|
3
|
+
declare const invisiProtocolAbi: readonly [{
|
|
4
|
+
readonly type: "constructor";
|
|
5
|
+
readonly inputs: readonly [{
|
|
6
|
+
readonly name: "params";
|
|
7
|
+
readonly type: "tuple";
|
|
8
|
+
readonly internalType: "struct InstanceParams";
|
|
9
|
+
readonly components: readonly [{
|
|
10
|
+
readonly name: "factory";
|
|
11
|
+
readonly type: "address";
|
|
12
|
+
readonly internalType: "address";
|
|
13
|
+
}, {
|
|
14
|
+
readonly name: "initialOwner";
|
|
15
|
+
readonly type: "address";
|
|
16
|
+
readonly internalType: "address";
|
|
17
|
+
}, {
|
|
18
|
+
readonly name: "globalEmergency";
|
|
19
|
+
readonly type: "address";
|
|
20
|
+
readonly internalType: "address";
|
|
21
|
+
}, {
|
|
22
|
+
readonly name: "emergencyAdmin";
|
|
23
|
+
readonly type: "address";
|
|
24
|
+
readonly internalType: "address";
|
|
25
|
+
}, {
|
|
26
|
+
readonly name: "verifierRouter";
|
|
27
|
+
readonly type: "address";
|
|
28
|
+
readonly internalType: "contract IVerifierRouter";
|
|
29
|
+
}];
|
|
30
|
+
}, {
|
|
31
|
+
readonly name: "_screener";
|
|
32
|
+
readonly type: "address";
|
|
33
|
+
readonly internalType: "address";
|
|
34
|
+
}];
|
|
35
|
+
readonly stateMutability: "nonpayable";
|
|
36
|
+
}, {
|
|
37
|
+
readonly type: "function";
|
|
38
|
+
readonly name: "CHAIN_ID";
|
|
39
|
+
readonly inputs: readonly [];
|
|
40
|
+
readonly outputs: readonly [{
|
|
41
|
+
readonly name: "";
|
|
42
|
+
readonly type: "uint256";
|
|
43
|
+
readonly internalType: "uint256";
|
|
44
|
+
}];
|
|
45
|
+
readonly stateMutability: "view";
|
|
46
|
+
}, {
|
|
47
|
+
readonly type: "function";
|
|
48
|
+
readonly name: "FUND_SHIELD_TYPEHASH";
|
|
49
|
+
readonly inputs: readonly [];
|
|
50
|
+
readonly outputs: readonly [{
|
|
51
|
+
readonly name: "";
|
|
52
|
+
readonly type: "bytes32";
|
|
53
|
+
readonly internalType: "bytes32";
|
|
54
|
+
}];
|
|
55
|
+
readonly stateMutability: "view";
|
|
56
|
+
}, {
|
|
57
|
+
readonly type: "function";
|
|
58
|
+
readonly name: "FUND_TRANSACT_TYPEHASH";
|
|
59
|
+
readonly inputs: readonly [];
|
|
60
|
+
readonly outputs: readonly [{
|
|
61
|
+
readonly name: "";
|
|
62
|
+
readonly type: "bytes32";
|
|
63
|
+
readonly internalType: "bytes32";
|
|
64
|
+
}];
|
|
65
|
+
readonly stateMutability: "view";
|
|
66
|
+
}, {
|
|
67
|
+
readonly type: "function";
|
|
68
|
+
readonly name: "VERSION";
|
|
69
|
+
readonly inputs: readonly [];
|
|
70
|
+
readonly outputs: readonly [{
|
|
71
|
+
readonly name: "";
|
|
72
|
+
readonly type: "uint256";
|
|
73
|
+
readonly internalType: "uint256";
|
|
74
|
+
}];
|
|
75
|
+
readonly stateMutability: "view";
|
|
76
|
+
}, {
|
|
77
|
+
readonly type: "function";
|
|
78
|
+
readonly name: "acceptOwnership";
|
|
79
|
+
readonly inputs: readonly [];
|
|
80
|
+
readonly outputs: readonly [];
|
|
81
|
+
readonly stateMutability: "nonpayable";
|
|
82
|
+
}, {
|
|
83
|
+
readonly type: "function";
|
|
84
|
+
readonly name: "activeNoteTreeId";
|
|
85
|
+
readonly inputs: readonly [];
|
|
86
|
+
readonly outputs: readonly [{
|
|
87
|
+
readonly name: "";
|
|
88
|
+
readonly type: "uint256";
|
|
89
|
+
readonly internalType: "uint256";
|
|
90
|
+
}];
|
|
91
|
+
readonly stateMutability: "view";
|
|
92
|
+
}, {
|
|
93
|
+
readonly type: "function";
|
|
94
|
+
readonly name: "cancelCredit";
|
|
95
|
+
readonly inputs: readonly [{
|
|
96
|
+
readonly name: "";
|
|
97
|
+
readonly type: "bytes";
|
|
98
|
+
readonly internalType: "bytes";
|
|
99
|
+
}, {
|
|
100
|
+
readonly name: "p";
|
|
101
|
+
readonly type: "tuple";
|
|
102
|
+
readonly internalType: "struct IInvisiProtocol.CancelCreditParams";
|
|
103
|
+
readonly components: readonly [{
|
|
104
|
+
readonly name: "token";
|
|
105
|
+
readonly type: "address";
|
|
106
|
+
readonly internalType: "address";
|
|
107
|
+
}, {
|
|
108
|
+
readonly name: "source";
|
|
109
|
+
readonly type: "tuple";
|
|
110
|
+
readonly internalType: "struct IInvisiProtocol.InputSource";
|
|
111
|
+
readonly components: readonly [{
|
|
112
|
+
readonly name: "treeId";
|
|
113
|
+
readonly type: "uint256";
|
|
114
|
+
readonly internalType: "uint256";
|
|
115
|
+
}, {
|
|
116
|
+
readonly name: "merkleRoot";
|
|
117
|
+
readonly type: "bytes32";
|
|
118
|
+
readonly internalType: "bytes32";
|
|
119
|
+
}];
|
|
120
|
+
}, {
|
|
121
|
+
readonly name: "nullifier";
|
|
122
|
+
readonly type: "bytes32";
|
|
123
|
+
readonly internalType: "bytes32";
|
|
124
|
+
}, {
|
|
125
|
+
readonly name: "owner";
|
|
126
|
+
readonly type: "address";
|
|
127
|
+
readonly internalType: "address";
|
|
128
|
+
}, {
|
|
129
|
+
readonly name: "amount";
|
|
130
|
+
readonly type: "uint256";
|
|
131
|
+
readonly internalType: "uint256";
|
|
132
|
+
}, {
|
|
133
|
+
readonly name: "deadline";
|
|
134
|
+
readonly type: "uint256";
|
|
135
|
+
readonly internalType: "uint256";
|
|
136
|
+
}];
|
|
137
|
+
}];
|
|
138
|
+
readonly outputs: readonly [];
|
|
139
|
+
readonly stateMutability: "nonpayable";
|
|
140
|
+
}, {
|
|
141
|
+
readonly type: "function";
|
|
142
|
+
readonly name: "circuitPaused";
|
|
143
|
+
readonly inputs: readonly [];
|
|
144
|
+
readonly outputs: readonly [{
|
|
145
|
+
readonly name: "";
|
|
146
|
+
readonly type: "bool";
|
|
147
|
+
readonly internalType: "bool";
|
|
148
|
+
}];
|
|
149
|
+
readonly stateMutability: "view";
|
|
150
|
+
}, {
|
|
151
|
+
readonly type: "function";
|
|
152
|
+
readonly name: "createCredit";
|
|
153
|
+
readonly inputs: readonly [{
|
|
154
|
+
readonly name: "";
|
|
155
|
+
readonly type: "bytes";
|
|
156
|
+
readonly internalType: "bytes";
|
|
157
|
+
}, {
|
|
158
|
+
readonly name: "p";
|
|
159
|
+
readonly type: "tuple";
|
|
160
|
+
readonly internalType: "struct IInvisiProtocol.CreateCreditParams";
|
|
161
|
+
readonly components: readonly [{
|
|
162
|
+
readonly name: "token";
|
|
163
|
+
readonly type: "address";
|
|
164
|
+
readonly internalType: "address";
|
|
165
|
+
}, {
|
|
166
|
+
readonly name: "sources";
|
|
167
|
+
readonly type: "tuple[]";
|
|
168
|
+
readonly internalType: "struct IInvisiProtocol.InputSource[]";
|
|
169
|
+
readonly components: readonly [{
|
|
170
|
+
readonly name: "treeId";
|
|
171
|
+
readonly type: "uint256";
|
|
172
|
+
readonly internalType: "uint256";
|
|
173
|
+
}, {
|
|
174
|
+
readonly name: "merkleRoot";
|
|
175
|
+
readonly type: "bytes32";
|
|
176
|
+
readonly internalType: "bytes32";
|
|
177
|
+
}];
|
|
178
|
+
}, {
|
|
179
|
+
readonly name: "nullifiers";
|
|
180
|
+
readonly type: "bytes32[]";
|
|
181
|
+
readonly internalType: "bytes32[]";
|
|
182
|
+
}, {
|
|
183
|
+
readonly name: "creditCommitment";
|
|
184
|
+
readonly type: "bytes32";
|
|
185
|
+
readonly internalType: "bytes32";
|
|
186
|
+
}, {
|
|
187
|
+
readonly name: "changeCommitment";
|
|
188
|
+
readonly type: "bytes32";
|
|
189
|
+
readonly internalType: "bytes32";
|
|
190
|
+
}, {
|
|
191
|
+
readonly name: "owner";
|
|
192
|
+
readonly type: "address";
|
|
193
|
+
readonly internalType: "address";
|
|
194
|
+
}, {
|
|
195
|
+
readonly name: "expiry";
|
|
196
|
+
readonly type: "uint256";
|
|
197
|
+
readonly internalType: "uint256";
|
|
198
|
+
}, {
|
|
199
|
+
readonly name: "deadline";
|
|
200
|
+
readonly type: "uint256";
|
|
201
|
+
readonly internalType: "uint256";
|
|
202
|
+
}];
|
|
203
|
+
}, {
|
|
204
|
+
readonly name: "";
|
|
205
|
+
readonly type: "tuple[]";
|
|
206
|
+
readonly internalType: "struct IInvisiProtocol.Delivery[]";
|
|
207
|
+
readonly components: readonly [{
|
|
208
|
+
readonly name: "ciphertext";
|
|
209
|
+
readonly type: "bytes";
|
|
210
|
+
readonly internalType: "bytes";
|
|
211
|
+
}, {
|
|
212
|
+
readonly name: "clue";
|
|
213
|
+
readonly type: "bytes";
|
|
214
|
+
readonly internalType: "bytes";
|
|
215
|
+
}];
|
|
216
|
+
}, {
|
|
217
|
+
readonly name: "";
|
|
218
|
+
readonly type: "tuple";
|
|
219
|
+
readonly internalType: "struct IInvisiProtocol.FundingParams";
|
|
220
|
+
readonly components: readonly [{
|
|
221
|
+
readonly name: "payer";
|
|
222
|
+
readonly type: "address";
|
|
223
|
+
readonly internalType: "address";
|
|
224
|
+
}, {
|
|
225
|
+
readonly name: "amount";
|
|
226
|
+
readonly type: "uint256";
|
|
227
|
+
readonly internalType: "uint256";
|
|
228
|
+
}, {
|
|
229
|
+
readonly name: "sigNonce";
|
|
230
|
+
readonly type: "uint256";
|
|
231
|
+
readonly internalType: "uint256";
|
|
232
|
+
}, {
|
|
233
|
+
readonly name: "deadline";
|
|
234
|
+
readonly type: "uint256";
|
|
235
|
+
readonly internalType: "uint256";
|
|
236
|
+
}, {
|
|
237
|
+
readonly name: "signature";
|
|
238
|
+
readonly type: "bytes";
|
|
239
|
+
readonly internalType: "bytes";
|
|
240
|
+
}, {
|
|
241
|
+
readonly name: "permit";
|
|
242
|
+
readonly type: "tuple";
|
|
243
|
+
readonly internalType: "struct IInvisiMetaTx.TokenPermit";
|
|
244
|
+
readonly components: readonly [{
|
|
245
|
+
readonly name: "deadline";
|
|
246
|
+
readonly type: "uint256";
|
|
247
|
+
readonly internalType: "uint256";
|
|
248
|
+
}, {
|
|
249
|
+
readonly name: "v";
|
|
250
|
+
readonly type: "uint8";
|
|
251
|
+
readonly internalType: "uint8";
|
|
252
|
+
}, {
|
|
253
|
+
readonly name: "r";
|
|
254
|
+
readonly type: "bytes32";
|
|
255
|
+
readonly internalType: "bytes32";
|
|
256
|
+
}, {
|
|
257
|
+
readonly name: "s";
|
|
258
|
+
readonly type: "bytes32";
|
|
259
|
+
readonly internalType: "bytes32";
|
|
260
|
+
}];
|
|
261
|
+
}];
|
|
262
|
+
}];
|
|
263
|
+
readonly outputs: readonly [];
|
|
264
|
+
readonly stateMutability: "nonpayable";
|
|
265
|
+
}, {
|
|
266
|
+
readonly type: "function";
|
|
267
|
+
readonly name: "creditDraw";
|
|
268
|
+
readonly inputs: readonly [{
|
|
269
|
+
readonly name: "";
|
|
270
|
+
readonly type: "bytes";
|
|
271
|
+
readonly internalType: "bytes";
|
|
272
|
+
}, {
|
|
273
|
+
readonly name: "p";
|
|
274
|
+
readonly type: "tuple";
|
|
275
|
+
readonly internalType: "struct IInvisiProtocol.CreditDrawParams";
|
|
276
|
+
readonly components: readonly [{
|
|
277
|
+
readonly name: "token";
|
|
278
|
+
readonly type: "address";
|
|
279
|
+
readonly internalType: "address";
|
|
280
|
+
}, {
|
|
281
|
+
readonly name: "sources";
|
|
282
|
+
readonly type: "tuple[]";
|
|
283
|
+
readonly internalType: "struct IInvisiProtocol.InputSource[]";
|
|
284
|
+
readonly components: readonly [{
|
|
285
|
+
readonly name: "treeId";
|
|
286
|
+
readonly type: "uint256";
|
|
287
|
+
readonly internalType: "uint256";
|
|
288
|
+
}, {
|
|
289
|
+
readonly name: "merkleRoot";
|
|
290
|
+
readonly type: "bytes32";
|
|
291
|
+
readonly internalType: "bytes32";
|
|
292
|
+
}];
|
|
293
|
+
}, {
|
|
294
|
+
readonly name: "nullifiers";
|
|
295
|
+
readonly type: "bytes32[]";
|
|
296
|
+
readonly internalType: "bytes32[]";
|
|
297
|
+
}, {
|
|
298
|
+
readonly name: "remainderCommitments";
|
|
299
|
+
readonly type: "bytes32[]";
|
|
300
|
+
readonly internalType: "bytes32[]";
|
|
301
|
+
}, {
|
|
302
|
+
readonly name: "expiries";
|
|
303
|
+
readonly type: "uint256[]";
|
|
304
|
+
readonly internalType: "uint256[]";
|
|
305
|
+
}, {
|
|
306
|
+
readonly name: "recoveryAmounts";
|
|
307
|
+
readonly type: "bytes32[]";
|
|
308
|
+
readonly internalType: "bytes32[]";
|
|
309
|
+
}, {
|
|
310
|
+
readonly name: "spender";
|
|
311
|
+
readonly type: "address";
|
|
312
|
+
readonly internalType: "address";
|
|
313
|
+
}, {
|
|
314
|
+
readonly name: "totalAmount";
|
|
315
|
+
readonly type: "uint256";
|
|
316
|
+
readonly internalType: "uint256";
|
|
317
|
+
}, {
|
|
318
|
+
readonly name: "deadline";
|
|
319
|
+
readonly type: "uint256";
|
|
320
|
+
readonly internalType: "uint256";
|
|
321
|
+
}];
|
|
322
|
+
}, {
|
|
323
|
+
readonly name: "";
|
|
324
|
+
readonly type: "tuple[]";
|
|
325
|
+
readonly internalType: "struct IInvisiProtocol.Delivery[]";
|
|
326
|
+
readonly components: readonly [{
|
|
327
|
+
readonly name: "ciphertext";
|
|
328
|
+
readonly type: "bytes";
|
|
329
|
+
readonly internalType: "bytes";
|
|
330
|
+
}, {
|
|
331
|
+
readonly name: "clue";
|
|
332
|
+
readonly type: "bytes";
|
|
333
|
+
readonly internalType: "bytes";
|
|
334
|
+
}];
|
|
335
|
+
}];
|
|
336
|
+
readonly outputs: readonly [];
|
|
337
|
+
readonly stateMutability: "nonpayable";
|
|
338
|
+
}, {
|
|
339
|
+
readonly type: "function";
|
|
340
|
+
readonly name: "eip712Domain";
|
|
341
|
+
readonly inputs: readonly [];
|
|
342
|
+
readonly outputs: readonly [{
|
|
343
|
+
readonly name: "fields";
|
|
344
|
+
readonly type: "bytes1";
|
|
345
|
+
readonly internalType: "bytes1";
|
|
346
|
+
}, {
|
|
347
|
+
readonly name: "name";
|
|
348
|
+
readonly type: "string";
|
|
349
|
+
readonly internalType: "string";
|
|
350
|
+
}, {
|
|
351
|
+
readonly name: "version";
|
|
352
|
+
readonly type: "string";
|
|
353
|
+
readonly internalType: "string";
|
|
354
|
+
}, {
|
|
355
|
+
readonly name: "chainId";
|
|
356
|
+
readonly type: "uint256";
|
|
357
|
+
readonly internalType: "uint256";
|
|
358
|
+
}, {
|
|
359
|
+
readonly name: "verifyingContract";
|
|
360
|
+
readonly type: "address";
|
|
361
|
+
readonly internalType: "address";
|
|
362
|
+
}, {
|
|
363
|
+
readonly name: "salt";
|
|
364
|
+
readonly type: "bytes32";
|
|
365
|
+
readonly internalType: "bytes32";
|
|
366
|
+
}, {
|
|
367
|
+
readonly name: "extensions";
|
|
368
|
+
readonly type: "uint256[]";
|
|
369
|
+
readonly internalType: "uint256[]";
|
|
370
|
+
}];
|
|
371
|
+
readonly stateMutability: "view";
|
|
372
|
+
}, {
|
|
373
|
+
readonly type: "function";
|
|
374
|
+
readonly name: "emergencyAdmin";
|
|
375
|
+
readonly inputs: readonly [];
|
|
376
|
+
readonly outputs: readonly [{
|
|
377
|
+
readonly name: "";
|
|
378
|
+
readonly type: "address";
|
|
379
|
+
readonly internalType: "address";
|
|
380
|
+
}];
|
|
381
|
+
readonly stateMutability: "view";
|
|
382
|
+
}, {
|
|
383
|
+
readonly type: "function";
|
|
384
|
+
readonly name: "factory";
|
|
385
|
+
readonly inputs: readonly [];
|
|
386
|
+
readonly outputs: readonly [{
|
|
387
|
+
readonly name: "";
|
|
388
|
+
readonly type: "address";
|
|
389
|
+
readonly internalType: "address";
|
|
390
|
+
}];
|
|
391
|
+
readonly stateMutability: "view";
|
|
392
|
+
}, {
|
|
393
|
+
readonly type: "function";
|
|
394
|
+
readonly name: "getNoteTreeNextLeafIndex";
|
|
395
|
+
readonly inputs: readonly [{
|
|
396
|
+
readonly name: "treeId";
|
|
397
|
+
readonly type: "uint256";
|
|
398
|
+
readonly internalType: "uint256";
|
|
399
|
+
}];
|
|
400
|
+
readonly outputs: readonly [{
|
|
401
|
+
readonly name: "";
|
|
402
|
+
readonly type: "uint32";
|
|
403
|
+
readonly internalType: "uint32";
|
|
404
|
+
}];
|
|
405
|
+
readonly stateMutability: "view";
|
|
406
|
+
}, {
|
|
407
|
+
readonly type: "function";
|
|
408
|
+
readonly name: "getNoteTreeRoot";
|
|
409
|
+
readonly inputs: readonly [{
|
|
410
|
+
readonly name: "treeId";
|
|
411
|
+
readonly type: "uint256";
|
|
412
|
+
readonly internalType: "uint256";
|
|
413
|
+
}];
|
|
414
|
+
readonly outputs: readonly [{
|
|
415
|
+
readonly name: "";
|
|
416
|
+
readonly type: "bytes32";
|
|
417
|
+
readonly internalType: "bytes32";
|
|
418
|
+
}];
|
|
419
|
+
readonly stateMutability: "view";
|
|
420
|
+
}, {
|
|
421
|
+
readonly type: "function";
|
|
422
|
+
readonly name: "getTreeCount";
|
|
423
|
+
readonly inputs: readonly [];
|
|
424
|
+
readonly outputs: readonly [{
|
|
425
|
+
readonly name: "count";
|
|
426
|
+
readonly type: "uint256";
|
|
427
|
+
readonly internalType: "uint256";
|
|
428
|
+
}];
|
|
429
|
+
readonly stateMutability: "view";
|
|
430
|
+
}, {
|
|
431
|
+
readonly type: "function";
|
|
432
|
+
readonly name: "globalEmergency";
|
|
433
|
+
readonly inputs: readonly [];
|
|
434
|
+
readonly outputs: readonly [{
|
|
435
|
+
readonly name: "";
|
|
436
|
+
readonly type: "address";
|
|
437
|
+
readonly internalType: "address";
|
|
438
|
+
}];
|
|
439
|
+
readonly stateMutability: "view";
|
|
440
|
+
}, {
|
|
441
|
+
readonly type: "function";
|
|
442
|
+
readonly name: "invalidateNonce";
|
|
443
|
+
readonly inputs: readonly [];
|
|
444
|
+
readonly outputs: readonly [];
|
|
445
|
+
readonly stateMutability: "nonpayable";
|
|
446
|
+
}, {
|
|
447
|
+
readonly type: "function";
|
|
448
|
+
readonly name: "isCommitmentPaid";
|
|
449
|
+
readonly inputs: readonly [{
|
|
450
|
+
readonly name: "noteCommitment";
|
|
451
|
+
readonly type: "bytes32";
|
|
452
|
+
readonly internalType: "bytes32";
|
|
453
|
+
}];
|
|
454
|
+
readonly outputs: readonly [{
|
|
455
|
+
readonly name: "";
|
|
456
|
+
readonly type: "bool";
|
|
457
|
+
readonly internalType: "bool";
|
|
458
|
+
}];
|
|
459
|
+
readonly stateMutability: "view";
|
|
460
|
+
}, {
|
|
461
|
+
readonly type: "function";
|
|
462
|
+
readonly name: "isNullifierSpent";
|
|
463
|
+
readonly inputs: readonly [{
|
|
464
|
+
readonly name: "nullifier";
|
|
465
|
+
readonly type: "bytes32";
|
|
466
|
+
readonly internalType: "bytes32";
|
|
467
|
+
}];
|
|
468
|
+
readonly outputs: readonly [{
|
|
469
|
+
readonly name: "";
|
|
470
|
+
readonly type: "bool";
|
|
471
|
+
readonly internalType: "bool";
|
|
472
|
+
}];
|
|
473
|
+
readonly stateMutability: "view";
|
|
474
|
+
}, {
|
|
475
|
+
readonly type: "function";
|
|
476
|
+
readonly name: "isTreeFull";
|
|
477
|
+
readonly inputs: readonly [{
|
|
478
|
+
readonly name: "treeId";
|
|
479
|
+
readonly type: "uint256";
|
|
480
|
+
readonly internalType: "uint256";
|
|
481
|
+
}];
|
|
482
|
+
readonly outputs: readonly [{
|
|
483
|
+
readonly name: "";
|
|
484
|
+
readonly type: "bool";
|
|
485
|
+
readonly internalType: "bool";
|
|
486
|
+
}];
|
|
487
|
+
readonly stateMutability: "view";
|
|
488
|
+
}, {
|
|
489
|
+
readonly type: "function";
|
|
490
|
+
readonly name: "nonces";
|
|
491
|
+
readonly inputs: readonly [{
|
|
492
|
+
readonly name: "";
|
|
493
|
+
readonly type: "address";
|
|
494
|
+
readonly internalType: "address";
|
|
495
|
+
}];
|
|
496
|
+
readonly outputs: readonly [{
|
|
497
|
+
readonly name: "";
|
|
498
|
+
readonly type: "uint256";
|
|
499
|
+
readonly internalType: "uint256";
|
|
500
|
+
}];
|
|
501
|
+
readonly stateMutability: "view";
|
|
502
|
+
}, {
|
|
503
|
+
readonly type: "function";
|
|
504
|
+
readonly name: "owner";
|
|
505
|
+
readonly inputs: readonly [];
|
|
506
|
+
readonly outputs: readonly [{
|
|
507
|
+
readonly name: "";
|
|
508
|
+
readonly type: "address";
|
|
509
|
+
readonly internalType: "address";
|
|
510
|
+
}];
|
|
511
|
+
readonly stateMutability: "view";
|
|
512
|
+
}, {
|
|
513
|
+
readonly type: "function";
|
|
514
|
+
readonly name: "pause";
|
|
515
|
+
readonly inputs: readonly [];
|
|
516
|
+
readonly outputs: readonly [];
|
|
517
|
+
readonly stateMutability: "nonpayable";
|
|
518
|
+
}, {
|
|
519
|
+
readonly type: "function";
|
|
520
|
+
readonly name: "pauseCircuit";
|
|
521
|
+
readonly inputs: readonly [];
|
|
522
|
+
readonly outputs: readonly [];
|
|
523
|
+
readonly stateMutability: "nonpayable";
|
|
524
|
+
}, {
|
|
525
|
+
readonly type: "function";
|
|
526
|
+
readonly name: "paused";
|
|
527
|
+
readonly inputs: readonly [];
|
|
528
|
+
readonly outputs: readonly [{
|
|
529
|
+
readonly name: "";
|
|
530
|
+
readonly type: "bool";
|
|
531
|
+
readonly internalType: "bool";
|
|
532
|
+
}];
|
|
533
|
+
readonly stateMutability: "view";
|
|
534
|
+
}, {
|
|
535
|
+
readonly type: "function";
|
|
536
|
+
readonly name: "pendingOwner";
|
|
537
|
+
readonly inputs: readonly [];
|
|
538
|
+
readonly outputs: readonly [{
|
|
539
|
+
readonly name: "";
|
|
540
|
+
readonly type: "address";
|
|
541
|
+
readonly internalType: "address";
|
|
542
|
+
}];
|
|
543
|
+
readonly stateMutability: "view";
|
|
544
|
+
}, {
|
|
545
|
+
readonly type: "function";
|
|
546
|
+
readonly name: "renounceOwnership";
|
|
547
|
+
readonly inputs: readonly [];
|
|
548
|
+
readonly outputs: readonly [];
|
|
549
|
+
readonly stateMutability: "nonpayable";
|
|
550
|
+
}, {
|
|
551
|
+
readonly type: "function";
|
|
552
|
+
readonly name: "rootHistory";
|
|
553
|
+
readonly inputs: readonly [{
|
|
554
|
+
readonly name: "";
|
|
555
|
+
readonly type: "uint256";
|
|
556
|
+
readonly internalType: "uint256";
|
|
557
|
+
}, {
|
|
558
|
+
readonly name: "";
|
|
559
|
+
readonly type: "bytes32";
|
|
560
|
+
readonly internalType: "bytes32";
|
|
561
|
+
}];
|
|
562
|
+
readonly outputs: readonly [{
|
|
563
|
+
readonly name: "";
|
|
564
|
+
readonly type: "bool";
|
|
565
|
+
readonly internalType: "bool";
|
|
566
|
+
}];
|
|
567
|
+
readonly stateMutability: "view";
|
|
568
|
+
}, {
|
|
569
|
+
readonly type: "function";
|
|
570
|
+
readonly name: "screener";
|
|
571
|
+
readonly inputs: readonly [];
|
|
572
|
+
readonly outputs: readonly [{
|
|
573
|
+
readonly name: "";
|
|
574
|
+
readonly type: "address";
|
|
575
|
+
readonly internalType: "address";
|
|
576
|
+
}];
|
|
577
|
+
readonly stateMutability: "view";
|
|
578
|
+
}, {
|
|
579
|
+
readonly type: "function";
|
|
580
|
+
readonly name: "setScreener";
|
|
581
|
+
readonly inputs: readonly [{
|
|
582
|
+
readonly name: "newScreener";
|
|
583
|
+
readonly type: "address";
|
|
584
|
+
readonly internalType: "address";
|
|
585
|
+
}];
|
|
586
|
+
readonly outputs: readonly [];
|
|
587
|
+
readonly stateMutability: "nonpayable";
|
|
588
|
+
}, {
|
|
589
|
+
readonly type: "function";
|
|
590
|
+
readonly name: "shield";
|
|
591
|
+
readonly inputs: readonly [{
|
|
592
|
+
readonly name: "p";
|
|
593
|
+
readonly type: "tuple";
|
|
594
|
+
readonly internalType: "struct IInvisiProtocol.ShieldParams";
|
|
595
|
+
readonly components: readonly [{
|
|
596
|
+
readonly name: "token";
|
|
597
|
+
readonly type: "address";
|
|
598
|
+
readonly internalType: "address";
|
|
599
|
+
}, {
|
|
600
|
+
readonly name: "outputCommitments";
|
|
601
|
+
readonly type: "bytes32[]";
|
|
602
|
+
readonly internalType: "bytes32[]";
|
|
603
|
+
}, {
|
|
604
|
+
readonly name: "deadline";
|
|
605
|
+
readonly type: "uint256";
|
|
606
|
+
readonly internalType: "uint256";
|
|
607
|
+
}];
|
|
608
|
+
}, {
|
|
609
|
+
readonly name: "";
|
|
610
|
+
readonly type: "tuple[]";
|
|
611
|
+
readonly internalType: "struct IInvisiProtocol.ShieldOutput[]";
|
|
612
|
+
readonly components: readonly [{
|
|
613
|
+
readonly name: "identity";
|
|
614
|
+
readonly type: "bytes32";
|
|
615
|
+
readonly internalType: "bytes32";
|
|
616
|
+
}, {
|
|
617
|
+
readonly name: "amount";
|
|
618
|
+
readonly type: "uint256";
|
|
619
|
+
readonly internalType: "uint256";
|
|
620
|
+
}];
|
|
621
|
+
}, {
|
|
622
|
+
readonly name: "";
|
|
623
|
+
readonly type: "tuple[]";
|
|
624
|
+
readonly internalType: "struct IInvisiProtocol.Delivery[]";
|
|
625
|
+
readonly components: readonly [{
|
|
626
|
+
readonly name: "ciphertext";
|
|
627
|
+
readonly type: "bytes";
|
|
628
|
+
readonly internalType: "bytes";
|
|
629
|
+
}, {
|
|
630
|
+
readonly name: "clue";
|
|
631
|
+
readonly type: "bytes";
|
|
632
|
+
readonly internalType: "bytes";
|
|
633
|
+
}];
|
|
634
|
+
}, {
|
|
635
|
+
readonly name: "";
|
|
636
|
+
readonly type: "tuple";
|
|
637
|
+
readonly internalType: "struct IInvisiProtocol.FundingParams";
|
|
638
|
+
readonly components: readonly [{
|
|
639
|
+
readonly name: "payer";
|
|
640
|
+
readonly type: "address";
|
|
641
|
+
readonly internalType: "address";
|
|
642
|
+
}, {
|
|
643
|
+
readonly name: "amount";
|
|
644
|
+
readonly type: "uint256";
|
|
645
|
+
readonly internalType: "uint256";
|
|
646
|
+
}, {
|
|
647
|
+
readonly name: "sigNonce";
|
|
648
|
+
readonly type: "uint256";
|
|
649
|
+
readonly internalType: "uint256";
|
|
650
|
+
}, {
|
|
651
|
+
readonly name: "deadline";
|
|
652
|
+
readonly type: "uint256";
|
|
653
|
+
readonly internalType: "uint256";
|
|
654
|
+
}, {
|
|
655
|
+
readonly name: "signature";
|
|
656
|
+
readonly type: "bytes";
|
|
657
|
+
readonly internalType: "bytes";
|
|
658
|
+
}, {
|
|
659
|
+
readonly name: "permit";
|
|
660
|
+
readonly type: "tuple";
|
|
661
|
+
readonly internalType: "struct IInvisiMetaTx.TokenPermit";
|
|
662
|
+
readonly components: readonly [{
|
|
663
|
+
readonly name: "deadline";
|
|
664
|
+
readonly type: "uint256";
|
|
665
|
+
readonly internalType: "uint256";
|
|
666
|
+
}, {
|
|
667
|
+
readonly name: "v";
|
|
668
|
+
readonly type: "uint8";
|
|
669
|
+
readonly internalType: "uint8";
|
|
670
|
+
}, {
|
|
671
|
+
readonly name: "r";
|
|
672
|
+
readonly type: "bytes32";
|
|
673
|
+
readonly internalType: "bytes32";
|
|
674
|
+
}, {
|
|
675
|
+
readonly name: "s";
|
|
676
|
+
readonly type: "bytes32";
|
|
677
|
+
readonly internalType: "bytes32";
|
|
678
|
+
}];
|
|
679
|
+
}];
|
|
680
|
+
}];
|
|
681
|
+
readonly outputs: readonly [];
|
|
682
|
+
readonly stateMutability: "nonpayable";
|
|
683
|
+
}, {
|
|
684
|
+
readonly type: "function";
|
|
685
|
+
readonly name: "topUpCredit";
|
|
686
|
+
readonly inputs: readonly [{
|
|
687
|
+
readonly name: "";
|
|
688
|
+
readonly type: "bytes";
|
|
689
|
+
readonly internalType: "bytes";
|
|
690
|
+
}, {
|
|
691
|
+
readonly name: "p";
|
|
692
|
+
readonly type: "tuple";
|
|
693
|
+
readonly internalType: "struct IInvisiProtocol.TopUpCreditParams";
|
|
694
|
+
readonly components: readonly [{
|
|
695
|
+
readonly name: "creation";
|
|
696
|
+
readonly type: "tuple";
|
|
697
|
+
readonly internalType: "struct IInvisiProtocol.CreateCreditParams";
|
|
698
|
+
readonly components: readonly [{
|
|
699
|
+
readonly name: "token";
|
|
700
|
+
readonly type: "address";
|
|
701
|
+
readonly internalType: "address";
|
|
702
|
+
}, {
|
|
703
|
+
readonly name: "sources";
|
|
704
|
+
readonly type: "tuple[]";
|
|
705
|
+
readonly internalType: "struct IInvisiProtocol.InputSource[]";
|
|
706
|
+
readonly components: readonly [{
|
|
707
|
+
readonly name: "treeId";
|
|
708
|
+
readonly type: "uint256";
|
|
709
|
+
readonly internalType: "uint256";
|
|
710
|
+
}, {
|
|
711
|
+
readonly name: "merkleRoot";
|
|
712
|
+
readonly type: "bytes32";
|
|
713
|
+
readonly internalType: "bytes32";
|
|
714
|
+
}];
|
|
715
|
+
}, {
|
|
716
|
+
readonly name: "nullifiers";
|
|
717
|
+
readonly type: "bytes32[]";
|
|
718
|
+
readonly internalType: "bytes32[]";
|
|
719
|
+
}, {
|
|
720
|
+
readonly name: "creditCommitment";
|
|
721
|
+
readonly type: "bytes32";
|
|
722
|
+
readonly internalType: "bytes32";
|
|
723
|
+
}, {
|
|
724
|
+
readonly name: "changeCommitment";
|
|
725
|
+
readonly type: "bytes32";
|
|
726
|
+
readonly internalType: "bytes32";
|
|
727
|
+
}, {
|
|
728
|
+
readonly name: "owner";
|
|
729
|
+
readonly type: "address";
|
|
730
|
+
readonly internalType: "address";
|
|
731
|
+
}, {
|
|
732
|
+
readonly name: "expiry";
|
|
733
|
+
readonly type: "uint256";
|
|
734
|
+
readonly internalType: "uint256";
|
|
735
|
+
}, {
|
|
736
|
+
readonly name: "deadline";
|
|
737
|
+
readonly type: "uint256";
|
|
738
|
+
readonly internalType: "uint256";
|
|
739
|
+
}];
|
|
740
|
+
}, {
|
|
741
|
+
readonly name: "creditSource";
|
|
742
|
+
readonly type: "tuple";
|
|
743
|
+
readonly internalType: "struct IInvisiProtocol.InputSource";
|
|
744
|
+
readonly components: readonly [{
|
|
745
|
+
readonly name: "treeId";
|
|
746
|
+
readonly type: "uint256";
|
|
747
|
+
readonly internalType: "uint256";
|
|
748
|
+
}, {
|
|
749
|
+
readonly name: "merkleRoot";
|
|
750
|
+
readonly type: "bytes32";
|
|
751
|
+
readonly internalType: "bytes32";
|
|
752
|
+
}];
|
|
753
|
+
}, {
|
|
754
|
+
readonly name: "creditNullifier";
|
|
755
|
+
readonly type: "bytes32";
|
|
756
|
+
readonly internalType: "bytes32";
|
|
757
|
+
}, {
|
|
758
|
+
readonly name: "previousExpiry";
|
|
759
|
+
readonly type: "uint256";
|
|
760
|
+
readonly internalType: "uint256";
|
|
761
|
+
}];
|
|
762
|
+
}, {
|
|
763
|
+
readonly name: "";
|
|
764
|
+
readonly type: "tuple[]";
|
|
765
|
+
readonly internalType: "struct IInvisiProtocol.Delivery[]";
|
|
766
|
+
readonly components: readonly [{
|
|
767
|
+
readonly name: "ciphertext";
|
|
768
|
+
readonly type: "bytes";
|
|
769
|
+
readonly internalType: "bytes";
|
|
770
|
+
}, {
|
|
771
|
+
readonly name: "clue";
|
|
772
|
+
readonly type: "bytes";
|
|
773
|
+
readonly internalType: "bytes";
|
|
774
|
+
}];
|
|
775
|
+
}, {
|
|
776
|
+
readonly name: "";
|
|
777
|
+
readonly type: "tuple";
|
|
778
|
+
readonly internalType: "struct IInvisiProtocol.FundingParams";
|
|
779
|
+
readonly components: readonly [{
|
|
780
|
+
readonly name: "payer";
|
|
781
|
+
readonly type: "address";
|
|
782
|
+
readonly internalType: "address";
|
|
783
|
+
}, {
|
|
784
|
+
readonly name: "amount";
|
|
785
|
+
readonly type: "uint256";
|
|
786
|
+
readonly internalType: "uint256";
|
|
787
|
+
}, {
|
|
788
|
+
readonly name: "sigNonce";
|
|
789
|
+
readonly type: "uint256";
|
|
790
|
+
readonly internalType: "uint256";
|
|
791
|
+
}, {
|
|
792
|
+
readonly name: "deadline";
|
|
793
|
+
readonly type: "uint256";
|
|
794
|
+
readonly internalType: "uint256";
|
|
795
|
+
}, {
|
|
796
|
+
readonly name: "signature";
|
|
797
|
+
readonly type: "bytes";
|
|
798
|
+
readonly internalType: "bytes";
|
|
799
|
+
}, {
|
|
800
|
+
readonly name: "permit";
|
|
801
|
+
readonly type: "tuple";
|
|
802
|
+
readonly internalType: "struct IInvisiMetaTx.TokenPermit";
|
|
803
|
+
readonly components: readonly [{
|
|
804
|
+
readonly name: "deadline";
|
|
805
|
+
readonly type: "uint256";
|
|
806
|
+
readonly internalType: "uint256";
|
|
807
|
+
}, {
|
|
808
|
+
readonly name: "v";
|
|
809
|
+
readonly type: "uint8";
|
|
810
|
+
readonly internalType: "uint8";
|
|
811
|
+
}, {
|
|
812
|
+
readonly name: "r";
|
|
813
|
+
readonly type: "bytes32";
|
|
814
|
+
readonly internalType: "bytes32";
|
|
815
|
+
}, {
|
|
816
|
+
readonly name: "s";
|
|
817
|
+
readonly type: "bytes32";
|
|
818
|
+
readonly internalType: "bytes32";
|
|
819
|
+
}];
|
|
820
|
+
}];
|
|
821
|
+
}];
|
|
822
|
+
readonly outputs: readonly [];
|
|
823
|
+
readonly stateMutability: "nonpayable";
|
|
824
|
+
}, {
|
|
825
|
+
readonly type: "function";
|
|
826
|
+
readonly name: "transact";
|
|
827
|
+
readonly inputs: readonly [{
|
|
828
|
+
readonly name: "";
|
|
829
|
+
readonly type: "bytes";
|
|
830
|
+
readonly internalType: "bytes";
|
|
831
|
+
}, {
|
|
832
|
+
readonly name: "requests";
|
|
833
|
+
readonly type: "tuple[]";
|
|
834
|
+
readonly internalType: "struct IInvisiProtocol.TransactRequest[]";
|
|
835
|
+
readonly components: readonly [{
|
|
836
|
+
readonly name: "params";
|
|
837
|
+
readonly type: "tuple";
|
|
838
|
+
readonly internalType: "struct IInvisiProtocol.CrossTreeTransactParams";
|
|
839
|
+
readonly components: readonly [{
|
|
840
|
+
readonly name: "token";
|
|
841
|
+
readonly type: "address";
|
|
842
|
+
readonly internalType: "address";
|
|
843
|
+
}, {
|
|
844
|
+
readonly name: "sources";
|
|
845
|
+
readonly type: "tuple[]";
|
|
846
|
+
readonly internalType: "struct IInvisiProtocol.InputSource[]";
|
|
847
|
+
readonly components: readonly [{
|
|
848
|
+
readonly name: "treeId";
|
|
849
|
+
readonly type: "uint256";
|
|
850
|
+
readonly internalType: "uint256";
|
|
851
|
+
}, {
|
|
852
|
+
readonly name: "merkleRoot";
|
|
853
|
+
readonly type: "bytes32";
|
|
854
|
+
readonly internalType: "bytes32";
|
|
855
|
+
}];
|
|
856
|
+
}, {
|
|
857
|
+
readonly name: "nullifiers";
|
|
858
|
+
readonly type: "bytes32[]";
|
|
859
|
+
readonly internalType: "bytes32[]";
|
|
860
|
+
}, {
|
|
861
|
+
readonly name: "outputCommitments";
|
|
862
|
+
readonly type: "bytes32[]";
|
|
863
|
+
readonly internalType: "bytes32[]";
|
|
864
|
+
}, {
|
|
865
|
+
readonly name: "withdrawalAddress";
|
|
866
|
+
readonly type: "address";
|
|
867
|
+
readonly internalType: "address";
|
|
868
|
+
}, {
|
|
869
|
+
readonly name: "withdrawalAmount";
|
|
870
|
+
readonly type: "uint256";
|
|
871
|
+
readonly internalType: "uint256";
|
|
872
|
+
}, {
|
|
873
|
+
readonly name: "deadline";
|
|
874
|
+
readonly type: "uint256";
|
|
875
|
+
readonly internalType: "uint256";
|
|
876
|
+
}];
|
|
877
|
+
}, {
|
|
878
|
+
readonly name: "deliveries";
|
|
879
|
+
readonly type: "tuple[]";
|
|
880
|
+
readonly internalType: "struct IInvisiProtocol.Delivery[]";
|
|
881
|
+
readonly components: readonly [{
|
|
882
|
+
readonly name: "ciphertext";
|
|
883
|
+
readonly type: "bytes";
|
|
884
|
+
readonly internalType: "bytes";
|
|
885
|
+
}, {
|
|
886
|
+
readonly name: "clue";
|
|
887
|
+
readonly type: "bytes";
|
|
888
|
+
readonly internalType: "bytes";
|
|
889
|
+
}];
|
|
890
|
+
}, {
|
|
891
|
+
readonly name: "funding";
|
|
892
|
+
readonly type: "tuple";
|
|
893
|
+
readonly internalType: "struct IInvisiProtocol.FundingParams";
|
|
894
|
+
readonly components: readonly [{
|
|
895
|
+
readonly name: "payer";
|
|
896
|
+
readonly type: "address";
|
|
897
|
+
readonly internalType: "address";
|
|
898
|
+
}, {
|
|
899
|
+
readonly name: "amount";
|
|
900
|
+
readonly type: "uint256";
|
|
901
|
+
readonly internalType: "uint256";
|
|
902
|
+
}, {
|
|
903
|
+
readonly name: "sigNonce";
|
|
904
|
+
readonly type: "uint256";
|
|
905
|
+
readonly internalType: "uint256";
|
|
906
|
+
}, {
|
|
907
|
+
readonly name: "deadline";
|
|
908
|
+
readonly type: "uint256";
|
|
909
|
+
readonly internalType: "uint256";
|
|
910
|
+
}, {
|
|
911
|
+
readonly name: "signature";
|
|
912
|
+
readonly type: "bytes";
|
|
913
|
+
readonly internalType: "bytes";
|
|
914
|
+
}, {
|
|
915
|
+
readonly name: "permit";
|
|
916
|
+
readonly type: "tuple";
|
|
917
|
+
readonly internalType: "struct IInvisiMetaTx.TokenPermit";
|
|
918
|
+
readonly components: readonly [{
|
|
919
|
+
readonly name: "deadline";
|
|
920
|
+
readonly type: "uint256";
|
|
921
|
+
readonly internalType: "uint256";
|
|
922
|
+
}, {
|
|
923
|
+
readonly name: "v";
|
|
924
|
+
readonly type: "uint8";
|
|
925
|
+
readonly internalType: "uint8";
|
|
926
|
+
}, {
|
|
927
|
+
readonly name: "r";
|
|
928
|
+
readonly type: "bytes32";
|
|
929
|
+
readonly internalType: "bytes32";
|
|
930
|
+
}, {
|
|
931
|
+
readonly name: "s";
|
|
932
|
+
readonly type: "bytes32";
|
|
933
|
+
readonly internalType: "bytes32";
|
|
934
|
+
}];
|
|
935
|
+
}];
|
|
936
|
+
}];
|
|
937
|
+
}];
|
|
938
|
+
readonly outputs: readonly [];
|
|
939
|
+
readonly stateMutability: "nonpayable";
|
|
940
|
+
}, {
|
|
941
|
+
readonly type: "function";
|
|
942
|
+
readonly name: "transact";
|
|
943
|
+
readonly inputs: readonly [{
|
|
944
|
+
readonly name: "";
|
|
945
|
+
readonly type: "bytes";
|
|
946
|
+
readonly internalType: "bytes";
|
|
947
|
+
}, {
|
|
948
|
+
readonly name: "r";
|
|
949
|
+
readonly type: "tuple";
|
|
950
|
+
readonly internalType: "struct IInvisiProtocol.TransactRequest";
|
|
951
|
+
readonly components: readonly [{
|
|
952
|
+
readonly name: "params";
|
|
953
|
+
readonly type: "tuple";
|
|
954
|
+
readonly internalType: "struct IInvisiProtocol.CrossTreeTransactParams";
|
|
955
|
+
readonly components: readonly [{
|
|
956
|
+
readonly name: "token";
|
|
957
|
+
readonly type: "address";
|
|
958
|
+
readonly internalType: "address";
|
|
959
|
+
}, {
|
|
960
|
+
readonly name: "sources";
|
|
961
|
+
readonly type: "tuple[]";
|
|
962
|
+
readonly internalType: "struct IInvisiProtocol.InputSource[]";
|
|
963
|
+
readonly components: readonly [{
|
|
964
|
+
readonly name: "treeId";
|
|
965
|
+
readonly type: "uint256";
|
|
966
|
+
readonly internalType: "uint256";
|
|
967
|
+
}, {
|
|
968
|
+
readonly name: "merkleRoot";
|
|
969
|
+
readonly type: "bytes32";
|
|
970
|
+
readonly internalType: "bytes32";
|
|
971
|
+
}];
|
|
972
|
+
}, {
|
|
973
|
+
readonly name: "nullifiers";
|
|
974
|
+
readonly type: "bytes32[]";
|
|
975
|
+
readonly internalType: "bytes32[]";
|
|
976
|
+
}, {
|
|
977
|
+
readonly name: "outputCommitments";
|
|
978
|
+
readonly type: "bytes32[]";
|
|
979
|
+
readonly internalType: "bytes32[]";
|
|
980
|
+
}, {
|
|
981
|
+
readonly name: "withdrawalAddress";
|
|
982
|
+
readonly type: "address";
|
|
983
|
+
readonly internalType: "address";
|
|
984
|
+
}, {
|
|
985
|
+
readonly name: "withdrawalAmount";
|
|
986
|
+
readonly type: "uint256";
|
|
987
|
+
readonly internalType: "uint256";
|
|
988
|
+
}, {
|
|
989
|
+
readonly name: "deadline";
|
|
990
|
+
readonly type: "uint256";
|
|
991
|
+
readonly internalType: "uint256";
|
|
992
|
+
}];
|
|
993
|
+
}, {
|
|
994
|
+
readonly name: "deliveries";
|
|
995
|
+
readonly type: "tuple[]";
|
|
996
|
+
readonly internalType: "struct IInvisiProtocol.Delivery[]";
|
|
997
|
+
readonly components: readonly [{
|
|
998
|
+
readonly name: "ciphertext";
|
|
999
|
+
readonly type: "bytes";
|
|
1000
|
+
readonly internalType: "bytes";
|
|
1001
|
+
}, {
|
|
1002
|
+
readonly name: "clue";
|
|
1003
|
+
readonly type: "bytes";
|
|
1004
|
+
readonly internalType: "bytes";
|
|
1005
|
+
}];
|
|
1006
|
+
}, {
|
|
1007
|
+
readonly name: "funding";
|
|
1008
|
+
readonly type: "tuple";
|
|
1009
|
+
readonly internalType: "struct IInvisiProtocol.FundingParams";
|
|
1010
|
+
readonly components: readonly [{
|
|
1011
|
+
readonly name: "payer";
|
|
1012
|
+
readonly type: "address";
|
|
1013
|
+
readonly internalType: "address";
|
|
1014
|
+
}, {
|
|
1015
|
+
readonly name: "amount";
|
|
1016
|
+
readonly type: "uint256";
|
|
1017
|
+
readonly internalType: "uint256";
|
|
1018
|
+
}, {
|
|
1019
|
+
readonly name: "sigNonce";
|
|
1020
|
+
readonly type: "uint256";
|
|
1021
|
+
readonly internalType: "uint256";
|
|
1022
|
+
}, {
|
|
1023
|
+
readonly name: "deadline";
|
|
1024
|
+
readonly type: "uint256";
|
|
1025
|
+
readonly internalType: "uint256";
|
|
1026
|
+
}, {
|
|
1027
|
+
readonly name: "signature";
|
|
1028
|
+
readonly type: "bytes";
|
|
1029
|
+
readonly internalType: "bytes";
|
|
1030
|
+
}, {
|
|
1031
|
+
readonly name: "permit";
|
|
1032
|
+
readonly type: "tuple";
|
|
1033
|
+
readonly internalType: "struct IInvisiMetaTx.TokenPermit";
|
|
1034
|
+
readonly components: readonly [{
|
|
1035
|
+
readonly name: "deadline";
|
|
1036
|
+
readonly type: "uint256";
|
|
1037
|
+
readonly internalType: "uint256";
|
|
1038
|
+
}, {
|
|
1039
|
+
readonly name: "v";
|
|
1040
|
+
readonly type: "uint8";
|
|
1041
|
+
readonly internalType: "uint8";
|
|
1042
|
+
}, {
|
|
1043
|
+
readonly name: "r";
|
|
1044
|
+
readonly type: "bytes32";
|
|
1045
|
+
readonly internalType: "bytes32";
|
|
1046
|
+
}, {
|
|
1047
|
+
readonly name: "s";
|
|
1048
|
+
readonly type: "bytes32";
|
|
1049
|
+
readonly internalType: "bytes32";
|
|
1050
|
+
}];
|
|
1051
|
+
}];
|
|
1052
|
+
}];
|
|
1053
|
+
}];
|
|
1054
|
+
readonly outputs: readonly [];
|
|
1055
|
+
readonly stateMutability: "nonpayable";
|
|
1056
|
+
}, {
|
|
1057
|
+
readonly type: "function";
|
|
1058
|
+
readonly name: "transferOwnership";
|
|
1059
|
+
readonly inputs: readonly [{
|
|
1060
|
+
readonly name: "newOwner";
|
|
1061
|
+
readonly type: "address";
|
|
1062
|
+
readonly internalType: "address";
|
|
1063
|
+
}];
|
|
1064
|
+
readonly outputs: readonly [];
|
|
1065
|
+
readonly stateMutability: "nonpayable";
|
|
1066
|
+
}, {
|
|
1067
|
+
readonly type: "function";
|
|
1068
|
+
readonly name: "unpause";
|
|
1069
|
+
readonly inputs: readonly [];
|
|
1070
|
+
readonly outputs: readonly [];
|
|
1071
|
+
readonly stateMutability: "nonpayable";
|
|
1072
|
+
}, {
|
|
1073
|
+
readonly type: "function";
|
|
1074
|
+
readonly name: "unpauseCircuit";
|
|
1075
|
+
readonly inputs: readonly [];
|
|
1076
|
+
readonly outputs: readonly [];
|
|
1077
|
+
readonly stateMutability: "nonpayable";
|
|
1078
|
+
}, {
|
|
1079
|
+
readonly type: "function";
|
|
1080
|
+
readonly name: "verifierRouter";
|
|
1081
|
+
readonly inputs: readonly [];
|
|
1082
|
+
readonly outputs: readonly [{
|
|
1083
|
+
readonly name: "";
|
|
1084
|
+
readonly type: "address";
|
|
1085
|
+
readonly internalType: "contract IVerifierRouter";
|
|
1086
|
+
}];
|
|
1087
|
+
readonly stateMutability: "view";
|
|
1088
|
+
}, {
|
|
1089
|
+
readonly type: "event";
|
|
1090
|
+
readonly name: "BatchOutputs";
|
|
1091
|
+
readonly inputs: readonly [{
|
|
1092
|
+
readonly name: "treeId";
|
|
1093
|
+
readonly type: "uint256";
|
|
1094
|
+
readonly indexed: true;
|
|
1095
|
+
readonly internalType: "uint256";
|
|
1096
|
+
}, {
|
|
1097
|
+
readonly name: "startLeafIndex";
|
|
1098
|
+
readonly type: "uint32";
|
|
1099
|
+
readonly indexed: false;
|
|
1100
|
+
readonly internalType: "uint32";
|
|
1101
|
+
}, {
|
|
1102
|
+
readonly name: "firstOutputOffset";
|
|
1103
|
+
readonly type: "uint256";
|
|
1104
|
+
readonly indexed: false;
|
|
1105
|
+
readonly internalType: "uint256";
|
|
1106
|
+
}, {
|
|
1107
|
+
readonly name: "tokens";
|
|
1108
|
+
readonly type: "address[]";
|
|
1109
|
+
readonly indexed: false;
|
|
1110
|
+
readonly internalType: "address[]";
|
|
1111
|
+
}, {
|
|
1112
|
+
readonly name: "commitments";
|
|
1113
|
+
readonly type: "bytes32[]";
|
|
1114
|
+
readonly indexed: false;
|
|
1115
|
+
readonly internalType: "bytes32[]";
|
|
1116
|
+
}, {
|
|
1117
|
+
readonly name: "packedDeliveries";
|
|
1118
|
+
readonly type: "bytes";
|
|
1119
|
+
readonly indexed: false;
|
|
1120
|
+
readonly internalType: "bytes";
|
|
1121
|
+
}];
|
|
1122
|
+
readonly anonymous: false;
|
|
1123
|
+
}, {
|
|
1124
|
+
readonly type: "event";
|
|
1125
|
+
readonly name: "BatchRequest";
|
|
1126
|
+
readonly inputs: readonly [{
|
|
1127
|
+
readonly name: "token";
|
|
1128
|
+
readonly type: "address";
|
|
1129
|
+
readonly indexed: false;
|
|
1130
|
+
readonly internalType: "address";
|
|
1131
|
+
}, {
|
|
1132
|
+
readonly name: "requestIndex";
|
|
1133
|
+
readonly type: "uint256";
|
|
1134
|
+
readonly indexed: true;
|
|
1135
|
+
readonly internalType: "uint256";
|
|
1136
|
+
}, {
|
|
1137
|
+
readonly name: "capacity";
|
|
1138
|
+
readonly type: "uint256";
|
|
1139
|
+
readonly indexed: false;
|
|
1140
|
+
readonly internalType: "uint256";
|
|
1141
|
+
}, {
|
|
1142
|
+
readonly name: "sources";
|
|
1143
|
+
readonly type: "tuple[]";
|
|
1144
|
+
readonly indexed: false;
|
|
1145
|
+
readonly internalType: "struct IInvisiProtocol.InputSource[]";
|
|
1146
|
+
readonly components: readonly [{
|
|
1147
|
+
readonly name: "treeId";
|
|
1148
|
+
readonly type: "uint256";
|
|
1149
|
+
readonly internalType: "uint256";
|
|
1150
|
+
}, {
|
|
1151
|
+
readonly name: "merkleRoot";
|
|
1152
|
+
readonly type: "bytes32";
|
|
1153
|
+
readonly internalType: "bytes32";
|
|
1154
|
+
}];
|
|
1155
|
+
}, {
|
|
1156
|
+
readonly name: "nullifiers";
|
|
1157
|
+
readonly type: "bytes32[]";
|
|
1158
|
+
readonly indexed: false;
|
|
1159
|
+
readonly internalType: "bytes32[]";
|
|
1160
|
+
}, {
|
|
1161
|
+
readonly name: "outputCount";
|
|
1162
|
+
readonly type: "uint256";
|
|
1163
|
+
readonly indexed: false;
|
|
1164
|
+
readonly internalType: "uint256";
|
|
1165
|
+
}, {
|
|
1166
|
+
readonly name: "payer";
|
|
1167
|
+
readonly type: "address";
|
|
1168
|
+
readonly indexed: false;
|
|
1169
|
+
readonly internalType: "address";
|
|
1170
|
+
}, {
|
|
1171
|
+
readonly name: "depositAmount";
|
|
1172
|
+
readonly type: "uint256";
|
|
1173
|
+
readonly indexed: false;
|
|
1174
|
+
readonly internalType: "uint256";
|
|
1175
|
+
}, {
|
|
1176
|
+
readonly name: "withdrawalAddress";
|
|
1177
|
+
readonly type: "address";
|
|
1178
|
+
readonly indexed: false;
|
|
1179
|
+
readonly internalType: "address";
|
|
1180
|
+
}, {
|
|
1181
|
+
readonly name: "withdrawalAmount";
|
|
1182
|
+
readonly type: "uint256";
|
|
1183
|
+
readonly indexed: false;
|
|
1184
|
+
readonly internalType: "uint256";
|
|
1185
|
+
}, {
|
|
1186
|
+
readonly name: "deadline";
|
|
1187
|
+
readonly type: "uint256";
|
|
1188
|
+
readonly indexed: false;
|
|
1189
|
+
readonly internalType: "uint256";
|
|
1190
|
+
}, {
|
|
1191
|
+
readonly name: "statementHash";
|
|
1192
|
+
readonly type: "bytes32";
|
|
1193
|
+
readonly indexed: false;
|
|
1194
|
+
readonly internalType: "bytes32";
|
|
1195
|
+
}];
|
|
1196
|
+
readonly anonymous: false;
|
|
1197
|
+
}, {
|
|
1198
|
+
readonly type: "event";
|
|
1199
|
+
readonly name: "CircuitPauseUpdated";
|
|
1200
|
+
readonly inputs: readonly [{
|
|
1201
|
+
readonly name: "paused";
|
|
1202
|
+
readonly type: "bool";
|
|
1203
|
+
readonly indexed: false;
|
|
1204
|
+
readonly internalType: "bool";
|
|
1205
|
+
}];
|
|
1206
|
+
readonly anonymous: false;
|
|
1207
|
+
}, {
|
|
1208
|
+
readonly type: "event";
|
|
1209
|
+
readonly name: "CommitmentsInserted";
|
|
1210
|
+
readonly inputs: readonly [{
|
|
1211
|
+
readonly name: "treeId";
|
|
1212
|
+
readonly type: "uint256";
|
|
1213
|
+
readonly indexed: true;
|
|
1214
|
+
readonly internalType: "uint256";
|
|
1215
|
+
}, {
|
|
1216
|
+
readonly name: "startLeafIndex";
|
|
1217
|
+
readonly type: "uint32";
|
|
1218
|
+
readonly indexed: false;
|
|
1219
|
+
readonly internalType: "uint32";
|
|
1220
|
+
}, {
|
|
1221
|
+
readonly name: "commitments";
|
|
1222
|
+
readonly type: "bytes32[]";
|
|
1223
|
+
readonly indexed: false;
|
|
1224
|
+
readonly internalType: "bytes32[]";
|
|
1225
|
+
}];
|
|
1226
|
+
readonly anonymous: false;
|
|
1227
|
+
}, {
|
|
1228
|
+
readonly type: "event";
|
|
1229
|
+
readonly name: "CreditCancelled";
|
|
1230
|
+
readonly inputs: readonly [{
|
|
1231
|
+
readonly name: "token";
|
|
1232
|
+
readonly type: "address";
|
|
1233
|
+
readonly indexed: false;
|
|
1234
|
+
readonly internalType: "address";
|
|
1235
|
+
}, {
|
|
1236
|
+
readonly name: "owner";
|
|
1237
|
+
readonly type: "address";
|
|
1238
|
+
readonly indexed: true;
|
|
1239
|
+
readonly internalType: "address";
|
|
1240
|
+
}, {
|
|
1241
|
+
readonly name: "inputTreeId";
|
|
1242
|
+
readonly type: "uint256";
|
|
1243
|
+
readonly indexed: true;
|
|
1244
|
+
readonly internalType: "uint256";
|
|
1245
|
+
}, {
|
|
1246
|
+
readonly name: "nullifier";
|
|
1247
|
+
readonly type: "bytes32";
|
|
1248
|
+
readonly indexed: true;
|
|
1249
|
+
readonly internalType: "bytes32";
|
|
1250
|
+
}, {
|
|
1251
|
+
readonly name: "amount";
|
|
1252
|
+
readonly type: "uint256";
|
|
1253
|
+
readonly indexed: false;
|
|
1254
|
+
readonly internalType: "uint256";
|
|
1255
|
+
}];
|
|
1256
|
+
readonly anonymous: false;
|
|
1257
|
+
}, {
|
|
1258
|
+
readonly type: "event";
|
|
1259
|
+
readonly name: "CreditCreated";
|
|
1260
|
+
readonly inputs: readonly [{
|
|
1261
|
+
readonly name: "token";
|
|
1262
|
+
readonly type: "address";
|
|
1263
|
+
readonly indexed: false;
|
|
1264
|
+
readonly internalType: "address";
|
|
1265
|
+
}, {
|
|
1266
|
+
readonly name: "owner";
|
|
1267
|
+
readonly type: "address";
|
|
1268
|
+
readonly indexed: true;
|
|
1269
|
+
readonly internalType: "address";
|
|
1270
|
+
}, {
|
|
1271
|
+
readonly name: "outputTreeId";
|
|
1272
|
+
readonly type: "uint256";
|
|
1273
|
+
readonly indexed: true;
|
|
1274
|
+
readonly internalType: "uint256";
|
|
1275
|
+
}, {
|
|
1276
|
+
readonly name: "sources";
|
|
1277
|
+
readonly type: "tuple[]";
|
|
1278
|
+
readonly indexed: false;
|
|
1279
|
+
readonly internalType: "struct IInvisiProtocol.InputSource[]";
|
|
1280
|
+
readonly components: readonly [{
|
|
1281
|
+
readonly name: "treeId";
|
|
1282
|
+
readonly type: "uint256";
|
|
1283
|
+
readonly internalType: "uint256";
|
|
1284
|
+
}, {
|
|
1285
|
+
readonly name: "merkleRoot";
|
|
1286
|
+
readonly type: "bytes32";
|
|
1287
|
+
readonly internalType: "bytes32";
|
|
1288
|
+
}];
|
|
1289
|
+
}, {
|
|
1290
|
+
readonly name: "nullifiers";
|
|
1291
|
+
readonly type: "bytes32[]";
|
|
1292
|
+
readonly indexed: false;
|
|
1293
|
+
readonly internalType: "bytes32[]";
|
|
1294
|
+
}, {
|
|
1295
|
+
readonly name: "creditCommitment";
|
|
1296
|
+
readonly type: "bytes32";
|
|
1297
|
+
readonly indexed: false;
|
|
1298
|
+
readonly internalType: "bytes32";
|
|
1299
|
+
}, {
|
|
1300
|
+
readonly name: "changeCommitment";
|
|
1301
|
+
readonly type: "bytes32";
|
|
1302
|
+
readonly indexed: false;
|
|
1303
|
+
readonly internalType: "bytes32";
|
|
1304
|
+
}, {
|
|
1305
|
+
readonly name: "leafIndices";
|
|
1306
|
+
readonly type: "uint32[]";
|
|
1307
|
+
readonly indexed: false;
|
|
1308
|
+
readonly internalType: "uint32[]";
|
|
1309
|
+
}, {
|
|
1310
|
+
readonly name: "deliveries";
|
|
1311
|
+
readonly type: "tuple[]";
|
|
1312
|
+
readonly indexed: false;
|
|
1313
|
+
readonly internalType: "struct IInvisiProtocol.Delivery[]";
|
|
1314
|
+
readonly components: readonly [{
|
|
1315
|
+
readonly name: "ciphertext";
|
|
1316
|
+
readonly type: "bytes";
|
|
1317
|
+
readonly internalType: "bytes";
|
|
1318
|
+
}, {
|
|
1319
|
+
readonly name: "clue";
|
|
1320
|
+
readonly type: "bytes";
|
|
1321
|
+
readonly internalType: "bytes";
|
|
1322
|
+
}];
|
|
1323
|
+
}, {
|
|
1324
|
+
readonly name: "expiry";
|
|
1325
|
+
readonly type: "uint256";
|
|
1326
|
+
readonly indexed: false;
|
|
1327
|
+
readonly internalType: "uint256";
|
|
1328
|
+
}];
|
|
1329
|
+
readonly anonymous: false;
|
|
1330
|
+
}, {
|
|
1331
|
+
readonly type: "event";
|
|
1332
|
+
readonly name: "CreditDraw";
|
|
1333
|
+
readonly inputs: readonly [{
|
|
1334
|
+
readonly name: "spender";
|
|
1335
|
+
readonly type: "address";
|
|
1336
|
+
readonly indexed: true;
|
|
1337
|
+
readonly internalType: "address";
|
|
1338
|
+
}, {
|
|
1339
|
+
readonly name: "outputTreeId";
|
|
1340
|
+
readonly type: "uint256";
|
|
1341
|
+
readonly indexed: true;
|
|
1342
|
+
readonly internalType: "uint256";
|
|
1343
|
+
}, {
|
|
1344
|
+
readonly name: "params";
|
|
1345
|
+
readonly type: "tuple";
|
|
1346
|
+
readonly indexed: false;
|
|
1347
|
+
readonly internalType: "struct IInvisiProtocol.CreditDrawParams";
|
|
1348
|
+
readonly components: readonly [{
|
|
1349
|
+
readonly name: "token";
|
|
1350
|
+
readonly type: "address";
|
|
1351
|
+
readonly internalType: "address";
|
|
1352
|
+
}, {
|
|
1353
|
+
readonly name: "sources";
|
|
1354
|
+
readonly type: "tuple[]";
|
|
1355
|
+
readonly internalType: "struct IInvisiProtocol.InputSource[]";
|
|
1356
|
+
readonly components: readonly [{
|
|
1357
|
+
readonly name: "treeId";
|
|
1358
|
+
readonly type: "uint256";
|
|
1359
|
+
readonly internalType: "uint256";
|
|
1360
|
+
}, {
|
|
1361
|
+
readonly name: "merkleRoot";
|
|
1362
|
+
readonly type: "bytes32";
|
|
1363
|
+
readonly internalType: "bytes32";
|
|
1364
|
+
}];
|
|
1365
|
+
}, {
|
|
1366
|
+
readonly name: "nullifiers";
|
|
1367
|
+
readonly type: "bytes32[]";
|
|
1368
|
+
readonly internalType: "bytes32[]";
|
|
1369
|
+
}, {
|
|
1370
|
+
readonly name: "remainderCommitments";
|
|
1371
|
+
readonly type: "bytes32[]";
|
|
1372
|
+
readonly internalType: "bytes32[]";
|
|
1373
|
+
}, {
|
|
1374
|
+
readonly name: "expiries";
|
|
1375
|
+
readonly type: "uint256[]";
|
|
1376
|
+
readonly internalType: "uint256[]";
|
|
1377
|
+
}, {
|
|
1378
|
+
readonly name: "recoveryAmounts";
|
|
1379
|
+
readonly type: "bytes32[]";
|
|
1380
|
+
readonly internalType: "bytes32[]";
|
|
1381
|
+
}, {
|
|
1382
|
+
readonly name: "spender";
|
|
1383
|
+
readonly type: "address";
|
|
1384
|
+
readonly internalType: "address";
|
|
1385
|
+
}, {
|
|
1386
|
+
readonly name: "totalAmount";
|
|
1387
|
+
readonly type: "uint256";
|
|
1388
|
+
readonly internalType: "uint256";
|
|
1389
|
+
}, {
|
|
1390
|
+
readonly name: "deadline";
|
|
1391
|
+
readonly type: "uint256";
|
|
1392
|
+
readonly internalType: "uint256";
|
|
1393
|
+
}];
|
|
1394
|
+
}, {
|
|
1395
|
+
readonly name: "remainderLeafIndices";
|
|
1396
|
+
readonly type: "uint32[]";
|
|
1397
|
+
readonly indexed: false;
|
|
1398
|
+
readonly internalType: "uint32[]";
|
|
1399
|
+
}, {
|
|
1400
|
+
readonly name: "deliveries";
|
|
1401
|
+
readonly type: "tuple[]";
|
|
1402
|
+
readonly indexed: false;
|
|
1403
|
+
readonly internalType: "struct IInvisiProtocol.Delivery[]";
|
|
1404
|
+
readonly components: readonly [{
|
|
1405
|
+
readonly name: "ciphertext";
|
|
1406
|
+
readonly type: "bytes";
|
|
1407
|
+
readonly internalType: "bytes";
|
|
1408
|
+
}, {
|
|
1409
|
+
readonly name: "clue";
|
|
1410
|
+
readonly type: "bytes";
|
|
1411
|
+
readonly internalType: "bytes";
|
|
1412
|
+
}];
|
|
1413
|
+
}];
|
|
1414
|
+
readonly anonymous: false;
|
|
1415
|
+
}, {
|
|
1416
|
+
readonly type: "event";
|
|
1417
|
+
readonly name: "CreditToppedUp";
|
|
1418
|
+
readonly inputs: readonly [{
|
|
1419
|
+
readonly name: "owner";
|
|
1420
|
+
readonly type: "address";
|
|
1421
|
+
readonly indexed: true;
|
|
1422
|
+
readonly internalType: "address";
|
|
1423
|
+
}, {
|
|
1424
|
+
readonly name: "outputTreeId";
|
|
1425
|
+
readonly type: "uint256";
|
|
1426
|
+
readonly indexed: true;
|
|
1427
|
+
readonly internalType: "uint256";
|
|
1428
|
+
}, {
|
|
1429
|
+
readonly name: "params";
|
|
1430
|
+
readonly type: "tuple";
|
|
1431
|
+
readonly indexed: false;
|
|
1432
|
+
readonly internalType: "struct IInvisiProtocol.TopUpCreditParams";
|
|
1433
|
+
readonly components: readonly [{
|
|
1434
|
+
readonly name: "creation";
|
|
1435
|
+
readonly type: "tuple";
|
|
1436
|
+
readonly internalType: "struct IInvisiProtocol.CreateCreditParams";
|
|
1437
|
+
readonly components: readonly [{
|
|
1438
|
+
readonly name: "token";
|
|
1439
|
+
readonly type: "address";
|
|
1440
|
+
readonly internalType: "address";
|
|
1441
|
+
}, {
|
|
1442
|
+
readonly name: "sources";
|
|
1443
|
+
readonly type: "tuple[]";
|
|
1444
|
+
readonly internalType: "struct IInvisiProtocol.InputSource[]";
|
|
1445
|
+
readonly components: readonly [{
|
|
1446
|
+
readonly name: "treeId";
|
|
1447
|
+
readonly type: "uint256";
|
|
1448
|
+
readonly internalType: "uint256";
|
|
1449
|
+
}, {
|
|
1450
|
+
readonly name: "merkleRoot";
|
|
1451
|
+
readonly type: "bytes32";
|
|
1452
|
+
readonly internalType: "bytes32";
|
|
1453
|
+
}];
|
|
1454
|
+
}, {
|
|
1455
|
+
readonly name: "nullifiers";
|
|
1456
|
+
readonly type: "bytes32[]";
|
|
1457
|
+
readonly internalType: "bytes32[]";
|
|
1458
|
+
}, {
|
|
1459
|
+
readonly name: "creditCommitment";
|
|
1460
|
+
readonly type: "bytes32";
|
|
1461
|
+
readonly internalType: "bytes32";
|
|
1462
|
+
}, {
|
|
1463
|
+
readonly name: "changeCommitment";
|
|
1464
|
+
readonly type: "bytes32";
|
|
1465
|
+
readonly internalType: "bytes32";
|
|
1466
|
+
}, {
|
|
1467
|
+
readonly name: "owner";
|
|
1468
|
+
readonly type: "address";
|
|
1469
|
+
readonly internalType: "address";
|
|
1470
|
+
}, {
|
|
1471
|
+
readonly name: "expiry";
|
|
1472
|
+
readonly type: "uint256";
|
|
1473
|
+
readonly internalType: "uint256";
|
|
1474
|
+
}, {
|
|
1475
|
+
readonly name: "deadline";
|
|
1476
|
+
readonly type: "uint256";
|
|
1477
|
+
readonly internalType: "uint256";
|
|
1478
|
+
}];
|
|
1479
|
+
}, {
|
|
1480
|
+
readonly name: "creditSource";
|
|
1481
|
+
readonly type: "tuple";
|
|
1482
|
+
readonly internalType: "struct IInvisiProtocol.InputSource";
|
|
1483
|
+
readonly components: readonly [{
|
|
1484
|
+
readonly name: "treeId";
|
|
1485
|
+
readonly type: "uint256";
|
|
1486
|
+
readonly internalType: "uint256";
|
|
1487
|
+
}, {
|
|
1488
|
+
readonly name: "merkleRoot";
|
|
1489
|
+
readonly type: "bytes32";
|
|
1490
|
+
readonly internalType: "bytes32";
|
|
1491
|
+
}];
|
|
1492
|
+
}, {
|
|
1493
|
+
readonly name: "creditNullifier";
|
|
1494
|
+
readonly type: "bytes32";
|
|
1495
|
+
readonly internalType: "bytes32";
|
|
1496
|
+
}, {
|
|
1497
|
+
readonly name: "previousExpiry";
|
|
1498
|
+
readonly type: "uint256";
|
|
1499
|
+
readonly internalType: "uint256";
|
|
1500
|
+
}];
|
|
1501
|
+
}, {
|
|
1502
|
+
readonly name: "leafIndices";
|
|
1503
|
+
readonly type: "uint32[]";
|
|
1504
|
+
readonly indexed: false;
|
|
1505
|
+
readonly internalType: "uint32[]";
|
|
1506
|
+
}, {
|
|
1507
|
+
readonly name: "deliveries";
|
|
1508
|
+
readonly type: "tuple[]";
|
|
1509
|
+
readonly indexed: false;
|
|
1510
|
+
readonly internalType: "struct IInvisiProtocol.Delivery[]";
|
|
1511
|
+
readonly components: readonly [{
|
|
1512
|
+
readonly name: "ciphertext";
|
|
1513
|
+
readonly type: "bytes";
|
|
1514
|
+
readonly internalType: "bytes";
|
|
1515
|
+
}, {
|
|
1516
|
+
readonly name: "clue";
|
|
1517
|
+
readonly type: "bytes";
|
|
1518
|
+
readonly internalType: "bytes";
|
|
1519
|
+
}];
|
|
1520
|
+
}];
|
|
1521
|
+
readonly anonymous: false;
|
|
1522
|
+
}, {
|
|
1523
|
+
readonly type: "event";
|
|
1524
|
+
readonly name: "CrossTreeTransact";
|
|
1525
|
+
readonly inputs: readonly [{
|
|
1526
|
+
readonly name: "token";
|
|
1527
|
+
readonly type: "address";
|
|
1528
|
+
readonly indexed: false;
|
|
1529
|
+
readonly internalType: "address";
|
|
1530
|
+
}, {
|
|
1531
|
+
readonly name: "outputTreeId";
|
|
1532
|
+
readonly type: "uint256";
|
|
1533
|
+
readonly indexed: true;
|
|
1534
|
+
readonly internalType: "uint256";
|
|
1535
|
+
}, {
|
|
1536
|
+
readonly name: "sources";
|
|
1537
|
+
readonly type: "tuple[]";
|
|
1538
|
+
readonly indexed: false;
|
|
1539
|
+
readonly internalType: "struct IInvisiProtocol.InputSource[]";
|
|
1540
|
+
readonly components: readonly [{
|
|
1541
|
+
readonly name: "treeId";
|
|
1542
|
+
readonly type: "uint256";
|
|
1543
|
+
readonly internalType: "uint256";
|
|
1544
|
+
}, {
|
|
1545
|
+
readonly name: "merkleRoot";
|
|
1546
|
+
readonly type: "bytes32";
|
|
1547
|
+
readonly internalType: "bytes32";
|
|
1548
|
+
}];
|
|
1549
|
+
}, {
|
|
1550
|
+
readonly name: "nullifiers";
|
|
1551
|
+
readonly type: "bytes32[]";
|
|
1552
|
+
readonly indexed: false;
|
|
1553
|
+
readonly internalType: "bytes32[]";
|
|
1554
|
+
}, {
|
|
1555
|
+
readonly name: "outputCommitments";
|
|
1556
|
+
readonly type: "bytes32[]";
|
|
1557
|
+
readonly indexed: false;
|
|
1558
|
+
readonly internalType: "bytes32[]";
|
|
1559
|
+
}, {
|
|
1560
|
+
readonly name: "leafIndices";
|
|
1561
|
+
readonly type: "uint32[]";
|
|
1562
|
+
readonly indexed: false;
|
|
1563
|
+
readonly internalType: "uint32[]";
|
|
1564
|
+
}, {
|
|
1565
|
+
readonly name: "deliveries";
|
|
1566
|
+
readonly type: "tuple[]";
|
|
1567
|
+
readonly indexed: false;
|
|
1568
|
+
readonly internalType: "struct IInvisiProtocol.Delivery[]";
|
|
1569
|
+
readonly components: readonly [{
|
|
1570
|
+
readonly name: "ciphertext";
|
|
1571
|
+
readonly type: "bytes";
|
|
1572
|
+
readonly internalType: "bytes";
|
|
1573
|
+
}, {
|
|
1574
|
+
readonly name: "clue";
|
|
1575
|
+
readonly type: "bytes";
|
|
1576
|
+
readonly internalType: "bytes";
|
|
1577
|
+
}];
|
|
1578
|
+
}, {
|
|
1579
|
+
readonly name: "withdrawalAddress";
|
|
1580
|
+
readonly type: "address";
|
|
1581
|
+
readonly indexed: false;
|
|
1582
|
+
readonly internalType: "address";
|
|
1583
|
+
}, {
|
|
1584
|
+
readonly name: "withdrawalAmount";
|
|
1585
|
+
readonly type: "uint256";
|
|
1586
|
+
readonly indexed: false;
|
|
1587
|
+
readonly internalType: "uint256";
|
|
1588
|
+
}, {
|
|
1589
|
+
readonly name: "deadline";
|
|
1590
|
+
readonly type: "uint256";
|
|
1591
|
+
readonly indexed: false;
|
|
1592
|
+
readonly internalType: "uint256";
|
|
1593
|
+
}];
|
|
1594
|
+
readonly anonymous: false;
|
|
1595
|
+
}, {
|
|
1596
|
+
readonly type: "event";
|
|
1597
|
+
readonly name: "EIP712DomainChanged";
|
|
1598
|
+
readonly inputs: readonly [];
|
|
1599
|
+
readonly anonymous: false;
|
|
1600
|
+
}, {
|
|
1601
|
+
readonly type: "event";
|
|
1602
|
+
readonly name: "NonceInvalidated";
|
|
1603
|
+
readonly inputs: readonly [{
|
|
1604
|
+
readonly name: "signer";
|
|
1605
|
+
readonly type: "address";
|
|
1606
|
+
readonly indexed: true;
|
|
1607
|
+
readonly internalType: "address";
|
|
1608
|
+
}, {
|
|
1609
|
+
readonly name: "newNonce";
|
|
1610
|
+
readonly type: "uint256";
|
|
1611
|
+
readonly indexed: false;
|
|
1612
|
+
readonly internalType: "uint256";
|
|
1613
|
+
}];
|
|
1614
|
+
readonly anonymous: false;
|
|
1615
|
+
}, {
|
|
1616
|
+
readonly type: "event";
|
|
1617
|
+
readonly name: "OwnershipTransferStarted";
|
|
1618
|
+
readonly inputs: readonly [{
|
|
1619
|
+
readonly name: "previousOwner";
|
|
1620
|
+
readonly type: "address";
|
|
1621
|
+
readonly indexed: true;
|
|
1622
|
+
readonly internalType: "address";
|
|
1623
|
+
}, {
|
|
1624
|
+
readonly name: "newOwner";
|
|
1625
|
+
readonly type: "address";
|
|
1626
|
+
readonly indexed: true;
|
|
1627
|
+
readonly internalType: "address";
|
|
1628
|
+
}];
|
|
1629
|
+
readonly anonymous: false;
|
|
1630
|
+
}, {
|
|
1631
|
+
readonly type: "event";
|
|
1632
|
+
readonly name: "OwnershipTransferred";
|
|
1633
|
+
readonly inputs: readonly [{
|
|
1634
|
+
readonly name: "previousOwner";
|
|
1635
|
+
readonly type: "address";
|
|
1636
|
+
readonly indexed: true;
|
|
1637
|
+
readonly internalType: "address";
|
|
1638
|
+
}, {
|
|
1639
|
+
readonly name: "newOwner";
|
|
1640
|
+
readonly type: "address";
|
|
1641
|
+
readonly indexed: true;
|
|
1642
|
+
readonly internalType: "address";
|
|
1643
|
+
}];
|
|
1644
|
+
readonly anonymous: false;
|
|
1645
|
+
}, {
|
|
1646
|
+
readonly type: "event";
|
|
1647
|
+
readonly name: "Paused";
|
|
1648
|
+
readonly inputs: readonly [{
|
|
1649
|
+
readonly name: "account";
|
|
1650
|
+
readonly type: "address";
|
|
1651
|
+
readonly indexed: false;
|
|
1652
|
+
readonly internalType: "address";
|
|
1653
|
+
}];
|
|
1654
|
+
readonly anonymous: false;
|
|
1655
|
+
}, {
|
|
1656
|
+
readonly type: "event";
|
|
1657
|
+
readonly name: "PublicDeposit";
|
|
1658
|
+
readonly inputs: readonly [{
|
|
1659
|
+
readonly name: "token";
|
|
1660
|
+
readonly type: "address";
|
|
1661
|
+
readonly indexed: true;
|
|
1662
|
+
readonly internalType: "address";
|
|
1663
|
+
}, {
|
|
1664
|
+
readonly name: "payer";
|
|
1665
|
+
readonly type: "address";
|
|
1666
|
+
readonly indexed: true;
|
|
1667
|
+
readonly internalType: "address";
|
|
1668
|
+
}, {
|
|
1669
|
+
readonly name: "amount";
|
|
1670
|
+
readonly type: "uint256";
|
|
1671
|
+
readonly indexed: false;
|
|
1672
|
+
readonly internalType: "uint256";
|
|
1673
|
+
}, {
|
|
1674
|
+
readonly name: "proofHash";
|
|
1675
|
+
readonly type: "bytes32";
|
|
1676
|
+
readonly indexed: false;
|
|
1677
|
+
readonly internalType: "bytes32";
|
|
1678
|
+
}];
|
|
1679
|
+
readonly anonymous: false;
|
|
1680
|
+
}, {
|
|
1681
|
+
readonly type: "event";
|
|
1682
|
+
readonly name: "ScreenerUpdated";
|
|
1683
|
+
readonly inputs: readonly [{
|
|
1684
|
+
readonly name: "newScreener";
|
|
1685
|
+
readonly type: "address";
|
|
1686
|
+
readonly indexed: true;
|
|
1687
|
+
readonly internalType: "address";
|
|
1688
|
+
}];
|
|
1689
|
+
readonly anonymous: false;
|
|
1690
|
+
}, {
|
|
1691
|
+
readonly type: "event";
|
|
1692
|
+
readonly name: "Shield";
|
|
1693
|
+
readonly inputs: readonly [{
|
|
1694
|
+
readonly name: "token";
|
|
1695
|
+
readonly type: "address";
|
|
1696
|
+
readonly indexed: true;
|
|
1697
|
+
readonly internalType: "address";
|
|
1698
|
+
}, {
|
|
1699
|
+
readonly name: "payer";
|
|
1700
|
+
readonly type: "address";
|
|
1701
|
+
readonly indexed: true;
|
|
1702
|
+
readonly internalType: "address";
|
|
1703
|
+
}, {
|
|
1704
|
+
readonly name: "amount";
|
|
1705
|
+
readonly type: "uint256";
|
|
1706
|
+
readonly indexed: false;
|
|
1707
|
+
readonly internalType: "uint256";
|
|
1708
|
+
}, {
|
|
1709
|
+
readonly name: "treeId";
|
|
1710
|
+
readonly type: "uint256";
|
|
1711
|
+
readonly indexed: true;
|
|
1712
|
+
readonly internalType: "uint256";
|
|
1713
|
+
}, {
|
|
1714
|
+
readonly name: "startLeafIndex";
|
|
1715
|
+
readonly type: "uint32";
|
|
1716
|
+
readonly indexed: false;
|
|
1717
|
+
readonly internalType: "uint32";
|
|
1718
|
+
}, {
|
|
1719
|
+
readonly name: "deliveries";
|
|
1720
|
+
readonly type: "tuple[]";
|
|
1721
|
+
readonly indexed: false;
|
|
1722
|
+
readonly internalType: "struct IInvisiProtocol.Delivery[]";
|
|
1723
|
+
readonly components: readonly [{
|
|
1724
|
+
readonly name: "ciphertext";
|
|
1725
|
+
readonly type: "bytes";
|
|
1726
|
+
readonly internalType: "bytes";
|
|
1727
|
+
}, {
|
|
1728
|
+
readonly name: "clue";
|
|
1729
|
+
readonly type: "bytes";
|
|
1730
|
+
readonly internalType: "bytes";
|
|
1731
|
+
}];
|
|
1732
|
+
}, {
|
|
1733
|
+
readonly name: "deadline";
|
|
1734
|
+
readonly type: "uint256";
|
|
1735
|
+
readonly indexed: false;
|
|
1736
|
+
readonly internalType: "uint256";
|
|
1737
|
+
}];
|
|
1738
|
+
readonly anonymous: false;
|
|
1739
|
+
}, {
|
|
1740
|
+
readonly type: "event";
|
|
1741
|
+
readonly name: "Transact";
|
|
1742
|
+
readonly inputs: readonly [{
|
|
1743
|
+
readonly name: "token";
|
|
1744
|
+
readonly type: "address";
|
|
1745
|
+
readonly indexed: false;
|
|
1746
|
+
readonly internalType: "address";
|
|
1747
|
+
}, {
|
|
1748
|
+
readonly name: "inputTreeId";
|
|
1749
|
+
readonly type: "uint256";
|
|
1750
|
+
readonly indexed: true;
|
|
1751
|
+
readonly internalType: "uint256";
|
|
1752
|
+
}, {
|
|
1753
|
+
readonly name: "outputTreeId";
|
|
1754
|
+
readonly type: "uint256";
|
|
1755
|
+
readonly indexed: true;
|
|
1756
|
+
readonly internalType: "uint256";
|
|
1757
|
+
}, {
|
|
1758
|
+
readonly name: "nullifiers";
|
|
1759
|
+
readonly type: "bytes32[]";
|
|
1760
|
+
readonly indexed: false;
|
|
1761
|
+
readonly internalType: "bytes32[]";
|
|
1762
|
+
}, {
|
|
1763
|
+
readonly name: "outputCommitments";
|
|
1764
|
+
readonly type: "bytes32[]";
|
|
1765
|
+
readonly indexed: false;
|
|
1766
|
+
readonly internalType: "bytes32[]";
|
|
1767
|
+
}, {
|
|
1768
|
+
readonly name: "leafIndices";
|
|
1769
|
+
readonly type: "uint32[]";
|
|
1770
|
+
readonly indexed: false;
|
|
1771
|
+
readonly internalType: "uint32[]";
|
|
1772
|
+
}, {
|
|
1773
|
+
readonly name: "deliveries";
|
|
1774
|
+
readonly type: "tuple[]";
|
|
1775
|
+
readonly indexed: false;
|
|
1776
|
+
readonly internalType: "struct IInvisiProtocol.Delivery[]";
|
|
1777
|
+
readonly components: readonly [{
|
|
1778
|
+
readonly name: "ciphertext";
|
|
1779
|
+
readonly type: "bytes";
|
|
1780
|
+
readonly internalType: "bytes";
|
|
1781
|
+
}, {
|
|
1782
|
+
readonly name: "clue";
|
|
1783
|
+
readonly type: "bytes";
|
|
1784
|
+
readonly internalType: "bytes";
|
|
1785
|
+
}];
|
|
1786
|
+
}, {
|
|
1787
|
+
readonly name: "withdrawalAddress";
|
|
1788
|
+
readonly type: "address";
|
|
1789
|
+
readonly indexed: false;
|
|
1790
|
+
readonly internalType: "address";
|
|
1791
|
+
}, {
|
|
1792
|
+
readonly name: "withdrawalAmount";
|
|
1793
|
+
readonly type: "uint256";
|
|
1794
|
+
readonly indexed: false;
|
|
1795
|
+
readonly internalType: "uint256";
|
|
1796
|
+
}, {
|
|
1797
|
+
readonly name: "deadline";
|
|
1798
|
+
readonly type: "uint256";
|
|
1799
|
+
readonly indexed: false;
|
|
1800
|
+
readonly internalType: "uint256";
|
|
1801
|
+
}];
|
|
1802
|
+
readonly anonymous: false;
|
|
1803
|
+
}, {
|
|
1804
|
+
readonly type: "event";
|
|
1805
|
+
readonly name: "TransactAggregated";
|
|
1806
|
+
readonly inputs: readonly [{
|
|
1807
|
+
readonly name: "proofHash";
|
|
1808
|
+
readonly type: "bytes32";
|
|
1809
|
+
readonly indexed: true;
|
|
1810
|
+
readonly internalType: "bytes32";
|
|
1811
|
+
}, {
|
|
1812
|
+
readonly name: "requestCount";
|
|
1813
|
+
readonly type: "uint256";
|
|
1814
|
+
readonly indexed: false;
|
|
1815
|
+
readonly internalType: "uint256";
|
|
1816
|
+
}];
|
|
1817
|
+
readonly anonymous: false;
|
|
1818
|
+
}, {
|
|
1819
|
+
readonly type: "event";
|
|
1820
|
+
readonly name: "TreeCreated";
|
|
1821
|
+
readonly inputs: readonly [{
|
|
1822
|
+
readonly name: "treeId";
|
|
1823
|
+
readonly type: "uint256";
|
|
1824
|
+
readonly indexed: true;
|
|
1825
|
+
readonly internalType: "uint256";
|
|
1826
|
+
}];
|
|
1827
|
+
readonly anonymous: false;
|
|
1828
|
+
}, {
|
|
1829
|
+
readonly type: "event";
|
|
1830
|
+
readonly name: "Unpaused";
|
|
1831
|
+
readonly inputs: readonly [{
|
|
1832
|
+
readonly name: "account";
|
|
1833
|
+
readonly type: "address";
|
|
1834
|
+
readonly indexed: false;
|
|
1835
|
+
readonly internalType: "address";
|
|
1836
|
+
}];
|
|
1837
|
+
readonly anonymous: false;
|
|
1838
|
+
}, {
|
|
1839
|
+
readonly type: "error";
|
|
1840
|
+
readonly name: "AddressScreeningFailed";
|
|
1841
|
+
readonly inputs: readonly [{
|
|
1842
|
+
readonly name: "account";
|
|
1843
|
+
readonly type: "address";
|
|
1844
|
+
readonly internalType: "address";
|
|
1845
|
+
}];
|
|
1846
|
+
}, {
|
|
1847
|
+
readonly type: "error";
|
|
1848
|
+
readonly name: "ChainIdMismatch";
|
|
1849
|
+
readonly inputs: readonly [];
|
|
1850
|
+
}, {
|
|
1851
|
+
readonly type: "error";
|
|
1852
|
+
readonly name: "CommitmentAlreadyPaid";
|
|
1853
|
+
readonly inputs: readonly [{
|
|
1854
|
+
readonly name: "commitment";
|
|
1855
|
+
readonly type: "bytes32";
|
|
1856
|
+
readonly internalType: "bytes32";
|
|
1857
|
+
}];
|
|
1858
|
+
}, {
|
|
1859
|
+
readonly type: "error";
|
|
1860
|
+
readonly name: "CreditDrawWindowClosed";
|
|
1861
|
+
readonly inputs: readonly [];
|
|
1862
|
+
}, {
|
|
1863
|
+
readonly type: "error";
|
|
1864
|
+
readonly name: "DoubleSpend";
|
|
1865
|
+
readonly inputs: readonly [{
|
|
1866
|
+
readonly name: "nullifier";
|
|
1867
|
+
readonly type: "bytes32";
|
|
1868
|
+
readonly internalType: "bytes32";
|
|
1869
|
+
}];
|
|
1870
|
+
}, {
|
|
1871
|
+
readonly type: "error";
|
|
1872
|
+
readonly name: "EnforcedPause";
|
|
1873
|
+
readonly inputs: readonly [];
|
|
1874
|
+
}, {
|
|
1875
|
+
readonly type: "error";
|
|
1876
|
+
readonly name: "ExpectedPause";
|
|
1877
|
+
readonly inputs: readonly [];
|
|
1878
|
+
}, {
|
|
1879
|
+
readonly type: "error";
|
|
1880
|
+
readonly name: "ExpiryInPast";
|
|
1881
|
+
readonly inputs: readonly [];
|
|
1882
|
+
}, {
|
|
1883
|
+
readonly type: "error";
|
|
1884
|
+
readonly name: "InexactTokenReceipt";
|
|
1885
|
+
readonly inputs: readonly [{
|
|
1886
|
+
readonly name: "requested";
|
|
1887
|
+
readonly type: "uint256";
|
|
1888
|
+
readonly internalType: "uint256";
|
|
1889
|
+
}, {
|
|
1890
|
+
readonly name: "received";
|
|
1891
|
+
readonly type: "uint256";
|
|
1892
|
+
readonly internalType: "uint256";
|
|
1893
|
+
}];
|
|
1894
|
+
}, {
|
|
1895
|
+
readonly type: "error";
|
|
1896
|
+
readonly name: "InvalidAggregateBatch";
|
|
1897
|
+
readonly inputs: readonly [];
|
|
1898
|
+
}, {
|
|
1899
|
+
readonly type: "error";
|
|
1900
|
+
readonly name: "InvalidAmount";
|
|
1901
|
+
readonly inputs: readonly [];
|
|
1902
|
+
}, {
|
|
1903
|
+
readonly type: "error";
|
|
1904
|
+
readonly name: "InvalidBatchSize";
|
|
1905
|
+
readonly inputs: readonly [];
|
|
1906
|
+
}, {
|
|
1907
|
+
readonly type: "error";
|
|
1908
|
+
readonly name: "InvalidCommitment";
|
|
1909
|
+
readonly inputs: readonly [];
|
|
1910
|
+
}, {
|
|
1911
|
+
readonly type: "error";
|
|
1912
|
+
readonly name: "InvalidCreditExpiry";
|
|
1913
|
+
readonly inputs: readonly [];
|
|
1914
|
+
}, {
|
|
1915
|
+
readonly type: "error";
|
|
1916
|
+
readonly name: "InvalidDelivery";
|
|
1917
|
+
readonly inputs: readonly [];
|
|
1918
|
+
}, {
|
|
1919
|
+
readonly type: "error";
|
|
1920
|
+
readonly name: "InvalidFunding";
|
|
1921
|
+
readonly inputs: readonly [];
|
|
1922
|
+
}, {
|
|
1923
|
+
readonly type: "error";
|
|
1924
|
+
readonly name: "InvalidIdentityCommitment";
|
|
1925
|
+
readonly inputs: readonly [];
|
|
1926
|
+
}, {
|
|
1927
|
+
readonly type: "error";
|
|
1928
|
+
readonly name: "InvalidMerkleRoot";
|
|
1929
|
+
readonly inputs: readonly [{
|
|
1930
|
+
readonly name: "root";
|
|
1931
|
+
readonly type: "bytes32";
|
|
1932
|
+
readonly internalType: "bytes32";
|
|
1933
|
+
}];
|
|
1934
|
+
}, {
|
|
1935
|
+
readonly type: "error";
|
|
1936
|
+
readonly name: "InvalidNonce";
|
|
1937
|
+
readonly inputs: readonly [];
|
|
1938
|
+
}, {
|
|
1939
|
+
readonly type: "error";
|
|
1940
|
+
readonly name: "InvalidNullifierKeyHash";
|
|
1941
|
+
readonly inputs: readonly [];
|
|
1942
|
+
}, {
|
|
1943
|
+
readonly type: "error";
|
|
1944
|
+
readonly name: "InvalidOwnerIdentityCommitment";
|
|
1945
|
+
readonly inputs: readonly [];
|
|
1946
|
+
}, {
|
|
1947
|
+
readonly type: "error";
|
|
1948
|
+
readonly name: "InvalidPrivateTransferCiphertext";
|
|
1949
|
+
readonly inputs: readonly [];
|
|
1950
|
+
}, {
|
|
1951
|
+
readonly type: "error";
|
|
1952
|
+
readonly name: "InvalidPrivateTransferContext";
|
|
1953
|
+
readonly inputs: readonly [];
|
|
1954
|
+
}, {
|
|
1955
|
+
readonly type: "error";
|
|
1956
|
+
readonly name: "InvalidPrivateTransferShape";
|
|
1957
|
+
readonly inputs: readonly [{
|
|
1958
|
+
readonly name: "inputs";
|
|
1959
|
+
readonly type: "uint256";
|
|
1960
|
+
readonly internalType: "uint256";
|
|
1961
|
+
}, {
|
|
1962
|
+
readonly name: "outputs";
|
|
1963
|
+
readonly type: "uint256";
|
|
1964
|
+
readonly internalType: "uint256";
|
|
1965
|
+
}];
|
|
1966
|
+
}, {
|
|
1967
|
+
readonly type: "error";
|
|
1968
|
+
readonly name: "InvalidProof";
|
|
1969
|
+
readonly inputs: readonly [];
|
|
1970
|
+
}, {
|
|
1971
|
+
readonly type: "error";
|
|
1972
|
+
readonly name: "InvalidReceivingAddress";
|
|
1973
|
+
readonly inputs: readonly [];
|
|
1974
|
+
}, {
|
|
1975
|
+
readonly type: "error";
|
|
1976
|
+
readonly name: "InvalidShieldContext";
|
|
1977
|
+
readonly inputs: readonly [];
|
|
1978
|
+
}, {
|
|
1979
|
+
readonly type: "error";
|
|
1980
|
+
readonly name: "InvalidShieldOutputCount";
|
|
1981
|
+
readonly inputs: readonly [{
|
|
1982
|
+
readonly name: "outputs";
|
|
1983
|
+
readonly type: "uint256";
|
|
1984
|
+
readonly internalType: "uint256";
|
|
1985
|
+
}];
|
|
1986
|
+
}, {
|
|
1987
|
+
readonly type: "error";
|
|
1988
|
+
readonly name: "InvalidShortString";
|
|
1989
|
+
readonly inputs: readonly [];
|
|
1990
|
+
}, {
|
|
1991
|
+
readonly type: "error";
|
|
1992
|
+
readonly name: "InvalidSignature";
|
|
1993
|
+
readonly inputs: readonly [];
|
|
1994
|
+
}, {
|
|
1995
|
+
readonly type: "error";
|
|
1996
|
+
readonly name: "InvalidToken";
|
|
1997
|
+
readonly inputs: readonly [{
|
|
1998
|
+
readonly name: "token";
|
|
1999
|
+
readonly type: "address";
|
|
2000
|
+
readonly internalType: "address";
|
|
2001
|
+
}];
|
|
2002
|
+
}, {
|
|
2003
|
+
readonly type: "error";
|
|
2004
|
+
readonly name: "InvalidTree";
|
|
2005
|
+
readonly inputs: readonly [{
|
|
2006
|
+
readonly name: "treeId";
|
|
2007
|
+
readonly type: "uint256";
|
|
2008
|
+
readonly internalType: "uint256";
|
|
2009
|
+
}];
|
|
2010
|
+
}, {
|
|
2011
|
+
readonly type: "error";
|
|
2012
|
+
readonly name: "LengthMismatch";
|
|
2013
|
+
readonly inputs: readonly [];
|
|
2014
|
+
}, {
|
|
2015
|
+
readonly type: "error";
|
|
2016
|
+
readonly name: "NotEmergencyAdmin";
|
|
2017
|
+
readonly inputs: readonly [];
|
|
2018
|
+
}, {
|
|
2019
|
+
readonly type: "error";
|
|
2020
|
+
readonly name: "NotGlobalEmergency";
|
|
2021
|
+
readonly inputs: readonly [];
|
|
2022
|
+
}, {
|
|
2023
|
+
readonly type: "error";
|
|
2024
|
+
readonly name: "NullifierAlreadySpent";
|
|
2025
|
+
readonly inputs: readonly [{
|
|
2026
|
+
readonly name: "nullifier";
|
|
2027
|
+
readonly type: "bytes32";
|
|
2028
|
+
readonly internalType: "bytes32";
|
|
2029
|
+
}];
|
|
2030
|
+
}, {
|
|
2031
|
+
readonly type: "error";
|
|
2032
|
+
readonly name: "NullifiersEmpty";
|
|
2033
|
+
readonly inputs: readonly [];
|
|
2034
|
+
}, {
|
|
2035
|
+
readonly type: "error";
|
|
2036
|
+
readonly name: "OwnableInvalidOwner";
|
|
2037
|
+
readonly inputs: readonly [{
|
|
2038
|
+
readonly name: "owner";
|
|
2039
|
+
readonly type: "address";
|
|
2040
|
+
readonly internalType: "address";
|
|
2041
|
+
}];
|
|
2042
|
+
}, {
|
|
2043
|
+
readonly type: "error";
|
|
2044
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
2045
|
+
readonly inputs: readonly [{
|
|
2046
|
+
readonly name: "account";
|
|
2047
|
+
readonly type: "address";
|
|
2048
|
+
readonly internalType: "address";
|
|
2049
|
+
}];
|
|
2050
|
+
}, {
|
|
2051
|
+
readonly type: "error";
|
|
2052
|
+
readonly name: "PrivateTransferExpired";
|
|
2053
|
+
readonly inputs: readonly [];
|
|
2054
|
+
}, {
|
|
2055
|
+
readonly type: "error";
|
|
2056
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
2057
|
+
readonly inputs: readonly [];
|
|
2058
|
+
}, {
|
|
2059
|
+
readonly type: "error";
|
|
2060
|
+
readonly name: "ShieldExpired";
|
|
2061
|
+
readonly inputs: readonly [];
|
|
2062
|
+
}, {
|
|
2063
|
+
readonly type: "error";
|
|
2064
|
+
readonly name: "SignatureExpired";
|
|
2065
|
+
readonly inputs: readonly [];
|
|
2066
|
+
}, {
|
|
2067
|
+
readonly type: "error";
|
|
2068
|
+
readonly name: "StaleRoot";
|
|
2069
|
+
readonly inputs: readonly [{
|
|
2070
|
+
readonly name: "root";
|
|
2071
|
+
readonly type: "bytes32";
|
|
2072
|
+
readonly internalType: "bytes32";
|
|
2073
|
+
}];
|
|
2074
|
+
}, {
|
|
2075
|
+
readonly type: "error";
|
|
2076
|
+
readonly name: "StringTooLong";
|
|
2077
|
+
readonly inputs: readonly [{
|
|
2078
|
+
readonly name: "str";
|
|
2079
|
+
readonly type: "string";
|
|
2080
|
+
readonly internalType: "string";
|
|
2081
|
+
}];
|
|
2082
|
+
}, {
|
|
2083
|
+
readonly type: "error";
|
|
2084
|
+
readonly name: "TransferFailed";
|
|
2085
|
+
readonly inputs: readonly [{
|
|
2086
|
+
readonly name: "token";
|
|
2087
|
+
readonly type: "address";
|
|
2088
|
+
readonly internalType: "address";
|
|
2089
|
+
}, {
|
|
2090
|
+
readonly name: "to";
|
|
2091
|
+
readonly type: "address";
|
|
2092
|
+
readonly internalType: "address";
|
|
2093
|
+
}, {
|
|
2094
|
+
readonly name: "amount";
|
|
2095
|
+
readonly type: "uint256";
|
|
2096
|
+
readonly internalType: "uint256";
|
|
2097
|
+
}];
|
|
2098
|
+
}, {
|
|
2099
|
+
readonly type: "error";
|
|
2100
|
+
readonly name: "TreeFull";
|
|
2101
|
+
readonly inputs: readonly [{
|
|
2102
|
+
readonly name: "treeId";
|
|
2103
|
+
readonly type: "uint256";
|
|
2104
|
+
readonly internalType: "uint256";
|
|
2105
|
+
}];
|
|
2106
|
+
}, {
|
|
2107
|
+
readonly type: "error";
|
|
2108
|
+
readonly name: "WrongPermitToken";
|
|
2109
|
+
readonly inputs: readonly [{
|
|
2110
|
+
readonly name: "provided";
|
|
2111
|
+
readonly type: "address";
|
|
2112
|
+
readonly internalType: "address";
|
|
2113
|
+
}, {
|
|
2114
|
+
readonly name: "expected";
|
|
2115
|
+
readonly type: "address";
|
|
2116
|
+
readonly internalType: "address";
|
|
2117
|
+
}];
|
|
2118
|
+
}, {
|
|
2119
|
+
readonly type: "error";
|
|
2120
|
+
readonly name: "ZeroNullifier";
|
|
2121
|
+
readonly inputs: readonly [];
|
|
2122
|
+
}];
|
|
2123
|
+
|
|
2124
|
+
declare const invisiFactoryAbi: readonly [{
|
|
2125
|
+
readonly type: "constructor";
|
|
2126
|
+
readonly inputs: readonly [{
|
|
2127
|
+
readonly name: "initialOwner_";
|
|
2128
|
+
readonly type: "address";
|
|
2129
|
+
readonly internalType: "address";
|
|
2130
|
+
}, {
|
|
2131
|
+
readonly name: "globalEmergency_";
|
|
2132
|
+
readonly type: "address";
|
|
2133
|
+
readonly internalType: "address";
|
|
2134
|
+
}, {
|
|
2135
|
+
readonly name: "verifierRouter_";
|
|
2136
|
+
readonly type: "address";
|
|
2137
|
+
readonly internalType: "address";
|
|
2138
|
+
}, {
|
|
2139
|
+
readonly name: "creationCodeHash_";
|
|
2140
|
+
readonly type: "bytes32";
|
|
2141
|
+
readonly internalType: "bytes32";
|
|
2142
|
+
}];
|
|
2143
|
+
readonly stateMutability: "nonpayable";
|
|
2144
|
+
}, {
|
|
2145
|
+
readonly type: "function";
|
|
2146
|
+
readonly name: "VERSION";
|
|
2147
|
+
readonly inputs: readonly [];
|
|
2148
|
+
readonly outputs: readonly [{
|
|
2149
|
+
readonly name: "";
|
|
2150
|
+
readonly type: "uint256";
|
|
2151
|
+
readonly internalType: "uint256";
|
|
2152
|
+
}];
|
|
2153
|
+
readonly stateMutability: "view";
|
|
2154
|
+
}, {
|
|
2155
|
+
readonly type: "function";
|
|
2156
|
+
readonly name: "acceptOwnership";
|
|
2157
|
+
readonly inputs: readonly [];
|
|
2158
|
+
readonly outputs: readonly [];
|
|
2159
|
+
readonly stateMutability: "nonpayable";
|
|
2160
|
+
}, {
|
|
2161
|
+
readonly type: "function";
|
|
2162
|
+
readonly name: "computeInstanceAddress";
|
|
2163
|
+
readonly inputs: readonly [{
|
|
2164
|
+
readonly name: "creationCode";
|
|
2165
|
+
readonly type: "bytes";
|
|
2166
|
+
readonly internalType: "bytes";
|
|
2167
|
+
}, {
|
|
2168
|
+
readonly name: "salt";
|
|
2169
|
+
readonly type: "bytes32";
|
|
2170
|
+
readonly internalType: "bytes32";
|
|
2171
|
+
}, {
|
|
2172
|
+
readonly name: "initialOwner_";
|
|
2173
|
+
readonly type: "address";
|
|
2174
|
+
readonly internalType: "address";
|
|
2175
|
+
}, {
|
|
2176
|
+
readonly name: "emergencyAdmin_";
|
|
2177
|
+
readonly type: "address";
|
|
2178
|
+
readonly internalType: "address";
|
|
2179
|
+
}, {
|
|
2180
|
+
readonly name: "screener_";
|
|
2181
|
+
readonly type: "address";
|
|
2182
|
+
readonly internalType: "address";
|
|
2183
|
+
}];
|
|
2184
|
+
readonly outputs: readonly [{
|
|
2185
|
+
readonly name: "instance";
|
|
2186
|
+
readonly type: "address";
|
|
2187
|
+
readonly internalType: "address";
|
|
2188
|
+
}];
|
|
2189
|
+
readonly stateMutability: "view";
|
|
2190
|
+
}, {
|
|
2191
|
+
readonly type: "function";
|
|
2192
|
+
readonly name: "creationCodeHash";
|
|
2193
|
+
readonly inputs: readonly [];
|
|
2194
|
+
readonly outputs: readonly [{
|
|
2195
|
+
readonly name: "";
|
|
2196
|
+
readonly type: "bytes32";
|
|
2197
|
+
readonly internalType: "bytes32";
|
|
2198
|
+
}];
|
|
2199
|
+
readonly stateMutability: "view";
|
|
2200
|
+
}, {
|
|
2201
|
+
readonly type: "function";
|
|
2202
|
+
readonly name: "deploy";
|
|
2203
|
+
readonly inputs: readonly [{
|
|
2204
|
+
readonly name: "creationCode";
|
|
2205
|
+
readonly type: "bytes";
|
|
2206
|
+
readonly internalType: "bytes";
|
|
2207
|
+
}, {
|
|
2208
|
+
readonly name: "salt";
|
|
2209
|
+
readonly type: "bytes32";
|
|
2210
|
+
readonly internalType: "bytes32";
|
|
2211
|
+
}, {
|
|
2212
|
+
readonly name: "initialOwner_";
|
|
2213
|
+
readonly type: "address";
|
|
2214
|
+
readonly internalType: "address";
|
|
2215
|
+
}, {
|
|
2216
|
+
readonly name: "emergencyAdmin_";
|
|
2217
|
+
readonly type: "address";
|
|
2218
|
+
readonly internalType: "address";
|
|
2219
|
+
}, {
|
|
2220
|
+
readonly name: "screener_";
|
|
2221
|
+
readonly type: "address";
|
|
2222
|
+
readonly internalType: "address";
|
|
2223
|
+
}];
|
|
2224
|
+
readonly outputs: readonly [{
|
|
2225
|
+
readonly name: "instance";
|
|
2226
|
+
readonly type: "address";
|
|
2227
|
+
readonly internalType: "address";
|
|
2228
|
+
}];
|
|
2229
|
+
readonly stateMutability: "nonpayable";
|
|
2230
|
+
}, {
|
|
2231
|
+
readonly type: "function";
|
|
2232
|
+
readonly name: "emergencyPauseInstance";
|
|
2233
|
+
readonly inputs: readonly [{
|
|
2234
|
+
readonly name: "instance";
|
|
2235
|
+
readonly type: "address";
|
|
2236
|
+
readonly internalType: "address";
|
|
2237
|
+
}];
|
|
2238
|
+
readonly outputs: readonly [];
|
|
2239
|
+
readonly stateMutability: "nonpayable";
|
|
2240
|
+
}, {
|
|
2241
|
+
readonly type: "function";
|
|
2242
|
+
readonly name: "emergencyPauseRange";
|
|
2243
|
+
readonly inputs: readonly [{
|
|
2244
|
+
readonly name: "start";
|
|
2245
|
+
readonly type: "uint256";
|
|
2246
|
+
readonly internalType: "uint256";
|
|
2247
|
+
}, {
|
|
2248
|
+
readonly name: "end";
|
|
2249
|
+
readonly type: "uint256";
|
|
2250
|
+
readonly internalType: "uint256";
|
|
2251
|
+
}];
|
|
2252
|
+
readonly outputs: readonly [];
|
|
2253
|
+
readonly stateMutability: "nonpayable";
|
|
2254
|
+
}, {
|
|
2255
|
+
readonly type: "function";
|
|
2256
|
+
readonly name: "emergencyUnpauseInstance";
|
|
2257
|
+
readonly inputs: readonly [{
|
|
2258
|
+
readonly name: "instance";
|
|
2259
|
+
readonly type: "address";
|
|
2260
|
+
readonly internalType: "address";
|
|
2261
|
+
}];
|
|
2262
|
+
readonly outputs: readonly [];
|
|
2263
|
+
readonly stateMutability: "nonpayable";
|
|
2264
|
+
}, {
|
|
2265
|
+
readonly type: "function";
|
|
2266
|
+
readonly name: "emergencyUnpauseRange";
|
|
2267
|
+
readonly inputs: readonly [{
|
|
2268
|
+
readonly name: "start";
|
|
2269
|
+
readonly type: "uint256";
|
|
2270
|
+
readonly internalType: "uint256";
|
|
2271
|
+
}, {
|
|
2272
|
+
readonly name: "end";
|
|
2273
|
+
readonly type: "uint256";
|
|
2274
|
+
readonly internalType: "uint256";
|
|
2275
|
+
}];
|
|
2276
|
+
readonly outputs: readonly [];
|
|
2277
|
+
readonly stateMutability: "nonpayable";
|
|
2278
|
+
}, {
|
|
2279
|
+
readonly type: "function";
|
|
2280
|
+
readonly name: "getInstanceAddress";
|
|
2281
|
+
readonly inputs: readonly [{
|
|
2282
|
+
readonly name: "salt";
|
|
2283
|
+
readonly type: "bytes32";
|
|
2284
|
+
readonly internalType: "bytes32";
|
|
2285
|
+
}];
|
|
2286
|
+
readonly outputs: readonly [{
|
|
2287
|
+
readonly name: "instance";
|
|
2288
|
+
readonly type: "address";
|
|
2289
|
+
readonly internalType: "address";
|
|
2290
|
+
}];
|
|
2291
|
+
readonly stateMutability: "view";
|
|
2292
|
+
}, {
|
|
2293
|
+
readonly type: "function";
|
|
2294
|
+
readonly name: "globalEmergency";
|
|
2295
|
+
readonly inputs: readonly [];
|
|
2296
|
+
readonly outputs: readonly [{
|
|
2297
|
+
readonly name: "";
|
|
2298
|
+
readonly type: "address";
|
|
2299
|
+
readonly internalType: "address";
|
|
2300
|
+
}];
|
|
2301
|
+
readonly stateMutability: "view";
|
|
2302
|
+
}, {
|
|
2303
|
+
readonly type: "function";
|
|
2304
|
+
readonly name: "instanceCount";
|
|
2305
|
+
readonly inputs: readonly [];
|
|
2306
|
+
readonly outputs: readonly [{
|
|
2307
|
+
readonly name: "";
|
|
2308
|
+
readonly type: "uint256";
|
|
2309
|
+
readonly internalType: "uint256";
|
|
2310
|
+
}];
|
|
2311
|
+
readonly stateMutability: "view";
|
|
2312
|
+
}, {
|
|
2313
|
+
readonly type: "function";
|
|
2314
|
+
readonly name: "isInstance";
|
|
2315
|
+
readonly inputs: readonly [{
|
|
2316
|
+
readonly name: "";
|
|
2317
|
+
readonly type: "address";
|
|
2318
|
+
readonly internalType: "address";
|
|
2319
|
+
}];
|
|
2320
|
+
readonly outputs: readonly [{
|
|
2321
|
+
readonly name: "";
|
|
2322
|
+
readonly type: "bool";
|
|
2323
|
+
readonly internalType: "bool";
|
|
2324
|
+
}];
|
|
2325
|
+
readonly stateMutability: "view";
|
|
2326
|
+
}, {
|
|
2327
|
+
readonly type: "function";
|
|
2328
|
+
readonly name: "owner";
|
|
2329
|
+
readonly inputs: readonly [];
|
|
2330
|
+
readonly outputs: readonly [{
|
|
2331
|
+
readonly name: "";
|
|
2332
|
+
readonly type: "address";
|
|
2333
|
+
readonly internalType: "address";
|
|
2334
|
+
}];
|
|
2335
|
+
readonly stateMutability: "view";
|
|
2336
|
+
}, {
|
|
2337
|
+
readonly type: "function";
|
|
2338
|
+
readonly name: "pendingOwner";
|
|
2339
|
+
readonly inputs: readonly [];
|
|
2340
|
+
readonly outputs: readonly [{
|
|
2341
|
+
readonly name: "";
|
|
2342
|
+
readonly type: "address";
|
|
2343
|
+
readonly internalType: "address";
|
|
2344
|
+
}];
|
|
2345
|
+
readonly stateMutability: "view";
|
|
2346
|
+
}, {
|
|
2347
|
+
readonly type: "function";
|
|
2348
|
+
readonly name: "renounceOwnership";
|
|
2349
|
+
readonly inputs: readonly [];
|
|
2350
|
+
readonly outputs: readonly [];
|
|
2351
|
+
readonly stateMutability: "nonpayable";
|
|
2352
|
+
}, {
|
|
2353
|
+
readonly type: "function";
|
|
2354
|
+
readonly name: "transferOwnership";
|
|
2355
|
+
readonly inputs: readonly [{
|
|
2356
|
+
readonly name: "newOwner";
|
|
2357
|
+
readonly type: "address";
|
|
2358
|
+
readonly internalType: "address";
|
|
2359
|
+
}];
|
|
2360
|
+
readonly outputs: readonly [];
|
|
2361
|
+
readonly stateMutability: "nonpayable";
|
|
2362
|
+
}, {
|
|
2363
|
+
readonly type: "function";
|
|
2364
|
+
readonly name: "verifierRouter";
|
|
2365
|
+
readonly inputs: readonly [];
|
|
2366
|
+
readonly outputs: readonly [{
|
|
2367
|
+
readonly name: "";
|
|
2368
|
+
readonly type: "address";
|
|
2369
|
+
readonly internalType: "contract IVerifierRouter";
|
|
2370
|
+
}];
|
|
2371
|
+
readonly stateMutability: "view";
|
|
2372
|
+
}, {
|
|
2373
|
+
readonly type: "event";
|
|
2374
|
+
readonly name: "EmergencyPauseInstance";
|
|
2375
|
+
readonly inputs: readonly [{
|
|
2376
|
+
readonly name: "instance";
|
|
2377
|
+
readonly type: "address";
|
|
2378
|
+
readonly indexed: true;
|
|
2379
|
+
readonly internalType: "address";
|
|
2380
|
+
}];
|
|
2381
|
+
readonly anonymous: false;
|
|
2382
|
+
}, {
|
|
2383
|
+
readonly type: "event";
|
|
2384
|
+
readonly name: "EmergencyPauseRange";
|
|
2385
|
+
readonly inputs: readonly [{
|
|
2386
|
+
readonly name: "start";
|
|
2387
|
+
readonly type: "uint256";
|
|
2388
|
+
readonly indexed: false;
|
|
2389
|
+
readonly internalType: "uint256";
|
|
2390
|
+
}, {
|
|
2391
|
+
readonly name: "end";
|
|
2392
|
+
readonly type: "uint256";
|
|
2393
|
+
readonly indexed: false;
|
|
2394
|
+
readonly internalType: "uint256";
|
|
2395
|
+
}];
|
|
2396
|
+
readonly anonymous: false;
|
|
2397
|
+
}, {
|
|
2398
|
+
readonly type: "event";
|
|
2399
|
+
readonly name: "EmergencyUnpauseInstance";
|
|
2400
|
+
readonly inputs: readonly [{
|
|
2401
|
+
readonly name: "instance";
|
|
2402
|
+
readonly type: "address";
|
|
2403
|
+
readonly indexed: true;
|
|
2404
|
+
readonly internalType: "address";
|
|
2405
|
+
}];
|
|
2406
|
+
readonly anonymous: false;
|
|
2407
|
+
}, {
|
|
2408
|
+
readonly type: "event";
|
|
2409
|
+
readonly name: "EmergencyUnpauseRange";
|
|
2410
|
+
readonly inputs: readonly [{
|
|
2411
|
+
readonly name: "start";
|
|
2412
|
+
readonly type: "uint256";
|
|
2413
|
+
readonly indexed: false;
|
|
2414
|
+
readonly internalType: "uint256";
|
|
2415
|
+
}, {
|
|
2416
|
+
readonly name: "end";
|
|
2417
|
+
readonly type: "uint256";
|
|
2418
|
+
readonly indexed: false;
|
|
2419
|
+
readonly internalType: "uint256";
|
|
2420
|
+
}];
|
|
2421
|
+
readonly anonymous: false;
|
|
2422
|
+
}, {
|
|
2423
|
+
readonly type: "event";
|
|
2424
|
+
readonly name: "InstanceDeployed";
|
|
2425
|
+
readonly inputs: readonly [{
|
|
2426
|
+
readonly name: "salt";
|
|
2427
|
+
readonly type: "bytes32";
|
|
2428
|
+
readonly indexed: true;
|
|
2429
|
+
readonly internalType: "bytes32";
|
|
2430
|
+
}, {
|
|
2431
|
+
readonly name: "instance";
|
|
2432
|
+
readonly type: "address";
|
|
2433
|
+
readonly indexed: false;
|
|
2434
|
+
readonly internalType: "address";
|
|
2435
|
+
}, {
|
|
2436
|
+
readonly name: "initialOwner";
|
|
2437
|
+
readonly type: "address";
|
|
2438
|
+
readonly indexed: false;
|
|
2439
|
+
readonly internalType: "address";
|
|
2440
|
+
}];
|
|
2441
|
+
readonly anonymous: false;
|
|
2442
|
+
}, {
|
|
2443
|
+
readonly type: "event";
|
|
2444
|
+
readonly name: "OwnershipTransferStarted";
|
|
2445
|
+
readonly inputs: readonly [{
|
|
2446
|
+
readonly name: "previousOwner";
|
|
2447
|
+
readonly type: "address";
|
|
2448
|
+
readonly indexed: true;
|
|
2449
|
+
readonly internalType: "address";
|
|
2450
|
+
}, {
|
|
2451
|
+
readonly name: "newOwner";
|
|
2452
|
+
readonly type: "address";
|
|
2453
|
+
readonly indexed: true;
|
|
2454
|
+
readonly internalType: "address";
|
|
2455
|
+
}];
|
|
2456
|
+
readonly anonymous: false;
|
|
2457
|
+
}, {
|
|
2458
|
+
readonly type: "event";
|
|
2459
|
+
readonly name: "OwnershipTransferred";
|
|
2460
|
+
readonly inputs: readonly [{
|
|
2461
|
+
readonly name: "previousOwner";
|
|
2462
|
+
readonly type: "address";
|
|
2463
|
+
readonly indexed: true;
|
|
2464
|
+
readonly internalType: "address";
|
|
2465
|
+
}, {
|
|
2466
|
+
readonly name: "newOwner";
|
|
2467
|
+
readonly type: "address";
|
|
2468
|
+
readonly indexed: true;
|
|
2469
|
+
readonly internalType: "address";
|
|
2470
|
+
}];
|
|
2471
|
+
readonly anonymous: false;
|
|
2472
|
+
}, {
|
|
2473
|
+
readonly type: "error";
|
|
2474
|
+
readonly name: "InstanceAlreadyDeployed";
|
|
2475
|
+
readonly inputs: readonly [{
|
|
2476
|
+
readonly name: "salt";
|
|
2477
|
+
readonly type: "bytes32";
|
|
2478
|
+
readonly internalType: "bytes32";
|
|
2479
|
+
}];
|
|
2480
|
+
}, {
|
|
2481
|
+
readonly type: "error";
|
|
2482
|
+
readonly name: "InvalidCreationCode";
|
|
2483
|
+
readonly inputs: readonly [];
|
|
2484
|
+
}, {
|
|
2485
|
+
readonly type: "error";
|
|
2486
|
+
readonly name: "NotAnInstance";
|
|
2487
|
+
readonly inputs: readonly [{
|
|
2488
|
+
readonly name: "addr";
|
|
2489
|
+
readonly type: "address";
|
|
2490
|
+
readonly internalType: "address";
|
|
2491
|
+
}];
|
|
2492
|
+
}, {
|
|
2493
|
+
readonly type: "error";
|
|
2494
|
+
readonly name: "NotGlobalEmergency";
|
|
2495
|
+
readonly inputs: readonly [];
|
|
2496
|
+
}, {
|
|
2497
|
+
readonly type: "error";
|
|
2498
|
+
readonly name: "OwnableInvalidOwner";
|
|
2499
|
+
readonly inputs: readonly [{
|
|
2500
|
+
readonly name: "owner";
|
|
2501
|
+
readonly type: "address";
|
|
2502
|
+
readonly internalType: "address";
|
|
2503
|
+
}];
|
|
2504
|
+
}, {
|
|
2505
|
+
readonly type: "error";
|
|
2506
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
2507
|
+
readonly inputs: readonly [{
|
|
2508
|
+
readonly name: "account";
|
|
2509
|
+
readonly type: "address";
|
|
2510
|
+
readonly internalType: "address";
|
|
2511
|
+
}];
|
|
2512
|
+
}];
|
|
2513
|
+
|
|
2514
|
+
declare const verifierRouterAbi: readonly [{
|
|
2515
|
+
readonly type: "function";
|
|
2516
|
+
readonly name: "getCreateCreditVerifier";
|
|
2517
|
+
readonly inputs: readonly [];
|
|
2518
|
+
readonly outputs: readonly [{
|
|
2519
|
+
readonly name: "";
|
|
2520
|
+
readonly type: "address";
|
|
2521
|
+
readonly internalType: "contract IVerifier";
|
|
2522
|
+
}];
|
|
2523
|
+
readonly stateMutability: "view";
|
|
2524
|
+
}, {
|
|
2525
|
+
readonly type: "function";
|
|
2526
|
+
readonly name: "getCreditCancelVerifier";
|
|
2527
|
+
readonly inputs: readonly [];
|
|
2528
|
+
readonly outputs: readonly [{
|
|
2529
|
+
readonly name: "";
|
|
2530
|
+
readonly type: "address";
|
|
2531
|
+
readonly internalType: "contract IVerifier";
|
|
2532
|
+
}];
|
|
2533
|
+
readonly stateMutability: "view";
|
|
2534
|
+
}, {
|
|
2535
|
+
readonly type: "function";
|
|
2536
|
+
readonly name: "getCreditDrawVerifier";
|
|
2537
|
+
readonly inputs: readonly [{
|
|
2538
|
+
readonly name: "inputs";
|
|
2539
|
+
readonly type: "uint256";
|
|
2540
|
+
readonly internalType: "uint256";
|
|
2541
|
+
}];
|
|
2542
|
+
readonly outputs: readonly [{
|
|
2543
|
+
readonly name: "";
|
|
2544
|
+
readonly type: "address";
|
|
2545
|
+
readonly internalType: "contract IVerifier";
|
|
2546
|
+
}];
|
|
2547
|
+
readonly stateMutability: "view";
|
|
2548
|
+
}, {
|
|
2549
|
+
readonly type: "function";
|
|
2550
|
+
readonly name: "getCreditTopUpVerifier";
|
|
2551
|
+
readonly inputs: readonly [];
|
|
2552
|
+
readonly outputs: readonly [{
|
|
2553
|
+
readonly name: "";
|
|
2554
|
+
readonly type: "address";
|
|
2555
|
+
readonly internalType: "contract IVerifier";
|
|
2556
|
+
}];
|
|
2557
|
+
readonly stateMutability: "view";
|
|
2558
|
+
}, {
|
|
2559
|
+
readonly type: "function";
|
|
2560
|
+
readonly name: "getCrossTreeVerifier";
|
|
2561
|
+
readonly inputs: readonly [{
|
|
2562
|
+
readonly name: "inputs";
|
|
2563
|
+
readonly type: "uint256";
|
|
2564
|
+
readonly internalType: "uint256";
|
|
2565
|
+
}, {
|
|
2566
|
+
readonly name: "outputs";
|
|
2567
|
+
readonly type: "uint256";
|
|
2568
|
+
readonly internalType: "uint256";
|
|
2569
|
+
}];
|
|
2570
|
+
readonly outputs: readonly [{
|
|
2571
|
+
readonly name: "";
|
|
2572
|
+
readonly type: "address";
|
|
2573
|
+
readonly internalType: "contract IVerifier";
|
|
2574
|
+
}];
|
|
2575
|
+
readonly stateMutability: "view";
|
|
2576
|
+
}, {
|
|
2577
|
+
readonly type: "function";
|
|
2578
|
+
readonly name: "getPrivateTransferVerifier";
|
|
2579
|
+
readonly inputs: readonly [{
|
|
2580
|
+
readonly name: "inputs";
|
|
2581
|
+
readonly type: "uint256";
|
|
2582
|
+
readonly internalType: "uint256";
|
|
2583
|
+
}, {
|
|
2584
|
+
readonly name: "outputs";
|
|
2585
|
+
readonly type: "uint256";
|
|
2586
|
+
readonly internalType: "uint256";
|
|
2587
|
+
}];
|
|
2588
|
+
readonly outputs: readonly [{
|
|
2589
|
+
readonly name: "";
|
|
2590
|
+
readonly type: "address";
|
|
2591
|
+
readonly internalType: "contract IVerifier";
|
|
2592
|
+
}];
|
|
2593
|
+
readonly stateMutability: "view";
|
|
2594
|
+
}, {
|
|
2595
|
+
readonly type: "error";
|
|
2596
|
+
readonly name: "UnsupportedCreditCreation";
|
|
2597
|
+
readonly inputs: readonly [];
|
|
2598
|
+
}, {
|
|
2599
|
+
readonly type: "error";
|
|
2600
|
+
readonly name: "UnsupportedCrossTreeShape";
|
|
2601
|
+
readonly inputs: readonly [{
|
|
2602
|
+
readonly name: "inputs";
|
|
2603
|
+
readonly type: "uint256";
|
|
2604
|
+
readonly internalType: "uint256";
|
|
2605
|
+
}, {
|
|
2606
|
+
readonly name: "outputs";
|
|
2607
|
+
readonly type: "uint256";
|
|
2608
|
+
readonly internalType: "uint256";
|
|
2609
|
+
}];
|
|
2610
|
+
}, {
|
|
2611
|
+
readonly type: "error";
|
|
2612
|
+
readonly name: "UnsupportedPrivateTransferShape";
|
|
2613
|
+
readonly inputs: readonly [{
|
|
2614
|
+
readonly name: "inputs";
|
|
2615
|
+
readonly type: "uint256";
|
|
2616
|
+
readonly internalType: "uint256";
|
|
2617
|
+
}, {
|
|
2618
|
+
readonly name: "outputs";
|
|
2619
|
+
readonly type: "uint256";
|
|
2620
|
+
readonly internalType: "uint256";
|
|
2621
|
+
}];
|
|
2622
|
+
}];
|
|
2623
|
+
|
|
2624
|
+
declare const creditVerifierRouterAbi: readonly [{
|
|
2625
|
+
readonly type: "constructor";
|
|
2626
|
+
readonly inputs: readonly [{
|
|
2627
|
+
readonly name: "singleRegistry";
|
|
2628
|
+
readonly type: "address";
|
|
2629
|
+
readonly internalType: "contract IPrivateTransferVerifierRegistry";
|
|
2630
|
+
}, {
|
|
2631
|
+
readonly name: "crossRegistry";
|
|
2632
|
+
readonly type: "address";
|
|
2633
|
+
readonly internalType: "contract CrossTreeVerifierRegistry";
|
|
2634
|
+
}, {
|
|
2635
|
+
readonly name: "creditVerifiers";
|
|
2636
|
+
readonly type: "address[7]";
|
|
2637
|
+
readonly internalType: "contract IVerifier[7]";
|
|
2638
|
+
}];
|
|
2639
|
+
readonly stateMutability: "nonpayable";
|
|
2640
|
+
}, {
|
|
2641
|
+
readonly type: "function";
|
|
2642
|
+
readonly name: "createCreditVerifier";
|
|
2643
|
+
readonly inputs: readonly [];
|
|
2644
|
+
readonly outputs: readonly [{
|
|
2645
|
+
readonly name: "";
|
|
2646
|
+
readonly type: "address";
|
|
2647
|
+
readonly internalType: "contract IVerifier";
|
|
2648
|
+
}];
|
|
2649
|
+
readonly stateMutability: "view";
|
|
2650
|
+
}, {
|
|
2651
|
+
readonly type: "function";
|
|
2652
|
+
readonly name: "creditCancelVerifier";
|
|
2653
|
+
readonly inputs: readonly [];
|
|
2654
|
+
readonly outputs: readonly [{
|
|
2655
|
+
readonly name: "";
|
|
2656
|
+
readonly type: "address";
|
|
2657
|
+
readonly internalType: "contract IVerifier";
|
|
2658
|
+
}];
|
|
2659
|
+
readonly stateMutability: "view";
|
|
2660
|
+
}, {
|
|
2661
|
+
readonly type: "function";
|
|
2662
|
+
readonly name: "creditDrawSlots120Verifier";
|
|
2663
|
+
readonly inputs: readonly [];
|
|
2664
|
+
readonly outputs: readonly [{
|
|
2665
|
+
readonly name: "";
|
|
2666
|
+
readonly type: "address";
|
|
2667
|
+
readonly internalType: "contract IVerifier";
|
|
2668
|
+
}];
|
|
2669
|
+
readonly stateMutability: "view";
|
|
2670
|
+
}, {
|
|
2671
|
+
readonly type: "function";
|
|
2672
|
+
readonly name: "creditDrawSlots12Verifier";
|
|
2673
|
+
readonly inputs: readonly [];
|
|
2674
|
+
readonly outputs: readonly [{
|
|
2675
|
+
readonly name: "";
|
|
2676
|
+
readonly type: "address";
|
|
2677
|
+
readonly internalType: "contract IVerifier";
|
|
2678
|
+
}];
|
|
2679
|
+
readonly stateMutability: "view";
|
|
2680
|
+
}, {
|
|
2681
|
+
readonly type: "function";
|
|
2682
|
+
readonly name: "creditDrawSlots1Verifier";
|
|
2683
|
+
readonly inputs: readonly [];
|
|
2684
|
+
readonly outputs: readonly [{
|
|
2685
|
+
readonly name: "";
|
|
2686
|
+
readonly type: "address";
|
|
2687
|
+
readonly internalType: "contract IVerifier";
|
|
2688
|
+
}];
|
|
2689
|
+
readonly stateMutability: "view";
|
|
2690
|
+
}, {
|
|
2691
|
+
readonly type: "function";
|
|
2692
|
+
readonly name: "creditDrawSlots50Verifier";
|
|
2693
|
+
readonly inputs: readonly [];
|
|
2694
|
+
readonly outputs: readonly [{
|
|
2695
|
+
readonly name: "";
|
|
2696
|
+
readonly type: "address";
|
|
2697
|
+
readonly internalType: "contract IVerifier";
|
|
2698
|
+
}];
|
|
2699
|
+
readonly stateMutability: "view";
|
|
2700
|
+
}, {
|
|
2701
|
+
readonly type: "function";
|
|
2702
|
+
readonly name: "creditTopUpVerifier";
|
|
2703
|
+
readonly inputs: readonly [];
|
|
2704
|
+
readonly outputs: readonly [{
|
|
2705
|
+
readonly name: "";
|
|
2706
|
+
readonly type: "address";
|
|
2707
|
+
readonly internalType: "contract IVerifier";
|
|
2708
|
+
}];
|
|
2709
|
+
readonly stateMutability: "view";
|
|
2710
|
+
}, {
|
|
2711
|
+
readonly type: "function";
|
|
2712
|
+
readonly name: "crossTreeRegistry";
|
|
2713
|
+
readonly inputs: readonly [];
|
|
2714
|
+
readonly outputs: readonly [{
|
|
2715
|
+
readonly name: "";
|
|
2716
|
+
readonly type: "address";
|
|
2717
|
+
readonly internalType: "contract CrossTreeVerifierRegistry";
|
|
2718
|
+
}];
|
|
2719
|
+
readonly stateMutability: "view";
|
|
2720
|
+
}, {
|
|
2721
|
+
readonly type: "function";
|
|
2722
|
+
readonly name: "getCreateCreditVerifier";
|
|
2723
|
+
readonly inputs: readonly [];
|
|
2724
|
+
readonly outputs: readonly [{
|
|
2725
|
+
readonly name: "";
|
|
2726
|
+
readonly type: "address";
|
|
2727
|
+
readonly internalType: "contract IVerifier";
|
|
2728
|
+
}];
|
|
2729
|
+
readonly stateMutability: "view";
|
|
2730
|
+
}, {
|
|
2731
|
+
readonly type: "function";
|
|
2732
|
+
readonly name: "getCreditCancelVerifier";
|
|
2733
|
+
readonly inputs: readonly [];
|
|
2734
|
+
readonly outputs: readonly [{
|
|
2735
|
+
readonly name: "";
|
|
2736
|
+
readonly type: "address";
|
|
2737
|
+
readonly internalType: "contract IVerifier";
|
|
2738
|
+
}];
|
|
2739
|
+
readonly stateMutability: "view";
|
|
2740
|
+
}, {
|
|
2741
|
+
readonly type: "function";
|
|
2742
|
+
readonly name: "getCreditDrawVerifier";
|
|
2743
|
+
readonly inputs: readonly [{
|
|
2744
|
+
readonly name: "inputs";
|
|
2745
|
+
readonly type: "uint256";
|
|
2746
|
+
readonly internalType: "uint256";
|
|
2747
|
+
}];
|
|
2748
|
+
readonly outputs: readonly [{
|
|
2749
|
+
readonly name: "";
|
|
2750
|
+
readonly type: "address";
|
|
2751
|
+
readonly internalType: "contract IVerifier";
|
|
2752
|
+
}];
|
|
2753
|
+
readonly stateMutability: "view";
|
|
2754
|
+
}, {
|
|
2755
|
+
readonly type: "function";
|
|
2756
|
+
readonly name: "getCreditTopUpVerifier";
|
|
2757
|
+
readonly inputs: readonly [];
|
|
2758
|
+
readonly outputs: readonly [{
|
|
2759
|
+
readonly name: "";
|
|
2760
|
+
readonly type: "address";
|
|
2761
|
+
readonly internalType: "contract IVerifier";
|
|
2762
|
+
}];
|
|
2763
|
+
readonly stateMutability: "view";
|
|
2764
|
+
}, {
|
|
2765
|
+
readonly type: "function";
|
|
2766
|
+
readonly name: "getCrossTreeVerifier";
|
|
2767
|
+
readonly inputs: readonly [{
|
|
2768
|
+
readonly name: "inputs";
|
|
2769
|
+
readonly type: "uint256";
|
|
2770
|
+
readonly internalType: "uint256";
|
|
2771
|
+
}, {
|
|
2772
|
+
readonly name: "outputs";
|
|
2773
|
+
readonly type: "uint256";
|
|
2774
|
+
readonly internalType: "uint256";
|
|
2775
|
+
}];
|
|
2776
|
+
readonly outputs: readonly [{
|
|
2777
|
+
readonly name: "";
|
|
2778
|
+
readonly type: "address";
|
|
2779
|
+
readonly internalType: "contract IVerifier";
|
|
2780
|
+
}];
|
|
2781
|
+
readonly stateMutability: "view";
|
|
2782
|
+
}, {
|
|
2783
|
+
readonly type: "function";
|
|
2784
|
+
readonly name: "getPrivateTransferVerifier";
|
|
2785
|
+
readonly inputs: readonly [{
|
|
2786
|
+
readonly name: "inputs";
|
|
2787
|
+
readonly type: "uint256";
|
|
2788
|
+
readonly internalType: "uint256";
|
|
2789
|
+
}, {
|
|
2790
|
+
readonly name: "outputs";
|
|
2791
|
+
readonly type: "uint256";
|
|
2792
|
+
readonly internalType: "uint256";
|
|
2793
|
+
}];
|
|
2794
|
+
readonly outputs: readonly [{
|
|
2795
|
+
readonly name: "";
|
|
2796
|
+
readonly type: "address";
|
|
2797
|
+
readonly internalType: "contract IVerifier";
|
|
2798
|
+
}];
|
|
2799
|
+
readonly stateMutability: "view";
|
|
2800
|
+
}, {
|
|
2801
|
+
readonly type: "function";
|
|
2802
|
+
readonly name: "privateTransferRegistry";
|
|
2803
|
+
readonly inputs: readonly [];
|
|
2804
|
+
readonly outputs: readonly [{
|
|
2805
|
+
readonly name: "";
|
|
2806
|
+
readonly type: "address";
|
|
2807
|
+
readonly internalType: "contract IPrivateTransferVerifierRegistry";
|
|
2808
|
+
}];
|
|
2809
|
+
readonly stateMutability: "view";
|
|
2810
|
+
}, {
|
|
2811
|
+
readonly type: "error";
|
|
2812
|
+
readonly name: "InvalidBatchSize";
|
|
2813
|
+
readonly inputs: readonly [];
|
|
2814
|
+
}, {
|
|
2815
|
+
readonly type: "error";
|
|
2816
|
+
readonly name: "UnsupportedCreditCreation";
|
|
2817
|
+
readonly inputs: readonly [];
|
|
2818
|
+
}, {
|
|
2819
|
+
readonly type: "error";
|
|
2820
|
+
readonly name: "UnsupportedCrossTreeShape";
|
|
2821
|
+
readonly inputs: readonly [{
|
|
2822
|
+
readonly name: "inputs";
|
|
2823
|
+
readonly type: "uint256";
|
|
2824
|
+
readonly internalType: "uint256";
|
|
2825
|
+
}, {
|
|
2826
|
+
readonly name: "outputs";
|
|
2827
|
+
readonly type: "uint256";
|
|
2828
|
+
readonly internalType: "uint256";
|
|
2829
|
+
}];
|
|
2830
|
+
}, {
|
|
2831
|
+
readonly type: "error";
|
|
2832
|
+
readonly name: "UnsupportedPrivateTransferShape";
|
|
2833
|
+
readonly inputs: readonly [{
|
|
2834
|
+
readonly name: "inputs";
|
|
2835
|
+
readonly type: "uint256";
|
|
2836
|
+
readonly internalType: "uint256";
|
|
2837
|
+
}, {
|
|
2838
|
+
readonly name: "outputs";
|
|
2839
|
+
readonly type: "uint256";
|
|
2840
|
+
readonly internalType: "uint256";
|
|
2841
|
+
}];
|
|
2842
|
+
}];
|
|
2843
|
+
|
|
2844
|
+
declare const invisiAddressRegistryAbi: readonly [{
|
|
2845
|
+
readonly type: "constructor";
|
|
2846
|
+
readonly inputs: readonly [{
|
|
2847
|
+
readonly name: "verifier";
|
|
2848
|
+
readonly type: "address";
|
|
2849
|
+
readonly internalType: "contract IVerifier";
|
|
2850
|
+
}];
|
|
2851
|
+
readonly stateMutability: "nonpayable";
|
|
2852
|
+
}, {
|
|
2853
|
+
readonly type: "function";
|
|
2854
|
+
readonly name: "CHAIN_ID";
|
|
2855
|
+
readonly inputs: readonly [];
|
|
2856
|
+
readonly outputs: readonly [{
|
|
2857
|
+
readonly name: "";
|
|
2858
|
+
readonly type: "uint256";
|
|
2859
|
+
readonly internalType: "uint256";
|
|
2860
|
+
}];
|
|
2861
|
+
readonly stateMutability: "view";
|
|
2862
|
+
}, {
|
|
2863
|
+
readonly type: "function";
|
|
2864
|
+
readonly name: "isRegistered";
|
|
2865
|
+
readonly inputs: readonly [{
|
|
2866
|
+
readonly name: "walletIdentity";
|
|
2867
|
+
readonly type: "bytes32";
|
|
2868
|
+
readonly internalType: "bytes32";
|
|
2869
|
+
}];
|
|
2870
|
+
readonly outputs: readonly [{
|
|
2871
|
+
readonly name: "";
|
|
2872
|
+
readonly type: "bool";
|
|
2873
|
+
readonly internalType: "bool";
|
|
2874
|
+
}];
|
|
2875
|
+
readonly stateMutability: "view";
|
|
2876
|
+
}, {
|
|
2877
|
+
readonly type: "function";
|
|
2878
|
+
readonly name: "nonceOf";
|
|
2879
|
+
readonly inputs: readonly [{
|
|
2880
|
+
readonly name: "walletIdentity";
|
|
2881
|
+
readonly type: "bytes32";
|
|
2882
|
+
readonly internalType: "bytes32";
|
|
2883
|
+
}];
|
|
2884
|
+
readonly outputs: readonly [{
|
|
2885
|
+
readonly name: "";
|
|
2886
|
+
readonly type: "uint64";
|
|
2887
|
+
readonly internalType: "uint64";
|
|
2888
|
+
}];
|
|
2889
|
+
readonly stateMutability: "view";
|
|
2890
|
+
}, {
|
|
2891
|
+
readonly type: "function";
|
|
2892
|
+
readonly name: "receivingKeysOf";
|
|
2893
|
+
readonly inputs: readonly [{
|
|
2894
|
+
readonly name: "walletIdentity";
|
|
2895
|
+
readonly type: "bytes32";
|
|
2896
|
+
readonly internalType: "bytes32";
|
|
2897
|
+
}];
|
|
2898
|
+
readonly outputs: readonly [{
|
|
2899
|
+
readonly name: "keys";
|
|
2900
|
+
readonly type: "tuple";
|
|
2901
|
+
readonly internalType: "struct IInvisiAddressRegistry.ReceivingKeys";
|
|
2902
|
+
readonly components: readonly [{
|
|
2903
|
+
readonly name: "viewingPublicKey";
|
|
2904
|
+
readonly type: "bytes";
|
|
2905
|
+
readonly internalType: "bytes";
|
|
2906
|
+
}, {
|
|
2907
|
+
readonly name: "clueKey";
|
|
2908
|
+
readonly type: "bytes32";
|
|
2909
|
+
readonly internalType: "bytes32";
|
|
2910
|
+
}];
|
|
2911
|
+
}, {
|
|
2912
|
+
readonly name: "nonce";
|
|
2913
|
+
readonly type: "uint64";
|
|
2914
|
+
readonly internalType: "uint64";
|
|
2915
|
+
}];
|
|
2916
|
+
readonly stateMutability: "view";
|
|
2917
|
+
}, {
|
|
2918
|
+
readonly type: "function";
|
|
2919
|
+
readonly name: "registerKeys";
|
|
2920
|
+
readonly inputs: readonly [{
|
|
2921
|
+
readonly name: "registration";
|
|
2922
|
+
readonly type: "tuple";
|
|
2923
|
+
readonly internalType: "struct IInvisiAddressRegistry.Registration";
|
|
2924
|
+
readonly components: readonly [{
|
|
2925
|
+
readonly name: "walletIdentity";
|
|
2926
|
+
readonly type: "bytes32";
|
|
2927
|
+
readonly internalType: "bytes32";
|
|
2928
|
+
}, {
|
|
2929
|
+
readonly name: "keys";
|
|
2930
|
+
readonly type: "tuple";
|
|
2931
|
+
readonly internalType: "struct IInvisiAddressRegistry.ReceivingKeys";
|
|
2932
|
+
readonly components: readonly [{
|
|
2933
|
+
readonly name: "viewingPublicKey";
|
|
2934
|
+
readonly type: "bytes";
|
|
2935
|
+
readonly internalType: "bytes";
|
|
2936
|
+
}, {
|
|
2937
|
+
readonly name: "clueKey";
|
|
2938
|
+
readonly type: "bytes32";
|
|
2939
|
+
readonly internalType: "bytes32";
|
|
2940
|
+
}];
|
|
2941
|
+
}, {
|
|
2942
|
+
readonly name: "nonce";
|
|
2943
|
+
readonly type: "uint64";
|
|
2944
|
+
readonly internalType: "uint64";
|
|
2945
|
+
}, {
|
|
2946
|
+
readonly name: "deadline";
|
|
2947
|
+
readonly type: "uint64";
|
|
2948
|
+
readonly internalType: "uint64";
|
|
2949
|
+
}];
|
|
2950
|
+
}, {
|
|
2951
|
+
readonly name: "proof";
|
|
2952
|
+
readonly type: "bytes";
|
|
2953
|
+
readonly internalType: "bytes";
|
|
2954
|
+
}];
|
|
2955
|
+
readonly outputs: readonly [];
|
|
2956
|
+
readonly stateMutability: "nonpayable";
|
|
2957
|
+
}, {
|
|
2958
|
+
readonly type: "function";
|
|
2959
|
+
readonly name: "registrationVerifier";
|
|
2960
|
+
readonly inputs: readonly [];
|
|
2961
|
+
readonly outputs: readonly [{
|
|
2962
|
+
readonly name: "";
|
|
2963
|
+
readonly type: "address";
|
|
2964
|
+
readonly internalType: "contract IVerifier";
|
|
2965
|
+
}];
|
|
2966
|
+
readonly stateMutability: "view";
|
|
2967
|
+
}, {
|
|
2968
|
+
readonly type: "function";
|
|
2969
|
+
readonly name: "supportsInterface";
|
|
2970
|
+
readonly inputs: readonly [{
|
|
2971
|
+
readonly name: "interfaceId";
|
|
2972
|
+
readonly type: "bytes4";
|
|
2973
|
+
readonly internalType: "bytes4";
|
|
2974
|
+
}];
|
|
2975
|
+
readonly outputs: readonly [{
|
|
2976
|
+
readonly name: "";
|
|
2977
|
+
readonly type: "bool";
|
|
2978
|
+
readonly internalType: "bool";
|
|
2979
|
+
}];
|
|
2980
|
+
readonly stateMutability: "pure";
|
|
2981
|
+
}, {
|
|
2982
|
+
readonly type: "function";
|
|
2983
|
+
readonly name: "updateKeys";
|
|
2984
|
+
readonly inputs: readonly [{
|
|
2985
|
+
readonly name: "registration";
|
|
2986
|
+
readonly type: "tuple";
|
|
2987
|
+
readonly internalType: "struct IInvisiAddressRegistry.Registration";
|
|
2988
|
+
readonly components: readonly [{
|
|
2989
|
+
readonly name: "walletIdentity";
|
|
2990
|
+
readonly type: "bytes32";
|
|
2991
|
+
readonly internalType: "bytes32";
|
|
2992
|
+
}, {
|
|
2993
|
+
readonly name: "keys";
|
|
2994
|
+
readonly type: "tuple";
|
|
2995
|
+
readonly internalType: "struct IInvisiAddressRegistry.ReceivingKeys";
|
|
2996
|
+
readonly components: readonly [{
|
|
2997
|
+
readonly name: "viewingPublicKey";
|
|
2998
|
+
readonly type: "bytes";
|
|
2999
|
+
readonly internalType: "bytes";
|
|
3000
|
+
}, {
|
|
3001
|
+
readonly name: "clueKey";
|
|
3002
|
+
readonly type: "bytes32";
|
|
3003
|
+
readonly internalType: "bytes32";
|
|
3004
|
+
}];
|
|
3005
|
+
}, {
|
|
3006
|
+
readonly name: "nonce";
|
|
3007
|
+
readonly type: "uint64";
|
|
3008
|
+
readonly internalType: "uint64";
|
|
3009
|
+
}, {
|
|
3010
|
+
readonly name: "deadline";
|
|
3011
|
+
readonly type: "uint64";
|
|
3012
|
+
readonly internalType: "uint64";
|
|
3013
|
+
}];
|
|
3014
|
+
}, {
|
|
3015
|
+
readonly name: "proof";
|
|
3016
|
+
readonly type: "bytes";
|
|
3017
|
+
readonly internalType: "bytes";
|
|
3018
|
+
}];
|
|
3019
|
+
readonly outputs: readonly [];
|
|
3020
|
+
readonly stateMutability: "nonpayable";
|
|
3021
|
+
}, {
|
|
3022
|
+
readonly type: "event";
|
|
3023
|
+
readonly name: "ReceivingKeysSet";
|
|
3024
|
+
readonly inputs: readonly [{
|
|
3025
|
+
readonly name: "walletIdentity";
|
|
3026
|
+
readonly type: "bytes32";
|
|
3027
|
+
readonly indexed: true;
|
|
3028
|
+
readonly internalType: "bytes32";
|
|
3029
|
+
}, {
|
|
3030
|
+
readonly name: "viewingPublicKey";
|
|
3031
|
+
readonly type: "bytes";
|
|
3032
|
+
readonly indexed: false;
|
|
3033
|
+
readonly internalType: "bytes";
|
|
3034
|
+
}, {
|
|
3035
|
+
readonly name: "clueKey";
|
|
3036
|
+
readonly type: "bytes32";
|
|
3037
|
+
readonly indexed: false;
|
|
3038
|
+
readonly internalType: "bytes32";
|
|
3039
|
+
}, {
|
|
3040
|
+
readonly name: "nextNonce";
|
|
3041
|
+
readonly type: "uint64";
|
|
3042
|
+
readonly indexed: false;
|
|
3043
|
+
readonly internalType: "uint64";
|
|
3044
|
+
}];
|
|
3045
|
+
readonly anonymous: false;
|
|
3046
|
+
}, {
|
|
3047
|
+
readonly type: "error";
|
|
3048
|
+
readonly name: "AlreadyRegistered";
|
|
3049
|
+
readonly inputs: readonly [];
|
|
3050
|
+
}, {
|
|
3051
|
+
readonly type: "error";
|
|
3052
|
+
readonly name: "ChainIdMismatch";
|
|
3053
|
+
readonly inputs: readonly [];
|
|
3054
|
+
}, {
|
|
3055
|
+
readonly type: "error";
|
|
3056
|
+
readonly name: "InvalidNonce";
|
|
3057
|
+
readonly inputs: readonly [];
|
|
3058
|
+
}, {
|
|
3059
|
+
readonly type: "error";
|
|
3060
|
+
readonly name: "InvalidReceivingKeys";
|
|
3061
|
+
readonly inputs: readonly [];
|
|
3062
|
+
}, {
|
|
3063
|
+
readonly type: "error";
|
|
3064
|
+
readonly name: "InvalidRegistrationProof";
|
|
3065
|
+
readonly inputs: readonly [];
|
|
3066
|
+
}, {
|
|
3067
|
+
readonly type: "error";
|
|
3068
|
+
readonly name: "InvalidVerifier";
|
|
3069
|
+
readonly inputs: readonly [];
|
|
3070
|
+
}, {
|
|
3071
|
+
readonly type: "error";
|
|
3072
|
+
readonly name: "InvalidWalletIdentity";
|
|
3073
|
+
readonly inputs: readonly [];
|
|
3074
|
+
}, {
|
|
3075
|
+
readonly type: "error";
|
|
3076
|
+
readonly name: "InvalidWalletStatement";
|
|
3077
|
+
readonly inputs: readonly [];
|
|
3078
|
+
}, {
|
|
3079
|
+
readonly type: "error";
|
|
3080
|
+
readonly name: "NonceExhausted";
|
|
3081
|
+
readonly inputs: readonly [];
|
|
3082
|
+
}, {
|
|
3083
|
+
readonly type: "error";
|
|
3084
|
+
readonly name: "NotRegistered";
|
|
3085
|
+
readonly inputs: readonly [];
|
|
3086
|
+
}, {
|
|
3087
|
+
readonly type: "error";
|
|
3088
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
3089
|
+
readonly inputs: readonly [];
|
|
3090
|
+
}, {
|
|
3091
|
+
readonly type: "error";
|
|
3092
|
+
readonly name: "RegistrationExpired";
|
|
3093
|
+
readonly inputs: readonly [];
|
|
3094
|
+
}];
|
|
3095
|
+
|
|
3096
|
+
type InvisiProtocolAbi = typeof invisiProtocolAbi;
|
|
3097
|
+
type InvisiFactoryAbi = typeof invisiFactoryAbi;
|
|
3098
|
+
type VerifierRouterAbi = typeof verifierRouterAbi;
|
|
3099
|
+
type CreditVerifierRouterAbi = typeof creditVerifierRouterAbi;
|
|
3100
|
+
type InvisiAddressRegistryAbi = typeof invisiAddressRegistryAbi;
|
|
3101
|
+
|
|
3102
|
+
interface InputSource {
|
|
3103
|
+
treeId: bigint;
|
|
3104
|
+
merkleRoot: Hex;
|
|
3105
|
+
}
|
|
3106
|
+
interface TokenPermit {
|
|
3107
|
+
deadline: bigint;
|
|
3108
|
+
v: number;
|
|
3109
|
+
r: Hex;
|
|
3110
|
+
s: Hex;
|
|
3111
|
+
}
|
|
3112
|
+
interface FundingParams {
|
|
3113
|
+
payer: Address;
|
|
3114
|
+
amount: bigint;
|
|
3115
|
+
sigNonce: bigint;
|
|
3116
|
+
deadline: bigint;
|
|
3117
|
+
signature: Hex;
|
|
3118
|
+
permit: TokenPermit;
|
|
3119
|
+
}
|
|
3120
|
+
interface ShieldParams {
|
|
3121
|
+
token: Address;
|
|
3122
|
+
outputCommitments: readonly Hex[];
|
|
3123
|
+
deadline: bigint;
|
|
3124
|
+
}
|
|
3125
|
+
interface ShieldOutput {
|
|
3126
|
+
identity: Hex;
|
|
3127
|
+
amount: bigint;
|
|
3128
|
+
}
|
|
3129
|
+
interface Delivery {
|
|
3130
|
+
ciphertext: Hex;
|
|
3131
|
+
clue: Hex;
|
|
3132
|
+
}
|
|
3133
|
+
interface CrossTreeTransactParams {
|
|
3134
|
+
token: Address;
|
|
3135
|
+
sources: readonly InputSource[];
|
|
3136
|
+
nullifiers: readonly Hex[];
|
|
3137
|
+
outputCommitments: readonly Hex[];
|
|
3138
|
+
withdrawalAddress: Address;
|
|
3139
|
+
withdrawalAmount: bigint;
|
|
3140
|
+
deadline: bigint;
|
|
3141
|
+
}
|
|
3142
|
+
interface TransactRequest {
|
|
3143
|
+
params: CrossTreeTransactParams;
|
|
3144
|
+
deliveries: readonly Delivery[];
|
|
3145
|
+
funding: FundingParams;
|
|
3146
|
+
}
|
|
3147
|
+
interface CreateCreditParams {
|
|
3148
|
+
token: Address;
|
|
3149
|
+
sources: readonly InputSource[];
|
|
3150
|
+
nullifiers: readonly Hex[];
|
|
3151
|
+
creditCommitment: Hex;
|
|
3152
|
+
changeCommitment: Hex;
|
|
3153
|
+
owner: Address;
|
|
3154
|
+
expiry: bigint;
|
|
3155
|
+
deadline: bigint;
|
|
3156
|
+
}
|
|
3157
|
+
interface CreditDrawParams {
|
|
3158
|
+
token: Address;
|
|
3159
|
+
sources: readonly InputSource[];
|
|
3160
|
+
nullifiers: readonly Hex[];
|
|
3161
|
+
remainderCommitments: readonly Hex[];
|
|
3162
|
+
expiries: readonly bigint[];
|
|
3163
|
+
recoveryAmounts: readonly Hex[];
|
|
3164
|
+
spender: Address;
|
|
3165
|
+
totalAmount: bigint;
|
|
3166
|
+
deadline: bigint;
|
|
3167
|
+
}
|
|
3168
|
+
interface CancelCreditParams {
|
|
3169
|
+
token: Address;
|
|
3170
|
+
source: InputSource;
|
|
3171
|
+
nullifier: Hex;
|
|
3172
|
+
owner: Address;
|
|
3173
|
+
amount: bigint;
|
|
3174
|
+
deadline: bigint;
|
|
3175
|
+
}
|
|
3176
|
+
interface TopUpCreditParams {
|
|
3177
|
+
creation: CreateCreditParams;
|
|
3178
|
+
creditSource: InputSource;
|
|
3179
|
+
creditNullifier: Hex;
|
|
3180
|
+
previousExpiry: bigint;
|
|
3181
|
+
}
|
|
3182
|
+
interface ReceivingKeys {
|
|
3183
|
+
viewingPublicKey: Hex;
|
|
3184
|
+
clueKey: Hex;
|
|
3185
|
+
}
|
|
3186
|
+
interface AddressRegistration {
|
|
3187
|
+
walletIdentity: Hex;
|
|
3188
|
+
keys: ReceivingKeys;
|
|
3189
|
+
nonce: bigint;
|
|
3190
|
+
deadline: bigint;
|
|
3191
|
+
}
|
|
3192
|
+
|
|
3193
|
+
export { type AddressRegistration as A, type CreateCreditParams as C, type Delivery as D, type FundingParams as F, type InputSource as I, type ReceivingKeys as R, type ShieldParams as S, type TopUpCreditParams as T, type VerifierRouterAbi as V, type CancelCreditParams as a, type CreditDrawParams as b, type TransactRequest as c, type ShieldOutput as d, type CrossTreeTransactParams as e, type CreditVerifierRouterAbi as f, type InvisiAddressRegistryAbi as g, type InvisiFactoryAbi as h, type InvisiProtocolAbi as i, type TokenPermit as j, creditVerifierRouterAbi as k, invisiAddressRegistryAbi as l, invisiFactoryAbi as m, invisiProtocolAbi as n, verifierRouterAbi as v };
|