Skip to content

Commit

Permalink
add interface
Browse files Browse the repository at this point in the history
  • Loading branch information
hexonaut committed Jan 15, 2023
1 parent a773f18 commit e6f8cfa
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions src/ISavingsDai.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity >=0.8.0;

interface ISavingsDai {
function totalSupply() external view returns (uint256);
function balanceOf(address) external view returns (uint256);
function allowance(address, address) external view returns (uint256);
function approve(address, uint256) external returns (bool);
function transfer(address, uint256) external returns (bool);
function transferFrom(address, address, uint256) external returns (bool);
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function version() external view returns (string memory);
function decimals() external view returns (uint8);
function deploymentChainId() external view returns (uint256);
function PERMIT_TYPEHASH() external view returns (bytes32);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function nonces(address) external view returns (uint256);
function vat() external view returns (address);
function daiJoin() external view returns (address);
function dai() external view returns (address);
function pot() external view returns (address);
function increaseAllowance(address, uint256) external returns (bool);
function decreaseAllowance(address, uint256) external returns (bool);
function asset() external view returns (address);
function totalAssets() external view returns (uint256);
function convertToShares(uint256) external view returns (uint256);
function convertToAssets(uint256) external view returns (uint256);
function maxDeposit(address) external view returns (uint256);
function previewDeposit(uint256) external view returns (uint256);
function deposit(uint256, address) external returns (uint256);
function maxMint(address) external view returns (uint256);
function previewMint(uint256) external view returns (uint256);
function mint(uint256, address) external returns (uint256);
function maxWithdraw(address) external view returns (uint256);
function previewWithdraw(uint256) external view returns (uint256);
function withdraw(uint256, address, address) external returns (uint256);
function maxRedeem(address) external view returns (uint256);
function previewRedeem(uint256) external view returns (uint256);
function redeem(uint256, address, address) external returns (uint256);
function permit(address, address, uint256, uint256, bytes memory) external;
function permit(address, address, uint256, uint256, uint8, bytes32, bytes32) external;
}

0 comments on commit e6f8cfa

Please sign in to comment.