@latticexyz/world-module-erc20 2.2.21-581228bd857077023efdb496a9a44fa62ff89936 → 2.2.21-8b83c6b7481219898ab0f8e9c1afd88591646396

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
  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
+ },
2
13
  {
3
14
  "type": "function",
4
15
  "name": "__burn",
@@ -187,39 +198,20 @@ declare const abi: [
187
198
  },
188
199
  {
189
200
  "type": "function",
190
- "name": "name",
201
+ "name": "initialize",
191
202
  "inputs": [],
192
- "outputs": [
193
- {
194
- "name": "",
195
- "type": "string",
196
- "internalType": "string"
197
- }
198
- ],
199
- "stateMutability": "view"
200
- },
201
- {
202
- "type": "function",
203
- "name": "namespace",
204
- "inputs": [],
205
- "outputs": [
206
- {
207
- "name": "",
208
- "type": "bytes14",
209
- "internalType": "bytes14"
210
- }
211
- ],
212
- "stateMutability": "view"
203
+ "outputs": [],
204
+ "stateMutability": "nonpayable"
213
205
  },
214
206
  {
215
207
  "type": "function",
216
- "name": "namespaceId",
208
+ "name": "name",
217
209
  "inputs": [],
218
210
  "outputs": [
219
211
  {
220
212
  "name": "",
221
- "type": "bytes32",
222
- "internalType": "ResourceId"
213
+ "type": "string",
214
+ "internalType": "string"
223
215
  }
224
216
  ],
225
217
  "stateMutability": "view"
@@ -526,108 +518,6 @@ declare const abi: [
526
518
  }
527
519
  ]
528
520
  },
529
- {
530
- "type": "error",
531
- "name": "FieldLayout_Empty",
532
- "inputs": []
533
- },
534
- {
535
- "type": "error",
536
- "name": "FieldLayout_InvalidStaticDataLength",
537
- "inputs": [
538
- {
539
- "name": "staticDataLength",
540
- "type": "uint256",
541
- "internalType": "uint256"
542
- },
543
- {
544
- "name": "computedStaticDataLength",
545
- "type": "uint256",
546
- "internalType": "uint256"
547
- }
548
- ]
549
- },
550
- {
551
- "type": "error",
552
- "name": "FieldLayout_StaticLengthDoesNotFitInAWord",
553
- "inputs": [
554
- {
555
- "name": "index",
556
- "type": "uint256",
557
- "internalType": "uint256"
558
- }
559
- ]
560
- },
561
- {
562
- "type": "error",
563
- "name": "FieldLayout_StaticLengthIsNotZero",
564
- "inputs": [
565
- {
566
- "name": "index",
567
- "type": "uint256",
568
- "internalType": "uint256"
569
- }
570
- ]
571
- },
572
- {
573
- "type": "error",
574
- "name": "FieldLayout_StaticLengthIsZero",
575
- "inputs": [
576
- {
577
- "name": "index",
578
- "type": "uint256",
579
- "internalType": "uint256"
580
- }
581
- ]
582
- },
583
- {
584
- "type": "error",
585
- "name": "FieldLayout_TooManyDynamicFields",
586
- "inputs": [
587
- {
588
- "name": "numFields",
589
- "type": "uint256",
590
- "internalType": "uint256"
591
- },
592
- {
593
- "name": "maxFields",
594
- "type": "uint256",
595
- "internalType": "uint256"
596
- }
597
- ]
598
- },
599
- {
600
- "type": "error",
601
- "name": "FieldLayout_TooManyFields",
602
- "inputs": [
603
- {
604
- "name": "numFields",
605
- "type": "uint256",
606
- "internalType": "uint256"
607
- },
608
- {
609
- "name": "maxFields",
610
- "type": "uint256",
611
- "internalType": "uint256"
612
- }
613
- ]
614
- },
615
- {
616
- "type": "error",
617
- "name": "Schema_InvalidLength",
618
- "inputs": [
619
- {
620
- "name": "length",
621
- "type": "uint256",
622
- "internalType": "uint256"
623
- }
624
- ]
625
- },
626
- {
627
- "type": "error",
628
- "name": "Schema_StaticTypeAfterDynamicType",
629
- "inputs": []
630
- },
631
521
  {
632
522
  "type": "error",
633
523
  "name": "Slice_OutOfBounds",
@@ -649,139 +539,6 @@ declare const abi: [
649
539
  }
650
540
  ]
651
541
  },
