Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"no-unused-vars": "off",
"no-inline-assembly": "off",
"visibility-modifier-order": "off",
"compiler-version": ["warn", "0.8.17"],
"compiler-version": ["warn", "0.8.27"],
"func-visibility": ["warn", {"ignoreConstructors":true}],
"reason-string": ["warn", {"maxLength": 96}]
}
Expand Down
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ loadAndValidateEnvironment();

const config: HardhatUserConfig = {
solidity: {
compilers: [{ version: '0.8.17' }],
compilers: [{ version: '0.8.27' }],
settings: {
optimizer: {
enabled: true,
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"@typechain/ethers-v5": "^10.1.1",
"@types/chai-as-promised": "^7.1.0",
"@types/chai-string": "^1.4.1",
"@types/minimatch": "^5.1.2",
"@types/mocha": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
Expand All @@ -71,7 +72,7 @@
"eslint-plugin-prettier": "^4.2.1",
"ethers": "^5.7.2",
"ganache": "^7.5.0",
"hardhat": "2.12.2",
"hardhat": "^2.26.3",
"hardhat-gas-reporter": "^1.0.9",
"husky": "^4.2.3",
"prompt-sync": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/Factory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;
import '@openzeppelin/contracts/access/AccessControl.sol';
import "./Wallet.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/contracts/MultiCallDeploy.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Immutable Pty Ltd 2018 - 2023
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "./modules/commons/interfaces/IModuleCalls.sol";
import '@openzeppelin/contracts/access/AccessControl.sol';
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/Wallet.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright Immutable Pty Ltd 2018 - 2023
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

// Holds the creation code of the WalletProxy.yul used by smart contract wallet instances.
// Generate this bytecode using ./compileWalletProxyYul.sh
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/interfaces/IERC1271Wallet.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


interface IERC1271Wallet {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/interfaces/IFactory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

/**
* @title IFactory
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/interfaces/receivers/IERC1155Receiver.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


interface IERC1155Receiver {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/interfaces/receivers/IERC223Receiver.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


interface IERC223Receiver {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/interfaces/receivers/IERC721Receiver.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


interface IERC721Receiver {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/migrations/Migrations.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


contract Migrations {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/mocks/AlwaysRevertMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


contract AlwaysRevertMock {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/mocks/CallReceiverMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


contract CallReceiverMock {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/mocks/CustomModule.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.8.17;
pragma solidity 0.8.27;

contract CustomModule {
string public str;
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/mocks/DelegateCallMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


contract DelegateCallMock {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/mocks/ERC165CheckerMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


contract ERC165CheckerMock {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/mocks/GasBurnerMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


contract GasBurnerMock {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/mocks/HookCallerMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "../interfaces/receivers/IERC1155Receiver.sol";
import "../interfaces/receivers/IERC721Receiver.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/mocks/HookMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


contract HookMock {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/mocks/LibBytesImpl.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "../utils/LibBytes.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/contracts/mocks/MainModule.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.8.17;
pragma solidity 0.8.27;
// installed under @sequence/wallet-contracts alias instead of @0xsequence/wallet-contracts as the '0x' has problems with typechain
import "../modules/MainModule.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/contracts/mocks/MainModuleMockV1.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright Immutable Pty Ltd 2018 - 2023
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "../modules/MainModuleDynamicAuth.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/contracts/mocks/MainModuleMockV2.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright Immutable Pty Ltd 2018 - 2023
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "../modules/MainModuleDynamicAuth.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/contracts/mocks/MainModuleMockV3.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright Immutable Pty Ltd 2018 - 2023
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "../modules/MainModuleDynamicAuth.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/contracts/mocks/ModuleMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


contract ModuleMock {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/GuestModule.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "../utils/SignatureValidator.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/MainModule.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "../utils/SignatureValidator.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/MainModuleDynamicAuth.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright Immutable Pty Ltd 2018 - 2023
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "./commons/ModuleAuthDynamic.sol";
import "./commons/ModuleReceivers.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/MainModuleGasEstimation.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "./commons/ModuleIgnoreAuthUpgradable.sol";
import "./commons/ModuleIgnoreNonceCalls.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/MainModuleUpgradable.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "./commons/ModuleAuthUpgradable.sol";
import "./commons/ModuleHooks.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/commons/ImageHashKey.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

library ImageHashKey {
// Randomly generated to avoid collisions, with:
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/commons/Implementation.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

/**
* @dev Allows modules to access the implementation slot
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/commons/ModuleAuth.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "../../utils/LibBytes.sol";
import "../../utils/SignatureValidator.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/commons/ModuleAuthDynamic.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright Immutable Pty Ltd 2018 - 2023
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "./ModuleAuthUpgradable.sol";
import "./ImageHashKey.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/commons/ModuleAuthFixed.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "./ModuleAuth.sol";
import "../../Wallet.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/commons/ModuleAuthUpgradable.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "./interfaces/IModuleAuthUpgradable.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/commons/ModuleCalls.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "./ModuleSelfAuth.sol";
import "./ModuleStorage.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/commons/ModuleCreator.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "./interfaces/IModuleCreator.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/commons/ModuleERC165.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


abstract contract ModuleERC165 {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/commons/ModuleHooks.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "./interfaces/IModuleHooks.sol";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "./interfaces/IModuleAuthUpgradable.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/commons/ModuleIgnoreNonceCalls.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "./ModuleSelfAuth.sol";
import "./ModuleStorage.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/commons/ModuleReceivers.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "./ModuleERC165.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/commons/ModuleSelfAuth.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


contract ModuleSelfAuth {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/commons/ModuleStorage.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


library ModuleStorage {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/commons/ModuleUpdate.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

import "./interfaces/IModuleUpdate.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/commons/NonceKey.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;

library NonceKey {
// Randomly generated to avoid collisions, with:
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/commons/interfaces/IModuleAuth.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


abstract contract IModuleAuth {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


interface IModuleAuthUpgradable {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/commons/interfaces/IModuleCalls.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


interface IModuleCalls {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


interface IModuleCreator {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/commons/interfaces/IModuleHooks.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


interface IModuleHooks {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/modules/commons/interfaces/IModuleUpdate.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
pragma solidity 0.8.27;


interface IModuleUpdate {
Expand Down
Loading
Loading