Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/makerdao/dss-interfaces
Abstract developer interfaces to the Dai Stablecoin System core contracts.
https://github.com/makerdao/dss-interfaces
Last synced: about 2 months ago
JSON representation
Abstract developer interfaces to the Dai Stablecoin System core contracts.
- Host: GitHub
- URL: https://github.com/makerdao/dss-interfaces
- Owner: makerdao
- License: agpl-3.0
- Created: 2019-11-27T23:30:13.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-29T16:42:49.000Z (over 1 year ago)
- Last Synced: 2024-11-03T15:03:55.440Z (2 months ago)
- Language: Solidity
- Size: 190 KB
- Stars: 33
- Watchers: 16
- Forks: 25
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Provides programmatic interfaces for the Dai Stablecoin System core contracts.
Import individual contracts
```solidity
import { VatAbstract } from "dss-interfaces/dss/VatAbstract.sol";
```Import all DSS abstract contracts (best used in tests)
```solidity
import "dss-interfaces/Interfaces.sol";
```## Example Usage
```solidity
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity >=0.5.12;import { VatAbstract } from "dss-interfaces/dss/VatAbstract.sol";
contract Testerface {
VatAbstract _vat;
constructor() public {
_vat = VatAbstract(0xbA987bDB501d131f766fEe8180Da5d81b34b69d9);
}function viewDebt() public view returns (uint256) {
return _vat.debt();
}
}
```## Package Update
Update the `version` field in `package.json` and from the command line run:
```bash
> npm login
> npm publish
```The published package will include all the files inside `src`.