Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/makerdao/dss-chain-log
Simple way to track the mcd changelog on-chain.
https://github.com/makerdao/dss-chain-log
Last synced: 3 months ago
JSON representation
Simple way to track the mcd changelog on-chain.
- Host: GitHub
- URL: https://github.com/makerdao/dss-chain-log
- Owner: makerdao
- License: agpl-3.0
- Created: 2020-09-16T19:36:24.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-15T21:55:12.000Z (over 1 year ago)
- Last Synced: 2024-04-06T09:33:32.195Z (7 months ago)
- Language: Solidity
- Size: 34.2 KB
- Stars: 13
- Watchers: 11
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-smart-contract-development - DSS ChainLog
- awesome-dapptools - DSS Chain-Log
README
# dss-chain-log
![Build Status](https://github.com/makerdao/dss-chain-log/actions/workflows/.github/workflows/tests.yaml/badge.svg?branch=master)An auth-managed on-chain changelog for the MCD system
## Usage
Contract Address: `0xdA0Ab1e0017DEbCd72Be8599041a2aa3bA7e740F`
* [Mainnet](https://etherscan.io/address/0xda0ab1e0017debcd72be8599041a2aa3ba7e740f#code)
* [Kovan](https://kovan.etherscan.io/address/0xda0ab1e0017debcd72be8599041a2aa3ba7e740f#code)
* [Goerli](https://goerli.etherscan.io/address/0xda0ab1e0017debcd72be8599041a2aa3ba7e740f#code)
* [Rinkeby](https://rinkeby.etherscan.io/address/0xda0ab1e0017debcd72be8599041a2aa3ba7e740f#code)
* [Ropsten](https://ropsten.etherscan.io/address/0xda0ab1e0017debcd72be8599041a2aa3ba7e740f#code)### 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
* [Dapptools](https://github.com/dapphub/dapptools)
### Testing
```
$ dapp update
$ make test
```