@latticexyz/world-module-erc20 2.2.20 → 2.2.21-3737e6f13a3da68311429bbbd6e8e8057d18f8fc

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 (80) hide show
  1. package/dist/{ccip-VJWDNI4X.js → ccip-VIBPEQNI.js} +3 -3
  2. package/dist/{chunk-2VXHCW2O.js → chunk-M5FHJZR5.js} +37 -30
  3. package/dist/chunk-M5FHJZR5.js.map +1 -0
  4. package/dist/{chunk-LIWKL347.js → chunk-XE443CMG.js} +305 -249
  5. package/dist/chunk-XE443CMG.js.map +1 -0
  6. package/dist/internal.js +2 -2
  7. package/dist/{secp256k1-XVT662DN.js → secp256k1-QT34R5PW.js} +507 -428
  8. package/dist/secp256k1-QT34R5PW.js.map +1 -0
  9. package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
  10. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
  11. package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
  12. package/out/Constants.sol/ERC20TableNames.json +1 -1
  13. package/out/Constants.sol/ModuleConstants.json +1 -1
  14. package/out/Constants.sol/PausableTableNames.json +1 -1
  15. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.abi.json +324 -0
  16. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.abi.json.d.ts +324 -0
  17. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.json +1 -1
  18. package/out/ERC20BaseTest.t.sol/ERC20Test.abi.json +324 -0
  19. package/out/ERC20BaseTest.t.sol/ERC20Test.abi.json.d.ts +324 -0
  20. package/out/ERC20BaseTest.t.sol/ERC20Test.json +1 -1
  21. package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json +21 -280
  22. package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json.d.ts +21 -280
  23. package/out/ERC20BaseTest.t.sol/MockERC20Base.json +1 -1
  24. package/out/ERC20Burnable.sol/ERC20Burnable.abi.json +8 -317
  25. package/out/ERC20Burnable.sol/ERC20Burnable.abi.json.d.ts +8 -317
  26. package/out/ERC20Burnable.sol/ERC20Burnable.json +1 -1
  27. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.abi.json +324 -0
  28. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.abi.json.d.ts +324 -0
  29. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.json +1 -1
  30. package/out/ERC20Burnable.t.sol/MockERC20Burnable.abi.json +25 -279
  31. package/out/ERC20Burnable.t.sol/MockERC20Burnable.abi.json.d.ts +25 -279
  32. package/out/ERC20Burnable.t.sol/MockERC20Burnable.json +1 -1
  33. package/out/ERC20Module.sol/ERC20Module.json +1 -1
  34. package/out/ERC20Module.sol/ERC20ModuleLib.json +1 -0
  35. package/out/ERC20Module.t.sol/ERC20ModuleTest.json +1 -1
  36. package/out/ERC20Module.t.sol/TestConstants.json +1 -1
  37. package/out/ERC20Pausable.sol/ERC20Pausable.abi.json +8 -317
  38. package/out/ERC20Pausable.sol/ERC20Pausable.abi.json.d.ts +8 -317
  39. package/out/ERC20Pausable.sol/ERC20Pausable.json +1 -1
  40. package/out/ERC20Pausable.t.sol/{ERC20PausableBehaviorTest.abi.json → ERC20PausableTest.abi.json} +324 -0
  41. package/out/ERC20Pausable.t.sol/{ERC20PausableBehaviorTest.abi.json.d.ts → ERC20PausableTest.abi.json.d.ts} +324 -0
  42. package/out/ERC20Pausable.t.sol/ERC20PausableTest.json +1 -0
  43. package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json +25 -279
  44. package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json.d.ts +25 -279
  45. package/out/ERC20Pausable.t.sol/MockERC20Pausable.json +1 -1
  46. package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.abi.json +50 -284
  47. package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.abi.json.d.ts +50 -284
  48. package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.json +1 -1
  49. package/out/InitModule.sol/InitModule.json +1 -1
  50. package/out/MUDERC20.sol/MUDERC20.abi.json +8 -317
  51. package/out/MUDERC20.sol/MUDERC20.abi.json.d.ts +8 -317
  52. package/out/MUDERC20.sol/MUDERC20.json +1 -1
  53. package/out/Pausable.sol/Pausable.abi.json +8 -369
  54. package/out/Pausable.sol/Pausable.abi.json.d.ts +8 -369
  55. package/out/Pausable.sol/Pausable.json +1 -1
  56. package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
  57. package/out/World.sol/World.json +1 -1
  58. package/out/WorldConsumer.sol/WorldConsumer.abi.json +8 -45
  59. package/out/WorldConsumer.sol/WorldConsumer.abi.json.d.ts +8 -45
  60. package/out/WorldConsumer.sol/WorldConsumer.json +1 -1
  61. package/out/build-info/{575e1001b22e51590748b4ce55e7c596.json → 5dec426f2d87057b9b49f18296a28057.json} +1 -1
  62. package/package.json +8 -8
  63. package/src/examples/ERC20PausableBurnable.sol +21 -8
  64. package/src/experimental/Constants.sol +0 -4
  65. package/src/experimental/ERC20Module.sol +46 -9
  66. package/src/experimental/ERC20Pausable.sol +3 -0
  67. package/src/experimental/MUDERC20.sol +24 -29
  68. package/src/experimental/Pausable.sol +15 -15
  69. package/dist/chunk-2VXHCW2O.js.map +0 -1
  70. package/dist/chunk-LIWKL347.js.map +0 -1
  71. package/dist/secp256k1-XVT662DN.js.map +0 -1
  72. package/out/Constants.sol/OwnableTableNames.abi.json +0 -1
  73. package/out/Constants.sol/OwnableTableNames.json +0 -1
  74. package/out/ERC20BaseTest.t.sol/TestConstants.abi.json +0 -1
  75. package/out/ERC20BaseTest.t.sol/TestConstants.json +0 -1
  76. package/out/ERC20Module.sol/ERC20RegistryLib.json +0 -1
  77. package/out/ERC20Pausable.t.sol/ERC20PausableBehaviorTest.json +0 -1
  78. /package/dist/{ccip-VJWDNI4X.js.map → ccip-VIBPEQNI.js.map} +0 -0
  79. /package/out/ERC20Module.sol/{ERC20RegistryLib.abi.json → ERC20ModuleLib.abi.json} +0 -0
  80. /package/out/ERC20Module.sol/{ERC20RegistryLib.abi.json.d.ts → ERC20ModuleLib.abi.json.d.ts} +0 -0
