File tree 17 files changed +46
-45
lines changed
17 files changed +46
-45
lines changed Original file line number Diff line number Diff line change 13
13
"reason-string" : " off" ,
14
14
"no-empty-blocks" : " off" ,
15
15
"avoid-low-level-calls" : " off" ,
16
- "gas-custom-errors" : " off"
16
+ "gas-custom-errors" : " off" ,
17
+ "imports-order" : " warn"
17
18
}
18
19
}
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: LGPL-3.0-only
2
2
pragma solidity >= 0.7.0 < 0.9.0 ;
3
3
4
+ import {FallbackManager} from "./base/FallbackManager.sol " ;
4
5
import {ITransactionGuard, GuardManager} from "./base/GuardManager.sol " ;
5
6
import {ModuleManager} from "./base/ModuleManager.sol " ;
6
7
import {OwnerManager} from "./base/OwnerManager.sol " ;
7
- import {FallbackManager} from "./base/FallbackManager.sol " ;
8
8
import {NativeCurrencyPaymentFallback} from "./common/NativeCurrencyPaymentFallback.sol " ;
9
- import {Singleton} from "./common/Singleton.sol " ;
10
- import {SignatureDecoder} from "./common/SignatureDecoder.sol " ;
11
9
import {SecuredTokenTransfer} from "./common/SecuredTokenTransfer.sol " ;
10
+ import {SignatureDecoder} from "./common/SignatureDecoder.sol " ;
11
+ import {Singleton} from "./common/Singleton.sol " ;
12
12
import {StorageAccessible} from "./common/StorageAccessible.sol " ;
13
- import {Enum} from "./libraries/Enum.sol " ;
14
- import {ISignatureValidator, ISignatureValidatorConstants} from "./interfaces/ISignatureValidator.sol " ;
15
13
import {SafeMath} from "./external/SafeMath.sol " ;
16
14
import {ISafe} from "./interfaces/ISafe.sol " ;
15
+ import {ISignatureValidator, ISignatureValidatorConstants} from "./interfaces/ISignatureValidator.sol " ;
16
+ import {Enum} from "./libraries/Enum.sol " ;
17
17
18
18
/**
19
19
* @title Safe - A multisignature wallet with support for confirmations using signed messages based on EIP-712.
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: LGPL-3.0-only
2
2
pragma solidity >= 0.7.0 < 0.9.0 ;
3
3
4
- import {Safe, Enum} from "./Safe.sol " ;
5
-
6
- // Imports are required for NatSpec validation of the compiler, and falsely detected as unused by
7
- // the linter, so disable the `no-unused-imports` rule for the next line.
4
+ // The import is used in the @inheritdoc, false positive
8
5
// solhint-disable-next-line no-unused-import
9
6
import {ModuleManager} from "./base/ModuleManager.sol " ;
7
+ import {Safe, Enum} from "./Safe.sol " ;
10
8
11
9
/**
12
10
* @title SafeL2 - An implementation of the Safe contract that emits additional events on transaction executions.
Original file line number Diff line number Diff line change 2
2
/* solhint-disable one-contract-per-file */
3
3
pragma solidity >= 0.7.0 < 0.9.0 ;
4
4
5
- import {Enum } from "../libraries/Enum .sol " ;
6
- import {SelfAuthorized } from "../common/SelfAuthorized .sol " ;
7
- import {IERC165 } from ".. /interfaces/IERC165 .sol " ;
8
- import {IGuardManager } from "../interfaces/IGuardManager .sol " ;
5
+ import {SelfAuthorized } from "./../common/SelfAuthorized .sol " ;
6
+ import {IERC165 } from "./../interfaces/IERC165 .sol " ;
7
+ import {IGuardManager } from "./.. /interfaces/IGuardManager .sol " ;
8
+ import {Enum } from "./../libraries/Enum .sol " ;
9
9
10
10
/**
11
11
* @title ITransactionGuard Interface
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: LGPL-3.0-only
2
2
/* solhint-disable one-contract-per-file */
3
3
pragma solidity >= 0.7.0 < 0.9.0 ;
4
- import {Enum} from "../libraries/Enum.sol " ;
5
- import {SelfAuthorized} from "../common/SelfAuthorized.sol " ;
4
+ import {SelfAuthorized} from "./../common/SelfAuthorized.sol " ;
5
+ import {IERC165 } from "./../interfaces/IERC165.sol " ;
6
+ import {IModuleManager} from "./../interfaces/IModuleManager.sol " ;
7
+ import {Enum} from "./../libraries/Enum.sol " ;
6
8
import {Executor} from "./Executor.sol " ;
7
- import {IModuleManager} from "../interfaces/IModuleManager.sol " ;
8
- import {IERC165 } from "../interfaces/IERC165.sol " ;
9
9
10
10
/**
11
11
* @title IModuleGuard Interface
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: LGPL-3.0-only
2
2
pragma solidity >= 0.7.0 < 0.9.0 ;
3
- import {IERC165 } from ".. /../interfaces/IERC165 .sol " ;
4
- import {BaseTransactionGuard, ITransactionGuard } from ".. /../base/GuardManager .sol " ;
5
- import {BaseModuleGuard, IModuleGuard } from ".. /../base/ModuleManager .sol " ;
3
+ import {BaseTransactionGuard, ITransactionGuard } from "./.. /../base/GuardManager .sol " ;
4
+ import {BaseModuleGuard, IModuleGuard } from "./.. /../base/ModuleManager .sol " ;
5
+ import {IERC165 } from "./.. /../interfaces/IERC165 .sol " ;
6
6
7
7
/**
8
8
* @title BaseGuard - Inherits BaseTransactionGuard and BaseModuleGuard.
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: LGPL-3.0-only
2
2
pragma solidity >= 0.7.0 < 0.9.0 ;
3
3
4
- import {Enum } from ".. /../libraries/Enum .sol " ;
5
- import {ISafe } from ".. /../interfaces/ISafe .sol " ;
4
+ import {ISafe } from "./.. /../interfaces/ISafe .sol " ;
5
+ import {Enum } from "./.. /../libraries/Enum .sol " ;
6
6
import {BaseGuard} from "./BaseGuard.sol " ;
7
7
/**
8
8
* @title Debug Transaction Guard - Emits transaction events with extended information.
Original file line number Diff line number Diff line change 2
2
/* solhint-disable one-contract-per-file */
3
3
pragma solidity >= 0.7.0 < 0.9.0 ;
4
4
5
- import {Enum } from ".. /../libraries/Enum .sol " ;
6
- import {BaseTransactionGuard } from ".. /../base/GuardManager .sol " ;
7
- import {ISafe } from ".. /../interfaces/ISafe .sol " ;
5
+ import {BaseTransactionGuard } from "./.. /../base/GuardManager .sol " ;
6
+ import {ISafe } from "./.. /../interfaces/ISafe .sol " ;
7
+ import {Enum } from "./.. /../libraries/Enum .sol " ;
8
8
9
9
/**
10
10
* @title OnlyOwnersGuard - Only allows owners to execute transactions.
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: LGPL-3.0-only
2
2
pragma solidity >= 0.7.0 < 0.9.0 ;
3
3
4
- import {TokenCallbackHandler} from "./TokenCallbackHandler.sol " ;
5
- import {ISignatureValidator} from "../interfaces/ISignatureValidator.sol " ;
6
- import {ISafe} from "../interfaces/ISafe.sol " ;
4
+ import {ISafe} from "./../interfaces/ISafe.sol " ;
5
+ import {ISignatureValidator} from "./../interfaces/ISignatureValidator.sol " ;
7
6
import {HandlerContext} from "./HandlerContext.sol " ;
7
+ import {TokenCallbackHandler} from "./TokenCallbackHandler.sol " ;
8
8
9
9
/**
10
10
* @title Compatibility Fallback Handler - Provides compatibility between pre 1.3.0 and 1.3.0+ Safe Smart Account contracts.
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: LGPL-3.0-only
2
2
pragma solidity >= 0.7.0 < 0.9.0 ;
3
3
4
- import {Enum} from "../libraries/Enum.sol " ;
5
- import {IModuleManager} from "./IModuleManager.sol " ;
6
- import {IOwnerManager} from "./IOwnerManager.sol " ;
4
+ import {Enum} from "./../libraries/Enum.sol " ;
7
5
import {IFallbackManager} from "./IFallbackManager.sol " ;
8
6
import {IGuardManager} from "./IGuardManager.sol " ;
7
+ import {IModuleManager} from "./IModuleManager.sol " ;
8
+ import {IOwnerManager} from "./IOwnerManager.sol " ;
9
9
10
10
/**
11
11
* @title ISafe - A multisignature wallet interface with support for confirmations using signed messages based on EIP-712.
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: LGPL-3.0-only
2
2
pragma solidity >= 0.7.0 < 0.9.0 ;
3
3
4
- import {SafeStorage } from "../libraries/SafeStorage .sol " ;
5
- import {ISafe } from "../interfaces/ISafe .sol " ;
4
+ import {ISafe } from "./../interfaces/ISafe .sol " ;
5
+ import {SafeStorage } from "./../libraries/SafeStorage .sol " ;
6
6
7
7
/**
8
8
* @title Migration Contract for Safe Upgrade
Original file line number Diff line number Diff line change 2
2
/* solhint-disable one-contract-per-file */
3
3
pragma solidity >= 0.7.0 < 0.9.0 ;
4
4
5
- import {SafeStorage } from "../libraries/SafeStorage .sol " ;
6
- import {Enum} from "../libraries/Enum.sol " ;
7
- import {ISafe } from "../interfaces/ISafe .sol " ;
5
+ import {ISafe } from "./../interfaces/ISafe .sol " ;
6
+ import {Enum} from "./. ./libraries/Enum.sol " ;
7
+ import {SafeStorage } from "./../libraries/SafeStorage .sol " ;
8
8
9
9
/**
10
10
* @title Migration Contract for updating a Safe from 1.1.1/1.3.0/1.4.1 versions to a L2 version. Useful when replaying a Safe from a non L2 network in a L2 network.
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: LGPL-3.0-only
2
2
pragma solidity >= 0.7.0 < 0.9.0 ;
3
3
4
+ import {ISafe} from "./../interfaces/ISafe.sol " ;
4
5
import {SafeStorage} from "./SafeStorage.sol " ;
5
- import {ISafe} from "../interfaces/ISafe.sol " ;
6
6
7
7
/**
8
8
* @title SignMessageLib - Allows to sign messages on-chain by writing the signed message hashes on-chain.
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: LGPL-3.0-only
2
2
pragma solidity >= 0.7.0 < 0.9.0 ;
3
3
4
- import {SafeProxy} from "./SafeProxy.sol " ;
5
4
import {IProxyCreationCallback} from "./IProxyCreationCallback.sol " ;
5
+ import {SafeProxy} from "./SafeProxy.sol " ;
6
6
7
7
/**
8
8
* @title Proxy Factory - Allows to create a new proxy contract and execute a message call to the new proxy within one transaction.
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: LGPL-3.0-only
2
2
pragma solidity >= 0.7.0 < 0.9.0 ;
3
3
4
- import {ERC1155TokenReceiver } from "../interfaces/ERC1155TokenReceiver .sol " ;
5
- import {SafeMath } from "../external/SafeMath .sol " ;
4
+ import {SafeMath } from "./../external/SafeMath .sol " ;
5
+ import {ERC1155TokenReceiver } from "./../interfaces/ERC1155TokenReceiver .sol " ;
6
6
7
7
/**
8
8
* @title ERC1155Token - A test ERC1155 token contract
Original file line number Diff line number Diff line change 3
3
pragma solidity >= 0.7.0 < 0.9.0 ;
4
4
5
5
// Import the contract so hardhat compiles it, and we have the ABI available
6
- // solhint-disable-next-line no-unused-import
7
- import {MockContract} from "@safe-global/mock-contract/contracts/MockContract.sol " ;
8
- // solhint-disable-next-line no-unused-import
6
+ // solhint-disable no-unused-import
9
7
import {UpgradeableProxy} from "@openzeppelin/contracts/proxy/UpgradeableProxy.sol " ;
8
+ import {MockContract} from "@safe-global/mock-contract/contracts/MockContract.sol " ;
Original file line number Diff line number Diff line change 27
27
"deploy-all" : " hardhat deploy-contracts --network" ,
28
28
"deploy" : " hardhat deploy --network" ,
29
29
"lint" : " npm run lint:sol && npm run lint:ts" ,
30
+ "lint:fix" : " npm run lint:sol:fix && npm run lint:ts:fix" ,
30
31
"lint:sol" : " solhint 'contracts/**/*.sol'" ,
32
+ "lint:sol:fix" : " solhint --fix 'contracts/**/*.sol'" ,
31
33
"lint:sol:prettier" : " prettier 'contracts/**/*.sol' --list-different" ,
32
- "lint:ts" : " eslint 'src/**/*.ts' 'test/**/*.ts' --fix" ,
34
+ "lint:ts" : " eslint 'src/**/*.ts' 'test/**/*.ts'" ,
35
+ "lint:ts:fix" : " eslint 'src/**/*.ts' 'test/**/*.ts' --fix" ,
33
36
"lint:ts:prettier" : " prettier 'src/**/*.ts' 'test/**/*.ts' --list-different" ,
34
37
"fmt" : " npm run fmt:sol && npm run fmt:ts" ,
35
38
"fmt:sol" : " prettier 'contracts/**/*.sol' -w" ,
You can’t perform that action at this time.
0 commit comments