Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Latest commit

 

History

History
45 lines (30 loc) · 1.6 KB

README.md

File metadata and controls

45 lines (30 loc) · 1.6 KB

dss-chain-log

Build Status

An auth-managed on-chain changelog for the MCD system

Usage

Contract Address: 0xdA0Ab1e0017DEbCd72Be8599041a2aa3bA7e740F

Public functions

  • list()(bytes32[] memory): return all of the keys in the changelog
  • getAddress(bytes32)(address): for a given key, return the address
  • count()(uint256): return the number of keys in the changelog
  • get(uint256)(bytes32,address): return the key and address of an item in the array
  • version()(string): Returns a version for the changelog (if set)
  • wards(address)(uint256): 0 if address is not a ward, 1 if it is.

Auth functions

  • rely(address)/deny(address): add and remove authorization
  • setAddress(bytes32,address): add or update a key/address pair
  • removeAddress(bytes32): remove a key (warning: this can shuffle the array)
  • setVersion(string memory): set the version of the current changelog

Development

Requirements

Testing

$ dapp update
$ make test