@latticexyz/world-module-erc20 2.2.20 → 2.2.21-1d354b89f3aeb28e9dc085bdde27647a7ba6d8ae

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
@@ -13,14 +13,29 @@ declare const abi: [
13
13
  "internalType": "bytes14"
14
14
  },
15
15
  {
16
- "name": "name",
17
- "type": "string",
18
- "internalType": "string"
16
+ "name": "totalSupplyId",
17
+ "type": "bytes32",
18
+ "internalType": "ResourceId"
19
19
  },
20
20
  {
21
- "name": "symbol",
22
- "type": "string",
23
- "internalType": "string"
21
+ "name": "balancesId",
22
+ "type": "bytes32",
23
+ "internalType": "ResourceId"
24
+ },
25
+ {
26
+ "name": "allowancesId",
27
+ "type": "bytes32",
28
+ "internalType": "ResourceId"
29
+ },
30
+ {
31
+ "name": "metadataId",
32
+ "type": "bytes32",
33
+ "internalType": "ResourceId"
34
+ },
35
+ {
36
+ "name": "pausedId",
37
+ "type": "bytes32",
38
+ "internalType": "ResourceId"
24
39
  }
25
40
  ],
26
41
  "stateMutability": "nonpayable"
@@ -175,6 +190,24 @@ declare const abi: [
175
190
  ],
176
191
  "stateMutability": "view"
177
192
  },
193
+ {
194
+ "type": "function",
195
+ "name": "initialize",
196
+ "inputs": [
197
+ {
198
+ "name": "name",
199
+ "type": "string",
200
+ "internalType": "string"
201
+ },
202
+ {
203
+ "name": "symbol",
204
+ "type": "string",
205
+ "internalType": "string"
206
+ }
207
+ ],
208
+ "outputs": [],
209
+ "stateMutability": "nonpayable"
210
+ },
178
211
  {
179
212
  "type": "function",
180
213
  "name": "mint",
@@ -206,32 +239,6 @@ declare const abi: [
206
239
  ],
207
240
  "stateMutability": "view"
208
241
  },
209
- {
210
- "type": "function",
211
- "name": "namespace",
212
- "inputs": [],
213
- "outputs": [
214
- {
215
- "name": "",
216
- "type": "bytes14",
217
- "internalType": "bytes14"
218
- }
219
- ],
220
- "stateMutability": "view"
221
- },
222
- {
223
- "type": "function",
224
- "name": "namespaceId",
225
- "inputs": [],
226
- "outputs": [
227
- {
228
- "name": "",
229
- "type": "bytes32",
230
- "internalType": "ResourceId"
231
- }
232
- ],
233
- "stateMutability": "view"
234
- },
235
242
  {
236
243
  "type": "function",
237
244
  "name": "pause",
@@ -589,114 +596,17 @@ declare const abi: [
589
596
  },
590
597
  {
591
598
  "type": "error",
592
- "name": "EnforcedPause",
593
- "inputs": []
594
- },
595
- {
596
- "type": "error",
597
- "name": "ExpectedPause",
599
+ "name": "ERC20PausableBurnable_AlreadyInitialized",
598
600
  "inputs": []
599
601
  },
600
602
  {
601
603
  "type": "error",
602
- "name": "FieldLayout_Empty",
604
+ "name": "EnforcedPause",
603
605
  "inputs": []
604
606
  },
605
607
  {
606
608
  "type": "error",
607
- "name": "FieldLayout_InvalidStaticDataLength",
608
- "inputs": [
609
- {
610
- "name": "staticDataLength",
611
- "type": "uint256",
612
- "internalType": "uint256"
613
- },
614
- {
615
- "name": "computedStaticDataLength",
616
- "type": "uint256",
617
- "internalType": "uint256"
618
- }
619
- ]
620
- },
621
- {
622
- "type": "error",
623
- "name": "FieldLayout_StaticLengthDoesNotFitInAWord",
624
- "inputs": [
625
- {
626
- "name": "index",
627
- "type": "uint256",
628
- "internalType": "uint256"
629
- }
630
- ]
631
- },
632
- {
633
- "type": "error",
634
- "name": "FieldLayout_StaticLengthIsNotZero",
635
- "inputs": [
636
- {
637
- "name": "index",
638
- "type": "uint256",
639
- "internalType": "uint256"
640
- }
641
- ]
642
- },
643
- {
644
- "type": "error",
645
- "name": "FieldLayout_StaticLengthIsZero",
646
- "inputs": [
647
- {
648
- "name": "index",
649
- "type": "uint256",
650
- "internalType": "uint256"
651
- }
652
- ]
653
- },
654
- {
655
- "type": "error",
656
- "name": "FieldLayout_TooManyDynamicFields",
657
- "inputs": [
658
- {
659
- "name": "numFields",
660
- "type": "uint256",
661
- "internalType": "uint256"
662
- },
663
- {
664
- "name": "maxFields",
665
- "type": "uint256",
666
- "internalType": "uint256"
667
- }
668
- ]
669
- },
670
- {
671
- "type": "error",
672
- "name": "FieldLayout_TooManyFields",
673
- "inputs": [
674
- {
675
- "name": "numFields",
676
- "type": "uint256",
677
- "internalType": "uint256"
678
- },
679
- {
680
- "name": "maxFields",
681
- "type": "uint256",
682
- "internalType": "uint256"
683
- }
684
- ]
685
- },
686
- {
687
- "type": "error",
688
- "name": "Schema_InvalidLength",
689
- "inputs": [
690
- {
691
- "name": "length",
692
- "type": "uint256",
693
- "internalType": "uint256"
694
- }
695
- ]
696
- },
697
- {
698
- "type": "error",
699
- "name": "Schema_StaticTypeAfterDynamicType",
609
+ "name": "ExpectedPause",
700
610
  "inputs": []
701
611
  },
702
612
  {
@@ -720,139 +630,6 @@ declare const abi: [
720
630
  }
721
631
  ]
722
632
  },