@@ -1,7 +1,13 @@
1
1
  [
2
2
  {
3
3
  "type": "constructor",
4
- "inputs": [],
4
+ "inputs": [
5
+ {
6
+ "name": "world",
7
+ "type": "address",
8
+ "internalType": "contract IBaseWorld"
9
+ }
10
+ ],
5
11
  "stateMutability": "nonpayable"
6
12
  },
7
13
  {
@@ -161,39 +167,20 @@
161
167
  },
162
168
  {
163
169
  "type": "function",
164
- "name": "name",
170
+ "name": "initialize",
165
171
  "inputs": [],
166
- "outputs": [
167
- {
168
- "name": "",
169
- "type": "string",
170
- "internalType": "string"
171
- }
172
- ],
173
- "stateMutability": "view"
174
- },
175
- {
176
- "type": "function",
177
- "name": "namespace",
178
- "inputs": [],
179
- "outputs": [
180
- {
181
- "name": "",
182
- "type": "bytes14",
183
- "internalType": "bytes14"
184
- }
185
- ],
186
- "stateMutability": "view"
172
+ "outputs": [],
173
+ "stateMutability": "nonpayable"
187
174
  },
188
175
  {
189
176
  "type": "function",
190
- "name": "namespaceId",
177
+ "name": "name",
191
178
  "inputs": [],
192
179
  "outputs": [
193
180
  {
194
181
  "name": "",
195
- "type": "bytes32",
196
- "internalType": "ResourceId"
182
+ "type": "string",
183
+ "internalType": "string"
197
184
  }
198
185
  ],
199
186
  "stateMutability": "view"
@@ -500,108 +487,6 @@
500
487
  }
501
488
  ]
