@latticexyz/world-modules 2.0.13-main-ab985f293 → 2.0.13-main-3cbbc62c9

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 (136) hide show
  1. package/dist/mud.config.d.ts +1 -3
  2. package/dist/mud.config.js +1 -1
  3. package/dist/mud.config.js.map +1 -1
  4. package/out/AccessControlLib.sol/AccessControlLib.json +1 -1
  5. package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
  6. package/out/Allowances.sol/Allowances.json +1 -1
  7. package/out/ArrayLib.sol/ArrayLib.json +1 -1
  8. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
  9. package/out/Balances.sol/Balances.json +1 -1
  10. package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
  11. package/out/CallWithSignatureModule.t.sol/Unstable_CallWithSignatureModuleTest.json +1 -1
  12. package/out/CallWithSignatureNonces.sol/CallWithSignatureNonces.json +1 -1
  13. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +1 -1
  14. package/out/CallboundDelegations.sol/CallboundDelegations.json +1 -1
  15. package/out/DelegationControlMock.sol/DelegationControlMock.json +1 -1
  16. package/out/ECDSA.sol/ECDSA.json +1 -1
  17. package/out/ERC20.t.sol/ERC20Test.json +1 -1
  18. package/out/ERC20Metadata.sol/ERC20Metadata.json +1 -1
  19. package/out/ERC20Module.sol/ERC20Module.json +1 -1
  20. package/out/ERC20Module.sol/ERC20ModuleRegistrationLibrary.json +1 -1
  21. package/out/ERC20Registry.sol/ERC20Registry.json +1 -1
  22. package/out/ERC20System.sol/ERC20System.json +1 -1
  23. package/out/ERC721.t.sol/ERC721Recipient.json +1 -1
  24. package/out/ERC721.t.sol/ERC721Test.json +1 -1
  25. package/out/ERC721.t.sol/ERC721TokenReceiver.json +1 -1
  26. package/out/ERC721.t.sol/NonERC721Recipient.json +1 -1
  27. package/out/ERC721.t.sol/RevertingERC721Recipient.json +1 -1
  28. package/out/ERC721.t.sol/WrongReturnDataERC721Recipient.json +1 -1
  29. package/out/ERC721Metadata.sol/ERC721Metadata.json +1 -1
  30. package/out/ERC721Module.sol/ERC721Module.json +1 -1
  31. package/out/ERC721Module.sol/ERC721ModuleRegistrationLibrary.json +1 -1
  32. package/out/ERC721Registry.sol/ERC721Registry.json +1 -1
  33. package/out/ERC721System.sol/ERC721System.json +1 -1
  34. package/out/EchoSubscriber.sol/EchoSubscriber.json +1 -1
  35. package/out/GasReporter.sol/GasReporter.json +1 -1
  36. package/out/IBaseWorld.sol/IBaseWorld.abi.json +400 -0
  37. package/out/IBaseWorld.sol/IBaseWorld.abi.json.d.ts +400 -0
  38. package/out/IBaseWorld.sol/IBaseWorld.json +1 -1
  39. package/out/IERC1271.sol/IERC1271.json +1 -1
  40. package/out/IERC20.sol/IERC20.json +1 -1
  41. package/out/IERC20Errors.sol/IERC20Errors.json +1 -1
  42. package/out/IERC20Events.sol/IERC20Events.json +1 -1
  43. package/out/IERC20Mintable.sol/IERC20Mintable.json +1 -1
  44. package/out/IERC721.sol/IERC721.json +1 -1
  45. package/out/IERC721Errors.sol/IERC721Errors.json +1 -1
  46. package/out/IERC721Events.sol/IERC721Events.json +1 -1
  47. package/out/IERC721Metadata.sol/IERC721Metadata.json +1 -1
  48. package/out/IERC721Mintable.sol/IERC721Mintable.json +1 -1
  49. package/out/IERC721Receiver.sol/IERC721Receiver.json +1 -1
  50. package/out/IUnstable_CallWithSignatureErrors.sol/IUnstable_CallWithSignatureErrors.json +1 -1
  51. package/out/IWorld.sol/IWorld.json +1 -0
  52. package/out/InitModule.sol/InitModule.json +1 -1
  53. package/out/KeysInTable.sol/KeysInTable.json +1 -1
  54. package/out/KeysInTableHook.sol/KeysInTableHook.json +1 -1
  55. package/out/KeysInTableModule.sol/KeysInTableModule.json +1 -1
  56. package/out/KeysInTableModule.t.sol/KeysInTableModuleTest.json +1 -1
  57. package/out/KeysWithValue.sol/KeysWithValue.json +1 -1
  58. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1 -1
  59. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +1 -1
  60. package/out/KeysWithValueModule.t.sol/KeysWithValueModuleTest.json +1 -1
  61. package/out/LibString.sol/LibString.json +1 -1
  62. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +1 -1
  63. package/out/OperatorApproval.sol/OperatorApproval.json +1 -1
  64. package/out/Owners.sol/Owners.json +1 -1
  65. package/out/Puppet.sol/Puppet.json +1 -1
  66. package/out/PuppetDelegationControl.sol/PuppetDelegationControl.json +1 -1
  67. package/out/PuppetFactorySystem.sol/PuppetFactorySystem.json +1 -1
  68. package/out/PuppetMaster.sol/PuppetMaster.json +1 -1
  69. package/out/PuppetModule.sol/PuppetModule.json +1 -1
  70. package/out/PuppetModule.t.sol/PuppetModuleTest.json +1 -1
  71. package/out/PuppetModule.t.sol/PuppetTestSystem.json +1 -1
  72. package/out/PuppetRegistry.sol/PuppetRegistry.json +1 -1
  73. package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
  74. package/out/RevertSubscriber.sol/RevertSubscriber.json +1 -1
  75. package/out/SignatureChecker.sol/SignatureChecker.json +1 -1
  76. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +1 -1
  77. package/out/StandardDelegationsModule.t.sol/StandardDelegationsModuleTest.json +1 -1
  78. package/out/StdError.sol/stdError.json +1 -1
  79. package/out/StoreRead.sol/StoreRead.json +1 -1
  80. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +1 -1
  81. package/out/System.sol/System.json +1 -1
  82. package/out/SystemSwitch.sol/SystemSwitch.json +1 -1
  83. package/out/SystemSwitch.t.sol/EchoSystem.json +1 -1
  84. package/out/SystemSwitch.t.sol/SystemSwitchTest.json +1 -1
  85. package/out/SystemboundDelegationControl.sol/SystemboundDelegationControl.json +1 -1
  86. package/out/SystemboundDelegations.sol/SystemboundDelegations.json +1 -1
  87. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +1 -1
  88. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1 -1
  89. package/out/TokenApproval.sol/TokenApproval.json +1 -1
  90. package/out/TokenURI.sol/TokenURI.json +1 -1
  91. package/out/TotalSupply.sol/TotalSupply.json +1 -1
  92. package/out/UniqueEntity.sol/UniqueEntity.json +1 -1
  93. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +1 -1
  94. package/out/UniqueEntityModule.t.sol/UniqueEntityModuleTest.json +1 -1
  95. package/out/UniqueEntityModule.t.sol/UniqueEntityTestSystem.json +1 -1
  96. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +1 -1
  97. package/out/Unstable_CallWithSignatureModule.sol/Unstable_CallWithSignatureModule.json +1 -1
  98. package/out/Unstable_CallWithSignatureSystem.sol/Unstable_CallWithSignatureSystem.json +1 -1
  99. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +1 -1
  100. package/out/World.sol/World.json +1 -1
  101. package/out/World.t.sol/EchoSystemHook.json +1 -1
  102. package/out/World.t.sol/PayableFallbackSystem.json +1 -1
  103. package/out/World.t.sol/RevertSystemHook.json +1 -1
  104. package/out/World.t.sol/WorldTest.json +1 -1
  105. package/out/World.t.sol/WorldTestSystem.json +1 -1
  106. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1 -1
  107. package/out/build-info/{5dd1adee895e77aca6c03690bb8f46ee.json → d124ec78488e616c9174ecbe10ecd017.json} +1 -1
  108. package/out/query.t.sol/QueryTest.json +1 -1
  109. package/out/test.sol/DSTest.json +1 -1
  110. package/package.json +10 -9
  111. package/src/codegen/index.sol +25 -0
  112. package/src/{interfaces/IBaseWorld.sol → codegen/world/IWorld.sol} +3 -4
  113. package/out/IERC20System.sol/IERC20System.abi.json +0 -210
  114. package/out/IERC20System.sol/IERC20System.abi.json.d.ts +0 -210
  115. package/out/IERC20System.sol/IERC20System.json +0 -1
  116. package/out/IERC721System.sol/IERC721System.abi.json +0 -310
  117. package/out/IERC721System.sol/IERC721System.abi.json.d.ts +0 -310
  118. package/out/IERC721System.sol/IERC721System.json +0 -1
  119. package/out/IPuppetFactorySystem.sol/IPuppetFactorySystem.abi.json +0 -21
  120. package/out/IPuppetFactorySystem.sol/IPuppetFactorySystem.abi.json.d.ts +0 -21
  121. package/out/IPuppetFactorySystem.sol/IPuppetFactorySystem.json +0 -1
  122. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json +0 -15
  123. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json.d.ts +0 -15
  124. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +0 -1
  125. package/out/IUnstable_CallWithSignatureSystem.sol/IUnstable_CallWithSignatureSystem.abi.json +0 -36
  126. package/out/IUnstable_CallWithSignatureSystem.sol/IUnstable_CallWithSignatureSystem.abi.json.d.ts +0 -36
  127. package/out/IUnstable_CallWithSignatureSystem.sol/IUnstable_CallWithSignatureSystem.json +0 -1
  128. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +0 -1
  129. package/src/index.sol +0 -25
  130. package/src/interfaces/IERC20System.sol +0 -33
  131. package/src/interfaces/IERC721System.sol +0 -43
  132. package/src/interfaces/IPuppetFactorySystem.sol +0 -15
  133. package/src/interfaces/IUniqueEntitySystem.sol +0 -13
  134. package/src/interfaces/IUnstable_CallWithSignatureSystem.sol +0 -20
  135. /package/out/{interfaces/IBaseWorld.sol/IBaseWorld.abi.json → IWorld.sol/IWorld.abi.json} +0 -0
  136. /package/out/{interfaces/IBaseWorld.sol/IBaseWorld.abi.json.d.ts → IWorld.sol/IWorld.abi.json.d.ts} +0 -0