723
- {
724
- "type": "error",
725
- "name": "Store_InvalidFieldNamesLength",
726
- "inputs": [
727
- {
728
- "name": "expected",
729
- "type": "uint256",
730
- "internalType": "uint256"
731
- },
732
- {
733
- "name": "received",
734
- "type": "uint256",
735
- "internalType": "uint256"
736
- }
737
- ]
738
- },
739
- {
740
- "type": "error",
741
- "name": "Store_InvalidKeyNamesLength",
742
- "inputs": [
743
- {
744
- "name": "expected",
745
- "type": "uint256",
746
- "internalType": "uint256"
747
- },
748
- {
749
- "name": "received",
750
- "type": "uint256",
751
- "internalType": "uint256"
752
- }
753
- ]
754
- },
755
- {
756
- "type": "error",
757
- "name": "Store_InvalidResourceType",
758
- "inputs": [
759
- {
760
- "name": "expected",
761
- "type": "bytes2",
762
- "internalType": "bytes2"
763
- },
764
- {
765
- "name": "resourceId",
766
- "type": "bytes32",
767
- "internalType": "ResourceId"
768
- },
769
- {
770
- "name": "resourceIdString",
771
- "type": "string",
772
- "internalType": "string"
773
- }
774
- ]
775
- },
776
- {
777
- "type": "error",
778
- "name": "Store_InvalidStaticDataLength",
779
- "inputs": [
780
- {
781
- "name": "expected",
782
- "type": "uint256",
783
- "internalType": "uint256"
784
- },
785
- {
786
- "name": "received",
787
- "type": "uint256",
788
- "internalType": "uint256"
789
- }
790
- ]
791
- },
792
- {
793
- "type": "error",
794
- "name": "Store_InvalidValueSchemaDynamicLength",
795
- "inputs": [
796
- {
797
- "name": "expected",
798
- "type": "uint256",
799
- "internalType": "uint256"
800
- },
801
- {
802
- "name": "received",
803
- "type": "uint256",
804
- "internalType": "uint256"
805
- }
806
- ]
807
- },
808
- {
809
- "type": "error",
810
- "name": "Store_InvalidValueSchemaLength",
811
- "inputs": [
812
- {
813
- "name": "expected",
814
- "type": "uint256",
815
- "internalType": "uint256"
816
- },
817
- {
818
- "name": "received",
819
- "type": "uint256",
820
- "internalType": "uint256"
821
- }
822
- ]
823
- },
824
- {
825
- "type": "error",
826
- "name": "Store_InvalidValueSchemaStaticLength",
827
- "inputs": [
828
- {
829
- "name": "expected",
830
- "type": "uint256",
831
- "internalType": "uint256"
832
- },
833
- {
834
- "name": "received",
835
- "type": "uint256",
836
- "internalType": "uint256"
837
- }
838
- ]
839
- },
840
- {
841
- "type": "error",
842
- "name": "Store_TableAlreadyExists",
843
- "inputs": [
844
- {
845
- "name": "tableId",
846
- "type": "bytes32",
847
- "internalType": "ResourceId"
848
- },
849
- {
850
- "name": "tableIdString",
851
- "type": "string",
852
- "internalType": "string"
853
- }
854
- ]
855
- },
856
633
  {
857
634
  "type": "error",
858
635
  "name": "WorldConsumer_CallerHasNoNamespaceAccess",
@@ -876,13 +653,18 @@ declare const abi: [
876
653
  },
877
654
  {
878
655
  "type": "error",
879
- "name": "WorldConsumer_CallerIsNotWorld",
656
+ "name": "WorldConsumer_CallerIsNotNamespaceOwner",
880
657
  "inputs": [
881
658
  {
882
659
  "name": "worldAddress",
883
660
  "type": "address",
884
661
  "internalType": "address"
885
662
  },
663
+ {
664
+ "name": "namespace",
665
+ "type": "bytes14",
666
+ "internalType": "bytes14"
667
+ },
886
668
  {
887
669
  "name": "caller",
888
670
  "type": "address",
@@ -892,7 +674,7 @@ declare const abi: [
892
674
  },
893
675
  {
894
676
  "type": "error",
895
- "name": "WorldConsumer_NamespaceAlreadyExists",
677
+ "name": "WorldConsumer_CallerIsNotWorld",
896
678
  "inputs": [
897
679
  {
898
680
  "name": "worldAddress",
@@ -900,25 +682,9 @@ declare const abi: [
900
682
  "internalType": "address"
901
683
  },
902
684
  {
903
- "name": "namespace",
904
- "type": "bytes14",
905
- "internalType": "bytes14"
906
- }
907
- ]
908
- },
909
- {
910
- "type": "error",
911
- "name": "WorldConsumer_NamespaceDoesNotExists",
912
- "inputs": [
913
- {
914
- "name": "worldAddress",
685
+ "name": "caller",
915
686
  "type": "address",
916
687
  "internalType": "address"
917
- },
918
- {
919
- "name": "namespace",
920
- "type": "bytes14",
921
- "internalType": "bytes14"
922
688
  }
923
689
  ]
924
690
  },