@latticexyz/world-modules 2.0.0-main-462c9ec5 → 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.
- 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 +0 -5
- package/out/EchoSubscriber.sol/EchoSubscriber.abi.json.d.ts +0 -5
- 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 +1 -88
- 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 +0 -5
- package/out/IStoreHook.sol/IStoreHook.abi.json.d.ts +0 -5
- 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 +1 -13
- 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 +1 -18
- 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 +0 -5
- package/out/RevertSubscriber.sol/RevertSubscriber.abi.json.d.ts +0 -5
- package/out/RevertSubscriber.sol/RevertSubscriber.json +1 -1
- package/out/Schema.sol/SchemaInstance.json +1 -1
- package/out/Schema.sol/SchemaLib.abi.json +1 -18
- 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 +1 -23
- 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
- package/out/FieldLayout.sol/FieldLayoutLib.abi.json.d.ts +0 -88
- package/out/PackedCounter.sol/PackedCounterInstance.abi.json.d.ts +0 -13
- package/out/PuppetMaster.sol/PuppetMaster.abi.json.d.ts +0 -18
- package/out/Schema.sol/SchemaLib.abi.json.d.ts +0 -18
- package/out/Slice.sol/SliceLib.abi.json.d.ts +0 -23
@@ -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
|
-
|
11
|
-
error PuppetMaster_NoPuppet(address systemAddress, ResourceId systemId);
|
10
|
+
error PuppetMaster_NoPuppet(address systemAddress, ResourceId systemId);
|
12
11
|
|
12
|
+
contract PuppetMaster {
|
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.
|
@@ -1,88 +0,0 @@
|
|
1
|
-
declare const abi: [
|
2
|
-
{
|
3
|
-
"type": "error",
|
4
|
-
"name": "FieldLayoutLib_Empty",
|
5
|
-
"inputs": []
|
6
|
-
},
|
7
|
-
{
|
8
|
-
"type": "error",
|
9
|
-
"name": "FieldLayoutLib_InvalidStaticDataLength",
|
10
|
-
"inputs": [
|
11
|
-
{
|
12
|
-
"name": "staticDataLength",
|
13
|
-
"type": "uint256",
|
14
|
-
"internalType": "uint256"
|
15
|
-
},
|
16
|
-
{
|
17
|
-
"name": "computedStaticDataLength",
|
18
|
-
"type": "uint256",
|
19
|
-
"internalType": "uint256"
|
20
|
-
}
|
21
|
-
]
|
22
|
-
},
|
23
|
-
{
|
24
|
-
"type": "error",
|
25
|
-
"name": "FieldLayoutLib_StaticLengthDoesNotFitInAWord",
|
26
|
-
"inputs": [
|
27
|
-
{
|
28
|
-
"name": "index",
|
29
|
-
"type": "uint256",
|
30
|
-
"internalType": "uint256"
|
31
|
-
}
|
32
|
-
]
|
33
|
-
},
|
34
|
-
{
|
35
|
-
"type": "error",
|
36
|
-
"name": "FieldLayoutLib_StaticLengthIsNotZero",
|
37
|
-
"inputs": [
|
38
|
-
{
|
39
|
-
"name": "index",
|
40
|
-
"type": "uint256",
|
41
|
-
"internalType": "uint256"
|
42
|
-
}
|
43
|
-
]
|
44
|
-
},
|
45
|
-
{
|
46
|
-
"type": "error",
|
47
|
-
"name": "FieldLayoutLib_StaticLengthIsZero",
|
48
|
-
"inputs": [
|
49
|
-
{
|
50
|
-
"name": "index",
|
51
|
-
"type": "uint256",
|
52
|
-
"internalType": "uint256"
|
53
|
-
}
|
54
|
-
]
|
55
|
-
},
|
56
|
-
{
|
57
|
-
"type": "error",
|
58
|
-
"name": "FieldLayoutLib_TooManyDynamicFields",
|
59
|
-
"inputs": [
|
60
|
-
{
|
61
|
-
"name": "numFields",
|
62
|
-
"type": "uint256",
|
63
|
-
"internalType": "uint256"
|
64
|
-
},
|
65
|
-
{
|
66
|
-
"name": "maxFields",
|
67
|
-
"type": "uint256",
|
68
|
-
"internalType": "uint256"
|
69
|
-
}
|
70
|
-
]
|
71
|
-
},
|
72
|
-
{
|
73
|
-
"type": "error",
|
74
|
-
"name": "FieldLayoutLib_TooManyFields",
|
75
|
-
"inputs": [
|
76
|
-
{
|
77
|
-
"name": "numFields",
|
78
|
-
"type": "uint256",
|
79
|
-
"internalType": "uint256"
|
80
|
-
},
|
81
|
-
{
|
82
|
-
"name": "maxFields",
|
83
|
-
"type": "uint256",
|
84
|
-
"internalType": "uint256"
|
85
|
-
}
|
86
|
-
]
|
87
|
-
}
|
88
|
-
]; export default abi;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
declare const abi: [
|
2
|
-
{
|
3
|
-
"type": "error",
|
4
|
-
"name": "PuppetMaster_NoPuppet",
|
5
|
-
"inputs": [
|
6
|
-
{
|
7
|
-
"name": "systemAddress",
|
8
|
-
"type": "address",
|
9
|
-
"internalType": "address"
|
10
|
-
},
|
11
|
-
{
|
12
|
-
"name": "systemId",
|
13
|
-
"type": "bytes32",
|
14
|
-
"internalType": "ResourceId"
|
15
|
-
}
|
16
|
-
]
|
17
|
-
}
|
18
|
-
]; export default abi;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
declare const abi: [
|
2
|
-
{
|
3
|
-
"type": "error",
|
4
|
-
"name": "SchemaLib_InvalidLength",
|
5
|
-
"inputs": [
|
6
|
-
{
|
7
|
-
"name": "length",
|
8
|
-
"type": "uint256",
|
9
|
-
"internalType": "uint256"
|
10
|
-
}
|
11
|
-
]
|
12
|
-
},
|
13
|
-
{
|
14
|
-
"type": "error",
|
15
|
-
"name": "SchemaLib_StaticTypeAfterDynamicType",
|
16
|
-
"inputs": []
|
17
|
-
}
|
18
|
-
]; export default abi;
|
@@ -1,23 +0,0 @@
|
|
1
|
-
declare const abi: [
|
2
|
-
{
|
3
|
-
"type": "error",
|
4
|
-
"name": "Slice_OutOfBounds",
|
5
|
-
"inputs": [
|
6
|
-
{
|
7
|
-
"name": "data",
|
8
|
-
"type": "bytes",
|
9
|
-
"internalType": "bytes"
|
10
|
-
},
|
11
|
-
{
|
12
|
-
"name": "start",
|
13
|
-
"type": "uint256",
|
14
|
-
"internalType": "uint256"
|
15
|
-
},
|
16
|
-
{
|
17
|
-
"name": "end",
|
18
|
-
"type": "uint256",
|
19
|
-
"internalType": "uint256"
|
20
|
-
}
|
21
|
-
]
|
22
|
-
}
|
23
|
-
]; export default abi;
|