You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

dss-interfaces

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dss-interfaces

MakerDAO solidity interfaces

0.1.1
latest
Source
npmnpm
Version published
Weekly downloads
160
-50.46%
Maintainers
1
Weekly downloads
 
Created
Source

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();
    }
}

FAQs

Package last updated on 03 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts