Skip to content

Abstract developer interfaces to the Dai Stablecoin System core contracts.

License

Notifications You must be signed in to change notification settings

Mimir-Solutions/dss-interfaces

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Provides programmatic interfaces for the Dai Stablecoin System core contracts.

Import all DSS abstract contracts

import "dss-interfaces/Interfaces.sol";

Import multiple contracts

import { VatAbstract, VowAbstract } from "dss-interfaces/Interfaces.sol";

Import individual contracts

import "lib/dss-interfaces/src/dss/VatAbstract.sol";

Example Usage

import { VatAbstract } from "./Interfaces.sol";

pragma solidity >=0.5.12;

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:

> npm login
> npm publish

The published package will include all the files inside src.

About

Abstract developer interfaces to the Dai Stablecoin System core contracts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 100.0%