@latticexyz/world-module-erc20 2.2.21-581228bd857077023efdb496a9a44fa62ff89936 → 2.2.21-5a67f40bed3b05afd388f96a7b1bfee8b52c29ef

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.
Files changed (80) hide show
  1. package/dist/{ccip-VJWDNI4X.js → ccip-VIBPEQNI.js} +3 -3
  2. package/dist/{chunk-2VXHCW2O.js → chunk-M5FHJZR5.js} +37 -30
  3. package/dist/chunk-M5FHJZR5.js.map +1 -0
  4. package/dist/{chunk-LIWKL347.js → chunk-XE443CMG.js} +305 -249
  5. package/dist/chunk-XE443CMG.js.map +1 -0
  6. package/dist/internal.js +2 -2
  7. package/dist/{secp256k1-XVT662DN.js → secp256k1-QT34R5PW.js} +507 -428
  8. package/dist/secp256k1-QT34R5PW.js.map +1 -0
  9. package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
  10. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
  11. package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
  12. package/out/Constants.sol/ERC20TableNames.json +1 -1
  13. package/out/Constants.sol/ModuleConstants.json +1 -1
  14. package/out/Constants.sol/PausableTableNames.json +1 -1
  15. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.abi.json +324 -0
  16. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.abi.json.d.ts +324 -0
  17. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.json +1 -1
  18. package/out/ERC20BaseTest.t.sol/ERC20Test.abi.json +324 -0
  19. package/out/ERC20BaseTest.t.sol/ERC20Test.abi.json.d.ts +324 -0
  20. package/out/ERC20BaseTest.t.sol/ERC20Test.json +1 -1
  21. package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json +21 -280
  22. package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json.d.ts +21 -280
  23. package/out/ERC20BaseTest.t.sol/MockERC20Base.json +1 -1
  24. package/out/ERC20Burnable.sol/ERC20Burnable.abi.json +8 -317
  25. package/out/ERC20Burnable.sol/ERC20Burnable.abi.json.d.ts +8 -317
  26. package/out/ERC20Burnable.sol/ERC20Burnable.json +1 -1
  27. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.abi.json +324 -0
  28. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.abi.json.d.ts +324 -0
  29. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.json +1 -1
  30. package/out/ERC20Burnable.t.sol/MockERC20Burnable.abi.json +25 -279
  31. package/out/ERC20Burnable.t.sol/MockERC20Burnable.abi.json.d.ts +25 -279
  32. package/out/ERC20Burnable.t.sol/MockERC20Burnable.json +1 -1
  33. package/out/ERC20Module.sol/ERC20Module.json +1 -1
  34. package/out/ERC20Module.sol/ERC20ModuleLib.json +1 -0
  35. package/out/ERC20Module.t.sol/ERC20ModuleTest.json +1 -1
  36. package/out/ERC20Module.t.sol/TestConstants.json +1 -1
  37. package/out/ERC20Pausable.sol/ERC20Pausable.abi.json +8 -317
  38. package/out/ERC20Pausable.sol/ERC20Pausable.abi.json.d.ts +8 -317
  39. package/out/ERC20Pausable.sol/ERC20Pausable.json +1 -1
  40. package/out/ERC20Pausable.t.sol/{ERC20PausableBehaviorTest.abi.json → ERC20PausableTest.abi.json} +324 -0
  41. package/out/ERC20Pausable.t.sol/{ERC20PausableBehaviorTest.abi.json.d.ts → ERC20PausableTest.abi.json.d.ts} +324 -0
  42. package/out/ERC20Pausable.t.sol/ERC20PausableTest.json +1 -0
  43. package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json +25 -279
  44. package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json.d.ts +25 -279
  45. package/out/ERC20Pausable.t.sol/MockERC20Pausable.json +1 -1
  46. package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.abi.json +50 -284
  47. package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.abi.json.d.ts +50 -284
  48. package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.json +1 -1
  49. package/out/InitModule.sol/InitModule.json +1 -1
  50. package/out/MUDERC20.sol/MUDERC20.abi.json +8 -317
  51. package/out/MUDERC20.sol/MUDERC20.abi.json.d.ts +8 -317
  52. package/out/MUDERC20.sol/MUDERC20.json +1 -1
  53. package/out/Pausable.sol/Pausable.abi.json +8 -369
  54. package/out/Pausable.sol/Pausable.abi.json.d.ts +8 -369
  55. package/out/Pausable.sol/Pausable.json +1 -1
  56. package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
  57. package/out/World.sol/World.json +1 -1
  58. package/out/WorldConsumer.sol/WorldConsumer.abi.json +8 -45
  59. package/out/WorldConsumer.sol/WorldConsumer.abi.json.d.ts +8 -45
  60. package/out/WorldConsumer.sol/WorldConsumer.json +1 -1
  61. package/out/build-info/{575e1001b22e51590748b4ce55e7c596.json → 5dec426f2d87057b9b49f18296a28057.json} +1 -1
  62. package/package.json +8 -8
  63. package/src/examples/ERC20PausableBurnable.sol +21 -8
  64. package/src/experimental/Constants.sol +0 -4
  65. package/src/experimental/ERC20Module.sol +46 -9
  66. package/src/experimental/ERC20Pausable.sol +3 -0
  67. package/src/experimental/MUDERC20.sol +24 -29
  68. package/src/experimental/Pausable.sol +15 -15
  69. package/dist/chunk-2VXHCW2O.js.map +0 -1
  70. package/dist/chunk-LIWKL347.js.map +0 -1
  71. package/dist/secp256k1-XVT662DN.js.map +0 -1
  72. package/out/Constants.sol/OwnableTableNames.abi.json +0 -1
  73. package/out/Constants.sol/OwnableTableNames.json +0 -1
  74. package/out/ERC20BaseTest.t.sol/TestConstants.abi.json +0 -1
  75. package/out/ERC20BaseTest.t.sol/TestConstants.json +0 -1
  76. package/out/ERC20Module.sol/ERC20RegistryLib.json +0 -1
  77. package/out/ERC20Pausable.t.sol/ERC20PausableBehaviorTest.json +0 -1
  78. /package/dist/{ccip-VJWDNI4X.js.map → ccip-VIBPEQNI.js.map} +0 -0
  79. /package/out/ERC20Module.sol/{ERC20RegistryLib.abi.json → ERC20ModuleLib.abi.json} +0 -0
  80. /package/out/ERC20Module.sol/{ERC20RegistryLib.abi.json.d.ts → ERC20ModuleLib.abi.json.d.ts} +0 -0
