@latticexyz/world-module-erc20 2.2.21-041031d271b62a7f41f7c6dc0098c1c0ae222bd5 → 2.2.21-581228bd857077023efdb496a9a44fa62ff89936

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/OwnableTableNames.abi.json +1 -0
  7. package/out/Constants.sol/OwnableTableNames.json +1 -0
  8. package/out/Constants.sol/PausableTableNames.json +1 -1
  9. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.abi.json +0 -324
  10. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.abi.json.d.ts +0 -324
  11. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.json +1 -1
  12. package/out/ERC20BaseTest.t.sol/ERC20Test.abi.json +0 -324
  13. package/out/ERC20BaseTest.t.sol/ERC20Test.abi.json.d.ts +0 -324
  14. package/out/ERC20BaseTest.t.sol/ERC20Test.json +1 -1
  15. package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json +280 -21
  16. package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json.d.ts +280 -21
  17. package/out/ERC20BaseTest.t.sol/MockERC20Base.json +1 -1
  18. package/out/ERC20BaseTest.t.sol/TestConstants.abi.json +1 -0
  19. package/out/ERC20BaseTest.t.sol/TestConstants.json +1 -0
  20. package/out/ERC20Burnable.sol/ERC20Burnable.abi.json +317 -8
  21. package/out/ERC20Burnable.sol/ERC20Burnable.abi.json.d.ts +317 -8
  22. package/out/ERC20Burnable.sol/ERC20Burnable.json +1 -1
  23. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.abi.json +0 -324
  24. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.abi.json.d.ts +0 -324
  25. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.json +1 -1
  26. package/out/ERC20Burnable.t.sol/MockERC20Burnable.abi.json +279 -25
  27. package/out/ERC20Burnable.t.sol/MockERC20Burnable.abi.json.d.ts +279 -25
  28. package/out/ERC20Burnable.t.sol/MockERC20Burnable.json +1 -1
  29. package/out/ERC20Module.sol/ERC20Module.json +1 -1
  30. package/out/ERC20Module.sol/ERC20RegistryLib.json +1 -0
  31. package/out/ERC20Module.t.sol/ERC20ModuleTest.json +1 -1
  32. package/out/ERC20Module.t.sol/TestConstants.json +1 -1
  33. package/out/ERC20Pausable.sol/ERC20Pausable.abi.json +317 -8
  34. package/out/ERC20Pausable.sol/ERC20Pausable.abi.json.d.ts +317 -8
  35. package/out/ERC20Pausable.sol/ERC20Pausable.json +1 -1
  36. package/out/ERC20Pausable.t.sol/{ERC20PausableTest.abi.json → ERC20PausableBehaviorTest.abi.json} +0 -324
  37. package/out/ERC20Pausable.t.sol/{ERC20PausableTest.abi.json.d.ts → ERC20PausableBehaviorTest.abi.json.d.ts} +0 -324
  38. package/out/ERC20Pausable.t.sol/ERC20PausableBehaviorTest.json +1 -0
  39. package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json +279 -25
  40. package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json.d.ts +279 -25
  41. package/out/ERC20Pausable.t.sol/MockERC20Pausable.json +1 -1
  42. package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.abi.json +284 -50
  43. package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.abi.json.d.ts +284 -50
  44. package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.json +1 -1
  45. package/out/InitModule.sol/InitModule.json +1 -1
  46. package/out/MUDERC20.sol/MUDERC20.abi.json +317 -8
  47. package/out/MUDERC20.sol/MUDERC20.abi.json.d.ts +317 -8
  48. package/out/MUDERC20.sol/MUDERC20.json +1 -1
  49. package/out/Pausable.sol/Pausable.abi.json +369 -8
  50. package/out/Pausable.sol/Pausable.abi.json.d.ts +369 -8
  51. package/out/Pausable.sol/Pausable.json +1 -1
  52. package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
  53. package/out/World.sol/World.json +1 -1
  54. package/out/WorldConsumer.sol/WorldConsumer.abi.json +45 -8
  55. package/out/WorldConsumer.sol/WorldConsumer.abi.json.d.ts +45 -8
  56. package/out/WorldConsumer.sol/WorldConsumer.json +1 -1
  57. package/out/build-info/{5dec426f2d87057b9b49f18296a28057.json → 575e1001b22e51590748b4ce55e7c596.json} +1 -1
  58. package/package.json +8 -8
  59. package/src/examples/ERC20PausableBurnable.sol +8 -21
  60. package/src/experimental/Constants.sol +4 -0
  61. package/src/experimental/ERC20Module.sol +9 -46
  62. package/src/experimental/ERC20Pausable.sol +0 -3
  63. package/src/experimental/MUDERC20.sol +29 -24
  64. package/src/experimental/Pausable.sol +15 -15
  65. package/out/ERC20Module.sol/ERC20ModuleLib.json +0 -1
  66. package/out/ERC20Pausable.t.sol/ERC20PausableTest.json +0 -1
  67. /package/out/ERC20Module.sol/{ERC20ModuleLib.abi.json → ERC20RegistryLib.abi.json} +0 -0
  68. /package/out/ERC20Module.sol/{ERC20ModuleLib.abi.json.d.ts → ERC20RegistryLib.abi.json.d.ts} +0 -0
