@latticexyz/world-module-erc20 2.2.20 → 2.2.21-3737e6f13a3da68311429bbbd6e8e8057d18f8fc

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
@@ -131,32 +131,6 @@
131
131
  ],
132
132
  "stateMutability": "view"
133
133
  },
134
- {
135
- "type": "function",
136
- "name": "namespace",
137
- "inputs": [],
138
- "outputs": [
139
- {
140
- "name": "",
141
- "type": "bytes14",
142
- "internalType": "bytes14"
143
- }
144
- ],
145
- "stateMutability": "view"
146
- },
147
- {
148
- "type": "function",
149
- "name": "namespaceId",
150
- "inputs": [],
151
- "outputs": [
152
- {
153
- "name": "",
154
- "type": "bytes32",
155
- "internalType": "ResourceId"
156
- }
157
- ],
158
- "stateMutability": "view"
159
- },
160
134
  {
161
135
  "type": "function",
162
136
  "name": "paused",
@@ -306,43 +280,6 @@
306
280
  ],
307
281
  "anonymous": false
308
282
  },
309
- {
310
- "type": "event",
311
- "name": "Store_SetRecord",
312
- "inputs": [
313
- {
314
- "name": "tableId",
315
- "type": "bytes32",
316
- "indexed": true,
317
- "internalType": "ResourceId"
318
- },
319
- {
320
- "name": "keyTuple",
321
- "type": "bytes32[]",
322
- "indexed": false,
323
- "internalType": "bytes32[]"
324
- },
325
- {
326
- "name": "staticData",
327
- "type": "bytes",
328
- "indexed": false,
329
- "internalType": "bytes"
330
- },
331
- {
332
- "name": "encodedLengths",
333
- "type": "bytes32",
334
- "indexed": false,
335
- "internalType": "EncodedLengths"
336
- },
337
- {
338
- "name": "dynamicData",
339
- "type": "bytes",
340
- "indexed": false,
341
- "internalType": "bytes"
342
- }
343
- ],
344
- "anonymous": false
345
- },
346
283
  {
347
284
  "type": "event",
348
285
  "name": "Store_SpliceStaticData",
@@ -508,108 +445,6 @@
508
445
  "name": "ExpectedPause",
509
446
  "inputs": []
510
447
  },
511
- {
512
- "type": "error",
513
- "name": "FieldLayout_Empty",
514
- "inputs": []
515
- },
516
- {
517
- "type": "error",
518
- "name": "FieldLayout_InvalidStaticDataLength",
519
- "inputs": [
520
- {
521
- "name": "staticDataLength",
522
- "type": "uint256",
523
- "internalType": "uint256"
524
- },
525
- {
526
- "name": "computedStaticDataLength",
527
- "type": "uint256",
528
- "internalType": "uint256"
529
- }
530
- ]
531
- },
532
- {
533
- "type": "error",
534
- "name": "FieldLayout_StaticLengthDoesNotFitInAWord",
535
- "inputs": [
536
- {
537
- "name": "index",
538
- "type": "uint256",
539
- "internalType": "uint256"
540
- }
541
- ]
542
- },
543
- {
544
- "type": "error",
545
- "name": "FieldLayout_StaticLengthIsNotZero",
546
- "inputs": [
547
- {
548
- "name": "index",
549
- "type": "uint256",
550
- "internalType": "uint256"
551
- }
552
- ]
553
- },
554
- {
555
- "type": "error",
556
- "name": "FieldLayout_StaticLengthIsZero",
557
- "inputs": [
558
- {
559
- "name": "index",
560
- "type": "uint256",
561
- "internalType": "uint256"
562
- }
563
- ]
564
- },
565
- {
566
- "type": "error",
567
- "name": "FieldLayout_TooManyDynamicFields",
568
- "inputs": [
569
- {
570
- "name": "numFields",
571
- "type": "uint256",
572
- "internalType": "uint256"
573
- },
574
- {
575
- "name": "maxFields",
576
- "type": "uint256",
577
- "internalType": "uint256"
578
- }
579
- ]
580
- },
581
- {
582
- "type": "error",
583
- "name": "FieldLayout_TooManyFields",
584
- "inputs": [
585
- {
586
- "name": "numFields",
587
- "type": "uint256",
588
- "internalType": "uint256"
589
- },
590
- {
591
- "name": "maxFields",
592
- "type": "uint256",
593
- "internalType": "uint256"
594
- }
595
- ]
596
- },
597
- {
598
- "type": "error",
599
- "name": "Schema_InvalidLength",
600
- "inputs": [
601
- {
602
- "name": "length",
603
- "type": "uint256",
604
- "internalType": "uint256"
605
- }
606
- ]
607
- },
608
- {
609
- "type": "error",
610
- "name": "Schema_StaticTypeAfterDynamicType",
611
- "inputs": []
612
- },
613
448
  {
614
449
  "type": "error",
615
450
  "name": "Slice_OutOfBounds",
@@ -631,139 +466,6 @@
631
466
  }
632
467
  ]
633
468
  },
