@latticexyz/world-module-erc20 2.2.20 → 2.2.21-041031d271b62a7f41f7c6dc0098c1c0ae222bd5

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 (68) hide show
  1. package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
  2. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
  3. package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
  4. package/out/Constants.sol/ERC20TableNames.json +1 -1
  5. package/out/Constants.sol/ModuleConstants.json +1 -1
  6. package/out/Constants.sol/PausableTableNames.json +1 -1
  7. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.abi.json +324 -0
  8. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.abi.json.d.ts +324 -0
  9. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.json +1 -1
  10. package/out/ERC20BaseTest.t.sol/ERC20Test.abi.json +324 -0
  11. package/out/ERC20BaseTest.t.sol/ERC20Test.abi.json.d.ts +324 -0
  12. package/out/ERC20BaseTest.t.sol/ERC20Test.json +1 -1
  13. package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json +21 -280
  14. package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json.d.ts +21 -280
  15. package/out/ERC20BaseTest.t.sol/MockERC20Base.json +1 -1
  16. package/out/ERC20Burnable.sol/ERC20Burnable.abi.json +8 -317
  17. package/out/ERC20Burnable.sol/ERC20Burnable.abi.json.d.ts +8 -317
  18. package/out/ERC20Burnable.sol/ERC20Burnable.json +1 -1
  19. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.abi.json +324 -0
  20. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.abi.json.d.ts +324 -0
  21. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.json +1 -1
  22. package/out/ERC20Burnable.t.sol/MockERC20Burnable.abi.json +25 -279
  23. package/out/ERC20Burnable.t.sol/MockERC20Burnable.abi.json.d.ts +25 -279
  24. package/out/ERC20Burnable.t.sol/MockERC20Burnable.json +1 -1
  25. package/out/ERC20Module.sol/ERC20Module.json +1 -1
  26. package/out/ERC20Module.sol/ERC20ModuleLib.json +1 -0
  27. package/out/ERC20Module.t.sol/ERC20ModuleTest.json +1 -1
  28. package/out/ERC20Module.t.sol/TestConstants.json +1 -1
  29. package/out/ERC20Pausable.sol/ERC20Pausable.abi.json +8 -317
  30. package/out/ERC20Pausable.sol/ERC20Pausable.abi.json.d.ts +8 -317
  31. package/out/ERC20Pausable.sol/ERC20Pausable.json +1 -1
  32. package/out/ERC20Pausable.t.sol/{ERC20PausableBehaviorTest.abi.json → ERC20PausableTest.abi.json} +324 -0
  33. package/out/ERC20Pausable.t.sol/{ERC20PausableBehaviorTest.abi.json.d.ts → ERC20PausableTest.abi.json.d.ts} +324 -0
  34. package/out/ERC20Pausable.t.sol/ERC20PausableTest.json +1 -0
  35. package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json +25 -279
  36. package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json.d.ts +25 -279
  37. package/out/ERC20Pausable.t.sol/MockERC20Pausable.json +1 -1
  38. package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.abi.json +50 -284
  39. package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.abi.json.d.ts +50 -284
  40. package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.json +1 -1
  41. package/out/InitModule.sol/InitModule.json +1 -1
  42. package/out/MUDERC20.sol/MUDERC20.abi.json +8 -317
  43. package/out/MUDERC20.sol/MUDERC20.abi.json.d.ts +8 -317
  44. package/out/MUDERC20.sol/MUDERC20.json +1 -1
  45. package/out/Pausable.sol/Pausable.abi.json +8 -369
  46. package/out/Pausable.sol/Pausable.abi.json.d.ts +8 -369
  47. package/out/Pausable.sol/Pausable.json +1 -1
  48. package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
  49. package/out/World.sol/World.json +1 -1
  50. package/out/WorldConsumer.sol/WorldConsumer.abi.json +8 -45
  51. package/out/WorldConsumer.sol/WorldConsumer.abi.json.d.ts +8 -45
  52. package/out/WorldConsumer.sol/WorldConsumer.json +1 -1
  53. package/out/build-info/{575e1001b22e51590748b4ce55e7c596.json → 5dec426f2d87057b9b49f18296a28057.json} +1 -1
  54. package/package.json +8 -8
  55. package/src/examples/ERC20PausableBurnable.sol +21 -8
  56. package/src/experimental/Constants.sol +0 -4
  57. package/src/experimental/ERC20Module.sol +46 -9
  58. package/src/experimental/ERC20Pausable.sol +3 -0
  59. package/src/experimental/MUDERC20.sol +24 -29
  60. package/src/experimental/Pausable.sol +15 -15
  61. package/out/Constants.sol/OwnableTableNames.abi.json +0 -1
  62. package/out/Constants.sol/OwnableTableNames.json +0 -1
  63. package/out/ERC20BaseTest.t.sol/TestConstants.abi.json +0 -1
  64. package/out/ERC20BaseTest.t.sol/TestConstants.json +0 -1
  65. package/out/ERC20Module.sol/ERC20RegistryLib.json +0 -1
  66. package/out/ERC20Pausable.t.sol/ERC20PausableBehaviorTest.json +0 -1
  67. /package/out/ERC20Module.sol/{ERC20RegistryLib.abi.json → ERC20ModuleLib.abi.json} +0 -0
  68. /package/out/ERC20Module.sol/{ERC20RegistryLib.abi.json.d.ts → ERC20ModuleLib.abi.json.d.ts} +0 -0
