Skip to content

Commit

Permalink
feat: init qwmanager setup
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchaymittal committed May 13, 2024
1 parent 9f03df2 commit f0c6f07
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/contracts/QWManager.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

import {IERC20} from 'forge-std/interfaces/IERC20.sol';
import {IQWManager} from 'interfaces/IQWManager.sol';

contract QWManager is IQWManager {}
22 changes: 22 additions & 0 deletions src/interfaces/IQWIChild.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

/**
* @title Interface for Quant Wealth Integration Contract
* @author Quant Wealth
* @notice ...
*/
interface IQWIChild {
/*///////////////////////////////////////////////////////////////
EVENTS
//////////////////////////////////////////////////////////////*/
/*///////////////////////////////////////////////////////////////
ERRORS
//////////////////////////////////////////////////////////////*/
/*///////////////////////////////////////////////////////////////
VARIABLES
//////////////////////////////////////////////////////////////*/
/*///////////////////////////////////////////////////////////////
FUNCTIONS
//////////////////////////////////////////////////////////////*/
}
54 changes: 54 additions & 0 deletions src/interfaces/IQWManger.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

/**
* @title Quant Wealth Manager Contract
* @author quantwealth
* @notice TODO: Add a description
*/
interface IQWManager {
/*///////////////////////////////////////////////////////////////
EVENTS
//////////////////////////////////////////////////////////////*/

/*///////////////////////////////////////////////////////////////
ERRORS
//////////////////////////////////////////////////////////////*/
/*///////////////////////////////////////////////////////////////
VARIABLES
//////////////////////////////////////////////////////////////*/

/*///////////////////////////////////////////////////////////////
FUNCTIONS
//////////////////////////////////////////////////////////////*/
/**
* @notice ...
* @dev Only callable by the wing
* @param _targetQwi ...
* @param _callData ...
* @param _tokenAddress ...
* @param _amount ...
*/
function execute(
address[] memory _targetQwi,
bytes[] memory _callData,
address[] memory _tokenAddress,
uint256[] _amount
) external;

/**
* @notice ...
* @dev Only callable by the wing
* @param _targetQwi ...
* @param _callData ...
*/
function close(address[] memory _targetQwi, bytes[] memory _callData) external;

/**
* @notice ...
* @dev Only callable by the wing
* @param _targetQwi ...
* @param _callData ...
*/
function withdraw(address user, uint256 amount) external;
}

0 comments on commit f0c6f07

Please sign in to comment.