@latticexyz/world-modules 2.0.0-main-970aa105 → 2.0.0-main-44236041

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 (135) hide show
  1. package/out/AccessControl.sol/AccessControl.json +1 -1
  2. package/out/AccessControlLib.sol/AccessControlLib.json +1 -1
  3. package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
  4. package/out/AddressArray.sol/AddressArray.json +1 -1
  5. package/out/Allowances.sol/Allowances.json +1 -1
  6. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
  7. package/out/Balances.sol/Balances.json +1 -1
  8. package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
  9. package/out/Bool.sol/Bool.json +1 -1
  10. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +1 -1
  11. package/out/CallboundDelegations.sol/CallboundDelegations.json +1 -1
  12. package/out/Delegation.sol/Delegation.json +1 -1
  13. package/out/DelegationControl.sol/DelegationControl.json +1 -1
  14. package/out/DelegationControlMock.sol/DelegationControlMock.json +1 -1
  15. package/out/ERC20.t.sol/ERC20Test.json +1 -1
  16. package/out/ERC20Metadata.sol/ERC20Metadata.json +1 -1
  17. package/out/ERC20Module.sol/ERC20Module.json +1 -1
  18. package/out/ERC20Module.sol/ERC20ModuleRegistrationLibrary.json +1 -1
  19. package/out/ERC20Registry.sol/ERC20Registry.json +1 -1
  20. package/out/ERC20System.sol/ERC20System.json +1 -1
  21. package/out/ERC721.t.sol/ERC721Recipient.json +1 -1
  22. package/out/ERC721.t.sol/ERC721Test.json +1 -1
  23. package/out/ERC721.t.sol/ERC721TokenReceiver.json +1 -1
  24. package/out/ERC721.t.sol/NonERC721Recipient.json +1 -1
  25. package/out/ERC721.t.sol/RevertingERC721Recipient.json +1 -1
  26. package/out/ERC721.t.sol/WrongReturnDataERC721Recipient.json +1 -1
  27. package/out/ERC721Metadata.sol/ERC721Metadata.json +1 -1
  28. package/out/ERC721Module.sol/ERC721Module.json +1 -1
  29. package/out/ERC721Module.sol/ERC721ModuleRegistrationLibrary.json +1 -1
  30. package/out/ERC721Registry.sol/ERC721Registry.json +1 -1
  31. package/out/ERC721System.sol/ERC721System.json +1 -1
  32. package/out/FunctionSelectors.sol/FunctionSelectors.json +1 -1
  33. package/out/FunctionSignatures.sol/FunctionSignatures.json +1 -1
  34. package/out/Hook.sol/HookInstance.json +1 -1
  35. package/out/Hook.sol/HookLib.json +1 -1
  36. package/out/Hooks.sol/Hooks.json +1 -1
  37. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +1 -1
  38. package/out/InitModule.sol/InitModule.json +1 -1
  39. package/out/InitModuleAddress.sol/InitModuleAddress.json +1 -1
  40. package/out/InstalledModules.sol/InstalledModules.json +1 -1
  41. package/out/KeysInTable.sol/KeysInTable.json +1 -1
  42. package/out/KeysInTableHook.sol/KeysInTableHook.json +1 -1
  43. package/out/KeysInTableModule.sol/KeysInTableModule.json +1 -1
  44. package/out/KeysInTableModule.t.sol/KeysInTableModuleTest.json +1 -1
  45. package/out/KeysWithValue.sol/KeysWithValue.json +1 -1
  46. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1 -1
  47. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +1 -1
  48. package/out/KeysWithValueModule.t.sol/KeysWithValueModuleTest.json +1 -1
  49. package/out/Module.sol/Module.json +1 -1
  50. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +1 -1
  51. package/out/NamespaceDelegationControl.sol/NamespaceDelegationControl.json +1 -1
  52. package/out/NamespaceOwner.sol/NamespaceOwner.json +1 -1
  53. package/out/OperatorApproval.sol/OperatorApproval.json +1 -1
  54. package/out/Owners.sol/Owners.json +1 -1
  55. package/out/Puppet.sol/Puppet.json +1 -1
  56. package/out/PuppetDelegationControl.sol/PuppetDelegationControl.json +1 -1
  57. package/out/PuppetFactorySystem.sol/PuppetFactorySystem.json +1 -1
  58. package/out/PuppetMaster.sol/PuppetMaster.json +1 -1
  59. package/out/PuppetModule.sol/PuppetModule.json +1 -1
  60. package/out/PuppetModule.t.sol/PuppetModuleTest.json +1 -1
  61. package/out/PuppetModule.t.sol/PuppetTestSystem.json +1 -1
  62. package/out/PuppetRegistry.sol/PuppetRegistry.json +1 -1
  63. package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
  64. package/out/ResourceAccess.sol/ResourceAccess.json +1 -1
  65. package/out/ResourceIds.sol/ResourceIds.json +1 -1
  66. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +1 -1
  67. package/out/StandardDelegationsModule.t.sol/StandardDelegationsModuleTest.json +1 -1
  68. package/out/StoreCore.sol/StoreCore.json +1 -1
  69. package/out/StoreCore.sol/StoreCoreInternal.json +1 -1
  70. package/out/StoreData.sol/StoreData.json +1 -1
  71. package/out/StoreHooks.sol/StoreHooks.json +1 -1
  72. package/out/StoreRead.sol/StoreRead.json +1 -1
  73. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +1 -1
  74. package/out/StoreSwitch.sol/StoreSwitch.json +1 -1
  75. package/out/System.sol/System.json +1 -1
  76. package/out/SystemCall.sol/SystemCall.json +1 -1
  77. package/out/SystemHooks.sol/SystemHooks.json +1 -1
  78. package/out/SystemRegistry.sol/SystemRegistry.json +1 -1
  79. package/out/SystemSwitch.sol/SystemSwitch.json +1 -1
  80. package/out/SystemSwitch.t.sol/EchoSystem.json +1 -1
  81. package/out/SystemSwitch.t.sol/SystemSwitchTest.json +1 -1
  82. package/out/SystemboundDelegationControl.sol/SystemboundDelegationControl.json +1 -1
  83. package/out/SystemboundDelegations.sol/SystemboundDelegations.json +1 -1
  84. package/out/Systems.sol/Systems.json +1 -1
  85. package/out/Tables.sol/Tables.json +1 -1
  86. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +1 -1
  87. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1 -1
  88. package/out/TokenApproval.sol/TokenApproval.json +1 -1
  89. package/out/TokenURI.sol/TokenURI.json +1 -1
  90. package/out/TotalSupply.sol/TotalSupply.json +1 -1
  91. package/out/TwoFields.sol/TwoFields.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/UsedKeysIndex.sol/UsedKeysIndex.json +1 -1
  98. package/out/UserDelegationControl.sol/UserDelegationControl.json +1 -1
  99. package/out/World.sol/World.json +1 -1
  100. package/out/World.t.sol/EchoSystemHook.json +1 -1
  101. package/out/World.t.sol/IWorldTestSystem.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/WorldContext.sol/WorldContextConsumer.json +1 -1
  107. package/out/WorldContext.sol/WorldContextConsumerLib.json +1 -1
  108. package/out/WorldContext.sol/WorldContextProviderLib.json +1 -1
  109. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1 -1
  110. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +1 -1
  111. package/out/query.t.sol/QueryTest.json +1 -1
  112. package/out/tables/Balances.sol/Balances.json +1 -1
  113. package/package.json +8 -8
  114. package/src/index.sol +5 -5
  115. package/src/modules/erc20-puppet/tables/Allowances.sol +2 -11
  116. package/src/modules/erc20-puppet/tables/ERC20Metadata.sol +2 -11
  117. package/src/modules/erc20-puppet/tables/ERC20Registry.sol +2 -11
  118. package/src/modules/erc20-puppet/tables/TotalSupply.sol +2 -11
  119. package/src/modules/erc721-puppet/tables/ERC721Metadata.sol +2 -11
  120. package/src/modules/erc721-puppet/tables/ERC721Registry.sol +2 -11
  121. package/src/modules/erc721-puppet/tables/OperatorApproval.sol +2 -11
  122. package/src/modules/erc721-puppet/tables/Owners.sol +2 -11
  123. package/src/modules/erc721-puppet/tables/TokenApproval.sol +2 -11
  124. package/src/modules/erc721-puppet/tables/TokenURI.sol +2 -11
  125. package/src/modules/keysintable/KeysInTableModule.sol +9 -9
  126. package/src/modules/keysintable/tables/KeysInTable.sol +5 -15
  127. package/src/modules/keysintable/tables/UsedKeysIndex.sol +5 -15
  128. package/src/modules/keyswithvalue/KeysWithValueModule.sol +1 -1
  129. package/src/modules/keyswithvalue/tables/KeysWithValue.sol +2 -11
  130. package/src/modules/puppet/tables/PuppetRegistry.sol +2 -11
  131. package/src/modules/std-delegations/tables/CallboundDelegations.sol +5 -15
  132. package/src/modules/std-delegations/tables/SystemboundDelegations.sol +5 -15
  133. package/src/modules/std-delegations/tables/TimeboundDelegations.sol +5 -15
  134. package/src/modules/tokens/tables/Balances.sol +2 -11
  135. package/src/modules/uniqueentity/tables/UniqueEntity.sol +2 -11
