@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,13 +1,7 @@
1
1
  declare const abi: [
2
2
  {
3
3
  "type": "constructor",
4
- "inputs": [
5
- {
6
- "name": "world",
7
- "type": "address",
8
- "internalType": "contract IBaseWorld"
9
- }
10
- ],
4
+ "inputs": [],
11
5
  "stateMutability": "nonpayable"
12
6
  },
13
7
  {
@@ -167,20 +161,39 @@ declare const abi: [
167
161
  },
168
162
  {
169
163
  "type": "function",
170
- "name": "initialize",
164
+ "name": "name",
171
165
  "inputs": [],
172
- "outputs": [],
173
- "stateMutability": "nonpayable"
166
+ "outputs": [
167
+ {
168
+ "name": "",
169
+ "type": "string",
170
+ "internalType": "string"
171
+ }
172
+ ],
173
+ "stateMutability": "view"
174
174
  },
175
175
  {
176
176
  "type": "function",
177
- "name": "name",
177
+ "name": "namespace",
178
178
  "inputs": [],
179
179
  "outputs": [
180
180
  {
181
181
  "name": "",
182
- "type": "string",
183
- "internalType": "string"
182
+ "type": "bytes14",
183
+ "internalType": "bytes14"
184
+ }
185
+ ],
186
+ "stateMutability": "view"
187
+ },
188
+ {
189
+ "type": "function",
190
+ "name": "namespaceId",
191
+ "inputs": [],
192
+ "outputs": [
193
+ {
194
+ "name": "",
195
+ "type": "bytes32",
196
+ "internalType": "ResourceId"
184
197
  }
185
198
  ],
186
199
  "stateMutability": "view"
@@ -487,6 +500,108 @@ declare const abi: [
487
500
  }
488
501
  ]
489
502
  },
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
+ },
490
605
  {
491
606
  "type": "error",
492
607
  "name": "Slice_OutOfBounds",
@@ -508,6 +623,139 @@ declare const abi: [
508
623
  }
509
624
  ]
510
625
  },
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
+ },
511
759
  {
512
760
  "type": "error",
513
761
  "name": "WorldConsumer_CallerHasNoNamespaceAccess",
@@ -531,18 +779,13 @@ declare const abi: [
531
779
  },
532
780
  {
533
781
  "type": "error",
534
- "name": "WorldConsumer_CallerIsNotNamespaceOwner",
782
+ "name": "WorldConsumer_CallerIsNotWorld",
535
783
  "inputs": [
536
784
  {
537
785
  "name": "worldAddress",
538
786
  "type": "address",
539
787
  "internalType": "address"
540
788
  },
541
- {
542
- "name": "namespace",
543
- "type": "bytes14",
544
- "internalType": "bytes14"
545
- },
546
789
  {
547
790
  "name": "caller",
548
791
  "type": "address",
@@ -552,7 +795,7 @@ declare const abi: [
552
795
  },
553
796
  {
554
797
  "type": "error",
555
- "name": "WorldConsumer_CallerIsNotWorld",
798
+ "name": "WorldConsumer_NamespaceAlreadyExists",
556
799
  "inputs": [
557
800
  {
558
801
  "name": "worldAddress",
@@ -560,9 +803,25 @@ declare const abi: [
560
803
  "internalType": "address"
561
804
  },
562
805
  {
563
- "name": "caller",
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",
564
818
  "type": "address",
565
819
  "internalType": "address"
820
+ },
821
+ {
822
+ "name": "namespace",
823
+ "type": "bytes14",
824
+ "internalType": "bytes14"
566
825
  }
567
826
  ]
568
827
  },