generated from Mens-Ludos/solidity-template-v2
-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
c7d1351
commit 9811ce0
Showing
9 changed files
with
229 additions
and
92 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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
interface IAutomationCompatible { | ||
function checkUpkeep( | ||
bytes calldata | ||
) external view returns (bool, bytes memory); | ||
|
||
function performUpkeep(bytes calldata) external; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import "./IAutomationCompatible.sol"; | ||
|
||
interface ISmartWallet is IAutomationCompatible { | ||
struct AutoExecute { | ||
bytes32 id; | ||
address creator; | ||
address callback; | ||
bytes executeData; | ||
address executeTo; | ||
uint256 executeValue; | ||
uint256 executeAfter; | ||
} | ||
|
||
function blacklist(address to, bytes4 funcSelector) external; | ||
|
||
function removeFromBlacklist(address to, bytes4 funcSelector) external; | ||
|
||
function blacklistBatch( | ||
address[] calldata tos, | ||
bytes4[] calldata funcSelectors | ||
) external; | ||
|
||
function removeFromBlacklistBatch( | ||
address[] calldata tos, | ||
bytes4[] calldata funcSelectors | ||
) external; | ||
|
||
function addToAutoExecute( | ||
bytes32 id, | ||
address callback, | ||
bytes calldata executeData, | ||
address executeTo, | ||
uint256 executeValue, | ||
uint256 executeAfter | ||
) external; | ||
|
||
function addToAllowlistWithPermit( | ||
address addr, | ||
uint256 deadline, | ||
uint8 v, | ||
bytes32 r, | ||
bytes32 s | ||
) external; | ||
|
||
function addToAllowlist(address addr) external; | ||
|
||
function removeFromAllowlist(address addr) external; | ||
|
||
function execute( | ||
address to, | ||
uint256 callValue, | ||
bytes calldata data | ||
) external returns (bytes memory returnData); | ||
|
||
function executeBatch( | ||
address[] calldata tos, | ||
uint256[] calldata callValues, | ||
bytes[] calldata datas | ||
) external returns (bytes[] memory returnDatas); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
interface ISmartWalletFactory { | ||
struct CreateWalletParams { | ||
address owner; | ||
address allowlistOperator; | ||
address linkToken; | ||
address clRegistrar; | ||
address clRegistry; | ||
address uniswapV3Router; | ||
address wethToken; | ||
bytes wethToLinkSwapPath; | ||
} | ||
|
||
function createWallet( | ||
address owner, | ||
address allowlistOperator | ||
) external returns (address); | ||
|
||
function create2Wallet( | ||
address owner, | ||
address allowlistOperator, | ||
bytes32 salt | ||
) external returns (address); | ||
|
||
function predictCreate2Wallet(bytes32 salt) external view returns (address); | ||
|
||
function validateWallet(address wallet) external view returns (bool); | ||
} |
Oops, something went wrong.