@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
@@ -131,6 +131,32 @@ declare const abi: [
131
131
  ],
132
132
  "stateMutability": "view"
133
133
  },
134
+ {
135
+ "type": "function",
136
+ "name": "namespace",
137
+ "inputs": [],
138
+ "outputs": [
139
+ {
140
+ "name": "",
141
+ "type": "bytes14",
142
+ "internalType": "bytes14"
143
+ }
144
+ ],
145
+ "stateMutability": "view"
146
+ },
147
+ {
148
+ "type": "function",
149
+ "name": "namespaceId",
150
+ "inputs": [],
151
+ "outputs": [
152
+ {
153
+ "name": "",
154
+ "type": "bytes32",
155
+ "internalType": "ResourceId"
156
+ }
157
+ ],
158
+ "stateMutability": "view"
159
+ },
134
160
  {
135
161
  "type": "function",
136
162
  "name": "paused",
@@ -280,6 +306,43 @@ declare const abi: [
280
306
  ],
281
307
  "anonymous": false
282
308
  },
309
+ {
310
+ "type": "event",
311
+ "name": "Store_SetRecord",
312
+ "inputs": [
313
+ {
314
+ "name": "tableId",
315
+ "type": "bytes32",
316
+ "indexed": true,
317
+ "internalType": "ResourceId"
318
+ },
319
+ {
320
+ "name": "keyTuple",
321
+ "type": "bytes32[]",
322
+ "indexed": false,
323
+ "internalType": "bytes32[]"
324
+ },
325
+ {
326
+ "name": "staticData",
327
+ "type": "bytes",
328
+ "indexed": false,
329
+ "internalType": "bytes"
330
+ },
331
+ {
332
+ "name": "encodedLengths",
333
+ "type": "bytes32",
334
+ "indexed": false,
335
+ "internalType": "EncodedLengths"
336
+ },
337
+ {
338
+ "name": "dynamicData",
339
+ "type": "bytes",
340
+ "indexed": false,
341
+ "internalType": "bytes"
342
+ }
343
+ ],
344
+ "anonymous": false
345
+ },
283
346
  {
284
347
  "type": "event",
285
348
  "name": "Store_SpliceStaticData",
@@ -445,6 +508,108 @@ declare const abi: [
445
508
  "name": "ExpectedPause",
446
509
  "inputs": []
447
510
  },
511
+ {
512
+ "type": "error",
513
+ "name": "FieldLayout_Empty",
514
+ "inputs": []
515
+ },
516
+ {
517
+ "type": "error",
518
+ "name": "FieldLayout_InvalidStaticDataLength",
519
+ "inputs": [
520
+ {
521
+ "name": "staticDataLength",
522
+ "type": "uint256",
523
+ "internalType": "uint256"
524
+ },
525
+ {
526
+ "name": "computedStaticDataLength",
527
+ "type": "uint256",
528
+ "internalType": "uint256"
529
+ }
530
+ ]
531
+ },
532
+ {
533
+ "type": "error",
534
+ "name": "FieldLayout_StaticLengthDoesNotFitInAWord",
535
+ "inputs": [
536
+ {
537
+ "name": "index",
538
+ "type": "uint256",
539
+ "internalType": "uint256"
540
+ }
541
+ ]
542
+ },
543
+ {
544
+ "type": "error",
545
+ "name": "FieldLayout_StaticLengthIsNotZero",
546
+ "inputs": [
547
+ {
548
+ "name": "index",
549
+ "type": "uint256",
550
+ "internalType": "uint256"
551
+ }
552
+ ]
553
+ },
554
+ {
555
+ "type": "error",
556
+ "name": "FieldLayout_StaticLengthIsZero",
557
+ "inputs": [
558
+ {
559
+ "name": "index",
560
+ "type": "uint256",
561
+ "internalType": "uint256"
562
+ }
563
+ ]
564
+ },
565
+ {
566
+ "type": "error",
567
+ "name": "FieldLayout_TooManyDynamicFields",
568
+ "inputs": [
569
+ {
570
+ "name": "numFields",
571
+ "type": "uint256",
572
+ "internalType": "uint256"
573
+ },
574
+ {
575
+ "name": "maxFields",
576
+ "type": "uint256",
577
+ "internalType": "uint256"
578
+ }
579
+ ]
580
+ },
581
+ {
582
+ "type": "error",
583
+ "name": "FieldLayout_TooManyFields",
584
+ "inputs": [
585
+ {
586
+ "name": "numFields",
587
+ "type": "uint256",
588
+ "internalType": "uint256"
589
+ },
590
+ {
591
+ "name": "maxFields",
592
+ "type": "uint256",
593
+ "internalType": "uint256"
594
+ }
595
+ ]
596
+ },
597
+ {
598
+ "type": "error",
599
+ "name": "Schema_InvalidLength",
600
+ "inputs": [
601
+ {
602
+ "name": "length",
603
+ "type": "uint256",
604
+ "internalType": "uint256"
605
+ }
606
+ ]
607
+ },
608
+ {
609
+ "type": "error",
610
+ "name": "Schema_StaticTypeAfterDynamicType",
611
+ "inputs": []
612
+ },
448
613
  {
449
614
  "type": "error",
450
615
  "name": "Slice_OutOfBounds",
@@ -466,6 +631,139 @@ declare const abi: [
466
631
  }
467
632
  ]
468
633
  },
