Skip to content

Simple way to track the mcd changelog on-chain.

License

Notifications You must be signed in to change notification settings

amusingaxl/dss-chain-log

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple way to track the mcd changelog on-chain.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 85.2%
  • Shell 8.9%
  • Makefile 3.4%
  • Nix 2.5%