652
- {
653
- "type": "error",
654
- "name": "Store_InvalidFieldNamesLength",
655
- "inputs": [
656
- {
657
- "name": "expected",
658
- "type": "uint256",
659
- "internalType": "uint256"
660
- },
661
- {
662
- "name": "received",
663
- "type": "uint256",
664
- "internalType": "uint256"
665
- }
666
- ]
667
- },
668
- {
669
- "type": "error",
670
- "name": "Store_InvalidKeyNamesLength",
671
- "inputs": [
672
- {
673
- "name": "expected",
674
- "type": "uint256",
675
- "internalType": "uint256"
676
- },
677
- {
678
- "name": "received",
679
- "type": "uint256",
680
- "internalType": "uint256"
681
- }
682
- ]
683
- },
684
- {
685
- "type": "error",
686
- "name": "Store_InvalidResourceType",
687
- "inputs": [
688
- {
689
- "name": "expected",
690
- "type": "bytes2",
691
- "internalType": "bytes2"
692
- },
693
- {
694
- "name": "resourceId",
695
- "type": "bytes32",
696
- "internalType": "ResourceId"
697
- },
698
- {
699
- "name": "resourceIdString",
700
- "type": "string",
701
- "internalType": "string"
702
- }
703
- ]
704
- },
705
- {
706
- "type": "error",
707
- "name": "Store_InvalidStaticDataLength",
708
- "inputs": [
709
- {
710
- "name": "expected",
711
- "type": "uint256",
712
- "internalType": "uint256"
713
- },
714
- {
715
- "name": "received",
716
- "type": "uint256",
717
- "internalType": "uint256"
718
- }
719
- ]
720
- },
721
- {
722
- "type": "error",
723
- "name": "Store_InvalidValueSchemaDynamicLength",
724
- "inputs": [
725
- {
726
- "name": "expected",
727
- "type": "uint256",
728
- "internalType": "uint256"
729
- },
730
- {
731
- "name": "received",
732
- "type": "uint256",
733
- "internalType": "uint256"
734
- }
735
- ]
736
- },
737
- {
738
- "type": "error",
739
- "name": "Store_InvalidValueSchemaLength",
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_InvalidValueSchemaStaticLength",
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_TableAlreadyExists",
772
- "inputs": [
773
- {
774
- "name": "tableId",
775
- "type": "bytes32",
776
- "internalType": "ResourceId"
777
- },
778
- {
779
- "name": "tableIdString",
780
- "type": "string",
781
- "internalType": "string"
782
- }
783
- ]
784
- },
785
542
  {
786
543
  "type": "error",
787
544
  "name": "WorldConsumer_CallerHasNoNamespaceAccess",
@@ -805,13 +562,18 @@ declare const abi: [
805
562
  },
806
563
  {
807
564
  "type": "error",
808
- "name": "WorldConsumer_CallerIsNotWorld",
565
+ "name": "WorldConsumer_CallerIsNotNamespaceOwner",
809
566
  "inputs": [
810
567
  {
811
568
  "name": "worldAddress",
812
569
  "type": "address",
813
570
  "internalType": "address"
814
571
  },
572
+ {
573
+ "name": "namespace",
574
+ "type": "bytes14",
575
+ "internalType": "bytes14"
576
+ },
815
577
  {
816
578
  "name": "caller",
817
579
  "type": "address",
@@ -821,7 +583,7 @@ declare const abi: [
821
583
  },
822
584
  {
823
585
  "type": "error",
824
- "name": "WorldConsumer_NamespaceAlreadyExists",
586
+ "name": "WorldConsumer_CallerIsNotWorld",
825
587
  "inputs": [
826
588
  {
827
589
  "name": "worldAddress",
@@ -829,25 +591,9 @@ declare const abi: [
829
591
  "internalType": "address"
830
592
  },
831
593
  {
832
- "name": "namespace",
833
- "type": "bytes14",
834
- "internalType": "bytes14"
835
- }
836
- ]
837
- },
838
- {
839
- "type": "error",
840
- "name": "WorldConsumer_NamespaceDoesNotExists",
841
- "inputs": [
842
- {
843
- "name": "worldAddress",
594
+ "name": "caller",
844
595
  "type": "address",
845
596
  "internalType": "address"
846
- },
847
- {
848
- "name": "namespace",
849
- "type": "bytes14",
850
- "internalType": "bytes14"
851
597
  }
852
598
  ]
853
599
  },