@@ -1,4 +1,71 @@
1
1
  [
2
+ {
3
+ "type": "function",
4
+ "name": "batchCall",
5
+ "inputs": [
6
+ {
7
+ "name": "systemCalls",
8
+ "type": "tuple[]",
9
+ "internalType": "struct SystemCallData[]",
10
+ "components": [
11
+ {
12
+ "name": "systemId",
13
+ "type": "bytes32",
14
+ "internalType": "ResourceId"
15
+ },
16
+ {
17
+ "name": "callData",
18
+ "type": "bytes",
19
+ "internalType": "bytes"
20
+ }
21
+ ]
22
+ }
23
+ ],
24
+ "outputs": [
25
+ {
26
+ "name": "returnDatas",
27
+ "type": "bytes[]",
28
+ "internalType": "bytes[]"
29
+ }
30
+ ],
31
+ "stateMutability": "nonpayable"
32
+ },
33
+ {
34
+ "type": "function",
35
+ "name": "batchCallFrom",
36
+ "inputs": [
37
+ {
38
+ "name": "systemCalls",
39
+ "type": "tuple[]",
40
+ "internalType": "struct SystemCallFromData[]",
41
+ "components": [
42
+ {
43
+ "name": "from",
44
+ "type": "address",
45
+ "internalType": "address"
46
+ },
47
+ {
48
+ "name": "systemId",
49
+ "type": "bytes32",
50
+ "internalType": "ResourceId"
51
+ },
52
+ {
53
+ "name": "callData",
54
+ "type": "bytes",
55
+ "internalType": "bytes"
56
+ }
57
+ ]
58
+ }
59
+ ],
60
+ "outputs": [
61
+ {
62
+ "name": "returnDatas",
63
+ "type": "bytes[]",
64
+ "internalType": "bytes[]"
65
+ }
66
+ ],
67
+ "stateMutability": "nonpayable"
68
+ },
2
69
  {
3
70
  "type": "function",
4
71
  "name": "call",
@@ -470,6 +537,24 @@
470
537
  ],
471
538
  "stateMutability": "view"
472
539
  },
