@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
|
@@ -1,15 +1,4 @@
|
|
|
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
|
-
},
|
|
13
2
|
{
|
|
14
3
|
"type": "function",
|
|
15
4
|
"name": "__burn",
|
|
@@ -167,20 +156,39 @@
|
|
|
167
156
|
},
|
|
168
157
|
{
|
|
169
158
|
"type": "function",
|
|
170
|
-
"name": "
|
|
159
|
+
"name": "name",
|
|
171
160
|
"inputs": [],
|
|
172
|
-
"outputs": [
|
|
173
|
-
|
|
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": "
|
|
172
|
+
"name": "namespace",
|
|
178
173
|
"inputs": [],
|
|
179
174
|
"outputs": [
|
|
180
175
|
{
|
|
181
176
|
"name": "",
|
|
182
|
-
"type": "
|
|
183
|
-
"internalType": "
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
594
837
|
},
|
|
595
838
|
{
|
|
596
839
|
"type": "error",
|
|
597
|
-
"name": "
|
|
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 @@
|
|
|
615
853
|
},
|
|
616
854
|
{
|
|
617
855
|
"type": "error",
|
|
618
|
-
"name": "
|
|
856
|
+
"name": "WorldConsumer_NamespaceAlreadyExists",
|
|
619
857
|
"inputs": [
|
|
620
858
|
{
|
|
621
859
|
"name": "worldAddress",
|
|
@@ -623,9 +861,25 @@
|
|
|
623
861
|
"internalType": "address"
|
|
624
862
|
},
|
|
625
863
|
{
|
|
626
|
-
"name": "
|
|
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
|
},
|