@@ -162,32 +162,6 @@
162
162
  ],
163
163
  "stateMutability": "view"
164
164
  },
165
- {
166
- "type": "function",
167
- "name": "namespace",
168
- "inputs": [],
169
- "outputs": [
170
- {
171
- "name": "",
172
- "type": "bytes14",
173
- "internalType": "bytes14"
174
- }
175
- ],
176
- "stateMutability": "view"
177
- },
178
- {
179
- "type": "function",
180
- "name": "namespaceId",
181
- "inputs": [],
182
- "outputs": [
183
- {
184
- "name": "",
185
- "type": "bytes32",
186
- "internalType": "ResourceId"
187
- }
188
- ],
189
- "stateMutability": "view"
190
- },
191
165
  {
192
166
  "type": "function",
193
167
  "name": "supportsInterface",
@@ -311,43 +285,6 @@
311
285
  ],
312
286
  "anonymous": false
313
287
  },
314
- {
315
- "type": "event",
316
- "name": "Store_SetRecord",
317
- "inputs": [
318
- {
319
- "name": "tableId",
320
- "type": "bytes32",
321
- "indexed": true,
322
- "internalType": "ResourceId"
323
- },
324
- {
325
- "name": "keyTuple",
326
- "type": "bytes32[]",
327
- "indexed": false,
328
- "internalType": "bytes32[]"
329
- },
330
- {
331
- "name": "staticData",
332
- "type": "bytes",
333
- "indexed": false,
334
- "internalType": "bytes"
335
- },
336
- {
337
- "name": "encodedLengths",
338
- "type": "bytes32",
339
- "indexed": false,
340
- "internalType": "EncodedLengths"
341
- },
342
- {
343
- "name": "dynamicData",
344
- "type": "bytes",
345
- "indexed": false,
346
- "internalType": "bytes"
347
- }
348
- ],
349
- "anonymous": false
350
- },
351
288
  {
352
289
  "type": "event",
353
290
  "name": "Store_SpliceStaticData",
@@ -490,108 +427,6 @@
490
427
  }