634
- {
635
- "type": "error",
636
- "name": "Store_InvalidFieldNamesLength",
637
- "inputs": [
638
- {
639
- "name": "expected",
640
- "type": "uint256",
641
- "internalType": "uint256"
642
- },
643
- {
644
- "name": "received",
645
- "type": "uint256",
646
- "internalType": "uint256"
647
- }
648
- ]
649
- },
650
- {
651
- "type": "error",
652
- "name": "Store_InvalidKeyNamesLength",
653
- "inputs": [
654
- {
655
- "name": "expected",
656
- "type": "uint256",
657
- "internalType": "uint256"
658
- },
659
- {
660
- "name": "received",
661
- "type": "uint256",
662
- "internalType": "uint256"
663
- }
664
- ]
665
- },
666
- {
667
- "type": "error",
668
- "name": "Store_InvalidResourceType",
669
- "inputs": [
670
- {
671
- "name": "expected",
672
- "type": "bytes2",
673
- "internalType": "bytes2"
674
- },
675
- {
676
- "name": "resourceId",
677
- "type": "bytes32",
678
- "internalType": "ResourceId"
679
- },
680
- {
681
- "name": "resourceIdString",
682
- "type": "string",
683
- "internalType": "string"
684
- }
685
- ]
686
- },
687
- {
688
- "type": "error",
689
- "name": "Store_InvalidStaticDataLength",
690
- "inputs": [
691
- {
692
- "name": "expected",
693
- "type": "uint256",
694
- "internalType": "uint256"
695
- },
696
- {
697
- "name": "received",
698
- "type": "uint256",
699
- "internalType": "uint256"
700
- }
701
- ]
702
- },
703
- {
704
- "type": "error",
705
- "name": "Store_InvalidValueSchemaDynamicLength",
706
- "inputs": [
707
- {
708
- "name": "expected",
709
- "type": "uint256",
710
- "internalType": "uint256"
711
- },
712
- {
713
- "name": "received",
714
- "type": "uint256",
715
- "internalType": "uint256"
716
- }
717
- ]
718
- },
719
- {
720
- "type": "error",
721
- "name": "Store_InvalidValueSchemaLength",
722
- "inputs": [
723
- {
724
- "name": "expected",
725
- "type": "uint256",
726
- "internalType": "uint256"
727
- },
728
- {
729
- "name": "received",
730
- "type": "uint256",
731
- "internalType": "uint256"
732
- }
733
- ]
734
- },
735
- {
736
- "type": "error",
737
- "name": "Store_InvalidValueSchemaStaticLength",
738
- "inputs": [
739
- {
740
- "name": "expected",
741
- "type": "uint256",
742
- "internalType": "uint256"
743
- },
744
- {
745
- "name": "received",
746
- "type": "uint256",
747
- "internalType": "uint256"
748
- }
749
- ]
750
- },
751
- {
752
- "type": "error",
753
- "name": "Store_TableAlreadyExists",
754
- "inputs": [
755
- {
756
- "name": "tableId",
757
- "type": "bytes32",
758
- "internalType": "ResourceId"
759
- },
760
- {
761
- "name": "tableIdString",
762
- "type": "string",
763
- "internalType": "string"
764
- }
765
- ]
766
- },
767
469
  {
768
470
  "type": "error",
769
471
  "name": "WorldConsumer_CallerHasNoNamespaceAccess",
@@ -787,13 +489,18 @@
787
489
  },
788
490
  {
789
491
  "type": "error",
790
- "name": "WorldConsumer_CallerIsNotWorld",
492
+ "name": "WorldConsumer_CallerIsNotNamespaceOwner",
791
493
  "inputs": [
792
494
  {
793
495
  "name": "worldAddress",
794
496
  "type": "address",
795
497
  "internalType": "address"
796
498
  },
499
+ {
500
+ "name": "namespace",
501
+ "type": "bytes14",
502
+ "internalType": "bytes14"
503
+ },
797
504
  {
798
505
  "name": "caller",
799
506
  "type": "address",
@@ -803,7 +510,7 @@
803
510
  },
804
511
  {
805
512
  "type": "error",
806
- "name": "WorldConsumer_NamespaceAlreadyExists",
513
+ "name": "WorldConsumer_CallerIsNotWorld",
807
514
  "inputs": [
808
515
  {
809
516
  "name": "worldAddress",
@@ -811,25 +518,9 @@
811
518
  "internalType": "address"
812
519
  },
813
520
  {
814
- "name": "namespace",
815
- "type": "bytes14",
816
- "internalType": "bytes14"
817
- }
818
- ]
819
- },
820
- {
821
- "type": "error",
822
- "name": "WorldConsumer_NamespaceDoesNotExists",
823
- "inputs": [
824
- {
825
- "name": "worldAddress",
521
+ "name": "caller",
826
522
  "type": "address",
827
523
  "internalType": "address"
828
- },
829
- {
830
- "name": "namespace",
831
- "type": "bytes14",
832
- "internalType": "bytes14"
833
524
  }
834
525
  ]
835
526
  },