@@ -1,15 +1,4 @@
1
1
  declare const abi: [
2
- {
3
- "type": "constructor",
4
- "inputs": [
5
- {
6
- "name": "world",
7
- "type": "address",
8
- "internalType": "contract IBaseWorld"
9
- }
10
- ],
11
- "stateMutability": "nonpayable"
12
- },
13
2
  {
14
3
  "type": "function",
15
4
  "name": "__burn",
@@ -167,20 +156,39 @@ declare const abi: [
167
156
  },
168
157
  {
169
158
  "type": "function",
170
- "name": "initialize",
159
+ "name": "name",
171
160
  "inputs": [],
172
- "outputs": [],
173
- "stateMutability": "nonpayable"
161
+ "outputs": [
162
+ {
163
+ "name": "",
164
+ "type": "string",
165
+ "internalType": "string"
166
+ }
167
+ ],
168
+ "stateMutability": "view"
174
169
  },
175
170
  {
176
171
  "type": "function",
177
- "name": "name",
172
+ "name": "namespace",
178
173
  "inputs": [],
179
174
  "outputs": [
180
175
  {
181
176
  "name": "",
182
- "type": "string",
183
- "internalType": "string"
177
+ "type": "bytes14",
178
+ "internalType": "bytes14"
179
+ }
180
+ ],
181
+ "stateMutability": "view"
182
+ },
183
+ {
184
+ "type": "function",
185
+ "name": "namespaceId",
186
+ "inputs": [],
187
+ "outputs": [
188
+ {
189
+ "name": "",
190
+ "type": "bytes32",
191
+ "internalType": "ResourceId"
184
192
  }
185
193
  ],
186
194
  "stateMutability": "view"
@@ -550,6 +558,108 @@ declare const abi: [
550
558
  "name": "ExpectedPause",
551
559
  "inputs": []
552
560
  },
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
+ },
553
663
  {
554
664
  "type": "error",
555
665
  "name": "Slice_OutOfBounds",
@@ -571,6 +681,139 @@ declare const abi: [
571
681
  }
572
682
  ]
573
683
  },
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
+ },
574
817
  {
575
818
  "type": "error",
576
819
  "name": "WorldConsumer_CallerHasNoNamespaceAccess",
@@ -594,18 +837,13 @@ declare const abi: [
594
837
  },
595
838
  {
596
839
  "type": "error",
597
- "name": "WorldConsumer_CallerIsNotNamespaceOwner",
840
+ "name": "WorldConsumer_CallerIsNotWorld",
598
841
  "inputs": [
599
842
  {
600
843
  "name": "worldAddress",
601
844
  "type": "address",
602
845
  "internalType": "address"
603
846
  },
604
- {
605
- "name": "namespace",
606
- "type": "bytes14",
607
- "internalType": "bytes14"
608
- },
609
847
  {
610
848
  "name": "caller",
611
849
  "type": "address",
@@ -615,7 +853,7 @@ declare const abi: [
615
853
  },
616
854
  {
617
855
  "type": "error",
618
- "name": "WorldConsumer_CallerIsNotWorld",
856
+ "name": "WorldConsumer_NamespaceAlreadyExists",
619
857
  "inputs": [
620
858
  {
621
859
  "name": "worldAddress",
@@ -623,9 +861,25 @@ declare const abi: [
623
861
  "internalType": "address"
624
862
  },
625
863
  {
626
- "name": "caller",
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",
627
876
  "type": "address",
628
877
  "internalType": "address"
878
+ },
879
+ {
880
+ "name": "namespace",
881
+ "type": "bytes14",
882
+ "internalType": "bytes14"
629
883
  }
630
884
  ]
631
885
  },