@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.
- package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
- package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
- package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
- package/out/Constants.sol/ERC20TableNames.json +1 -1
- package/out/Constants.sol/ModuleConstants.json +1 -1
- package/out/Constants.sol/OwnableTableNames.abi.json +1 -0
- package/out/Constants.sol/OwnableTableNames.json +1 -0
- package/out/Constants.sol/PausableTableNames.json +1 -1
- package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.abi.json +0 -324
- package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.abi.json.d.ts +0 -324
- package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.json +1 -1
- package/out/ERC20BaseTest.t.sol/ERC20Test.abi.json +0 -324
- package/out/ERC20BaseTest.t.sol/ERC20Test.abi.json.d.ts +0 -324
- package/out/ERC20BaseTest.t.sol/ERC20Test.json +1 -1
- package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json +280 -21
- package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json.d.ts +280 -21
- package/out/ERC20BaseTest.t.sol/MockERC20Base.json +1 -1
- package/out/ERC20BaseTest.t.sol/TestConstants.abi.json +1 -0
- package/out/ERC20BaseTest.t.sol/TestConstants.json +1 -0
- package/out/ERC20Burnable.sol/ERC20Burnable.abi.json +317 -8
- package/out/ERC20Burnable.sol/ERC20Burnable.abi.json.d.ts +317 -8
- package/out/ERC20Burnable.sol/ERC20Burnable.json +1 -1
- package/out/ERC20Burnable.t.sol/ERC20BurnableTest.abi.json +0 -324
- package/out/ERC20Burnable.t.sol/ERC20BurnableTest.abi.json.d.ts +0 -324
- package/out/ERC20Burnable.t.sol/ERC20BurnableTest.json +1 -1
- package/out/ERC20Burnable.t.sol/MockERC20Burnable.abi.json +279 -25
- package/out/ERC20Burnable.t.sol/MockERC20Burnable.abi.json.d.ts +279 -25
- package/out/ERC20Burnable.t.sol/MockERC20Burnable.json +1 -1
- package/out/ERC20Module.sol/ERC20Module.json +1 -1
- package/out/ERC20Module.sol/ERC20RegistryLib.json +1 -0
- package/out/ERC20Module.t.sol/ERC20ModuleTest.json +1 -1
- package/out/ERC20Module.t.sol/TestConstants.json +1 -1
- package/out/ERC20Pausable.sol/ERC20Pausable.abi.json +317 -8
- package/out/ERC20Pausable.sol/ERC20Pausable.abi.json.d.ts +317 -8
- package/out/ERC20Pausable.sol/ERC20Pausable.json +1 -1
- package/out/ERC20Pausable.t.sol/{ERC20PausableTest.abi.json → ERC20PausableBehaviorTest.abi.json} +0 -324
- package/out/ERC20Pausable.t.sol/{ERC20PausableTest.abi.json.d.ts → ERC20PausableBehaviorTest.abi.json.d.ts} +0 -324
- package/out/ERC20Pausable.t.sol/ERC20PausableBehaviorTest.json +1 -0
- package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json +279 -25
- package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json.d.ts +279 -25
- package/out/ERC20Pausable.t.sol/MockERC20Pausable.json +1 -1
- package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.abi.json +284 -50
- package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.abi.json.d.ts +284 -50
- package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.json +1 -1
- package/out/InitModule.sol/InitModule.json +1 -1
- package/out/MUDERC20.sol/MUDERC20.abi.json +317 -8
- package/out/MUDERC20.sol/MUDERC20.abi.json.d.ts +317 -8
- package/out/MUDERC20.sol/MUDERC20.json +1 -1
- package/out/Pausable.sol/Pausable.abi.json +369 -8
- package/out/Pausable.sol/Pausable.abi.json.d.ts +369 -8
- package/out/Pausable.sol/Pausable.json +1 -1
- package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
- package/out/World.sol/World.json +1 -1
- package/out/WorldConsumer.sol/WorldConsumer.abi.json +45 -8
- package/out/WorldConsumer.sol/WorldConsumer.abi.json.d.ts +45 -8
- package/out/WorldConsumer.sol/WorldConsumer.json +1 -1
- package/out/build-info/{5dec426f2d87057b9b49f18296a28057.json → 575e1001b22e51590748b4ce55e7c596.json} +1 -1
- package/package.json +8 -8
- package/src/examples/ERC20PausableBurnable.sol +8 -21
- package/src/experimental/Constants.sol +4 -0
- package/src/experimental/ERC20Module.sol +9 -46
- package/src/experimental/ERC20Pausable.sol +0 -3
- package/src/experimental/MUDERC20.sol +29 -24
- package/src/experimental/Pausable.sol +15 -15
- package/out/ERC20Module.sol/ERC20ModuleLib.json +0 -1
- package/out/ERC20Pausable.t.sol/ERC20PausableTest.json +0 -1
- /package/out/ERC20Module.sol/{ERC20ModuleLib.abi.json → ERC20RegistryLib.abi.json} +0 -0
- /package/out/ERC20Module.sol/{ERC20ModuleLib.abi.json.d.ts → ERC20RegistryLib.abi.json.d.ts} +0 -0
|
@@ -13,29 +13,14 @@ declare const abi: [
|
|
|
13
13
|
"internalType": "bytes14"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
|
-
"name": "
|
|
17
|
-
"type": "
|
|
18
|
-
"internalType": "
|
|
19
|
-
},
|
|
20
|
-
{
|
|
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"
|
|
16
|
+
"name": "name",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"internalType": "string"
|
|
34
19
|
},
|
|
35
20
|
{
|
|
36
|
-
"name": "
|
|
37
|
-
"type": "
|
|
38
|
-
"internalType": "
|
|
21
|
+
"name": "symbol",
|
|
22
|
+
"type": "string",
|
|
23
|
+
"internalType": "string"
|
|
39
24
|
}
|
|
40
25
|
],
|
|
41
26
|
"stateMutability": "nonpayable"
|
|
@@ -190,24 +175,6 @@ declare const abi: [
|
|
|
190
175
|
],
|
|
191
176
|
"stateMutability": "view"
|
|
192
177
|
},
|
|
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
|
-
},
|
|
211
178
|
{
|
|
212
179
|
"type": "function",
|
|
213
180
|
"name": "mint",
|
|
@@ -239,6 +206,32 @@ declare const abi: [
|
|
|
239
206
|
],
|
|
240
207
|
"stateMutability": "view"
|
|
241
208
|
},
|
|
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
|
+
},
|
|
242
235
|
{
|
|
243
236
|
"type": "function",
|
|
244
237
|
"name": "pause",
|
|
@@ -596,17 +589,114 @@ declare const abi: [
|
|
|
596
589
|
},
|
|
597
590
|
{
|
|
598
591
|
"type": "error",
|
|
599
|
-
"name": "
|
|
592
|
+
"name": "EnforcedPause",
|
|
600
593
|
"inputs": []
|
|
601
594
|
},
|
|
602
595
|
{
|
|
603
596
|
"type": "error",
|
|
604
|
-
"name": "
|
|
597
|
+
"name": "ExpectedPause",
|
|
605
598
|
"inputs": []
|
|
606
599
|
},
|
|
607
600
|
{
|
|
608
601
|
"type": "error",
|
|
609
|
-
"name": "
|
|
602
|
+
"name": "FieldLayout_Empty",
|
|
603
|
+
"inputs": []
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"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",
|
|
610
700
|
"inputs": []
|
|
611
701
|
},
|
|
612
702
|
{
|
|
@@ -630,6 +720,139 @@ declare const abi: [
|
|
|
630
720
|
}
|
|
631
721
|
]
|
|
632
722
|
},
|
|
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
|
+
},
|
|
633
856
|
{
|
|
634
857
|
"type": "error",
|
|
635
858
|
"name": "WorldConsumer_CallerHasNoNamespaceAccess",
|
|
@@ -653,18 +876,13 @@ declare const abi: [
|
|
|
653
876
|
},
|
|
654
877
|
{
|
|
655
878
|
"type": "error",
|
|
656
|
-
"name": "
|
|
879
|
+
"name": "WorldConsumer_CallerIsNotWorld",
|
|
657
880
|
"inputs": [
|
|
658
881
|
{
|
|
659
882
|
"name": "worldAddress",
|
|
660
883
|
"type": "address",
|
|
661
884
|
"internalType": "address"
|
|
662
885
|
},
|
|
663
|
-
{
|
|
664
|
-
"name": "namespace",
|
|
665
|
-
"type": "bytes14",
|
|
666
|
-
"internalType": "bytes14"
|
|
667
|
-
},
|
|
668
886
|
{
|
|
669
887
|
"name": "caller",
|
|
670
888
|
"type": "address",
|
|
@@ -674,7 +892,7 @@ declare const abi: [
|
|
|
674
892
|
},
|
|
675
893
|
{
|
|
676
894
|
"type": "error",
|
|
677
|
-
"name": "
|
|
895
|
+
"name": "WorldConsumer_NamespaceAlreadyExists",
|
|
678
896
|
"inputs": [
|
|
679
897
|
{
|
|
680
898
|
"name": "worldAddress",
|
|
@@ -682,9 +900,25 @@ declare const abi: [
|
|
|
682
900
|
"internalType": "address"
|
|
683
901
|
},
|
|
684
902
|
{
|
|
685
|
-
"name": "
|
|
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",
|
|
686
915
|
"type": "address",
|
|
687
916
|
"internalType": "address"
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
"name": "namespace",
|
|
920
|
+
"type": "bytes14",
|
|
921
|
+
"internalType": "bytes14"
|
|
688
922
|
}
|
|
689
923
|
]
|
|
690
924
|
},
|