491
428
  ]
492
429
  },
493
- {
494
- "type": "error",
495
- "name": "FieldLayout_Empty",
496
- "inputs": []
497
- },
498
- {
499
- "type": "error",
500
- "name": "FieldLayout_InvalidStaticDataLength",
501
- "inputs": [
502
- {
503
- "name": "staticDataLength",
504
- "type": "uint256",
505
- "internalType": "uint256"
506
- },
507
- {
508
- "name": "computedStaticDataLength",
509
- "type": "uint256",
510
- "internalType": "uint256"
511
- }
512
- ]
513
- },
514
- {
515
- "type": "error",
516
- "name": "FieldLayout_StaticLengthDoesNotFitInAWord",
517
- "inputs": [
518
- {
519
- "name": "index",
520
- "type": "uint256",
521
- "internalType": "uint256"
522
- }
523
- ]
524
- },
525
- {
526
- "type": "error",
527
- "name": "FieldLayout_StaticLengthIsNotZero",
528
- "inputs": [
529
- {
530
- "name": "index",
531
- "type": "uint256",
532
- "internalType": "uint256"
533
- }
534
- ]
535
- },
536
- {
537
- "type": "error",
538
- "name": "FieldLayout_StaticLengthIsZero",
539
- "inputs": [
540
- {
541
- "name": "index",
542
- "type": "uint256",
543
- "internalType": "uint256"
544
- }
545
- ]
546
- },
547
- {
548
- "type": "error",
549
- "name": "FieldLayout_TooManyDynamicFields",
550
- "inputs": [
551
- {
552
- "name": "numFields",
553
- "type": "uint256",
554
- "internalType": "uint256"
555
- },
556
- {
557
- "name": "maxFields",
558
- "type": "uint256",
559
- "internalType": "uint256"
560
- }
561
- ]
562
- },
563
- {
564
- "type": "error",
565
- "name": "FieldLayout_TooManyFields",
566
- "inputs": [
567
- {
568
- "name": "numFields",
569
- "type": "uint256",
570
- "internalType": "uint256"
571
- },
572
- {
573
- "name": "maxFields",
574
- "type": "uint256",
575
- "internalType": "uint256"
576
- }
577
- ]
578
- },
579
- {
580
- "type": "error",
581
- "name": "Schema_InvalidLength",
582
- "inputs": [
583
- {
584
- "name": "length",
585
- "type": "uint256",
586
- "internalType": "uint256"
587
- }
588
- ]
589
- },
590
- {
591
- "type": "error",
592
- "name": "Schema_StaticTypeAfterDynamicType",
593
- "inputs": []
594
- },
595
430
  {
596
431
  "type": "error",
597
432
  "name": "Slice_OutOfBounds",
@@ -613,139 +448,6 @@
613
448
  }
614
449
  ]
615
450
  },