502
489
  },
503
- {
504
- "type": "error",
505
- "name": "FieldLayout_Empty",
506
- "inputs": []
507
- },
508
- {
509
- "type": "error",
510
- "name": "FieldLayout_InvalidStaticDataLength",
511
- "inputs": [
512
- {
513
- "name": "staticDataLength",
514
- "type": "uint256",
515
- "internalType": "uint256"
516
- },
517
- {
518
- "name": "computedStaticDataLength",
519
- "type": "uint256",
520
- "internalType": "uint256"
521
- }
522
- ]
523
- },
524
- {
525
- "type": "error",
526
- "name": "FieldLayout_StaticLengthDoesNotFitInAWord",
527
- "inputs": [
528
- {
529
- "name": "index",
530
- "type": "uint256",
531
- "internalType": "uint256"
532
- }
533
- ]
534
- },
535
- {
536
- "type": "error",
537
- "name": "FieldLayout_StaticLengthIsNotZero",
538
- "inputs": [
539
- {
540
- "name": "index",
541
- "type": "uint256",
542
- "internalType": "uint256"
543
- }
544
- ]
545
- },
546
- {
547
- "type": "error",
548
- "name": "FieldLayout_StaticLengthIsZero",
549
- "inputs": [
550
- {
551
- "name": "index",
552
- "type": "uint256",
553
- "internalType": "uint256"
554
- }
555
- ]
556
- },
557
- {
558
- "type": "error",
559
- "name": "FieldLayout_TooManyDynamicFields",
560
- "inputs": [
561
- {
562
- "name": "numFields",
563
- "type": "uint256",
564
- "internalType": "uint256"
565
- },
566
- {
567
- "name": "maxFields",
568
- "type": "uint256",
569
- "internalType": "uint256"
570
- }
571
- ]
572
- },
573
- {
574
- "type": "error",
575
- "name": "FieldLayout_TooManyFields",
576
- "inputs": [
577
- {
578
- "name": "numFields",
579
- "type": "uint256",
580
- "internalType": "uint256"
581
- },
582
- {
583
- "name": "maxFields",
584
- "type": "uint256",
585
- "internalType": "uint256"
586
- }
587
- ]
588
- },
589
- {
590
- "type": "error",
591
- "name": "Schema_InvalidLength",
592
- "inputs": [
593
- {
594
- "name": "length",
595
- "type": "uint256",
596
- "internalType": "uint256"
597
- }
598
- ]
599
- },
600
- {
601
- "type": "error",
602
- "name": "Schema_StaticTypeAfterDynamicType",
603
- "inputs": []
604
- },
605
490
  {
606
491
  "type": "error",
607
492
  "name": "Slice_OutOfBounds",
@@ -623,139 +508,6 @@
623
508
  }
624
509
  ]
625
510
  },