@@ -1,4 +1,15 @@
1
1
  [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "world",
7
+ "type": "address",
8
+ "internalType": "contract IBaseWorld"
9
+ }
10
+ ],
11
+ "stateMutability": "nonpayable"
12
+ },
2
13
  {
3
14
  "type": "function",
4
15
  "name": "__burn",
@@ -156,39 +167,20 @@
156
167
  },
157
168
  {
158
169
  "type": "function",
159
- "name": "name",
160
- "inputs": [],
161
- "outputs": [
162
- {
163
- "name": "",
164
- "type": "string",
165
- "internalType": "string"
166
- }
167
- ],
168
- "stateMutability": "view"
169
- },
170
- {
171
- "type": "function",
172
- "name": "namespace",
170
+ "name": "initialize",
173
171
  "inputs": [],
174
- "outputs": [
175
- {
176
- "name": "",
177
- "type": "bytes14",
178
- "internalType": "bytes14"
179
- }
180
- ],
181
- "stateMutability": "view"
172
+ "outputs": [],
173
+ "stateMutability": "nonpayable"
182
174
  },
183
175
  {
184
176
  "type": "function",
185
- "name": "namespaceId",
177
+ "name": "name",
186
178
  "inputs": [],
187
179
  "outputs": [
188
180
  {
189
181
  "name": "",
190
- "type": "bytes32",
191
- "internalType": "ResourceId"
182
+ "type": "string",
183
+ "internalType": "string"
192
184
  }
193
185
  ],
194
186
  "stateMutability": "view"
@@ -558,108 +550,6 @@
558
550
  "name": "ExpectedPause",
559
551
  "inputs": []
560
552
  },
561
- {
562
- "type": "error",
563
- "name": "FieldLayout_Empty",
564
- "inputs": []
565
- },
566
- {
567
- "type": "error",
568
- "name": "FieldLayout_InvalidStaticDataLength",
569
- "inputs": [
570
- {
571
- "name": "staticDataLength",
572
- "type": "uint256",
573
- "internalType": "uint256"
574
- },
575
- {
576
- "name": "computedStaticDataLength",
577
- "type": "uint256",
578
- "internalType": "uint256"
579
- }
580
- ]
581
- },
582
- {
583
- "type": "error",
584
- "name": "FieldLayout_StaticLengthDoesNotFitInAWord",
585
- "inputs": [
586
- {
587
- "name": "index",
588
- "type": "uint256",
589
- "internalType": "uint256"
590
- }
591
- ]
592
- },
593
- {
594
- "type": "error",
595
- "name": "FieldLayout_StaticLengthIsNotZero",
596
- "inputs": [
597
- {
598
- "name": "index",
599
- "type": "uint256",
600
- "internalType": "uint256"
601
- }
602
- ]
603
- },
604
- {
605
- "type": "error",
606
- "name": "FieldLayout_StaticLengthIsZero",
607
- "inputs": [
608
- {
609
- "name": "index",
610
- "type": "uint256",
611
- "internalType": "uint256"
612
- }
613
- ]
614
- },
615
- {
616
- "type": "error",
617
- "name": "FieldLayout_TooManyDynamicFields",
618
- "inputs": [
619
- {
620
- "name": "numFields",
621
- "type": "uint256",
622
- "internalType": "uint256"
623
- },
624
- {
625
- "name": "maxFields",
626
- "type": "uint256",
627
- "internalType": "uint256"
628
- }
629
- ]
630
- },
631
- {
632
- "type": "error",
633
- "name": "FieldLayout_TooManyFields",
634
- "inputs": [
635
- {
636
- "name": "numFields",
637
- "type": "uint256",
638
- "internalType": "uint256"
639
- },
640
- {
641
- "name": "maxFields",
642
- "type": "uint256",
643
- "internalType": "uint256"
644
- }
645
- ]
646
- },
647
- {
648
- "type": "error",
649
- "name": "Schema_InvalidLength",
650
- "inputs": [
651
- {
652
- "name": "length",
653
- "type": "uint256",
654
- "internalType": "uint256"
655
- }
656
- ]
657
- },
658
- {
659
- "type": "error",
660
- "name": "Schema_StaticTypeAfterDynamicType",
661
- "inputs": []
662
- },
663
553
  {
664
554
  "type": "error",
665
555
  "name": "Slice_OutOfBounds",
@@ -681,139 +571,6 @@
681
571
  }
682
572
  ]
683
573
  },
