@latticexyz/world-modules 2.0.0-main-970aa105 → 2.0.0-main-2e288aa7
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.
- package/out/AccessControl.sol/AccessControl.json +1 -1
- package/out/AccessControlLib.sol/AccessControlLib.json +1 -1
- package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
- package/out/AddressArray.sol/AddressArray.json +1 -1
- package/out/Allowances.sol/Allowances.json +1 -1
- package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
- package/out/Balances.sol/Balances.json +1 -1
- package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
- package/out/Bool.sol/Bool.json +1 -1
- package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +1 -1
- package/out/CallboundDelegations.sol/CallboundDelegations.json +1 -1
- package/out/DecodeSlice.sol/DecodeSlice.json +1 -1
- package/out/Delegation.sol/Delegation.json +1 -1
- package/out/DelegationControl.sol/DelegationControl.json +1 -1
- package/out/DelegationControlMock.sol/DelegationControlMock.json +1 -1
- package/out/ERC20.t.sol/ERC20Test.json +1 -1
- package/out/ERC20Metadata.sol/ERC20Metadata.json +1 -1
- package/out/ERC20Module.sol/ERC20Module.abi.json +9 -9
- package/out/ERC20Module.sol/ERC20Module.abi.json.d.ts +9 -9
- package/out/ERC20Module.sol/ERC20Module.json +1 -1
- package/out/ERC20Module.sol/ERC20ModuleRegistrationLibrary.abi.json +9 -9
- package/out/ERC20Module.sol/ERC20ModuleRegistrationLibrary.abi.json.d.ts +9 -9
- package/out/ERC20Module.sol/ERC20ModuleRegistrationLibrary.json +1 -1
- package/out/ERC20Registry.sol/ERC20Registry.json +1 -1
- package/out/ERC20System.sol/ERC20System.json +1 -1
- package/out/ERC721.t.sol/ERC721Recipient.json +1 -1
- package/out/ERC721.t.sol/ERC721Test.json +1 -1
- package/out/ERC721.t.sol/ERC721TokenReceiver.json +1 -1
- package/out/ERC721.t.sol/NonERC721Recipient.json +1 -1
- package/out/ERC721.t.sol/RevertingERC721Recipient.json +1 -1
- package/out/ERC721.t.sol/WrongReturnDataERC721Recipient.json +1 -1
- package/out/ERC721Metadata.sol/ERC721Metadata.json +1 -1
- package/out/ERC721Module.sol/ERC721Module.abi.json +9 -9
- package/out/ERC721Module.sol/ERC721Module.abi.json.d.ts +9 -9
- package/out/ERC721Module.sol/ERC721Module.json +1 -1
- package/out/ERC721Module.sol/ERC721ModuleRegistrationLibrary.abi.json +9 -9
- package/out/ERC721Module.sol/ERC721ModuleRegistrationLibrary.abi.json.d.ts +9 -9
- package/out/ERC721Module.sol/ERC721ModuleRegistrationLibrary.json +1 -1
- package/out/ERC721Registry.sol/ERC721Registry.json +1 -1
- package/out/ERC721System.sol/ERC721System.json +1 -1
- package/out/EchoSubscriber.sol/EchoSubscriber.abi.json +5 -0
- package/out/EchoSubscriber.sol/EchoSubscriber.abi.json.d.ts +5 -0
- package/out/EchoSubscriber.sol/EchoSubscriber.json +1 -1
- package/out/EncodeArray.sol/EncodeArray.json +1 -1
- package/out/FieldLayout.sol/FieldLayoutInstance.json +1 -1
- package/out/FieldLayout.sol/FieldLayoutLib.abi.json +88 -1
- package/out/FieldLayout.sol/FieldLayoutLib.abi.json.d.ts +88 -0
- package/out/FieldLayout.sol/FieldLayoutLib.json +1 -1
- package/out/FieldLayoutEncodeHelper.sol/FieldLayoutEncodeHelper.json +1 -1
- package/out/FunctionSelectors.sol/FunctionSelectors.json +1 -1
- package/out/FunctionSignatures.sol/FunctionSignatures.json +1 -1
- package/out/Hook.sol/HookInstance.json +1 -1
- package/out/Hook.sol/HookLib.json +1 -1
- package/out/Hooks.sol/Hooks.json +1 -1
- package/out/IBaseWorld.sol/IBaseWorld.json +1 -1
- package/out/IStore.sol/IStore.json +1 -1
- package/out/IStoreData.sol/IStoreData.json +1 -1
- package/out/IStoreEvents.sol/IStoreEvents.json +1 -1
- package/out/IStoreHook.sol/IStoreHook.abi.json +5 -0
- package/out/IStoreHook.sol/IStoreHook.abi.json.d.ts +5 -0
- package/out/IStoreHook.sol/IStoreHook.json +1 -1
- package/out/IStoreRead.sol/IStoreRead.json +1 -1
- package/out/IStoreRegistration.sol/IStoreRegistration.json +1 -1
- package/out/IStoreWrite.sol/IStoreWrite.json +1 -1
- package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +1 -1
- package/out/InitModule.sol/InitModule.abi.json +9 -9
- package/out/InitModule.sol/InitModule.abi.json.d.ts +9 -9
- package/out/InitModule.sol/InitModule.json +1 -1
- package/out/InitModuleAddress.sol/InitModuleAddress.json +1 -1
- package/out/InstalledModules.sol/InstalledModules.json +1 -1
- package/out/KeysInTable.sol/KeysInTable.json +1 -1
- package/out/KeysInTableHook.sol/KeysInTableHook.json +1 -1
- package/out/KeysInTableModule.sol/KeysInTableModule.abi.json +2 -2
- package/out/KeysInTableModule.sol/KeysInTableModule.abi.json.d.ts +2 -2
- package/out/KeysInTableModule.sol/KeysInTableModule.json +1 -1
- package/out/KeysInTableModule.t.sol/KeysInTableModuleTest.abi.json +6 -6
- package/out/KeysInTableModule.t.sol/KeysInTableModuleTest.abi.json.d.ts +6 -6
- package/out/KeysInTableModule.t.sol/KeysInTableModuleTest.json +1 -1
- package/out/KeysWithValue.sol/KeysWithValue.json +1 -1
- package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1 -1
- package/out/KeysWithValueModule.sol/KeysWithValueModule.abi.json +2 -2
- package/out/KeysWithValueModule.sol/KeysWithValueModule.abi.json.d.ts +2 -2
- package/out/KeysWithValueModule.sol/KeysWithValueModule.json +1 -1
- package/out/KeysWithValueModule.t.sol/KeysWithValueModuleTest.abi.json +6 -6
- package/out/KeysWithValueModule.t.sol/KeysWithValueModuleTest.abi.json.d.ts +6 -6
- package/out/KeysWithValueModule.t.sol/KeysWithValueModuleTest.json +1 -1
- package/out/Module.sol/Module.json +1 -1
- package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +1 -1
- package/out/NamespaceDelegationControl.sol/NamespaceDelegationControl.json +1 -1
- package/out/NamespaceOwner.sol/NamespaceOwner.json +1 -1
- package/out/OperatorApproval.sol/OperatorApproval.json +1 -1
- package/out/Owners.sol/Owners.json +1 -1
- package/out/PackedCounter.sol/PackedCounterInstance.abi.json +13 -1
- package/out/PackedCounter.sol/PackedCounterInstance.abi.json.d.ts +13 -0
- package/out/PackedCounter.sol/PackedCounterInstance.json +1 -1
- package/out/PackedCounter.sol/PackedCounterLib.json +1 -1
- package/out/Puppet.sol/Puppet.json +1 -1
- package/out/PuppetDelegationControl.sol/PuppetDelegationControl.json +1 -1
- package/out/PuppetFactorySystem.sol/PuppetFactorySystem.json +1 -1
- package/out/PuppetMaster.sol/PuppetMaster.abi.json +18 -1
- package/out/PuppetMaster.sol/PuppetMaster.abi.json.d.ts +18 -0
- package/out/PuppetMaster.sol/PuppetMaster.json +1 -1
- package/out/PuppetModule.sol/PuppetModule.abi.json +9 -9
- package/out/PuppetModule.sol/PuppetModule.abi.json.d.ts +9 -9
- package/out/PuppetModule.sol/PuppetModule.json +1 -1
- package/out/PuppetModule.t.sol/PuppetModuleTest.json +1 -1
- package/out/PuppetModule.t.sol/PuppetTestSystem.json +1 -1
- package/out/PuppetRegistry.sol/PuppetRegistry.json +1 -1
- package/out/RegistrationSystem.sol/RegistrationSystem.abi.json +9 -9
- package/out/RegistrationSystem.sol/RegistrationSystem.abi.json.d.ts +9 -9
- package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
- package/out/ResourceAccess.sol/ResourceAccess.json +1 -1
- package/out/ResourceIds.sol/ResourceIds.json +1 -1
- package/out/RevertSubscriber.sol/RevertSubscriber.abi.json +5 -0
- package/out/RevertSubscriber.sol/RevertSubscriber.abi.json.d.ts +5 -0
- package/out/RevertSubscriber.sol/RevertSubscriber.json +1 -1
- package/out/Schema.sol/SchemaInstance.json +1 -1
- package/out/Schema.sol/SchemaLib.abi.json +18 -1
- package/out/Schema.sol/SchemaLib.abi.json.d.ts +18 -0
- package/out/Schema.sol/SchemaLib.json +1 -1
- package/out/SchemaEncodeHelper.sol/SchemaEncodeHelper.json +1 -1
- package/out/Slice.sol/SliceInstance.json +1 -1
- package/out/Slice.sol/SliceLib.abi.json +23 -1
- package/out/Slice.sol/SliceLib.abi.json.d.ts +23 -0
- package/out/Slice.sol/SliceLib.json +1 -1
- package/out/StandardDelegationsModule.sol/StandardDelegationsModule.abi.json +9 -9
- package/out/StandardDelegationsModule.sol/StandardDelegationsModule.abi.json.d.ts +9 -9
- package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +1 -1
- package/out/StandardDelegationsModule.t.sol/StandardDelegationsModuleTest.json +1 -1
- package/out/StoreCore.sol/StoreCore.json +1 -1
- package/out/StoreCore.sol/StoreCoreInternal.json +1 -1
- package/out/StoreData.sol/StoreData.json +1 -1
- package/out/StoreHook.sol/StoreHook.json +1 -1
- package/out/StoreHooks.sol/StoreHooks.json +1 -1
- package/out/StoreRead.sol/StoreRead.json +1 -1
- package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.abi.json +9 -9
- package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.abi.json.d.ts +9 -9
- package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +1 -1
- package/out/StoreSwitch.sol/StoreSwitch.json +1 -1
- package/out/System.sol/System.json +1 -1
- package/out/SystemCall.sol/SystemCall.json +1 -1
- package/out/SystemHooks.sol/SystemHooks.json +1 -1
- package/out/SystemRegistry.sol/SystemRegistry.json +1 -1
- package/out/SystemSwitch.sol/SystemSwitch.json +1 -1
- package/out/SystemSwitch.t.sol/EchoSystem.json +1 -1
- package/out/SystemSwitch.t.sol/SystemSwitchTest.abi.json +2 -2
- package/out/SystemSwitch.t.sol/SystemSwitchTest.abi.json.d.ts +2 -2
- package/out/SystemSwitch.t.sol/SystemSwitchTest.json +1 -1
- package/out/SystemboundDelegationControl.sol/SystemboundDelegationControl.json +1 -1
- package/out/SystemboundDelegations.sol/SystemboundDelegations.json +1 -1
- package/out/Systems.sol/Systems.json +1 -1
- package/out/Tables.sol/Tables.json +1 -1
- package/out/TightCoder.sol/TightCoder.json +1 -1
- package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +1 -1
- package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1 -1
- package/out/TokenApproval.sol/TokenApproval.json +1 -1
- package/out/TokenURI.sol/TokenURI.json +1 -1
- package/out/TotalSupply.sol/TotalSupply.json +1 -1
- package/out/TwoFields.sol/TwoFields.json +1 -1
- package/out/UniqueEntity.sol/UniqueEntity.json +1 -1
- package/out/UniqueEntityModule.sol/UniqueEntityModule.abi.json +9 -9
- package/out/UniqueEntityModule.sol/UniqueEntityModule.abi.json.d.ts +9 -9
- package/out/UniqueEntityModule.sol/UniqueEntityModule.json +1 -1
- package/out/UniqueEntityModule.t.sol/UniqueEntityModuleTest.json +1 -1
- package/out/UniqueEntityModule.t.sol/UniqueEntityTestSystem.json +1 -1
- package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +1 -1
- package/out/UsedKeysIndex.sol/UsedKeysIndex.json +1 -1
- package/out/UserDelegationControl.sol/UserDelegationControl.json +1 -1
- package/out/World.sol/World.json +1 -1
- package/out/World.t.sol/EchoSystemHook.json +1 -1
- package/out/World.t.sol/IWorldTestSystem.json +1 -1
- package/out/World.t.sol/PayableFallbackSystem.json +1 -1
- package/out/World.t.sol/RevertSystemHook.json +1 -1
- package/out/World.t.sol/WorldTest.abi.json +6 -6
- package/out/World.t.sol/WorldTest.abi.json.d.ts +6 -6
- package/out/World.t.sol/WorldTest.json +1 -1
- package/out/World.t.sol/WorldTestSystem.json +1 -1
- package/out/WorldContext.sol/WorldContextConsumer.json +1 -1
- package/out/WorldContext.sol/WorldContextConsumerLib.json +1 -1
- package/out/WorldContext.sol/WorldContextProviderLib.json +1 -1
- package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1 -1
- package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +1 -1
- package/out/query.t.sol/QueryTest.abi.json +6 -6
- package/out/query.t.sol/QueryTest.abi.json.d.ts +6 -6
- package/out/query.t.sol/QueryTest.json +1 -1
- package/out/tables/Balances.sol/Balances.json +1 -1
- package/package.json +8 -8
- package/src/index.sol +5 -5
- package/src/modules/erc20-puppet/ERC20Module.sol +2 -2
- package/src/modules/erc20-puppet/tables/Allowances.sol +2 -11
- package/src/modules/erc20-puppet/tables/ERC20Metadata.sol +2 -11
- package/src/modules/erc20-puppet/tables/ERC20Registry.sol +2 -11
- package/src/modules/erc20-puppet/tables/TotalSupply.sol +2 -11
- package/src/modules/erc721-puppet/ERC721Module.sol +2 -2
- package/src/modules/erc721-puppet/tables/ERC721Metadata.sol +2 -11
- package/src/modules/erc721-puppet/tables/ERC721Registry.sol +2 -11
- package/src/modules/erc721-puppet/tables/OperatorApproval.sol +2 -11
- package/src/modules/erc721-puppet/tables/Owners.sol +2 -11
- package/src/modules/erc721-puppet/tables/TokenApproval.sol +2 -11
- package/src/modules/erc721-puppet/tables/TokenURI.sol +2 -11
- package/src/modules/keysintable/KeysInTableModule.sol +9 -9
- package/src/modules/keysintable/tables/KeysInTable.sol +5 -15
- package/src/modules/keysintable/tables/UsedKeysIndex.sol +5 -15
- package/src/modules/keyswithvalue/KeysWithValueModule.sol +1 -1
- package/src/modules/keyswithvalue/tables/KeysWithValue.sol +2 -11
- package/src/modules/puppet/Puppet.sol +2 -2
- package/src/modules/puppet/PuppetMaster.sol +2 -2
- package/src/modules/puppet/tables/PuppetRegistry.sol +2 -11
- package/src/modules/std-delegations/tables/CallboundDelegations.sol +5 -15
- package/src/modules/std-delegations/tables/SystemboundDelegations.sol +5 -15
- package/src/modules/std-delegations/tables/TimeboundDelegations.sol +5 -15
- package/src/modules/tokens/tables/Balances.sol +2 -11
- package/src/modules/uniqueentity/tables/UniqueEntity.sol +2 -11
@@ -7,9 +7,9 @@ import { PuppetRegistry } from "./tables/PuppetRegistry.sol";
|
|
7
7
|
import { PUPPET_TABLE_ID } from "./constants.sol";
|
8
8
|
import { Puppet } from "./Puppet.sol";
|
9
9
|
|
10
|
-
error PuppetMaster_NoPuppet(address systemAddress, ResourceId systemId);
|
11
|
-
|
12
10
|
contract PuppetMaster {
|
11
|
+
error PuppetMaster_NoPuppet(address systemAddress, ResourceId systemId);
|
12
|
+
|
13
13
|
function puppet() internal view returns (Puppet) {
|
14
14
|
ResourceId systemId = SystemRegistry.getSystemId(address(this));
|
15
15
|
address puppetAddress = PuppetRegistry.get(PUPPET_TABLE_ID, systemId);
|
@@ -22,18 +22,9 @@ 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
|
-
FieldLayout constant _fieldLayout = FieldLayout.wrap(
|
26
|
-
0x0014010014000000000000000000000000000000000000000000000000000000
|
27
|
-
);
|
28
|
-
|
29
25
|
library PuppetRegistry {
|
30
|
-
|
31
|
-
|
32
|
-
* @return _fieldLayout The field layout for the table.
|
33
|
-
*/
|
34
|
-
function getFieldLayout() internal pure returns (FieldLayout) {
|
35
|
-
return _fieldLayout;
|
36
|
-
}
|
26
|
+
FieldLayout constant _fieldLayout =
|
27
|
+
FieldLayout.wrap(0x0014010014000000000000000000000000000000000000000000000000000000);
|
37
28
|
|
38
29
|
/**
|
39
30
|
* @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: "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
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
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
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
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
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
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
|
-
|
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
|
-
|
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.
|