@invisi-labs/protocol 1.1.6 → 1.2.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/README.md +5 -0
- package/dist/chunk-7SS2YSEF.js +199 -0
- package/dist/chunk-7SS2YSEF.js.map +1 -0
- package/dist/{chunk-BYJ4LXCJ.js → chunk-HHJLFLVJ.js} +616 -714
- package/dist/chunk-HHJLFLVJ.js.map +1 -0
- package/dist/chunk-MVQQD5W5.js +487 -0
- package/dist/chunk-MVQQD5W5.js.map +1 -0
- package/dist/chunk-Z2XPYNMC.js +446 -0
- package/dist/chunk-Z2XPYNMC.js.map +1 -0
- package/dist/contracts.cjs +615 -713
- package/dist/contracts.cjs.map +1 -1
- package/dist/contracts.d.cts +5 -5
- package/dist/contracts.d.ts +5 -5
- package/dist/contracts.js +1 -1
- package/dist/credit.cjs +3367 -0
- package/dist/credit.cjs.map +1 -0
- package/dist/credit.d.cts +252 -0
- package/dist/credit.d.ts +252 -0
- package/dist/credit.js +53 -0
- package/dist/credit.js.map +1 -0
- package/dist/index.cjs +4294 -4223
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +128 -933
- package/dist/index.d.ts +128 -933
- package/dist/index.js +2853 -3584
- package/dist/index.js.map +1 -1
- package/dist/note.cjs +3456 -0
- package/dist/note.cjs.map +1 -0
- package/dist/note.d.cts +232 -0
- package/dist/note.d.ts +232 -0
- package/dist/note.js +43 -0
- package/dist/note.js.map +1 -0
- package/dist/provenance.cjs +558 -0
- package/dist/provenance.cjs.map +1 -0
- package/dist/provenance.d.cts +188 -0
- package/dist/provenance.d.ts +188 -0
- package/dist/provenance.js +499 -0
- package/dist/provenance.js.map +1 -0
- package/dist/{types-BmUlasOg.d.cts → types-CUnFzl5S.d.cts} +530 -590
- package/dist/{types-BmUlasOg.d.ts → types-CUnFzl5S.d.ts} +530 -590
- package/dist/validation-8g0SQVE5.d.ts +235 -0
- package/dist/validation-MgURYiNF.d.cts +235 -0
- package/package.json +20 -5
- package/dist/chunk-BYJ4LXCJ.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address, Hex } from '@invisi-labs/
|
|
1
|
+
import { Address, Hex } from '@invisi-labs/primitives';
|
|
2
2
|
|
|
3
3
|
declare const invisiProtocolAbi: readonly [{
|
|
4
4
|
readonly type: "constructor";
|
|
@@ -121,62 +121,6 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
121
121
|
readonly internalType: "uint256";
|
|
122
122
|
}];
|
|
123
123
|
readonly stateMutability: "view";
|
|
124
|
-
}, {
|
|
125
|
-
readonly type: "function";
|
|
126
|
-
readonly name: "cancelCredit";
|
|
127
|
-
readonly inputs: readonly [{
|
|
128
|
-
readonly name: "";
|
|
129
|
-
readonly type: "bytes";
|
|
130
|
-
readonly internalType: "bytes";
|
|
131
|
-
}, {
|
|
132
|
-
readonly name: "p";
|
|
133
|
-
readonly type: "tuple";
|
|
134
|
-
readonly internalType: "struct IInvisiProtocol.CancelCreditParams";
|
|
135
|
-
readonly components: readonly [{
|
|
136
|
-
readonly name: "token";
|
|
137
|
-
readonly type: "address";
|
|
138
|
-
readonly internalType: "address";
|
|
139
|
-
}, {
|
|
140
|
-
readonly name: "source";
|
|
141
|
-
readonly type: "tuple";
|
|
142
|
-
readonly internalType: "struct IInvisiProtocol.InputSource";
|
|
143
|
-
readonly components: readonly [{
|
|
144
|
-
readonly name: "treeId";
|
|
145
|
-
readonly type: "uint256";
|
|
146
|
-
readonly internalType: "uint256";
|
|
147
|
-
}, {
|
|
148
|
-
readonly name: "merkleRoot";
|
|
149
|
-
readonly type: "bytes32";
|
|
150
|
-
readonly internalType: "bytes32";
|
|
151
|
-
}];
|
|
152
|
-
}, {
|
|
153
|
-
readonly name: "nullifier";
|
|
154
|
-
readonly type: "bytes32";
|
|
155
|
-
readonly internalType: "bytes32";
|
|
156
|
-
}, {
|
|
157
|
-
readonly name: "owner";
|
|
158
|
-
readonly type: "address";
|
|
159
|
-
readonly internalType: "address";
|
|
160
|
-
}, {
|
|
161
|
-
readonly name: "amount";
|
|
162
|
-
readonly type: "uint256";
|
|
163
|
-
readonly internalType: "uint256";
|
|
164
|
-
}, {
|
|
165
|
-
readonly name: "deadline";
|
|
166
|
-
readonly type: "uint256";
|
|
167
|
-
readonly internalType: "uint256";
|
|
168
|
-
}, {
|
|
169
|
-
readonly name: "feeRecipient";
|
|
170
|
-
readonly type: "address";
|
|
171
|
-
readonly internalType: "address";
|
|
172
|
-
}, {
|
|
173
|
-
readonly name: "feeAmount";
|
|
174
|
-
readonly type: "uint256";
|
|
175
|
-
readonly internalType: "uint256";
|
|
176
|
-
}];
|
|
177
|
-
}];
|
|
178
|
-
readonly outputs: readonly [];
|
|
179
|
-
readonly stateMutability: "nonpayable";
|
|
180
124
|
}, {
|
|
181
125
|
readonly type: "function";
|
|
182
126
|
readonly name: "circuitPaused";
|
|
@@ -203,38 +147,21 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
203
147
|
readonly type: "address";
|
|
204
148
|
readonly internalType: "address";
|
|
205
149
|
}, {
|
|
206
|
-
readonly name: "
|
|
207
|
-
readonly type: "
|
|
208
|
-
readonly internalType: "
|
|
209
|
-
readonly components: readonly [{
|
|
210
|
-
readonly name: "treeId";
|
|
211
|
-
readonly type: "uint256";
|
|
212
|
-
readonly internalType: "uint256";
|
|
213
|
-
}, {
|
|
214
|
-
readonly name: "merkleRoot";
|
|
215
|
-
readonly type: "bytes32";
|
|
216
|
-
readonly internalType: "bytes32";
|
|
217
|
-
}];
|
|
150
|
+
readonly name: "owner";
|
|
151
|
+
readonly type: "address";
|
|
152
|
+
readonly internalType: "address";
|
|
218
153
|
}, {
|
|
219
|
-
readonly name: "
|
|
220
|
-
readonly type: "
|
|
221
|
-
readonly internalType: "
|
|
154
|
+
readonly name: "revocationShard";
|
|
155
|
+
readonly type: "uint64";
|
|
156
|
+
readonly internalType: "uint64";
|
|
222
157
|
}, {
|
|
223
|
-
readonly name: "
|
|
224
|
-
readonly type: "
|
|
225
|
-
readonly internalType: "
|
|
158
|
+
readonly name: "revocationSlot";
|
|
159
|
+
readonly type: "uint16";
|
|
160
|
+
readonly internalType: "uint16";
|
|
226
161
|
}, {
|
|
227
|
-
readonly name: "
|
|
162
|
+
readonly name: "creditCommitment";
|
|
228
163
|
readonly type: "bytes32";
|
|
229
164
|
readonly internalType: "bytes32";
|
|
230
|
-
}, {
|
|
231
|
-
readonly name: "owner";
|
|
232
|
-
readonly type: "address";
|
|
233
|
-
readonly internalType: "address";
|
|
234
|
-
}, {
|
|
235
|
-
readonly name: "expiry";
|
|
236
|
-
readonly type: "uint256";
|
|
237
|
-
readonly internalType: "uint256";
|
|
238
165
|
}, {
|
|
239
166
|
readonly name: "deadline";
|
|
240
167
|
readonly type: "uint256";
|
|
@@ -261,55 +188,31 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
261
188
|
readonly type: "bytes";
|
|
262
189
|
readonly internalType: "bytes";
|
|
263
190
|
}];
|
|
264
|
-
}, {
|
|
265
|
-
readonly name: "";
|
|
266
|
-
readonly type: "tuple";
|
|
267
|
-
readonly internalType: "struct IInvisiProtocol.FundingParams";
|
|
268
|
-
readonly components: readonly [{
|
|
269
|
-
readonly name: "payer";
|
|
270
|
-
readonly type: "address";
|
|
271
|
-
readonly internalType: "address";
|
|
272
|
-
}, {
|
|
273
|
-
readonly name: "amount";
|
|
274
|
-
readonly type: "uint256";
|
|
275
|
-
readonly internalType: "uint256";
|
|
276
|
-
}, {
|
|
277
|
-
readonly name: "sigNonce";
|
|
278
|
-
readonly type: "uint256";
|
|
279
|
-
readonly internalType: "uint256";
|
|
280
|
-
}, {
|
|
281
|
-
readonly name: "deadline";
|
|
282
|
-
readonly type: "uint256";
|
|
283
|
-
readonly internalType: "uint256";
|
|
284
|
-
}, {
|
|
285
|
-
readonly name: "signature";
|
|
286
|
-
readonly type: "bytes";
|
|
287
|
-
readonly internalType: "bytes";
|
|
288
|
-
}, {
|
|
289
|
-
readonly name: "permit";
|
|
290
|
-
readonly type: "tuple";
|
|
291
|
-
readonly internalType: "struct IMetaTx.TokenPermit";
|
|
292
|
-
readonly components: readonly [{
|
|
293
|
-
readonly name: "deadline";
|
|
294
|
-
readonly type: "uint256";
|
|
295
|
-
readonly internalType: "uint256";
|
|
296
|
-
}, {
|
|
297
|
-
readonly name: "v";
|
|
298
|
-
readonly type: "uint8";
|
|
299
|
-
readonly internalType: "uint8";
|
|
300
|
-
}, {
|
|
301
|
-
readonly name: "r";
|
|
302
|
-
readonly type: "bytes32";
|
|
303
|
-
readonly internalType: "bytes32";
|
|
304
|
-
}, {
|
|
305
|
-
readonly name: "s";
|
|
306
|
-
readonly type: "bytes32";
|
|
307
|
-
readonly internalType: "bytes32";
|
|
308
|
-
}];
|
|
309
|
-
}];
|
|
310
191
|
}];
|
|
311
192
|
readonly outputs: readonly [];
|
|
312
193
|
readonly stateMutability: "nonpayable";
|
|
194
|
+
}, {
|
|
195
|
+
readonly type: "function";
|
|
196
|
+
readonly name: "creditAllocation";
|
|
197
|
+
readonly inputs: readonly [{
|
|
198
|
+
readonly name: "owner";
|
|
199
|
+
readonly type: "address";
|
|
200
|
+
readonly internalType: "address";
|
|
201
|
+
}, {
|
|
202
|
+
readonly name: "token";
|
|
203
|
+
readonly type: "address";
|
|
204
|
+
readonly internalType: "address";
|
|
205
|
+
}];
|
|
206
|
+
readonly outputs: readonly [{
|
|
207
|
+
readonly name: "shard";
|
|
208
|
+
readonly type: "uint64";
|
|
209
|
+
readonly internalType: "uint64";
|
|
210
|
+
}, {
|
|
211
|
+
readonly name: "slot";
|
|
212
|
+
readonly type: "uint16";
|
|
213
|
+
readonly internalType: "uint16";
|
|
214
|
+
}];
|
|
215
|
+
readonly stateMutability: "view";
|
|
313
216
|
}, {
|
|
314
217
|
readonly type: "function";
|
|
315
218
|
readonly name: "creditDraw";
|
|
@@ -338,26 +241,52 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
338
241
|
readonly type: "bytes32";
|
|
339
242
|
readonly internalType: "bytes32";
|
|
340
243
|
}];
|
|
244
|
+
}, {
|
|
245
|
+
readonly name: "payers";
|
|
246
|
+
readonly type: "tuple[]";
|
|
247
|
+
readonly internalType: "struct IInvisiProtocol.CreditPayer[]";
|
|
248
|
+
readonly components: readonly [{
|
|
249
|
+
readonly name: "payer";
|
|
250
|
+
readonly type: "address";
|
|
251
|
+
readonly internalType: "address";
|
|
252
|
+
}, {
|
|
253
|
+
readonly name: "amount";
|
|
254
|
+
readonly type: "uint256";
|
|
255
|
+
readonly internalType: "uint256";
|
|
256
|
+
}];
|
|
257
|
+
}, {
|
|
258
|
+
readonly name: "grantRefs";
|
|
259
|
+
readonly type: "tuple[]";
|
|
260
|
+
readonly internalType: "struct IInvisiProtocol.CreditGrantRef[]";
|
|
261
|
+
readonly components: readonly [{
|
|
262
|
+
readonly name: "payerIndex";
|
|
263
|
+
readonly type: "uint256";
|
|
264
|
+
readonly internalType: "uint256";
|
|
265
|
+
}, {
|
|
266
|
+
readonly name: "shard";
|
|
267
|
+
readonly type: "uint64";
|
|
268
|
+
readonly internalType: "uint64";
|
|
269
|
+
}, {
|
|
270
|
+
readonly name: "slot";
|
|
271
|
+
readonly type: "uint16";
|
|
272
|
+
readonly internalType: "uint16";
|
|
273
|
+
}];
|
|
341
274
|
}, {
|
|
342
275
|
readonly name: "nullifiers";
|
|
343
276
|
readonly type: "bytes32[]";
|
|
344
277
|
readonly internalType: "bytes32[]";
|
|
345
278
|
}, {
|
|
346
|
-
readonly name: "
|
|
279
|
+
readonly name: "creditCommitments";
|
|
347
280
|
readonly type: "bytes32[]";
|
|
348
281
|
readonly internalType: "bytes32[]";
|
|
349
|
-
}, {
|
|
350
|
-
readonly name: "expiries";
|
|
351
|
-
readonly type: "uint256[]";
|
|
352
|
-
readonly internalType: "uint256[]";
|
|
353
282
|
}, {
|
|
354
283
|
readonly name: "recoveryAmounts";
|
|
355
284
|
readonly type: "bytes32[]";
|
|
356
285
|
readonly internalType: "bytes32[]";
|
|
357
286
|
}, {
|
|
358
|
-
readonly name: "
|
|
359
|
-
readonly type: "
|
|
360
|
-
readonly internalType: "
|
|
287
|
+
readonly name: "noteCommitment";
|
|
288
|
+
readonly type: "bytes32";
|
|
289
|
+
readonly internalType: "bytes32";
|
|
361
290
|
}, {
|
|
362
291
|
readonly name: "totalAmount";
|
|
363
292
|
readonly type: "uint256";
|
|
@@ -366,6 +295,14 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
366
295
|
readonly name: "deadline";
|
|
367
296
|
readonly type: "uint256";
|
|
368
297
|
readonly internalType: "uint256";
|
|
298
|
+
}, {
|
|
299
|
+
readonly name: "feeRecipient";
|
|
300
|
+
readonly type: "address";
|
|
301
|
+
readonly internalType: "address";
|
|
302
|
+
}, {
|
|
303
|
+
readonly name: "feeAmount";
|
|
304
|
+
readonly type: "uint256";
|
|
305
|
+
readonly internalType: "uint256";
|
|
369
306
|
}];
|
|
370
307
|
}, {
|
|
371
308
|
readonly name: "";
|
|
@@ -383,6 +320,32 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
383
320
|
}];
|
|
384
321
|
readonly outputs: readonly [];
|
|
385
322
|
readonly stateMutability: "nonpayable";
|
|
323
|
+
}, {
|
|
324
|
+
readonly type: "function";
|
|
325
|
+
readonly name: "creditRevocationBitmap";
|
|
326
|
+
readonly inputs: readonly [{
|
|
327
|
+
readonly name: "owner";
|
|
328
|
+
readonly type: "address";
|
|
329
|
+
readonly internalType: "address";
|
|
330
|
+
}, {
|
|
331
|
+
readonly name: "token";
|
|
332
|
+
readonly type: "address";
|
|
333
|
+
readonly internalType: "address";
|
|
334
|
+
}, {
|
|
335
|
+
readonly name: "shard";
|
|
336
|
+
readonly type: "uint64";
|
|
337
|
+
readonly internalType: "uint64";
|
|
338
|
+
}, {
|
|
339
|
+
readonly name: "word";
|
|
340
|
+
readonly type: "uint8";
|
|
341
|
+
readonly internalType: "uint8";
|
|
342
|
+
}];
|
|
343
|
+
readonly outputs: readonly [{
|
|
344
|
+
readonly name: "";
|
|
345
|
+
readonly type: "uint256";
|
|
346
|
+
readonly internalType: "uint256";
|
|
347
|
+
}];
|
|
348
|
+
readonly stateMutability: "view";
|
|
386
349
|
}, {
|
|
387
350
|
readonly type: "function";
|
|
388
351
|
readonly name: "eip712Domain";
|
|
@@ -493,9 +456,9 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
493
456
|
readonly stateMutability: "nonpayable";
|
|
494
457
|
}, {
|
|
495
458
|
readonly type: "function";
|
|
496
|
-
readonly name: "
|
|
459
|
+
readonly name: "isCommitmentRegistered";
|
|
497
460
|
readonly inputs: readonly [{
|
|
498
|
-
readonly name: "
|
|
461
|
+
readonly name: "commitment";
|
|
499
462
|
readonly type: "bytes32";
|
|
500
463
|
readonly internalType: "bytes32";
|
|
501
464
|
}];
|
|
@@ -595,6 +558,44 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
595
558
|
readonly inputs: readonly [];
|
|
596
559
|
readonly outputs: readonly [];
|
|
597
560
|
readonly stateMutability: "nonpayable";
|
|
561
|
+
}, {
|
|
562
|
+
readonly type: "function";
|
|
563
|
+
readonly name: "revokeCredit";
|
|
564
|
+
readonly inputs: readonly [{
|
|
565
|
+
readonly name: "token";
|
|
566
|
+
readonly type: "address";
|
|
567
|
+
readonly internalType: "address";
|
|
568
|
+
}, {
|
|
569
|
+
readonly name: "owner";
|
|
570
|
+
readonly type: "address";
|
|
571
|
+
readonly internalType: "address";
|
|
572
|
+
}, {
|
|
573
|
+
readonly name: "shard";
|
|
574
|
+
readonly type: "uint64";
|
|
575
|
+
readonly internalType: "uint64";
|
|
576
|
+
}, {
|
|
577
|
+
readonly name: "slot";
|
|
578
|
+
readonly type: "uint16";
|
|
579
|
+
readonly internalType: "uint16";
|
|
580
|
+
}, {
|
|
581
|
+
readonly name: "deadline";
|
|
582
|
+
readonly type: "uint256";
|
|
583
|
+
readonly internalType: "uint256";
|
|
584
|
+
}, {
|
|
585
|
+
readonly name: "feeRecipient";
|
|
586
|
+
readonly type: "address";
|
|
587
|
+
readonly internalType: "address";
|
|
588
|
+
}, {
|
|
589
|
+
readonly name: "feeAmount";
|
|
590
|
+
readonly type: "uint256";
|
|
591
|
+
readonly internalType: "uint256";
|
|
592
|
+
}, {
|
|
593
|
+
readonly name: "signature";
|
|
594
|
+
readonly type: "bytes";
|
|
595
|
+
readonly internalType: "bytes";
|
|
596
|
+
}];
|
|
597
|
+
readonly outputs: readonly [];
|
|
598
|
+
readonly stateMutability: "nonpayable";
|
|
598
599
|
}, {
|
|
599
600
|
readonly type: "function";
|
|
600
601
|
readonly name: "rootHistory";
|
|
@@ -627,199 +628,50 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
627
628
|
readonly type: "function";
|
|
628
629
|
readonly name: "setScreener";
|
|
629
630
|
readonly inputs: readonly [{
|
|
630
|
-
readonly name: "newScreener";
|
|
631
|
-
readonly type: "address";
|
|
632
|
-
readonly internalType: "address";
|
|
633
|
-
}];
|
|
634
|
-
readonly outputs: readonly [];
|
|
635
|
-
readonly stateMutability: "nonpayable";
|
|
636
|
-
}, {
|
|
637
|
-
readonly type: "function";
|
|
638
|
-
readonly name: "shield";
|
|
639
|
-
readonly inputs: readonly [{
|
|
640
|
-
readonly name: "p";
|
|
641
|
-
readonly type: "tuple";
|
|
642
|
-
readonly internalType: "struct IInvisiProtocol.ShieldParams";
|
|
643
|
-
readonly components: readonly [{
|
|
644
|
-
readonly name: "token";
|
|
645
|
-
readonly type: "address";
|
|
646
|
-
readonly internalType: "address";
|
|
647
|
-
}, {
|
|
648
|
-
readonly name: "outputCommitments";
|
|
649
|
-
readonly type: "bytes32[]";
|
|
650
|
-
readonly internalType: "bytes32[]";
|
|
651
|
-
}, {
|
|
652
|
-
readonly name: "deadline";
|
|
653
|
-
readonly type: "uint256";
|
|
654
|
-
readonly internalType: "uint256";
|
|
655
|
-
}, {
|
|
656
|
-
readonly name: "feeRecipient";
|
|
657
|
-
readonly type: "address";
|
|
658
|
-
readonly internalType: "address";
|
|
659
|
-
}, {
|
|
660
|
-
readonly name: "feeAmount";
|
|
661
|
-
readonly type: "uint256";
|
|
662
|
-
readonly internalType: "uint256";
|
|
663
|
-
}];
|
|
664
|
-
}, {
|
|
665
|
-
readonly name: "";
|
|
666
|
-
readonly type: "tuple[]";
|
|
667
|
-
readonly internalType: "struct IInvisiProtocol.ShieldOutput[]";
|
|
668
|
-
readonly components: readonly [{
|
|
669
|
-
readonly name: "identity";
|
|
670
|
-
readonly type: "bytes32";
|
|
671
|
-
readonly internalType: "bytes32";
|
|
672
|
-
}, {
|
|
673
|
-
readonly name: "amount";
|
|
674
|
-
readonly type: "uint256";
|
|
675
|
-
readonly internalType: "uint256";
|
|
676
|
-
}];
|
|
677
|
-
}, {
|
|
678
|
-
readonly name: "";
|
|
679
|
-
readonly type: "tuple[]";
|
|
680
|
-
readonly internalType: "struct IInvisiProtocol.Delivery[]";
|
|
681
|
-
readonly components: readonly [{
|
|
682
|
-
readonly name: "ciphertext";
|
|
683
|
-
readonly type: "bytes";
|
|
684
|
-
readonly internalType: "bytes";
|
|
685
|
-
}, {
|
|
686
|
-
readonly name: "clue";
|
|
687
|
-
readonly type: "bytes";
|
|
688
|
-
readonly internalType: "bytes";
|
|
689
|
-
}];
|
|
690
|
-
}, {
|
|
691
|
-
readonly name: "";
|
|
692
|
-
readonly type: "tuple";
|
|
693
|
-
readonly internalType: "struct IInvisiProtocol.FundingParams";
|
|
694
|
-
readonly components: readonly [{
|
|
695
|
-
readonly name: "payer";
|
|
696
|
-
readonly type: "address";
|
|
697
|
-
readonly internalType: "address";
|
|
698
|
-
}, {
|
|
699
|
-
readonly name: "amount";
|
|
700
|
-
readonly type: "uint256";
|
|
701
|
-
readonly internalType: "uint256";
|
|
702
|
-
}, {
|
|
703
|
-
readonly name: "sigNonce";
|
|
704
|
-
readonly type: "uint256";
|
|
705
|
-
readonly internalType: "uint256";
|
|
706
|
-
}, {
|
|
707
|
-
readonly name: "deadline";
|
|
708
|
-
readonly type: "uint256";
|
|
709
|
-
readonly internalType: "uint256";
|
|
710
|
-
}, {
|
|
711
|
-
readonly name: "signature";
|
|
712
|
-
readonly type: "bytes";
|
|
713
|
-
readonly internalType: "bytes";
|
|
714
|
-
}, {
|
|
715
|
-
readonly name: "permit";
|
|
716
|
-
readonly type: "tuple";
|
|
717
|
-
readonly internalType: "struct IMetaTx.TokenPermit";
|
|
718
|
-
readonly components: readonly [{
|
|
719
|
-
readonly name: "deadline";
|
|
720
|
-
readonly type: "uint256";
|
|
721
|
-
readonly internalType: "uint256";
|
|
722
|
-
}, {
|
|
723
|
-
readonly name: "v";
|
|
724
|
-
readonly type: "uint8";
|
|
725
|
-
readonly internalType: "uint8";
|
|
726
|
-
}, {
|
|
727
|
-
readonly name: "r";
|
|
728
|
-
readonly type: "bytes32";
|
|
729
|
-
readonly internalType: "bytes32";
|
|
730
|
-
}, {
|
|
731
|
-
readonly name: "s";
|
|
732
|
-
readonly type: "bytes32";
|
|
733
|
-
readonly internalType: "bytes32";
|
|
734
|
-
}];
|
|
735
|
-
}];
|
|
736
|
-
}];
|
|
737
|
-
readonly outputs: readonly [];
|
|
738
|
-
readonly stateMutability: "nonpayable";
|
|
739
|
-
}, {
|
|
740
|
-
readonly type: "function";
|
|
741
|
-
readonly name: "topUpCredit";
|
|
742
|
-
readonly inputs: readonly [{
|
|
743
|
-
readonly name: "";
|
|
744
|
-
readonly type: "bytes";
|
|
745
|
-
readonly internalType: "bytes";
|
|
746
|
-
}, {
|
|
747
|
-
readonly name: "p";
|
|
748
|
-
readonly type: "tuple";
|
|
749
|
-
readonly internalType: "struct IInvisiProtocol.TopUpCreditParams";
|
|
750
|
-
readonly components: readonly [{
|
|
751
|
-
readonly name: "creation";
|
|
752
|
-
readonly type: "tuple";
|
|
753
|
-
readonly internalType: "struct IInvisiProtocol.CreateCreditParams";
|
|
754
|
-
readonly components: readonly [{
|
|
755
|
-
readonly name: "token";
|
|
756
|
-
readonly type: "address";
|
|
757
|
-
readonly internalType: "address";
|
|
758
|
-
}, {
|
|
759
|
-
readonly name: "sources";
|
|
760
|
-
readonly type: "tuple[]";
|
|
761
|
-
readonly internalType: "struct IInvisiProtocol.InputSource[]";
|
|
762
|
-
readonly components: readonly [{
|
|
763
|
-
readonly name: "treeId";
|
|
764
|
-
readonly type: "uint256";
|
|
765
|
-
readonly internalType: "uint256";
|
|
766
|
-
}, {
|
|
767
|
-
readonly name: "merkleRoot";
|
|
768
|
-
readonly type: "bytes32";
|
|
769
|
-
readonly internalType: "bytes32";
|
|
770
|
-
}];
|
|
771
|
-
}, {
|
|
772
|
-
readonly name: "nullifiers";
|
|
773
|
-
readonly type: "bytes32[]";
|
|
774
|
-
readonly internalType: "bytes32[]";
|
|
775
|
-
}, {
|
|
776
|
-
readonly name: "creditCommitment";
|
|
777
|
-
readonly type: "bytes32";
|
|
778
|
-
readonly internalType: "bytes32";
|
|
779
|
-
}, {
|
|
780
|
-
readonly name: "changeCommitment";
|
|
781
|
-
readonly type: "bytes32";
|
|
782
|
-
readonly internalType: "bytes32";
|
|
783
|
-
}, {
|
|
784
|
-
readonly name: "owner";
|
|
785
|
-
readonly type: "address";
|
|
786
|
-
readonly internalType: "address";
|
|
787
|
-
}, {
|
|
788
|
-
readonly name: "expiry";
|
|
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: "feeRecipient";
|
|
797
|
-
readonly type: "address";
|
|
798
|
-
readonly internalType: "address";
|
|
799
|
-
}, {
|
|
800
|
-
readonly name: "feeAmount";
|
|
801
|
-
readonly type: "uint256";
|
|
802
|
-
readonly internalType: "uint256";
|
|
803
|
-
}];
|
|
631
|
+
readonly name: "newScreener";
|
|
632
|
+
readonly type: "address";
|
|
633
|
+
readonly internalType: "address";
|
|
634
|
+
}];
|
|
635
|
+
readonly outputs: readonly [];
|
|
636
|
+
readonly stateMutability: "nonpayable";
|
|
637
|
+
}, {
|
|
638
|
+
readonly type: "function";
|
|
639
|
+
readonly name: "shield";
|
|
640
|
+
readonly inputs: readonly [{
|
|
641
|
+
readonly name: "p";
|
|
642
|
+
readonly type: "tuple";
|
|
643
|
+
readonly internalType: "struct IInvisiProtocol.ShieldParams";
|
|
644
|
+
readonly components: readonly [{
|
|
645
|
+
readonly name: "token";
|
|
646
|
+
readonly type: "address";
|
|
647
|
+
readonly internalType: "address";
|
|
804
648
|
}, {
|
|
805
|
-
readonly name: "
|
|
806
|
-
readonly type: "
|
|
807
|
-
readonly internalType: "
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
}];
|
|
649
|
+
readonly name: "noteCommitments";
|
|
650
|
+
readonly type: "bytes32[]";
|
|
651
|
+
readonly internalType: "bytes32[]";
|
|
652
|
+
}, {
|
|
653
|
+
readonly name: "deadline";
|
|
654
|
+
readonly type: "uint256";
|
|
655
|
+
readonly internalType: "uint256";
|
|
656
|
+
}, {
|
|
657
|
+
readonly name: "feeRecipient";
|
|
658
|
+
readonly type: "address";
|
|
659
|
+
readonly internalType: "address";
|
|
817
660
|
}, {
|
|
818
|
-
readonly name: "
|
|
661
|
+
readonly name: "feeAmount";
|
|
662
|
+
readonly type: "uint256";
|
|
663
|
+
readonly internalType: "uint256";
|
|
664
|
+
}];
|
|
665
|
+
}, {
|
|
666
|
+
readonly name: "";
|
|
667
|
+
readonly type: "tuple[]";
|
|
668
|
+
readonly internalType: "struct IInvisiProtocol.ShieldOutput[]";
|
|
669
|
+
readonly components: readonly [{
|
|
670
|
+
readonly name: "identity";
|
|
819
671
|
readonly type: "bytes32";
|
|
820
672
|
readonly internalType: "bytes32";
|
|
821
673
|
}, {
|
|
822
|
-
readonly name: "
|
|
674
|
+
readonly name: "amount";
|
|
823
675
|
readonly type: "uint256";
|
|
824
676
|
readonly internalType: "uint256";
|
|
825
677
|
}];
|
|
@@ -922,7 +774,7 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
922
774
|
readonly type: "bytes32[]";
|
|
923
775
|
readonly internalType: "bytes32[]";
|
|
924
776
|
}, {
|
|
925
|
-
readonly name: "
|
|
777
|
+
readonly name: "noteCommitments";
|
|
926
778
|
readonly type: "bytes32[]";
|
|
927
779
|
readonly internalType: "bytes32[]";
|
|
928
780
|
}, {
|
|
@@ -1046,7 +898,7 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1046
898
|
readonly type: "bytes32[]";
|
|
1047
899
|
readonly internalType: "bytes32[]";
|
|
1048
900
|
}, {
|
|
1049
|
-
readonly name: "
|
|
901
|
+
readonly name: "noteCommitments";
|
|
1050
902
|
readonly type: "bytes32[]";
|
|
1051
903
|
readonly internalType: "bytes32[]";
|
|
1052
904
|
}, {
|
|
@@ -1155,6 +1007,83 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1155
1007
|
readonly inputs: readonly [];
|
|
1156
1008
|
readonly outputs: readonly [];
|
|
1157
1009
|
readonly stateMutability: "nonpayable";
|
|
1010
|
+
}, {
|
|
1011
|
+
readonly type: "function";
|
|
1012
|
+
readonly name: "updateCredit";
|
|
1013
|
+
readonly inputs: readonly [{
|
|
1014
|
+
readonly name: "";
|
|
1015
|
+
readonly type: "bytes";
|
|
1016
|
+
readonly internalType: "bytes";
|
|
1017
|
+
}, {
|
|
1018
|
+
readonly name: "p";
|
|
1019
|
+
readonly type: "tuple";
|
|
1020
|
+
readonly internalType: "struct IInvisiProtocol.UpdateCreditParams";
|
|
1021
|
+
readonly components: readonly [{
|
|
1022
|
+
readonly name: "token";
|
|
1023
|
+
readonly type: "address";
|
|
1024
|
+
readonly internalType: "address";
|
|
1025
|
+
}, {
|
|
1026
|
+
readonly name: "owner";
|
|
1027
|
+
readonly type: "address";
|
|
1028
|
+
readonly internalType: "address";
|
|
1029
|
+
}, {
|
|
1030
|
+
readonly name: "source";
|
|
1031
|
+
readonly type: "tuple";
|
|
1032
|
+
readonly internalType: "struct IInvisiProtocol.InputSource";
|
|
1033
|
+
readonly components: readonly [{
|
|
1034
|
+
readonly name: "treeId";
|
|
1035
|
+
readonly type: "uint256";
|
|
1036
|
+
readonly internalType: "uint256";
|
|
1037
|
+
}, {
|
|
1038
|
+
readonly name: "merkleRoot";
|
|
1039
|
+
readonly type: "bytes32";
|
|
1040
|
+
readonly internalType: "bytes32";
|
|
1041
|
+
}];
|
|
1042
|
+
}, {
|
|
1043
|
+
readonly name: "nullifier";
|
|
1044
|
+
readonly type: "bytes32";
|
|
1045
|
+
readonly internalType: "bytes32";
|
|
1046
|
+
}, {
|
|
1047
|
+
readonly name: "creditCommitment";
|
|
1048
|
+
readonly type: "bytes32";
|
|
1049
|
+
readonly internalType: "bytes32";
|
|
1050
|
+
}, {
|
|
1051
|
+
readonly name: "revocationShard";
|
|
1052
|
+
readonly type: "uint64";
|
|
1053
|
+
readonly internalType: "uint64";
|
|
1054
|
+
}, {
|
|
1055
|
+
readonly name: "revocationSlot";
|
|
1056
|
+
readonly type: "uint16";
|
|
1057
|
+
readonly internalType: "uint16";
|
|
1058
|
+
}, {
|
|
1059
|
+
readonly name: "deadline";
|
|
1060
|
+
readonly type: "uint256";
|
|
1061
|
+
readonly internalType: "uint256";
|
|
1062
|
+
}, {
|
|
1063
|
+
readonly name: "feeRecipient";
|
|
1064
|
+
readonly type: "address";
|
|
1065
|
+
readonly internalType: "address";
|
|
1066
|
+
}, {
|
|
1067
|
+
readonly name: "feeAmount";
|
|
1068
|
+
readonly type: "uint256";
|
|
1069
|
+
readonly internalType: "uint256";
|
|
1070
|
+
}];
|
|
1071
|
+
}, {
|
|
1072
|
+
readonly name: "";
|
|
1073
|
+
readonly type: "tuple[]";
|
|
1074
|
+
readonly internalType: "struct IInvisiProtocol.Delivery[]";
|
|
1075
|
+
readonly components: readonly [{
|
|
1076
|
+
readonly name: "ciphertext";
|
|
1077
|
+
readonly type: "bytes";
|
|
1078
|
+
readonly internalType: "bytes";
|
|
1079
|
+
}, {
|
|
1080
|
+
readonly name: "clue";
|
|
1081
|
+
readonly type: "bytes";
|
|
1082
|
+
readonly internalType: "bytes";
|
|
1083
|
+
}];
|
|
1084
|
+
}];
|
|
1085
|
+
readonly outputs: readonly [];
|
|
1086
|
+
readonly stateMutability: "nonpayable";
|
|
1158
1087
|
}, {
|
|
1159
1088
|
readonly type: "function";
|
|
1160
1089
|
readonly name: "verifierRouter";
|
|
@@ -1207,7 +1136,7 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1207
1136
|
readonly indexed: false;
|
|
1208
1137
|
readonly internalType: "address[]";
|
|
1209
1138
|
}, {
|
|
1210
|
-
readonly name: "
|
|
1139
|
+
readonly name: "noteCommitments";
|
|
1211
1140
|
readonly type: "bytes32[]";
|
|
1212
1141
|
readonly indexed: false;
|
|
1213
1142
|
readonly internalType: "bytes32[]";
|
|
@@ -1362,43 +1291,13 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1362
1291
|
readonly internalType: "bytes32[]";
|
|
1363
1292
|
}];
|
|
1364
1293
|
readonly anonymous: false;
|
|
1365
|
-
}, {
|
|
1366
|
-
readonly type: "event";
|
|
1367
|
-
readonly name: "CreditCancelled";
|
|
1368
|
-
readonly inputs: readonly [{
|
|
1369
|
-
readonly name: "token";
|
|
1370
|
-
readonly type: "address";
|
|
1371
|
-
readonly indexed: false;
|
|
1372
|
-
readonly internalType: "address";
|
|
1373
|
-
}, {
|
|
1374
|
-
readonly name: "owner";
|
|
1375
|
-
readonly type: "address";
|
|
1376
|
-
readonly indexed: true;
|
|
1377
|
-
readonly internalType: "address";
|
|
1378
|
-
}, {
|
|
1379
|
-
readonly name: "inputTreeId";
|
|
1380
|
-
readonly type: "uint256";
|
|
1381
|
-
readonly indexed: true;
|
|
1382
|
-
readonly internalType: "uint256";
|
|
1383
|
-
}, {
|
|
1384
|
-
readonly name: "nullifier";
|
|
1385
|
-
readonly type: "bytes32";
|
|
1386
|
-
readonly indexed: true;
|
|
1387
|
-
readonly internalType: "bytes32";
|
|
1388
|
-
}, {
|
|
1389
|
-
readonly name: "amount";
|
|
1390
|
-
readonly type: "uint256";
|
|
1391
|
-
readonly indexed: false;
|
|
1392
|
-
readonly internalType: "uint256";
|
|
1393
|
-
}];
|
|
1394
|
-
readonly anonymous: false;
|
|
1395
1294
|
}, {
|
|
1396
1295
|
readonly type: "event";
|
|
1397
1296
|
readonly name: "CreditCreated";
|
|
1398
1297
|
readonly inputs: readonly [{
|
|
1399
1298
|
readonly name: "token";
|
|
1400
1299
|
readonly type: "address";
|
|
1401
|
-
readonly indexed:
|
|
1300
|
+
readonly indexed: true;
|
|
1402
1301
|
readonly internalType: "address";
|
|
1403
1302
|
}, {
|
|
1404
1303
|
readonly name: "owner";
|
|
@@ -1411,39 +1310,25 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1411
1310
|
readonly indexed: true;
|
|
1412
1311
|
readonly internalType: "uint256";
|
|
1413
1312
|
}, {
|
|
1414
|
-
readonly name: "
|
|
1415
|
-
readonly type: "
|
|
1313
|
+
readonly name: "revocationShard";
|
|
1314
|
+
readonly type: "uint64";
|
|
1416
1315
|
readonly indexed: false;
|
|
1417
|
-
readonly internalType: "
|
|
1418
|
-
readonly components: readonly [{
|
|
1419
|
-
readonly name: "treeId";
|
|
1420
|
-
readonly type: "uint256";
|
|
1421
|
-
readonly internalType: "uint256";
|
|
1422
|
-
}, {
|
|
1423
|
-
readonly name: "merkleRoot";
|
|
1424
|
-
readonly type: "bytes32";
|
|
1425
|
-
readonly internalType: "bytes32";
|
|
1426
|
-
}];
|
|
1316
|
+
readonly internalType: "uint64";
|
|
1427
1317
|
}, {
|
|
1428
|
-
readonly name: "
|
|
1429
|
-
readonly type: "
|
|
1318
|
+
readonly name: "revocationSlot";
|
|
1319
|
+
readonly type: "uint16";
|
|
1430
1320
|
readonly indexed: false;
|
|
1431
|
-
readonly internalType: "
|
|
1321
|
+
readonly internalType: "uint16";
|
|
1432
1322
|
}, {
|
|
1433
1323
|
readonly name: "creditCommitment";
|
|
1434
1324
|
readonly type: "bytes32";
|
|
1435
1325
|
readonly indexed: false;
|
|
1436
1326
|
readonly internalType: "bytes32";
|
|
1437
1327
|
}, {
|
|
1438
|
-
readonly name: "
|
|
1439
|
-
readonly type: "
|
|
1440
|
-
readonly indexed: false;
|
|
1441
|
-
readonly internalType: "bytes32";
|
|
1442
|
-
}, {
|
|
1443
|
-
readonly name: "leafIndices";
|
|
1444
|
-
readonly type: "uint32[]";
|
|
1328
|
+
readonly name: "leafIndex";
|
|
1329
|
+
readonly type: "uint32";
|
|
1445
1330
|
readonly indexed: false;
|
|
1446
|
-
readonly internalType: "uint32
|
|
1331
|
+
readonly internalType: "uint32";
|
|
1447
1332
|
}, {
|
|
1448
1333
|
readonly name: "deliveries";
|
|
1449
1334
|
readonly type: "tuple[]";
|
|
@@ -1459,7 +1344,17 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1459
1344
|
readonly internalType: "bytes";
|
|
1460
1345
|
}];
|
|
1461
1346
|
}, {
|
|
1462
|
-
readonly name: "
|
|
1347
|
+
readonly name: "deadline";
|
|
1348
|
+
readonly type: "uint256";
|
|
1349
|
+
readonly indexed: false;
|
|
1350
|
+
readonly internalType: "uint256";
|
|
1351
|
+
}, {
|
|
1352
|
+
readonly name: "feeRecipient";
|
|
1353
|
+
readonly type: "address";
|
|
1354
|
+
readonly indexed: false;
|
|
1355
|
+
readonly internalType: "address";
|
|
1356
|
+
}, {
|
|
1357
|
+
readonly name: "feeAmount";
|
|
1463
1358
|
readonly type: "uint256";
|
|
1464
1359
|
readonly indexed: false;
|
|
1465
1360
|
readonly internalType: "uint256";
|
|
@@ -1469,11 +1364,6 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1469
1364
|
readonly type: "event";
|
|
1470
1365
|
readonly name: "CreditDraw";
|
|
1471
1366
|
readonly inputs: readonly [{
|
|
1472
|
-
readonly name: "spender";
|
|
1473
|
-
readonly type: "address";
|
|
1474
|
-
readonly indexed: true;
|
|
1475
|
-
readonly internalType: "address";
|
|
1476
|
-
}, {
|
|
1477
1367
|
readonly name: "outputTreeId";
|
|
1478
1368
|
readonly type: "uint256";
|
|
1479
1369
|
readonly indexed: true;
|
|
@@ -1500,26 +1390,52 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1500
1390
|
readonly type: "bytes32";
|
|
1501
1391
|
readonly internalType: "bytes32";
|
|
1502
1392
|
}];
|
|
1393
|
+
}, {
|
|
1394
|
+
readonly name: "payers";
|
|
1395
|
+
readonly type: "tuple[]";
|
|
1396
|
+
readonly internalType: "struct IInvisiProtocol.CreditPayer[]";
|
|
1397
|
+
readonly components: readonly [{
|
|
1398
|
+
readonly name: "payer";
|
|
1399
|
+
readonly type: "address";
|
|
1400
|
+
readonly internalType: "address";
|
|
1401
|
+
}, {
|
|
1402
|
+
readonly name: "amount";
|
|
1403
|
+
readonly type: "uint256";
|
|
1404
|
+
readonly internalType: "uint256";
|
|
1405
|
+
}];
|
|
1406
|
+
}, {
|
|
1407
|
+
readonly name: "grantRefs";
|
|
1408
|
+
readonly type: "tuple[]";
|
|
1409
|
+
readonly internalType: "struct IInvisiProtocol.CreditGrantRef[]";
|
|
1410
|
+
readonly components: readonly [{
|
|
1411
|
+
readonly name: "payerIndex";
|
|
1412
|
+
readonly type: "uint256";
|
|
1413
|
+
readonly internalType: "uint256";
|
|
1414
|
+
}, {
|
|
1415
|
+
readonly name: "shard";
|
|
1416
|
+
readonly type: "uint64";
|
|
1417
|
+
readonly internalType: "uint64";
|
|
1418
|
+
}, {
|
|
1419
|
+
readonly name: "slot";
|
|
1420
|
+
readonly type: "uint16";
|
|
1421
|
+
readonly internalType: "uint16";
|
|
1422
|
+
}];
|
|
1503
1423
|
}, {
|
|
1504
1424
|
readonly name: "nullifiers";
|
|
1505
1425
|
readonly type: "bytes32[]";
|
|
1506
1426
|
readonly internalType: "bytes32[]";
|
|
1507
1427
|
}, {
|
|
1508
|
-
readonly name: "
|
|
1428
|
+
readonly name: "creditCommitments";
|
|
1509
1429
|
readonly type: "bytes32[]";
|
|
1510
1430
|
readonly internalType: "bytes32[]";
|
|
1511
|
-
}, {
|
|
1512
|
-
readonly name: "expiries";
|
|
1513
|
-
readonly type: "uint256[]";
|
|
1514
|
-
readonly internalType: "uint256[]";
|
|
1515
1431
|
}, {
|
|
1516
1432
|
readonly name: "recoveryAmounts";
|
|
1517
1433
|
readonly type: "bytes32[]";
|
|
1518
1434
|
readonly internalType: "bytes32[]";
|
|
1519
1435
|
}, {
|
|
1520
|
-
readonly name: "
|
|
1521
|
-
readonly type: "
|
|
1522
|
-
readonly internalType: "
|
|
1436
|
+
readonly name: "noteCommitment";
|
|
1437
|
+
readonly type: "bytes32";
|
|
1438
|
+
readonly internalType: "bytes32";
|
|
1523
1439
|
}, {
|
|
1524
1440
|
readonly name: "totalAmount";
|
|
1525
1441
|
readonly type: "uint256";
|
|
@@ -1528,31 +1444,74 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1528
1444
|
readonly name: "deadline";
|
|
1529
1445
|
readonly type: "uint256";
|
|
1530
1446
|
readonly internalType: "uint256";
|
|
1447
|
+
}, {
|
|
1448
|
+
readonly name: "feeRecipient";
|
|
1449
|
+
readonly type: "address";
|
|
1450
|
+
readonly internalType: "address";
|
|
1451
|
+
}, {
|
|
1452
|
+
readonly name: "feeAmount";
|
|
1453
|
+
readonly type: "uint256";
|
|
1454
|
+
readonly internalType: "uint256";
|
|
1455
|
+
}];
|
|
1456
|
+
}, {
|
|
1457
|
+
readonly name: "leafIndices";
|
|
1458
|
+
readonly type: "uint32[]";
|
|
1459
|
+
readonly indexed: false;
|
|
1460
|
+
readonly internalType: "uint32[]";
|
|
1461
|
+
}, {
|
|
1462
|
+
readonly name: "deliveries";
|
|
1463
|
+
readonly type: "tuple[]";
|
|
1464
|
+
readonly indexed: false;
|
|
1465
|
+
readonly internalType: "struct IInvisiProtocol.Delivery[]";
|
|
1466
|
+
readonly components: readonly [{
|
|
1467
|
+
readonly name: "ciphertext";
|
|
1468
|
+
readonly type: "bytes";
|
|
1469
|
+
readonly internalType: "bytes";
|
|
1470
|
+
}, {
|
|
1471
|
+
readonly name: "clue";
|
|
1472
|
+
readonly type: "bytes";
|
|
1473
|
+
readonly internalType: "bytes";
|
|
1531
1474
|
}];
|
|
1475
|
+
}];
|
|
1476
|
+
readonly anonymous: false;
|
|
1477
|
+
}, {
|
|
1478
|
+
readonly type: "event";
|
|
1479
|
+
readonly name: "CreditRevoked";
|
|
1480
|
+
readonly inputs: readonly [{
|
|
1481
|
+
readonly name: "owner";
|
|
1482
|
+
readonly type: "address";
|
|
1483
|
+
readonly indexed: true;
|
|
1484
|
+
readonly internalType: "address";
|
|
1485
|
+
}, {
|
|
1486
|
+
readonly name: "token";
|
|
1487
|
+
readonly type: "address";
|
|
1488
|
+
readonly indexed: true;
|
|
1489
|
+
readonly internalType: "address";
|
|
1532
1490
|
}, {
|
|
1533
|
-
readonly name: "
|
|
1534
|
-
readonly type: "
|
|
1491
|
+
readonly name: "shard";
|
|
1492
|
+
readonly type: "uint64";
|
|
1493
|
+
readonly indexed: true;
|
|
1494
|
+
readonly internalType: "uint64";
|
|
1495
|
+
}, {
|
|
1496
|
+
readonly name: "slot";
|
|
1497
|
+
readonly type: "uint16";
|
|
1535
1498
|
readonly indexed: false;
|
|
1536
|
-
readonly internalType: "
|
|
1499
|
+
readonly internalType: "uint16";
|
|
1537
1500
|
}, {
|
|
1538
|
-
readonly name: "
|
|
1539
|
-
readonly type: "
|
|
1501
|
+
readonly name: "feeRecipient";
|
|
1502
|
+
readonly type: "address";
|
|
1540
1503
|
readonly indexed: false;
|
|
1541
|
-
readonly internalType: "
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
readonly name: "clue";
|
|
1548
|
-
readonly type: "bytes";
|
|
1549
|
-
readonly internalType: "bytes";
|
|
1550
|
-
}];
|
|
1504
|
+
readonly internalType: "address";
|
|
1505
|
+
}, {
|
|
1506
|
+
readonly name: "feeAmount";
|
|
1507
|
+
readonly type: "uint256";
|
|
1508
|
+
readonly indexed: false;
|
|
1509
|
+
readonly internalType: "uint256";
|
|
1551
1510
|
}];
|
|
1552
1511
|
readonly anonymous: false;
|
|
1553
1512
|
}, {
|
|
1554
1513
|
readonly type: "event";
|
|
1555
|
-
readonly name: "
|
|
1514
|
+
readonly name: "CreditUpdated";
|
|
1556
1515
|
readonly inputs: readonly [{
|
|
1557
1516
|
readonly name: "owner";
|
|
1558
1517
|
readonly type: "address";
|
|
@@ -1567,63 +1526,17 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1567
1526
|
readonly name: "params";
|
|
1568
1527
|
readonly type: "tuple";
|
|
1569
1528
|
readonly indexed: false;
|
|
1570
|
-
readonly internalType: "struct IInvisiProtocol.
|
|
1529
|
+
readonly internalType: "struct IInvisiProtocol.UpdateCreditParams";
|
|
1571
1530
|
readonly components: readonly [{
|
|
1572
|
-
readonly name: "
|
|
1573
|
-
readonly type: "
|
|
1574
|
-
readonly internalType: "
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
}, {
|
|
1580
|
-
readonly name: "sources";
|
|
1581
|
-
readonly type: "tuple[]";
|
|
1582
|
-
readonly internalType: "struct IInvisiProtocol.InputSource[]";
|
|
1583
|
-
readonly components: readonly [{
|
|
1584
|
-
readonly name: "treeId";
|
|
1585
|
-
readonly type: "uint256";
|
|
1586
|
-
readonly internalType: "uint256";
|
|
1587
|
-
}, {
|
|
1588
|
-
readonly name: "merkleRoot";
|
|
1589
|
-
readonly type: "bytes32";
|
|
1590
|
-
readonly internalType: "bytes32";
|
|
1591
|
-
}];
|
|
1592
|
-
}, {
|
|
1593
|
-
readonly name: "nullifiers";
|
|
1594
|
-
readonly type: "bytes32[]";
|
|
1595
|
-
readonly internalType: "bytes32[]";
|
|
1596
|
-
}, {
|
|
1597
|
-
readonly name: "creditCommitment";
|
|
1598
|
-
readonly type: "bytes32";
|
|
1599
|
-
readonly internalType: "bytes32";
|
|
1600
|
-
}, {
|
|
1601
|
-
readonly name: "changeCommitment";
|
|
1602
|
-
readonly type: "bytes32";
|
|
1603
|
-
readonly internalType: "bytes32";
|
|
1604
|
-
}, {
|
|
1605
|
-
readonly name: "owner";
|
|
1606
|
-
readonly type: "address";
|
|
1607
|
-
readonly internalType: "address";
|
|
1608
|
-
}, {
|
|
1609
|
-
readonly name: "expiry";
|
|
1610
|
-
readonly type: "uint256";
|
|
1611
|
-
readonly internalType: "uint256";
|
|
1612
|
-
}, {
|
|
1613
|
-
readonly name: "deadline";
|
|
1614
|
-
readonly type: "uint256";
|
|
1615
|
-
readonly internalType: "uint256";
|
|
1616
|
-
}, {
|
|
1617
|
-
readonly name: "feeRecipient";
|
|
1618
|
-
readonly type: "address";
|
|
1619
|
-
readonly internalType: "address";
|
|
1620
|
-
}, {
|
|
1621
|
-
readonly name: "feeAmount";
|
|
1622
|
-
readonly type: "uint256";
|
|
1623
|
-
readonly internalType: "uint256";
|
|
1624
|
-
}];
|
|
1531
|
+
readonly name: "token";
|
|
1532
|
+
readonly type: "address";
|
|
1533
|
+
readonly internalType: "address";
|
|
1534
|
+
}, {
|
|
1535
|
+
readonly name: "owner";
|
|
1536
|
+
readonly type: "address";
|
|
1537
|
+
readonly internalType: "address";
|
|
1625
1538
|
}, {
|
|
1626
|
-
readonly name: "
|
|
1539
|
+
readonly name: "source";
|
|
1627
1540
|
readonly type: "tuple";
|
|
1628
1541
|
readonly internalType: "struct IInvisiProtocol.InputSource";
|
|
1629
1542
|
readonly components: readonly [{
|
|
@@ -1636,19 +1549,39 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1636
1549
|
readonly internalType: "bytes32";
|
|
1637
1550
|
}];
|
|
1638
1551
|
}, {
|
|
1639
|
-
readonly name: "
|
|
1552
|
+
readonly name: "nullifier";
|
|
1553
|
+
readonly type: "bytes32";
|
|
1554
|
+
readonly internalType: "bytes32";
|
|
1555
|
+
}, {
|
|
1556
|
+
readonly name: "creditCommitment";
|
|
1640
1557
|
readonly type: "bytes32";
|
|
1641
1558
|
readonly internalType: "bytes32";
|
|
1642
1559
|
}, {
|
|
1643
|
-
readonly name: "
|
|
1560
|
+
readonly name: "revocationShard";
|
|
1561
|
+
readonly type: "uint64";
|
|
1562
|
+
readonly internalType: "uint64";
|
|
1563
|
+
}, {
|
|
1564
|
+
readonly name: "revocationSlot";
|
|
1565
|
+
readonly type: "uint16";
|
|
1566
|
+
readonly internalType: "uint16";
|
|
1567
|
+
}, {
|
|
1568
|
+
readonly name: "deadline";
|
|
1569
|
+
readonly type: "uint256";
|
|
1570
|
+
readonly internalType: "uint256";
|
|
1571
|
+
}, {
|
|
1572
|
+
readonly name: "feeRecipient";
|
|
1573
|
+
readonly type: "address";
|
|
1574
|
+
readonly internalType: "address";
|
|
1575
|
+
}, {
|
|
1576
|
+
readonly name: "feeAmount";
|
|
1644
1577
|
readonly type: "uint256";
|
|
1645
1578
|
readonly internalType: "uint256";
|
|
1646
1579
|
}];
|
|
1647
1580
|
}, {
|
|
1648
|
-
readonly name: "
|
|
1649
|
-
readonly type: "uint32
|
|
1581
|
+
readonly name: "leafIndex";
|
|
1582
|
+
readonly type: "uint32";
|
|
1650
1583
|
readonly indexed: false;
|
|
1651
|
-
readonly internalType: "uint32
|
|
1584
|
+
readonly internalType: "uint32";
|
|
1652
1585
|
}, {
|
|
1653
1586
|
readonly name: "deliveries";
|
|
1654
1587
|
readonly type: "tuple[]";
|
|
@@ -1698,7 +1631,7 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1698
1631
|
readonly indexed: false;
|
|
1699
1632
|
readonly internalType: "bytes32[]";
|
|
1700
1633
|
}, {
|
|
1701
|
-
readonly name: "
|
|
1634
|
+
readonly name: "noteCommitments";
|
|
1702
1635
|
readonly type: "bytes32[]";
|
|
1703
1636
|
readonly indexed: false;
|
|
1704
1637
|
readonly internalType: "bytes32[]";
|
|
@@ -1906,7 +1839,7 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1906
1839
|
readonly indexed: false;
|
|
1907
1840
|
readonly internalType: "bytes32[]";
|
|
1908
1841
|
}, {
|
|
1909
|
-
readonly name: "
|
|
1842
|
+
readonly name: "noteCommitments";
|
|
1910
1843
|
readonly type: "bytes32[]";
|
|
1911
1844
|
readonly indexed: false;
|
|
1912
1845
|
readonly internalType: "bytes32[]";
|
|
@@ -2011,7 +1944,7 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
2011
1944
|
readonly inputs: readonly [];
|
|
2012
1945
|
}, {
|
|
2013
1946
|
readonly type: "error";
|
|
2014
|
-
readonly name: "
|
|
1947
|
+
readonly name: "CommitmentAlreadyRegistered";
|
|
2015
1948
|
readonly inputs: readonly [{
|
|
2016
1949
|
readonly name: "commitment";
|
|
2017
1950
|
readonly type: "bytes32";
|
|
@@ -2019,7 +1952,7 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
2019
1952
|
}];
|
|
2020
1953
|
}, {
|
|
2021
1954
|
readonly type: "error";
|
|
2022
|
-
readonly name: "
|
|
1955
|
+
readonly name: "CreditAlreadyRevoked";
|
|
2023
1956
|
readonly inputs: readonly [];
|
|
2024
1957
|
}, {
|
|
2025
1958
|
readonly type: "error";
|
|
@@ -2037,10 +1970,6 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
2037
1970
|
readonly type: "error";
|
|
2038
1971
|
readonly name: "ExpectedPause";
|
|
2039
1972
|
readonly inputs: readonly [];
|
|
2040
|
-
}, {
|
|
2041
|
-
readonly type: "error";
|
|
2042
|
-
readonly name: "ExpiryInPast";
|
|
2043
|
-
readonly inputs: readonly [];
|
|
2044
1973
|
}, {
|
|
2045
1974
|
readonly type: "error";
|
|
2046
1975
|
readonly name: "FailedInnerCall";
|
|
@@ -2079,7 +2008,7 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
2079
2008
|
readonly inputs: readonly [];
|
|
2080
2009
|
}, {
|
|
2081
2010
|
readonly type: "error";
|
|
2082
|
-
readonly name: "
|
|
2011
|
+
readonly name: "InvalidCreditAllocation";
|
|
2083
2012
|
readonly inputs: readonly [];
|
|
2084
2013
|
}, {
|
|
2085
2014
|
readonly type: "error";
|
|
@@ -2089,10 +2018,6 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
2089
2018
|
readonly type: "error";
|
|
2090
2019
|
readonly name: "InvalidFunding";
|
|
2091
2020
|
readonly inputs: readonly [];
|
|
2092
|
-
}, {
|
|
2093
|
-
readonly type: "error";
|
|
2094
|
-
readonly name: "InvalidIdentityCommitment";
|
|
2095
|
-
readonly inputs: readonly [];
|
|
2096
2021
|
}, {
|
|
2097
2022
|
readonly type: "error";
|
|
2098
2023
|
readonly name: "InvalidMerkleRoot";
|
|
@@ -2105,18 +2030,6 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
2105
2030
|
readonly type: "error";
|
|
2106
2031
|
readonly name: "InvalidNonce";
|
|
2107
2032
|
readonly inputs: readonly [];
|
|
2108
|
-
}, {
|
|
2109
|
-
readonly type: "error";
|
|
2110
|
-
readonly name: "InvalidNullifierKeyHash";
|
|
2111
|
-
readonly inputs: readonly [];
|
|
2112
|
-
}, {
|
|
2113
|
-
readonly type: "error";
|
|
2114
|
-
readonly name: "InvalidOwnerIdentityCommitment";
|
|
2115
|
-
readonly inputs: readonly [];
|
|
2116
|
-
}, {
|
|
2117
|
-
readonly type: "error";
|
|
2118
|
-
readonly name: "InvalidPrivateTransferCiphertext";
|
|
2119
|
-
readonly inputs: readonly [];
|
|
2120
2033
|
}, {
|
|
2121
2034
|
readonly type: "error";
|
|
2122
2035
|
readonly name: "InvalidPrivateTransferContext";
|
|
@@ -2193,18 +2106,6 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
2193
2106
|
readonly type: "error";
|
|
2194
2107
|
readonly name: "NotGlobalEmergency";
|
|
2195
2108
|
readonly inputs: readonly [];
|
|
2196
|
-
}, {
|
|
2197
|
-
readonly type: "error";
|
|
2198
|
-
readonly name: "NullifierAlreadySpent";
|
|
2199
|
-
readonly inputs: readonly [{
|
|
2200
|
-
readonly name: "nullifier";
|
|
2201
|
-
readonly type: "bytes32";
|
|
2202
|
-
readonly internalType: "bytes32";
|
|
2203
|
-
}];
|
|
2204
|
-
}, {
|
|
2205
|
-
readonly type: "error";
|
|
2206
|
-
readonly name: "NullifiersEmpty";
|
|
2207
|
-
readonly inputs: readonly [];
|
|
2208
2109
|
}, {
|
|
2209
2110
|
readonly type: "error";
|
|
2210
2111
|
readonly name: "OwnableInvalidOwner";
|
|
@@ -2261,42 +2162,6 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
2261
2162
|
readonly type: "string";
|
|
2262
2163
|
readonly internalType: "string";
|
|
2263
2164
|
}];
|
|
2264
|
-
}, {
|
|
2265
|
-
readonly type: "error";
|
|
2266
|
-
readonly name: "TransferFailed";
|
|
2267
|
-
readonly inputs: readonly [{
|
|
2268
|
-
readonly name: "token";
|
|
2269
|
-
readonly type: "address";
|
|
2270
|
-
readonly internalType: "address";
|
|
2271
|
-
}, {
|
|
2272
|
-
readonly name: "to";
|
|
2273
|
-
readonly type: "address";
|
|
2274
|
-
readonly internalType: "address";
|
|
2275
|
-
}, {
|
|
2276
|
-
readonly name: "amount";
|
|
2277
|
-
readonly type: "uint256";
|
|
2278
|
-
readonly internalType: "uint256";
|
|
2279
|
-
}];
|
|
2280
|
-
}, {
|
|
2281
|
-
readonly type: "error";
|
|
2282
|
-
readonly name: "TreeFull";
|
|
2283
|
-
readonly inputs: readonly [{
|
|
2284
|
-
readonly name: "treeId";
|
|
2285
|
-
readonly type: "uint256";
|
|
2286
|
-
readonly internalType: "uint256";
|
|
2287
|
-
}];
|
|
2288
|
-
}, {
|
|
2289
|
-
readonly type: "error";
|
|
2290
|
-
readonly name: "WrongPermitToken";
|
|
2291
|
-
readonly inputs: readonly [{
|
|
2292
|
-
readonly name: "provided";
|
|
2293
|
-
readonly type: "address";
|
|
2294
|
-
readonly internalType: "address";
|
|
2295
|
-
}, {
|
|
2296
|
-
readonly name: "expected";
|
|
2297
|
-
readonly type: "address";
|
|
2298
|
-
readonly internalType: "address";
|
|
2299
|
-
}];
|
|
2300
2165
|
}, {
|
|
2301
2166
|
readonly type: "error";
|
|
2302
2167
|
readonly name: "ZeroNullifier";
|
|
@@ -2711,16 +2576,6 @@ declare const verifierRouterAbi: readonly [{
|
|
|
2711
2576
|
readonly internalType: "contract IVerifier";
|
|
2712
2577
|
}];
|
|
2713
2578
|
readonly stateMutability: "view";
|
|
2714
|
-
}, {
|
|
2715
|
-
readonly type: "function";
|
|
2716
|
-
readonly name: "getCreditCancelVerifier";
|
|
2717
|
-
readonly inputs: readonly [];
|
|
2718
|
-
readonly outputs: readonly [{
|
|
2719
|
-
readonly name: "";
|
|
2720
|
-
readonly type: "address";
|
|
2721
|
-
readonly internalType: "contract IVerifier";
|
|
2722
|
-
}];
|
|
2723
|
-
readonly stateMutability: "view";
|
|
2724
2579
|
}, {
|
|
2725
2580
|
readonly type: "function";
|
|
2726
2581
|
readonly name: "getCreditDrawVerifier";
|
|
@@ -2737,7 +2592,7 @@ declare const verifierRouterAbi: readonly [{
|
|
|
2737
2592
|
readonly stateMutability: "view";
|
|
2738
2593
|
}, {
|
|
2739
2594
|
readonly type: "function";
|
|
2740
|
-
readonly name: "
|
|
2595
|
+
readonly name: "getCreditUpdateVerifier";
|
|
2741
2596
|
readonly inputs: readonly [];
|
|
2742
2597
|
readonly outputs: readonly [{
|
|
2743
2598
|
readonly name: "";
|
|
@@ -2823,8 +2678,8 @@ declare const creditVerifierRouterAbi: readonly [{
|
|
|
2823
2678
|
readonly internalType: "contract CrossTreeVerifierRegistry";
|
|
2824
2679
|
}, {
|
|
2825
2680
|
readonly name: "creditVerifiers";
|
|
2826
|
-
readonly type: "address[
|
|
2827
|
-
readonly internalType: "contract IVerifier[
|
|
2681
|
+
readonly type: "address[15]";
|
|
2682
|
+
readonly internalType: "contract IVerifier[15]";
|
|
2828
2683
|
}];
|
|
2829
2684
|
readonly stateMutability: "nonpayable";
|
|
2830
2685
|
}, {
|
|
@@ -2839,7 +2694,7 @@ declare const creditVerifierRouterAbi: readonly [{
|
|
|
2839
2694
|
readonly stateMutability: "view";
|
|
2840
2695
|
}, {
|
|
2841
2696
|
readonly type: "function";
|
|
2842
|
-
readonly name: "
|
|
2697
|
+
readonly name: "creditDrawSlots10Verifier";
|
|
2843
2698
|
readonly inputs: readonly [];
|
|
2844
2699
|
readonly outputs: readonly [{
|
|
2845
2700
|
readonly name: "";
|
|
@@ -2849,7 +2704,7 @@ declare const creditVerifierRouterAbi: readonly [{
|
|
|
2849
2704
|
readonly stateMutability: "view";
|
|
2850
2705
|
}, {
|
|
2851
2706
|
readonly type: "function";
|
|
2852
|
-
readonly name: "
|
|
2707
|
+
readonly name: "creditDrawSlots1Verifier";
|
|
2853
2708
|
readonly inputs: readonly [];
|
|
2854
2709
|
readonly outputs: readonly [{
|
|
2855
2710
|
readonly name: "";
|
|
@@ -2859,7 +2714,7 @@ declare const creditVerifierRouterAbi: readonly [{
|
|
|
2859
2714
|
readonly stateMutability: "view";
|
|
2860
2715
|
}, {
|
|
2861
2716
|
readonly type: "function";
|
|
2862
|
-
readonly name: "
|
|
2717
|
+
readonly name: "creditDrawSlots20Verifier";
|
|
2863
2718
|
readonly inputs: readonly [];
|
|
2864
2719
|
readonly outputs: readonly [{
|
|
2865
2720
|
readonly name: "";
|
|
@@ -2869,7 +2724,47 @@ declare const creditVerifierRouterAbi: readonly [{
|
|
|
2869
2724
|
readonly stateMutability: "view";
|
|
2870
2725
|
}, {
|
|
2871
2726
|
readonly type: "function";
|
|
2872
|
-
readonly name: "
|
|
2727
|
+
readonly name: "creditDrawSlots2Verifier";
|
|
2728
|
+
readonly inputs: readonly [];
|
|
2729
|
+
readonly outputs: readonly [{
|
|
2730
|
+
readonly name: "";
|
|
2731
|
+
readonly type: "address";
|
|
2732
|
+
readonly internalType: "contract IVerifier";
|
|
2733
|
+
}];
|
|
2734
|
+
readonly stateMutability: "view";
|
|
2735
|
+
}, {
|
|
2736
|
+
readonly type: "function";
|
|
2737
|
+
readonly name: "creditDrawSlots30Verifier";
|
|
2738
|
+
readonly inputs: readonly [];
|
|
2739
|
+
readonly outputs: readonly [{
|
|
2740
|
+
readonly name: "";
|
|
2741
|
+
readonly type: "address";
|
|
2742
|
+
readonly internalType: "contract IVerifier";
|
|
2743
|
+
}];
|
|
2744
|
+
readonly stateMutability: "view";
|
|
2745
|
+
}, {
|
|
2746
|
+
readonly type: "function";
|
|
2747
|
+
readonly name: "creditDrawSlots3Verifier";
|
|
2748
|
+
readonly inputs: readonly [];
|
|
2749
|
+
readonly outputs: readonly [{
|
|
2750
|
+
readonly name: "";
|
|
2751
|
+
readonly type: "address";
|
|
2752
|
+
readonly internalType: "contract IVerifier";
|
|
2753
|
+
}];
|
|
2754
|
+
readonly stateMutability: "view";
|
|
2755
|
+
}, {
|
|
2756
|
+
readonly type: "function";
|
|
2757
|
+
readonly name: "creditDrawSlots40Verifier";
|
|
2758
|
+
readonly inputs: readonly [];
|
|
2759
|
+
readonly outputs: readonly [{
|
|
2760
|
+
readonly name: "";
|
|
2761
|
+
readonly type: "address";
|
|
2762
|
+
readonly internalType: "contract IVerifier";
|
|
2763
|
+
}];
|
|
2764
|
+
readonly stateMutability: "view";
|
|
2765
|
+
}, {
|
|
2766
|
+
readonly type: "function";
|
|
2767
|
+
readonly name: "creditDrawSlots4Verifier";
|
|
2873
2768
|
readonly inputs: readonly [];
|
|
2874
2769
|
readonly outputs: readonly [{
|
|
2875
2770
|
readonly name: "";
|
|
@@ -2889,7 +2784,7 @@ declare const creditVerifierRouterAbi: readonly [{
|
|
|
2889
2784
|
readonly stateMutability: "view";
|
|
2890
2785
|
}, {
|
|
2891
2786
|
readonly type: "function";
|
|
2892
|
-
readonly name: "
|
|
2787
|
+
readonly name: "creditDrawSlots5Verifier";
|
|
2893
2788
|
readonly inputs: readonly [];
|
|
2894
2789
|
readonly outputs: readonly [{
|
|
2895
2790
|
readonly name: "";
|
|
@@ -2899,17 +2794,37 @@ declare const creditVerifierRouterAbi: readonly [{
|
|
|
2899
2794
|
readonly stateMutability: "view";
|
|
2900
2795
|
}, {
|
|
2901
2796
|
readonly type: "function";
|
|
2902
|
-
readonly name: "
|
|
2797
|
+
readonly name: "creditDrawSlots60Verifier";
|
|
2903
2798
|
readonly inputs: readonly [];
|
|
2904
2799
|
readonly outputs: readonly [{
|
|
2905
2800
|
readonly name: "";
|
|
2906
2801
|
readonly type: "address";
|
|
2907
|
-
readonly internalType: "contract
|
|
2802
|
+
readonly internalType: "contract IVerifier";
|
|
2908
2803
|
}];
|
|
2909
2804
|
readonly stateMutability: "view";
|
|
2910
2805
|
}, {
|
|
2911
2806
|
readonly type: "function";
|
|
2912
|
-
readonly name: "
|
|
2807
|
+
readonly name: "creditDrawSlots70Verifier";
|
|
2808
|
+
readonly inputs: readonly [];
|
|
2809
|
+
readonly outputs: readonly [{
|
|
2810
|
+
readonly name: "";
|
|
2811
|
+
readonly type: "address";
|
|
2812
|
+
readonly internalType: "contract IVerifier";
|
|
2813
|
+
}];
|
|
2814
|
+
readonly stateMutability: "view";
|
|
2815
|
+
}, {
|
|
2816
|
+
readonly type: "function";
|
|
2817
|
+
readonly name: "creditDrawSlots80Verifier";
|
|
2818
|
+
readonly inputs: readonly [];
|
|
2819
|
+
readonly outputs: readonly [{
|
|
2820
|
+
readonly name: "";
|
|
2821
|
+
readonly type: "address";
|
|
2822
|
+
readonly internalType: "contract IVerifier";
|
|
2823
|
+
}];
|
|
2824
|
+
readonly stateMutability: "view";
|
|
2825
|
+
}, {
|
|
2826
|
+
readonly type: "function";
|
|
2827
|
+
readonly name: "creditUpdateVerifier";
|
|
2913
2828
|
readonly inputs: readonly [];
|
|
2914
2829
|
readonly outputs: readonly [{
|
|
2915
2830
|
readonly name: "";
|
|
@@ -2919,7 +2834,17 @@ declare const creditVerifierRouterAbi: readonly [{
|
|
|
2919
2834
|
readonly stateMutability: "view";
|
|
2920
2835
|
}, {
|
|
2921
2836
|
readonly type: "function";
|
|
2922
|
-
readonly name: "
|
|
2837
|
+
readonly name: "crossTreeRegistry";
|
|
2838
|
+
readonly inputs: readonly [];
|
|
2839
|
+
readonly outputs: readonly [{
|
|
2840
|
+
readonly name: "";
|
|
2841
|
+
readonly type: "address";
|
|
2842
|
+
readonly internalType: "contract CrossTreeVerifierRegistry";
|
|
2843
|
+
}];
|
|
2844
|
+
readonly stateMutability: "view";
|
|
2845
|
+
}, {
|
|
2846
|
+
readonly type: "function";
|
|
2847
|
+
readonly name: "getCreateCreditVerifier";
|
|
2923
2848
|
readonly inputs: readonly [];
|
|
2924
2849
|
readonly outputs: readonly [{
|
|
2925
2850
|
readonly name: "";
|
|
@@ -2943,7 +2868,7 @@ declare const creditVerifierRouterAbi: readonly [{
|
|
|
2943
2868
|
readonly stateMutability: "view";
|
|
2944
2869
|
}, {
|
|
2945
2870
|
readonly type: "function";
|
|
2946
|
-
readonly name: "
|
|
2871
|
+
readonly name: "getCreditUpdateVerifier";
|
|
2947
2872
|
readonly inputs: readonly [];
|
|
2948
2873
|
readonly outputs: readonly [{
|
|
2949
2874
|
readonly name: "";
|
|
@@ -3338,7 +3263,7 @@ interface FundingParams {
|
|
|
3338
3263
|
}
|
|
3339
3264
|
interface ShieldParams {
|
|
3340
3265
|
token: Address;
|
|
3341
|
-
|
|
3266
|
+
noteCommitments: readonly Hex[];
|
|
3342
3267
|
deadline: bigint;
|
|
3343
3268
|
feeRecipient?: Address;
|
|
3344
3269
|
feeAmount?: bigint;
|
|
@@ -3355,7 +3280,7 @@ interface CrossTreeTransactParams {
|
|
|
3355
3280
|
token: Address;
|
|
3356
3281
|
sources: readonly InputSource[];
|
|
3357
3282
|
nullifiers: readonly Hex[];
|
|
3358
|
-
|
|
3283
|
+
noteCommitments: readonly Hex[];
|
|
3359
3284
|
withdrawalAddress: Address;
|
|
3360
3285
|
withdrawalAmount: bigint;
|
|
3361
3286
|
deadline: bigint;
|
|
@@ -3369,42 +3294,57 @@ interface TransactRequest {
|
|
|
3369
3294
|
}
|
|
3370
3295
|
interface CreateCreditParams {
|
|
3371
3296
|
token: Address;
|
|
3372
|
-
sources: readonly InputSource[];
|
|
3373
|
-
nullifiers: readonly Hex[];
|
|
3374
|
-
creditCommitment: Hex;
|
|
3375
|
-
changeCommitment: Hex;
|
|
3376
3297
|
owner: Address;
|
|
3377
|
-
|
|
3298
|
+
revocationShard: bigint;
|
|
3299
|
+
revocationSlot: bigint;
|
|
3300
|
+
creditCommitment: Hex;
|
|
3378
3301
|
deadline: bigint;
|
|
3379
3302
|
feeRecipient?: Address;
|
|
3380
3303
|
feeAmount?: bigint;
|
|
3381
3304
|
}
|
|
3305
|
+
interface CreditPayer {
|
|
3306
|
+
payer: Address;
|
|
3307
|
+
amount: bigint;
|
|
3308
|
+
}
|
|
3309
|
+
interface CreditGrantRef {
|
|
3310
|
+
payerIndex: bigint;
|
|
3311
|
+
shard: bigint;
|
|
3312
|
+
slot: bigint;
|
|
3313
|
+
}
|
|
3382
3314
|
interface CreditDrawParams {
|
|
3383
3315
|
token: Address;
|
|
3384
3316
|
sources: readonly InputSource[];
|
|
3317
|
+
payers: readonly CreditPayer[];
|
|
3318
|
+
grantRefs: readonly CreditGrantRef[];
|
|
3385
3319
|
nullifiers: readonly Hex[];
|
|
3386
|
-
|
|
3387
|
-
expiries: readonly bigint[];
|
|
3320
|
+
creditCommitments: readonly Hex[];
|
|
3388
3321
|
recoveryAmounts: readonly Hex[];
|
|
3389
|
-
|
|
3322
|
+
noteCommitment: Hex;
|
|
3390
3323
|
totalAmount: bigint;
|
|
3391
3324
|
deadline: bigint;
|
|
3325
|
+
feeRecipient?: Address;
|
|
3326
|
+
feeAmount?: bigint;
|
|
3392
3327
|
}
|
|
3393
|
-
interface
|
|
3328
|
+
interface UpdateCreditParams {
|
|
3394
3329
|
token: Address;
|
|
3330
|
+
owner: Address;
|
|
3395
3331
|
source: InputSource;
|
|
3396
3332
|
nullifier: Hex;
|
|
3397
|
-
|
|
3398
|
-
|
|
3333
|
+
creditCommitment: Hex;
|
|
3334
|
+
revocationShard: bigint;
|
|
3335
|
+
revocationSlot: bigint;
|
|
3399
3336
|
deadline: bigint;
|
|
3400
3337
|
feeRecipient?: Address;
|
|
3401
3338
|
feeAmount?: bigint;
|
|
3402
3339
|
}
|
|
3403
|
-
interface
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3340
|
+
interface RevokeCreditParams {
|
|
3341
|
+
token: Address;
|
|
3342
|
+
owner: Address;
|
|
3343
|
+
shard: bigint;
|
|
3344
|
+
slot: bigint;
|
|
3345
|
+
deadline: bigint;
|
|
3346
|
+
feeRecipient?: Address;
|
|
3347
|
+
feeAmount?: bigint;
|
|
3408
3348
|
}
|
|
3409
3349
|
interface ReceivingKeys {
|
|
3410
3350
|
viewingPublicKey: Hex;
|
|
@@ -3417,4 +3357,4 @@ interface AddressRegistration {
|
|
|
3417
3357
|
deadline: bigint;
|
|
3418
3358
|
}
|
|
3419
3359
|
|
|
3420
|
-
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
|
|
3360
|
+
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 ShieldOutput as S, type TokenPermit as T, type UpdateCreditParams as U, type VerifierRouterAbi as V, type CreditDrawParams as a, type CreditGrantRef as b, type CreditPayer as c, type CreditVerifierRouterAbi as d, type CrossTreeTransactParams as e, type InvisiAddressRegistryAbi as f, type InvisiFactoryAbi as g, type InvisiProtocolAbi as h, type RevokeCreditParams as i, type ShieldParams as j, type TransactRequest as k, creditVerifierRouterAbi as l, invisiAddressRegistryAbi as m, invisiFactoryAbi as n, invisiProtocolAbi as o, verifierRouterAbi as v };
|