Coder Social home page Coder Social logo

iq-scm / substrate-tcr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gautamdhameja/substrate-tcr

0.0 0.0 0.0 680.48 MB

A Parity Substrate runtime implementation of a simple Token Curated Registry (TCR)

License: The Unlicense

Shell 1.06% Rust 98.94%

substrate-tcr's Introduction

Substrate - Token Curated Registries

An updated version of the Substrate TCR runtime sample is available at - https://github.com/substrate-developer-hub/tcr-substrate. In favor of that, this repository has been archived.

An implementation of (a subset of) Token Curated Registries (TCR) as a Parity Substrate runtime. Built using substrate-node-template codebase. The full tutorial for this sample can be found here.

The TCR runtime is implemented as a multi-module runtime with following two modules.

  1. tcr.rs - The main module with all curation and initialization functions. The module implements a simple-TCR as described and implemented here. The full TCR functionality in not implemented but only basic curation functions are.
  2. token.rs - Implementation of the modified ERC20 interface to serve as the native token for the TCR module. There are some additional functions implemented for locking and unlocking of tokens.

Usage

Step 0

If you are new to Substrate, please go through the getting started tutorial first. It will give you a sense of how the code is structured in a substrate-node-template and how to get it up and running.

This will also ensure that you have Rust and Substrate installed on your system.

Step 1

Clone this repository. Inside the directory where you have cloned, run the following commands,

  • To build the rust code and the node:
cargo build --release
  • To start the node:
./target/release/substrate-tcr --dev

A local Substrate node with the TCR runtime should be up and running at localhost:9944.

Step 2 (UI)

You can either use the Substrate-TCR-UI to connect with this runtime or you can try it out using the Polkadot Apps UI.

To try it with the Polkadot Apps UI, follow the following steps,

  • Once the local node is running, open the following in your browser,
https://polkadot.js.org/apps/
  • Go to the settings page and select Local Node in the remote node/endpoint to connect to input. Click Save & Reload.

For further instructions on using the runtime with the Polkadot Apps UI, please see this wiki page in this repository.

Disclaimer

This code is just a sample for learning purposes. It is not audited and reviewed for production use cases. You can expect bugs and security vulnerabilities. Do not use it in production or value bearing applications.

substrate-tcr's People

Contributors

4meta5 avatar gautamdhameja avatar yeqbfgxjiq 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.