540
+ {
541
+ "type": "function",
542
+ "name": "grantAccess",
543
+ "inputs": [
544
+ {
545
+ "name": "resourceId",
546
+ "type": "bytes32",
547
+ "internalType": "ResourceId"
548
+ },
549
+ {
550
+ "name": "grantee",
551
+ "type": "address",
552
+ "internalType": "address"
553
+ }
554
+ ],
555
+ "outputs": [],
556
+ "stateMutability": "nonpayable"
557
+ },
473
558
  {
474
559
  "type": "function",
475
560
  "name": "initialize",
@@ -483,6 +568,24 @@
483
568
  "outputs": [],
484
569
  "stateMutability": "nonpayable"
485
570
  },
571
+ {
572
+ "type": "function",
573
+ "name": "installModule",
574
+ "inputs": [
575
+ {
576
+ "name": "module",
577
+ "type": "address",
578
+ "internalType": "contract IModule"
579
+ },
580
+ {
581
+ "name": "encodedArgs",
582
+ "type": "bytes",
583
+ "internalType": "bytes"
584
+ }
585
+ ],
586
+ "outputs": [],
587
+ "stateMutability": "nonpayable"
588
+ },
486
589
  {
487
590
  "type": "function",
488
591
  "name": "installRootModule",
@@ -557,6 +660,118 @@
557
660
  "outputs": [],
558
661
  "stateMutability": "nonpayable"
559
662
  },
