From af4f6e58f2cdae1486774aabbd36e22cbba970ae Mon Sep 17 00:00:00 2001 From: Vicente Dragicevic Date: Wed, 30 Oct 2024 10:49:34 -0300 Subject: [PATCH 1/2] Rename ERC20BaseTest.sol to ERC20BaseTest.t.sol --- .../test/{ERC20BaseTest.sol => ERC20BaseTest.t.sol} | 0 packages/world-module-erc20/test/ERC20Burnable.t.sol | 2 +- packages/world-module-erc20/test/ERC20Pausable.t.sol | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename packages/world-module-erc20/test/{ERC20BaseTest.sol => ERC20BaseTest.t.sol} (100%) diff --git a/packages/world-module-erc20/test/ERC20BaseTest.sol b/packages/world-module-erc20/test/ERC20BaseTest.t.sol similarity index 100% rename from packages/world-module-erc20/test/ERC20BaseTest.sol rename to packages/world-module-erc20/test/ERC20BaseTest.t.sol diff --git a/packages/world-module-erc20/test/ERC20Burnable.t.sol b/packages/world-module-erc20/test/ERC20Burnable.t.sol index ee6ff7bbc5..cdb8342e89 100644 --- a/packages/world-module-erc20/test/ERC20Burnable.t.sol +++ b/packages/world-module-erc20/test/ERC20Burnable.t.sol @@ -15,7 +15,7 @@ import { IERC20Errors } from "../src/interfaces/IERC20Errors.sol"; import { IERC20Events } from "../src/interfaces/IERC20Events.sol"; import { MUDERC20 } from "../src/experimental/MUDERC20.sol"; import { ERC20Burnable } from "../src/experimental/ERC20Burnable.sol"; -import { MockERC20Base, MockERC20WithInternalStore, MockERC20WithWorld, ERC20BehaviorTest, ERC20WithInternalStoreBehaviorTest, ERC20WithWorldBehaviorTest } from "./ERC20BaseTest.sol"; +import { MockERC20Base, MockERC20WithInternalStore, MockERC20WithWorld, ERC20BehaviorTest, ERC20WithInternalStoreBehaviorTest, ERC20WithWorldBehaviorTest } from "./ERC20BaseTest.t.sol"; contract MockERC20WithInternalStoreBurnable is MockERC20WithInternalStore, ERC20Burnable {} diff --git a/packages/world-module-erc20/test/ERC20Pausable.t.sol b/packages/world-module-erc20/test/ERC20Pausable.t.sol index a4b0dbdad3..402de51ee0 100644 --- a/packages/world-module-erc20/test/ERC20Pausable.t.sol +++ b/packages/world-module-erc20/test/ERC20Pausable.t.sol @@ -12,7 +12,7 @@ import { IERC20Errors } from "../src/interfaces/IERC20Errors.sol"; import { IERC20Events } from "../src/interfaces/IERC20Events.sol"; import { MUDERC20 } from "../src/experimental/MUDERC20.sol"; import { Pausable, ERC20Pausable } from "../src/experimental/ERC20Pausable.sol"; -import { MockERC20Base, MockERC20WithInternalStore, MockERC20WithWorld, ERC20BehaviorTest, ERC20WithInternalStoreBehaviorTest, ERC20WithWorldBehaviorTest } from "./ERC20BaseTest.sol"; +import { MockERC20Base, MockERC20WithInternalStore, MockERC20WithWorld, ERC20BehaviorTest, ERC20WithInternalStoreBehaviorTest, ERC20WithWorldBehaviorTest } from "./ERC20BaseTest.t.sol"; // Mock to include mint and burn functions abstract contract MockERC20Pausable is MUDERC20, ERC20Pausable { From 6f123e067f576a96990c4c09bbaab31497de2f19 Mon Sep 17 00:00:00 2001 From: Vicente Dragicevic Date: Wed, 30 Oct 2024 11:32:05 -0300 Subject: [PATCH 2/2] Gas reports --- packages/world-module-erc20/gas-report.json | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/world-module-erc20/gas-report.json b/packages/world-module-erc20/gas-report.json index 4c5fdc800d..d7486f9da6 100644 --- a/packages/world-module-erc20/gas-report.json +++ b/packages/world-module-erc20/gas-report.json @@ -1,60 +1,60 @@ [ { - "file": "test/ERC20BaseTest.sol:ERC20WithInternalStoreTest", + "file": "test/ERC20BaseTest.t.sol:ERC20WithInternalStoreTest", "test": "testApprove", "name": "internal_approve", "gasUsed": 58166 }, { - "file": "test/ERC20BaseTest.sol:ERC20WithInternalStoreTest", + "file": "test/ERC20BaseTest.t.sol:ERC20WithInternalStoreTest", "test": "testBurn", "name": "internal_burn", "gasUsed": 56310 }, { - "file": "test/ERC20BaseTest.sol:ERC20WithInternalStoreTest", + "file": "test/ERC20BaseTest.t.sol:ERC20WithInternalStoreTest", "test": "testMint", "name": "internal_mint", "gasUsed": 90597 }, { - "file": "test/ERC20BaseTest.sol:ERC20WithInternalStoreTest", + "file": "test/ERC20BaseTest.t.sol:ERC20WithInternalStoreTest", "test": "testTransfer", "name": "internal_transfer", "gasUsed": 67634 }, { - "file": "test/ERC20BaseTest.sol:ERC20WithInternalStoreTest", + "file": "test/ERC20BaseTest.t.sol:ERC20WithInternalStoreTest", "test": "testTransferFrom", "name": "internal_transferFrom", "gasUsed": 79402 }, { - "file": "test/ERC20BaseTest.sol:ERC20WithWorldTest", + "file": "test/ERC20BaseTest.t.sol:ERC20WithWorldTest", "test": "testApprove", "name": "world_approve", "gasUsed": 66268 }, { - "file": "test/ERC20BaseTest.sol:ERC20WithWorldTest", + "file": "test/ERC20BaseTest.t.sol:ERC20WithWorldTest", "test": "testBurn", "name": "world_burn", "gasUsed": 70688 }, { - "file": "test/ERC20BaseTest.sol:ERC20WithWorldTest", + "file": "test/ERC20BaseTest.t.sol:ERC20WithWorldTest", "test": "testMint", "name": "world_mint", "gasUsed": 104975 }, { - "file": "test/ERC20BaseTest.sol:ERC20WithWorldTest", + "file": "test/ERC20BaseTest.t.sol:ERC20WithWorldTest", "test": "testTransfer", "name": "world_transfer", "gasUsed": 82206 }, { - "file": "test/ERC20BaseTest.sol:ERC20WithWorldTest", + "file": "test/ERC20BaseTest.t.sol:ERC20WithWorldTest", "test": "testTransferFrom", "name": "world_transferFrom", "gasUsed": 99142