@@ -22,22 +22,12 @@ import { ResourceId } from "@latticexyz/store/src/ResourceId.sol";
22
22
  // Import user types
23
23
  import { ResourceId } from "@latticexyz/store/src/ResourceId.sol";
24
24
 
25
- // Hex below is the result of `WorldResourceIdLib.encode({ namespace: "", name: "CallboundDelegat", typeId: RESOURCE_TABLE });`
26
- ResourceId constant _tableId = ResourceId.wrap(0x7462000000000000000000000000000043616c6c626f756e6444656c65676174);
27
- ResourceId constant CallboundDelegationsTableId = _tableId;
28
-
29
- FieldLayout constant _fieldLayout = FieldLayout.wrap(
30
- 0x0020010020000000000000000000000000000000000000000000000000000000
31
- );
32
-
33
25
  library CallboundDelegations {
34
- /**
35
- * @notice Get the table values' field layout.
36
- * @return _fieldLayout The field layout for the table.
37
- */
38
- function getFieldLayout() internal pure returns (FieldLayout) {
39
- return _fieldLayout;
40
- }
26
+ // Hex below is the result of `WorldResourceIdLib.encode({ namespace: "", name: "CallboundDelegat", typeId: RESOURCE_TABLE });`
27
+ ResourceId constant _tableId = ResourceId.wrap(0x7462000000000000000000000000000043616c6c626f756e6444656c65676174);
28
+
29
+ FieldLayout constant _fieldLayout =
30
+ FieldLayout.wrap(0x0020010020000000000000000000000000000000000000000000000000000000);
41
31
 
42
32
  /**
43
33
  * @notice Get the table's key schema.
@@ -22,22 +22,12 @@ import { ResourceId } from "@latticexyz/store/src/ResourceId.sol";
22
22
  // Import user types
23
23
  import { ResourceId } from "@latticexyz/store/src/ResourceId.sol";
24
24
 
25
- // Hex below is the result of `WorldResourceIdLib.encode({ namespace: "", name: "SystemboundDeleg", typeId: RESOURCE_TABLE });`
26
- ResourceId constant _tableId = ResourceId.wrap(0x7462000000000000000000000000000053797374656d626f756e6444656c6567);
27
- ResourceId constant SystemboundDelegationsTableId = _tableId;
28
-
29
- FieldLayout constant _fieldLayout = FieldLayout.wrap(
30
- 0x0020010020000000000000000000000000000000000000000000000000000000
31
- );
32
-
33
25
  library SystemboundDelegations {
34
- /**
35
- * @notice Get the table values' field layout.
36
- * @return _fieldLayout The field layout for the table.
37
- */
38
- function getFieldLayout() internal pure returns (FieldLayout) {
39
- return _fieldLayout;
40
- }
26
+ // Hex below is the result of `WorldResourceIdLib.encode({ namespace: "", name: "SystemboundDeleg", typeId: RESOURCE_TABLE });`
27
+ ResourceId constant _tableId = ResourceId.wrap(0x7462000000000000000000000000000053797374656d626f756e6444656c6567);
28
+
29
+ FieldLayout constant _fieldLayout =
30
+ FieldLayout.wrap(0x0020010020000000000000000000000000000000000000000000000000000000);
41
31
 
42
32
  /**
43
33
  * @notice Get the table's key schema.
@@ -19,22 +19,12 @@ import { Schema, SchemaLib } from "@latticexyz/store/src/Schema.sol";
19
19
  import { PackedCounter, PackedCounterLib } from "@latticexyz/store/src/PackedCounter.sol";
20
20
  import { ResourceId } from "@latticexyz/store/src/ResourceId.sol";
21
21
 
22
- // Hex below is the result of `WorldResourceIdLib.encode({ namespace: "", name: "TimeboundDelegat", typeId: RESOURCE_TABLE });`
23
- ResourceId constant _tableId = ResourceId.wrap(0x7462000000000000000000000000000054696d65626f756e6444656c65676174);
24
- ResourceId constant TimeboundDelegationsTableId = _tableId;
25
-
26
- FieldLayout constant _fieldLayout = FieldLayout.wrap(
27
- 0x0020010020000000000000000000000000000000000000000000000000000000
28
- );
29
-
30
22
  library TimeboundDelegations {
31
- /**
32
- * @notice Get the table values' field layout.
33
- * @return _fieldLayout The field layout for the table.
34
- */
35
- function getFieldLayout() internal pure returns (FieldLayout) {
36
- return _fieldLayout;
37
- }
23
+ // Hex below is the result of `WorldResourceIdLib.encode({ namespace: "", name: "TimeboundDelegat", typeId: RESOURCE_TABLE });`
24
+ ResourceId constant _tableId = ResourceId.wrap(0x7462000000000000000000000000000054696d65626f756e6444656c65676174);
25
+
26
+ FieldLayout constant _fieldLayout =
27
+ FieldLayout.wrap(0x0020010020000000000000000000000000000000000000000000000000000000);
38
28
 
39
29
  /**
40
30
  * @notice Get the table's key schema.
@@ -19,18 +19,9 @@ import { Schema, SchemaLib } from "@latticexyz/store/src/Schema.sol";
19
19
  import { PackedCounter, PackedCounterLib } from "@latticexyz/store/src/PackedCounter.sol";
20
20
  import { ResourceId } from "@latticexyz/store/src/ResourceId.sol";
21
21
 
22
- FieldLayout constant _fieldLayout = FieldLayout.wrap(
23
- 0x0020010020000000000000000000000000000000000000000000000000000000
24
- );
25
-
26
22
  library Balances {
27
- /**
28
- * @notice Get the table values' field layout.
29
- * @return _fieldLayout The field layout for the table.
30
- */
31
- function getFieldLayout() internal pure returns (FieldLayout) {
32
- return _fieldLayout;
33
- }
23
+ FieldLayout constant _fieldLayout =
24
+ FieldLayout.wrap(0x0020010020000000000000000000000000000000000000000000000000000000);
34
25
 
35
26
  /**
36
27
  * @notice Get the table's key schema.
@@ -19,18 +19,9 @@ import { Schema, SchemaLib } from "@latticexyz/store/src/Schema.sol";
19
19
  import { PackedCounter, PackedCounterLib } from "@latticexyz/store/src/PackedCounter.sol";
20
20
  import { ResourceId } from "@latticexyz/store/src/ResourceId.sol";
21
21
 
22
- FieldLayout constant _fieldLayout = FieldLayout.wrap(
23
- 0x0020010020000000000000000000000000000000000000000000000000000000
24
- );
25
-
26
22
  library UniqueEntity {
27
- /**
28
- * @notice Get the table values' field layout.
29
- * @return _fieldLayout The field layout for the table.
30
- */
31
- function getFieldLayout() internal pure returns (FieldLayout) {
32
- return _fieldLayout;
33
- }
23
+ FieldLayout constant _fieldLayout =
24
+ FieldLayout.wrap(0x0020010020000000000000000000000000000000000000000000000000000000);
34
25
 
35
26
  /**
36
27
  * @notice Get the table's key schema.