663
+ {
664
+ "type": "function",
665
+ "name": "registerDelegation",
666
+ "inputs": [
667
+ {
668
+ "name": "delegatee",
669
+ "type": "address",
670
+ "internalType": "address"
671
+ },
672
+ {
673
+ "name": "delegationControlId",
674
+ "type": "bytes32",
675
+ "internalType": "ResourceId"
676
+ },
677
+ {
678
+ "name": "initCallData",
679
+ "type": "bytes",
680
+ "internalType": "bytes"
681
+ }
682
+ ],
683
+ "outputs": [],
684
+ "stateMutability": "nonpayable"
685
+ },
686
+ {
687
+ "type": "function",
688
+ "name": "registerFunctionSelector",
689
+ "inputs": [
690
+ {
691
+ "name": "systemId",
692
+ "type": "bytes32",
693
+ "internalType": "ResourceId"
694
+ },
695
+ {
696
+ "name": "systemFunctionSignature",
697
+ "type": "string",
698
+ "internalType": "string"
699
+ }
700
+ ],
701
+ "outputs": [
702
+ {
703
+ "name": "worldFunctionSelector",
704
+ "type": "bytes4",
705
+ "internalType": "bytes4"
706
+ }
707
+ ],
708
+ "stateMutability": "nonpayable"
709
+ },
710
+ {
711
+ "type": "function",
712
+ "name": "registerNamespace",
713
+ "inputs": [
714
+ {
715
+ "name": "namespaceId",
716
+ "type": "bytes32",
717
+ "internalType": "ResourceId"
718
+ }
719
+ ],
720
+ "outputs": [],
721
+ "stateMutability": "nonpayable"
722
+ },
723
+ {
724
+ "type": "function",
725
+ "name": "registerNamespaceDelegation",
726
+ "inputs": [
727
+ {
728
+ "name": "namespaceId",
729
+ "type": "bytes32",
730
+ "internalType": "ResourceId"
731
+ },
732
+ {
733
+ "name": "delegationControlId",
734
+ "type": "bytes32",
735
+ "internalType": "ResourceId"
736
+ },
737
+ {
738
+ "name": "initCallData",
739
+ "type": "bytes",
740
+ "internalType": "bytes"
741
+ }
742
+ ],
743
+ "outputs": [],
744
+ "stateMutability": "nonpayable"
745
+ },
746
+ {
747
+ "type": "function",
748
+ "name": "registerRootFunctionSelector",
749
+ "inputs": [
750
+ {
751
+ "name": "systemId",
752
+ "type": "bytes32",
753
+ "internalType": "ResourceId"
754
+ },
755
+ {
756
+ "name": "worldFunctionSignature",
757
+ "type": "string",
758
+ "internalType": "string"
759
+ },
760
+ {
761
+ "name": "systemFunctionSignature",
762
+ "type": "string",
763
+ "internalType": "string"
764
+ }
765
+ ],
766
+ "outputs": [
767
+ {
768
+ "name": "worldFunctionSelector",
769
+ "type": "bytes4",
770
+ "internalType": "bytes4"
771
+ }
772
+ ],
773
+ "stateMutability": "nonpayable"
774
+ },
560
775
  {
561
776
  "type": "function",
562
777
  "name": "registerStoreHook",
@@ -580,6 +795,52 @@
580
795
  "outputs": [],
581
796
  "stateMutability": "nonpayable"
582
797
  },
