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

init QWManager setup #3

Merged
merged 32 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
a390366
chore: rmv precommit check for build
sanchaymittal May 13, 2024
9f03df2
chore: cleanup of default contracts
sanchaymittal May 13, 2024
f0c6f07
feat: init qwmanager setup
sanchaymittal May 13, 2024
49afd31
implement guardian, wing, manager
jakekidd May 13, 2024
17ac28c
add user wallet
jakekidd May 13, 2024
6dfe19c
fix user wallet issues
jakekidd May 13, 2024
6f9a60e
flesh out meta transactions
jakekidd May 13, 2024
bda01eb
forge imports -> oz imports
jakekidd May 13, 2024
8c5df91
chore: rmv qwUserWallet.sol
sanchaymittal May 14, 2024
6723cfd
chore: disable qw node contracts
sanchaymittal May 14, 2024
90c6a51
chore: disale pre-commit check
sanchaymittal May 14, 2024
6e9be78
chore: disale pre-commit check update
sanchaymittal May 14, 2024
3594695
chore: rmv qw nodes contract ref from manager
sanchaymittal May 14, 2024
bd46deb
chore: rmv test contracts
sanchaymittal May 14, 2024
4e04897
feat: qw intergration child contract
sanchaymittal May 14, 2024
c9d13d0
feat: qwregistry contract
sanchaymittal May 14, 2024
4cb722e
fix: qwmanager interface
sanchaymittal May 14, 2024
ff8f61e
feat: qwregistry interface
sanchaymittal May 14, 2024
3146fc2
fix: qwmanager contract
sanchaymittal May 14, 2024
29c3308
fix: deployment for build pass
sanchaymittal May 14, 2024
5bed9c8
chore: renaming variable
sanchaymittal May 14, 2024
c867f3a
fix: execute func
sanchaymittal May 14, 2024
951dbba
fix: lint
sanchaymittal May 14, 2024
f3b1e2f
chore: add view functions
sanchaymittal May 14, 2024
ee4b512
chore: add aave packages
sanchaymittal May 14, 2024
6ab24ca
chore: add oppenzeppelin packages
sanchaymittal May 14, 2024
85c6342
feat: update qwchild interface
sanchaymittal May 14, 2024
b3a85f0
feat: aave integration qwchild
sanchaymittal May 14, 2024
1abc21b
feat: update qwmanager implementation
sanchaymittal May 14, 2024
0efa4d3
fix: lint fixes
sanchaymittal May 14, 2024
8039ce4
fix: add natspec
sanchaymittal May 14, 2024
8ae9cfe
fix: mutiple fixes and natspec updates
sanchaymittal May 14, 2024
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
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# 1. Build the contracts
# 2. Stage build output
# 2. Lint and stage style improvements
yarn build && npx lint-staged
npx lint-staged
59 changes: 0 additions & 59 deletions src/contracts/Greeter.sol

This file was deleted.

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 {}
74 changes: 0 additions & 74 deletions src/interfaces/IGreeter.sol

This file was deleted.

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;
sanchaymittal marked this conversation as resolved.
Show resolved Hide resolved

/**
* @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
jakekidd marked this conversation as resolved.
Show resolved Hide resolved
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;
}
Loading