@aztec/aztec.js 0.0.1-commit.e61ad554 → 0.0.1-commit.ec5f612
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/dest/api/contract.d.ts +2 -2
- package/dest/api/contract.js +2 -2
- package/dest/api/deployment.d.ts +1 -2
- package/dest/api/deployment.d.ts.map +1 -1
- package/dest/api/deployment.js +0 -1
- package/dest/api/events.d.ts +10 -6
- package/dest/api/events.d.ts.map +1 -1
- package/dest/api/events.js +30 -20
- package/dest/api/fields.d.ts +2 -1
- package/dest/api/fields.d.ts.map +1 -1
- package/dest/api/fields.js +1 -0
- package/dest/api/keys.d.ts +1 -1
- package/dest/api/keys.js +1 -1
- package/dest/api/wallet.d.ts +3 -2
- package/dest/api/wallet.d.ts.map +1 -1
- package/dest/api/wallet.js +2 -1
- package/dest/contract/batch_call.d.ts +3 -3
- package/dest/contract/batch_call.d.ts.map +1 -1
- package/dest/contract/batch_call.js +8 -5
- package/dest/contract/contract_function_interaction.d.ts +3 -12
- package/dest/contract/contract_function_interaction.d.ts.map +1 -1
- package/dest/contract/contract_function_interaction.js +10 -7
- package/dest/contract/deploy_method.d.ts +19 -6
- package/dest/contract/deploy_method.d.ts.map +1 -1
- package/dest/contract/deploy_method.js +25 -10
- package/dest/contract/get_gas_limits.js +3 -3
- package/dest/contract/interaction_options.d.ts +8 -1
- package/dest/contract/interaction_options.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/auth-registry.d.ts +1 -1
- package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/auth-registry.js +40 -6
- package/dest/contract/protocol_contracts/contract-class-registry.d.ts +2 -22
- package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/contract-class-registry.js +13 -658
- package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +2 -11
- package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/contract-instance-registry.js +80 -473
- package/dest/contract/protocol_contracts/fee-juice.d.ts +1 -10
- package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/fee-juice.js +0 -401
- package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +1 -1
- package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/multi-call-entrypoint.js +31 -1
- package/dest/contract/protocol_contracts/public-checks.d.ts +1 -1
- package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/public-checks.js +31 -9
- package/dest/fee/fee_juice_payment_method_with_claim.js +6 -6
- package/dest/fee/private_fee_payment_method.js +10 -10
- package/dest/fee/public_fee_payment_method.js +10 -10
- package/dest/fee/sponsored_fee_payment.js +3 -3
- package/dest/wallet/capabilities.d.ts +452 -0
- package/dest/wallet/capabilities.d.ts.map +1 -0
- package/dest/wallet/capabilities.js +3 -0
- package/dest/wallet/deploy_account_method.d.ts +15 -4
- package/dest/wallet/deploy_account_method.d.ts.map +1 -1
- package/dest/wallet/deploy_account_method.js +26 -0
- package/dest/wallet/index.d.ts +2 -1
- package/dest/wallet/index.d.ts.map +1 -1
- package/dest/wallet/index.js +1 -0
- package/dest/wallet/wallet.d.ts +1590 -89
- package/dest/wallet/wallet.d.ts.map +1 -1
- package/dest/wallet/wallet.js +154 -25
- package/package.json +20 -11
- package/src/api/contract.ts +2 -2
- package/src/api/deployment.ts +0 -1
- package/src/api/events.ts +35 -27
- package/src/api/fields.ts +1 -0
- package/src/api/keys.ts +2 -2
- package/src/api/wallet.ts +43 -1
- package/src/contract/batch_call.ts +7 -12
- package/src/contract/contract_function_interaction.ts +17 -7
- package/src/contract/deploy_method.ts +48 -14
- package/src/contract/get_gas_limits.ts +3 -3
- package/src/contract/interaction_options.ts +7 -0
- package/src/contract/protocol_contracts/auth-registry.ts +8 -2
- package/src/contract/protocol_contracts/contract-class-registry.ts +4 -338
- package/src/contract/protocol_contracts/contract-instance-registry.ts +34 -225
- package/src/contract/protocol_contracts/fee-juice.ts +0 -193
- package/src/contract/protocol_contracts/multi-call-entrypoint.ts +6 -1
- package/src/contract/protocol_contracts/public-checks.ts +6 -3
- package/src/fee/fee_juice_payment_method_with_claim.ts +5 -5
- package/src/fee/private_fee_payment_method.ts +7 -7
- package/src/fee/public_fee_payment_method.ts +8 -8
- package/src/fee/sponsored_fee_payment.ts +3 -3
- package/src/wallet/capabilities.ts +500 -0
- package/src/wallet/deploy_account_method.ts +39 -2
- package/src/wallet/index.ts +1 -0
- package/src/wallet/wallet.ts +205 -39
- package/dest/deployment/broadcast_function.d.ts +0 -24
- package/dest/deployment/broadcast_function.d.ts.map +0 -1
- package/dest/deployment/broadcast_function.js +0 -74
- package/src/deployment/broadcast_function.ts +0 -148
|
@@ -62,11 +62,6 @@ const FeeJuiceContractArtifact = {
|
|
|
62
62
|
error_kind: 'string',
|
|
63
63
|
string: 'attempt to subtract with overflow'
|
|
64
64
|
},
|
|
65
|
-
'2754040237334517471': {
|
|
66
|
-
error_kind: 'fmtstring',
|
|
67
|
-
length: 92,
|
|
68
|
-
item_types: []
|
|
69
|
-
},
|
|
70
65
|
'6609888949476313245': {
|
|
71
66
|
error_kind: 'string',
|
|
72
67
|
string: 'Message not in state'
|
|
@@ -191,244 +186,6 @@ const FeeJuiceContractArtifact = {
|
|
|
191
186
|
bytecode: Buffer.from([]),
|
|
192
187
|
debugSymbols: ''
|
|
193
188
|
},
|
|
194
|
-
{
|
|
195
|
-
...{
|
|
196
|
-
functionType: FunctionType.UTILITY,
|
|
197
|
-
name: 'process_message',
|
|
198
|
-
isOnlySelf: false,
|
|
199
|
-
isStatic: false,
|
|
200
|
-
isInitializer: false,
|
|
201
|
-
parameters: [
|
|
202
|
-
{
|
|
203
|
-
name: 'message_ciphertext',
|
|
204
|
-
type: {
|
|
205
|
-
kind: 'struct',
|
|
206
|
-
fields: [
|
|
207
|
-
{
|
|
208
|
-
name: 'storage',
|
|
209
|
-
type: {
|
|
210
|
-
kind: 'array',
|
|
211
|
-
length: 17,
|
|
212
|
-
type: {
|
|
213
|
-
kind: 'field'
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
name: 'len',
|
|
219
|
-
type: {
|
|
220
|
-
kind: 'integer',
|
|
221
|
-
sign: 'unsigned',
|
|
222
|
-
width: 32
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
],
|
|
226
|
-
path: 'std::collections::bounded_vec::BoundedVec'
|
|
227
|
-
},
|
|
228
|
-
visibility: 'private'
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
name: 'message_context',
|
|
232
|
-
type: {
|
|
233
|
-
kind: 'struct',
|
|
234
|
-
fields: [
|
|
235
|
-
{
|
|
236
|
-
name: 'tx_hash',
|
|
237
|
-
type: {
|
|
238
|
-
kind: 'field'
|
|
239
|
-
}
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
name: 'unique_note_hashes_in_tx',
|
|
243
|
-
type: {
|
|
244
|
-
kind: 'struct',
|
|
245
|
-
fields: [
|
|
246
|
-
{
|
|
247
|
-
name: 'storage',
|
|
248
|
-
type: {
|
|
249
|
-
kind: 'array',
|
|
250
|
-
length: 64,
|
|
251
|
-
type: {
|
|
252
|
-
kind: 'field'
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
name: 'len',
|
|
258
|
-
type: {
|
|
259
|
-
kind: 'integer',
|
|
260
|
-
sign: 'unsigned',
|
|
261
|
-
width: 32
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
],
|
|
265
|
-
path: 'std::collections::bounded_vec::BoundedVec'
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
name: 'first_nullifier_in_tx',
|
|
270
|
-
type: {
|
|
271
|
-
kind: 'field'
|
|
272
|
-
}
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
name: 'recipient',
|
|
276
|
-
type: {
|
|
277
|
-
kind: 'struct',
|
|
278
|
-
fields: [
|
|
279
|
-
{
|
|
280
|
-
name: 'inner',
|
|
281
|
-
type: {
|
|
282
|
-
kind: 'field'
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
],
|
|
286
|
-
path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
],
|
|
290
|
-
path: 'aztec::messages::processing::message_context::MessageContext'
|
|
291
|
-
},
|
|
292
|
-
visibility: 'private'
|
|
293
|
-
}
|
|
294
|
-
],
|
|
295
|
-
returnTypes: [],
|
|
296
|
-
errorTypes: {
|
|
297
|
-
'361444214588792908': {
|
|
298
|
-
error_kind: 'string',
|
|
299
|
-
string: 'attempt to multiply with overflow'
|
|
300
|
-
},
|
|
301
|
-
'992401946138144806': {
|
|
302
|
-
error_kind: 'string',
|
|
303
|
-
string: 'Attempted to read past end of BoundedVec'
|
|
304
|
-
},
|
|
305
|
-
'1998584279744703196': {
|
|
306
|
-
error_kind: 'string',
|
|
307
|
-
string: 'attempt to subtract with overflow'
|
|
308
|
-
},
|
|
309
|
-
'2967937905572420042': {
|
|
310
|
-
error_kind: 'fmtstring',
|
|
311
|
-
length: 61,
|
|
312
|
-
item_types: [
|
|
313
|
-
{
|
|
314
|
-
kind: 'field'
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
kind: 'field'
|
|
318
|
-
}
|
|
319
|
-
]
|
|
320
|
-
},
|
|
321
|
-
'3330370348214585450': {
|
|
322
|
-
error_kind: 'fmtstring',
|
|
323
|
-
length: 48,
|
|
324
|
-
item_types: [
|
|
325
|
-
{
|
|
326
|
-
kind: 'field'
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
kind: 'field'
|
|
330
|
-
}
|
|
331
|
-
]
|
|
332
|
-
},
|
|
333
|
-
'3670003311596808700': {
|
|
334
|
-
error_kind: 'fmtstring',
|
|
335
|
-
length: 77,
|
|
336
|
-
item_types: [
|
|
337
|
-
{
|
|
338
|
-
kind: 'integer',
|
|
339
|
-
sign: 'unsigned',
|
|
340
|
-
width: 32
|
|
341
|
-
}
|
|
342
|
-
]
|
|
343
|
-
},
|
|
344
|
-
'4261968856572588300': {
|
|
345
|
-
error_kind: 'string',
|
|
346
|
-
string: 'Value does not fit in field'
|
|
347
|
-
},
|
|
348
|
-
'4440399188109668273': {
|
|
349
|
-
error_kind: 'string',
|
|
350
|
-
string: 'Input length must be a multiple of 32'
|
|
351
|
-
},
|
|
352
|
-
'9791669845391776238': {
|
|
353
|
-
error_kind: 'string',
|
|
354
|
-
string: '0 has a square root; you cannot claim it is not square'
|
|
355
|
-
},
|
|
356
|
-
'10135509984888824963': {
|
|
357
|
-
error_kind: 'fmtstring',
|
|
358
|
-
length: 58,
|
|
359
|
-
item_types: [
|
|
360
|
-
{
|
|
361
|
-
kind: 'field'
|
|
362
|
-
}
|
|
363
|
-
]
|
|
364
|
-
},
|
|
365
|
-
'10791800398362570014': {
|
|
366
|
-
error_kind: 'string',
|
|
367
|
-
string: 'extend_from_bounded_vec out of bounds'
|
|
368
|
-
},
|
|
369
|
-
'11692359521570349358': {
|
|
370
|
-
error_kind: 'fmtstring',
|
|
371
|
-
length: 40,
|
|
372
|
-
item_types: []
|
|
373
|
-
},
|
|
374
|
-
'12469291177396340830': {
|
|
375
|
-
error_kind: 'string',
|
|
376
|
-
string: 'call to assert_max_bit_size'
|
|
377
|
-
},
|
|
378
|
-
'12913276134398371456': {
|
|
379
|
-
error_kind: 'string',
|
|
380
|
-
string: 'push out of bounds'
|
|
381
|
-
},
|
|
382
|
-
'13557316507370296400': {
|
|
383
|
-
error_kind: 'fmtstring',
|
|
384
|
-
length: 130,
|
|
385
|
-
item_types: [
|
|
386
|
-
{
|
|
387
|
-
kind: 'integer',
|
|
388
|
-
sign: 'unsigned',
|
|
389
|
-
width: 32
|
|
390
|
-
}
|
|
391
|
-
]
|
|
392
|
-
},
|
|
393
|
-
'14938672389828944159': {
|
|
394
|
-
error_kind: 'fmtstring',
|
|
395
|
-
length: 146,
|
|
396
|
-
item_types: [
|
|
397
|
-
{
|
|
398
|
-
kind: 'integer',
|
|
399
|
-
sign: 'unsigned',
|
|
400
|
-
width: 32
|
|
401
|
-
}
|
|
402
|
-
]
|
|
403
|
-
},
|
|
404
|
-
'14990209321349310352': {
|
|
405
|
-
error_kind: 'string',
|
|
406
|
-
string: 'attempt to add with overflow'
|
|
407
|
-
},
|
|
408
|
-
'15764276373176857197': {
|
|
409
|
-
error_kind: 'string',
|
|
410
|
-
string: 'Stack too deep'
|
|
411
|
-
},
|
|
412
|
-
'16431471497789672479': {
|
|
413
|
-
error_kind: 'string',
|
|
414
|
-
string: 'Index out of bounds'
|
|
415
|
-
},
|
|
416
|
-
'17531474008201752295': {
|
|
417
|
-
error_kind: 'fmtstring',
|
|
418
|
-
length: 133,
|
|
419
|
-
item_types: [
|
|
420
|
-
{
|
|
421
|
-
kind: 'integer',
|
|
422
|
-
sign: 'unsigned',
|
|
423
|
-
width: 32
|
|
424
|
-
}
|
|
425
|
-
]
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
},
|
|
429
|
-
bytecode: Buffer.from([]),
|
|
430
|
-
debugSymbols: ''
|
|
431
|
-
},
|
|
432
189
|
{
|
|
433
190
|
...{
|
|
434
191
|
functionType: FunctionType.PUBLIC,
|
|
@@ -500,164 +257,6 @@ const FeeJuiceContractArtifact = {
|
|
|
500
257
|
},
|
|
501
258
|
bytecode: Buffer.from([]),
|
|
502
259
|
debugSymbols: ''
|
|
503
|
-
},
|
|
504
|
-
{
|
|
505
|
-
...{
|
|
506
|
-
functionType: FunctionType.UTILITY,
|
|
507
|
-
name: 'sync_state',
|
|
508
|
-
isOnlySelf: false,
|
|
509
|
-
isStatic: false,
|
|
510
|
-
isInitializer: false,
|
|
511
|
-
parameters: [],
|
|
512
|
-
returnTypes: [],
|
|
513
|
-
errorTypes: {
|
|
514
|
-
'361444214588792908': {
|
|
515
|
-
error_kind: 'string',
|
|
516
|
-
string: 'attempt to multiply with overflow'
|
|
517
|
-
},
|
|
518
|
-
'992401946138144806': {
|
|
519
|
-
error_kind: 'string',
|
|
520
|
-
string: 'Attempted to read past end of BoundedVec'
|
|
521
|
-
},
|
|
522
|
-
'1998584279744703196': {
|
|
523
|
-
error_kind: 'string',
|
|
524
|
-
string: 'attempt to subtract with overflow'
|
|
525
|
-
},
|
|
526
|
-
'2967937905572420042': {
|
|
527
|
-
error_kind: 'fmtstring',
|
|
528
|
-
length: 61,
|
|
529
|
-
item_types: [
|
|
530
|
-
{
|
|
531
|
-
kind: 'field'
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
kind: 'field'
|
|
535
|
-
}
|
|
536
|
-
]
|
|
537
|
-
},
|
|
538
|
-
'3330370348214585450': {
|
|
539
|
-
error_kind: 'fmtstring',
|
|
540
|
-
length: 48,
|
|
541
|
-
item_types: [
|
|
542
|
-
{
|
|
543
|
-
kind: 'field'
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
kind: 'field'
|
|
547
|
-
}
|
|
548
|
-
]
|
|
549
|
-
},
|
|
550
|
-
'3670003311596808700': {
|
|
551
|
-
error_kind: 'fmtstring',
|
|
552
|
-
length: 77,
|
|
553
|
-
item_types: [
|
|
554
|
-
{
|
|
555
|
-
kind: 'integer',
|
|
556
|
-
sign: 'unsigned',
|
|
557
|
-
width: 32
|
|
558
|
-
}
|
|
559
|
-
]
|
|
560
|
-
},
|
|
561
|
-
'4261968856572588300': {
|
|
562
|
-
error_kind: 'string',
|
|
563
|
-
string: 'Value does not fit in field'
|
|
564
|
-
},
|
|
565
|
-
'4440399188109668273': {
|
|
566
|
-
error_kind: 'string',
|
|
567
|
-
string: 'Input length must be a multiple of 32'
|
|
568
|
-
},
|
|
569
|
-
'9791669845391776238': {
|
|
570
|
-
error_kind: 'string',
|
|
571
|
-
string: '0 has a square root; you cannot claim it is not square'
|
|
572
|
-
},
|
|
573
|
-
'9885968605480832328': {
|
|
574
|
-
error_kind: 'string',
|
|
575
|
-
string: 'Attempted to read past the length of a CapsuleArray'
|
|
576
|
-
},
|
|
577
|
-
'10135509984888824963': {
|
|
578
|
-
error_kind: 'fmtstring',
|
|
579
|
-
length: 58,
|
|
580
|
-
item_types: [
|
|
581
|
-
{
|
|
582
|
-
kind: 'field'
|
|
583
|
-
}
|
|
584
|
-
]
|
|
585
|
-
},
|
|
586
|
-
'10791800398362570014': {
|
|
587
|
-
error_kind: 'string',
|
|
588
|
-
string: 'extend_from_bounded_vec out of bounds'
|
|
589
|
-
},
|
|
590
|
-
'11021520179822076911': {
|
|
591
|
-
error_kind: 'string',
|
|
592
|
-
string: 'Attempted to delete past the length of a CapsuleArray'
|
|
593
|
-
},
|
|
594
|
-
'11692359521570349358': {
|
|
595
|
-
error_kind: 'fmtstring',
|
|
596
|
-
length: 40,
|
|
597
|
-
item_types: []
|
|
598
|
-
},
|
|
599
|
-
'12327971061804302172': {
|
|
600
|
-
error_kind: 'fmtstring',
|
|
601
|
-
length: 98,
|
|
602
|
-
item_types: []
|
|
603
|
-
},
|
|
604
|
-
'12469291177396340830': {
|
|
605
|
-
error_kind: 'string',
|
|
606
|
-
string: 'call to assert_max_bit_size'
|
|
607
|
-
},
|
|
608
|
-
'12913276134398371456': {
|
|
609
|
-
error_kind: 'string',
|
|
610
|
-
string: 'push out of bounds'
|
|
611
|
-
},
|
|
612
|
-
'13557316507370296400': {
|
|
613
|
-
error_kind: 'fmtstring',
|
|
614
|
-
length: 130,
|
|
615
|
-
item_types: [
|
|
616
|
-
{
|
|
617
|
-
kind: 'integer',
|
|
618
|
-
sign: 'unsigned',
|
|
619
|
-
width: 32
|
|
620
|
-
}
|
|
621
|
-
]
|
|
622
|
-
},
|
|
623
|
-
'14938672389828944159': {
|
|
624
|
-
error_kind: 'fmtstring',
|
|
625
|
-
length: 146,
|
|
626
|
-
item_types: [
|
|
627
|
-
{
|
|
628
|
-
kind: 'integer',
|
|
629
|
-
sign: 'unsigned',
|
|
630
|
-
width: 32
|
|
631
|
-
}
|
|
632
|
-
]
|
|
633
|
-
},
|
|
634
|
-
'14990209321349310352': {
|
|
635
|
-
error_kind: 'string',
|
|
636
|
-
string: 'attempt to add with overflow'
|
|
637
|
-
},
|
|
638
|
-
'15764276373176857197': {
|
|
639
|
-
error_kind: 'string',
|
|
640
|
-
string: 'Stack too deep'
|
|
641
|
-
},
|
|
642
|
-
'16431471497789672479': {
|
|
643
|
-
error_kind: 'string',
|
|
644
|
-
string: 'Index out of bounds'
|
|
645
|
-
},
|
|
646
|
-
'17531474008201752295': {
|
|
647
|
-
error_kind: 'fmtstring',
|
|
648
|
-
length: 133,
|
|
649
|
-
item_types: [
|
|
650
|
-
{
|
|
651
|
-
kind: 'integer',
|
|
652
|
-
sign: 'unsigned',
|
|
653
|
-
width: 32
|
|
654
|
-
}
|
|
655
|
-
]
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
},
|
|
659
|
-
bytecode: Buffer.from([]),
|
|
660
|
-
debugSymbols: ''
|
|
661
260
|
}
|
|
662
261
|
],
|
|
663
262
|
nonDispatchPublicFunctions: [
|
|
@@ -31,4 +31,4 @@ export declare class MultiCallEntrypointContract extends ContractBase {
|
|
|
31
31
|
sync_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXVsdGktY2FsbC1lbnRyeXBvaW50LmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29udHJhY3QvcHJvdG9jb2xfY29udHJhY3RzL211bHRpLWNhbGwtZW50cnlwb2ludC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQU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lBQ25CLHdCQUF3QixFQUFFLFNBQVMsRUFBRSxDQUFDO1lBQ3RDLHFCQUFxQixFQUFFLFNBQVMsQ0FBQztZQUNqQyxTQUFTLEVBQUUsZ0JBQWdCLENBQUM7U0FDN0IsS0FDRSwyQkFBMkIsQ0FBQyxHQUMvQixJQUFJLENBQUMsY0FBYyxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBRW5DLHVDQUF1QztRQUN2QyxlQUFlLEVBQUUsQ0FBQyxDQUFDLFFBQVEsRUFBRSxTQUFTLEtBQUssMkJBQTJCLENBQUMsR0FBRyxJQUFJLENBQUMsY0FBYyxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBRTNHLG1CQUFtQjtRQUNuQixVQUFVLEVBQUUsQ0FBQyxNQUFNLDJCQUEyQixDQUFDLEdBQUcsSUFBSSxDQUFDLGNBQWMsRUFBRSxVQUFVLENBQUMsQ0FBQztLQUNwRixDQUFDO0NBQ0gifQ==
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-call-entrypoint.d.ts","sourceRoot":"","sources":["../../../src/contract/protocol_contracts/multi-call-entrypoint.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,EAEhB,SAAS,EACT,oBAAoB,EAErB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"multi-call-entrypoint.d.ts","sourceRoot":"","sources":["../../../src/contract/protocol_contracts/multi-call-entrypoint.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,EAEhB,SAAS,EACT,oBAAoB,EAErB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,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 +138,7 @@ const MultiCallEntrypointContractArtifact = {
|
|
|
138
138
|
name: 'storage',
|
|
139
139
|
type: {
|
|
140
140
|
kind: 'array',
|
|
141
|
-
length:
|
|
141
|
+
length: 15,
|
|
142
142
|
type: {
|
|
143
143
|
kind: 'field'
|
|
144
144
|
}
|
|
@@ -279,6 +279,19 @@ const MultiCallEntrypointContractArtifact = {
|
|
|
279
279
|
error_kind: 'string',
|
|
280
280
|
string: 'Input length must be a multiple of 32'
|
|
281
281
|
},
|
|
282
|
+
'5417577161503694006': {
|
|
283
|
+
error_kind: 'fmtstring',
|
|
284
|
+
length: 56,
|
|
285
|
+
item_types: [
|
|
286
|
+
{
|
|
287
|
+
kind: 'field'
|
|
288
|
+
}
|
|
289
|
+
]
|
|
290
|
+
},
|
|
291
|
+
'9530675838293881722': {
|
|
292
|
+
error_kind: 'string',
|
|
293
|
+
string: 'Writer did not write all data'
|
|
294
|
+
},
|
|
282
295
|
'9791669845391776238': {
|
|
283
296
|
error_kind: 'string',
|
|
284
297
|
string: '0 has a square root; you cannot claim it is not square'
|
|
@@ -424,6 +437,19 @@ const MultiCallEntrypointContractArtifact = {
|
|
|
424
437
|
error_kind: 'string',
|
|
425
438
|
string: 'Input length must be a multiple of 32'
|
|
426
439
|
},
|
|
440
|
+
'5417577161503694006': {
|
|
441
|
+
error_kind: 'fmtstring',
|
|
442
|
+
length: 56,
|
|
443
|
+
item_types: [
|
|
444
|
+
{
|
|
445
|
+
kind: 'field'
|
|
446
|
+
}
|
|
447
|
+
]
|
|
448
|
+
},
|
|
449
|
+
'9530675838293881722': {
|
|
450
|
+
error_kind: 'string',
|
|
451
|
+
string: 'Writer did not write all data'
|
|
452
|
+
},
|
|
427
453
|
'9791669845391776238': {
|
|
428
454
|
error_kind: 'string',
|
|
429
455
|
string: '0 has a square root; you cannot claim it is not square'
|
|
@@ -511,6 +537,10 @@ const MultiCallEntrypointContractArtifact = {
|
|
|
511
537
|
width: 32
|
|
512
538
|
}
|
|
513
539
|
]
|
|
540
|
+
},
|
|
541
|
+
'17655676068928457687': {
|
|
542
|
+
error_kind: 'string',
|
|
543
|
+
string: 'Reader did not read all data'
|
|
514
544
|
}
|
|
515
545
|
}
|
|
516
546
|
},
|
|
@@ -23,4 +23,4 @@ export declare class PublicChecksContract extends ContractBase {
|
|
|
23
23
|
sync_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWNoZWNrcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvbnRyYWN0L3Byb3RvY29sX2NvbnRyYWN0cy9wdWJsaWMtY2hlY2tzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU9BLE9BQU8sS0FBSyxFQUNWLGdCQUFnQixFQUVoQixTQUFTLEVBR1YsTUFBTSwwQkFBMEIsQ0FBQztBQUNsQyxPQUFPLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUNyRCxPQUFPLEVBQUUsWUFBWSxFQUFFLEtBQUssY0FBYyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDeEUsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0scUNBQXFDLENBQUM7QUF5UWxGLHFCQUFhLG9CQUFxQixTQUFRLFlBQVk7SUFDcEQsT0FBTyxlQUVOO0lBRUQsT0FBYyxFQUFFLENBQUMsTUFBTSxFQUFFLE1BQU0sR0FBRyxvQkFBb0IsQ0FFckQ7SUFFYyxPQUFPLEVBQUU7UUFDdEIsNkRBQTZEO1FBQzdELGtCQUFrQixFQUFFLENBQUMsQ0FBQyxTQUFTLEVBQUUsTUFBTSxHQUFHLE1BQU0sRUFBRSxLQUFLLEVBQUUsTUFBTSxH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AAE,CAAC;YACtC,qBAAqB,EAAE,SAAS,CAAC;YACjC,SAAS,EAAE,gBAAgB,CAAC;SAC7B,KACE,2BAA2B,CAAC,GAC/B,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAEnC,uCAAuC;QACvC,eAAe,EAAE,CAAC,CAAC,QAAQ,EAAE,SAAS,KAAK,2BAA2B,CAAC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAE3G,mBAAmB;QACnB,UAAU,EAAE,CAAC,MAAM,2BAA2B,CAAC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;KACpF,CAAC;CACH"}
|
|
@@ -21,7 +21,7 @@ const PublicChecksContractArtifact = {
|
|
|
21
21
|
name: 'storage',
|
|
22
22
|
type: {
|
|
23
23
|
kind: 'array',
|
|
24
|
-
length:
|
|
24
|
+
length: 15,
|
|
25
25
|
type: {
|
|
26
26
|
kind: 'field'
|
|
27
27
|
}
|
|
@@ -162,6 +162,19 @@ const PublicChecksContractArtifact = {
|
|
|
162
162
|
error_kind: 'string',
|
|
163
163
|
string: 'Input length must be a multiple of 32'
|
|
164
164
|
},
|
|
165
|
+
'5417577161503694006': {
|
|
166
|
+
error_kind: 'fmtstring',
|
|
167
|
+
length: 56,
|
|
168
|
+
item_types: [
|
|
169
|
+
{
|
|
170
|
+
kind: 'field'
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
'9530675838293881722': {
|
|
175
|
+
error_kind: 'string',
|
|
176
|
+
string: 'Writer did not write all data'
|
|
177
|
+
},
|
|
165
178
|
'9791669845391776238': {
|
|
166
179
|
error_kind: 'string',
|
|
167
180
|
string: '0 has a square root; you cannot claim it is not square'
|
|
@@ -285,10 +298,6 @@ const PublicChecksContractArtifact = {
|
|
|
285
298
|
error_kind: 'string',
|
|
286
299
|
string: 'Timestamp mismatch.'
|
|
287
300
|
},
|
|
288
|
-
'14990209321349310352': {
|
|
289
|
-
error_kind: 'string',
|
|
290
|
-
string: 'attempt to add with overflow'
|
|
291
|
-
},
|
|
292
301
|
'15015303112667403944': {
|
|
293
302
|
error_kind: 'fmtstring',
|
|
294
303
|
length: 17,
|
|
@@ -297,10 +306,6 @@ const PublicChecksContractArtifact = {
|
|
|
297
306
|
'15764276373176857197': {
|
|
298
307
|
error_kind: 'string',
|
|
299
308
|
string: 'Stack too deep'
|
|
300
|
-
},
|
|
301
|
-
'16431471497789672479': {
|
|
302
|
-
error_kind: 'string',
|
|
303
|
-
string: 'Index out of bounds'
|
|
304
309
|
}
|
|
305
310
|
}
|
|
306
311
|
},
|
|
@@ -372,6 +377,19 @@ const PublicChecksContractArtifact = {
|
|
|
372
377
|
error_kind: 'string',
|
|
373
378
|
string: 'Input length must be a multiple of 32'
|
|
374
379
|
},
|
|
380
|
+
'5417577161503694006': {
|
|
381
|
+
error_kind: 'fmtstring',
|
|
382
|
+
length: 56,
|
|
383
|
+
item_types: [
|
|
384
|
+
{
|
|
385
|
+
kind: 'field'
|
|
386
|
+
}
|
|
387
|
+
]
|
|
388
|
+
},
|
|
389
|
+
'9530675838293881722': {
|
|
390
|
+
error_kind: 'string',
|
|
391
|
+
string: 'Writer did not write all data'
|
|
392
|
+
},
|
|
375
393
|
'9791669845391776238': {
|
|
376
394
|
error_kind: 'string',
|
|
377
395
|
string: '0 has a square root; you cannot claim it is not square'
|
|
@@ -459,6 +477,10 @@ const PublicChecksContractArtifact = {
|
|
|
459
477
|
width: 32
|
|
460
478
|
}
|
|
461
479
|
]
|
|
480
|
+
},
|
|
481
|
+
'17655676068928457687': {
|
|
482
|
+
error_kind: 'string',
|
|
483
|
+
string: 'Reader did not read all data'
|
|
462
484
|
}
|
|
463
485
|
}
|
|
464
486
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
2
2
|
import { ProtocolContractAddress } from '@aztec/protocol-contracts';
|
|
3
|
-
import { FunctionSelector, FunctionType } from '@aztec/stdlib/abi';
|
|
3
|
+
import { FunctionCall, FunctionSelector, FunctionType } from '@aztec/stdlib/abi';
|
|
4
4
|
import { ExecutionPayload } from '@aztec/stdlib/tx';
|
|
5
5
|
/**
|
|
6
6
|
* Pay fee directly with Fee Juice claimed in the same tx. Claiming consumes an L1 to L2 message that "contains"
|
|
@@ -18,10 +18,11 @@ import { ExecutionPayload } from '@aztec/stdlib/tx';
|
|
|
18
18
|
*/ async getExecutionPayload() {
|
|
19
19
|
const selector = await FunctionSelector.fromSignature('claim_and_end_setup((Field),u128,Field,Field)');
|
|
20
20
|
return new ExecutionPayload([
|
|
21
|
-
{
|
|
22
|
-
to: ProtocolContractAddress.FeeJuice,
|
|
21
|
+
FunctionCall.from({
|
|
23
22
|
name: 'claim_and_end_setup',
|
|
23
|
+
to: ProtocolContractAddress.FeeJuice,
|
|
24
24
|
selector,
|
|
25
|
+
type: FunctionType.PRIVATE,
|
|
25
26
|
hideMsgSender: false,
|
|
26
27
|
isStatic: false,
|
|
27
28
|
args: [
|
|
@@ -30,9 +31,8 @@ import { ExecutionPayload } from '@aztec/stdlib/tx';
|
|
|
30
31
|
this.claim.claimSecret,
|
|
31
32
|
new Fr(this.claim.messageLeafIndex)
|
|
32
33
|
],
|
|
33
|
-
returnTypes: []
|
|
34
|
-
|
|
35
|
-
}
|
|
34
|
+
returnTypes: []
|
|
35
|
+
})
|
|
36
36
|
], [], [], [], this.sender);
|
|
37
37
|
}
|
|
38
38
|
getAsset() {
|