798
+ {
799
+ "type": "function",
800
+ "name": "registerSystem",
801
+ "inputs": [
802
+ {
803
+ "name": "systemId",
804
+ "type": "bytes32",
805
+ "internalType": "ResourceId"
806
+ },
807
+ {
808
+ "name": "system",
809
+ "type": "address",
810
+ "internalType": "contract System"
811
+ },
812
+ {
813
+ "name": "publicAccess",
814
+ "type": "bool",
815
+ "internalType": "bool"
816
+ }
817
+ ],
818
+ "outputs": [],
819
+ "stateMutability": "nonpayable"
820
+ },
821
+ {
822
+ "type": "function",
823
+ "name": "registerSystemHook",
824
+ "inputs": [
825
+ {
826
+ "name": "systemId",
827
+ "type": "bytes32",
828
+ "internalType": "ResourceId"
829
+ },
830
+ {
831
+ "name": "hookAddress",
832
+ "type": "address",
833
+ "internalType": "contract ISystemHook"
834
+ },
835
+ {
836
+ "name": "enabledHooksBitmap",
837
+ "type": "uint8",
838
+ "internalType": "uint8"
839
+ }
840
+ ],
841
+ "outputs": [],
842
+ "stateMutability": "nonpayable"
843
+ },
583
844
  {
584
845
  "type": "function",
585
846
  "name": "registerTable",
@@ -618,6 +879,37 @@
618
879
  "outputs": [],
619
880
  "stateMutability": "nonpayable"
620
881
  },
882
+ {
883
+ "type": "function",
884
+ "name": "renounceOwnership",
885
+ "inputs": [
886
+ {
887
+ "name": "namespaceId",
888
+ "type": "bytes32",
889
+ "internalType": "ResourceId"
890
+ }
891
+ ],
892
+ "outputs": [],
893
+ "stateMutability": "nonpayable"
894
+ },
895
+ {
896
+ "type": "function",
897
+ "name": "revokeAccess",
898
+ "inputs": [
899
+ {
900
+ "name": "resourceId",
901
+ "type": "bytes32",
902
+ "internalType": "ResourceId"
903
+ },
904
+ {
905
+ "name": "grantee",
906
+ "type": "address",
907
+ "internalType": "address"
908
+ }
909
+ ],
910
+ "outputs": [],
911
+ "stateMutability": "nonpayable"
912
+ },
621
913
  {
622
914
  "type": "function",
623
915
  "name": "setDynamicField",
@@ -852,6 +1144,96 @@
852
1144
  ],
