From 8c840490dbfde35b2174c1b9c9c3d4101b11250e Mon Sep 17 00:00:00 2001 From: Kevin Ingersoll Date: Thu, 21 Sep 2023 18:02:18 +0100 Subject: [PATCH 1/5] replace solc version --- e2e/packages/contracts/foundry.toml | 2 +- examples/minimal/packages/contracts/foundry.toml | 2 +- packages/cli/foundry.toml | 2 +- packages/gas-report/foundry.toml | 2 +- packages/noise/foundry.toml | 2 +- packages/schema-type/foundry.toml | 2 +- packages/store/foundry.toml | 2 +- packages/world/foundry.toml | 2 +- templates/phaser/packages/contracts/foundry.toml | 2 +- templates/react/packages/contracts/foundry.toml | 2 +- templates/threejs/packages/contracts/foundry.toml | 2 +- templates/vanilla/packages/contracts/foundry.toml | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/e2e/packages/contracts/foundry.toml b/e2e/packages/contracts/foundry.toml index 13a401a75f..d0ed548d14 100644 --- a/e2e/packages/contracts/foundry.toml +++ b/e2e/packages/contracts/foundry.toml @@ -1,5 +1,5 @@ [profile.default] -solc_version = "0.8.13" +solc = "0.8.21" ffi = false fuzz_runs = 256 optimizer = true diff --git a/examples/minimal/packages/contracts/foundry.toml b/examples/minimal/packages/contracts/foundry.toml index 851f1b0074..8904c99c97 100644 --- a/examples/minimal/packages/contracts/foundry.toml +++ b/examples/minimal/packages/contracts/foundry.toml @@ -1,5 +1,5 @@ [profile.default] -solc_version = "0.8.13" +solc = "0.8.21" ffi = false fuzz_runs = 256 optimizer = true diff --git a/packages/cli/foundry.toml b/packages/cli/foundry.toml index edd9dc7bbc..5b52f76616 100644 --- a/packages/cli/foundry.toml +++ b/packages/cli/foundry.toml @@ -1,6 +1,6 @@ [profile.default] # check all "WARNING:" comments before changing major solidity versions -solc_version = "0.8.13" +solc = "0.8.21" ffi = false fuzz_runs = 256 optimizer = true diff --git a/packages/gas-report/foundry.toml b/packages/gas-report/foundry.toml index 99e1244225..561e05fc7b 100644 --- a/packages/gas-report/foundry.toml +++ b/packages/gas-report/foundry.toml @@ -1,5 +1,5 @@ [profile.default] -solc_version = '0.8.13' +solc = "0.8.21" ffi = false fuzz_runs = 256 optimizer = true diff --git a/packages/noise/foundry.toml b/packages/noise/foundry.toml index 79cd1475c4..aad1d8ec32 100644 --- a/packages/noise/foundry.toml +++ b/packages/noise/foundry.toml @@ -1,5 +1,5 @@ [profile.default] -solc_version = "0.8.13" +solc = "0.8.21" ffi = false fuzz_runs = 256 optimizer = true diff --git a/packages/schema-type/foundry.toml b/packages/schema-type/foundry.toml index 0653ef0221..e48d006f08 100644 --- a/packages/schema-type/foundry.toml +++ b/packages/schema-type/foundry.toml @@ -1,5 +1,5 @@ [profile.default] -solc_version = "0.8.13" +solc = "0.8.21" ffi = false fuzz_runs = 256 optimizer = true diff --git a/packages/store/foundry.toml b/packages/store/foundry.toml index 99e1244225..561e05fc7b 100644 --- a/packages/store/foundry.toml +++ b/packages/store/foundry.toml @@ -1,5 +1,5 @@ [profile.default] -solc_version = '0.8.13' +solc = "0.8.21" ffi = false fuzz_runs = 256 optimizer = true diff --git a/packages/world/foundry.toml b/packages/world/foundry.toml index 8fcf41188a..3d2a6b756b 100644 --- a/packages/world/foundry.toml +++ b/packages/world/foundry.toml @@ -1,5 +1,5 @@ [profile.default] -solc_version = '0.8.13' +solc = "0.8.21" ffi = false fuzz_runs = 256 optimizer = true diff --git a/templates/phaser/packages/contracts/foundry.toml b/templates/phaser/packages/contracts/foundry.toml index 6b9c911b04..d03fad8043 100644 --- a/templates/phaser/packages/contracts/foundry.toml +++ b/templates/phaser/packages/contracts/foundry.toml @@ -1,5 +1,5 @@ [profile.default] -solc_version = "0.8.13" +solc = "0.8.21" ffi = false fuzz_runs = 256 optimizer = true diff --git a/templates/react/packages/contracts/foundry.toml b/templates/react/packages/contracts/foundry.toml index 6b9c911b04..d03fad8043 100644 --- a/templates/react/packages/contracts/foundry.toml +++ b/templates/react/packages/contracts/foundry.toml @@ -1,5 +1,5 @@ [profile.default] -solc_version = "0.8.13" +solc = "0.8.21" ffi = false fuzz_runs = 256 optimizer = true diff --git a/templates/threejs/packages/contracts/foundry.toml b/templates/threejs/packages/contracts/foundry.toml index 6b9c911b04..d03fad8043 100644 --- a/templates/threejs/packages/contracts/foundry.toml +++ b/templates/threejs/packages/contracts/foundry.toml @@ -1,5 +1,5 @@ [profile.default] -solc_version = "0.8.13" +solc = "0.8.21" ffi = false fuzz_runs = 256 optimizer = true diff --git a/templates/vanilla/packages/contracts/foundry.toml b/templates/vanilla/packages/contracts/foundry.toml index 6b9c911b04..d03fad8043 100644 --- a/templates/vanilla/packages/contracts/foundry.toml +++ b/templates/vanilla/packages/contracts/foundry.toml @@ -1,5 +1,5 @@ [profile.default] -solc_version = "0.8.13" +solc = "0.8.21" ffi = false fuzz_runs = 256 optimizer = true From d69e471c28e3a272ed0963a2c40f8323a5af76ae Mon Sep 17 00:00:00 2001 From: Kevin Ingersoll Date: Thu, 21 Sep 2023 18:04:02 +0100 Subject: [PATCH 2/5] replace solidity pragma --- e2e/packages/contracts/src/CustomTypes.sol | 2 +- e2e/packages/contracts/src/codegen/index.sol | 2 +- e2e/packages/contracts/src/codegen/tables/Multi.sol | 2 +- e2e/packages/contracts/src/codegen/tables/Number.sol | 2 +- e2e/packages/contracts/src/codegen/tables/NumberList.sol | 2 +- e2e/packages/contracts/src/codegen/tables/Vector.sol | 2 +- .../contracts/src/codegen/world/ICustomErrorsSystem.sol | 2 +- e2e/packages/contracts/src/codegen/world/INumberListSystem.sol | 2 +- e2e/packages/contracts/src/codegen/world/IWorld.sol | 2 +- e2e/packages/contracts/src/systems/CustomErrorsSystem.sol | 2 +- e2e/packages/contracts/src/systems/NumberListSystem.sol | 2 +- e2e/packages/contracts/test/Worldgen.t.sol | 2 +- examples/minimal/packages/contracts/script/PostDeploy.s.sol | 2 +- examples/minimal/packages/contracts/src/codegen/index.sol | 2 +- .../packages/contracts/src/codegen/tables/CounterTable.sol | 2 +- .../minimal/packages/contracts/src/codegen/tables/Inventory.sol | 2 +- .../packages/contracts/src/codegen/tables/MessageTable.sol | 2 +- .../packages/contracts/src/codegen/world/IChatSystem.sol | 2 +- .../packages/contracts/src/codegen/world/IIncrementSystem.sol | 2 +- .../packages/contracts/src/codegen/world/IInventorySystem.sol | 2 +- .../packages/contracts/src/codegen/world/IStructSystem.sol | 2 +- .../minimal/packages/contracts/src/codegen/world/IWorld.sol | 2 +- .../packages/contracts/src/interfaces/IChatNamespacedSystem.sol | 2 +- .../packages/contracts/src/systems/ChatNamespacedSystem.sol | 2 +- examples/minimal/packages/contracts/src/systems/ChatSystem.sol | 2 +- .../minimal/packages/contracts/src/systems/IncrementSystem.sol | 2 +- .../minimal/packages/contracts/src/systems/InventorySystem.sol | 2 +- .../minimal/packages/contracts/src/systems/StructSystem.sol | 2 +- examples/minimal/packages/contracts/src/systems/structs.sol | 2 +- examples/minimal/packages/contracts/test/ChatNamespaced.t.sol | 2 +- examples/minimal/packages/contracts/test/CounterTest.t.sol | 2 +- examples/minimal/packages/contracts/test/StructTest.t.sol | 2 +- packages/cli/contracts/src/codegen/common.sol | 2 +- packages/cli/contracts/src/codegen/index.sol | 2 +- packages/cli/contracts/src/codegen/tables/Dynamics1.sol | 2 +- packages/cli/contracts/src/codegen/tables/Dynamics2.sol | 2 +- packages/cli/contracts/src/codegen/tables/Offchain.sol | 2 +- packages/cli/contracts/src/codegen/tables/Singleton.sol | 2 +- packages/cli/contracts/src/codegen/tables/Statics.sol | 2 +- packages/cli/contracts/test/Tablegen.t.sol | 2 +- packages/common/src/codegen/render-solidity/common.ts | 2 +- packages/gas-report/src/GasReporter.sol | 2 +- packages/gas-report/test/GasReporter.t.sol | 2 +- packages/noise/contracts/Perlin.sol | 2 +- packages/noise/test/forge/Perlin.t.sol | 2 +- packages/schema-type/src/solidity/SchemaType.sol | 2 +- packages/schema-type/test/solidity/SchemaType.t.sol | 2 +- packages/store/src/Bytes.sol | 2 +- packages/store/src/FieldLayout.sol | 2 +- packages/store/src/Hook.sol | 2 +- packages/store/src/IERC165.sol | 2 +- packages/store/src/IStore.sol | 2 +- packages/store/src/IStoreErrors.sol | 2 +- packages/store/src/IStoreHook.sol | 2 +- packages/store/src/Memory.sol | 2 +- packages/store/src/PackedCounter.sol | 2 +- packages/store/src/ResourceId.sol | 2 +- packages/store/src/Schema.sol | 2 +- packages/store/src/Slice.sol | 2 +- packages/store/src/Storage.sol | 2 +- packages/store/src/StoreCore.sol | 2 +- packages/store/src/StoreHook.sol | 2 +- packages/store/src/StoreRead.sol | 2 +- packages/store/src/StoreSwitch.sol | 2 +- packages/store/src/Utils.sol | 2 +- packages/store/src/codegen/common.sol | 2 +- packages/store/src/codegen/index.sol | 2 +- packages/store/src/codegen/tables/Callbacks.sol | 2 +- packages/store/src/codegen/tables/Hooks.sol | 2 +- packages/store/src/codegen/tables/KeyEncoding.sol | 2 +- packages/store/src/codegen/tables/Mixed.sol | 2 +- packages/store/src/codegen/tables/ResourceIds.sol | 2 +- packages/store/src/codegen/tables/StoreHooks.sol | 2 +- packages/store/src/codegen/tables/Tables.sol | 2 +- packages/store/src/codegen/tables/Vector2.sol | 2 +- packages/store/src/constants.sol | 2 +- packages/store/src/storeHookTypes.sol | 2 +- packages/store/src/storeResourceTypes.sol | 2 +- packages/store/src/tightcoder/DecodeSlice.sol | 2 +- packages/store/src/tightcoder/EncodeArray.sol | 2 +- packages/store/src/tightcoder/TightCoder.sol | 2 +- packages/store/src/version.sol | 2 +- packages/store/test/Bytes.t.sol | 2 +- packages/store/test/EchoSubscriber.sol | 2 +- packages/store/test/FieldLayout.t.sol | 2 +- packages/store/test/FieldLayoutEncodeHelper.sol | 2 +- packages/store/test/Gas.t.sol | 2 +- packages/store/test/GasStorageLoad.t.sol | 2 +- packages/store/test/Hook.t.sol | 2 +- packages/store/test/KeyEncoding.t.sol | 2 +- packages/store/test/MirrorSubscriber.sol | 2 +- packages/store/test/Mixed.t.sol | 2 +- packages/store/test/PackedCounter.t.sol | 2 +- packages/store/test/ResourceId.t.sol | 2 +- packages/store/test/RevertSubscriber.sol | 2 +- packages/store/test/Schema.t.sol | 2 +- packages/store/test/SchemaEncodeHelper.sol | 2 +- packages/store/test/Slice.t.sol | 2 +- packages/store/test/Storage.t.sol | 2 +- packages/store/test/StoreCore.t.sol | 2 +- packages/store/test/StoreCoreDynamic.t.sol | 2 +- packages/store/test/StoreCoreGas.t.sol | 2 +- packages/store/test/StoreHook.t.sol | 2 +- packages/store/test/StoreMock.sol | 2 +- packages/store/test/StoreMock.t.sol | 2 +- packages/store/test/StoreSwitch.t.sol | 2 +- packages/store/test/Utils.t.sol | 2 +- packages/store/test/Vector2.t.sol | 2 +- packages/store/test/setDynamicDataLengthAtIndex.sol | 2 +- packages/store/test/tables/Callbacks.t.sol | 2 +- packages/store/test/tables/StoreHooks.t.sol | 2 +- packages/store/test/tables/StoreHooksColdLoad.t.sol | 2 +- packages/store/test/tightcoder/DecodeSlice.t.sol | 2 +- packages/store/test/tightcoder/EncodeArray.t.sol | 2 +- packages/store/test/tightcoder/TightCoder.t.sol | 2 +- packages/store/test/tightcoder/TightCoderAuto.t.sol | 2 +- packages/world/src/AccessControl.sol | 2 +- packages/world/src/Delegation.sol | 2 +- packages/world/src/DelegationControl.sol | 2 +- packages/world/src/Module.sol | 2 +- packages/world/src/System.sol | 2 +- packages/world/src/SystemCall.sol | 2 +- packages/world/src/SystemHook.sol | 2 +- packages/world/src/Utils.sol | 2 +- packages/world/src/World.sol | 2 +- packages/world/src/WorldContext.sol | 2 +- packages/world/src/WorldResourceId.sol | 2 +- packages/world/src/constants.sol | 2 +- packages/world/src/factories/Create2.sol | 2 +- packages/world/src/factories/Create2Factory.sol | 2 +- packages/world/src/factories/IWorldFactory.sol | 2 +- packages/world/src/factories/WorldFactory.sol | 2 +- packages/world/src/index.sol | 2 +- packages/world/src/interfaces/IAccessManagementSystem.sol | 2 +- packages/world/src/interfaces/IBalanceTransferSystem.sol | 2 +- packages/world/src/interfaces/IBaseWorld.sol | 2 +- packages/world/src/interfaces/ICoreSystem.sol | 2 +- packages/world/src/interfaces/IDelegationControl.sol | 2 +- packages/world/src/interfaces/IERC165.sol | 2 +- packages/world/src/interfaces/IModule.sol | 2 +- packages/world/src/interfaces/IModuleInstallationSystem.sol | 2 +- packages/world/src/interfaces/ISystemHook.sol | 2 +- packages/world/src/interfaces/IUniqueEntitySystem.sol | 2 +- packages/world/src/interfaces/IWorldContextConsumer.sol | 2 +- packages/world/src/interfaces/IWorldErrors.sol | 2 +- packages/world/src/interfaces/IWorldKernel.sol | 2 +- packages/world/src/interfaces/IWorldRegistrationSystem.sol | 2 +- packages/world/src/modules/core/CoreModule.sol | 2 +- packages/world/src/modules/core/CoreSystem.sol | 2 +- packages/world/src/modules/core/constants.sol | 2 +- .../src/modules/core/implementations/AccessManagementSystem.sol | 2 +- .../src/modules/core/implementations/BalanceTransferSystem.sol | 2 +- .../modules/core/implementations/ModuleInstallationSystem.sol | 2 +- .../modules/core/implementations/StoreRegistrationSystem.sol | 2 +- .../modules/core/implementations/WorldRegistrationSystem.sol | 2 +- packages/world/src/modules/core/tables/Balances.sol | 2 +- packages/world/src/modules/core/tables/FunctionSelectors.sol | 2 +- packages/world/src/modules/core/tables/SystemHooks.sol | 2 +- packages/world/src/modules/core/tables/SystemRegistry.sol | 2 +- packages/world/src/modules/core/tables/Systems.sol | 2 +- packages/world/src/modules/keysintable/KeysInTableHook.sol | 2 +- packages/world/src/modules/keysintable/KeysInTableModule.sol | 2 +- packages/world/src/modules/keysintable/constants.sol | 2 +- packages/world/src/modules/keysintable/getKeysInTable.sol | 2 +- packages/world/src/modules/keysintable/hasKey.sol | 2 +- packages/world/src/modules/keysintable/query.sol | 2 +- packages/world/src/modules/keysintable/tables/KeysInTable.sol | 2 +- packages/world/src/modules/keysintable/tables/UsedKeysIndex.sol | 2 +- packages/world/src/modules/keyswithvalue/KeysWithValueHook.sol | 2 +- .../world/src/modules/keyswithvalue/KeysWithValueModule.sol | 2 +- packages/world/src/modules/keyswithvalue/constants.sol | 2 +- packages/world/src/modules/keyswithvalue/getKeysWithValue.sol | 2 +- packages/world/src/modules/keyswithvalue/getTargetTableId.sol | 2 +- .../world/src/modules/keyswithvalue/tables/KeysWithValue.sol | 2 +- .../src/modules/std-delegations/CallboundDelegationControl.sol | 2 +- .../src/modules/std-delegations/StandardDelegationsModule.sol | 2 +- .../src/modules/std-delegations/TimeboundDelegationControl.sol | 2 +- packages/world/src/modules/std-delegations/constants.sol | 2 +- .../src/modules/std-delegations/tables/CallboundDelegations.sol | 2 +- .../src/modules/std-delegations/tables/TimeboundDelegations.sol | 2 +- packages/world/src/modules/uniqueentity/UniqueEntityModule.sol | 2 +- packages/world/src/modules/uniqueentity/UniqueEntitySystem.sol | 2 +- packages/world/src/modules/uniqueentity/constants.sol | 2 +- packages/world/src/modules/uniqueentity/getUniqueEntity.sol | 2 +- packages/world/src/modules/uniqueentity/tables/UniqueEntity.sol | 2 +- packages/world/src/modules/utils/ArrayLib.sol | 2 +- packages/world/src/requireInterface.sol | 2 +- packages/world/src/revertWithBytes.sol | 2 +- packages/world/src/systemHookTypes.sol | 2 +- packages/world/src/tables/Delegations.sol | 2 +- packages/world/src/tables/InstalledModules.sol | 2 +- packages/world/src/tables/NamespaceOwner.sol | 2 +- packages/world/src/tables/ResourceAccess.sol | 2 +- packages/world/src/version.sol | 2 +- packages/world/src/worldResourceTypes.sol | 2 +- packages/world/test/AccessControl.t.sol | 2 +- packages/world/test/Factories.t.sol | 2 +- packages/world/test/KeysInTableModule.t.sol | 2 +- packages/world/test/KeysWithValueModule.t.sol | 2 +- packages/world/test/MudTest.t.sol | 2 +- packages/world/test/RevertWithBytes.t.sol | 2 +- packages/world/test/StandardDelegationsModule.t.sol | 2 +- packages/world/test/System.t.sol | 2 +- packages/world/test/SystemHook.t.sol | 2 +- packages/world/test/UniqueEntityModule.t.sol | 2 +- packages/world/test/Utils.t.sol | 2 +- packages/world/test/World.t.sol | 2 +- packages/world/test/WorldBalance.t.sol | 2 +- packages/world/test/WorldContext.t.sol | 2 +- packages/world/test/WorldDynamicUpdate.t.sol | 2 +- packages/world/test/WorldResourceId.t.sol | 2 +- packages/world/test/query.t.sol | 2 +- packages/world/test/tables/AddressArray.sol | 2 +- packages/world/test/tables/Bool.sol | 2 +- templates/phaser/packages/contracts/script/PostDeploy.s.sol | 2 +- templates/phaser/packages/contracts/src/codegen/index.sol | 2 +- .../phaser/packages/contracts/src/codegen/tables/Counter.sol | 2 +- .../packages/contracts/src/codegen/world/IIncrementSystem.sol | 2 +- .../phaser/packages/contracts/src/codegen/world/IWorld.sol | 2 +- .../phaser/packages/contracts/src/systems/IncrementSystem.sol | 2 +- templates/phaser/packages/contracts/test/CounterTest.t.sol | 2 +- templates/react/packages/contracts/script/PostDeploy.s.sol | 2 +- templates/react/packages/contracts/src/codegen/index.sol | 2 +- .../react/packages/contracts/src/codegen/tables/Counter.sol | 2 +- .../packages/contracts/src/codegen/world/IIncrementSystem.sol | 2 +- templates/react/packages/contracts/src/codegen/world/IWorld.sol | 2 +- .../react/packages/contracts/src/systems/IncrementSystem.sol | 2 +- templates/react/packages/contracts/test/CounterTest.t.sol | 2 +- templates/threejs/packages/contracts/src/codegen/index.sol | 2 +- .../threejs/packages/contracts/src/codegen/tables/Position.sol | 2 +- .../packages/contracts/src/codegen/world/IMoveSystem.sol | 2 +- .../threejs/packages/contracts/src/codegen/world/IWorld.sol | 2 +- templates/threejs/packages/contracts/src/systems/MoveSystem.sol | 2 +- templates/vanilla/packages/contracts/script/PostDeploy.s.sol | 2 +- templates/vanilla/packages/contracts/src/codegen/index.sol | 2 +- .../vanilla/packages/contracts/src/codegen/tables/Counter.sol | 2 +- .../packages/contracts/src/codegen/world/IIncrementSystem.sol | 2 +- .../vanilla/packages/contracts/src/codegen/world/IWorld.sol | 2 +- .../vanilla/packages/contracts/src/systems/IncrementSystem.sol | 2 +- templates/vanilla/packages/contracts/test/CounterTest.t.sol | 2 +- 240 files changed, 240 insertions(+), 240 deletions(-) diff --git a/e2e/packages/contracts/src/CustomTypes.sol b/e2e/packages/contracts/src/CustomTypes.sol index 0d422e81f0..28973fd5fd 100644 --- a/e2e/packages/contracts/src/CustomTypes.sol +++ b/e2e/packages/contracts/src/CustomTypes.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; struct Position { int32 x; diff --git a/e2e/packages/contracts/src/codegen/index.sol b/e2e/packages/contracts/src/codegen/index.sol index 98f8d2feb8..9350bf7b8c 100644 --- a/e2e/packages/contracts/src/codegen/index.sol +++ b/e2e/packages/contracts/src/codegen/index.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/e2e/packages/contracts/src/codegen/tables/Multi.sol b/e2e/packages/contracts/src/codegen/tables/Multi.sol index 56f69dba19..e8ba31b96c 100644 --- a/e2e/packages/contracts/src/codegen/tables/Multi.sol +++ b/e2e/packages/contracts/src/codegen/tables/Multi.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/e2e/packages/contracts/src/codegen/tables/Number.sol b/e2e/packages/contracts/src/codegen/tables/Number.sol index b17b841277..339abd0feb 100644 --- a/e2e/packages/contracts/src/codegen/tables/Number.sol +++ b/e2e/packages/contracts/src/codegen/tables/Number.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/e2e/packages/contracts/src/codegen/tables/NumberList.sol b/e2e/packages/contracts/src/codegen/tables/NumberList.sol index 1510e27581..abfad96a35 100644 --- a/e2e/packages/contracts/src/codegen/tables/NumberList.sol +++ b/e2e/packages/contracts/src/codegen/tables/NumberList.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/e2e/packages/contracts/src/codegen/tables/Vector.sol b/e2e/packages/contracts/src/codegen/tables/Vector.sol index cb2ef6792b..04f83f9775 100644 --- a/e2e/packages/contracts/src/codegen/tables/Vector.sol +++ b/e2e/packages/contracts/src/codegen/tables/Vector.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/e2e/packages/contracts/src/codegen/world/ICustomErrorsSystem.sol b/e2e/packages/contracts/src/codegen/world/ICustomErrorsSystem.sol index 96e07d1059..80029e30ab 100644 --- a/e2e/packages/contracts/src/codegen/world/ICustomErrorsSystem.sol +++ b/e2e/packages/contracts/src/codegen/world/ICustomErrorsSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/e2e/packages/contracts/src/codegen/world/INumberListSystem.sol b/e2e/packages/contracts/src/codegen/world/INumberListSystem.sol index c03f0e812e..8c99ab8a43 100644 --- a/e2e/packages/contracts/src/codegen/world/INumberListSystem.sol +++ b/e2e/packages/contracts/src/codegen/world/INumberListSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/e2e/packages/contracts/src/codegen/world/IWorld.sol b/e2e/packages/contracts/src/codegen/world/IWorld.sol index bdf7fa8603..707adb849c 100644 --- a/e2e/packages/contracts/src/codegen/world/IWorld.sol +++ b/e2e/packages/contracts/src/codegen/world/IWorld.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/e2e/packages/contracts/src/systems/CustomErrorsSystem.sol b/e2e/packages/contracts/src/systems/CustomErrorsSystem.sol index 37b4d59870..7eab852b31 100644 --- a/e2e/packages/contracts/src/systems/CustomErrorsSystem.sol +++ b/e2e/packages/contracts/src/systems/CustomErrorsSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { System } from "@latticexyz/world/src/System.sol"; import { Position } from "../CustomTypes.sol"; diff --git a/e2e/packages/contracts/src/systems/NumberListSystem.sol b/e2e/packages/contracts/src/systems/NumberListSystem.sol index 6d48adc115..9309cf5a0e 100644 --- a/e2e/packages/contracts/src/systems/NumberListSystem.sol +++ b/e2e/packages/contracts/src/systems/NumberListSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { StoreSwitch } from "@latticexyz/store/src/StoreSwitch.sol"; import { EncodeArray } from "@latticexyz/store/src/tightcoder/EncodeArray.sol"; diff --git a/e2e/packages/contracts/test/Worldgen.t.sol b/e2e/packages/contracts/test/Worldgen.t.sol index 51d59a7d7c..2db3db9226 100644 --- a/e2e/packages/contracts/test/Worldgen.t.sol +++ b/e2e/packages/contracts/test/Worldgen.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { MudTest } from "@latticexyz/world/test/MudTest.t.sol"; diff --git a/examples/minimal/packages/contracts/script/PostDeploy.s.sol b/examples/minimal/packages/contracts/script/PostDeploy.s.sol index 06e875346c..21fb3f9c2b 100644 --- a/examples/minimal/packages/contracts/script/PostDeploy.s.sol +++ b/examples/minimal/packages/contracts/script/PostDeploy.s.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Script } from "forge-std/Script.sol"; import { console } from "forge-std/console.sol"; diff --git a/examples/minimal/packages/contracts/src/codegen/index.sol b/examples/minimal/packages/contracts/src/codegen/index.sol index eb7f12cff5..46a45a2b39 100644 --- a/examples/minimal/packages/contracts/src/codegen/index.sol +++ b/examples/minimal/packages/contracts/src/codegen/index.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/examples/minimal/packages/contracts/src/codegen/tables/CounterTable.sol b/examples/minimal/packages/contracts/src/codegen/tables/CounterTable.sol index 963e2f4452..9aa6a37376 100644 --- a/examples/minimal/packages/contracts/src/codegen/tables/CounterTable.sol +++ b/examples/minimal/packages/contracts/src/codegen/tables/CounterTable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/examples/minimal/packages/contracts/src/codegen/tables/Inventory.sol b/examples/minimal/packages/contracts/src/codegen/tables/Inventory.sol index d90f9a1343..49f685a0b1 100644 --- a/examples/minimal/packages/contracts/src/codegen/tables/Inventory.sol +++ b/examples/minimal/packages/contracts/src/codegen/tables/Inventory.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/examples/minimal/packages/contracts/src/codegen/tables/MessageTable.sol b/examples/minimal/packages/contracts/src/codegen/tables/MessageTable.sol index b23dd832b9..ae3ce987db 100644 --- a/examples/minimal/packages/contracts/src/codegen/tables/MessageTable.sol +++ b/examples/minimal/packages/contracts/src/codegen/tables/MessageTable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/examples/minimal/packages/contracts/src/codegen/world/IChatSystem.sol b/examples/minimal/packages/contracts/src/codegen/world/IChatSystem.sol index 52b9b54d87..95662f9b63 100644 --- a/examples/minimal/packages/contracts/src/codegen/world/IChatSystem.sol +++ b/examples/minimal/packages/contracts/src/codegen/world/IChatSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/examples/minimal/packages/contracts/src/codegen/world/IIncrementSystem.sol b/examples/minimal/packages/contracts/src/codegen/world/IIncrementSystem.sol index 53298f1444..1a13bc9c09 100644 --- a/examples/minimal/packages/contracts/src/codegen/world/IIncrementSystem.sol +++ b/examples/minimal/packages/contracts/src/codegen/world/IIncrementSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/examples/minimal/packages/contracts/src/codegen/world/IInventorySystem.sol b/examples/minimal/packages/contracts/src/codegen/world/IInventorySystem.sol index e9ddbadad9..489ce670f6 100644 --- a/examples/minimal/packages/contracts/src/codegen/world/IInventorySystem.sol +++ b/examples/minimal/packages/contracts/src/codegen/world/IInventorySystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/examples/minimal/packages/contracts/src/codegen/world/IStructSystem.sol b/examples/minimal/packages/contracts/src/codegen/world/IStructSystem.sol index e52ee024e3..7ae77d3967 100644 --- a/examples/minimal/packages/contracts/src/codegen/world/IStructSystem.sol +++ b/examples/minimal/packages/contracts/src/codegen/world/IStructSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/examples/minimal/packages/contracts/src/codegen/world/IWorld.sol b/examples/minimal/packages/contracts/src/codegen/world/IWorld.sol index eca91d275d..dc78180f49 100644 --- a/examples/minimal/packages/contracts/src/codegen/world/IWorld.sol +++ b/examples/minimal/packages/contracts/src/codegen/world/IWorld.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/examples/minimal/packages/contracts/src/interfaces/IChatNamespacedSystem.sol b/examples/minimal/packages/contracts/src/interfaces/IChatNamespacedSystem.sol index 9177496daf..ab8bd76b81 100644 --- a/examples/minimal/packages/contracts/src/interfaces/IChatNamespacedSystem.sol +++ b/examples/minimal/packages/contracts/src/interfaces/IChatNamespacedSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; // TODO allow overriding namespace per-system interface IChatNamespacedSystem { diff --git a/examples/minimal/packages/contracts/src/systems/ChatNamespacedSystem.sol b/examples/minimal/packages/contracts/src/systems/ChatNamespacedSystem.sol index 3d43d16f07..fa42fbdada 100644 --- a/examples/minimal/packages/contracts/src/systems/ChatNamespacedSystem.sol +++ b/examples/minimal/packages/contracts/src/systems/ChatNamespacedSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { System } from "@latticexyz/world/src/System.sol"; import { MessageTable } from "../codegen/index.sol"; diff --git a/examples/minimal/packages/contracts/src/systems/ChatSystem.sol b/examples/minimal/packages/contracts/src/systems/ChatSystem.sol index e359ef4002..83b1962d08 100644 --- a/examples/minimal/packages/contracts/src/systems/ChatSystem.sol +++ b/examples/minimal/packages/contracts/src/systems/ChatSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { System } from "@latticexyz/world/src/System.sol"; import { MessageTable } from "../codegen/index.sol"; diff --git a/examples/minimal/packages/contracts/src/systems/IncrementSystem.sol b/examples/minimal/packages/contracts/src/systems/IncrementSystem.sol index 7d805b655d..7cdf5c28e0 100644 --- a/examples/minimal/packages/contracts/src/systems/IncrementSystem.sol +++ b/examples/minimal/packages/contracts/src/systems/IncrementSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { console } from "forge-std/console.sol"; import { System } from "@latticexyz/world/src/System.sol"; import { CounterTable } from "../codegen/index.sol"; diff --git a/examples/minimal/packages/contracts/src/systems/InventorySystem.sol b/examples/minimal/packages/contracts/src/systems/InventorySystem.sol index 6360871dde..a22f30c3fe 100644 --- a/examples/minimal/packages/contracts/src/systems/InventorySystem.sol +++ b/examples/minimal/packages/contracts/src/systems/InventorySystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { System } from "@latticexyz/world/src/System.sol"; import { Inventory } from "../codegen/index.sol"; diff --git a/examples/minimal/packages/contracts/src/systems/StructSystem.sol b/examples/minimal/packages/contracts/src/systems/StructSystem.sol index 5fe1ad91cb..9ec22140ea 100644 --- a/examples/minimal/packages/contracts/src/systems/StructSystem.sol +++ b/examples/minimal/packages/contracts/src/systems/StructSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { System } from "@latticexyz/world/src/System.sol"; import { CounterTable } from "../codegen/index.sol"; import { BytesStruct, StringStruct } from "./structs.sol"; diff --git a/examples/minimal/packages/contracts/src/systems/structs.sol b/examples/minimal/packages/contracts/src/systems/structs.sol index 66d4e90894..c404977f9c 100644 --- a/examples/minimal/packages/contracts/src/systems/structs.sol +++ b/examples/minimal/packages/contracts/src/systems/structs.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; struct BytesStruct { bytes value; diff --git a/examples/minimal/packages/contracts/test/ChatNamespaced.t.sol b/examples/minimal/packages/contracts/test/ChatNamespaced.t.sol index 122f2392f2..c8599537dd 100644 --- a/examples/minimal/packages/contracts/test/ChatNamespaced.t.sol +++ b/examples/minimal/packages/contracts/test/ChatNamespaced.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import "forge-std/Test.sol"; import { MudTest } from "@latticexyz/world/test/MudTest.t.sol"; diff --git a/examples/minimal/packages/contracts/test/CounterTest.t.sol b/examples/minimal/packages/contracts/test/CounterTest.t.sol index f731279df5..959655f295 100644 --- a/examples/minimal/packages/contracts/test/CounterTest.t.sol +++ b/examples/minimal/packages/contracts/test/CounterTest.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import "forge-std/Test.sol"; import { MudTest } from "@latticexyz/world/test/MudTest.t.sol"; diff --git a/examples/minimal/packages/contracts/test/StructTest.t.sol b/examples/minimal/packages/contracts/test/StructTest.t.sol index 87b67846da..dc824e30bf 100644 --- a/examples/minimal/packages/contracts/test/StructTest.t.sol +++ b/examples/minimal/packages/contracts/test/StructTest.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import "forge-std/Test.sol"; import { MudTest } from "@latticexyz/world/test/MudTest.t.sol"; diff --git a/packages/cli/contracts/src/codegen/common.sol b/packages/cli/contracts/src/codegen/common.sol index 85fa534462..6d5e7d6de5 100644 --- a/packages/cli/contracts/src/codegen/common.sol +++ b/packages/cli/contracts/src/codegen/common.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ enum Enum1 { diff --git a/packages/cli/contracts/src/codegen/index.sol b/packages/cli/contracts/src/codegen/index.sol index 49830113c3..f3298837cf 100644 --- a/packages/cli/contracts/src/codegen/index.sol +++ b/packages/cli/contracts/src/codegen/index.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/cli/contracts/src/codegen/tables/Dynamics1.sol b/packages/cli/contracts/src/codegen/tables/Dynamics1.sol index 3675d141c5..4ffe32a5a9 100644 --- a/packages/cli/contracts/src/codegen/tables/Dynamics1.sol +++ b/packages/cli/contracts/src/codegen/tables/Dynamics1.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/cli/contracts/src/codegen/tables/Dynamics2.sol b/packages/cli/contracts/src/codegen/tables/Dynamics2.sol index e233e4e5f3..86447e9503 100644 --- a/packages/cli/contracts/src/codegen/tables/Dynamics2.sol +++ b/packages/cli/contracts/src/codegen/tables/Dynamics2.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/cli/contracts/src/codegen/tables/Offchain.sol b/packages/cli/contracts/src/codegen/tables/Offchain.sol index 90d628f248..9400c79ef6 100644 --- a/packages/cli/contracts/src/codegen/tables/Offchain.sol +++ b/packages/cli/contracts/src/codegen/tables/Offchain.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/cli/contracts/src/codegen/tables/Singleton.sol b/packages/cli/contracts/src/codegen/tables/Singleton.sol index f55dc19ff7..1e87e6d89c 100644 --- a/packages/cli/contracts/src/codegen/tables/Singleton.sol +++ b/packages/cli/contracts/src/codegen/tables/Singleton.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/cli/contracts/src/codegen/tables/Statics.sol b/packages/cli/contracts/src/codegen/tables/Statics.sol index dfb0cde25b..695fbbf683 100644 --- a/packages/cli/contracts/src/codegen/tables/Statics.sol +++ b/packages/cli/contracts/src/codegen/tables/Statics.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/cli/contracts/test/Tablegen.t.sol b/packages/cli/contracts/test/Tablegen.t.sol index 8a71d7fb9e..204566a7a1 100644 --- a/packages/cli/contracts/test/Tablegen.t.sol +++ b/packages/cli/contracts/test/Tablegen.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import "forge-std/Test.sol"; import { StoreMock } from "@latticexyz/store/test/StoreMock.sol"; diff --git a/packages/common/src/codegen/render-solidity/common.ts b/packages/common/src/codegen/render-solidity/common.ts index f956f7b658..14e668c3d2 100644 --- a/packages/common/src/codegen/render-solidity/common.ts +++ b/packages/common/src/codegen/render-solidity/common.ts @@ -10,7 +10,7 @@ import { import { posixPath } from "../utils"; export const renderedSolidityHeader = `// SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */`; diff --git a/packages/gas-report/src/GasReporter.sol b/packages/gas-report/src/GasReporter.sol index 60b1784697..d3ca40ccc3 100644 --- a/packages/gas-report/src/GasReporter.sol +++ b/packages/gas-report/src/GasReporter.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test, console } from "forge-std/Test.sol"; diff --git a/packages/gas-report/test/GasReporter.t.sol b/packages/gas-report/test/GasReporter.t.sol index 0780642d12..bc4a2107b7 100644 --- a/packages/gas-report/test/GasReporter.t.sol +++ b/packages/gas-report/test/GasReporter.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "../src/GasReporter.sol"; diff --git a/packages/noise/contracts/Perlin.sol b/packages/noise/contracts/Perlin.sol index f2a06211f2..243f7ce2f8 100644 --- a/packages/noise/contracts/Perlin.sol +++ b/packages/noise/contracts/Perlin.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.0; +pragma solidity >=0.8.21; import { ABDKMath64x64 as Math } from "abdk-libraries-solidity/ABDKMath64x64.sol"; diff --git a/packages/noise/test/forge/Perlin.t.sol b/packages/noise/test/forge/Perlin.t.sol index 013ec96b8d..2148d22cd0 100644 --- a/packages/noise/test/forge/Perlin.t.sol +++ b/packages/noise/test/forge/Perlin.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import "forge-std/Test.sol"; import { Perlin } from "../../contracts/Perlin.sol"; diff --git a/packages/schema-type/src/solidity/SchemaType.sol b/packages/schema-type/src/solidity/SchemaType.sol index 17536170df..d3090625c8 100644 --- a/packages/schema-type/src/solidity/SchemaType.sol +++ b/packages/schema-type/src/solidity/SchemaType.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; using { getStaticByteLength } for SchemaType global; diff --git a/packages/schema-type/test/solidity/SchemaType.t.sol b/packages/schema-type/test/solidity/SchemaType.t.sol index 3b7684e524..6a18498a9c 100644 --- a/packages/schema-type/test/solidity/SchemaType.t.sol +++ b/packages/schema-type/test/solidity/SchemaType.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { stdError } from "forge-std/StdError.sol"; diff --git a/packages/store/src/Bytes.sol b/packages/store/src/Bytes.sol index 8853b52fd4..c8713703d3 100644 --- a/packages/store/src/Bytes.sol +++ b/packages/store/src/Bytes.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; library Bytes { /** diff --git a/packages/store/src/FieldLayout.sol b/packages/store/src/FieldLayout.sol index 86759aa24c..80fd3d2cba 100644 --- a/packages/store/src/FieldLayout.sol +++ b/packages/store/src/FieldLayout.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { WORD_SIZE, WORD_LAST_INDEX, BYTE_TO_BITS, MAX_TOTAL_FIELDS, MAX_DYNAMIC_FIELDS, LayoutOffsets } from "./constants.sol"; diff --git a/packages/store/src/Hook.sol b/packages/store/src/Hook.sol index bba92c89aa..cbe73fe03b 100644 --- a/packages/store/src/Hook.sol +++ b/packages/store/src/Hook.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Hooks } from "./codegen/tables/Hooks.sol"; import { ResourceId } from "./ResourceId.sol"; diff --git a/packages/store/src/IERC165.sol b/packages/store/src/IERC165.sol index 4151b0a405..db080dc11f 100644 --- a/packages/store/src/IERC165.sol +++ b/packages/store/src/IERC165.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; bytes4 constant ERC165_INTERFACE_ID = IERC165.supportsInterface.selector; diff --git a/packages/store/src/IStore.sol b/packages/store/src/IStore.sol index cae2ec6f36..0a01ae2511 100644 --- a/packages/store/src/IStore.sol +++ b/packages/store/src/IStore.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IStoreErrors } from "./IStoreErrors.sol"; import { PackedCounter } from "./PackedCounter.sol"; diff --git a/packages/store/src/IStoreErrors.sol b/packages/store/src/IStoreErrors.sol index 1b42a84107..239d064035 100644 --- a/packages/store/src/IStoreErrors.sol +++ b/packages/store/src/IStoreErrors.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { ResourceId } from "./ResourceId.sol"; diff --git a/packages/store/src/IStoreHook.sol b/packages/store/src/IStoreHook.sol index 271e07ac97..b8a1b70947 100644 --- a/packages/store/src/IStoreHook.sol +++ b/packages/store/src/IStoreHook.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { FieldLayout } from "./FieldLayout.sol"; import { IERC165, ERC165_INTERFACE_ID } from "./IERC165.sol"; diff --git a/packages/store/src/Memory.sol b/packages/store/src/Memory.sol index 4872c9423a..8cea12e9ab 100644 --- a/packages/store/src/Memory.sol +++ b/packages/store/src/Memory.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { leftMask } from "./Utils.sol"; diff --git a/packages/store/src/PackedCounter.sol b/packages/store/src/PackedCounter.sol index 32f0aa2a7a..20a8a7df57 100644 --- a/packages/store/src/PackedCounter.sol +++ b/packages/store/src/PackedCounter.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; // - Last 7 bytes (uint56) are used for the total byte length of the dynamic data // - The next 5 byte (uint40) sections are used for the byte length of each field, indexed from right to left diff --git a/packages/store/src/ResourceId.sol b/packages/store/src/ResourceId.sol index 20dec4c6b8..39be771465 100644 --- a/packages/store/src/ResourceId.sol +++ b/packages/store/src/ResourceId.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; type ResourceId is bytes32; diff --git a/packages/store/src/Schema.sol b/packages/store/src/Schema.sol index 0d47200371..8e935196a7 100644 --- a/packages/store/src/Schema.sol +++ b/packages/store/src/Schema.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { SchemaType } from "@latticexyz/schema-type/src/solidity/SchemaType.sol"; diff --git a/packages/store/src/Slice.sol b/packages/store/src/Slice.sol index 853dfa292a..85acce0ff1 100644 --- a/packages/store/src/Slice.sol +++ b/packages/store/src/Slice.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Memory } from "./Memory.sol"; import { DecodeSlice } from "./tightcoder/DecodeSlice.sol"; diff --git a/packages/store/src/Storage.sol b/packages/store/src/Storage.sol index 427e45748f..d8745b3636 100644 --- a/packages/store/src/Storage.sol +++ b/packages/store/src/Storage.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { leftMask } from "./Utils.sol"; import { Memory } from "./Memory.sol"; diff --git a/packages/store/src/StoreCore.sol b/packages/store/src/StoreCore.sol index f5baaa3546..4db4bb6d1a 100644 --- a/packages/store/src/StoreCore.sol +++ b/packages/store/src/StoreCore.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { STORE_VERSION } from "./version.sol"; import { Bytes } from "./Bytes.sol"; diff --git a/packages/store/src/StoreHook.sol b/packages/store/src/StoreHook.sol index 19db392bb7..fae57d9cec 100644 --- a/packages/store/src/StoreHook.sol +++ b/packages/store/src/StoreHook.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IStoreHook, STORE_HOOK_INTERFACE_ID } from "./IStoreHook.sol"; import { ERC165_INTERFACE_ID } from "./IERC165.sol"; diff --git a/packages/store/src/StoreRead.sol b/packages/store/src/StoreRead.sol index f4925e77eb..386e3c7f29 100644 --- a/packages/store/src/StoreRead.sol +++ b/packages/store/src/StoreRead.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { STORE_VERSION } from "./version.sol"; import { IStoreRead } from "./IStore.sol"; diff --git a/packages/store/src/StoreSwitch.sol b/packages/store/src/StoreSwitch.sol index ba483f2dea..2c540fec70 100644 --- a/packages/store/src/StoreSwitch.sol +++ b/packages/store/src/StoreSwitch.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IStore } from "./IStore.sol"; import { PackedCounter } from "../src/PackedCounter.sol"; diff --git a/packages/store/src/Utils.sol b/packages/store/src/Utils.sol index 85eefd1544..16355a562b 100644 --- a/packages/store/src/Utils.sol +++ b/packages/store/src/Utils.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /** * Adapted from https://github.com/dk1a/solidity-stringutils/blob/main/src/utils/mem.sol#L149-L167 diff --git a/packages/store/src/codegen/common.sol b/packages/store/src/codegen/common.sol index 8be6d938c7..4f6c334a8e 100644 --- a/packages/store/src/codegen/common.sol +++ b/packages/store/src/codegen/common.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ enum ExampleEnum { diff --git a/packages/store/src/codegen/index.sol b/packages/store/src/codegen/index.sol index 7e033ae735..62f886fe46 100644 --- a/packages/store/src/codegen/index.sol +++ b/packages/store/src/codegen/index.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/store/src/codegen/tables/Callbacks.sol b/packages/store/src/codegen/tables/Callbacks.sol index 4dcbce5052..23315c30a9 100644 --- a/packages/store/src/codegen/tables/Callbacks.sol +++ b/packages/store/src/codegen/tables/Callbacks.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/store/src/codegen/tables/Hooks.sol b/packages/store/src/codegen/tables/Hooks.sol index 34f6c804cf..e836bd9352 100644 --- a/packages/store/src/codegen/tables/Hooks.sol +++ b/packages/store/src/codegen/tables/Hooks.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/store/src/codegen/tables/KeyEncoding.sol b/packages/store/src/codegen/tables/KeyEncoding.sol index 6a198c2d27..2351d5ee75 100644 --- a/packages/store/src/codegen/tables/KeyEncoding.sol +++ b/packages/store/src/codegen/tables/KeyEncoding.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/store/src/codegen/tables/Mixed.sol b/packages/store/src/codegen/tables/Mixed.sol index 48c8678ba9..4d493762ae 100644 --- a/packages/store/src/codegen/tables/Mixed.sol +++ b/packages/store/src/codegen/tables/Mixed.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/store/src/codegen/tables/ResourceIds.sol b/packages/store/src/codegen/tables/ResourceIds.sol index 273a4c6fb0..9414ce5464 100644 --- a/packages/store/src/codegen/tables/ResourceIds.sol +++ b/packages/store/src/codegen/tables/ResourceIds.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/store/src/codegen/tables/StoreHooks.sol b/packages/store/src/codegen/tables/StoreHooks.sol index b900ad3640..63f987692c 100644 --- a/packages/store/src/codegen/tables/StoreHooks.sol +++ b/packages/store/src/codegen/tables/StoreHooks.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/store/src/codegen/tables/Tables.sol b/packages/store/src/codegen/tables/Tables.sol index 04d49cd786..f0d2954252 100644 --- a/packages/store/src/codegen/tables/Tables.sol +++ b/packages/store/src/codegen/tables/Tables.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/store/src/codegen/tables/Vector2.sol b/packages/store/src/codegen/tables/Vector2.sol index 71f23b8be2..28ccb78e42 100644 --- a/packages/store/src/codegen/tables/Vector2.sol +++ b/packages/store/src/codegen/tables/Vector2.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/store/src/constants.sol b/packages/store/src/constants.sol index a5f580b6ec..53e7ec4e79 100644 --- a/packages/store/src/constants.sol +++ b/packages/store/src/constants.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Shared constants */ diff --git a/packages/store/src/storeHookTypes.sol b/packages/store/src/storeHookTypes.sol index d6d424591a..0afa815d6a 100644 --- a/packages/store/src/storeHookTypes.sol +++ b/packages/store/src/storeHookTypes.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; uint8 constant BEFORE_SET_RECORD = 1 << 0; uint8 constant AFTER_SET_RECORD = 1 << 1; diff --git a/packages/store/src/storeResourceTypes.sol b/packages/store/src/storeResourceTypes.sol index 5854db2429..0150e70d5d 100644 --- a/packages/store/src/storeResourceTypes.sol +++ b/packages/store/src/storeResourceTypes.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; bytes2 constant RESOURCE_TABLE = "tb"; bytes2 constant RESOURCE_OFFCHAIN_TABLE = "ot"; diff --git a/packages/store/src/tightcoder/DecodeSlice.sol b/packages/store/src/tightcoder/DecodeSlice.sol index d1a6348f8a..b6a744ae24 100644 --- a/packages/store/src/tightcoder/DecodeSlice.sol +++ b/packages/store/src/tightcoder/DecodeSlice.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ import { TightCoder } from "./TightCoder.sol"; diff --git a/packages/store/src/tightcoder/EncodeArray.sol b/packages/store/src/tightcoder/EncodeArray.sol index 455db997b6..816e00407d 100644 --- a/packages/store/src/tightcoder/EncodeArray.sol +++ b/packages/store/src/tightcoder/EncodeArray.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ import { TightCoder } from "./TightCoder.sol"; diff --git a/packages/store/src/tightcoder/TightCoder.sol b/packages/store/src/tightcoder/TightCoder.sol index 2af4eecc0c..d47a97bcab 100644 --- a/packages/store/src/tightcoder/TightCoder.sol +++ b/packages/store/src/tightcoder/TightCoder.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Slice, SliceLib } from "../Slice.sol"; diff --git a/packages/store/src/version.sol b/packages/store/src/version.sol index 9f024319ad..796d38cea6 100644 --- a/packages/store/src/version.sol +++ b/packages/store/src/version.sol @@ -1,4 +1,4 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; bytes32 constant STORE_VERSION = "0.0.0"; diff --git a/packages/store/test/Bytes.t.sol b/packages/store/test/Bytes.t.sol index 8ae2e11693..1c90b6bc93 100644 --- a/packages/store/test/Bytes.t.sol +++ b/packages/store/test/Bytes.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/EchoSubscriber.sol b/packages/store/test/EchoSubscriber.sol index 90e9ca592f..6612677719 100644 --- a/packages/store/test/EchoSubscriber.sol +++ b/packages/store/test/EchoSubscriber.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { PackedCounter } from "../src/PackedCounter.sol"; import { FieldLayout } from "../src/FieldLayout.sol"; diff --git a/packages/store/test/FieldLayout.t.sol b/packages/store/test/FieldLayout.t.sol index c8f302e1fa..39424c1157 100644 --- a/packages/store/test/FieldLayout.t.sol +++ b/packages/store/test/FieldLayout.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test, console } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/FieldLayoutEncodeHelper.sol b/packages/store/test/FieldLayoutEncodeHelper.sol index ded71c228d..5d2e24c7d3 100644 --- a/packages/store/test/FieldLayoutEncodeHelper.sol +++ b/packages/store/test/FieldLayoutEncodeHelper.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { FieldLayout, FieldLayoutLib } from "../src/FieldLayout.sol"; diff --git a/packages/store/test/Gas.t.sol b/packages/store/test/Gas.t.sol index 28233db4c6..da555ceb8a 100644 --- a/packages/store/test/Gas.t.sol +++ b/packages/store/test/Gas.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test, console } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/GasStorageLoad.t.sol b/packages/store/test/GasStorageLoad.t.sol index ab13727d31..7db60617b2 100644 --- a/packages/store/test/GasStorageLoad.t.sol +++ b/packages/store/test/GasStorageLoad.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/Hook.t.sol b/packages/store/test/Hook.t.sol index d3c87e4060..8fe1a2c5dc 100644 --- a/packages/store/test/Hook.t.sol +++ b/packages/store/test/Hook.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/KeyEncoding.t.sol b/packages/store/test/KeyEncoding.t.sol index f1b91ae49b..81cda12052 100644 --- a/packages/store/test/KeyEncoding.t.sol +++ b/packages/store/test/KeyEncoding.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/MirrorSubscriber.sol b/packages/store/test/MirrorSubscriber.sol index e646d3634d..2a355201df 100644 --- a/packages/store/test/MirrorSubscriber.sol +++ b/packages/store/test/MirrorSubscriber.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IStore } from "../src/IStore.sol"; import { StoreHook } from "../src/StoreHook.sol"; diff --git a/packages/store/test/Mixed.t.sol b/packages/store/test/Mixed.t.sol index cf1d376d37..00d8217ee6 100644 --- a/packages/store/test/Mixed.t.sol +++ b/packages/store/test/Mixed.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/PackedCounter.t.sol b/packages/store/test/PackedCounter.t.sol index 18b8bb14e9..e3765ac350 100644 --- a/packages/store/test/PackedCounter.t.sol +++ b/packages/store/test/PackedCounter.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/ResourceId.t.sol b/packages/store/test/ResourceId.t.sol index d64afe4f53..0fa445f7df 100644 --- a/packages/store/test/ResourceId.t.sol +++ b/packages/store/test/ResourceId.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test, console } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/RevertSubscriber.sol b/packages/store/test/RevertSubscriber.sol index 38e6810603..f1a7a7d4a1 100644 --- a/packages/store/test/RevertSubscriber.sol +++ b/packages/store/test/RevertSubscriber.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { StoreHook } from "../src/StoreHook.sol"; import { FieldLayout } from "../src/FieldLayout.sol"; diff --git a/packages/store/test/Schema.t.sol b/packages/store/test/Schema.t.sol index cf967093ed..63ac46909c 100644 --- a/packages/store/test/Schema.t.sol +++ b/packages/store/test/Schema.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test, console } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/SchemaEncodeHelper.sol b/packages/store/test/SchemaEncodeHelper.sol index 2fc21b70fa..3db69f0813 100644 --- a/packages/store/test/SchemaEncodeHelper.sol +++ b/packages/store/test/SchemaEncodeHelper.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { SchemaType } from "@latticexyz/schema-type/src/solidity/SchemaType.sol"; import { Schema, SchemaLib } from "../src/Schema.sol"; diff --git a/packages/store/test/Slice.t.sol b/packages/store/test/Slice.t.sol index c49a3b97b6..2384c1c7af 100644 --- a/packages/store/test/Slice.t.sol +++ b/packages/store/test/Slice.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/Storage.t.sol b/packages/store/test/Storage.t.sol index 9c6d13ebd9..e490a6cdb3 100644 --- a/packages/store/test/Storage.t.sol +++ b/packages/store/test/Storage.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/StoreCore.t.sol b/packages/store/test/StoreCore.t.sol index 9c96aecb80..f72f690876 100644 --- a/packages/store/test/StoreCore.t.sol +++ b/packages/store/test/StoreCore.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import "forge-std/Test.sol"; import { SchemaType } from "@latticexyz/schema-type/src/solidity/SchemaType.sol"; diff --git a/packages/store/test/StoreCoreDynamic.t.sol b/packages/store/test/StoreCoreDynamic.t.sol index 33e1434d0d..adac018981 100644 --- a/packages/store/test/StoreCoreDynamic.t.sol +++ b/packages/store/test/StoreCoreDynamic.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test, console } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/StoreCoreGas.t.sol b/packages/store/test/StoreCoreGas.t.sol index 31419806e6..50990bad79 100644 --- a/packages/store/test/StoreCoreGas.t.sol +++ b/packages/store/test/StoreCoreGas.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/StoreHook.t.sol b/packages/store/test/StoreHook.t.sol index d9ef3615a3..f4d03a7471 100644 --- a/packages/store/test/StoreHook.t.sol +++ b/packages/store/test/StoreHook.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/StoreMock.sol b/packages/store/test/StoreMock.sol index fab796a8f1..7028b83418 100644 --- a/packages/store/test/StoreMock.sol +++ b/packages/store/test/StoreMock.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IStore, IStoreHook } from "../src/IStore.sol"; import { PackedCounter } from "../src/PackedCounter.sol"; diff --git a/packages/store/test/StoreMock.t.sol b/packages/store/test/StoreMock.t.sol index 641ff8f528..62a1367c47 100644 --- a/packages/store/test/StoreMock.t.sol +++ b/packages/store/test/StoreMock.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/StoreSwitch.t.sol b/packages/store/test/StoreSwitch.t.sol index 0b6f70fb53..df7890fb9e 100644 --- a/packages/store/test/StoreSwitch.t.sol +++ b/packages/store/test/StoreSwitch.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/Utils.t.sol b/packages/store/test/Utils.t.sol index 21e981862c..3d0e7962a4 100644 --- a/packages/store/test/Utils.t.sol +++ b/packages/store/test/Utils.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/Vector2.t.sol b/packages/store/test/Vector2.t.sol index 3c6fe3541a..a20bee36b9 100644 --- a/packages/store/test/Vector2.t.sol +++ b/packages/store/test/Vector2.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/setDynamicDataLengthAtIndex.sol b/packages/store/test/setDynamicDataLengthAtIndex.sol index 146ffddfee..5ca5ce2677 100644 --- a/packages/store/test/setDynamicDataLengthAtIndex.sol +++ b/packages/store/test/setDynamicDataLengthAtIndex.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { PackedCounter } from "../src/PackedCounter.sol"; import { StoreCoreInternal } from "../src/StoreCore.sol"; diff --git a/packages/store/test/tables/Callbacks.t.sol b/packages/store/test/tables/Callbacks.t.sol index e7f40e3a78..5f38d69481 100644 --- a/packages/store/test/tables/Callbacks.t.sol +++ b/packages/store/test/tables/Callbacks.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/tables/StoreHooks.t.sol b/packages/store/test/tables/StoreHooks.t.sol index e6fa64dd85..4e72e4ec89 100644 --- a/packages/store/test/tables/StoreHooks.t.sol +++ b/packages/store/test/tables/StoreHooks.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/tables/StoreHooksColdLoad.t.sol b/packages/store/test/tables/StoreHooksColdLoad.t.sol index 2943927e51..f706166a34 100644 --- a/packages/store/test/tables/StoreHooksColdLoad.t.sol +++ b/packages/store/test/tables/StoreHooksColdLoad.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/tightcoder/DecodeSlice.t.sol b/packages/store/test/tightcoder/DecodeSlice.t.sol index e3b4989f5d..36e74266e7 100644 --- a/packages/store/test/tightcoder/DecodeSlice.t.sol +++ b/packages/store/test/tightcoder/DecodeSlice.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/tightcoder/EncodeArray.t.sol b/packages/store/test/tightcoder/EncodeArray.t.sol index 2dcd24d9e1..438dae6b24 100644 --- a/packages/store/test/tightcoder/EncodeArray.t.sol +++ b/packages/store/test/tightcoder/EncodeArray.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/tightcoder/TightCoder.t.sol b/packages/store/test/tightcoder/TightCoder.t.sol index b664f80920..f852d37379 100644 --- a/packages/store/test/tightcoder/TightCoder.t.sol +++ b/packages/store/test/tightcoder/TightCoder.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/store/test/tightcoder/TightCoderAuto.t.sol b/packages/store/test/tightcoder/TightCoderAuto.t.sol index 0022bc9634..0dba3a51f7 100644 --- a/packages/store/test/tightcoder/TightCoderAuto.t.sol +++ b/packages/store/test/tightcoder/TightCoderAuto.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/AccessControl.sol b/packages/world/src/AccessControl.sol index 6cb5cc12ce..4cab35d064 100644 --- a/packages/world/src/AccessControl.sol +++ b/packages/world/src/AccessControl.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { ResourceId, WorldResourceIdInstance } from "./WorldResourceId.sol"; import { IWorldErrors } from "./interfaces/IWorldErrors.sol"; diff --git a/packages/world/src/Delegation.sol b/packages/world/src/Delegation.sol index 191142f39c..78b6ba4f4e 100644 --- a/packages/world/src/Delegation.sol +++ b/packages/world/src/Delegation.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { UNLIMITED_DELEGATION } from "./constants.sol"; import { IDelegationControl } from "./interfaces/IDelegationControl.sol"; diff --git a/packages/world/src/DelegationControl.sol b/packages/world/src/DelegationControl.sol index 905a7bedb2..b5e7519518 100644 --- a/packages/world/src/DelegationControl.sol +++ b/packages/world/src/DelegationControl.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { WorldContextConsumer } from "./WorldContext.sol"; import { IDelegationControl, DELEGATION_CONTROL_INTERFACE_ID } from "./interfaces/IDelegationControl.sol"; diff --git a/packages/world/src/Module.sol b/packages/world/src/Module.sol index 5d8663129e..037b62aca6 100644 --- a/packages/world/src/Module.sol +++ b/packages/world/src/Module.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { WorldContextConsumer } from "./WorldContext.sol"; import { IModule, MODULE_INTERFACE_ID } from "./interfaces/IModule.sol"; diff --git a/packages/world/src/System.sol b/packages/world/src/System.sol index ff3769fa67..ca3e2d16d3 100644 --- a/packages/world/src/System.sol +++ b/packages/world/src/System.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { WorldContextConsumer } from "./WorldContext.sol"; diff --git a/packages/world/src/SystemCall.sol b/packages/world/src/SystemCall.sol index 568f47e4ee..50446dd14c 100644 --- a/packages/world/src/SystemCall.sol +++ b/packages/world/src/SystemCall.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Hook } from "@latticexyz/store/src/Hook.sol"; diff --git a/packages/world/src/SystemHook.sol b/packages/world/src/SystemHook.sol index ef8af9587c..ee8ba08e3b 100644 --- a/packages/world/src/SystemHook.sol +++ b/packages/world/src/SystemHook.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { ISystemHook, SYSTEM_HOOK_INTERFACE_ID } from "./interfaces/ISystemHook.sol"; import { ERC165_INTERFACE_ID } from "./interfaces/IERC165.sol"; diff --git a/packages/world/src/Utils.sol b/packages/world/src/Utils.sol index af6e23a62c..973fc8beb0 100644 --- a/packages/world/src/Utils.sol +++ b/packages/world/src/Utils.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { StoreSwitch } from "@latticexyz/store/src/StoreSwitch.sol"; import { ResourceId, WorldResourceIdInstance } from "./WorldResourceId.sol"; diff --git a/packages/world/src/World.sol b/packages/world/src/World.sol index f24bf892e1..3b9bd8e68a 100644 --- a/packages/world/src/World.sol +++ b/packages/world/src/World.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { StoreRead } from "@latticexyz/store/src/StoreRead.sol"; import { StoreCore } from "@latticexyz/store/src/StoreCore.sol"; diff --git a/packages/world/src/WorldContext.sol b/packages/world/src/WorldContext.sol index 7c29e09f25..03fb9c1bdd 100644 --- a/packages/world/src/WorldContext.sol +++ b/packages/world/src/WorldContext.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { StoreSwitch } from "@latticexyz/store/src/StoreSwitch.sol"; import { revertWithBytes } from "./revertWithBytes.sol"; diff --git a/packages/world/src/WorldResourceId.sol b/packages/world/src/WorldResourceId.sol index db24aba8b9..1a5b641c14 100644 --- a/packages/world/src/WorldResourceId.sol +++ b/packages/world/src/WorldResourceId.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Bytes } from "@latticexyz/store/src/Bytes.sol"; import { ResourceId, ResourceIdInstance, TYPE_BYTES } from "@latticexyz/store/src/ResourceId.sol"; diff --git a/packages/world/src/constants.sol b/packages/world/src/constants.sol index 5f7e4ff646..06a1e924fd 100644 --- a/packages/world/src/constants.sol +++ b/packages/world/src/constants.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { ResourceId } from "@latticexyz/store/src/ResourceId.sol"; diff --git a/packages/world/src/factories/Create2.sol b/packages/world/src/factories/Create2.sol index 4b8dbbc6bf..36ee580a9f 100644 --- a/packages/world/src/factories/Create2.sol +++ b/packages/world/src/factories/Create2.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; library Create2 { /** diff --git a/packages/world/src/factories/Create2Factory.sol b/packages/world/src/factories/Create2Factory.sol index a763ec5418..4ac4b4986c 100644 --- a/packages/world/src/factories/Create2Factory.sol +++ b/packages/world/src/factories/Create2Factory.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Create2 } from "./Create2.sol"; diff --git a/packages/world/src/factories/IWorldFactory.sol b/packages/world/src/factories/IWorldFactory.sol index c76e646153..f8c337f4b9 100644 --- a/packages/world/src/factories/IWorldFactory.sol +++ b/packages/world/src/factories/IWorldFactory.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; interface IWorldFactory { event WorldDeployed(address indexed newContract); diff --git a/packages/world/src/factories/WorldFactory.sol b/packages/world/src/factories/WorldFactory.sol index 87af0543ed..4d2ccb88ab 100644 --- a/packages/world/src/factories/WorldFactory.sol +++ b/packages/world/src/factories/WorldFactory.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Create2 } from "./Create2.sol"; import { World } from "../World.sol"; diff --git a/packages/world/src/index.sol b/packages/world/src/index.sol index 2e852c4973..61ccd3dda4 100644 --- a/packages/world/src/index.sol +++ b/packages/world/src/index.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/interfaces/IAccessManagementSystem.sol b/packages/world/src/interfaces/IAccessManagementSystem.sol index 2e2c56e5a2..0f7caa3e90 100644 --- a/packages/world/src/interfaces/IAccessManagementSystem.sol +++ b/packages/world/src/interfaces/IAccessManagementSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/interfaces/IBalanceTransferSystem.sol b/packages/world/src/interfaces/IBalanceTransferSystem.sol index a00a3bc15c..b78d544cf0 100644 --- a/packages/world/src/interfaces/IBalanceTransferSystem.sol +++ b/packages/world/src/interfaces/IBalanceTransferSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/interfaces/IBaseWorld.sol b/packages/world/src/interfaces/IBaseWorld.sol index dcc9607777..da2939064d 100644 --- a/packages/world/src/interfaces/IBaseWorld.sol +++ b/packages/world/src/interfaces/IBaseWorld.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/interfaces/ICoreSystem.sol b/packages/world/src/interfaces/ICoreSystem.sol index f35a42392f..51315a0aa9 100644 --- a/packages/world/src/interfaces/ICoreSystem.sol +++ b/packages/world/src/interfaces/ICoreSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/interfaces/IDelegationControl.sol b/packages/world/src/interfaces/IDelegationControl.sol index ab528c291b..113a4fa6d0 100644 --- a/packages/world/src/interfaces/IDelegationControl.sol +++ b/packages/world/src/interfaces/IDelegationControl.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IWorldContextConsumer, WORLD_CONTEXT_CONSUMER_INTERFACE_ID } from "./IWorldContextConsumer.sol"; import { ResourceId } from "../WorldResourceId.sol"; diff --git a/packages/world/src/interfaces/IERC165.sol b/packages/world/src/interfaces/IERC165.sol index 4151b0a405..db080dc11f 100644 --- a/packages/world/src/interfaces/IERC165.sol +++ b/packages/world/src/interfaces/IERC165.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; bytes4 constant ERC165_INTERFACE_ID = IERC165.supportsInterface.selector; diff --git a/packages/world/src/interfaces/IModule.sol b/packages/world/src/interfaces/IModule.sol index 8a79abd7db..e94fcbfdfa 100644 --- a/packages/world/src/interfaces/IModule.sol +++ b/packages/world/src/interfaces/IModule.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IERC165, ERC165_INTERFACE_ID } from "./IERC165.sol"; diff --git a/packages/world/src/interfaces/IModuleInstallationSystem.sol b/packages/world/src/interfaces/IModuleInstallationSystem.sol index e1de9e093f..c56b3eeebb 100644 --- a/packages/world/src/interfaces/IModuleInstallationSystem.sol +++ b/packages/world/src/interfaces/IModuleInstallationSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/interfaces/ISystemHook.sol b/packages/world/src/interfaces/ISystemHook.sol index d6bde335c0..47739051ab 100644 --- a/packages/world/src/interfaces/ISystemHook.sol +++ b/packages/world/src/interfaces/ISystemHook.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IERC165, ERC165_INTERFACE_ID } from "./IERC165.sol"; import { ResourceId } from "../WorldResourceId.sol"; diff --git a/packages/world/src/interfaces/IUniqueEntitySystem.sol b/packages/world/src/interfaces/IUniqueEntitySystem.sol index 552337723c..d9011e2201 100644 --- a/packages/world/src/interfaces/IUniqueEntitySystem.sol +++ b/packages/world/src/interfaces/IUniqueEntitySystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; // TODO allow overriding namespace per-system (or a separate config for modules?) interface IUniqueEntitySystem { diff --git a/packages/world/src/interfaces/IWorldContextConsumer.sol b/packages/world/src/interfaces/IWorldContextConsumer.sol index 496f8c57b9..42cc7fee87 100644 --- a/packages/world/src/interfaces/IWorldContextConsumer.sol +++ b/packages/world/src/interfaces/IWorldContextConsumer.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IERC165, ERC165_INTERFACE_ID } from "./IERC165.sol"; diff --git a/packages/world/src/interfaces/IWorldErrors.sol b/packages/world/src/interfaces/IWorldErrors.sol index ef421ff6b7..d95922e393 100644 --- a/packages/world/src/interfaces/IWorldErrors.sol +++ b/packages/world/src/interfaces/IWorldErrors.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { ResourceId } from "@latticexyz/store/src/ResourceId.sol"; diff --git a/packages/world/src/interfaces/IWorldKernel.sol b/packages/world/src/interfaces/IWorldKernel.sol index ccb0909b11..2c01631bc5 100644 --- a/packages/world/src/interfaces/IWorldKernel.sol +++ b/packages/world/src/interfaces/IWorldKernel.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IWorldErrors } from "./IWorldErrors.sol"; import { IModule } from "./IModule.sol"; diff --git a/packages/world/src/interfaces/IWorldRegistrationSystem.sol b/packages/world/src/interfaces/IWorldRegistrationSystem.sol index 46638d3ee6..6f2b35beee 100644 --- a/packages/world/src/interfaces/IWorldRegistrationSystem.sol +++ b/packages/world/src/interfaces/IWorldRegistrationSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/modules/core/CoreModule.sol b/packages/world/src/modules/core/CoreModule.sol index 9d5fc3a852..cbc9f6901b 100644 --- a/packages/world/src/modules/core/CoreModule.sol +++ b/packages/world/src/modules/core/CoreModule.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { WorldContextProvider } from "../../WorldContext.sol"; import { ROOT_NAMESPACE, ROOT_NAMESPACE_ID } from "../../constants.sol"; diff --git a/packages/world/src/modules/core/CoreSystem.sol b/packages/world/src/modules/core/CoreSystem.sol index 5372acc73d..6fd79acbd7 100644 --- a/packages/world/src/modules/core/CoreSystem.sol +++ b/packages/world/src/modules/core/CoreSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IWorldErrors } from "../../interfaces/IWorldErrors.sol"; diff --git a/packages/world/src/modules/core/constants.sol b/packages/world/src/modules/core/constants.sol index 5b6a6eb734..7154756b25 100644 --- a/packages/world/src/modules/core/constants.sol +++ b/packages/world/src/modules/core/constants.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; bytes16 constant CORE_MODULE_NAME = bytes16("core.m"); bytes16 constant CORE_SYSTEM_NAME = bytes16("core.s"); diff --git a/packages/world/src/modules/core/implementations/AccessManagementSystem.sol b/packages/world/src/modules/core/implementations/AccessManagementSystem.sol index feb058a0d9..6a07d956eb 100644 --- a/packages/world/src/modules/core/implementations/AccessManagementSystem.sol +++ b/packages/world/src/modules/core/implementations/AccessManagementSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IModule } from "../../../interfaces/IModule.sol"; import { System } from "../../../System.sol"; diff --git a/packages/world/src/modules/core/implementations/BalanceTransferSystem.sol b/packages/world/src/modules/core/implementations/BalanceTransferSystem.sol index 5cbbb5a5cf..3b1a59bbdc 100644 --- a/packages/world/src/modules/core/implementations/BalanceTransferSystem.sol +++ b/packages/world/src/modules/core/implementations/BalanceTransferSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { ResourceId, ResourceIdInstance } from "@latticexyz/store/src/ResourceId.sol"; diff --git a/packages/world/src/modules/core/implementations/ModuleInstallationSystem.sol b/packages/world/src/modules/core/implementations/ModuleInstallationSystem.sol index dfa2fa6fa4..c0d9c1f3ea 100644 --- a/packages/world/src/modules/core/implementations/ModuleInstallationSystem.sol +++ b/packages/world/src/modules/core/implementations/ModuleInstallationSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IModule, MODULE_INTERFACE_ID } from "../../../interfaces/IModule.sol"; import { System } from "../../../System.sol"; diff --git a/packages/world/src/modules/core/implementations/StoreRegistrationSystem.sol b/packages/world/src/modules/core/implementations/StoreRegistrationSystem.sol index b86a42fabe..05811bc8ed 100644 --- a/packages/world/src/modules/core/implementations/StoreRegistrationSystem.sol +++ b/packages/world/src/modules/core/implementations/StoreRegistrationSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IStoreHook, STORE_HOOK_INTERFACE_ID } from "@latticexyz/store/src/IStoreHook.sol"; import { StoreCore } from "@latticexyz/store/src/StoreCore.sol"; diff --git a/packages/world/src/modules/core/implementations/WorldRegistrationSystem.sol b/packages/world/src/modules/core/implementations/WorldRegistrationSystem.sol index 6e0f75971b..9a08b90f29 100644 --- a/packages/world/src/modules/core/implementations/WorldRegistrationSystem.sol +++ b/packages/world/src/modules/core/implementations/WorldRegistrationSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Hook, HookLib } from "@latticexyz/store/src/Hook.sol"; import { ResourceId, ResourceIdInstance } from "@latticexyz/store/src/ResourceId.sol"; diff --git a/packages/world/src/modules/core/tables/Balances.sol b/packages/world/src/modules/core/tables/Balances.sol index b1a6f276be..a5c091c2fc 100644 --- a/packages/world/src/modules/core/tables/Balances.sol +++ b/packages/world/src/modules/core/tables/Balances.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/modules/core/tables/FunctionSelectors.sol b/packages/world/src/modules/core/tables/FunctionSelectors.sol index 7f520a92bb..5bea8fed05 100644 --- a/packages/world/src/modules/core/tables/FunctionSelectors.sol +++ b/packages/world/src/modules/core/tables/FunctionSelectors.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/modules/core/tables/SystemHooks.sol b/packages/world/src/modules/core/tables/SystemHooks.sol index b42a79d2eb..2f04ecde7d 100644 --- a/packages/world/src/modules/core/tables/SystemHooks.sol +++ b/packages/world/src/modules/core/tables/SystemHooks.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/modules/core/tables/SystemRegistry.sol b/packages/world/src/modules/core/tables/SystemRegistry.sol index aaec11544d..4160e95bce 100644 --- a/packages/world/src/modules/core/tables/SystemRegistry.sol +++ b/packages/world/src/modules/core/tables/SystemRegistry.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/modules/core/tables/Systems.sol b/packages/world/src/modules/core/tables/Systems.sol index 10c7b49a40..934122ca26 100644 --- a/packages/world/src/modules/core/tables/Systems.sol +++ b/packages/world/src/modules/core/tables/Systems.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/modules/keysintable/KeysInTableHook.sol b/packages/world/src/modules/keysintable/KeysInTableHook.sol index 0d8681456d..3cf09d4638 100644 --- a/packages/world/src/modules/keysintable/KeysInTableHook.sol +++ b/packages/world/src/modules/keysintable/KeysInTableHook.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { PackedCounter } from "@latticexyz/store/src/PackedCounter.sol"; import { FieldLayout } from "@latticexyz/store/src/FieldLayout.sol"; diff --git a/packages/world/src/modules/keysintable/KeysInTableModule.sol b/packages/world/src/modules/keysintable/KeysInTableModule.sol index b0357b7dd0..dd10f5c8ea 100644 --- a/packages/world/src/modules/keysintable/KeysInTableModule.sol +++ b/packages/world/src/modules/keysintable/KeysInTableModule.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { BEFORE_SET_RECORD, AFTER_SPLICE_STATIC_DATA, AFTER_SPLICE_DYNAMIC_DATA, BEFORE_DELETE_RECORD } from "@latticexyz/store/src/storeHookTypes.sol"; import { ResourceIds } from "@latticexyz/store/src/codegen/tables/ResourceIds.sol"; diff --git a/packages/world/src/modules/keysintable/constants.sol b/packages/world/src/modules/keysintable/constants.sol index e39fa1032a..e27da01de4 100644 --- a/packages/world/src/modules/keysintable/constants.sol +++ b/packages/world/src/modules/keysintable/constants.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; // Limiting the module namespace to 8 bytes so the last 8 bytes // can be used for an identifier of the source table namespace to avoid diff --git a/packages/world/src/modules/keysintable/getKeysInTable.sol b/packages/world/src/modules/keysintable/getKeysInTable.sol index 06d7bcf41b..89a9b96fa2 100644 --- a/packages/world/src/modules/keysintable/getKeysInTable.sol +++ b/packages/world/src/modules/keysintable/getKeysInTable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IStore } from "@latticexyz/store/src/IStore.sol"; import { Schema } from "@latticexyz/store/src/Schema.sol"; diff --git a/packages/world/src/modules/keysintable/hasKey.sol b/packages/world/src/modules/keysintable/hasKey.sol index 0efd658135..7916e6f30b 100644 --- a/packages/world/src/modules/keysintable/hasKey.sol +++ b/packages/world/src/modules/keysintable/hasKey.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IStore } from "@latticexyz/store/src/IStore.sol"; import { ResourceId } from "@latticexyz/store/src/ResourceId.sol"; diff --git a/packages/world/src/modules/keysintable/query.sol b/packages/world/src/modules/keysintable/query.sol index 3dbd72bc50..4299509f7b 100644 --- a/packages/world/src/modules/keysintable/query.sol +++ b/packages/world/src/modules/keysintable/query.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IStore } from "@latticexyz/store/src/IStore.sol"; import { PackedCounter } from "@latticexyz/store/src/PackedCounter.sol"; diff --git a/packages/world/src/modules/keysintable/tables/KeysInTable.sol b/packages/world/src/modules/keysintable/tables/KeysInTable.sol index 7c86f97fed..1b8ea4ff81 100644 --- a/packages/world/src/modules/keysintable/tables/KeysInTable.sol +++ b/packages/world/src/modules/keysintable/tables/KeysInTable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/modules/keysintable/tables/UsedKeysIndex.sol b/packages/world/src/modules/keysintable/tables/UsedKeysIndex.sol index ade2c06653..9cd905b612 100644 --- a/packages/world/src/modules/keysintable/tables/UsedKeysIndex.sol +++ b/packages/world/src/modules/keysintable/tables/UsedKeysIndex.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/modules/keyswithvalue/KeysWithValueHook.sol b/packages/world/src/modules/keyswithvalue/KeysWithValueHook.sol index b945b7ec3d..22e25b9d5b 100644 --- a/packages/world/src/modules/keyswithvalue/KeysWithValueHook.sol +++ b/packages/world/src/modules/keyswithvalue/KeysWithValueHook.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { StoreHook } from "@latticexyz/store/src/StoreHook.sol"; import { Bytes } from "@latticexyz/store/src/Bytes.sol"; diff --git a/packages/world/src/modules/keyswithvalue/KeysWithValueModule.sol b/packages/world/src/modules/keyswithvalue/KeysWithValueModule.sol index d6b210666f..41c56358a9 100644 --- a/packages/world/src/modules/keyswithvalue/KeysWithValueModule.sol +++ b/packages/world/src/modules/keyswithvalue/KeysWithValueModule.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { StoreSwitch } from "@latticexyz/store/src/StoreSwitch.sol"; import { BEFORE_SET_RECORD, BEFORE_SPLICE_STATIC_DATA, AFTER_SPLICE_STATIC_DATA, BEFORE_SPLICE_DYNAMIC_DATA, AFTER_SPLICE_DYNAMIC_DATA, BEFORE_DELETE_RECORD } from "@latticexyz/store/src/storeHookTypes.sol"; diff --git a/packages/world/src/modules/keyswithvalue/constants.sol b/packages/world/src/modules/keyswithvalue/constants.sol index b239bade58..d558ea1c1d 100644 --- a/packages/world/src/modules/keyswithvalue/constants.sol +++ b/packages/world/src/modules/keyswithvalue/constants.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; // Limiting the module namespace to 7 bytes so the remaining 7 bytes // can be used for an identifier of the source table namespace to avoid diff --git a/packages/world/src/modules/keyswithvalue/getKeysWithValue.sol b/packages/world/src/modules/keyswithvalue/getKeysWithValue.sol index 07cebf75cd..07507b399e 100644 --- a/packages/world/src/modules/keyswithvalue/getKeysWithValue.sol +++ b/packages/world/src/modules/keyswithvalue/getKeysWithValue.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IStore } from "@latticexyz/store/src/IStore.sol"; import { PackedCounter } from "@latticexyz/store/src/PackedCounter.sol"; diff --git a/packages/world/src/modules/keyswithvalue/getTargetTableId.sol b/packages/world/src/modules/keyswithvalue/getTargetTableId.sol index b972ff8208..4179f8cd95 100644 --- a/packages/world/src/modules/keyswithvalue/getTargetTableId.sol +++ b/packages/world/src/modules/keyswithvalue/getTargetTableId.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { TYPE_BYTES } from "@latticexyz/store/src/ResourceId.sol"; import { ResourceId, WorldResourceIdInstance, NAME_BYTES } from "../../WorldResourceId.sol"; diff --git a/packages/world/src/modules/keyswithvalue/tables/KeysWithValue.sol b/packages/world/src/modules/keyswithvalue/tables/KeysWithValue.sol index 0cc9ed2cf8..7621b94d5f 100644 --- a/packages/world/src/modules/keyswithvalue/tables/KeysWithValue.sol +++ b/packages/world/src/modules/keyswithvalue/tables/KeysWithValue.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/modules/std-delegations/CallboundDelegationControl.sol b/packages/world/src/modules/std-delegations/CallboundDelegationControl.sol index c089ec7d4b..13bda72d16 100644 --- a/packages/world/src/modules/std-delegations/CallboundDelegationControl.sol +++ b/packages/world/src/modules/std-delegations/CallboundDelegationControl.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { DelegationControl } from "../../DelegationControl.sol"; import { ResourceId } from "../../WorldResourceId.sol"; diff --git a/packages/world/src/modules/std-delegations/StandardDelegationsModule.sol b/packages/world/src/modules/std-delegations/StandardDelegationsModule.sol index 99f341ef3a..e4834d3309 100644 --- a/packages/world/src/modules/std-delegations/StandardDelegationsModule.sol +++ b/packages/world/src/modules/std-delegations/StandardDelegationsModule.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IBaseWorld } from "../../interfaces/IBaseWorld.sol"; diff --git a/packages/world/src/modules/std-delegations/TimeboundDelegationControl.sol b/packages/world/src/modules/std-delegations/TimeboundDelegationControl.sol index e9f9e6114d..72c908938c 100644 --- a/packages/world/src/modules/std-delegations/TimeboundDelegationControl.sol +++ b/packages/world/src/modules/std-delegations/TimeboundDelegationControl.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { DelegationControl } from "../../DelegationControl.sol"; import { ResourceId } from "../../WorldResourceId.sol"; diff --git a/packages/world/src/modules/std-delegations/constants.sol b/packages/world/src/modules/std-delegations/constants.sol index 96e65ec00a..09859c43ee 100644 --- a/packages/world/src/modules/std-delegations/constants.sol +++ b/packages/world/src/modules/std-delegations/constants.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { ResourceId } from "../../WorldResourceId.sol"; import { RESOURCE_SYSTEM } from "../../worldResourceTypes.sol"; import { ROOT_NAMESPACE } from "../../constants.sol"; diff --git a/packages/world/src/modules/std-delegations/tables/CallboundDelegations.sol b/packages/world/src/modules/std-delegations/tables/CallboundDelegations.sol index 5bb08ebe8a..1cbdff95f9 100644 --- a/packages/world/src/modules/std-delegations/tables/CallboundDelegations.sol +++ b/packages/world/src/modules/std-delegations/tables/CallboundDelegations.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/modules/std-delegations/tables/TimeboundDelegations.sol b/packages/world/src/modules/std-delegations/tables/TimeboundDelegations.sol index f973705ea6..a8393b5e2f 100644 --- a/packages/world/src/modules/std-delegations/tables/TimeboundDelegations.sol +++ b/packages/world/src/modules/std-delegations/tables/TimeboundDelegations.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/modules/uniqueentity/UniqueEntityModule.sol b/packages/world/src/modules/uniqueentity/UniqueEntityModule.sol index 1f7cb32045..981d5efb1f 100644 --- a/packages/world/src/modules/uniqueentity/UniqueEntityModule.sol +++ b/packages/world/src/modules/uniqueentity/UniqueEntityModule.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IBaseWorld } from "../../interfaces/IBaseWorld.sol"; diff --git a/packages/world/src/modules/uniqueentity/UniqueEntitySystem.sol b/packages/world/src/modules/uniqueentity/UniqueEntitySystem.sol index 35da06f17d..c002792035 100644 --- a/packages/world/src/modules/uniqueentity/UniqueEntitySystem.sol +++ b/packages/world/src/modules/uniqueentity/UniqueEntitySystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { System } from "../../System.sol"; import { TABLE_ID } from "./constants.sol"; diff --git a/packages/world/src/modules/uniqueentity/constants.sol b/packages/world/src/modules/uniqueentity/constants.sol index d35a2d1b63..41b8d793c8 100644 --- a/packages/world/src/modules/uniqueentity/constants.sol +++ b/packages/world/src/modules/uniqueentity/constants.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { ResourceId } from "../../WorldResourceId.sol"; import { RESOURCE_TABLE, RESOURCE_SYSTEM } from "../../worldResourceTypes.sol"; diff --git a/packages/world/src/modules/uniqueentity/getUniqueEntity.sol b/packages/world/src/modules/uniqueentity/getUniqueEntity.sol index 6142514a97..cb4dd1981b 100644 --- a/packages/world/src/modules/uniqueentity/getUniqueEntity.sol +++ b/packages/world/src/modules/uniqueentity/getUniqueEntity.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { StoreSwitch } from "@latticexyz/store/src/StoreSwitch.sol"; diff --git a/packages/world/src/modules/uniqueentity/tables/UniqueEntity.sol b/packages/world/src/modules/uniqueentity/tables/UniqueEntity.sol index 504f52e8b4..0d1b5db6d8 100644 --- a/packages/world/src/modules/uniqueentity/tables/UniqueEntity.sol +++ b/packages/world/src/modules/uniqueentity/tables/UniqueEntity.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/modules/utils/ArrayLib.sol b/packages/world/src/modules/utils/ArrayLib.sol index b621b41b6d..0b16c1d44b 100644 --- a/packages/world/src/modules/utils/ArrayLib.sol +++ b/packages/world/src/modules/utils/ArrayLib.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; library ArrayLib { function equal(bytes32[] memory arr1, bytes32[] memory arr2) internal pure returns (bool) { diff --git a/packages/world/src/requireInterface.sol b/packages/world/src/requireInterface.sol index fd8680f731..420d78f1b2 100644 --- a/packages/world/src/requireInterface.sol +++ b/packages/world/src/requireInterface.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { IERC165 } from "./interfaces/IERC165.sol"; import { IWorldErrors } from "./interfaces/IWorldErrors.sol"; diff --git a/packages/world/src/revertWithBytes.sol b/packages/world/src/revertWithBytes.sol index 318ef91a8e..e93de3726e 100644 --- a/packages/world/src/revertWithBytes.sol +++ b/packages/world/src/revertWithBytes.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /** * Utility function to revert with raw bytes (eg. coming from a low level call or from a previously encoded error) diff --git a/packages/world/src/systemHookTypes.sol b/packages/world/src/systemHookTypes.sol index d23fb25ab5..999023f7eb 100644 --- a/packages/world/src/systemHookTypes.sol +++ b/packages/world/src/systemHookTypes.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; uint8 constant BEFORE_CALL_SYSTEM = 1 << 0; uint8 constant AFTER_CALL_SYSTEM = 1 << 1; diff --git a/packages/world/src/tables/Delegations.sol b/packages/world/src/tables/Delegations.sol index d74442d458..1b241f93e0 100644 --- a/packages/world/src/tables/Delegations.sol +++ b/packages/world/src/tables/Delegations.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/tables/InstalledModules.sol b/packages/world/src/tables/InstalledModules.sol index 378bbf8bb1..5b80739eff 100644 --- a/packages/world/src/tables/InstalledModules.sol +++ b/packages/world/src/tables/InstalledModules.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/tables/NamespaceOwner.sol b/packages/world/src/tables/NamespaceOwner.sol index 50fc82b5aa..62832ecd4b 100644 --- a/packages/world/src/tables/NamespaceOwner.sol +++ b/packages/world/src/tables/NamespaceOwner.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/tables/ResourceAccess.sol b/packages/world/src/tables/ResourceAccess.sol index 58b9ccceb5..57ee1ea25e 100644 --- a/packages/world/src/tables/ResourceAccess.sol +++ b/packages/world/src/tables/ResourceAccess.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/src/version.sol b/packages/world/src/version.sol index bd7a91f4d6..f2595b7c69 100644 --- a/packages/world/src/version.sol +++ b/packages/world/src/version.sol @@ -1,4 +1,4 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; bytes32 constant WORLD_VERSION = "0.0.0"; diff --git a/packages/world/src/worldResourceTypes.sol b/packages/world/src/worldResourceTypes.sol index d7ec187b3a..5b6cc089d4 100644 --- a/packages/world/src/worldResourceTypes.sol +++ b/packages/world/src/worldResourceTypes.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { RESOURCE_TABLE, RESOURCE_OFFCHAIN_TABLE } from "@latticexyz/store/src/storeResourceTypes.sol"; diff --git a/packages/world/test/AccessControl.t.sol b/packages/world/test/AccessControl.t.sol index 413706328f..07ff0f845f 100644 --- a/packages/world/test/AccessControl.t.sol +++ b/packages/world/test/AccessControl.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/world/test/Factories.t.sol b/packages/world/test/Factories.t.sol index a943d7a41f..a0bbff1890 100644 --- a/packages/world/test/Factories.t.sol +++ b/packages/world/test/Factories.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test, console } from "forge-std/Test.sol"; diff --git a/packages/world/test/KeysInTableModule.t.sol b/packages/world/test/KeysInTableModule.t.sol index 2c1061b3fb..00072be318 100644 --- a/packages/world/test/KeysInTableModule.t.sol +++ b/packages/world/test/KeysInTableModule.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/world/test/KeysWithValueModule.t.sol b/packages/world/test/KeysWithValueModule.t.sol index 2996090f62..aac01226fb 100644 --- a/packages/world/test/KeysWithValueModule.t.sol +++ b/packages/world/test/KeysWithValueModule.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test, console } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/world/test/MudTest.t.sol b/packages/world/test/MudTest.t.sol index 95af8e93be..098a487ae5 100644 --- a/packages/world/test/MudTest.t.sol +++ b/packages/world/test/MudTest.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { StoreSwitch } from "@latticexyz/store/src/StoreSwitch.sol"; diff --git a/packages/world/test/RevertWithBytes.t.sol b/packages/world/test/RevertWithBytes.t.sol index e9bda37e30..72464e96de 100644 --- a/packages/world/test/RevertWithBytes.t.sol +++ b/packages/world/test/RevertWithBytes.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { revertWithBytes } from "../src/revertWithBytes.sol"; diff --git a/packages/world/test/StandardDelegationsModule.t.sol b/packages/world/test/StandardDelegationsModule.t.sol index 5d1dd56e32..7b8b936fae 100644 --- a/packages/world/test/StandardDelegationsModule.t.sol +++ b/packages/world/test/StandardDelegationsModule.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/world/test/System.t.sol b/packages/world/test/System.t.sol index b428b45bbc..96e0faa298 100644 --- a/packages/world/test/System.t.sol +++ b/packages/world/test/System.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import "forge-std/Test.sol"; import { World } from "../src/World.sol"; diff --git a/packages/world/test/SystemHook.t.sol b/packages/world/test/SystemHook.t.sol index f191923d93..ef8d834d44 100644 --- a/packages/world/test/SystemHook.t.sol +++ b/packages/world/test/SystemHook.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/world/test/UniqueEntityModule.t.sol b/packages/world/test/UniqueEntityModule.t.sol index d9c24f2ec7..ec150d0a0a 100644 --- a/packages/world/test/UniqueEntityModule.t.sol +++ b/packages/world/test/UniqueEntityModule.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/world/test/Utils.t.sol b/packages/world/test/Utils.t.sol index 98b7752ea3..789480666a 100644 --- a/packages/world/test/Utils.t.sol +++ b/packages/world/test/Utils.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; diff --git a/packages/world/test/World.t.sol b/packages/world/test/World.t.sol index 3b242852bc..10fb008812 100644 --- a/packages/world/test/World.t.sol +++ b/packages/world/test/World.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/world/test/WorldBalance.t.sol b/packages/world/test/WorldBalance.t.sol index 4f3df02a0f..3a6e889925 100644 --- a/packages/world/test/WorldBalance.t.sol +++ b/packages/world/test/WorldBalance.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/world/test/WorldContext.t.sol b/packages/world/test/WorldContext.t.sol index a264b510b0..5015e0968f 100644 --- a/packages/world/test/WorldContext.t.sol +++ b/packages/world/test/WorldContext.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/world/test/WorldDynamicUpdate.t.sol b/packages/world/test/WorldDynamicUpdate.t.sol index 409495592a..75d28609e6 100644 --- a/packages/world/test/WorldDynamicUpdate.t.sol +++ b/packages/world/test/WorldDynamicUpdate.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test, console } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/world/test/WorldResourceId.t.sol b/packages/world/test/WorldResourceId.t.sol index e249e75c9f..fe052c0c10 100644 --- a/packages/world/test/WorldResourceId.t.sol +++ b/packages/world/test/WorldResourceId.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test, console } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/world/test/query.t.sol b/packages/world/test/query.t.sol index fd2fa7873d..3b0cb7155e 100644 --- a/packages/world/test/query.t.sol +++ b/packages/world/test/query.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Test, console } from "forge-std/Test.sol"; import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol"; diff --git a/packages/world/test/tables/AddressArray.sol b/packages/world/test/tables/AddressArray.sol index 8f658a688e..26a7d7775b 100644 --- a/packages/world/test/tables/AddressArray.sol +++ b/packages/world/test/tables/AddressArray.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/packages/world/test/tables/Bool.sol b/packages/world/test/tables/Bool.sol index 976c3c4658..425534d339 100644 --- a/packages/world/test/tables/Bool.sol +++ b/packages/world/test/tables/Bool.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/templates/phaser/packages/contracts/script/PostDeploy.s.sol b/templates/phaser/packages/contracts/script/PostDeploy.s.sol index 6218122e83..d8600bb5ed 100644 --- a/templates/phaser/packages/contracts/script/PostDeploy.s.sol +++ b/templates/phaser/packages/contracts/script/PostDeploy.s.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Script } from "forge-std/Script.sol"; import { console } from "forge-std/console.sol"; diff --git a/templates/phaser/packages/contracts/src/codegen/index.sol b/templates/phaser/packages/contracts/src/codegen/index.sol index 4fa54c456d..3ac2e18d1d 100644 --- a/templates/phaser/packages/contracts/src/codegen/index.sol +++ b/templates/phaser/packages/contracts/src/codegen/index.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/templates/phaser/packages/contracts/src/codegen/tables/Counter.sol b/templates/phaser/packages/contracts/src/codegen/tables/Counter.sol index 33aeb9dba3..26d56e1b79 100644 --- a/templates/phaser/packages/contracts/src/codegen/tables/Counter.sol +++ b/templates/phaser/packages/contracts/src/codegen/tables/Counter.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/templates/phaser/packages/contracts/src/codegen/world/IIncrementSystem.sol b/templates/phaser/packages/contracts/src/codegen/world/IIncrementSystem.sol index d3a987d44e..56c6d1ac0e 100644 --- a/templates/phaser/packages/contracts/src/codegen/world/IIncrementSystem.sol +++ b/templates/phaser/packages/contracts/src/codegen/world/IIncrementSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/templates/phaser/packages/contracts/src/codegen/world/IWorld.sol b/templates/phaser/packages/contracts/src/codegen/world/IWorld.sol index e92b40b33c..0fd7430af1 100644 --- a/templates/phaser/packages/contracts/src/codegen/world/IWorld.sol +++ b/templates/phaser/packages/contracts/src/codegen/world/IWorld.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/templates/phaser/packages/contracts/src/systems/IncrementSystem.sol b/templates/phaser/packages/contracts/src/systems/IncrementSystem.sol index db5a2673a2..fe8de1fd37 100644 --- a/templates/phaser/packages/contracts/src/systems/IncrementSystem.sol +++ b/templates/phaser/packages/contracts/src/systems/IncrementSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { System } from "@latticexyz/world/src/System.sol"; import { Counter } from "../codegen/index.sol"; diff --git a/templates/phaser/packages/contracts/test/CounterTest.t.sol b/templates/phaser/packages/contracts/test/CounterTest.t.sol index efe11c5126..adcb89b4e8 100644 --- a/templates/phaser/packages/contracts/test/CounterTest.t.sol +++ b/templates/phaser/packages/contracts/test/CounterTest.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import "forge-std/Test.sol"; import { MudTest } from "@latticexyz/world/test/MudTest.t.sol"; diff --git a/templates/react/packages/contracts/script/PostDeploy.s.sol b/templates/react/packages/contracts/script/PostDeploy.s.sol index 6218122e83..d8600bb5ed 100644 --- a/templates/react/packages/contracts/script/PostDeploy.s.sol +++ b/templates/react/packages/contracts/script/PostDeploy.s.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Script } from "forge-std/Script.sol"; import { console } from "forge-std/console.sol"; diff --git a/templates/react/packages/contracts/src/codegen/index.sol b/templates/react/packages/contracts/src/codegen/index.sol index 4fa54c456d..3ac2e18d1d 100644 --- a/templates/react/packages/contracts/src/codegen/index.sol +++ b/templates/react/packages/contracts/src/codegen/index.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/templates/react/packages/contracts/src/codegen/tables/Counter.sol b/templates/react/packages/contracts/src/codegen/tables/Counter.sol index 33aeb9dba3..26d56e1b79 100644 --- a/templates/react/packages/contracts/src/codegen/tables/Counter.sol +++ b/templates/react/packages/contracts/src/codegen/tables/Counter.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/templates/react/packages/contracts/src/codegen/world/IIncrementSystem.sol b/templates/react/packages/contracts/src/codegen/world/IIncrementSystem.sol index d3a987d44e..56c6d1ac0e 100644 --- a/templates/react/packages/contracts/src/codegen/world/IIncrementSystem.sol +++ b/templates/react/packages/contracts/src/codegen/world/IIncrementSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/templates/react/packages/contracts/src/codegen/world/IWorld.sol b/templates/react/packages/contracts/src/codegen/world/IWorld.sol index e92b40b33c..0fd7430af1 100644 --- a/templates/react/packages/contracts/src/codegen/world/IWorld.sol +++ b/templates/react/packages/contracts/src/codegen/world/IWorld.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/templates/react/packages/contracts/src/systems/IncrementSystem.sol b/templates/react/packages/contracts/src/systems/IncrementSystem.sol index db5a2673a2..fe8de1fd37 100644 --- a/templates/react/packages/contracts/src/systems/IncrementSystem.sol +++ b/templates/react/packages/contracts/src/systems/IncrementSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { System } from "@latticexyz/world/src/System.sol"; import { Counter } from "../codegen/index.sol"; diff --git a/templates/react/packages/contracts/test/CounterTest.t.sol b/templates/react/packages/contracts/test/CounterTest.t.sol index efe11c5126..adcb89b4e8 100644 --- a/templates/react/packages/contracts/test/CounterTest.t.sol +++ b/templates/react/packages/contracts/test/CounterTest.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import "forge-std/Test.sol"; import { MudTest } from "@latticexyz/world/test/MudTest.t.sol"; diff --git a/templates/threejs/packages/contracts/src/codegen/index.sol b/templates/threejs/packages/contracts/src/codegen/index.sol index 08fcbdca79..6c8169da7d 100644 --- a/templates/threejs/packages/contracts/src/codegen/index.sol +++ b/templates/threejs/packages/contracts/src/codegen/index.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/templates/threejs/packages/contracts/src/codegen/tables/Position.sol b/templates/threejs/packages/contracts/src/codegen/tables/Position.sol index 07ae7da4b2..8f4495582e 100644 --- a/templates/threejs/packages/contracts/src/codegen/tables/Position.sol +++ b/templates/threejs/packages/contracts/src/codegen/tables/Position.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/templates/threejs/packages/contracts/src/codegen/world/IMoveSystem.sol b/templates/threejs/packages/contracts/src/codegen/world/IMoveSystem.sol index 5ff09626f2..71a587e870 100644 --- a/templates/threejs/packages/contracts/src/codegen/world/IMoveSystem.sol +++ b/templates/threejs/packages/contracts/src/codegen/world/IMoveSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/templates/threejs/packages/contracts/src/codegen/world/IWorld.sol b/templates/threejs/packages/contracts/src/codegen/world/IWorld.sol index d66640e553..83839ef23b 100644 --- a/templates/threejs/packages/contracts/src/codegen/world/IWorld.sol +++ b/templates/threejs/packages/contracts/src/codegen/world/IWorld.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/templates/threejs/packages/contracts/src/systems/MoveSystem.sol b/templates/threejs/packages/contracts/src/systems/MoveSystem.sol index c90fa1c107..7c9e959438 100644 --- a/templates/threejs/packages/contracts/src/systems/MoveSystem.sol +++ b/templates/threejs/packages/contracts/src/systems/MoveSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { System } from "@latticexyz/world/src/System.sol"; import { Position, PositionData } from "../codegen/index.sol"; diff --git a/templates/vanilla/packages/contracts/script/PostDeploy.s.sol b/templates/vanilla/packages/contracts/script/PostDeploy.s.sol index 6218122e83..d8600bb5ed 100644 --- a/templates/vanilla/packages/contracts/script/PostDeploy.s.sol +++ b/templates/vanilla/packages/contracts/script/PostDeploy.s.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { Script } from "forge-std/Script.sol"; import { console } from "forge-std/console.sol"; diff --git a/templates/vanilla/packages/contracts/src/codegen/index.sol b/templates/vanilla/packages/contracts/src/codegen/index.sol index 4fa54c456d..3ac2e18d1d 100644 --- a/templates/vanilla/packages/contracts/src/codegen/index.sol +++ b/templates/vanilla/packages/contracts/src/codegen/index.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/templates/vanilla/packages/contracts/src/codegen/tables/Counter.sol b/templates/vanilla/packages/contracts/src/codegen/tables/Counter.sol index 33aeb9dba3..26d56e1b79 100644 --- a/templates/vanilla/packages/contracts/src/codegen/tables/Counter.sol +++ b/templates/vanilla/packages/contracts/src/codegen/tables/Counter.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/templates/vanilla/packages/contracts/src/codegen/world/IIncrementSystem.sol b/templates/vanilla/packages/contracts/src/codegen/world/IIncrementSystem.sol index d3a987d44e..56c6d1ac0e 100644 --- a/templates/vanilla/packages/contracts/src/codegen/world/IIncrementSystem.sol +++ b/templates/vanilla/packages/contracts/src/codegen/world/IIncrementSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/templates/vanilla/packages/contracts/src/codegen/world/IWorld.sol b/templates/vanilla/packages/contracts/src/codegen/world/IWorld.sol index e92b40b33c..0fd7430af1 100644 --- a/templates/vanilla/packages/contracts/src/codegen/world/IWorld.sol +++ b/templates/vanilla/packages/contracts/src/codegen/world/IWorld.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; /* Autogenerated file. Do not edit manually. */ diff --git a/templates/vanilla/packages/contracts/src/systems/IncrementSystem.sol b/templates/vanilla/packages/contracts/src/systems/IncrementSystem.sol index db5a2673a2..fe8de1fd37 100644 --- a/templates/vanilla/packages/contracts/src/systems/IncrementSystem.sol +++ b/templates/vanilla/packages/contracts/src/systems/IncrementSystem.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import { System } from "@latticexyz/world/src/System.sol"; import { Counter } from "../codegen/index.sol"; diff --git a/templates/vanilla/packages/contracts/test/CounterTest.t.sol b/templates/vanilla/packages/contracts/test/CounterTest.t.sol index efe11c5126..adcb89b4e8 100644 --- a/templates/vanilla/packages/contracts/test/CounterTest.t.sol +++ b/templates/vanilla/packages/contracts/test/CounterTest.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; +pragma solidity >=0.8.21; import "forge-std/Test.sol"; import { MudTest } from "@latticexyz/world/test/MudTest.t.sol"; From e915cba9c902ec44ed26863310f6513bcea25524 Mon Sep 17 00:00:00 2001 From: Kevin Ingersoll Date: Thu, 21 Sep 2023 18:06:30 +0100 Subject: [PATCH 3/5] gas report --- packages/store/gas-report.json | 218 ++++++++++++++++----------------- packages/world/gas-report.json | 130 ++++++++++---------- 2 files changed, 174 insertions(+), 174 deletions(-) diff --git a/packages/store/gas-report.json b/packages/store/gas-report.json index 3c65f6ecb2..866d3ea5a4 100644 --- a/packages/store/gas-report.json +++ b/packages/store/gas-report.json @@ -69,7 +69,7 @@ "file": "test/FieldLayout.t.sol", "test": "testEncodeDecodeFieldLayout", "name": "encode field layout with 5+1 entries", - "gasUsed": 2378 + "gasUsed": 2440 }, { "file": "test/FieldLayout.t.sol", @@ -81,7 +81,7 @@ "file": "test/FieldLayout.t.sol", "test": "testGetNumDynamicFields", "name": "get number of dynamic fields from field layout", - "gasUsed": 363 + "gasUsed": 389 }, { "file": "test/FieldLayout.t.sol", @@ -93,13 +93,13 @@ "file": "test/FieldLayout.t.sol", "test": "testGetNumStaticFields", "name": "get number of static fields from field layout", - "gasUsed": 293 + "gasUsed": 311 }, { "file": "test/FieldLayout.t.sol", "test": "testGetStaticFieldLayoutLength", "name": "get static data length from field layout", - "gasUsed": 218 + "gasUsed": 228 }, { "file": "test/FieldLayout.t.sol", @@ -117,7 +117,7 @@ "file": "test/FieldLayout.t.sol", "test": "testValidate", "name": "validate field layout", - "gasUsed": 3944 + "gasUsed": 3993 }, { "file": "test/Gas.t.sol", @@ -129,19 +129,19 @@ "file": "test/Gas.t.sol", "test": "testCompareAbiEncodeVsCustom", "name": "abi encode (dynamic)", - "gasUsed": 849 + "gasUsed": 824 }, { "file": "test/Gas.t.sol", "test": "testCompareAbiEncodeVsCustom", "name": "abi encode", - "gasUsed": 943 + "gasUsed": 918 }, { "file": "test/Gas.t.sol", "test": "testCompareAbiEncodeVsCustom", "name": "abi decode", - "gasUsed": 1741 + "gasUsed": 1716 }, { "file": "test/Gas.t.sol", @@ -159,31 +159,31 @@ "file": "test/Gas.t.sol", "test": "testCompareAbiEncodeVsCustom", "name": "custom encode (dynamic)", - "gasUsed": 1152 + "gasUsed": 1101 }, { "file": "test/Gas.t.sol", "test": "testCompareAbiEncodeVsCustom", "name": "custom encode", - "gasUsed": 1571 + "gasUsed": 1520 }, { "file": "test/Gas.t.sol", "test": "testCompareAbiEncodeVsCustom", "name": "custom decode", - "gasUsed": 2020 + "gasUsed": 2046 }, { "file": "test/Gas.t.sol", "test": "testCompareAbiEncodeVsCustom", "name": "pass abi encoded bytes to external contract", - "gasUsed": 6562 + "gasUsed": 6549 }, { "file": "test/Gas.t.sol", "test": "testCompareAbiEncodeVsCustom", "name": "pass custom encoded bytes to external contract", - "gasUsed": 1451 + "gasUsed": 1426 }, { "file": "test/Gas.t.sol", @@ -237,7 +237,7 @@ "file": "test/Gas.t.sol", "test": "testCompareStorageWriteSolidity", "name": "solidity storage write (cold, 10 words)", - "gasUsed": 199902 + "gasUsed": 200020 }, { "file": "test/Gas.t.sol", @@ -255,7 +255,7 @@ "file": "test/Gas.t.sol", "test": "testCompareStorageWriteSolidity", "name": "solidity storage write (warm, 10 words)", - "gasUsed": 1988 + "gasUsed": 2265 }, { "file": "test/GasStorageLoad.t.sol", @@ -351,31 +351,31 @@ "file": "test/KeyEncoding.t.sol", "test": "testRegisterAndGetFieldLayout", "name": "register KeyEncoding table", - "gasUsed": 720118 + "gasUsed": 720205 }, { "file": "test/Mixed.t.sol", "test": "testCompareSolidity", "name": "store Mixed struct in storage (native solidity)", - "gasUsed": 92038 + "gasUsed": 92007 }, { "file": "test/Mixed.t.sol", "test": "testRegisterAndGetFieldLayout", "name": "register Mixed table", - "gasUsed": 581944 + "gasUsed": 582081 }, { "file": "test/Mixed.t.sol", "test": "testSetAndGet", "name": "set record in Mixed", - "gasUsed": 103976 + "gasUsed": 103978 }, { "file": "test/Mixed.t.sol", "test": "testSetAndGet", "name": "get record from Mixed", - "gasUsed": 7025 + "gasUsed": 7091 }, { "file": "test/PackedCounter.t.sol", @@ -405,13 +405,13 @@ "file": "test/PackedCounter.t.sol", "test": "testSetAtIndex", "name": "set value at index of PackedCounter", - "gasUsed": 286 + "gasUsed": 283 }, { "file": "test/ResourceId.t.sol", "test": "testEncode", "name": "encode table ID with name and type", - "gasUsed": 188 + "gasUsed": 185 }, { "file": "test/ResourceId.t.sol", @@ -429,19 +429,19 @@ "file": "test/Schema.t.sol", "test": "testEncodeDecodeSchema", "name": "encode schema with 6 entries", - "gasUsed": 3555 + "gasUsed": 3609 }, { "file": "test/Schema.t.sol", "test": "testEncodeDecodeSchema", "name": "get schema type at index", - "gasUsed": 115 + "gasUsed": 119 }, { "file": "test/Schema.t.sol", "test": "testGetNumDynamicFields", "name": "get number of dynamic fields from schema", - "gasUsed": 363 + "gasUsed": 389 }, { "file": "test/Schema.t.sol", @@ -453,13 +453,13 @@ "file": "test/Schema.t.sol", "test": "testGetNumStaticFields", "name": "get number of static fields from schema", - "gasUsed": 293 + "gasUsed": 311 }, { "file": "test/Schema.t.sol", "test": "testGetStaticSchemaLength", "name": "get static data length from schema", - "gasUsed": 218 + "gasUsed": 228 }, { "file": "test/Schema.t.sol", @@ -477,7 +477,7 @@ "file": "test/Schema.t.sol", "test": "testValidate", "name": "validate schema", - "gasUsed": 11336 + "gasUsed": 11497 }, { "file": "test/Slice.t.sol", @@ -501,13 +501,13 @@ "file": "test/Slice.t.sol", "test": "testSubslice", "name": "subslice bytes (no copy) [1:4]", - "gasUsed": 311 + "gasUsed": 324 }, { "file": "test/Slice.t.sol", "test": "testSubslice", "name": "subslice bytes (no copy) [4:37]", - "gasUsed": 311 + "gasUsed": 324 }, { "file": "test/Slice.t.sol", @@ -573,109 +573,109 @@ "file": "test/StoreCoreDynamic.t.sol", "test": "testGetFieldSlice", "name": "get field slice (cold, 1 slot)", - "gasUsed": 8282 + "gasUsed": 8311 }, { "file": "test/StoreCoreDynamic.t.sol", "test": "testGetFieldSlice", "name": "get field slice (warm, 1 slot)", - "gasUsed": 2350 + "gasUsed": 2383 }, { "file": "test/StoreCoreDynamic.t.sol", "test": "testGetFieldSlice", "name": "get field slice (semi-cold, 1 slot)", - "gasUsed": 4353 + "gasUsed": 4386 }, { "file": "test/StoreCoreDynamic.t.sol", "test": "testGetFieldSlice", "name": "get field slice (warm, 2 slots)", - "gasUsed": 4579 + "gasUsed": 4608 }, { "file": "test/StoreCoreDynamic.t.sol", "test": "testGetSecondFieldLength", "name": "get field length (cold, 1 slot)", - "gasUsed": 7744 + "gasUsed": 7754 }, { "file": "test/StoreCoreDynamic.t.sol", "test": "testGetSecondFieldLength", "name": "get field length (warm, 1 slot)", - "gasUsed": 1739 + "gasUsed": 1749 }, { "file": "test/StoreCoreDynamic.t.sol", "test": "testGetThirdFieldLength", "name": "get field length (warm due to , 2 slots)", - "gasUsed": 7743 + "gasUsed": 7753 }, { "file": "test/StoreCoreDynamic.t.sol", "test": "testGetThirdFieldLength", "name": "get field length (warm, 2 slots)", - "gasUsed": 1739 + "gasUsed": 1749 }, { "file": "test/StoreCoreDynamic.t.sol", "test": "testPopFromSecondField", "name": "pop from field (cold, 1 slot, 1 uint32 item)", - "gasUsed": 19449 + "gasUsed": 19479 }, { "file": "test/StoreCoreDynamic.t.sol", "test": "testPopFromSecondField", "name": "pop from field (warm, 1 slot, 1 uint32 item)", - "gasUsed": 13457 + "gasUsed": 13487 }, { "file": "test/StoreCoreDynamic.t.sol", "test": "testPopFromThirdField", "name": "pop from field (cold, 2 slots, 10 uint32 items)", - "gasUsed": 17217 + "gasUsed": 17247 }, { "file": "test/StoreCoreDynamic.t.sol", "test": "testPopFromThirdField", "name": "pop from field (warm, 2 slots, 10 uint32 items)", - "gasUsed": 13225 + "gasUsed": 13255 }, { "file": "test/StoreCoreGas.t.sol", "test": "testAccessEmptyData", "name": "access non-existing record", - "gasUsed": 7042 + "gasUsed": 7077 }, { "file": "test/StoreCoreGas.t.sol", "test": "testAccessEmptyData", "name": "access static field of non-existing record", - "gasUsed": 1318 + "gasUsed": 1333 }, { "file": "test/StoreCoreGas.t.sol", "test": "testAccessEmptyData", "name": "access dynamic field of non-existing record", - "gasUsed": 2034 + "gasUsed": 2059 }, { "file": "test/StoreCoreGas.t.sol", "test": "testAccessEmptyData", "name": "access length of dynamic field of non-existing record", - "gasUsed": 1108 + "gasUsed": 1118 }, { "file": "test/StoreCoreGas.t.sol", "test": "testAccessEmptyData", "name": "access slice of dynamic field of non-existing record", - "gasUsed": 1484 + "gasUsed": 1517 }, { "file": "test/StoreCoreGas.t.sol", "test": "testDeleteData", "name": "delete record (complex data, 3 slots)", - "gasUsed": 6735 + "gasUsed": 6778 }, { "file": "test/StoreCoreGas.t.sol", @@ -693,175 +693,175 @@ "file": "test/StoreCoreGas.t.sol", "test": "testHooks", "name": "register subscriber", - "gasUsed": 58766 + "gasUsed": 58781 }, { "file": "test/StoreCoreGas.t.sol", "test": "testHooks", "name": "set record on table with subscriber", - "gasUsed": 71311 + "gasUsed": 71248 }, { "file": "test/StoreCoreGas.t.sol", "test": "testHooks", "name": "set static field on table with subscriber", - "gasUsed": 20788 + "gasUsed": 20732 }, { "file": "test/StoreCoreGas.t.sol", "test": "testHooks", "name": "delete record on table with subscriber", - "gasUsed": 16784 + "gasUsed": 16870 }, { "file": "test/StoreCoreGas.t.sol", "test": "testHooksDynamicData", "name": "register subscriber", - "gasUsed": 58766 + "gasUsed": 58781 }, { "file": "test/StoreCoreGas.t.sol", "test": "testHooksDynamicData", "name": "set (dynamic) record on table with subscriber", - "gasUsed": 164432 + "gasUsed": 164402 }, { "file": "test/StoreCoreGas.t.sol", "test": "testHooksDynamicData", "name": "set (dynamic) field on table with subscriber", - "gasUsed": 24552 + "gasUsed": 24526 }, { "file": "test/StoreCoreGas.t.sol", "test": "testHooksDynamicData", "name": "delete (dynamic) record on table with subscriber", - "gasUsed": 17769 + "gasUsed": 17855 }, { "file": "test/StoreCoreGas.t.sol", "test": "testPushToField", "name": "push to field (1 slot, 1 uint32 item)", - "gasUsed": 10260 + "gasUsed": 10275 }, { "file": "test/StoreCoreGas.t.sol", "test": "testPushToField", "name": "push to field (2 slots, 10 uint32 items)", - "gasUsed": 32930 + "gasUsed": 32945 }, { "file": "test/StoreCoreGas.t.sol", "test": "testRegisterAndGetFieldLayout", "name": "StoreCore: register table", - "gasUsed": 642065 + "gasUsed": 642079 }, { "file": "test/StoreCoreGas.t.sol", "test": "testRegisterAndGetFieldLayout", "name": "StoreCore: get field layout (warm)", - "gasUsed": 1293 + "gasUsed": 1287 }, { "file": "test/StoreCoreGas.t.sol", "test": "testRegisterAndGetFieldLayout", "name": "StoreCore: get value schema (warm)", - "gasUsed": 1804 + "gasUsed": 1808 }, { "file": "test/StoreCoreGas.t.sol", "test": "testRegisterAndGetFieldLayout", "name": "StoreCore: get key schema (warm)", - "gasUsed": 2827 + "gasUsed": 2826 }, { "file": "test/StoreCoreGas.t.sol", "test": "testSetAndGetDynamicData", "name": "set complex record with dynamic data (4 slots)", - "gasUsed": 101874 + "gasUsed": 101934 }, { "file": "test/StoreCoreGas.t.sol", "test": "testSetAndGetDynamicData", "name": "get complex record with dynamic data (4 slots)", - "gasUsed": 4203 + "gasUsed": 4243 }, { "file": "test/StoreCoreGas.t.sol", "test": "testSetAndGetDynamicData", "name": "compare: Set complex record with dynamic data using native solidity", - "gasUsed": 116845 + "gasUsed": 116821 }, { "file": "test/StoreCoreGas.t.sol", "test": "testSetAndGetDynamicData", "name": "compare: Set complex record with dynamic data using abi.encode", - "gasUsed": 267369 + "gasUsed": 267535 }, { "file": "test/StoreCoreGas.t.sol", "test": "testSetAndGetDynamicDataLength", "name": "set dynamic length of dynamic index 0", - "gasUsed": 22870 + "gasUsed": 22867 }, { "file": "test/StoreCoreGas.t.sol", "test": "testSetAndGetDynamicDataLength", "name": "set dynamic length of dynamic index 1", - "gasUsed": 971 + "gasUsed": 968 }, { "file": "test/StoreCoreGas.t.sol", "test": "testSetAndGetDynamicDataLength", "name": "reduce dynamic length of dynamic index 0", - "gasUsed": 961 + "gasUsed": 958 }, { "file": "test/StoreCoreGas.t.sol", "test": "testSetAndGetField", "name": "set static field (1 slot)", - "gasUsed": 31604 + "gasUsed": 31607 }, { "file": "test/StoreCoreGas.t.sol", "test": "testSetAndGetField", "name": "get static field (1 slot)", - "gasUsed": 1318 + "gasUsed": 1333 }, { "file": "test/StoreCoreGas.t.sol", "test": "testSetAndGetField", "name": "set static field (overlap 2 slot)", - "gasUsed": 30245 + "gasUsed": 30260 }, { "file": "test/StoreCoreGas.t.sol", "test": "testSetAndGetField", "name": "get static field (overlap 2 slot)", - "gasUsed": 1845 + "gasUsed": 1865 }, { "file": "test/StoreCoreGas.t.sol", "test": "testSetAndGetField", "name": "set dynamic field (1 slot, first dynamic field)", - "gasUsed": 53959 + "gasUsed": 53974 }, { "file": "test/StoreCoreGas.t.sol", "test": "testSetAndGetField", "name": "get dynamic field (1 slot, first dynamic field)", - "gasUsed": 2201 + "gasUsed": 2226 }, { "file": "test/StoreCoreGas.t.sol", "test": "testSetAndGetField", "name": "set dynamic field (1 slot, second dynamic field)", - "gasUsed": 32182 + "gasUsed": 32197 }, { "file": "test/StoreCoreGas.t.sol", "test": "testSetAndGetField", "name": "get dynamic field (1 slot, second dynamic field)", - "gasUsed": 2204 + "gasUsed": 2229 }, { "file": "test/StoreCoreGas.t.sol", @@ -873,7 +873,7 @@ "file": "test/StoreCoreGas.t.sol", "test": "testSetAndGetStaticData", "name": "get static record (1 slot)", - "gasUsed": 1524 + "gasUsed": 1554 }, { "file": "test/StoreCoreGas.t.sol", @@ -885,25 +885,25 @@ "file": "test/StoreCoreGas.t.sol", "test": "testSetAndGetStaticDataSpanningWords", "name": "get static record (2 slots)", - "gasUsed": 1711 + "gasUsed": 1741 }, { "file": "test/StoreCoreGas.t.sol", "test": "testUpdateInField", "name": "update in field (1 slot, 1 uint32 item)", - "gasUsed": 9604 + "gasUsed": 9627 }, { "file": "test/StoreCoreGas.t.sol", "test": "testUpdateInField", "name": "push to field (2 slots, 6 uint64 items)", - "gasUsed": 10043 + "gasUsed": 10073 }, { "file": "test/StoreHook.t.sol", "test": "testCallHook", "name": "call an enabled hook", - "gasUsed": 15038 + "gasUsed": 15032 }, { "file": "test/StoreHook.t.sol", @@ -939,121 +939,121 @@ "file": "test/tables/Callbacks.t.sol", "test": "testSetAndGet", "name": "Callbacks: set field", - "gasUsed": 57051 + "gasUsed": 57069 }, { "file": "test/tables/Callbacks.t.sol", "test": "testSetAndGet", "name": "Callbacks: get field (warm)", - "gasUsed": 2902 + "gasUsed": 2915 }, { "file": "test/tables/Callbacks.t.sol", "test": "testSetAndGet", "name": "Callbacks: push 1 element", - "gasUsed": 33332 + "gasUsed": 33351 }, { "file": "test/tables/StoreHooks.t.sol", "test": "testOneSlot", "name": "StoreHooks: set field with one elements (cold)", - "gasUsed": 59057 + "gasUsed": 59075 }, { "file": "test/tables/StoreHooks.t.sol", "test": "testTable", "name": "StoreHooks: set field (cold)", - "gasUsed": 59057 + "gasUsed": 59075 }, { "file": "test/tables/StoreHooks.t.sol", "test": "testTable", "name": "StoreHooks: get field (warm)", - "gasUsed": 2904 + "gasUsed": 2921 }, { "file": "test/tables/StoreHooks.t.sol", "test": "testTable", "name": "StoreHooks: push 1 element (cold)", - "gasUsed": 13430 + "gasUsed": 13449 }, { "file": "test/tables/StoreHooks.t.sol", "test": "testTable", "name": "StoreHooks: pop 1 element (warm)", - "gasUsed": 10743 + "gasUsed": 10777 }, { "file": "test/tables/StoreHooks.t.sol", "test": "testTable", "name": "StoreHooks: push 1 element (warm)", - "gasUsed": 11447 + "gasUsed": 11466 }, { "file": "test/tables/StoreHooks.t.sol", "test": "testTable", "name": "StoreHooks: update 1 element (warm)", - "gasUsed": 30659 + "gasUsed": 30686 }, { "file": "test/tables/StoreHooks.t.sol", "test": "testTable", "name": "StoreHooks: delete record (warm)", - "gasUsed": 7163 + "gasUsed": 7210 }, { "file": "test/tables/StoreHooks.t.sol", "test": "testTable", "name": "StoreHooks: set field (warm)", - "gasUsed": 31201 + "gasUsed": 31219 }, { "file": "test/tables/StoreHooks.t.sol", "test": "testThreeSlots", "name": "StoreHooks: set field with three elements (cold)", - "gasUsed": 81745 + "gasUsed": 81763 }, { "file": "test/tables/StoreHooks.t.sol", "test": "testTwoSlots", "name": "StoreHooks: set field with two elements (cold)", - "gasUsed": 81657 + "gasUsed": 81675 }, { "file": "test/tables/StoreHooksColdLoad.t.sol", "test": "testDelete", "name": "StoreHooks: delete record (cold)", - "gasUsed": 16031 + "gasUsed": 16078 }, { "file": "test/tables/StoreHooksColdLoad.t.sol", "test": "testGet", "name": "StoreHooks: get field (cold)", - "gasUsed": 8901 + "gasUsed": 8918 }, { "file": "test/tables/StoreHooksColdLoad.t.sol", "test": "testGetItem", "name": "StoreHooks: get 1 element (cold)", - "gasUsed": 6542 + "gasUsed": 6575 }, { "file": "test/tables/StoreHooksColdLoad.t.sol", "test": "testLength", "name": "StoreHooks: get length (cold)", - "gasUsed": 5861 + "gasUsed": 5871 }, { "file": "test/tables/StoreHooksColdLoad.t.sol", "test": "testPop", "name": "StoreHooks: pop 1 element (cold)", - "gasUsed": 19178 + "gasUsed": 19212 }, { "file": "test/tables/StoreHooksColdLoad.t.sol", "test": "testUpdate", "name": "StoreHooks: update 1 element (cold)", - "gasUsed": 21114 + "gasUsed": 21141 }, { "file": "test/tightcoder/DecodeSlice.t.sol", @@ -1071,19 +1071,19 @@ "file": "test/tightcoder/EncodeArray.t.sol", "test": "testEncodeUint16Array", "name": "encode packed uint16[]", - "gasUsed": 595 + "gasUsed": 594 }, { "file": "test/tightcoder/EncodeArray.t.sol", "test": "testEncodeUint32Array", "name": "encode packed uint32[]", - "gasUsed": 504 + "gasUsed": 503 }, { "file": "test/tightcoder/EncodeArray.t.sol", "test": "testEncodeUint8Array", "name": "encode packed uint8[]", - "gasUsed": 493 + "gasUsed": 492 }, { "file": "test/tightcoder/TightCoder.t.sol", @@ -1095,7 +1095,7 @@ "file": "test/tightcoder/TightCoder.t.sol", "test": "testToAndFromBytes24Array", "name": "encode packed bytes24[]", - "gasUsed": 501 + "gasUsed": 503 }, { "file": "test/tightcoder/TightCoder.t.sol", @@ -1107,18 +1107,18 @@ "file": "test/Vector2.t.sol", "test": "testRegisterAndGetFieldLayout", "name": "register Vector2 field layout", - "gasUsed": 443387 + "gasUsed": 443558 }, { "file": "test/Vector2.t.sol", "test": "testSetAndGet", "name": "set Vector2 record", - "gasUsed": 33103 + "gasUsed": 33096 }, { "file": "test/Vector2.t.sol", "test": "testSetAndGet", "name": "get Vector2 record", - "gasUsed": 2514 + "gasUsed": 2540 } ] diff --git a/packages/world/gas-report.json b/packages/world/gas-report.json index 46c6292db7..df720c3d4d 100644 --- a/packages/world/gas-report.json +++ b/packages/world/gas-report.json @@ -3,31 +3,31 @@ "file": "test/AccessControl.t.sol", "test": "testAccessControl", "name": "AccessControl: hasAccess (cold)", - "gasUsed": 7179 + "gasUsed": 7178 }, { "file": "test/AccessControl.t.sol", "test": "testAccessControl", "name": "AccessControl: hasAccess (warm, namespace only)", - "gasUsed": 1727 + "gasUsed": 1726 }, { "file": "test/AccessControl.t.sol", "test": "testAccessControl", "name": "AccessControl: hasAccess (warm)", - "gasUsed": 3187 + "gasUsed": 3186 }, { "file": "test/AccessControl.t.sol", "test": "testRequireAccess", "name": "AccessControl: requireAccess (cold)", - "gasUsed": 7222 + "gasUsed": 7221 }, { "file": "test/AccessControl.t.sol", "test": "testRequireAccess", "name": "AccessControl: requireAccess (warm)", - "gasUsed": 3225 + "gasUsed": 3224 }, { "file": "test/AccessControl.t.sol", @@ -39,361 +39,361 @@ "file": "test/KeysInTableModule.t.sol", "test": "testInstallComposite", "name": "install keys in table module", - "gasUsed": 1414806 + "gasUsed": 1414653 }, { "file": "test/KeysInTableModule.t.sol", "test": "testInstallGas", "name": "install keys in table module", - "gasUsed": 1414806 + "gasUsed": 1414653 }, { "file": "test/KeysInTableModule.t.sol", "test": "testInstallGas", "name": "set a record on a table with keysInTableModule installed", - "gasUsed": 158382 + "gasUsed": 158293 }, { "file": "test/KeysInTableModule.t.sol", "test": "testInstallSingleton", "name": "install keys in table module", - "gasUsed": 1414806 + "gasUsed": 1414653 }, { "file": "test/KeysInTableModule.t.sol", "test": "testSetAndDeleteRecordHookCompositeGas", "name": "install keys in table module", - "gasUsed": 1414806 + "gasUsed": 1414653 }, { "file": "test/KeysInTableModule.t.sol", "test": "testSetAndDeleteRecordHookCompositeGas", "name": "change a composite record on a table with keysInTableModule installed", - "gasUsed": 22324 + "gasUsed": 22265 }, { "file": "test/KeysInTableModule.t.sol", "test": "testSetAndDeleteRecordHookCompositeGas", "name": "delete a composite record on a table with keysInTableModule installed", - "gasUsed": 160664 + "gasUsed": 160800 }, { "file": "test/KeysInTableModule.t.sol", "test": "testSetAndDeleteRecordHookGas", "name": "install keys in table module", - "gasUsed": 1414806 + "gasUsed": 1414653 }, { "file": "test/KeysInTableModule.t.sol", "test": "testSetAndDeleteRecordHookGas", "name": "change a record on a table with keysInTableModule installed", - "gasUsed": 21046 + "gasUsed": 20987 }, { "file": "test/KeysInTableModule.t.sol", "test": "testSetAndDeleteRecordHookGas", "name": "delete a record on a table with keysInTableModule installed", - "gasUsed": 85764 + "gasUsed": 85824 }, { "file": "test/KeysWithValueModule.t.sol", "test": "testGetKeysWithValueGas", "name": "install keys with value module", - "gasUsed": 665200 + "gasUsed": 665378 }, { "file": "test/KeysWithValueModule.t.sol", "test": "testGetKeysWithValueGas", "name": "Get list of keys with a given value", - "gasUsed": 6175 + "gasUsed": 6186 }, { "file": "test/KeysWithValueModule.t.sol", "test": "testGetTargetTableId", "name": "compute the target table selector", - "gasUsed": 3071 + "gasUsed": 3101 }, { "file": "test/KeysWithValueModule.t.sol", "test": "testInstall", "name": "install keys with value module", - "gasUsed": 665200 + "gasUsed": 665378 }, { "file": "test/KeysWithValueModule.t.sol", "test": "testInstall", "name": "set a record on a table with KeysWithValueModule installed", - "gasUsed": 135760 + "gasUsed": 135704 }, { "file": "test/KeysWithValueModule.t.sol", "test": "testSetAndDeleteRecordHook", "name": "install keys with value module", - "gasUsed": 665200 + "gasUsed": 665378 }, { "file": "test/KeysWithValueModule.t.sol", "test": "testSetAndDeleteRecordHook", "name": "change a record on a table with KeysWithValueModule installed", - "gasUsed": 106140 + "gasUsed": 106045 }, { "file": "test/KeysWithValueModule.t.sol", "test": "testSetAndDeleteRecordHook", "name": "delete a record on a table with KeysWithValueModule installed", - "gasUsed": 35415 + "gasUsed": 35455 }, { "file": "test/KeysWithValueModule.t.sol", "test": "testSetField", "name": "install keys with value module", - "gasUsed": 665200 + "gasUsed": 665378 }, { "file": "test/KeysWithValueModule.t.sol", "test": "testSetField", "name": "set a field on a table with KeysWithValueModule installed", - "gasUsed": 148511 + "gasUsed": 148453 }, { "file": "test/KeysWithValueModule.t.sol", "test": "testSetField", "name": "change a field on a table with KeysWithValueModule installed", - "gasUsed": 113270 + "gasUsed": 113212 }, { "file": "test/query.t.sol", "test": "testCombinedHasHasValueNotQuery", "name": "CombinedHasHasValueNotQuery", - "gasUsed": 104597 + "gasUsed": 104642 }, { "file": "test/query.t.sol", "test": "testCombinedHasHasValueQuery", "name": "CombinedHasHasValueQuery", - "gasUsed": 54366 + "gasUsed": 54376 }, { "file": "test/query.t.sol", "test": "testCombinedHasNotQuery", "name": "CombinedHasNotQuery", - "gasUsed": 128263 + "gasUsed": 128343 }, { "file": "test/query.t.sol", "test": "testCombinedHasQuery", "name": "CombinedHasQuery", - "gasUsed": 81486 + "gasUsed": 81556 }, { "file": "test/query.t.sol", "test": "testCombinedHasValueNotQuery", "name": "CombinedHasValueNotQuery", - "gasUsed": 83650 + "gasUsed": 83695 }, { "file": "test/query.t.sol", "test": "testCombinedHasValueQuery", "name": "CombinedHasValueQuery", - "gasUsed": 16664 + "gasUsed": 16659 }, { "file": "test/query.t.sol", "test": "testHasQuery", "name": "HasQuery", - "gasUsed": 18101 + "gasUsed": 18116 }, { "file": "test/query.t.sol", "test": "testHasQuery1000Keys", "name": "HasQuery with 1000 keys", - "gasUsed": 5938600 + "gasUsed": 5938615 }, { "file": "test/query.t.sol", "test": "testHasQuery100Keys", "name": "HasQuery with 100 keys", - "gasUsed": 553994 + "gasUsed": 554009 }, { "file": "test/query.t.sol", "test": "testHasValueQuery", "name": "HasValueQuery", - "gasUsed": 8003 + "gasUsed": 7998 }, { "file": "test/query.t.sol", "test": "testNotValueQuery", "name": "NotValueQuery", - "gasUsed": 47962 + "gasUsed": 47972 }, { "file": "test/StandardDelegationsModule.t.sol", "test": "testCallFromCallboundDelegation", "name": "register a callbound delegation", - "gasUsed": 114571 + "gasUsed": 114589 }, { "file": "test/StandardDelegationsModule.t.sol", "test": "testCallFromCallboundDelegation", "name": "call a system via a callbound delegation", - "gasUsed": 34058 + "gasUsed": 33993 }, { "file": "test/StandardDelegationsModule.t.sol", "test": "testCallFromTimeboundDelegation", "name": "register a timebound delegation", - "gasUsed": 109041 + "gasUsed": 109084 }, { "file": "test/StandardDelegationsModule.t.sol", "test": "testCallFromTimeboundDelegation", "name": "call a system via a timebound delegation", - "gasUsed": 27106 + "gasUsed": 26998 }, { "file": "test/UniqueEntityModule.t.sol", "test": "testInstall", "name": "install unique entity module", - "gasUsed": 690323 + "gasUsed": 690431 }, { "file": "test/UniqueEntityModule.t.sol", "test": "testInstall", "name": "get a unique entity nonce (non-root module)", - "gasUsed": 52137 + "gasUsed": 52176 }, { "file": "test/UniqueEntityModule.t.sol", "test": "testInstallRoot", "name": "installRoot unique entity module", - "gasUsed": 680596 + "gasUsed": 680681 }, { "file": "test/UniqueEntityModule.t.sol", "test": "testInstallRoot", "name": "get a unique entity nonce (root module)", - "gasUsed": 52137 + "gasUsed": 52176 }, { "file": "test/World.t.sol", "test": "testCall", "name": "call a system via the World", - "gasUsed": 12769 + "gasUsed": 12702 }, { "file": "test/World.t.sol", "test": "testCallFromUnlimitedDelegation", "name": "register an unlimited delegation", - "gasUsed": 50615 + "gasUsed": 50629 }, { "file": "test/World.t.sol", "test": "testCallFromUnlimitedDelegation", "name": "call a system via an unlimited delegation", - "gasUsed": 12961 + "gasUsed": 12895 }, { "file": "test/World.t.sol", "test": "testDeleteRecord", "name": "Delete record", - "gasUsed": 9155 + "gasUsed": 9197 }, { "file": "test/World.t.sol", "test": "testPushToField", "name": "Push data to the table", - "gasUsed": 86882 + "gasUsed": 86871 }, { "file": "test/World.t.sol", "test": "testRegisterFallbackSystem", "name": "Register a fallback system", - "gasUsed": 59404 + "gasUsed": 59306 }, { "file": "test/World.t.sol", "test": "testRegisterFallbackSystem", "name": "Register a root fallback system", - "gasUsed": 52929 + "gasUsed": 52950 }, { "file": "test/World.t.sol", "test": "testRegisterFunctionSelector", "name": "Register a function selector", - "gasUsed": 79998 + "gasUsed": 79872 }, { "file": "test/World.t.sol", "test": "testRegisterNamespace", "name": "Register a new namespace", - "gasUsed": 123238 + "gasUsed": 123269 }, { "file": "test/World.t.sol", "test": "testRegisterRootFunctionSelector", "name": "Register a root function selector", - "gasUsed": 74842 + "gasUsed": 74863 }, { "file": "test/World.t.sol", "test": "testRegisterSystem", "name": "register a system", - "gasUsed": 165710 + "gasUsed": 165750 }, { "file": "test/World.t.sol", "test": "testRegisterTable", "name": "Register a new table in the namespace", - "gasUsed": 651789 + "gasUsed": 651802 }, { "file": "test/World.t.sol", "test": "testSetField", "name": "Write data to a table field", - "gasUsed": 37413 + "gasUsed": 37387 }, { "file": "test/World.t.sol", "test": "testSetRecord", "name": "Write data to the table", - "gasUsed": 35407 + "gasUsed": 35381 }, { "file": "test/WorldDynamicUpdate.t.sol", "test": "testPopFromField", "name": "pop 1 address (cold)", - "gasUsed": 24643 + "gasUsed": 24672 }, { "file": "test/WorldDynamicUpdate.t.sol", "test": "testPopFromField", "name": "pop 1 address (warm)", - "gasUsed": 13789 + "gasUsed": 13818 }, { "file": "test/WorldDynamicUpdate.t.sol", "test": "testUpdateInField", "name": "updateInField 1 item (cold)", - "gasUsed": 25248 + "gasUsed": 25236 }, { "file": "test/WorldDynamicUpdate.t.sol", "test": "testUpdateInField", "name": "updateInField 1 item (warm)", - "gasUsed": 14453 + "gasUsed": 14441 }, { "file": "test/WorldResourceId.t.sol", "test": "testGetNamespace", "name": "encode namespace, name and type", - "gasUsed": 151 + "gasUsed": 150 }, { "file": "test/WorldResourceId.t.sol", "test": "testGetNamespaceId", "name": "get namespace ID from a resource ID", - "gasUsed": 175 + "gasUsed": 174 }, { "file": "test/WorldResourceId.t.sol", From 39648f2c06338364df84397652f718d2a15e06ac Mon Sep 17 00:00:00 2001 From: Kevin Ingersoll Date: Thu, 21 Sep 2023 18:08:58 +0100 Subject: [PATCH 4/5] set vscode solc version --- .vscode/settings.json | 3 ++- packages/cli/package.json | 3 ++- templates/phaser/.vscode/settings.json | 3 ++- templates/react/.vscode/settings.json | 3 ++- templates/threejs/.vscode/settings.json | 3 ++- templates/vanilla/.vscode/settings.json | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 5a44ed867e..2cb0dd5713 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,4 @@ { - "solidity.monoRepoSupport": true + "solidity.monoRepoSupport": true, + "solidity.compileUsingRemoteVersion": "v0.8.21+commit.d9974bed" } diff --git a/packages/cli/package.json b/packages/cli/package.json index 667a7d7765..4ebf52eae8 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -20,8 +20,9 @@ "build": "pnpm run build:js && pnpm run build:test-tables", "build:js": "tsup && chmod +x ./dist/mud.js", "build:test-tables": "tsx ./scripts/generate-test-tables.ts", - "clean": "pnpm run clean:js", + "clean": "pnpm run clean:js && pnpm run clean:test-tables", "clean:js": "rimraf dist", + "clean:test-tables": "rimraf src/codegen", "dev": "tsup --watch", "lint": "eslint . --ext .ts", "prepare": "mkdir -p ./dist && touch ./dist/mud.js", diff --git a/templates/phaser/.vscode/settings.json b/templates/phaser/.vscode/settings.json index 5a44ed867e..2cb0dd5713 100644 --- a/templates/phaser/.vscode/settings.json +++ b/templates/phaser/.vscode/settings.json @@ -1,3 +1,4 @@ { - "solidity.monoRepoSupport": true + "solidity.monoRepoSupport": true, + "solidity.compileUsingRemoteVersion": "v0.8.21+commit.d9974bed" } diff --git a/templates/react/.vscode/settings.json b/templates/react/.vscode/settings.json index 5a44ed867e..2cb0dd5713 100644 --- a/templates/react/.vscode/settings.json +++ b/templates/react/.vscode/settings.json @@ -1,3 +1,4 @@ { - "solidity.monoRepoSupport": true + "solidity.monoRepoSupport": true, + "solidity.compileUsingRemoteVersion": "v0.8.21+commit.d9974bed" } diff --git a/templates/threejs/.vscode/settings.json b/templates/threejs/.vscode/settings.json index 5a44ed867e..2cb0dd5713 100644 --- a/templates/threejs/.vscode/settings.json +++ b/templates/threejs/.vscode/settings.json @@ -1,3 +1,4 @@ { - "solidity.monoRepoSupport": true + "solidity.monoRepoSupport": true, + "solidity.compileUsingRemoteVersion": "v0.8.21+commit.d9974bed" } diff --git a/templates/vanilla/.vscode/settings.json b/templates/vanilla/.vscode/settings.json index 5a44ed867e..2cb0dd5713 100644 --- a/templates/vanilla/.vscode/settings.json +++ b/templates/vanilla/.vscode/settings.json @@ -1,3 +1,4 @@ { - "solidity.monoRepoSupport": true + "solidity.monoRepoSupport": true, + "solidity.compileUsingRemoteVersion": "v0.8.21+commit.d9974bed" } From 5817aab0dbf5674c73fe69acb39401570e0af7fa Mon Sep 17 00:00:00 2001 From: Kevin Ingersoll Date: Thu, 21 Sep 2023 18:09:05 +0100 Subject: [PATCH 5/5] changeset --- .changeset/serious-ads-trade.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .changeset/serious-ads-trade.md diff --git a/.changeset/serious-ads-trade.md b/.changeset/serious-ads-trade.md new file mode 100644 index 0000000000..256b526641 --- /dev/null +++ b/.changeset/serious-ads-trade.md @@ -0,0 +1,12 @@ +--- +"@latticexyz/cli": minor +"@latticexyz/common": minor +"@latticexyz/gas-report": major +"@latticexyz/noise": major +"@latticexyz/schema-type": major +"@latticexyz/store": major +"@latticexyz/world": major +"create-mud": minor +--- + +Bump Solidity version to 0.8.21