626
- {
627
- "type": "error",
628
- "name": "Store_InvalidFieldNamesLength",
629
- "inputs": [
630
- {
631
- "name": "expected",
632
- "type": "uint256",
633
- "internalType": "uint256"
634
- },
635
- {
636
- "name": "received",
637
- "type": "uint256",
638
- "internalType": "uint256"
639
- }
640
- ]
641
- },
642
- {
643
- "type": "error",
644
- "name": "Store_InvalidKeyNamesLength",
645
- "inputs": [
646
- {
647
- "name": "expected",
648
- "type": "uint256",
649
- "internalType": "uint256"
650
- },
651
- {
652
- "name": "received",
653
- "type": "uint256",
654
- "internalType": "uint256"
655
- }
656
- ]
657
- },
658
- {
659
- "type": "error",
660
- "name": "Store_InvalidResourceType",
661
- "inputs": [
662
- {
663
- "name": "expected",
664
- "type": "bytes2",
665
- "internalType": "bytes2"
666
- },
667
- {
668
- "name": "resourceId",
669
- "type": "bytes32",
670
- "internalType": "ResourceId"
671
- },
672
- {
673
- "name": "resourceIdString",
674
- "type": "string",
675
- "internalType": "string"
676
- }
677
- ]
678
- },
679
- {
680
- "type": "error",
681
- "name": "Store_InvalidStaticDataLength",
682
- "inputs": [
683
- {
684
- "name": "expected",
685
- "type": "uint256",
686
- "internalType": "uint256"
687
- },
688
- {
689
- "name": "received",
690
- "type": "uint256",
691
- "internalType": "uint256"
692
- }
693
- ]
694
- },
695
- {
696
- "type": "error",
697
- "name": "Store_InvalidValueSchemaDynamicLength",
698
- "inputs": [
699
- {
700
- "name": "expected",
701
- "type": "uint256",
702
- "internalType": "uint256"
703
- },
704
- {
705
- "name": "received",
706
- "type": "uint256",
707
- "internalType": "uint256"
708
- }
709
- ]
710
- },
711
- {
712
- "type": "error",
713
- "name": "Store_InvalidValueSchemaLength",
714
- "inputs": [
715
- {
716
- "name": "expected",
717
- "type": "uint256",
718
- "internalType": "uint256"
719
- },
720
- {
721
- "name": "received",
722
- "type": "uint256",
723
- "internalType": "uint256"
724
- }
725
- ]
726
- },
727
- {
728
- "type": "error",
729
- "name": "Store_InvalidValueSchemaStaticLength",
730
- "inputs": [
731
- {
732
- "name": "expected",
733
- "type": "uint256",
734
- "internalType": "uint256"
735
- },
736
- {
737
- "name": "received",
738
- "type": "uint256",
739
- "internalType": "uint256"
740
- }
741
- ]
742
- },
743
- {
744
- "type": "error",
745
- "name": "Store_TableAlreadyExists",
746
- "inputs": [
747
- {
748
- "name": "tableId",
749
- "type": "bytes32",
750
- "internalType": "ResourceId"
751
- },
752
- {
753
- "name": "tableIdString",
754
- "type": "string",
755
- "internalType": "string"
756
- }
757
- ]
758
- },
759
511
  {
760
512
  "type": "error",
761
513
  "name": "WorldConsumer_CallerHasNoNamespaceAccess",
@@ -779,13 +531,18 @@
779
531
  },
780
532
  {
781
533
  "type": "error",
782
- "name": "WorldConsumer_CallerIsNotWorld",
534
+ "name": "WorldConsumer_CallerIsNotNamespaceOwner",
783
535
  "inputs": [
784
536
  {
785
537
  "name": "worldAddress",
786
538
  "type": "address",
787
539
  "internalType": "address"
788
540
  },
541
+ {
542
+ "name": "namespace",
543
+ "type": "bytes14",
544
+ "internalType": "bytes14"
545
+ },
789
546
  {
790
547
  "name": "caller",
791
548
  "type": "address",
@@ -795,7 +552,7 @@
795
552
  },
796
553
  {
797
554
  "type": "error",
798
- "name": "WorldConsumer_NamespaceAlreadyExists",
555
+ "name": "WorldConsumer_CallerIsNotWorld",
799
556
  "inputs": [
800
557
  {
801
558
  "name": "worldAddress",
@@ -803,25 +560,9 @@
803
560
  "internalType": "address"
804
561
  },
805
562
  {
806
- "name": "namespace",
807
- "type": "bytes14",
808
- "internalType": "bytes14"
809
- }
810
- ]
811
- },
812
- {
813
- "type": "error",
814
- "name": "WorldConsumer_NamespaceDoesNotExists",
815
- "inputs": [
816
- {
817
- "name": "worldAddress",
563
+ "name": "caller",
818
564
  "type": "address",
819
565
  "internalType": "address"
820
- },
821
- {
822
- "name": "namespace",
823
- "type": "bytes14",
824
- "internalType": "bytes14"
825
566
  }
826
567
  ]
827
568
  },