853
1145
  "stateMutability": "view"
854
1146
  },
1147
+ {
1148
+ "type": "function",
1149
+ "name": "transferBalanceToAddress",
1150
+ "inputs": [
1151
+ {
1152
+ "name": "fromNamespaceId",
1153
+ "type": "bytes32",
1154
+ "internalType": "ResourceId"
1155
+ },
1156
+ {
1157
+ "name": "toAddress",
1158
+ "type": "address",
1159
+ "internalType": "address"
1160
+ },
1161
+ {
1162
+ "name": "amount",
1163
+ "type": "uint256",
1164
+ "internalType": "uint256"
1165
+ }
1166
+ ],
1167
+ "outputs": [],
1168
+ "stateMutability": "nonpayable"
1169
+ },
1170
+ {
1171
+ "type": "function",
1172
+ "name": "transferBalanceToNamespace",
1173
+ "inputs": [
1174
+ {
1175
+ "name": "fromNamespaceId",
1176
+ "type": "bytes32",
1177
+ "internalType": "ResourceId"
1178
+ },
1179
+ {
1180
+ "name": "toNamespaceId",
1181
+ "type": "bytes32",
1182
+ "internalType": "ResourceId"
1183
+ },
1184
+ {
1185
+ "name": "amount",
1186
+ "type": "uint256",
1187
+ "internalType": "uint256"
1188
+ }
1189
+ ],
1190
+ "outputs": [],
1191
+ "stateMutability": "nonpayable"
1192
+ },
1193
+ {
1194
+ "type": "function",
1195
+ "name": "transferOwnership",
1196
+ "inputs": [
1197
+ {
1198
+ "name": "namespaceId",
1199
+ "type": "bytes32",
1200
+ "internalType": "ResourceId"
1201
+ },
1202
+ {
1203
+ "name": "newOwner",
1204
+ "type": "address",
1205
+ "internalType": "address"
1206
+ }
1207
+ ],
1208
+ "outputs": [],
1209
+ "stateMutability": "nonpayable"
1210
+ },
1211
+ {
1212
+ "type": "function",
1213
+ "name": "unregisterDelegation",
1214
+ "inputs": [
1215
+ {
1216
+ "name": "delegatee",
1217
+ "type": "address",
1218
+ "internalType": "address"
1219
+ }
1220
+ ],
1221
+ "outputs": [],
1222
+ "stateMutability": "nonpayable"
1223
+ },
1224
+ {
1225
+ "type": "function",
1226
+ "name": "unregisterNamespaceDelegation",
1227
+ "inputs": [
1228
+ {
1229
+ "name": "namespaceId",
1230
+ "type": "bytes32",
1231
+ "internalType": "ResourceId"
1232
+ }
1233
+ ],
1234
+ "outputs": [],
1235
+ "stateMutability": "nonpayable"
1236
+ },
855
1237
  {
856
1238
  "type": "function",
857
1239
  "name": "unregisterStoreHook",
@@ -870,6 +1252,24 @@
870
1252
  "outputs": [],
871
1253
  "stateMutability": "nonpayable"
872
1254
  },
1255
+ {
1256
+ "type": "function",
1257
+ "name": "unregisterSystemHook",
1258
+ "inputs": [
1259
+ {
1260
+ "name": "systemId",
1261
+ "type": "bytes32",
1262
+ "internalType": "ResourceId"
1263
+ },
1264
+ {
1265
+ "name": "hookAddress",
1266
+ "type": "address",
1267
+ "internalType": "contract ISystemHook"
1268
+ }
1269
+ ],
1270
+ "outputs": [],
1271
+ "stateMutability": "nonpayable"
1272
+ },
873
1273
  {
874
1274
  "type": "function",
875
1275
  "name": "worldVersion",