GithubHelp home page GithubHelp logo

isabella232 / ilk-registry Goto Github PK

View Code? Open in Web Editor NEW

This project forked from makerdao/ilk-registry

0.0 0.0 0.0 127 KB

A publicly-modifiable registry of ilks in the Dai Stablecoin System.

License: GNU Affero General Public License v3.0

Makefile 0.61% Solidity 80.02% Shell 18.73% Nix 0.65%

ilk-registry's Introduction

Ilk Registry

Build Status

A publicly-modifiable registry of ilk's in the Dai Stablecoin System.

Public addresses

Kovan: 0xc3F42deABc0C506e8Ae9356F2d4fc1505196DCDB

Goerli: 0x525FaC4CEc48a4eF2FBb0A72355B6255f8D5f79e

Mainnet: 0x5a464C28D19848f44199D003BeF5ecc87d090F87

Requirements

About

Provides an on-chain list of ilk types in the DSS system.

Useful for external contracts or web frontends which need to iterate over the on-chain ilk types and/or access information about a particular ilk.

  • Modify the registry

    • add(address joinAdapter): Add a new ilk to the registry by passing the Join Adapter address. The adapter must be live on mainnet and can not already be included in the registry.
    • remove(bytes32 ilk): Remove an ilk from the registry if it's adapter has been caged.
    • update(bytes32 ilk): Update the flip and pip contracts in storage for a given ilk.
  • Get information from the registry

    • list(): return a bytes32[] of available ilk types.
    • list(uint256 start, uint256 end): returns a bytes32[] of a portion of the complete list.
    • get(uint256 pos): get the bytes32 ilk type from an indexed position in the array.
    • info(bytes32 ilk): return information about an ilk
      • name: token name (string)
      • symbol: token symbol (string)
      • dec: token decimals (uint256)
      • gem: token address
      • pip: price feed
      • join: token join adapter
      • flip: ilk flipper
    • count(): return number of ilks as uint256
    • pos(bytes32 ilk): the location in the ilks array for this ilk
    • gem(bytes32 ilk): the address of the ilk's token contract
    • pip(bytes32 ilk): the address of the ilk's pip contract
    • join(bytes32 ilk): the address of the ilk's join adapter
    • flip(bytes32 ilk): the address of the ilk's flipper contract
    • dec(bytes32 ilk): the number of decimals for an ilk as uint256
    • name(bytes32 ilk): the name of the token (if available) as string
    • symbol(bytes32 ilk): the token symbol (if available) as string
  • auth functions (available to MakerDAO governance)

    • file(bytes32 what, address): Update core contract values
    • file(bytes32 ilk, bytes32 what, address): Update ilk data values
    • file(bytes32 ilk, bytes32 what, uint256): Update ilk data values
    • file(bytes32 ilk, bytes32 what, string calldata): Update ilk data values
    • rely(address) and deny(address): configure auth users
    • removeAuth(bytes32 ilk): remove an uncaged ilk adapter

Testing

$ dapp update
$ make test

ilk-registry's People

Contributors

brianmcmichael avatar gbalabasquer avatar godsflaw avatar e18r avatar julienmartinlevrai avatar canokaue avatar naszam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.