@0xsequence/abi 2.2.4 → 2.2.5

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const abi$7 = [{
5
+ const abi$9 = [{
6
6
  inputs: [{
7
7
  internalType: 'bytes32',
8
8
  type: 'bytes32'
@@ -18,10 +18,10 @@ const abi$7 = [{
18
18
 
19
19
  var erc5719 = /*#__PURE__*/Object.freeze({
20
20
  __proto__: null,
21
- abi: abi$7
21
+ abi: abi$9
22
22
  });
23
23
 
24
- const abi$6 = [{
24
+ const abi$8 = [{
25
25
  type: 'function',
26
26
  name: 'isValidSignature',
27
27
  constant: true,
@@ -42,11 +42,11 @@ const returns = {
42
42
 
43
43
  var erc1271 = /*#__PURE__*/Object.freeze({
44
44
  __proto__: null,
45
- abi: abi$6,
45
+ abi: abi$8,
46
46
  returns: returns
47
47
  });
48
48
 
49
- const abi$5 = [{
49
+ const abi$7 = [{
50
50
  inputs: [{
51
51
  internalType: 'bytes',
52
52
  name: 'error',
@@ -184,10 +184,10 @@ const abi$5 = [{
184
184
 
185
185
  var erc6492 = /*#__PURE__*/Object.freeze({
186
186
  __proto__: null,
187
- abi: abi$5
187
+ abi: abi$7
188
188
  });
189
189
 
190
- const abi$4 = [{
190
+ const abi$6 = [{
191
191
  type: 'function',
192
192
  name: 'deploy',
193
193
  constant: false,
@@ -203,10 +203,10 @@ const abi$4 = [{
203
203
 
204
204
  var factory = /*#__PURE__*/Object.freeze({
205
205
  __proto__: null,
206
- abi: abi$4
206
+ abi: abi$6
207
207
  });
208
208
 
209
- const abi$3 = [{
209
+ const abi$5 = [{
210
210
  type: 'function',
211
211
  name: 'nonce',
212
212
  constant: true,
@@ -326,10 +326,10 @@ const abi$3 = [{
326
326
 
327
327
  var mainModule = /*#__PURE__*/Object.freeze({
328
328
  __proto__: null,
329
- abi: abi$3
329
+ abi: abi$5
330
330
  });
331
331
 
332
- const abi$2 = [{
332
+ const abi$4 = [{
333
333
  type: 'function',
334
334
  name: 'updateImageHash',
335
335
  constant: true,
@@ -353,10 +353,204 @@ const abi$2 = [{
353
353
 
354
354
  var mainModuleUpgradable = /*#__PURE__*/Object.freeze({
355
355
  __proto__: null,
356
- abi: abi$2
356
+ abi: abi$4
357
357
  });
358
358
 
359
- const abi$1 = [{
359
+ const abi$3 = [{
360
+ inputs: [{
361
+ internalType: 'bytes4',
362
+ name: '_signature',
363
+ type: 'bytes4'
364
+ }],
365
+ name: 'HookAlreadyExists',
366
+ type: 'error'
367
+ }, {
368
+ inputs: [{
369
+ internalType: 'bytes4',
370
+ name: '_signature',
371
+ type: 'bytes4'
372
+ }],
373
+ name: 'HookDoesNotExist',
374
+ type: 'error'
375
+ }, {
376
+ inputs: [{
377
+ internalType: 'address',
378
+ name: '_sender',
379
+ type: 'address'
380
+ }, {
381
+ internalType: 'address',
382
+ name: '_self',
383
+ type: 'address'
384
+ }],
385
+ name: 'OnlySelfAuth',
386
+ type: 'error'
387
+ }, {
388
+ anonymous: false,
389
+ inputs: [{
390
+ indexed: false,
391
+ internalType: 'bytes4',
392
+ name: '_signature',
393
+ type: 'bytes4'
394
+ }, {
395
+ indexed: false,
396
+ internalType: 'address',
397
+ name: '_implementation',
398
+ type: 'address'
399
+ }],
400
+ name: 'DefinedHook',
401
+ type: 'event'
402
+ }, {
403
+ stateMutability: 'payable',
404
+ type: 'fallback'
405
+ }, {
406
+ inputs: [{
407
+ internalType: 'bytes4',
408
+ name: '_signature',
409
+ type: 'bytes4'
410
+ }, {
411
+ internalType: 'address',
412
+ name: '_implementation',
413
+ type: 'address'
414
+ }],
415
+ name: 'addHook',
416
+ outputs: [],
417
+ stateMutability: 'nonpayable',
418
+ type: 'function'
419
+ }, {
420
+ inputs: [{
421
+ internalType: 'address',
422
+ name: '',
423
+ type: 'address'
424
+ }, {
425
+ internalType: 'address',
426
+ name: '',
427
+ type: 'address'
428
+ }, {
429
+ internalType: 'uint256[]',
430
+ name: '',
431
+ type: 'uint256[]'
432
+ }, {
433
+ internalType: 'uint256[]',
434
+ name: '',
435
+ type: 'uint256[]'
436
+ }, {
437
+ internalType: 'bytes',
438
+ name: '',
439
+ type: 'bytes'
440
+ }],
441
+ name: 'onERC1155BatchReceived',
442
+ outputs: [{
443
+ internalType: 'bytes4',
444
+ name: '',
445
+ type: 'bytes4'
446
+ }],
447
+ stateMutability: 'nonpayable',
448
+ type: 'function'
449
+ }, {
450
+ inputs: [{
451
+ internalType: 'address',
452
+ name: '',
453
+ type: 'address'
454
+ }, {
455
+ internalType: 'address',
456
+ name: '',
457
+ type: 'address'
458
+ }, {
459
+ internalType: 'uint256',
460
+ name: '',
461
+ type: 'uint256'
462
+ }, {
463
+ internalType: 'uint256',
464
+ name: '',
465
+ type: 'uint256'
466
+ }, {
467
+ internalType: 'bytes',
468
+ name: '',
469
+ type: 'bytes'
470
+ }],
471
+ name: 'onERC1155Received',
472
+ outputs: [{
473
+ internalType: 'bytes4',
474
+ name: '',
475
+ type: 'bytes4'
476
+ }],
477
+ stateMutability: 'nonpayable',
478
+ type: 'function'
479
+ }, {
480
+ inputs: [{
481
+ internalType: 'address',
482
+ name: '',
483
+ type: 'address'
484
+ }, {
485
+ internalType: 'address',
486
+ name: '',
487
+ type: 'address'
488
+ }, {
489
+ internalType: 'uint256',
490
+ name: '',
491
+ type: 'uint256'
492
+ }, {
493
+ internalType: 'bytes',
494
+ name: '',
495
+ type: 'bytes'
496
+ }],
497
+ name: 'onERC721Received',
498
+ outputs: [{
499
+ internalType: 'bytes4',
500
+ name: '',
501
+ type: 'bytes4'
502
+ }],
503
+ stateMutability: 'nonpayable',
504
+ type: 'function'
505
+ }, {
506
+ inputs: [{
507
+ internalType: 'bytes4',
508
+ name: '_signature',
509
+ type: 'bytes4'
510
+ }],
511
+ name: 'readHook',
512
+ outputs: [{
513
+ internalType: 'address',
514
+ name: '',
515
+ type: 'address'
516
+ }],
517
+ stateMutability: 'view',
518
+ type: 'function'
519
+ }, {
520
+ inputs: [{
521
+ internalType: 'bytes4',
522
+ name: '_signature',
523
+ type: 'bytes4'
524
+ }],
525
+ name: 'removeHook',
526
+ outputs: [],
527
+ stateMutability: 'nonpayable',
528
+ type: 'function'
529
+ }, {
530
+ inputs: [{
531
+ internalType: 'bytes4',
532
+ name: '_interfaceID',
533
+ type: 'bytes4'
534
+ }],
535
+ name: 'supportsInterface',
536
+ outputs: [{
537
+ internalType: 'bool',
538
+ name: '',
539
+ type: 'bool'
540
+ }],
541
+ stateMutability: 'pure',
542
+ type: 'function'
543
+ }, {
544
+ stateMutability: 'payable',
545
+ type: 'receive'
546
+ }];
547
+
548
+ var moduleHooks = /*#__PURE__*/Object.freeze({
549
+ __proto__: null,
550
+ abi: abi$3
551
+ });
552
+
553
+ const abi$2 = [{
360
554
  inputs: [{
361
555
  internalType: 'address',
362
556
  name: '_factory',
@@ -752,10 +946,10 @@ const abi$1 = [{
752
946
 
753
947
  var sequenceUtils = /*#__PURE__*/Object.freeze({
754
948
  __proto__: null,
755
- abi: abi$1
949
+ abi: abi$2
756
950
  });
757
951
 
758
- const abi = [{
952
+ const abi$1 = [{
759
953
  inputs: [{
760
954
  internalType: 'address',
761
955
  name: '',
@@ -768,6 +962,23 @@ const abi = [{
768
962
  }];
769
963
 
770
964
  var requireFreshSigner = /*#__PURE__*/Object.freeze({
965
+ __proto__: null,
966
+ abi: abi$1
967
+ });
968
+
969
+ const abi = [{
970
+ type: 'function',
971
+ name: 'PROXY_getImplementation',
972
+ inputs: [],
973
+ outputs: [{
974
+ name: '',
975
+ type: 'address',
976
+ internalType: 'address'
977
+ }],
978
+ stateMutability: 'view'
979
+ }];
980
+
981
+ var walletProxyHook = /*#__PURE__*/Object.freeze({
771
982
  __proto__: null,
772
983
  abi: abi
773
984
  });
@@ -779,8 +990,10 @@ const walletContracts = {
779
990
  factory,
780
991
  mainModule,
781
992
  mainModuleUpgradable,
993
+ moduleHooks,
782
994
  sequenceUtils,
783
- requireFreshSigner
995
+ requireFreshSigner,
996
+ walletProxyHook
784
997
  };
785
998
 
786
999
  exports.walletContracts = walletContracts;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const abi$7 = [{
5
+ const abi$9 = [{
6
6
  inputs: [{
7
7
  internalType: 'bytes32',
8
8
  type: 'bytes32'
@@ -18,10 +18,10 @@ const abi$7 = [{
18
18
 
19
19
  var erc5719 = /*#__PURE__*/Object.freeze({
20
20
  __proto__: null,
21
- abi: abi$7
21
+ abi: abi$9
22
22
  });
23
23
 
24
- const abi$6 = [{
24
+ const abi$8 = [{
25
25
  type: 'function',
26
26
  name: 'isValidSignature',
27
27
  constant: true,
@@ -42,11 +42,11 @@ const returns = {
42
42
 
43
43
  var erc1271 = /*#__PURE__*/Object.freeze({
44
44
  __proto__: null,
45
- abi: abi$6,
45
+ abi: abi$8,
46
46
  returns: returns
47
47
  });
48
48
 
49
- const abi$5 = [{
49
+ const abi$7 = [{
50
50
  inputs: [{
51
51
  internalType: 'bytes',
52
52
  name: 'error',
@@ -184,10 +184,10 @@ const abi$5 = [{
184
184
 
185
185
  var erc6492 = /*#__PURE__*/Object.freeze({
186
186
  __proto__: null,
187
- abi: abi$5
187
+ abi: abi$7
188
188
  });
189
189
 
190
- const abi$4 = [{
190
+ const abi$6 = [{
191
191
  type: 'function',
192
192
  name: 'deploy',
193
193
  constant: false,
@@ -203,10 +203,10 @@ const abi$4 = [{
203
203
 
204
204
  var factory = /*#__PURE__*/Object.freeze({
205
205
  __proto__: null,
206
- abi: abi$4
206
+ abi: abi$6
207
207
  });
208
208
 
209
- const abi$3 = [{
209
+ const abi$5 = [{
210
210
  type: 'function',
211
211
  name: 'nonce',
212
212
  constant: true,
@@ -326,10 +326,10 @@ const abi$3 = [{
326
326
 
327
327
  var mainModule = /*#__PURE__*/Object.freeze({
328
328
  __proto__: null,
329
- abi: abi$3
329
+ abi: abi$5
330
330
  });
331
331
 
332
- const abi$2 = [{
332
+ const abi$4 = [{
333
333
  type: 'function',
334
334
  name: 'updateImageHash',
335
335
  constant: true,
@@ -353,10 +353,204 @@ const abi$2 = [{
353
353
 
354
354
  var mainModuleUpgradable = /*#__PURE__*/Object.freeze({
355
355
  __proto__: null,
356
- abi: abi$2
356
+ abi: abi$4
357
357
  });
358
358
 
359
- const abi$1 = [{
359
+ const abi$3 = [{
360
+ inputs: [{
361
+ internalType: 'bytes4',
362
+ name: '_signature',
363
+ type: 'bytes4'
364
+ }],
365
+ name: 'HookAlreadyExists',
366
+ type: 'error'
367
+ }, {
368
+ inputs: [{
369
+ internalType: 'bytes4',
370
+ name: '_signature',
371
+ type: 'bytes4'
372
+ }],
373
+ name: 'HookDoesNotExist',
374
+ type: 'error'
375
+ }, {
376
+ inputs: [{
377
+ internalType: 'address',
378
+ name: '_sender',
379
+ type: 'address'
380
+ }, {
381
+ internalType: 'address',
382
+ name: '_self',
383
+ type: 'address'
384
+ }],
385
+ name: 'OnlySelfAuth',
386
+ type: 'error'
387
+ }, {
388
+ anonymous: false,
389
+ inputs: [{
390
+ indexed: false,
391
+ internalType: 'bytes4',
392
+ name: '_signature',
393
+ type: 'bytes4'
394
+ }, {
395
+ indexed: false,
396
+ internalType: 'address',
397
+ name: '_implementation',
398
+ type: 'address'
399
+ }],
400
+ name: 'DefinedHook',
401
+ type: 'event'
402
+ }, {
403
+ stateMutability: 'payable',
404
+ type: 'fallback'
405
+ }, {
406
+ inputs: [{
407
+ internalType: 'bytes4',
408
+ name: '_signature',
409
+ type: 'bytes4'
410
+ }, {
411
+ internalType: 'address',
412
+ name: '_implementation',
413
+ type: 'address'
414
+ }],
415
+ name: 'addHook',
416
+ outputs: [],
417
+ stateMutability: 'nonpayable',
418
+ type: 'function'
419
+ }, {
420
+ inputs: [{
421
+ internalType: 'address',
422
+ name: '',
423
+ type: 'address'
424
+ }, {
425
+ internalType: 'address',
426
+ name: '',
427
+ type: 'address'
428
+ }, {
429
+ internalType: 'uint256[]',
430
+ name: '',
431
+ type: 'uint256[]'
432
+ }, {
433
+ internalType: 'uint256[]',
434
+ name: '',
435
+ type: 'uint256[]'
436
+ }, {
437
+ internalType: 'bytes',
438
+ name: '',
439
+ type: 'bytes'
440
+ }],
441
+ name: 'onERC1155BatchReceived',
442
+ outputs: [{
443
+ internalType: 'bytes4',
444
+ name: '',
445
+ type: 'bytes4'
446
+ }],
447
+ stateMutability: 'nonpayable',
448
+ type: 'function'
449
+ }, {
450
+ inputs: [{
451
+ internalType: 'address',
452
+ name: '',
453
+ type: 'address'
454
+ }, {
455
+ internalType: 'address',
456
+ name: '',
457
+ type: 'address'
458
+ }, {
459
+ internalType: 'uint256',
460
+ name: '',
461
+ type: 'uint256'
462
+ }, {
463
+ internalType: 'uint256',
464
+ name: '',
465
+ type: 'uint256'
466
+ }, {
467
+ internalType: 'bytes',
468
+ name: '',
469
+ type: 'bytes'
470
+ }],
471
+ name: 'onERC1155Received',
472
+ outputs: [{
473
+ internalType: 'bytes4',
474
+ name: '',
475
+ type: 'bytes4'
476
+ }],
477
+ stateMutability: 'nonpayable',
478
+ type: 'function'
479
+ }, {
480
+ inputs: [{
481
+ internalType: 'address',
482
+ name: '',
483
+ type: 'address'
484
+ }, {
485
+ internalType: 'address',
486
+ name: '',
487
+ type: 'address'
488
+ }, {
489
+ internalType: 'uint256',
490
+ name: '',
491
+ type: 'uint256'
492
+ }, {
493
+ internalType: 'bytes',
494
+ name: '',
495
+ type: 'bytes'
496
+ }],
497
+ name: 'onERC721Received',
498
+ outputs: [{
499
+ internalType: 'bytes4',
500
+ name: '',
501
+ type: 'bytes4'
502
+ }],
503
+ stateMutability: 'nonpayable',
504
+ type: 'function'
505
+ }, {
506
+ inputs: [{
507
+ internalType: 'bytes4',
508
+ name: '_signature',
509
+ type: 'bytes4'
510
+ }],
511
+ name: 'readHook',
512
+ outputs: [{
513
+ internalType: 'address',
514
+ name: '',
515
+ type: 'address'
516
+ }],
517
+ stateMutability: 'view',
518
+ type: 'function'
519
+ }, {
520
+ inputs: [{
521
+ internalType: 'bytes4',
522
+ name: '_signature',
523
+ type: 'bytes4'
524
+ }],
525
+ name: 'removeHook',
526
+ outputs: [],
527
+ stateMutability: 'nonpayable',
528
+ type: 'function'
529
+ }, {
530
+ inputs: [{
531
+ internalType: 'bytes4',
532
+ name: '_interfaceID',
533
+ type: 'bytes4'
534
+ }],
535
+ name: 'supportsInterface',
536
+ outputs: [{
537
+ internalType: 'bool',
538
+ name: '',
539
+ type: 'bool'
540
+ }],
541
+ stateMutability: 'pure',
542
+ type: 'function'
543
+ }, {
544
+ stateMutability: 'payable',
545
+ type: 'receive'
546
+ }];
547
+
548
+ var moduleHooks = /*#__PURE__*/Object.freeze({
549
+ __proto__: null,
550
+ abi: abi$3
551
+ });
552
+
553
+ const abi$2 = [{
360
554
  inputs: [{
361
555
  internalType: 'address',
362
556
  name: '_factory',
@@ -752,10 +946,10 @@ const abi$1 = [{
752
946
 
753
947
  var sequenceUtils = /*#__PURE__*/Object.freeze({
754
948
  __proto__: null,
755
- abi: abi$1
949
+ abi: abi$2
756
950
  });
757
951
 
758
- const abi = [{
952
+ const abi$1 = [{
759
953
  inputs: [{
760
954
  internalType: 'address',
761
955
  name: '',
@@ -768,6 +962,23 @@ const abi = [{
768
962
  }];
769
963
 
770
964
  var requireFreshSigner = /*#__PURE__*/Object.freeze({
965
+ __proto__: null,
966
+ abi: abi$1
967
+ });
968
+
969
+ const abi = [{
970
+ type: 'function',
971
+ name: 'PROXY_getImplementation',
972
+ inputs: [],
973
+ outputs: [{
974
+ name: '',
975
+ type: 'address',
976
+ internalType: 'address'
977
+ }],
978
+ stateMutability: 'view'
979
+ }];
980
+
981
+ var walletProxyHook = /*#__PURE__*/Object.freeze({
771
982
  __proto__: null,
772
983
  abi: abi
773
984
  });
@@ -779,8 +990,10 @@ const walletContracts = {
779
990
  factory,
780
991
  mainModule,
781
992
  mainModuleUpgradable,
993
+ moduleHooks,
782
994
  sequenceUtils,
783
- requireFreshSigner
995
+ requireFreshSigner,
996
+ walletProxyHook
784
997
  };
785
998
 
786
999
  exports.walletContracts = walletContracts;