-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
41 additions
and
3,095 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.19; | ||
pragma solidity =0.8.19; | ||
|
||
import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; | ||
import {Ownable2StepUpgradeable} from "@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol"; | ||
|
@@ -14,7 +14,6 @@ import "account-abstraction/core/Helpers.sol" as Helpers; | |
|
||
/** | ||
* @title BaseOpenfortAccount (Non-upgradeable) | ||
* @author Eloi<[email protected]> | ||
* @notice Minimal smart contract wallet with session keys following the ERC-4337 standard. | ||
* It inherits from: | ||
* - BaseAccount to comply with ERC-4337 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.19; | ||
pragma solidity =0.8.19; | ||
|
||
import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; | ||
import {ECDSAUpgradeable} from "@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol"; | ||
|
@@ -16,7 +16,6 @@ import "account-abstraction/core/Helpers.sol" as Helpers; | |
|
||
/** | ||
* @title EIP6551OpenfortAccount (Non-upgradeable) | ||
* @author Eloi<[email protected]> | ||
* @notice Smart contract wallet with session keys following the ERC-4337 and EIP-6551 standards. | ||
* It inherits from: | ||
* - BaseAccount to comply with ERC-4337 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.19; | ||
pragma solidity =0.8.19; | ||
|
||
// Base account contract to inherit from and EntryPoint interface | ||
import {BaseOpenfortAccount, IEntryPoint} from "../BaseOpenfortAccount.sol"; | ||
|
||
/** | ||
* @title ManagedOpenfortAccount (Upgradeable via Beacon) | ||
* @author Eloi<[email protected]> | ||
* @notice Smart contract wallet managed via Beacon with session keys following the ERC-4337 standard. | ||
* It inherits from: | ||
* - BaseOpenfortAccount | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.19; | ||
pragma solidity =0.8.19; | ||
|
||
import {Create2} from "@openzeppelin/contracts/utils/Create2.sol"; | ||
import {UpgradeableBeacon} from "@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol"; | ||
|
@@ -14,7 +14,6 @@ import {IEntryPoint} from "account-abstraction/interfaces/IEntryPoint.sol"; | |
|
||
/** | ||
* @title ManagedOpenfortFactory (Non-upgradeable) | ||
* @author Eloi<[email protected]> | ||
* @notice Contract to create an on-chain factory to deploy new ManagedOpenfortAccounts. | ||
* It uses OpenZeppelin's Create2 and OpenfortBeaconProxy libraries. | ||
* It inherits from: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.19; | ||
pragma solidity =0.8.19; | ||
|
||
import {BeaconProxy} from "@openzeppelin/contracts/proxy/beacon/BeaconProxy.sol"; | ||
|
||
/** | ||
* @title OpenfortBeaconProxy (Non-upgradeable) | ||
* @author Eloi<[email protected]> | ||
* @notice Contract to create the Beacon to determine implementation contract, which is where they will delegate all function calls. | ||
* It inherits from: | ||
* - BeaconProxy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.19; | ||
pragma solidity =0.8.19; | ||
|
||
import {ERC1967Proxy} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol"; | ||
|
||
/** | ||
* @title OpenfortRecoverableProxy | ||
* @author Eloi<[email protected]> | ||
* @notice Contract to create the proxies | ||
* It inherits from: | ||
* - ERC1967Proxy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.19; | ||
pragma solidity =0.8.19; | ||
|
||
// Base account contract to inherit from and EntryPoint interface | ||
import {BaseOpenfortAccount, IEntryPoint, SafeCastUpgradeable, ECDSAUpgradeable} from "../BaseOpenfortAccount.sol"; | ||
|
@@ -8,7 +8,6 @@ import {Math} from "@openzeppelin/contracts/utils/math/Math.sol"; | |
|
||
/** | ||
* @title RecoverableOpenfortAccount | ||
* @author Eloi<[email protected]> | ||
* @notice Openfort account with session keys, guardians and pausability following the ERC-4337 standard. | ||
* It inherits from: | ||
* - BaseOpenfortAccount | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.19; | ||
pragma solidity =0.8.19; | ||
|
||
import {Create2} from "@openzeppelin/contracts/utils/Create2.sol"; | ||
// Smart wallet implementation to use | ||
|
@@ -10,7 +10,6 @@ import {IBaseOpenfortFactory} from "../../interfaces/IBaseOpenfortFactory.sol"; | |
|
||
/** | ||
* @title RecoverableOpenfortFactory (Non-upgradeable) | ||
* @author Eloi<[email protected]> | ||
* @notice Contract to create an on-chain factory to deploy new RecoverableOpenfortAccounts. | ||
* It uses OpenZeppelin's Create2 and OpenfortRecoverableProxy libraries. | ||
* It inherits from: | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.19; | ||
pragma solidity =0.8.19; | ||
|
||
import {ERC1967Proxy} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol"; | ||
|
||
/** | ||
* @title OpenfortUpgradeableProxy (Non-upgradeable) | ||
* @author Eloi<[email protected]> | ||
* @notice Contract to create the proxies | ||
* It inherits from: | ||
* - ERC1967Proxy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.19; | ||
pragma solidity =0.8.19; | ||
|
||
// Base account contract to inherit from and EntryPoint interface | ||
import {BaseOpenfortAccount, IEntryPoint} from "../BaseOpenfortAccount.sol"; | ||
import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol"; | ||
|
||
/** | ||
* @title UpgradeableOpenfortAccount | ||
* @author Eloi<[email protected]> | ||
* @notice Minimal smart contract wallet with session keys following the ERC-4337 standard. | ||
* It inherits from: | ||
* - BaseOpenfortAccount | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.19; | ||
pragma solidity =0.8.19; | ||
|
||
import {Create2} from "@openzeppelin/contracts/utils/Create2.sol"; | ||
// Smart wallet implementation to use | ||
|
@@ -10,7 +10,6 @@ import {IBaseOpenfortFactory} from "../../interfaces/IBaseOpenfortFactory.sol"; | |
|
||
/** | ||
* @title UpgradeableOpenfortFactory (Non-upgradeable) | ||
* @author Eloi<[email protected]> | ||
* @notice Contract to create an on-chain factory to deploy new UpgradeableOpenfortAccounts. | ||
* It uses OpenZeppelin's Create2 and OpenfortUpgradeableProxy libraries. | ||
* It inherits from: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.19; | ||
pragma solidity =0.8.19; | ||
|
||
// Base account contract to inherit from | ||
import {BaseOpenfortAccount, IEntryPoint} from "../core/BaseOpenfortAccount.sol"; | ||
|
||
/** | ||
* @title ManagedOpenfortAccount (Upgradeable via Beacon) | ||
* @author Eloi<[email protected]> | ||
* @notice Smart contract wallet managed via Beacon with session keys following the ERC-4337 standard. | ||
* It inherits from: | ||
* - BaseOpenfortAccount | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.19; | ||
pragma solidity =0.8.19; | ||
|
||
// Base account contract to inherit from | ||
import {BaseOpenfortAccount, IEntryPoint} from "../core/BaseOpenfortAccount.sol"; | ||
import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol"; | ||
|
||
/** | ||
* @title MockedV2UpgradeableOpenfortAccount | ||
* @author Eloi<[email protected]> | ||
* @notice Minimal smart contract wallet with session keys following the ERC-4337 standard. | ||
* It inherits from: | ||
* - BaseOpenfortAccount | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.