684
- {
685
- "type": "error",
686
- "name": "Store_InvalidFieldNamesLength",
687
- "inputs": [
688
- {
689
- "name": "expected",
690
- "type": "uint256",
691
- "internalType": "uint256"
692
- },
693
- {
694
- "name": "received",
695
- "type": "uint256",
696
- "internalType": "uint256"
697
- }
698
- ]
699
- },
700
- {
701
- "type": "error",
702
- "name": "Store_InvalidKeyNamesLength",
703
- "inputs": [
704
- {
705
- "name": "expected",
706
- "type": "uint256",
707
- "internalType": "uint256"
708
- },
709
- {
710
- "name": "received",
711
- "type": "uint256",
712
- "internalType": "uint256"
713
- }
714
- ]
715
- },
716
- {
717
- "type": "error",
718
- "name": "Store_InvalidResourceType",
719
- "inputs": [
720
- {
721
- "name": "expected",
722
- "type": "bytes2",
723
- "internalType": "bytes2"
724
- },
725
- {
726
- "name": "resourceId",
727
- "type": "bytes32",
728
- "internalType": "ResourceId"
729
- },
730
- {
731
- "name": "resourceIdString",
732
- "type": "string",
733
- "internalType": "string"
734
- }
735
- ]
736
- },
737
- {
738
- "type": "error",
739
- "name": "Store_InvalidStaticDataLength",
740
- "inputs": [
741
- {
742
- "name": "expected",
743
- "type": "uint256",
744
- "internalType": "uint256"
745
- },
746
- {
747
- "name": "received",
748
- "type": "uint256",
749
- "internalType": "uint256"
750
- }
751
- ]
752
- },
753
- {
754
- "type": "error",
755
- "name": "Store_InvalidValueSchemaDynamicLength",
756
- "inputs": [
757
- {
758
- "name": "expected",
759
- "type": "uint256",
760
- "internalType": "uint256"
761
- },
762
- {
763
- "name": "received",
764
- "type": "uint256",
765
- "internalType": "uint256"
766
- }
767
- ]
768
- },
769
- {
770
- "type": "error",
771
- "name": "Store_InvalidValueSchemaLength",
772
- "inputs": [
773
- {
774
- "name": "expected",
775
- "type": "uint256",
776
- "internalType": "uint256"
777
- },
778
- {
779
- "name": "received",
780
- "type": "uint256",
781
- "internalType": "uint256"
782
- }
783
- ]
784
- },
785
- {
786
- "type": "error",
787
- "name": "Store_InvalidValueSchemaStaticLength",
788
- "inputs": [
789
- {
790
- "name": "expected",
791
- "type": "uint256",
792
- "internalType": "uint256"
793
- },
794
- {
795
- "name": "received",
796
- "type": "uint256",
797
- "internalType": "uint256"
798
- }
799
- ]
800
- },
801
- {
802
- "type": "error",
803
- "name": "Store_TableAlreadyExists",
804
- "inputs": [
805
- {
806
- "name": "tableId",
807
- "type": "bytes32",
808
- "internalType": "ResourceId"
809
- },
810
- {
811
- "name": "tableIdString",
812
- "type": "string",
813
- "internalType": "string"
814
- }
815
- ]
816
- },
817
574
  {
818
575
  "type": "error",
819
576
  "name": "WorldConsumer_CallerHasNoNamespaceAccess",
@@ -837,13 +594,18 @@
837
594
  },
838
595
  {
839
596
  "type": "error",
840
- "name": "WorldConsumer_CallerIsNotWorld",
597
+ "name": "WorldConsumer_CallerIsNotNamespaceOwner",
841
598
  "inputs": [
842
599
  {
843
600
  "name": "worldAddress",
844
601
  "type": "address",
845
602
  "internalType": "address"
846
603
  },
604
+ {
605
+ "name": "namespace",
606
+ "type": "bytes14",
607
+ "internalType": "bytes14"
608
+ },
847
609
  {
848
610
  "name": "caller",
849
611
  "type": "address",
@@ -853,7 +615,7 @@
853
615
  },
854
616
  {
855
617
  "type": "error",
856
- "name": "WorldConsumer_NamespaceAlreadyExists",
618
+ "name": "WorldConsumer_CallerIsNotWorld",
857
619
  "inputs": [
858
620
  {
859
621
  "name": "worldAddress",
@@ -861,25 +623,9 @@
861
623
  "internalType": "address"
862
624
  },
863
625
  {
864
- "name": "namespace",
865
- "type": "bytes14",
866
- "internalType": "bytes14"
867
- }
868
- ]
869
- },
870
- {
871
- "type": "error",
872
- "name": "WorldConsumer_NamespaceDoesNotExists",
873
- "inputs": [
874
- {
875
- "name": "worldAddress",
626
+ "name": "caller",
876
627
  "type": "address",
877
628
  "internalType": "address"
878
- },
879
- {
880
- "name": "namespace",
881
- "type": "bytes14",
882
- "internalType": "bytes14"
883
629
  }
884
630
  ]
885
631
  },