From 11b32fa81f4fd5ad0e28844b09e7a3b3be3b35d1 Mon Sep 17 00:00:00 2001 From: V <3252614+vdrg@users.noreply.github.com> Date: Thu, 21 Nov 2024 08:53:05 +0700 Subject: [PATCH] fix: turbo clean dependencies + gas report underflow + test snapshots (#3378) --- packages/gas-report/src/GasReporter.sol | 4 +- packages/schema-type/gas-report.json | 36 +- packages/store/gas-report.json | 322 +++++++++--------- packages/store/ts/flattenStoreLogs.test.ts | 38 +-- packages/store/ts/getStoreLogs.test.ts | 46 +-- packages/world-module-erc20/gas-report.json | 74 ++-- .../world-module-metadata/gas-report.json | 6 +- packages/world-modules/gas-report.json | 112 +++--- packages/world/gas-report.json | 102 +++--- turbo.json | 17 + 10 files changed, 387 insertions(+), 370 deletions(-) diff --git a/packages/gas-report/src/GasReporter.sol b/packages/gas-report/src/GasReporter.sol index f5a349d966..ac8e96a412 100644 --- a/packages/gas-report/src/GasReporter.sol +++ b/packages/gas-report/src/GasReporter.sol @@ -29,9 +29,9 @@ contract GasReporter is Test { function endGasReport() internal { uint256 gas = gasleft(); if (!vm.envOr("GAS_REPORTER_ENABLED", false)) return; - // subtract 160 gas used by the GasReporter itself + // subtract 159 gas used by the GasReporter itself // add 1 gas so we can later check that this is set - uint256 gasUsed = __currentGasReportValue - gas - 160 + 1; + uint256 gasUsed = __currentGasReportValue - gas - 159 + 1; require(gasUsed > 0, "gas report didn't use gas"); __gasReports[__currentGasReportName] = gasUsed; __gasReportNames.push(__currentGasReportName); diff --git a/packages/schema-type/gas-report.json b/packages/schema-type/gas-report.json index 33a4bdf04e..bd9b36c462 100644 --- a/packages/schema-type/gas-report.json +++ b/packages/schema-type/gas-report.json @@ -3,108 +3,108 @@ "file": "test/solidity/SchemaType.t.sol:SchemaTypeTest", "test": "testGas", "name": "getStaticByteLength: uint8", - "gasUsed": 124 + "gasUsed": 122 }, { "file": "test/solidity/SchemaType.t.sol:SchemaTypeTest", "test": "testGas", "name": "getStaticByteLength: uint32", - "gasUsed": 123 + "gasUsed": 122 }, { "file": "test/solidity/SchemaType.t.sol:SchemaTypeTest", "test": "testGas", "name": "getStaticByteLength: uint256", - "gasUsed": 123 + "gasUsed": 122 }, { "file": "test/solidity/SchemaType.t.sol:SchemaTypeTest", "test": "testGas", "name": "getStaticByteLength: int8", - "gasUsed": 123 + "gasUsed": 122 }, { "file": "test/solidity/SchemaType.t.sol:SchemaTypeTest", "test": "testGas", "name": "getStaticByteLength: int32", - "gasUsed": 123 + "gasUsed": 122 }, { "file": "test/solidity/SchemaType.t.sol:SchemaTypeTest", "test": "testGas", "name": "getStaticByteLength: int256", - "gasUsed": 123 + "gasUsed": 122 }, { "file": "test/solidity/SchemaType.t.sol:SchemaTypeTest", "test": "testGas", "name": "getStaticByteLength: bytes1", - "gasUsed": 123 + "gasUsed": 122 }, { "file": "test/solidity/SchemaType.t.sol:SchemaTypeTest", "test": "testGas", "name": "getStaticByteLength: bytes4", - "gasUsed": 123 + "gasUsed": 122 }, { "file": "test/solidity/SchemaType.t.sol:SchemaTypeTest", "test": "testGas", "name": "getStaticByteLength: bytes32", - "gasUsed": 123 + "gasUsed": 122 }, { "file": "test/solidity/SchemaType.t.sol:SchemaTypeTest", "test": "testGas", "name": "getStaticByteLength: bool", - "gasUsed": 123 + "gasUsed": 122 }, { "file": "test/solidity/SchemaType.t.sol:SchemaTypeTest", "test": "testGas", "name": "getStaticByteLength: address", - "gasUsed": 165 + "gasUsed": 164 }, { "file": "test/solidity/SchemaType.t.sol:SchemaTypeTest", "test": "testGas", "name": "getStaticByteLength: uint8[]", - "gasUsed": 166 + "gasUsed": 164 }, { "file": "test/solidity/SchemaType.t.sol:SchemaTypeTest", "test": "testGas", "name": "getStaticByteLength: uint32[]", - "gasUsed": 166 + "gasUsed": 164 }, { "file": "test/solidity/SchemaType.t.sol:SchemaTypeTest", "test": "testGas", "name": "getStaticByteLength: uint256[]", - "gasUsed": 166 + "gasUsed": 164 }, { "file": "test/solidity/SchemaType.t.sol:SchemaTypeTest", "test": "testGas", "name": "getStaticByteLength: int256[]", - "gasUsed": 166 + "gasUsed": 164 }, { "file": "test/solidity/SchemaType.t.sol:SchemaTypeTest", "test": "testGas", "name": "getStaticByteLength: bytes32[]", - "gasUsed": 166 + "gasUsed": 164 }, { "file": "test/solidity/SchemaType.t.sol:SchemaTypeTest", "test": "testGas", "name": "getStaticByteLength: bytes", - "gasUsed": 166 + "gasUsed": 164 }, { "file": "test/solidity/SchemaType.t.sol:SchemaTypeTest", "test": "testGas", "name": "getStaticByteLength: string", - "gasUsed": 166 + "gasUsed": 164 } ] diff --git a/packages/store/gas-report.json b/packages/store/gas-report.json index 2d5d001dac..0ccc4ac268 100644 --- a/packages/store/gas-report.json +++ b/packages/store/gas-report.json @@ -21,19 +21,19 @@ "file": "test/Callbacks.t.sol:CallbacksTest", "test": "testSetAndGet", "name": "Callbacks: set field", - "gasUsed": 56118 + "gasUsed": 56058 }, { "file": "test/Callbacks.t.sol:CallbacksTest", "test": "testSetAndGet", "name": "Callbacks: get field (warm)", - "gasUsed": 2616 + "gasUsed": 2591 }, { "file": "test/Callbacks.t.sol:CallbacksTest", "test": "testSetAndGet", "name": "Callbacks: push 1 element", - "gasUsed": 32402 + "gasUsed": 32341 }, { "file": "test/EncodedLengths.t.sol:EncodedLengthsTest", @@ -63,19 +63,19 @@ "file": "test/EncodedLengths.t.sol:EncodedLengthsTest", "test": "testSetAtIndex", "name": "set value at index of EncodedLengths", - "gasUsed": 283 + "gasUsed": 282 }, { "file": "test/FieldLayout.t.sol:FieldLayoutTest", "test": "testEncodeDecodeFieldLayout", "name": "initialize field layout array with 5 entries", - "gasUsed": 439 + "gasUsed": 437 }, { "file": "test/FieldLayout.t.sol:FieldLayoutTest", "test": "testEncodeDecodeFieldLayout", "name": "encode field layout with 5+1 entries", - "gasUsed": 2440 + "gasUsed": 2426 }, { "file": "test/FieldLayout.t.sol:FieldLayoutTest", @@ -87,7 +87,7 @@ "file": "test/FieldLayout.t.sol:FieldLayoutTest", "test": "testGetNumDynamicFields", "name": "get number of dynamic fields from field layout", - "gasUsed": 389 + "gasUsed": 387 }, { "file": "test/FieldLayout.t.sol:FieldLayoutTest", @@ -99,13 +99,13 @@ "file": "test/FieldLayout.t.sol:FieldLayoutTest", "test": "testGetNumStaticFields", "name": "get number of static fields from field layout", - "gasUsed": 311 + "gasUsed": 309 }, { "file": "test/FieldLayout.t.sol:FieldLayoutTest", "test": "testGetStaticFieldLayoutLength", "name": "get static data length from field layout", - "gasUsed": 228 + "gasUsed": 226 }, { "file": "test/FieldLayout.t.sol:FieldLayoutTest", @@ -123,7 +123,7 @@ "file": "test/FieldLayout.t.sol:FieldLayoutTest", "test": "testValidate", "name": "validate field layout", - "gasUsed": 6570 + "gasUsed": 6540 }, { "file": "test/Gas.t.sol:GasTest", @@ -135,97 +135,97 @@ "file": "test/Gas.t.sol:GasTest", "test": "testCompareAbiEncodeVsCustom", "name": "abi encode (dynamic)", - "gasUsed": 824 + "gasUsed": 817 }, { "file": "test/Gas.t.sol:GasTest", "test": "testCompareAbiEncodeVsCustom", "name": "abi encode", - "gasUsed": 918 + "gasUsed": 911 }, { "file": "test/Gas.t.sol:GasTest", "test": "testCompareAbiEncodeVsCustom", "name": "abi decode", - "gasUsed": 1716 + "gasUsed": 1711 }, { "file": "test/Gas.t.sol:GasTest", "test": "testCompareAbiEncodeVsCustom", "name": "custom encode (static)", - "gasUsed": 191 + "gasUsed": 189 }, { "file": "test/Gas.t.sol:GasTest", "test": "testCompareAbiEncodeVsCustom", "name": "custom encode (length)", - "gasUsed": 141 + "gasUsed": 139 }, { "file": "test/Gas.t.sol:GasTest", "test": "testCompareAbiEncodeVsCustom", "name": "custom encode (dynamic)", - "gasUsed": 1101 + "gasUsed": 1093 }, { "file": "test/Gas.t.sol:GasTest", "test": "testCompareAbiEncodeVsCustom", "name": "custom encode", - "gasUsed": 1520 + "gasUsed": 1505 }, { "file": "test/Gas.t.sol:GasTest", "test": "testCompareAbiEncodeVsCustom", "name": "custom decode", - "gasUsed": 1954 + "gasUsed": 1939 }, { "file": "test/Gas.t.sol:GasTest", "test": "testCompareAbiEncodeVsCustom", "name": "pass abi encoded bytes to external contract", - "gasUsed": 29493 + "gasUsed": 29484 }, { "file": "test/Gas.t.sol:GasTest", "test": "testCompareAbiEncodeVsCustom", "name": "pass custom encoded bytes to external contract", - "gasUsed": 23310 + "gasUsed": 23301 }, { "file": "test/Gas.t.sol:GasTest", "test": "testCompareStorageWriteMUD", "name": "MUD storage write (cold, 1 word)", - "gasUsed": 22354 + "gasUsed": 22353 }, { "file": "test/Gas.t.sol:GasTest", "test": "testCompareStorageWriteMUD", "name": "MUD storage write (cold, 1 word, partial)", - "gasUsed": 22421 + "gasUsed": 22419 }, { "file": "test/Gas.t.sol:GasTest", "test": "testCompareStorageWriteMUD", "name": "MUD storage write (cold, 10 words)", - "gasUsed": 199810 + "gasUsed": 199809 }, { "file": "test/Gas.t.sol:GasTest", "test": "testCompareStorageWriteMUD", "name": "MUD storage write (warm, 1 word)", - "gasUsed": 354 + "gasUsed": 353 }, { "file": "test/Gas.t.sol:GasTest", "test": "testCompareStorageWriteMUD", "name": "MUD storage write (warm, 1 word, partial)", - "gasUsed": 521 + "gasUsed": 519 }, { "file": "test/Gas.t.sol:GasTest", "test": "testCompareStorageWriteMUD", "name": "MUD storage write (warm, 10 words)", - "gasUsed": 1810 + "gasUsed": 1809 }, { "file": "test/Gas.t.sol:GasTest", @@ -243,7 +243,7 @@ "file": "test/Gas.t.sol:GasTest", "test": "testCompareStorageWriteSolidity", "name": "solidity storage write (cold, 10 words)", - "gasUsed": 200020 + "gasUsed": 200019 }, { "file": "test/Gas.t.sol:GasTest", @@ -261,55 +261,55 @@ "file": "test/Gas.t.sol:GasTest", "test": "testCompareStorageWriteSolidity", "name": "solidity storage write (warm, 10 words)", - "gasUsed": 2265 + "gasUsed": 2257 }, { "file": "test/GasStorageLoad.t.sol:GasStorageLoadTest", "test": "testCompareStorageLoadMUD", "name": "MUD storage load (cold, 1 word)", - "gasUsed": 2411 + "gasUsed": 2409 }, { "file": "test/GasStorageLoad.t.sol:GasStorageLoadTest", "test": "testCompareStorageLoadMUD", "name": "MUD storage load (cold, 1 word, partial)", - "gasUsed": 2481 + "gasUsed": 2478 }, { "file": "test/GasStorageLoad.t.sol:GasStorageLoadTest", "test": "testCompareStorageLoadMUD", "name": "MUD storage load (cold, 10 words)", - "gasUsed": 19911 + "gasUsed": 19909 }, { "file": "test/GasStorageLoad.t.sol:GasStorageLoadTest", "test": "testCompareStorageLoadMUD", "name": "MUD storage load (warm, 1 word)", - "gasUsed": 412 + "gasUsed": 410 }, { "file": "test/GasStorageLoad.t.sol:GasStorageLoadTest", "test": "testCompareStorageLoadMUD", "name": "MUD storage load field (warm, 1 word)", - "gasUsed": 2300 + "gasUsed": 2297 }, { "file": "test/GasStorageLoad.t.sol:GasStorageLoadTest", "test": "testCompareStorageLoadMUD", "name": "MUD storage load (warm, 1 word, partial)", - "gasUsed": 481 + "gasUsed": 478 }, { "file": "test/GasStorageLoad.t.sol:GasStorageLoadTest", "test": "testCompareStorageLoadMUD", "name": "MUD storage load field (warm, 1 word, partial)", - "gasUsed": 300 + "gasUsed": 298 }, { "file": "test/GasStorageLoad.t.sol:GasStorageLoadTest", "test": "testCompareStorageLoadMUD", "name": "MUD storage load (warm, 10 words)", - "gasUsed": 1916 + "gasUsed": 1914 }, { "file": "test/GasStorageLoad.t.sol:GasStorageLoadTest", @@ -327,7 +327,7 @@ "file": "test/GasStorageLoad.t.sol:GasStorageLoadTest", "test": "testCompareStorageLoadSolidity", "name": "solidity storage load (cold, 10 words)", - "gasUsed": 19894 + "gasUsed": 19892 }, { "file": "test/GasStorageLoad.t.sol:GasStorageLoadTest", @@ -345,79 +345,79 @@ "file": "test/GasStorageLoad.t.sol:GasStorageLoadTest", "test": "testCompareStorageLoadSolidity", "name": "solidity storage load (warm, 10 words)", - "gasUsed": 1897 + "gasUsed": 1895 }, { "file": "test/Hook.t.sol:HookTest", "test": "testIsEnabled", "name": "check if hook is enabled", - "gasUsed": 108 + "gasUsed": 107 }, { "file": "test/KeyEncoding.t.sol:KeyEncodingTest", "test": "testRegisterAndGetFieldLayout", "name": "register KeyEncoding table", - "gasUsed": 721008 + "gasUsed": 720788 }, { "file": "test/Mixed.t.sol:MixedTest", "test": "testCompareSolidity", "name": "store Mixed struct in storage (native solidity)", - "gasUsed": 92007 + "gasUsed": 92002 }, { "file": "test/Mixed.t.sol:MixedTest", "test": "testDeleteExternalCold", "name": "delete record from Mixed (external, cold)", - "gasUsed": 23515 + "gasUsed": 23464 }, { "file": "test/Mixed.t.sol:MixedTest", "test": "testDeleteInternalCold", "name": "delete record from Mixed (internal, cold)", - "gasUsed": 18724 + "gasUsed": 18679 }, { "file": "test/Mixed.t.sol:MixedTest", "test": "testSetGetDeleteExternal", "name": "set record in Mixed (external, cold)", - "gasUsed": 107665 + "gasUsed": 107581 }, { "file": "test/Mixed.t.sol:MixedTest", "test": "testSetGetDeleteExternal", "name": "get record from Mixed (external, warm)", - "gasUsed": 6746 + "gasUsed": 6687 }, { "file": "test/Mixed.t.sol:MixedTest", "test": "testSetGetDeleteExternal", "name": "delete record from Mixed (external, warm)", - "gasUsed": 7826 + "gasUsed": 7775 }, { "file": "test/Mixed.t.sol:MixedTest", "test": "testSetGetDeleteInternal", "name": "set record in Mixed (internal, cold)", - "gasUsed": 102831 + "gasUsed": 102753 }, { "file": "test/Mixed.t.sol:MixedTest", "test": "testSetGetDeleteInternal", "name": "get record from Mixed (internal, warm)", - "gasUsed": 6434 + "gasUsed": 6378 }, { "file": "test/Mixed.t.sol:MixedTest", "test": "testSetGetDeleteInternal", "name": "delete record from Mixed (internal, warm)", - "gasUsed": 7033 + "gasUsed": 6988 }, { "file": "test/ResourceId.t.sol:ResourceIdTest", "test": "testEncode", "name": "encode table ID with name and type", - "gasUsed": 80 + "gasUsed": 79 }, { "file": "test/ResourceId.t.sol:ResourceIdTest", @@ -429,25 +429,25 @@ "file": "test/Schema.t.sol:SchemaTest", "test": "testEncodeDecodeSchema", "name": "initialize schema array with 6 entries", - "gasUsed": 856 + "gasUsed": 853 }, { "file": "test/Schema.t.sol:SchemaTest", "test": "testEncodeDecodeSchema", "name": "encode schema with 6 entries", - "gasUsed": 3609 + "gasUsed": 3587 }, { "file": "test/Schema.t.sol:SchemaTest", "test": "testEncodeDecodeSchema", "name": "get schema type at index", - "gasUsed": 119 + "gasUsed": 117 }, { "file": "test/Schema.t.sol:SchemaTest", "test": "testGetNumDynamicFields", "name": "get number of dynamic fields from schema", - "gasUsed": 389 + "gasUsed": 387 }, { "file": "test/Schema.t.sol:SchemaTest", @@ -459,13 +459,13 @@ "file": "test/Schema.t.sol:SchemaTest", "test": "testGetNumStaticFields", "name": "get number of static fields from schema", - "gasUsed": 311 + "gasUsed": 309 }, { "file": "test/Schema.t.sol:SchemaTest", "test": "testGetStaticSchemaLength", "name": "get static data length from schema", - "gasUsed": 228 + "gasUsed": 226 }, { "file": "test/Schema.t.sol:SchemaTest", @@ -483,7 +483,7 @@ "file": "test/Schema.t.sol:SchemaTest", "test": "testValidate", "name": "validate schema", - "gasUsed": 12485 + "gasUsed": 12365 }, { "file": "test/Slice.t.sol:SliceTest", @@ -501,439 +501,439 @@ "file": "test/Slice.t.sol:SliceTest", "test": "testFromBytes", "name": "get Slice pointer", - "gasUsed": 33 + "gasUsed": 32 }, { "file": "test/Slice.t.sol:SliceTest", "test": "testSubslice", "name": "subslice bytes (no copy) [1:4]", - "gasUsed": 318 + "gasUsed": 315 }, { "file": "test/Slice.t.sol:SliceTest", "test": "testSubslice", "name": "subslice bytes (no copy) [4:37]", - "gasUsed": 318 + "gasUsed": 315 }, { "file": "test/Slice.t.sol:SliceTest", "test": "testToBytes", "name": "Slice (0 bytes) to bytes memory", - "gasUsed": 298 + "gasUsed": 295 }, { "file": "test/Slice.t.sol:SliceTest", "test": "testToBytes", "name": "Slice (2 bytes) to bytes memory", - "gasUsed": 531 + "gasUsed": 526 }, { "file": "test/Slice.t.sol:SliceTest", "test": "testToBytes", "name": "Slice (32 bytes) to bytes memory", - "gasUsed": 545 + "gasUsed": 542 }, { "file": "test/Slice.t.sol:SliceTest", "test": "testToBytes", "name": "Slice (34 bytes) to bytes memory", - "gasUsed": 747 + "gasUsed": 742 }, { "file": "test/Slice.t.sol:SliceTest", "test": "testToBytes", "name": "Slice (1024 bytes) to bytes memory", - "gasUsed": 7264 + "gasUsed": 7261 }, { "file": "test/Slice.t.sol:SliceTest", "test": "testToBytes", "name": "Slice (1024x1024 bytes) to bytes memory", - "gasUsed": 9205065 + "gasUsed": 9205062 }, { "file": "test/Slice.t.sol:SliceTest", "test": "testToBytes32", "name": "Slice to bytes32", - "gasUsed": 81 + "gasUsed": 79 }, { "file": "test/Storage.t.sol:StorageTest", "test": "testStoreLoad", "name": "store 1 storage slot", - "gasUsed": 22354 + "gasUsed": 22353 }, { "file": "test/Storage.t.sol:StorageTest", "test": "testStoreLoad", "name": "store 34 bytes over 3 storage slots (with offset and safeTrail))", - "gasUsed": 23025 + "gasUsed": 23021 }, { "file": "test/Storage.t.sol:StorageTest", "test": "testStoreLoad", "name": "load 34 bytes over 3 storage slots (with offset and safeTrail))", - "gasUsed": 871 + "gasUsed": 867 }, { "file": "test/StoreCoreDynamic.t.sol:StoreCoreDynamicTest", "test": "testGetDynamicFieldSlice", "name": "get field slice (cold, 1 slot)", - "gasUsed": 5566 + "gasUsed": 5551 }, { "file": "test/StoreCoreDynamic.t.sol:StoreCoreDynamicTest", "test": "testGetDynamicFieldSlice", "name": "get field slice (warm, 1 slot)", - "gasUsed": 1668 + "gasUsed": 1654 }, { "file": "test/StoreCoreDynamic.t.sol:StoreCoreDynamicTest", "test": "testGetDynamicFieldSlice", "name": "get field slice (semi-cold, 1 slot)", - "gasUsed": 3661 + "gasUsed": 3647 }, { "file": "test/StoreCoreDynamic.t.sol:StoreCoreDynamicTest", "test": "testGetDynamicFieldSlice", "name": "get field slice (warm, 2 slots)", - "gasUsed": 3885 + "gasUsed": 3870 }, { "file": "test/StoreCoreDynamic.t.sol:StoreCoreDynamicTest", "test": "testGetSecondFieldLength", "name": "get field length (cold, 1 slot)", - "gasUsed": 3163 + "gasUsed": 3155 }, { "file": "test/StoreCoreDynamic.t.sol:StoreCoreDynamicTest", "test": "testGetSecondFieldLength", "name": "get field length (warm, 1 slot)", - "gasUsed": 1161 + "gasUsed": 1154 }, { "file": "test/StoreCoreDynamic.t.sol:StoreCoreDynamicTest", "test": "testGetThirdFieldLength", "name": "get field length (warm due to , 2 slots)", - "gasUsed": 3164 + "gasUsed": 3156 }, { "file": "test/StoreCoreDynamic.t.sol:StoreCoreDynamicTest", "test": "testGetThirdFieldLength", "name": "get field length (warm, 2 slots)", - "gasUsed": 1160 + "gasUsed": 1153 }, { "file": "test/StoreCoreDynamic.t.sol:StoreCoreDynamicTest", "test": "testPopFromSecondField", "name": "pop from field (cold, 1 slot, 1 uint32 item)", - "gasUsed": 18107 + "gasUsed": 18054 }, { "file": "test/StoreCoreDynamic.t.sol:StoreCoreDynamicTest", "test": "testPopFromSecondField", "name": "pop from field (warm, 1 slot, 1 uint32 item)", - "gasUsed": 12114 + "gasUsed": 12061 }, { "file": "test/StoreCoreDynamic.t.sol:StoreCoreDynamicTest", "test": "testPopFromThirdField", "name": "pop from field (cold, 2 slots, 10 uint32 items)", - "gasUsed": 15876 + "gasUsed": 15826 }, { "file": "test/StoreCoreDynamic.t.sol:StoreCoreDynamicTest", "test": "testPopFromThirdField", "name": "pop from field (warm, 2 slots, 10 uint32 items)", - "gasUsed": 11883 + "gasUsed": 11833 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testAccessEmptyData", "name": "access non-existing record", - "gasUsed": 7073 + "gasUsed": 7047 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testAccessEmptyData", "name": "access static field of non-existing record", - "gasUsed": 1330 + "gasUsed": 1322 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testAccessEmptyData", "name": "access dynamic field of non-existing record", - "gasUsed": 2062 + "gasUsed": 2051 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testAccessEmptyData", "name": "access length of dynamic field of non-existing record", - "gasUsed": 1159 + "gasUsed": 1152 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testDeleteData", "name": "delete record (complex data, 3 slots)", - "gasUsed": 7373 + "gasUsed": 7326 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testDeleteDataOffchainTable", "name": "StoreCore: delete record in offchain table", - "gasUsed": 28225 + "gasUsed": 28209 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testGetStaticDataLocation", "name": "get static data location (single key)", - "gasUsed": 217 + "gasUsed": 216 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testGetStaticDataLocation", "name": "get static data location (single key tuple)", - "gasUsed": 387 + "gasUsed": 384 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testHasFieldLayout", "name": "Check for existence of table (existent)", - "gasUsed": 1032 + "gasUsed": 1023 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testHasFieldLayout", "name": "check for existence of table (non-existent)", - "gasUsed": 3033 + "gasUsed": 3024 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testHooks", "name": "register subscriber", - "gasUsed": 56589 + "gasUsed": 56524 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testHooks", "name": "set record on table with subscriber", - "gasUsed": 98286 + "gasUsed": 98142 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testHooks", "name": "set static field on table with subscriber", - "gasUsed": 52904 + "gasUsed": 52792 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testHooks", "name": "delete record on table with subscriber", - "gasUsed": 47489 + "gasUsed": 47382 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testHooksDynamicData", "name": "register subscriber", - "gasUsed": 56589 + "gasUsed": 56524 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testHooksDynamicData", "name": "set (dynamic) record on table with subscriber", - "gasUsed": 191643 + "gasUsed": 191470 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testHooksDynamicData", "name": "set (dynamic) field on table with subscriber", - "gasUsed": 60374 + "gasUsed": 60237 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testHooksDynamicData", "name": "delete (dynamic) record on table with subscriber", - "gasUsed": 49266 + "gasUsed": 49145 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testPushToDynamicField", "name": "push to field (1 slot, 1 uint32 item)", - "gasUsed": 9539 + "gasUsed": 9486 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testPushToDynamicField", "name": "push to field (2 slots, 10 uint32 items)", - "gasUsed": 32211 + "gasUsed": 32157 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testRegisterAndGetFieldLayout", "name": "StoreCore: register table", - "gasUsed": 651056 + "gasUsed": 650835 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testRegisterAndGetFieldLayout", "name": "StoreCore: get field layout (warm)", - "gasUsed": 509 + "gasUsed": 505 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testRegisterAndGetFieldLayout", "name": "StoreCore: get value schema (warm)", - "gasUsed": 1441 + "gasUsed": 1431 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testRegisterAndGetFieldLayout", "name": "StoreCore: get key schema (warm)", - "gasUsed": 2313 + "gasUsed": 2294 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testSetAndGetDynamicData", "name": "set complex record with dynamic data (4 slots)", - "gasUsed": 101867 + "gasUsed": 101798 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testSetAndGetDynamicData", "name": "get complex record with dynamic data (4 slots)", - "gasUsed": 4234 + "gasUsed": 4196 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testSetAndGetDynamicData", "name": "compare: Set complex record with dynamic data using native solidity", - "gasUsed": 116845 + "gasUsed": 116839 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testSetAndGetDynamicData", "name": "compare: Set complex record with dynamic data using abi.encode", - "gasUsed": 267535 + "gasUsed": 267528 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testSetAndGetDynamicDataLength", "name": "set dynamic length of dynamic index 0", - "gasUsed": 22867 + "gasUsed": 22860 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testSetAndGetDynamicDataLength", "name": "set dynamic length of dynamic index 1", - "gasUsed": 968 + "gasUsed": 962 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testSetAndGetDynamicDataLength", "name": "reduce dynamic length of dynamic index 0", - "gasUsed": 958 + "gasUsed": 951 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testSetAndGetField", "name": "set static field (1 slot)", - "gasUsed": 31026 + "gasUsed": 30988 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testSetAndGetField", "name": "get static field (1 slot)", - "gasUsed": 1331 + "gasUsed": 1323 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testSetAndGetField", "name": "set static field (overlap 2 slot)", - "gasUsed": 29609 + "gasUsed": 29570 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testSetAndGetField", "name": "get static field (overlap 2 slot)", - "gasUsed": 1812 + "gasUsed": 1803 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testSetAndGetField", "name": "set dynamic field (1 slot, first dynamic field)", - "gasUsed": 54022 + "gasUsed": 53968 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testSetAndGetField", "name": "get dynamic field (1 slot, first dynamic field)", - "gasUsed": 2227 + "gasUsed": 2214 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testSetAndGetField", "name": "set dynamic field (1 slot, second dynamic field)", - "gasUsed": 32247 + "gasUsed": 32193 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testSetAndGetField", "name": "get dynamic field (1 slot, second dynamic field)", - "gasUsed": 2229 + "gasUsed": 2216 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testSetAndGetStaticData", "name": "set static record (1 slot)", - "gasUsed": 32142 + "gasUsed": 32095 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testSetAndGetStaticData", "name": "get static record (1 slot)", - "gasUsed": 1552 + "gasUsed": 1539 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testSetAndGetStaticDataSpanningWords", "name": "set static record (2 slots)", - "gasUsed": 54650 + "gasUsed": 54603 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testSetAndGetStaticDataSpanningWords", "name": "get static record (2 slots)", - "gasUsed": 1737 + "gasUsed": 1724 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testSetDataOffchainTable", "name": "StoreCore: set record in offchain table", - "gasUsed": 32517 + "gasUsed": 32481 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testUpdateInDynamicField", "name": "update in field (1 slot, 1 uint32 item)", - "gasUsed": 8899 + "gasUsed": 8853 }, { "file": "test/StoreCoreGas.t.sol:StoreCoreGasTest", "test": "testUpdateInDynamicField", "name": "push to field (2 slots, 6 uint64 items)", - "gasUsed": 9342 + "gasUsed": 9295 }, { "file": "test/StoreHook.t.sol:StoreHookTest", "test": "testCallHook", "name": "call an enabled hook", - "gasUsed": 37660 + "gasUsed": 37625 }, { "file": "test/StoreHook.t.sol:StoreHookTest", "test": "testCallHook", "name": "call a disabled hook", - "gasUsed": 123 + "gasUsed": 122 }, { "file": "test/StoreHook.t.sol:StoreHookTest", @@ -945,186 +945,186 @@ "file": "test/StoreHook.t.sol:StoreHookTest", "test": "testIsEnabled", "name": "check if store hook is enabled", - "gasUsed": 108 + "gasUsed": 107 }, { "file": "test/StoreHooks.t.sol:StoreHooksTest", "test": "testOneSlot", "name": "StoreHooks: set field with one elements (cold)", - "gasUsed": 58112 + "gasUsed": 58052 }, { "file": "test/StoreHooks.t.sol:StoreHooksTest", "test": "testTable", "name": "StoreHooks: set field (cold)", - "gasUsed": 58112 + "gasUsed": 58052 }, { "file": "test/StoreHooks.t.sol:StoreHooksTest", "test": "testTable", "name": "StoreHooks: get field (warm)", - "gasUsed": 2612 + "gasUsed": 2587 }, { "file": "test/StoreHooks.t.sol:StoreHooksTest", "test": "testTable", "name": "StoreHooks: push 1 element (cold)", - "gasUsed": 12491 + "gasUsed": 12430 }, { "file": "test/StoreHooks.t.sol:StoreHooksTest", "test": "testTable", "name": "StoreHooks: pop 1 element (warm)", - "gasUsed": 9795 + "gasUsed": 9738 }, { "file": "test/StoreHooks.t.sol:StoreHooksTest", "test": "testTable", "name": "StoreHooks: push 1 element (warm)", - "gasUsed": 10507 + "gasUsed": 10446 }, { "file": "test/StoreHooks.t.sol:StoreHooksTest", "test": "testTable", "name": "StoreHooks: update 1 element (warm)", - "gasUsed": 29741 + "gasUsed": 29687 }, { "file": "test/StoreHooks.t.sol:StoreHooksTest", "test": "testTable", "name": "StoreHooks: delete record (warm)", - "gasUsed": 9552 + "gasUsed": 9503 }, { "file": "test/StoreHooks.t.sol:StoreHooksTest", "test": "testTable", "name": "StoreHooks: set field (warm)", - "gasUsed": 30255 + "gasUsed": 30195 }, { "file": "test/StoreHooks.t.sol:StoreHooksTest", "test": "testThreeSlots", "name": "StoreHooks: set field with three elements (cold)", - "gasUsed": 80803 + "gasUsed": 80743 }, { "file": "test/StoreHooks.t.sol:StoreHooksTest", "test": "testTwoSlots", "name": "StoreHooks: set field with two elements (cold)", - "gasUsed": 80715 + "gasUsed": 80655 }, { "file": "test/StoreHooksColdLoad.t.sol:StoreHooksColdLoadTest", "test": "testDelete", "name": "StoreHooks: delete record (cold)", - "gasUsed": 18424 + "gasUsed": 18375 }, { "file": "test/StoreHooksColdLoad.t.sol:StoreHooksColdLoadTest", "test": "testGet", "name": "StoreHooks: get field (cold)", - "gasUsed": 8610 + "gasUsed": 8585 }, { "file": "test/StoreHooksColdLoad.t.sol:StoreHooksColdLoadTest", "test": "testGetItem", "name": "StoreHooks: get 1 element (cold)", - "gasUsed": 8224 + "gasUsed": 8203 }, { "file": "test/StoreHooksColdLoad.t.sol:StoreHooksColdLoadTest", "test": "testLength", "name": "StoreHooks: get length (cold)", - "gasUsed": 5172 + "gasUsed": 5161 }, { "file": "test/StoreHooksColdLoad.t.sol:StoreHooksColdLoadTest", "test": "testPop", "name": "StoreHooks: pop 1 element (cold)", - "gasUsed": 18231 + "gasUsed": 18176 }, { "file": "test/StoreHooksColdLoad.t.sol:StoreHooksColdLoadTest", "test": "testUpdate", "name": "StoreHooks: update 1 element (cold)", - "gasUsed": 20194 + "gasUsed": 20141 }, { "file": "test/StoreSwitch.t.sol:StoreSwitchTest", "test": "testDelegatecall", "name": "get Store address", - "gasUsed": 2170 + "gasUsed": 2169 }, { "file": "test/StoreSwitch.t.sol:StoreSwitchTest", "test": "testNoDelegatecall", "name": "get Store address", - "gasUsed": 2173 + "gasUsed": 2172 }, { "file": "test/tightcoder/DecodeSlice.t.sol:DecodeSliceTest", "test": "testToArrayUint32", "name": "decode packed uint32[]", - "gasUsed": 486 + "gasUsed": 481 }, { "file": "test/tightcoder/DecodeSlice.t.sol:DecodeSliceTest", "test": "testToBytes32Array", "name": "decode packed bytes32[]", - "gasUsed": 475 + "gasUsed": 469 }, { "file": "test/tightcoder/EncodeArray.t.sol:EncodeArrayTest", "test": "testEncodeUint16Array", "name": "encode packed uint16[]", - "gasUsed": 594 + "gasUsed": 591 }, { "file": "test/tightcoder/EncodeArray.t.sol:EncodeArrayTest", "test": "testEncodeUint32Array", "name": "encode packed uint32[]", - "gasUsed": 503 + "gasUsed": 500 }, { "file": "test/tightcoder/EncodeArray.t.sol:EncodeArrayTest", "test": "testEncodeUint8Array", "name": "encode packed uint8[]", - "gasUsed": 492 + "gasUsed": 489 }, { "file": "test/tightcoder/TightCoder.t.sol:TightCoderTest", "test": "testFromAndToUint32Array", "name": "decode packed uint32[]", - "gasUsed": 486 + "gasUsed": 481 }, { "file": "test/tightcoder/TightCoder.t.sol:TightCoderTest", "test": "testToAndFromBytes24Array", "name": "encode packed bytes24[]", - "gasUsed": 503 + "gasUsed": 499 }, { "file": "test/tightcoder/TightCoder.t.sol:TightCoderTest", "test": "testToAndFromBytes24Array", "name": "decode packed bytes24[]", - "gasUsed": 486 + "gasUsed": 480 }, { "file": "test/Vector2.t.sol:Vector2Test", "test": "testRegisterAndGetFieldLayout", "name": "register Vector2 field layout", - "gasUsed": 447063 + "gasUsed": 446867 }, { "file": "test/Vector2.t.sol:Vector2Test", "test": "testSetAndGet", "name": "set Vector2 record", - "gasUsed": 32824 + "gasUsed": 32773 }, { "file": "test/Vector2.t.sol:Vector2Test", "test": "testSetAndGet", "name": "get Vector2 record", - "gasUsed": 2306 + "gasUsed": 2285 } ] diff --git a/packages/store/ts/flattenStoreLogs.test.ts b/packages/store/ts/flattenStoreLogs.test.ts index 05c0ca5c34..837b9deb9e 100644 --- a/packages/store/ts/flattenStoreLogs.test.ts +++ b/packages/store/ts/flattenStoreLogs.test.ts @@ -54,26 +54,26 @@ describe("flattenStoreLogs", async () => { "Store_SetRecord store__ResourceIds (0x6e73000000000000000000000000000000000000000000000000000000000000)", "Store_SetRecord store__ResourceIds (0x6e7373746f726500000000000000000000000000000000000000000000000000)", "Store_SetRecord world__NamespaceOwner (0x6e7373746f726500000000000000000000000000000000000000000000000000)", - "Store_SetRecord world__ResourceAccess (0x6e7373746f726500000000000000000000000000000000000000000000000000,0x000000000000000000000000573802f86c51b61d7cf620952217ec6ce0537d2e)", + "Store_SetRecord world__ResourceAccess (0x6e7373746f726500000000000000000000000000000000000000000000000000,0x0000000000000000000000008dc4168dc8e582f0ef5adbab3c0873856682639b)", "Store_SetRecord store__ResourceIds (0x6e73776f726c6400000000000000000000000000000000000000000000000000)", "Store_SetRecord world__NamespaceOwner (0x6e73776f726c6400000000000000000000000000000000000000000000000000)", - "Store_SetRecord world__ResourceAccess (0x6e73776f726c6400000000000000000000000000000000000000000000000000,0x000000000000000000000000573802f86c51b61d7cf620952217ec6ce0537d2e)", + "Store_SetRecord world__ResourceAccess (0x6e73776f726c6400000000000000000000000000000000000000000000000000,0x0000000000000000000000008dc4168dc8e582f0ef5adbab3c0873856682639b)", "Store_SetRecord store__ResourceIds (0x737900000000000000000000000000004163636573734d616e6167656d656e74)", "Store_SetRecord world__Systems (0x737900000000000000000000000000004163636573734d616e6167656d656e74)", - "Store_SetRecord world__SystemRegistry (0x00000000000000000000000017ffdeff94ed0b80c493a179d4b3b09d6d71f627)", - "Store_SetRecord world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x00000000000000000000000017ffdeff94ed0b80c493a179d4b3b09d6d71f627)", + "Store_SetRecord world__SystemRegistry (0x00000000000000000000000073e872dcf77241b6d2afe4169ac27f9d31767292)", + "Store_SetRecord world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x00000000000000000000000073e872dcf77241b6d2afe4169ac27f9d31767292)", "Store_SetRecord store__ResourceIds (0x7379000000000000000000000000000042616c616e63655472616e7366657200)", "Store_SetRecord world__Systems (0x7379000000000000000000000000000042616c616e63655472616e7366657200)", - "Store_SetRecord world__SystemRegistry (0x000000000000000000000000a274b9a7e743cd8df3c6fd0abd47ed55fc943bc3)", - "Store_SetRecord world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x000000000000000000000000a274b9a7e743cd8df3c6fd0abd47ed55fc943bc3)", + "Store_SetRecord world__SystemRegistry (0x00000000000000000000000050418155710200d0266e683a93209aa60501b7b3)", + "Store_SetRecord world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x00000000000000000000000050418155710200d0266e683a93209aa60501b7b3)", "Store_SetRecord store__ResourceIds (0x73790000000000000000000000000000426174636843616c6c00000000000000)", "Store_SetRecord world__Systems (0x73790000000000000000000000000000426174636843616c6c00000000000000)", - "Store_SetRecord world__SystemRegistry (0x00000000000000000000000053e5c08d82a377167069ade46d087ab753538608)", - "Store_SetRecord world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x00000000000000000000000053e5c08d82a377167069ade46d087ab753538608)", + "Store_SetRecord world__SystemRegistry (0x0000000000000000000000002aac36425e74ff6c0778da582c55176394a067b0)", + "Store_SetRecord world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x0000000000000000000000002aac36425e74ff6c0778da582c55176394a067b0)", "Store_SetRecord store__ResourceIds (0x73790000000000000000000000000000526567697374726174696f6e00000000)", "Store_SetRecord world__Systems (0x73790000000000000000000000000000526567697374726174696f6e00000000)", - "Store_SetRecord world__SystemRegistry (0x000000000000000000000000d416f26aafcaaeca50b0dc35bd023e7286be2961)", - "Store_SetRecord world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x000000000000000000000000d416f26aafcaaeca50b0dc35bd023e7286be2961)", + "Store_SetRecord world__SystemRegistry (0x000000000000000000000000047f80b91559887ab304519858c0bce90f2a00a6)", + "Store_SetRecord world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x000000000000000000000000047f80b91559887ab304519858c0bce90f2a00a6)", "Store_SetRecord world__FunctionSelector (0x40554c3a00000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__FunctionSignatur (0x40554c3a00000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__FunctionSelector (0x8d53b20800000000000000000000000000000000000000000000000000000000)", @@ -118,7 +118,7 @@ describe("flattenStoreLogs", async () => { "Store_SetRecord world__FunctionSignatur (0xbfdfaff700000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__FunctionSelector (0xaa66e9c800000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__FunctionSignatur (0xaa66e9c800000000000000000000000000000000000000000000000000000000)", - "Store_SetRecord world__InstalledModules (0x000000000000000000000000da4e062e8c69d39d9472945232a53f579904ac45,0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470)", + "Store_SetRecord world__InstalledModules (0x0000000000000000000000009fcc45958071325949b488a784268371f17cb2d7,0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470)", "Store_SetRecord world__NamespaceOwner (0x6e73000000000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266)", "Store_SetRecord store__Tables (0x74620000000000000000000000000000506f736974696f6e0000000000000000)", @@ -135,26 +135,26 @@ describe("flattenStoreLogs", async () => { "Store_SetRecord store__ResourceIds (0x746200000000000000000000000000005465727261696e000000000000000000)", "Store_SetRecord store__ResourceIds (0x737900000000000000000000000000004d6f766553797374656d000000000000)", "Store_SetRecord world__Systems (0x737900000000000000000000000000004d6f766553797374656d000000000000)", - "Store_SetRecord world__SystemRegistry (0x000000000000000000000000909d87ff2af6abace4fe66171b9622bc10305c3c)", - "Store_SetRecord world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x000000000000000000000000909d87ff2af6abace4fe66171b9622bc10305c3c)", + "Store_SetRecord world__SystemRegistry (0x000000000000000000000000c3082aa42cf81d515c45c3c2c59775f71dfe987c)", + "Store_SetRecord world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x000000000000000000000000c3082aa42cf81d515c45c3c2c59775f71dfe987c)", "Store_SetRecord world__FunctionSelector (0xb591186e00000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__FunctionSignatur (0xb591186e00000000000000000000000000000000000000000000000000000000)", "Store_SetRecord store__Tables (0x7462000000000000000000000000000043616c6c576974685369676e61747572)", "Store_SetRecord store__ResourceIds (0x7462000000000000000000000000000043616c6c576974685369676e61747572)", "Store_SetRecord store__ResourceIds (0x7379000000000000000000000000000044656c65676174696f6e000000000000)", "Store_SetRecord world__Systems (0x7379000000000000000000000000000044656c65676174696f6e000000000000)", - "Store_SetRecord world__SystemRegistry (0x000000000000000000000000d09016b5b55461012d558a0945e9e7ce48bbad90)", - "Store_SetRecord world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x000000000000000000000000d09016b5b55461012d558a0945e9e7ce48bbad90)", + "Store_SetRecord world__SystemRegistry (0x0000000000000000000000003381d30ec2b116ce996ab7c17852c3ea34eb1823)", + "Store_SetRecord world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x0000000000000000000000003381d30ec2b116ce996ab7c17852c3ea34eb1823)", "Store_SetRecord world__FunctionSelector (0x1fae630800000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__FunctionSignatur (0x1fae630800000000000000000000000000000000000000000000000000000000)", - "Store_SetRecord world__InstalledModules (0x000000000000000000000000576a2cef28fbe49215143ae4d87e03ea1e99e37a,0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470)", + "Store_SetRecord world__InstalledModules (0x00000000000000000000000051bd8d2de7017c23ee5bdc885e70dfdd0862b837,0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470)", "Store_SetRecord store__ResourceIds (0x6e736d6574616461746100000000000000000000000000000000000000000000)", "Store_SetRecord store__Tables (0x74626d657461646174610000000000005265736f757263655461670000000000)", "Store_SetRecord store__ResourceIds (0x74626d657461646174610000000000005265736f757263655461670000000000)", "Store_SetRecord store__ResourceIds (0x73796d657461646174610000000000004d6574616461746153797374656d0000)", "Store_SetRecord world__Systems (0x73796d657461646174610000000000004d6574616461746153797374656d0000)", - "Store_SetRecord world__SystemRegistry (0x0000000000000000000000000d0a0ad663793e3d078fec50a85cf32d95c3a3c4)", - "Store_SetRecord world__ResourceAccess (0x6e736d6574616461746100000000000000000000000000000000000000000000,0x0000000000000000000000000d0a0ad663793e3d078fec50a85cf32d95c3a3c4)", + "Store_SetRecord world__SystemRegistry (0x00000000000000000000000053e501d8e4c977ff5b27446ec6a60e57c7ef1050)", + "Store_SetRecord world__ResourceAccess (0x6e736d6574616461746100000000000000000000000000000000000000000000,0x00000000000000000000000053e501d8e4c977ff5b27446ec6a60e57c7ef1050)", "Store_SetRecord world__FunctionSelector (0xff66f05f00000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__FunctionSignatur (0xc6972e9300000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__FunctionSignatur (0xff66f05f00000000000000000000000000000000000000000000000000000000)", @@ -166,7 +166,7 @@ describe("flattenStoreLogs", async () => { "Store_SetRecord world__FunctionSignatur (0x5ce7ca1a00000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__NamespaceOwner (0x6e736d6574616461746100000000000000000000000000000000000000000000)", "Store_SetRecord world__ResourceAccess (0x6e736d6574616461746100000000000000000000000000000000000000000000,0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266)", - "Store_SetRecord world__InstalledModules (0x0000000000000000000000002ff959c7d78a64356c28bcf5f6e3cd56f1463901,0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470)", + "Store_SetRecord world__InstalledModules (0x0000000000000000000000000f8d2ae4af9b5c4677766030338a8720e30073cc,0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470)", "Store_SetRecord metadata__ResourceTag (0x737900000000000000000000000000004d6f766553797374656d000000000000,0x6162690000000000000000000000000000000000000000000000000000000000)", "Store_SetRecord metadata__ResourceTag (0x737900000000000000000000000000004d6f766553797374656d000000000000,0x776f726c64416269000000000000000000000000000000000000000000000000)", "Store_SetRecord Position (0x0000000000000000000000001d96f2f6bef1202e4ce1ff6dad0c2cb002861d3e)", diff --git a/packages/store/ts/getStoreLogs.test.ts b/packages/store/ts/getStoreLogs.test.ts index ccae995140..51c45476f4 100644 --- a/packages/store/ts/getStoreLogs.test.ts +++ b/packages/store/ts/getStoreLogs.test.ts @@ -51,29 +51,29 @@ describe("getStoreLogs", async () => { "Store_SpliceStaticData store__ResourceIds (0x7462776f726c64000000000000000000496e69744d6f64756c65416464726573)", "Store_SpliceStaticData store__ResourceIds (0x6e73000000000000000000000000000000000000000000000000000000000000)", "Store_SpliceStaticData world__NamespaceOwner (0x6e73000000000000000000000000000000000000000000000000000000000000)", - "Store_SpliceStaticData world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x000000000000000000000000573802f86c51b61d7cf620952217ec6ce0537d2e)", + "Store_SpliceStaticData world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x0000000000000000000000008dc4168dc8e582f0ef5adbab3c0873856682639b)", "Store_SpliceStaticData store__ResourceIds (0x6e7373746f726500000000000000000000000000000000000000000000000000)", "Store_SpliceStaticData world__NamespaceOwner (0x6e7373746f726500000000000000000000000000000000000000000000000000)", - "Store_SpliceStaticData world__ResourceAccess (0x6e7373746f726500000000000000000000000000000000000000000000000000,0x000000000000000000000000573802f86c51b61d7cf620952217ec6ce0537d2e)", + "Store_SpliceStaticData world__ResourceAccess (0x6e7373746f726500000000000000000000000000000000000000000000000000,0x0000000000000000000000008dc4168dc8e582f0ef5adbab3c0873856682639b)", "Store_SpliceStaticData store__ResourceIds (0x6e73776f726c6400000000000000000000000000000000000000000000000000)", "Store_SpliceStaticData world__NamespaceOwner (0x6e73776f726c6400000000000000000000000000000000000000000000000000)", - "Store_SpliceStaticData world__ResourceAccess (0x6e73776f726c6400000000000000000000000000000000000000000000000000,0x000000000000000000000000573802f86c51b61d7cf620952217ec6ce0537d2e)", + "Store_SpliceStaticData world__ResourceAccess (0x6e73776f726c6400000000000000000000000000000000000000000000000000,0x0000000000000000000000008dc4168dc8e582f0ef5adbab3c0873856682639b)", "Store_SpliceStaticData store__ResourceIds (0x737900000000000000000000000000004163636573734d616e6167656d656e74)", "Store_SetRecord world__Systems (0x737900000000000000000000000000004163636573734d616e6167656d656e74)", - "Store_SpliceStaticData world__SystemRegistry (0x00000000000000000000000017ffdeff94ed0b80c493a179d4b3b09d6d71f627)", - "Store_SpliceStaticData world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x00000000000000000000000017ffdeff94ed0b80c493a179d4b3b09d6d71f627)", + "Store_SpliceStaticData world__SystemRegistry (0x00000000000000000000000073e872dcf77241b6d2afe4169ac27f9d31767292)", + "Store_SpliceStaticData world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x00000000000000000000000073e872dcf77241b6d2afe4169ac27f9d31767292)", "Store_SpliceStaticData store__ResourceIds (0x7379000000000000000000000000000042616c616e63655472616e7366657200)", "Store_SetRecord world__Systems (0x7379000000000000000000000000000042616c616e63655472616e7366657200)", - "Store_SpliceStaticData world__SystemRegistry (0x000000000000000000000000a274b9a7e743cd8df3c6fd0abd47ed55fc943bc3)", - "Store_SpliceStaticData world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x000000000000000000000000a274b9a7e743cd8df3c6fd0abd47ed55fc943bc3)", + "Store_SpliceStaticData world__SystemRegistry (0x00000000000000000000000050418155710200d0266e683a93209aa60501b7b3)", + "Store_SpliceStaticData world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x00000000000000000000000050418155710200d0266e683a93209aa60501b7b3)", "Store_SpliceStaticData store__ResourceIds (0x73790000000000000000000000000000426174636843616c6c00000000000000)", "Store_SetRecord world__Systems (0x73790000000000000000000000000000426174636843616c6c00000000000000)", - "Store_SpliceStaticData world__SystemRegistry (0x00000000000000000000000053e5c08d82a377167069ade46d087ab753538608)", - "Store_SpliceStaticData world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x00000000000000000000000053e5c08d82a377167069ade46d087ab753538608)", + "Store_SpliceStaticData world__SystemRegistry (0x0000000000000000000000002aac36425e74ff6c0778da582c55176394a067b0)", + "Store_SpliceStaticData world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x0000000000000000000000002aac36425e74ff6c0778da582c55176394a067b0)", "Store_SpliceStaticData store__ResourceIds (0x73790000000000000000000000000000526567697374726174696f6e00000000)", "Store_SetRecord world__Systems (0x73790000000000000000000000000000526567697374726174696f6e00000000)", - "Store_SpliceStaticData world__SystemRegistry (0x000000000000000000000000d416f26aafcaaeca50b0dc35bd023e7286be2961)", - "Store_SpliceStaticData world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x000000000000000000000000d416f26aafcaaeca50b0dc35bd023e7286be2961)", + "Store_SpliceStaticData world__SystemRegistry (0x000000000000000000000000047f80b91559887ab304519858c0bce90f2a00a6)", + "Store_SpliceStaticData world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x000000000000000000000000047f80b91559887ab304519858c0bce90f2a00a6)", "Store_SetRecord world__FunctionSelector (0x40554c3a00000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__FunctionSignatur (0x40554c3a00000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__FunctionSignatur (0x40554c3a00000000000000000000000000000000000000000000000000000000)", @@ -140,9 +140,9 @@ describe("getStoreLogs", async () => { "Store_SetRecord world__FunctionSelector (0xaa66e9c800000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__FunctionSignatur (0xaa66e9c800000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__FunctionSignatur (0xaa66e9c800000000000000000000000000000000000000000000000000000000)", - "Store_SpliceStaticData world__InstalledModules (0x000000000000000000000000da4e062e8c69d39d9472945232a53f579904ac45,0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470)", + "Store_SpliceStaticData world__InstalledModules (0x0000000000000000000000009fcc45958071325949b488a784268371f17cb2d7,0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470)", "Store_SpliceStaticData world__NamespaceOwner (0x6e73000000000000000000000000000000000000000000000000000000000000)", - "Store_DeleteRecord world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x000000000000000000000000573802f86c51b61d7cf620952217ec6ce0537d2e)", + "Store_DeleteRecord world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x0000000000000000000000008dc4168dc8e582f0ef5adbab3c0873856682639b)", "Store_SpliceStaticData world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266)", "Store_SetRecord store__Tables (0x74620000000000000000000000000000506f736974696f6e0000000000000000)", "Store_SpliceStaticData store__ResourceIds (0x74620000000000000000000000000000506f736974696f6e0000000000000000)", @@ -158,8 +158,8 @@ describe("getStoreLogs", async () => { "Store_SpliceStaticData store__ResourceIds (0x746200000000000000000000000000005465727261696e000000000000000000)", "Store_SpliceStaticData store__ResourceIds (0x737900000000000000000000000000004d6f766553797374656d000000000000)", "Store_SetRecord world__Systems (0x737900000000000000000000000000004d6f766553797374656d000000000000)", - "Store_SpliceStaticData world__SystemRegistry (0x000000000000000000000000909d87ff2af6abace4fe66171b9622bc10305c3c)", - "Store_SpliceStaticData world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x000000000000000000000000909d87ff2af6abace4fe66171b9622bc10305c3c)", + "Store_SpliceStaticData world__SystemRegistry (0x000000000000000000000000c3082aa42cf81d515c45c3c2c59775f71dfe987c)", + "Store_SpliceStaticData world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x000000000000000000000000c3082aa42cf81d515c45c3c2c59775f71dfe987c)", "Store_SetRecord world__FunctionSelector (0xb591186e00000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__FunctionSignatur (0xb591186e00000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__FunctionSignatur (0xb591186e00000000000000000000000000000000000000000000000000000000)", @@ -167,21 +167,21 @@ describe("getStoreLogs", async () => { "Store_SpliceStaticData store__ResourceIds (0x7462000000000000000000000000000043616c6c576974685369676e61747572)", "Store_SpliceStaticData store__ResourceIds (0x7379000000000000000000000000000044656c65676174696f6e000000000000)", "Store_SetRecord world__Systems (0x7379000000000000000000000000000044656c65676174696f6e000000000000)", - "Store_SpliceStaticData world__SystemRegistry (0x000000000000000000000000d09016b5b55461012d558a0945e9e7ce48bbad90)", - "Store_SpliceStaticData world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x000000000000000000000000d09016b5b55461012d558a0945e9e7ce48bbad90)", + "Store_SpliceStaticData world__SystemRegistry (0x0000000000000000000000003381d30ec2b116ce996ab7c17852c3ea34eb1823)", + "Store_SpliceStaticData world__ResourceAccess (0x6e73000000000000000000000000000000000000000000000000000000000000,0x0000000000000000000000003381d30ec2b116ce996ab7c17852c3ea34eb1823)", "Store_SetRecord world__FunctionSelector (0x1fae630800000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__FunctionSignatur (0x1fae630800000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__FunctionSignatur (0x1fae630800000000000000000000000000000000000000000000000000000000)", - "Store_SpliceStaticData world__InstalledModules (0x000000000000000000000000576a2cef28fbe49215143ae4d87e03ea1e99e37a,0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470)", + "Store_SpliceStaticData world__InstalledModules (0x00000000000000000000000051bd8d2de7017c23ee5bdc885e70dfdd0862b837,0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470)", "Store_SpliceStaticData store__ResourceIds (0x6e736d6574616461746100000000000000000000000000000000000000000000)", "Store_SpliceStaticData world__NamespaceOwner (0x6e736d6574616461746100000000000000000000000000000000000000000000)", - "Store_SpliceStaticData world__ResourceAccess (0x6e736d6574616461746100000000000000000000000000000000000000000000,0x0000000000000000000000002ff959c7d78a64356c28bcf5f6e3cd56f1463901)", + "Store_SpliceStaticData world__ResourceAccess (0x6e736d6574616461746100000000000000000000000000000000000000000000,0x0000000000000000000000000f8d2ae4af9b5c4677766030338a8720e30073cc)", "Store_SetRecord store__Tables (0x74626d657461646174610000000000005265736f757263655461670000000000)", "Store_SpliceStaticData store__ResourceIds (0x74626d657461646174610000000000005265736f757263655461670000000000)", "Store_SpliceStaticData store__ResourceIds (0x73796d657461646174610000000000004d6574616461746153797374656d0000)", "Store_SetRecord world__Systems (0x73796d657461646174610000000000004d6574616461746153797374656d0000)", - "Store_SpliceStaticData world__SystemRegistry (0x0000000000000000000000000d0a0ad663793e3d078fec50a85cf32d95c3a3c4)", - "Store_SpliceStaticData world__ResourceAccess (0x6e736d6574616461746100000000000000000000000000000000000000000000,0x0000000000000000000000000d0a0ad663793e3d078fec50a85cf32d95c3a3c4)", + "Store_SpliceStaticData world__SystemRegistry (0x00000000000000000000000053e501d8e4c977ff5b27446ec6a60e57c7ef1050)", + "Store_SpliceStaticData world__ResourceAccess (0x6e736d6574616461746100000000000000000000000000000000000000000000,0x00000000000000000000000053e501d8e4c977ff5b27446ec6a60e57c7ef1050)", "Store_SetRecord world__FunctionSelector (0xff66f05f00000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__FunctionSignatur (0xc6972e9300000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__FunctionSignatur (0xff66f05f00000000000000000000000000000000000000000000000000000000)", @@ -192,9 +192,9 @@ describe("getStoreLogs", async () => { "Store_SetRecord world__FunctionSignatur (0xf128760200000000000000000000000000000000000000000000000000000000)", "Store_SetRecord world__FunctionSignatur (0x5ce7ca1a00000000000000000000000000000000000000000000000000000000)", "Store_SpliceStaticData world__NamespaceOwner (0x6e736d6574616461746100000000000000000000000000000000000000000000)", - "Store_DeleteRecord world__ResourceAccess (0x6e736d6574616461746100000000000000000000000000000000000000000000,0x0000000000000000000000002ff959c7d78a64356c28bcf5f6e3cd56f1463901)", + "Store_DeleteRecord world__ResourceAccess (0x6e736d6574616461746100000000000000000000000000000000000000000000,0x0000000000000000000000000f8d2ae4af9b5c4677766030338a8720e30073cc)", "Store_SpliceStaticData world__ResourceAccess (0x6e736d6574616461746100000000000000000000000000000000000000000000,0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266)", - "Store_SpliceStaticData world__InstalledModules (0x0000000000000000000000002ff959c7d78a64356c28bcf5f6e3cd56f1463901,0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470)", + "Store_SpliceStaticData world__InstalledModules (0x0000000000000000000000000f8d2ae4af9b5c4677766030338a8720e30073cc,0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470)", "Store_SpliceDynamicData metadata__ResourceTag (0x737900000000000000000000000000004d6f766553797374656d000000000000,0x6162690000000000000000000000000000000000000000000000000000000000)", "Store_SpliceDynamicData metadata__ResourceTag (0x737900000000000000000000000000004d6f766553797374656d000000000000,0x776f726c64416269000000000000000000000000000000000000000000000000)", "Store_SetRecord Position (0x0000000000000000000000001d96f2f6bef1202e4ce1ff6dad0c2cb002861d3e)", diff --git a/packages/world-module-erc20/gas-report.json b/packages/world-module-erc20/gas-report.json index 92485adbd0..f0fa3ef9e5 100644 --- a/packages/world-module-erc20/gas-report.json +++ b/packages/world-module-erc20/gas-report.json @@ -3,222 +3,222 @@ "file": "test/ERC20BaseTest.sol:ERC20WithInternalStoreTest", "test": "testApprove", "name": "internal_approve", - "gasUsed": 58213 + "gasUsed": 58166 }, { "file": "test/ERC20BaseTest.sol:ERC20WithInternalStoreTest", "test": "testBurn", "name": "internal_burn", - "gasUsed": 56417 + "gasUsed": 56310 }, { "file": "test/ERC20BaseTest.sol:ERC20WithInternalStoreTest", "test": "testMint", "name": "internal_mint", - "gasUsed": 90703 + "gasUsed": 90597 }, { "file": "test/ERC20BaseTest.sol:ERC20WithInternalStoreTest", "test": "testTransfer", "name": "internal_transfer", - "gasUsed": 67747 + "gasUsed": 67634 }, { "file": "test/ERC20BaseTest.sol:ERC20WithInternalStoreTest", "test": "testTransferFrom", "name": "internal_transferFrom", - "gasUsed": 79574 + "gasUsed": 79402 }, { "file": "test/ERC20BaseTest.sol:ERC20WithWorldTest", "test": "testApprove", "name": "world_approve", - "gasUsed": 66343 + "gasUsed": 66268 }, { "file": "test/ERC20BaseTest.sol:ERC20WithWorldTest", "test": "testBurn", "name": "world_burn", - "gasUsed": 70873 + "gasUsed": 70688 }, { "file": "test/ERC20BaseTest.sol:ERC20WithWorldTest", "test": "testMint", "name": "world_mint", - "gasUsed": 105159 + "gasUsed": 104975 }, { "file": "test/ERC20BaseTest.sol:ERC20WithWorldTest", "test": "testTransfer", "name": "world_transfer", - "gasUsed": 82375 + "gasUsed": 82184 }, { "file": "test/ERC20BaseTest.sol:ERC20WithWorldTest", "test": "testTransferFrom", "name": "world_transferFrom", - "gasUsed": 99431 + "gasUsed": 99142 }, { "file": "test/ERC20Burnable.t.sol:ERC20BurnableWithInternalStoreTest", "test": "testApprove", "name": "internal_approve", - "gasUsed": 58213 + "gasUsed": 58166 }, { "file": "test/ERC20Burnable.t.sol:ERC20BurnableWithInternalStoreTest", "test": "testBurn", "name": "internal_burn", - "gasUsed": 56440 + "gasUsed": 56333 }, { "file": "test/ERC20Burnable.t.sol:ERC20BurnableWithInternalStoreTest", "test": "testBurnByAccount", "name": "internal_burn", - "gasUsed": 56563 + "gasUsed": 56454 }, { "file": "test/ERC20Burnable.t.sol:ERC20BurnableWithInternalStoreTest", "test": "testMint", "name": "internal_mint", - "gasUsed": 90703 + "gasUsed": 90597 }, { "file": "test/ERC20Burnable.t.sol:ERC20BurnableWithInternalStoreTest", "test": "testTransfer", "name": "internal_transfer", - "gasUsed": 67702 + "gasUsed": 67589 }, { "file": "test/ERC20Burnable.t.sol:ERC20BurnableWithInternalStoreTest", "test": "testTransferFrom", "name": "internal_transferFrom", - "gasUsed": 79574 + "gasUsed": 79402 }, { "file": "test/ERC20Burnable.t.sol:ERC20BurnableWithWorldTest", "test": "testApprove", "name": "world_approve", - "gasUsed": 66343 + "gasUsed": 66268 }, { "file": "test/ERC20Burnable.t.sol:ERC20BurnableWithWorldTest", "test": "testBurn", "name": "world_burn", - "gasUsed": 70874 + "gasUsed": 70689 }, { "file": "test/ERC20Burnable.t.sol:ERC20BurnableWithWorldTest", "test": "testBurnByAccount", "name": "world_burn", - "gasUsed": 70997 + "gasUsed": 70810 }, { "file": "test/ERC20Burnable.t.sol:ERC20BurnableWithWorldTest", "test": "testMint", "name": "world_mint", - "gasUsed": 105137 + "gasUsed": 104953 }, { "file": "test/ERC20Burnable.t.sol:ERC20BurnableWithWorldTest", "test": "testTransfer", "name": "world_transfer", - "gasUsed": 82397 + "gasUsed": 82206 }, { "file": "test/ERC20Burnable.t.sol:ERC20BurnableWithWorldTest", "test": "testTransferFrom", "name": "world_transferFrom", - "gasUsed": 99498 + "gasUsed": 99209 }, { "file": "test/ERC20Module.t.sol:ERC20ModuleTest", "test": "testInstall", "name": "install erc20 module", - "gasUsed": 4523802 + "gasUsed": 4487618 }, { "file": "test/ERC20Pausable.t.sol:ERC20PausableWithInternalStoreTest", "test": "testApprove", "name": "internal_approve", - "gasUsed": 58213 + "gasUsed": 58166 }, { "file": "test/ERC20Pausable.t.sol:ERC20PausableWithInternalStoreTest", "test": "testBurn", "name": "internal_burn", - "gasUsed": 59740 + "gasUsed": 59622 }, { "file": "test/ERC20Pausable.t.sol:ERC20PausableWithInternalStoreTest", "test": "testMint", "name": "internal_mint", - "gasUsed": 94004 + "gasUsed": 93887 }, { "file": "test/ERC20Pausable.t.sol:ERC20PausableWithInternalStoreTest", "test": "testPause", "name": "internal_pause", - "gasUsed": 56737 + "gasUsed": 56682 }, { "file": "test/ERC20Pausable.t.sol:ERC20PausableWithInternalStoreTest", "test": "testPause", "name": "internal_unpause", - "gasUsed": 34845 + "gasUsed": 34789 }, { "file": "test/ERC20Pausable.t.sol:ERC20PausableWithInternalStoreTest", "test": "testTransfer", "name": "internal_transfer", - "gasUsed": 71003 + "gasUsed": 70879 }, { "file": "test/ERC20Pausable.t.sol:ERC20PausableWithInternalStoreTest", "test": "testTransferFrom", "name": "internal_transferFrom", - "gasUsed": 82876 + "gasUsed": 82693 }, { "file": "test/ERC20Pausable.t.sol:ERC20PausableWithWorldTest", "test": "testApprove", "name": "world_approve", - "gasUsed": 66343 + "gasUsed": 66268 }, { "file": "test/ERC20Pausable.t.sol:ERC20PausableWithWorldTest", "test": "testBurn", "name": "world_burn", - "gasUsed": 75661 + "gasUsed": 75454 }, { "file": "test/ERC20Pausable.t.sol:ERC20PausableWithWorldTest", "test": "testMint", "name": "world_mint", - "gasUsed": 109880 + "gasUsed": 109674 }, { "file": "test/ERC20Pausable.t.sol:ERC20PausableWithWorldTest", "test": "testPause", "name": "world_pause", - "gasUsed": 66128 + "gasUsed": 66034 }, { "file": "test/ERC20Pausable.t.sol:ERC20PausableWithWorldTest", "test": "testPause", "name": "world_unpause", - "gasUsed": 44214 + "gasUsed": 44119 }, { "file": "test/ERC20Pausable.t.sol:ERC20PausableWithWorldTest", "test": "testTransfer", "name": "world_transfer", - "gasUsed": 87096 + "gasUsed": 86883 }, { "file": "test/ERC20Pausable.t.sol:ERC20PausableWithWorldTest", "test": "testTransferFrom", "name": "world_transferFrom", - "gasUsed": 104242 + "gasUsed": 103931 } ] diff --git a/packages/world-module-metadata/gas-report.json b/packages/world-module-metadata/gas-report.json index db85ecdf4d..41fb1454e9 100644 --- a/packages/world-module-metadata/gas-report.json +++ b/packages/world-module-metadata/gas-report.json @@ -3,18 +3,18 @@ "file": "test/MetadataModule.t.sol:MetadataModuleTest", "test": "testDeleteResourceTag", "name": "delete resource tag", - "gasUsed": 70301 + "gasUsed": 70100 }, { "file": "test/MetadataModule.t.sol:MetadataModuleTest", "test": "testInstall", "name": "install metadata module", - "gasUsed": 1109853 + "gasUsed": 1107861 }, { "file": "test/MetadataModule.t.sol:MetadataModuleTest", "test": "testSetResourceTag", "name": "set resource tag", - "gasUsed": 116708 + "gasUsed": 116490 } ] diff --git a/packages/world-modules/gas-report.json b/packages/world-modules/gas-report.json index e026ade173..94eaaa2027 100644 --- a/packages/world-modules/gas-report.json +++ b/packages/world-modules/gas-report.json @@ -3,336 +3,336 @@ "file": "test/CallWithSignatureModule.t.sol:Unstable_CallWithSignatureModuleTest", "test": "testInstallRoot", "name": "install delegation module", - "gasUsed": 691133 + "gasUsed": 690311 }, { "file": "test/CallWithSignatureModule.t.sol:Unstable_CallWithSignatureModuleTest", "test": "testRegisterDelegationWithSignature", "name": "register an unlimited delegation with signature", - "gasUsed": 138532 + "gasUsed": 138240 }, { "file": "test/ERC20.t.sol:ERC20Test", "test": "testApprove", "name": "approve", - "gasUsed": 133324 + "gasUsed": 132930 }, { "file": "test/ERC20.t.sol:ERC20Test", "test": "testBurn", "name": "burn", - "gasUsed": 141096 + "gasUsed": 140545 }, { "file": "test/ERC20.t.sol:ERC20Test", "test": "testMint", "name": "mint", - "gasUsed": 179835 + "gasUsed": 179285 }, { "file": "test/ERC20.t.sol:ERC20Test", "test": "testTransfer", "name": "transfer", - "gasUsed": 145002 + "gasUsed": 144489 }, { "file": "test/ERC20.t.sol:ERC20Test", "test": "testTransferFrom", "name": "transferFrom", - "gasUsed": 183189 + "gasUsed": 182422 }, { "file": "test/ERC721.t.sol:ERC721Test", "test": "testApproveAllGas", "name": "setApprovalForAll", - "gasUsed": 132887 + "gasUsed": 132494 }, { "file": "test/ERC721.t.sol:ERC721Test", "test": "testApproveGas", "name": "approve", - "gasUsed": 136246 + "gasUsed": 135800 }, { "file": "test/ERC721.t.sol:ERC721Test", "test": "testBurnGas", "name": "burn", - "gasUsed": 156244 + "gasUsed": 155535 }, { "file": "test/ERC721.t.sol:ERC721Test", "test": "testMintGas", "name": "mint", - "gasUsed": 187144 + "gasUsed": 186534 }, { "file": "test/ERC721.t.sol:ERC721Test", "test": "testSafeMintToEOAGas", "name": "safeMint", - "gasUsed": 189855 + "gasUsed": 189243 }, { "file": "test/ERC721.t.sol:ERC721Test", "test": "testSafeTransferFromToEOAGas", "name": "safeTransferFrom", - "gasUsed": 201362 + "gasUsed": 200555 }, { "file": "test/ERC721.t.sol:ERC721Test", "test": "testTransferFromGas", "name": "transferFrom", - "gasUsed": 190290 + "gasUsed": 189535 }, { "file": "test/KeysInTableModule.t.sol:KeysInTableModuleTest", "test": "testInstallComposite", "name": "install keys in table module", - "gasUsed": 1463317 + "gasUsed": 1462006 }, { "file": "test/KeysInTableModule.t.sol:KeysInTableModuleTest", "test": "testInstallGas", "name": "install keys in table module", - "gasUsed": 1463317 + "gasUsed": 1462006 }, { "file": "test/KeysInTableModule.t.sol:KeysInTableModuleTest", "test": "testInstallGas", "name": "set a record on a table with keysInTableModule installed", - "gasUsed": 191359 + "gasUsed": 191018 }, { "file": "test/KeysInTableModule.t.sol:KeysInTableModuleTest", "test": "testInstallSingleton", "name": "install keys in table module", - "gasUsed": 1463317 + "gasUsed": 1462006 }, { "file": "test/KeysInTableModule.t.sol:KeysInTableModuleTest", "test": "testSetAndDeleteRecordHookCompositeGas", "name": "install keys in table module", - "gasUsed": 1463317 + "gasUsed": 1462006 }, { "file": "test/KeysInTableModule.t.sol:KeysInTableModuleTest", "test": "testSetAndDeleteRecordHookCompositeGas", "name": "change a composite record on a table with keysInTableModule installed", - "gasUsed": 63600 + "gasUsed": 63468 }, { "file": "test/KeysInTableModule.t.sol:KeysInTableModuleTest", "test": "testSetAndDeleteRecordHookCompositeGas", "name": "delete a composite record on a table with keysInTableModule installed", - "gasUsed": 223443 + "gasUsed": 222500 }, { "file": "test/KeysInTableModule.t.sol:KeysInTableModuleTest", "test": "testSetAndDeleteRecordHookGas", "name": "install keys in table module", - "gasUsed": 1463317 + "gasUsed": 1462006 }, { "file": "test/KeysInTableModule.t.sol:KeysInTableModuleTest", "test": "testSetAndDeleteRecordHookGas", "name": "change a record on a table with keysInTableModule installed", - "gasUsed": 62271 + "gasUsed": 62137 }, { "file": "test/KeysInTableModule.t.sol:KeysInTableModuleTest", "test": "testSetAndDeleteRecordHookGas", "name": "delete a record on a table with keysInTableModule installed", - "gasUsed": 141684 + "gasUsed": 141159 }, { "file": "test/KeysWithValueModule.t.sol:KeysWithValueModuleTest", "test": "testGetKeysWithValueGas", "name": "install keys with value module", - "gasUsed": 719012 + "gasUsed": 717999 }, { "file": "test/KeysWithValueModule.t.sol:KeysWithValueModuleTest", "test": "testGetKeysWithValueGas", "name": "Get list of keys with a given value", - "gasUsed": 5659 + "gasUsed": 5614 }, { "file": "test/KeysWithValueModule.t.sol:KeysWithValueModuleTest", "test": "testGetTargetTableId", "name": "compute the target table selector", - "gasUsed": 2624 + "gasUsed": 2620 }, { "file": "test/KeysWithValueModule.t.sol:KeysWithValueModuleTest", "test": "testInstall", "name": "install keys with value module", - "gasUsed": 719012 + "gasUsed": 717999 }, { "file": "test/KeysWithValueModule.t.sol:KeysWithValueModuleTest", "test": "testInstall", "name": "set a record on a table with KeysWithValueModule installed", - "gasUsed": 168254 + "gasUsed": 167877 }, { "file": "test/KeysWithValueModule.t.sol:KeysWithValueModuleTest", "test": "testSetAndDeleteRecordHook", "name": "install keys with value module", - "gasUsed": 719012 + "gasUsed": 717999 }, { "file": "test/KeysWithValueModule.t.sol:KeysWithValueModuleTest", "test": "testSetAndDeleteRecordHook", "name": "change a record on a table with KeysWithValueModule installed", - "gasUsed": 159608 + "gasUsed": 159214 }, { "file": "test/KeysWithValueModule.t.sol:KeysWithValueModuleTest", "test": "testSetAndDeleteRecordHook", "name": "delete a record on a table with KeysWithValueModule installed", - "gasUsed": 78835 + "gasUsed": 78583 }, { "file": "test/KeysWithValueModule.t.sol:KeysWithValueModuleTest", "test": "testSetField", "name": "install keys with value module", - "gasUsed": 719012 + "gasUsed": 717999 }, { "file": "test/KeysWithValueModule.t.sol:KeysWithValueModuleTest", "test": "testSetField", "name": "set a field on a table with KeysWithValueModule installed", - "gasUsed": 179348 + "gasUsed": 178882 }, { "file": "test/KeysWithValueModule.t.sol:KeysWithValueModuleTest", "test": "testSetField", "name": "change a field on a table with KeysWithValueModule installed", - "gasUsed": 158835 + "gasUsed": 158369 }, { "file": "test/query.t.sol:QueryTest", "test": "testCombinedHasHasValueNotQuery", "name": "CombinedHasHasValueNotQuery", - "gasUsed": 93122 + "gasUsed": 92472 }, { "file": "test/query.t.sol:QueryTest", "test": "testCombinedHasHasValueQuery", "name": "CombinedHasHasValueQuery", - "gasUsed": 48652 + "gasUsed": 48323 }, { "file": "test/query.t.sol:QueryTest", "test": "testCombinedHasNotQuery", "name": "CombinedHasNotQuery", - "gasUsed": 113825 + "gasUsed": 113004 }, { "file": "test/query.t.sol:QueryTest", "test": "testCombinedHasQuery", "name": "CombinedHasQuery", - "gasUsed": 71833 + "gasUsed": 71312 }, { "file": "test/query.t.sol:QueryTest", "test": "testCombinedHasValueNotQuery", "name": "CombinedHasValueNotQuery", - "gasUsed": 74307 + "gasUsed": 73776 }, { "file": "test/query.t.sol:QueryTest", "test": "testCombinedHasValueQuery", "name": "CombinedHasValueQuery", - "gasUsed": 15030 + "gasUsed": 14919 }, { "file": "test/query.t.sol:QueryTest", "test": "testHasQuery", "name": "HasQuery", - "gasUsed": 15980 + "gasUsed": 15862 }, { "file": "test/query.t.sol:QueryTest", "test": "testHasQuery1000Keys", "name": "HasQuery with 1000 keys", - "gasUsed": 5341823 + "gasUsed": 5306775 }, { "file": "test/query.t.sol:QueryTest", "test": "testHasQuery100Keys", "name": "HasQuery with 100 keys", - "gasUsed": 504505 + "gasUsed": 500957 }, { "file": "test/query.t.sol:QueryTest", "test": "testHasValueQuery", "name": "HasValueQuery", - "gasUsed": 7290 + "gasUsed": 7237 }, { "file": "test/query.t.sol:QueryTest", "test": "testNotValueQuery", "name": "NotValueQuery", - "gasUsed": 42889 + "gasUsed": 42573 }, { "file": "test/StandardDelegationsModule.t.sol:StandardDelegationsModuleTest", "test": "testCallFromCallboundDelegation", "name": "register a callbound delegation", - "gasUsed": 138994 + "gasUsed": 138719 }, { "file": "test/StandardDelegationsModule.t.sol:StandardDelegationsModuleTest", "test": "testCallFromCallboundDelegation", "name": "call a system via a callbound delegation", - "gasUsed": 67297 + "gasUsed": 67099 }, { "file": "test/StandardDelegationsModule.t.sol:StandardDelegationsModuleTest", "test": "testCallFromSystemDelegation", "name": "register a systembound delegation", - "gasUsed": 136116 + "gasUsed": 135847 }, { "file": "test/StandardDelegationsModule.t.sol:StandardDelegationsModuleTest", "test": "testCallFromSystemDelegation", "name": "call a system via a systembound delegation", - "gasUsed": 69661 + "gasUsed": 69465 }, { "file": "test/StandardDelegationsModule.t.sol:StandardDelegationsModuleTest", "test": "testCallFromTimeboundDelegation", "name": "register a timebound delegation", - "gasUsed": 132659 + "gasUsed": 132391 }, { "file": "test/StandardDelegationsModule.t.sol:StandardDelegationsModuleTest", "test": "testCallFromTimeboundDelegation", "name": "call a system via a timebound delegation", - "gasUsed": 58227 + "gasUsed": 58075 }, { "file": "test/UniqueEntityModule.t.sol:UniqueEntityModuleTest", "test": "testInstall", "name": "install unique entity module", - "gasUsed": 718745 + "gasUsed": 717497 }, { "file": "test/UniqueEntityModule.t.sol:UniqueEntityModuleTest", "test": "testInstall", "name": "get a unique entity nonce (non-root module)", - "gasUsed": 77840 + "gasUsed": 77673 }, { "file": "test/UniqueEntityModule.t.sol:UniqueEntityModuleTest", "test": "testInstallRoot", "name": "installRoot unique entity module", - "gasUsed": 689190 + "gasUsed": 688139 }, { "file": "test/UniqueEntityModule.t.sol:UniqueEntityModuleTest", "test": "testInstallRoot", "name": "get a unique entity nonce (root module)", - "gasUsed": 77843 + "gasUsed": 77676 } ] diff --git a/packages/world/gas-report.json b/packages/world/gas-report.json index 0b342e977c..b9cd93d182 100644 --- a/packages/world/gas-report.json +++ b/packages/world/gas-report.json @@ -3,301 +3,301 @@ "file": "test/AccessControl.t.sol:AccessControlTest", "test": "testAccessControl", "name": "AccessControl: hasAccess (cold)", - "gasUsed": 9111 + "gasUsed": 9086 }, { "file": "test/AccessControl.t.sol:AccessControlTest", "test": "testAccessControl", "name": "AccessControl: hasAccess (warm, namespace only)", - "gasUsed": 1595 + "gasUsed": 1582 }, { "file": "test/AccessControl.t.sol:AccessControlTest", "test": "testAccessControl", "name": "AccessControl: hasAccess (warm)", - "gasUsed": 3117 + "gasUsed": 3092 }, { "file": "test/AccessControl.t.sol:AccessControlTest", "test": "testRequireAccess", "name": "AccessControl: requireAccess (cold)", - "gasUsed": 9154 + "gasUsed": 9129 }, { "file": "test/AccessControl.t.sol:AccessControlTest", "test": "testRequireAccess", "name": "AccessControl: requireAccess (warm)", - "gasUsed": 3156 + "gasUsed": 3131 }, { "file": "test/AccessControl.t.sol:AccessControlTest", "test": "testRequireOwner", "name": "AccessControl: requireOwner (cold)", - "gasUsed": 5401 + "gasUsed": 5390 }, { "file": "test/AccessControl.t.sol:AccessControlTest", "test": "testRequireOwner", "name": "AccessControl: requireOwner (warm)", - "gasUsed": 1402 + "gasUsed": 1391 }, { "file": "test/BatchCall.t.sol:BatchCallTest", "test": "testBatchCallFromReturnData", "name": "call systems with batchCallFrom", - "gasUsed": 80765 + "gasUsed": 80465 }, { "file": "test/BatchCall.t.sol:BatchCallTest", "test": "testBatchCallReturnData", "name": "call systems with batchCall", - "gasUsed": 77560 + "gasUsed": 77277 }, { "file": "test/Factories.t.sol:FactoriesTest", "test": "testCreate2Factory", "name": "deploy contract via Create2", - "gasUsed": 4970818 + "gasUsed": 4862003 }, { "file": "test/Factories.t.sol:FactoriesTest", "test": "testWorldFactoryGas", "name": "deploy world via WorldFactory", - "gasUsed": 12847807 + "gasUsed": 12742614 }, { "file": "test/World.t.sol:WorldTest", "test": "testCall", "name": "call a system via the World", - "gasUsed": 40081 + "gasUsed": 39989 }, { "file": "test/World.t.sol:WorldTest", "test": "testCallFromNamespaceDelegation", "name": "call a system via a namespace fallback delegation", - "gasUsed": 59816 + "gasUsed": 59644 }, { "file": "test/World.t.sol:WorldTest", "test": "testCallFromUnlimitedDelegation", "name": "register an unlimited delegation", - "gasUsed": 74771 + "gasUsed": 74634 }, { "file": "test/World.t.sol:WorldTest", "test": "testCallFromUnlimitedDelegation", "name": "call a system via an unlimited delegation", - "gasUsed": 40663 + "gasUsed": 40567 }, { "file": "test/World.t.sol:WorldTest", "test": "testDeleteRecord", "name": "Delete record", - "gasUsed": 36718 + "gasUsed": 36655 }, { "file": "test/World.t.sol:WorldTest", "test": "testPushToDynamicField", "name": "Push data to the table", - "gasUsed": 110775 + "gasUsed": 110693 }, { "file": "test/World.t.sol:WorldTest", "test": "testRegisterFunctionSelector", "name": "Register a function selector", - "gasUsed": 116605 + "gasUsed": 116398 }, { "file": "test/World.t.sol:WorldTest", "test": "testRegisterNamespace", "name": "Register a new namespace", - "gasUsed": 144062 + "gasUsed": 143841 }, { "file": "test/World.t.sol:WorldTest", "test": "testRegisterRootFunctionSelector", "name": "Register a root function selector", - "gasUsed": 113693 + "gasUsed": 113492 }, { "file": "test/World.t.sol:WorldTest", "test": "testRegisterSystem", "name": "register a system", - "gasUsed": 185349 + "gasUsed": 185032 }, { "file": "test/World.t.sol:WorldTest", "test": "testRegisterTable", "name": "Register a new table in the namespace", - "gasUsed": 572927 + "gasUsed": 572591 }, { "file": "test/World.t.sol:WorldTest", "test": "testRenounceNamespace", "name": "Renounce namespace ownership", - "gasUsed": 62190 + "gasUsed": 62008 }, { "file": "test/World.t.sol:WorldTest", "test": "testSetField", "name": "Write data to a table field", - "gasUsed": 60884 + "gasUsed": 60816 }, { "file": "test/World.t.sol:WorldTest", "test": "testSetRecord", "name": "Write data to the table", - "gasUsed": 64743 + "gasUsed": 64661 }, { "file": "test/World.t.sol:WorldTest", "test": "testUnregisterNamespaceDelegation", "name": "unregister a namespace delegation", - "gasUsed": 60328 + "gasUsed": 60182 }, { "file": "test/World.t.sol:WorldTest", "test": "testUnregisterUnlimitedDelegation", "name": "unregister an unlimited delegation", - "gasUsed": 54526 + "gasUsed": 54396 }, { "file": "test/WorldDynamicUpdate.t.sol:UpdateInDynamicFieldTest", "test": "testPopFromDynamicField", "name": "pop 1 address (cold)", - "gasUsed": 51686 + "gasUsed": 51609 }, { "file": "test/WorldDynamicUpdate.t.sol:UpdateInDynamicFieldTest", "test": "testPopFromDynamicField", "name": "pop 1 address (warm)", - "gasUsed": 45632 + "gasUsed": 45555 }, { "file": "test/WorldDynamicUpdate.t.sol:UpdateInDynamicFieldTest", "test": "testSpliceDynamicData", "name": "update in field 1 item (cold)", - "gasUsed": 52822 + "gasUsed": 52746 }, { "file": "test/WorldDynamicUpdate.t.sol:UpdateInDynamicFieldTest", "test": "testSpliceDynamicData", "name": "update in field 1 item (warm)", - "gasUsed": 44023 + "gasUsed": 43947 }, { "file": "test/WorldProxy.t.sol:WorldProxyTest", "test": "testCall", "name": "call a system via the World", - "gasUsed": 45004 + "gasUsed": 44906 }, { "file": "test/WorldProxy.t.sol:WorldProxyTest", "test": "testCallFromNamespaceDelegation", "name": "call a system via a namespace fallback delegation", - "gasUsed": 64745 + "gasUsed": 64567 }, { "file": "test/WorldProxy.t.sol:WorldProxyTest", "test": "testCallFromUnlimitedDelegation", "name": "register an unlimited delegation", - "gasUsed": 79685 + "gasUsed": 79542 }, { "file": "test/WorldProxy.t.sol:WorldProxyTest", "test": "testCallFromUnlimitedDelegation", "name": "call a system via an unlimited delegation", - "gasUsed": 45592 + "gasUsed": 45490 }, { "file": "test/WorldProxy.t.sol:WorldProxyTest", "test": "testDeleteRecord", "name": "Delete record", - "gasUsed": 41626 + "gasUsed": 41557 }, { "file": "test/WorldProxy.t.sol:WorldProxyTest", "test": "testPushToDynamicField", "name": "Push data to the table", - "gasUsed": 115719 + "gasUsed": 115631 }, { "file": "test/WorldProxy.t.sol:WorldProxyTest", "test": "testRegisterFunctionSelector", "name": "Register a function selector", - "gasUsed": 121522 + "gasUsed": 121309 }, { "file": "test/WorldProxy.t.sol:WorldProxyTest", "test": "testRegisterNamespace", "name": "Register a new namespace", - "gasUsed": 148961 + "gasUsed": 148734 }, { "file": "test/WorldProxy.t.sol:WorldProxyTest", "test": "testRegisterRootFunctionSelector", "name": "Register a root function selector", - "gasUsed": 118628 + "gasUsed": 118421 }, { "file": "test/WorldProxy.t.sol:WorldProxyTest", "test": "testRegisterSystem", "name": "register a system", - "gasUsed": 190257 + "gasUsed": 189934 }, { "file": "test/WorldProxy.t.sol:WorldProxyTest", "test": "testRegisterTable", "name": "Register a new table in the namespace", - "gasUsed": 577937 + "gasUsed": 577595 }, { "file": "test/WorldProxy.t.sol:WorldProxyTest", "test": "testRenounceNamespace", "name": "Renounce namespace ownership", - "gasUsed": 67089 + "gasUsed": 66901 }, { "file": "test/WorldProxy.t.sol:WorldProxyTest", "test": "testSetField", "name": "Write data to a table field", - "gasUsed": 65822 + "gasUsed": 65748 }, { "file": "test/WorldProxy.t.sol:WorldProxyTest", "test": "testSetRecord", "name": "Write data to the table", - "gasUsed": 69687 + "gasUsed": 69599 }, { "file": "test/WorldProxy.t.sol:WorldProxyTest", "test": "testUnregisterNamespaceDelegation", "name": "unregister a namespace delegation", - "gasUsed": 65227 + "gasUsed": 65075 }, { "file": "test/WorldProxy.t.sol:WorldProxyTest", "test": "testUnregisterUnlimitedDelegation", "name": "unregister an unlimited delegation", - "gasUsed": 59425 + "gasUsed": 59289 }, { "file": "test/WorldProxyFactory.t.sol:WorldProxyFactoryTest", "test": "testWorldProxyFactoryGas", "name": "deploy world via WorldProxyFactory", - "gasUsed": 9143347 + "gasUsed": 9127201 }, { "file": "test/WorldProxyFactory.t.sol:WorldProxyFactoryTest", "test": "testWorldProxyFactoryGas", "name": "set WorldProxy implementation", - "gasUsed": 37553 + "gasUsed": 37531 }, { "file": "test/WorldResourceId.t.sol:WorldResourceIdTest", "test": "testGetNamespace", "name": "encode namespace, name and type", - "gasUsed": 33 + "gasUsed": 32 }, { "file": "test/WorldResourceId.t.sol:WorldResourceIdTest", @@ -315,6 +315,6 @@ "file": "test/WorldResourceId.t.sol:WorldResourceIdTest", "test": "testToString", "name": "convert resource ID to string", - "gasUsed": 2390 + "gasUsed": 2380 } ] diff --git a/turbo.json b/turbo.json index 427d3c7414..fac6dcab0c 100644 --- a/turbo.json +++ b/turbo.json @@ -17,6 +17,23 @@ }, "clean": { "cache": false + }, + "@latticexyz/store#clean": { + "dependsOn": [ + "@latticexyz/world-module-erc20#clean", + "@latticexyz/world-modules#clean", + "puppet-modules-test#clean", + "mock-game-contracts#clean" + ], + "cache": false + }, + "@latticexyz/world#clean": { + "dependsOn": [ + "@latticexyz/world-module-metadata#clean", + "@latticexyz/world-module-erc20#clean", + "@latticexyz/world-modules#clean" + ], + "cache": false } }, "globalPassThroughEnv": ["COREPACK_HOME"]