Skip to content
A generic token-curated registry
Branch: master
Clone or download
godfreyhobbs and akuanti update truffle version fix #87
Fixes `npm install`  problem in 4.1.11
Latest commit fd70714 Sep 10, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf update config for proxy deployments to reflect v2 api Sep 17, 2018
contracts
migrations delayed exit parameters Jul 26, 2018
scripts update config for proxy deployments to reflect v2 api Sep 17, 2018
test ref: claimReward Aug 30, 2018
.eslintignore Add test coverage reporting Mar 29, 2018
.eslintrc.json Add eslint Aug 15, 2017
.gitattributes Add Solidity syntax highlighting on Github Apr 4, 2018
.gitignore
.solcover.js Fix coverage reporting Apr 6, 2018
LICENSE.txt Add license Oct 9, 2017
README.md Update README with new factory addresses. Sep 6, 2018
ethpm.json bump epm versions Aug 30, 2018
owners_manual.md Update owner's manual May 15, 2018
package-lock.json
package.json update truffle version fix #87 Nov 16, 2018
truffle.js Use function closures on provider declarations Jun 15, 2018

README.md

Token-Curated Registry

Codeship Status for skmgoldin/tcr

A hash-keyed token-curated registry (TCR). Owner's Manual available.

Mainnet factory: 0x74bd1d07a158e8a9eecfbd2267766f5919e2b21c

Rinkeby factory: 0x2bddfc0c506a00ea3a6ccea5fbbda8843377dcb1

EPM: tcr

Initialize

The only environmental dependency you need is Node. Presently we can guarantee this all works with Node 8.

npm install
npm run compile

Tests

The repo has a comprehensive test suite. You can run it with npm run test. To run the tests with the RPC logs, use npm run test gas.

Composition of the repo

The repo is composed as a Truffle project, and is largely idiomatic to Truffle's conventions. The tests are in the test directory, the contracts are in the contracts directory and the migrations (deployment scripts) are in the migrations directory. Furthermore there is a conf directory containing json files where deployments can be parameterized.

Deploying your own TCR

Since v1.1.0, only the factory contracts are deployed during truffle migrate. To deploy a RegistryFactory to any network you can use the NPM scripts in the package.json. To deploy to a local Ganache instance, set an environment variable MNEMONIC to the mnemonic exposed by Ganache. To spawn proxy contracts using a deployed RegistryFactory, execute the snippet in /scripts by running:

npm run deploy-proxies:[network]

Packages

The repo consumes several EPM packages. dll and attrstore are libraries used in PLCRVoting's doubly-linked list abstraction. tokens provides an ERC20-comaptible token implementation. plcr-revival features batched executions for some transactions. All packages are installed automatically when running npm install.

You can’t perform that action at this time.