@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",
@@ -198,20 +187,39 @@ declare const abi: [
198
187
  },
199
188
  {
200
189
  "type": "function",
201
- "name": "initialize",
190
+ "name": "name",
202
191
  "inputs": [],
203
- "outputs": [],
204
- "stateMutability": "nonpayable"
192
+ "outputs": [
193
+ {
194
+ "name": "",
195
+ "type": "string",
196
+ "internalType": "string"
197
+ }
198
+ ],
199
+ "stateMutability": "view"
205
200
  },
206
201
  {
207
202
  "type": "function",
208
- "name": "name",
203
+ "name": "namespace",
209
204
  "inputs": [],
210
205
  "outputs": [
211
206
  {
212
207
  "name": "",
213
- "type": "string",
214
- "internalType": "string"
208
+ "type": "bytes14",
209
+ "internalType": "bytes14"
210
+ }
211
+ ],
212
+ "stateMutability": "view"
213
+ },
214
+ {
215
+ "type": "function",
216
+ "name": "namespaceId",
217
+ "inputs": [],
218
+ "outputs": [
219
+ {
220
+ "name": "",
221
+ "type": "bytes32",
222
+ "internalType": "ResourceId"
215
223
  }
216
224
  ],
217
225
  "stateMutability": "view"
@@ -518,6 +526,108 @@ declare const abi: [
518
526
  }
519
527
  ]
520
528
  },
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
+ },
521
631
  {
522
632
  "type": "error",
523
633
  "name": "Slice_OutOfBounds",
@@ -539,6 +649,139 @@ declare const abi: [
539
649
  }
540
650
  ]
541
651
  },
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
+ },
542
785
  {
543
786
  "type": "error",
544
787
  "name": "WorldConsumer_CallerHasNoNamespaceAccess",
@@ -562,18 +805,13 @@ declare const abi: [
562
805
  },
563
806
  {
564
807
  "type": "error",
565
- "name": "WorldConsumer_CallerIsNotNamespaceOwner",
808
+ "name": "WorldConsumer_CallerIsNotWorld",
566
809
  "inputs": [
567
810
  {
568
811
  "name": "worldAddress",
569
812
  "type": "address",
570
813
  "internalType": "address"
571
814
  },
572
- {
573
- "name": "namespace",
574
- "type": "bytes14",
575
- "internalType": "bytes14"
576
- },
577
815
  {
578
816
  "name": "caller",
579
817
  "type": "address",
@@ -583,7 +821,7 @@ declare const abi: [
583
821
  },
584
822
  {
585
823
  "type": "error",
586
- "name": "WorldConsumer_CallerIsNotWorld",
824
+ "name": "WorldConsumer_NamespaceAlreadyExists",
587
825
  "inputs": [
588
826
  {
589
827
  "name": "worldAddress",
@@ -591,9 +829,25 @@ declare const abi: [
591
829
  "internalType": "address"
592
830
  },
593
831
  {
594
- "name": "caller",
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",
595
844
  "type": "address",
596
845
  "internalType": "address"
846
+ },
847
+ {
848
+ "name": "namespace",
849
+ "type": "bytes14",
850
+ "internalType": "bytes14"
597
851
  }
598
852
  ]
599
853
  },