616
- {
617
- "type": "error",
618
- "name": "Store_InvalidFieldNamesLength",
619
- "inputs": [
620
- {
621
- "name": "expected",
622
- "type": "uint256",
623
- "internalType": "uint256"
624
- },
625
- {
626
- "name": "received",
627
- "type": "uint256",
628
- "internalType": "uint256"
629
- }
630
- ]
631
- },
632
- {
633
- "type": "error",
634
- "name": "Store_InvalidKeyNamesLength",
635
- "inputs": [
636
- {
637
- "name": "expected",
638
- "type": "uint256",
639
- "internalType": "uint256"
640
- },
641
- {
642
- "name": "received",
643
- "type": "uint256",
644
- "internalType": "uint256"
645
- }
646
- ]
647
- },
648
- {
649
- "type": "error",
650
- "name": "Store_InvalidResourceType",
651
- "inputs": [
652
- {
653
- "name": "expected",
654
- "type": "bytes2",
655
- "internalType": "bytes2"
656
- },
657
- {
658
- "name": "resourceId",
659
- "type": "bytes32",
660
- "internalType": "ResourceId"
661
- },
662
- {
663
- "name": "resourceIdString",
664
- "type": "string",
665
- "internalType": "string"
666
- }
667
- ]
668
- },
669
- {
670
- "type": "error",
671
- "name": "Store_InvalidStaticDataLength",
672
- "inputs": [
673
- {
674
- "name": "expected",
675
- "type": "uint256",
676
- "internalType": "uint256"
677
- },
678
- {
679
- "name": "received",
680
- "type": "uint256",
681
- "internalType": "uint256"
682
- }
683
- ]
684
- },
685
- {
686
- "type": "error",
687
- "name": "Store_InvalidValueSchemaDynamicLength",
688
- "inputs": [
689
- {
690
- "name": "expected",
691
- "type": "uint256",
692
- "internalType": "uint256"
693
- },
694
- {
695
- "name": "received",
696
- "type": "uint256",
697
- "internalType": "uint256"
698
- }
699
- ]
700
- },
701
- {
702
- "type": "error",
703
- "name": "Store_InvalidValueSchemaLength",
704
- "inputs": [
705
- {
706
- "name": "expected",
707
- "type": "uint256",
708
- "internalType": "uint256"
709
- },
710
- {
711
- "name": "received",
712
- "type": "uint256",
713
- "internalType": "uint256"
714
- }
715
- ]
716
- },
717
- {
718
- "type": "error",
719
- "name": "Store_InvalidValueSchemaStaticLength",
720
- "inputs": [
721
- {
722
- "name": "expected",
723
- "type": "uint256",
724
- "internalType": "uint256"
725
- },
726
- {
727
- "name": "received",
728
- "type": "uint256",
729
- "internalType": "uint256"
730
- }
731
- ]
732
- },
733
- {
734
- "type": "error",
735
- "name": "Store_TableAlreadyExists",
736
- "inputs": [
737
- {
738
- "name": "tableId",
739
- "type": "bytes32",
740
- "internalType": "ResourceId"
741
- },
742
- {
743
- "name": "tableIdString",
744
- "type": "string",
745
- "internalType": "string"
746
- }
747
- ]
748
- },
749
451
  {
750
452
  "type": "error",
751
453
  "name": "WorldConsumer_CallerHasNoNamespaceAccess",
@@ -769,13 +471,18 @@
769
471
  },
770
472
  {
771
473
  "type": "error",
772
- "name": "WorldConsumer_CallerIsNotWorld",
474
+ "name": "WorldConsumer_CallerIsNotNamespaceOwner",
773
475
  "inputs": [
774
476
  {
775
477
  "name": "worldAddress",
776
478
  "type": "address",
777
479
  "internalType": "address"
778
480
  },
481
+ {
482
+ "name": "namespace",
483
+ "type": "bytes14",
484
+ "internalType": "bytes14"
485
+ },
779
486
  {
780
487
  "name": "caller",
781
488
  "type": "address",
@@ -785,7 +492,7 @@
785
492
  },
786
493
  {
787
494
  "type": "error",
788
- "name": "WorldConsumer_NamespaceAlreadyExists",
495
+ "name": "WorldConsumer_CallerIsNotWorld",
789
496
  "inputs": [
790
497
  {
791
498
  "name": "worldAddress",
@@ -793,25 +500,9 @@
793
500
  "internalType": "address"
794
501
  },
795
502
  {
796
- "name": "namespace",
797
- "type": "bytes14",
798
- "internalType": "bytes14"
799
- }
800
- ]
801
- },
802
- {
803
- "type": "error",
804
- "name": "WorldConsumer_NamespaceDoesNotExists",
805
- "inputs": [
806
- {
807
- "name": "worldAddress",
503
+ "name": "caller",
808
504
  "type": "address",
809
505
  "internalType": "address"
810
- },
811
- {
812
- "name": "namespace",
813
- "type": "bytes14",
814
- "internalType": "bytes14"
815
506
  }
816
507
  ]
817
508
  },