mirror of
https://github.com/placeholder-soft/tokenbound.git
synced 2026-01-12 22:44:58 +08:00
* moved to custom proxy implementation, added example for locked vault * Removed lock implementation using module * Moved to MinimalProxyStore + execution module pattern * Removed MinimalReceiver * Added natspec to MinimalProxyStore * Cleaned up imports and modified contract natspec * Improved natspec docs * Added test for minimal proxy store reverts * Cleaned up tests * Added test for custom execution module
24 lines
597 B
Solidity
24 lines
597 B
Solidity
// SPDX-License-Identifier: UNLICENSED
|
|
pragma solidity ^0.8.13;
|
|
|
|
import "openzeppelin-contracts/interfaces/IERC1271.sol";
|
|
import "../../src/interfaces/IExecutionModule.sol";
|
|
|
|
contract MockExecutionModule is IExecutionModule {
|
|
function isAuthorized(address) external pure returns (bool) {
|
|
return true;
|
|
}
|
|
|
|
function isValidSignature(bytes32, bytes memory)
|
|
external
|
|
pure
|
|
returns (bytes4 magicValue)
|
|
{
|
|
return IERC1271.isValidSignature.selector;
|
|
}
|
|
|
|
function customFunction() external pure returns (uint256) {
|
|
return 12345;
|
|
}
|
|
}
|