Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💡 flag contracts as unaudited #94

Merged
merged 1 commit into from
Apr 18, 2024
Merged
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
1 change: 1 addition & 0 deletions src/v1/Account/SmartAccount.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { Initializable } from "@openzeppelin/proxy/utils/Initializable.sol";
import { UUPSUpgradeable } from "@openzeppelin/proxy/utils/UUPSUpgradeable.sol";
import { IWebAuthn256r1 } from "@webauthn/IWebAuthn256r1.sol";
import { UV_FLAG_MASK } from "@webauthn/utils.sol";

Check warning on line 10 in src/v1/Account/SmartAccount.sol

View workflow job for this annotation

GitHub Actions / lint

imported name UV_FLAG_MASK is not used

Check warning on line 10 in src/v1/Account/SmartAccount.sol

View workflow job for this annotation

GitHub Actions / lint

imported name UV_FLAG_MASK is not used
import { SignerVaultWebAuthnP256R1 } from "src/utils/SignerVaultWebAuthnP256R1.sol";
import { AccountFactory } from "src/v1/AccountFactory.sol";
import "src/utils/Signature.sol" as Signature;
Expand All @@ -15,6 +15,7 @@
import { SmartAccountTokensSupport } from "src/v1/Account/SmartAccountTokensSupport.sol";
import { SmartAccountEIP1271 } from "src/v1/Account/SmartAccountEIP1271.sol";

/// @custom:experimental This contract is unaudited yet
contract SmartAccount is Initializable, UUPSUpgradeable, BaseAccount, SmartAccountTokensSupport, SmartAccountEIP1271 {
// ======================================
// ============= CONSTANTS ==============
Expand Down Expand Up @@ -371,7 +372,7 @@
}

/// @notice authorize account upgrade to a new implementation if the caller is the account itself
function _authorizeUpgrade(address) internal virtual override onlySelf { }

Check warning on line 375 in src/v1/Account/SmartAccount.sol

View workflow job for this annotation

GitHub Actions / lint

Code contains empty blocks

Check warning on line 375 in src/v1/Account/SmartAccount.sol

View workflow job for this annotation

GitHub Actions / lint

Code contains empty blocks

// ======================================
// === EXTERNAL ENTRYPOINT FUNCTIONS ====
Expand Down
1 change: 1 addition & 0 deletions src/v1/Account/SmartAccountEIP1271.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { SignerVaultWebAuthnP256R1 } from "src/utils/SignerVaultWebAuthnP256R1.s
bytes4 constant EIP1271_VALIDATION_SUCCESS = 0x1626ba7e;
bytes4 constant EIP1271_VALIDATION_FAILURE = 0xffffffff;

/// @custom:experimental This contract is unaudited yet
abstract contract SmartAccountEIP1271 {
function webauthn256R1Verifier() internal view virtual returns (IWebAuthn256r1);

Expand Down
1 change: 1 addition & 0 deletions src/v1/Account/SmartAccountTokensSupport.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { IERC165 } from "@openzeppelin/utils/introspection/IERC165.sol";

/// @title ERC721Support
/// @notice Indicate the contract supports ERC721 token transfer
/// @custom:experimental This contract is unaudited yet
contract ERC721Support is IERC721Receiver {
/// @notice Indicate that the contract supports ERC721 token transfer
/// @param {operator} The address which called `safeTransferFrom` function
Expand Down
1 change: 1 addition & 0 deletions src/v1/AccountFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import "src/utils/Signature.sol" as Signature;
/// signed by the operator. The message is the keccak256 hash of the login of the account.
/// As the address of the account is already dependant of the address of the factory, we do not need to
/// include it in the signature.
/// @custom:experimental This contract is unaudited yet
contract AccountFactory {
// ==============================
// ========= CONSTANT ===========
Expand Down
1 change: 1 addition & 0 deletions src/v1/Paymaster.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity >=0.8.20 <0.9.0;

import { BasePaymaster, Ownable } from "@eth-infinitism/core/BasePaymaster.sol";

Check warning on line 4 in src/v1/Paymaster.sol

View workflow job for this annotation

GitHub Actions / lint

imported name Ownable is not used

Check warning on line 4 in src/v1/Paymaster.sol

View workflow job for this annotation

GitHub Actions / lint

imported name Ownable is not used
import { UserOperation } from "@eth-infinitism/interfaces/UserOperation.sol";
import { IEntryPoint } from "@eth-infinitism/interfaces/IEntryPoint.sol";
import "src/utils/Signature.sol" as Signature;
Expand All @@ -21,6 +21,7 @@
/// - This contract is not upgradeable
/// - The signature includes the sender, nonce, chainId, the address of this contract and the callData to prevent
/// replay attacks
/// @custom:experimental This contract is unaudited yet
contract Paymaster is BasePaymaster {
// ==============================
// =========== STATE ============
Expand Down
Loading