634
+ {
635
+ "type": "error",
636
+ "name": "Store_InvalidFieldNamesLength",
637
+ "inputs": [
638
+ {
639
+ "name": "expected",
640
+ "type": "uint256",
641
+ "internalType": "uint256"
642
+ },
643
+ {
644
+ "name": "received",
645
+ "type": "uint256",
646
+ "internalType": "uint256"
647
+ }
648
+ ]
649
+ },
650
+ {
651
+ "type": "error",
652
+ "name": "Store_InvalidKeyNamesLength",
653
+ "inputs": [
654
+ {
655
+ "name": "expected",
656
+ "type": "uint256",
657
+ "internalType": "uint256"
658
+ },
659
+ {
660
+ "name": "received",
661
+ "type": "uint256",
662
+ "internalType": "uint256"
663
+ }
664
+ ]
665
+ },
666
+ {
667
+ "type": "error",
668
+ "name": "Store_InvalidResourceType",
669
+ "inputs": [
670
+ {
671
+ "name": "expected",
672
+ "type": "bytes2",
673
+ "internalType": "bytes2"
674
+ },
675
+ {
676
+ "name": "resourceId",
677
+ "type": "bytes32",
678
+ "internalType": "ResourceId"
679
+ },
680
+ {
681
+ "name": "resourceIdString",
682
+ "type": "string",
683
+ "internalType": "string"
684
+ }
685
+ ]
686
+ },
687
+ {
688
+ "type": "error",
689
+ "name": "Store_InvalidStaticDataLength",
690
+ "inputs": [
691
+ {
692
+ "name": "expected",
693
+ "type": "uint256",
694
+ "internalType": "uint256"
695
+ },
696
+ {
697
+ "name": "received",
698
+ "type": "uint256",
699
+ "internalType": "uint256"
700
+ }
701
+ ]
702
+ },
703
+ {
704
+ "type": "error",
705
+ "name": "Store_InvalidValueSchemaDynamicLength",
706
+ "inputs": [
707
+ {
708
+ "name": "expected",
709
+ "type": "uint256",
710
+ "internalType": "uint256"
711
+ },
712
+ {
713
+ "name": "received",
714
+ "type": "uint256",
715
+ "internalType": "uint256"
716
+ }
717
+ ]
718
+ },
719
+ {
720
+ "type": "error",
721
+ "name": "Store_InvalidValueSchemaLength",
722
+ "inputs": [
723
+ {
724
+ "name": "expected",
725
+ "type": "uint256",
726
+ "internalType": "uint256"
727
+ },
728
+ {
729
+ "name": "received",
730
+ "type": "uint256",
731
+ "internalType": "uint256"
732
+ }
733
+ ]
734
+ },
735
+ {
736
+ "type": "error",
737
+ "name": "Store_InvalidValueSchemaStaticLength",
738
+ "inputs": [
739
+ {
740
+ "name": "expected",
741
+ "type": "uint256",
742
+ "internalType": "uint256"
743
+ },
744
+ {
745
+ "name": "received",
746
+ "type": "uint256",
747
+ "internalType": "uint256"
748
+ }
749
+ ]
750
+ },
751
+ {
752
+ "type": "error",
753
+ "name": "Store_TableAlreadyExists",
754
+ "inputs": [
755
+ {
756
+ "name": "tableId",
757
+ "type": "bytes32",
758
+ "internalType": "ResourceId"
759
+ },
760
+ {
761
+ "name": "tableIdString",
762
+ "type": "string",
763
+ "internalType": "string"
764
+ }
765
+ ]
766
+ },
469
767
  {
470
768
  "type": "error",
471
769
  "name": "WorldConsumer_CallerHasNoNamespaceAccess",
@@ -489,18 +787,13 @@ declare const abi: [
489
787
  },
490
788
  {
491
789
  "type": "error",
492
- "name": "WorldConsumer_CallerIsNotNamespaceOwner",
790
+ "name": "WorldConsumer_CallerIsNotWorld",
493
791
  "inputs": [
494
792
  {
495
793
  "name": "worldAddress",
496
794
  "type": "address",
497
795
  "internalType": "address"
498
796
  },
499
- {
500
- "name": "namespace",
501
- "type": "bytes14",
502
- "internalType": "bytes14"
503
- },
504
797
  {
505
798
  "name": "caller",
506
799
  "type": "address",
@@ -510,7 +803,7 @@ declare const abi: [
510
803
  },
511
804
  {
512
805
  "type": "error",
513
- "name": "WorldConsumer_CallerIsNotWorld",
806
+ "name": "WorldConsumer_NamespaceAlreadyExists",
514
807
  "inputs": [
515
808
  {
516
809
  "name": "worldAddress",
@@ -518,9 +811,25 @@ declare const abi: [
518
811
  "internalType": "address"
519
812
  },
520
813
  {
521
- "name": "caller",
814
+ "name": "namespace",
815
+ "type": "bytes14",
816
+ "internalType": "bytes14"
817
+ }
818
+ ]
819
+ },
820
+ {
821
+ "type": "error",
822
+ "name": "WorldConsumer_NamespaceDoesNotExists",
823
+ "inputs": [
824
+ {
825
+ "name": "worldAddress",
522
826
  "type": "address",
523
827
  "internalType": "address"
828
+ },
829
+ {
830
+ "name": "namespace",
831
+ "type": "bytes14",
832
+ "internalType": "bytes14"
524
833
  }
525
834
  ]
526
835
  },