Coder Social home page Coder Social logo

tcr's Introduction

Token-Curated Registry

Codeship Status for skmgoldin/tcr

A string-keyed token-curated registry (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.

In both the contracts and conf directories are subdirectories named optional. These contain contracts for a token sale and parameters for that sale, respectively. When deploying to any network other than mainnet, the migration script 2_optional_for_test.js will execute along with special logic in 3_deploy_contracts.js to deploy a sale and disburse tokens to actors specified in the optional subdirectory of the config folder. This is relied on by the test scripts and may be useful for deploying test instances on networks like Rinkeby and pre-seeding specified accounts with registry tokens. When deploying to mainnet, a pre-deployed token address should be specified in the main config.json. The built-in token sale code should not be used to run a real token sale, and we make no guarantees for its suitability to the purpose.

Local contracts

Registry.sol, Parameterizer.sol and Challenge.sol are the repo's local contracts. Challenge.sol is a library for challenge logic used by both the registry and the parameterizer.

Packages

The repo consumes several EPM packages. dll and attrstore are libraries used in the TCR's doubly-linked list abstraction. tokens and plcr are stateful contracts. tokens provides an ERC20-comaptible token implementation. plcr is the token-voting system used for challenge resolution in both the registry and the parameterizer. All packages are installed automatically when running npm run compile.

tcr's People

Contributors

skmgoldin avatar mzeitlin8 avatar terryli0095 avatar yorhodes avatar irene-lin avatar kangarang avatar waymobetta avatar medvedev-evgeny avatar miguelmota avatar

Watchers

James Cloos avatar  avatar  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.