-
Notifications
You must be signed in to change notification settings - Fork 6
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
17 changed files
with
558 additions
and
74 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@enzymefinance/environment": minor | ||
"@enzymefinance/abis": minor | ||
"@enzymefinance/sdk": minor | ||
--- | ||
|
||
Add StaderWithdrawals |
129 changes: 129 additions & 0 deletions
129
packages/abis/abis/IStaderWithdrawalsPositionLib.abi.json
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,129 @@ | ||
[ | ||
{ | ||
"type": "constructor", | ||
"inputs": [ | ||
{ | ||
"name": "_userWithdrawalManagerAddress", | ||
"type": "address", | ||
"internalType": "address" | ||
}, | ||
{ | ||
"name": "_ethxAddress", | ||
"type": "address", | ||
"internalType": "address" | ||
}, | ||
{ | ||
"name": "_wethAddress", | ||
"type": "address", | ||
"internalType": "address" | ||
} | ||
], | ||
"stateMutability": "nonpayable" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "ETHX_ADDRESS", | ||
"inputs": [], | ||
"outputs": [ | ||
{ | ||
"name": "", | ||
"type": "address", | ||
"internalType": "address" | ||
} | ||
], | ||
"stateMutability": "view" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "USER_WITHDRAWAL_MANAGER", | ||
"inputs": [], | ||
"outputs": [ | ||
{ | ||
"name": "", | ||
"type": "address", | ||
"internalType": "contract IStaderUserWithdrawalManager" | ||
} | ||
], | ||
"stateMutability": "view" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "WETH_ADDRESS", | ||
"inputs": [], | ||
"outputs": [ | ||
{ | ||
"name": "", | ||
"type": "address", | ||
"internalType": "address" | ||
} | ||
], | ||
"stateMutability": "view" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "getDebtAssets", | ||
"inputs": [], | ||
"outputs": [ | ||
{ | ||
"name": "assets_", | ||
"type": "address[]", | ||
"internalType": "address[]" | ||
}, | ||
{ | ||
"name": "amounts_", | ||
"type": "uint256[]", | ||
"internalType": "uint256[]" | ||
} | ||
], | ||
"stateMutability": "pure" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "getManagedAssets", | ||
"inputs": [], | ||
"outputs": [ | ||
{ | ||
"name": "assets_", | ||
"type": "address[]", | ||
"internalType": "address[]" | ||
}, | ||
{ | ||
"name": "amounts_", | ||
"type": "uint256[]", | ||
"internalType": "uint256[]" | ||
} | ||
], | ||
"stateMutability": "view" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "init", | ||
"inputs": [ | ||
{ | ||
"name": "", | ||
"type": "bytes", | ||
"internalType": "bytes" | ||
} | ||
], | ||
"outputs": [], | ||
"stateMutability": "nonpayable" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "receiveCallFromVault", | ||
"inputs": [ | ||
{ | ||
"name": "_actionData", | ||
"type": "bytes", | ||
"internalType": "bytes" | ||
} | ||
], | ||
"outputs": [], | ||
"stateMutability": "nonpayable" | ||
}, | ||
{ | ||
"type": "error", | ||
"name": "StaderWithdrawalsPositionLib__ReceiveCallFromVault__InvalidActionId", | ||
"inputs": [] | ||
} | ||
] |
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,14 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity >=0.6.0 <0.9.0; | ||
|
||
interface IStaderWithdrawalsPositionLib { | ||
error StaderWithdrawalsPositionLib__ReceiveCallFromVault__InvalidActionId(); | ||
|
||
function ETHX_ADDRESS() external view returns (address); | ||
function USER_WITHDRAWAL_MANAGER() external view returns (address); | ||
function WETH_ADDRESS() external view returns (address); | ||
function getDebtAssets() external pure returns (address[] memory assets_, uint256[] memory amounts_); | ||
function getManagedAssets() external view returns (address[] memory assets_, uint256[] memory amounts_); | ||
function init(bytes memory) external; | ||
function receiveCallFromVault(bytes memory _actionData) 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,129 @@ | ||
export const IStaderWithdrawalsPositionLib = [ | ||
{ | ||
type: "constructor", | ||
inputs: [ | ||
{ | ||
name: "_userWithdrawalManagerAddress", | ||
type: "address", | ||
internalType: "address", | ||
}, | ||
{ | ||
name: "_ethxAddress", | ||
type: "address", | ||
internalType: "address", | ||
}, | ||
{ | ||
name: "_wethAddress", | ||
type: "address", | ||
internalType: "address", | ||
}, | ||
], | ||
stateMutability: "nonpayable", | ||
}, | ||
{ | ||
type: "function", | ||
name: "ETHX_ADDRESS", | ||
inputs: [], | ||
outputs: [ | ||
{ | ||
name: "", | ||
type: "address", | ||
internalType: "address", | ||
}, | ||
], | ||
stateMutability: "view", | ||
}, | ||
{ | ||
type: "function", | ||
name: "USER_WITHDRAWAL_MANAGER", | ||
inputs: [], | ||
outputs: [ | ||
{ | ||
name: "", | ||
type: "address", | ||
internalType: "contract IStaderUserWithdrawalManager", | ||
}, | ||
], | ||
stateMutability: "view", | ||
}, | ||
{ | ||
type: "function", | ||
name: "WETH_ADDRESS", | ||
inputs: [], | ||
outputs: [ | ||
{ | ||
name: "", | ||
type: "address", | ||
internalType: "address", | ||
}, | ||
], | ||
stateMutability: "view", | ||
}, | ||
{ | ||
type: "function", | ||
name: "getDebtAssets", | ||
inputs: [], | ||
outputs: [ | ||
{ | ||
name: "assets_", | ||
type: "address[]", | ||
internalType: "address[]", | ||
}, | ||
{ | ||
name: "amounts_", | ||
type: "uint256[]", | ||
internalType: "uint256[]", | ||
}, | ||
], | ||
stateMutability: "pure", | ||
}, | ||
{ | ||
type: "function", | ||
name: "getManagedAssets", | ||
inputs: [], | ||
outputs: [ | ||
{ | ||
name: "assets_", | ||
type: "address[]", | ||
internalType: "address[]", | ||
}, | ||
{ | ||
name: "amounts_", | ||
type: "uint256[]", | ||
internalType: "uint256[]", | ||
}, | ||
], | ||
stateMutability: "view", | ||
}, | ||
{ | ||
type: "function", | ||
name: "init", | ||
inputs: [ | ||
{ | ||
name: "", | ||
type: "bytes", | ||
internalType: "bytes", | ||
}, | ||
], | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
}, | ||
{ | ||
type: "function", | ||
name: "receiveCallFromVault", | ||
inputs: [ | ||
{ | ||
name: "_actionData", | ||
type: "bytes", | ||
internalType: "bytes", | ||
}, | ||
], | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
}, | ||
{ | ||
type: "error", | ||
name: "StaderWithdrawalsPositionLib__ReceiveCallFromVault__InvalidActionId", | ||
inputs: [], | ||
}, | ||
] as const; |
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
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.