Giter Site home page Giter Site logo

cenwadike / repute-ink Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 13 KB

Time-activity reputation ranking system

Home Page: https://github.com/cenwadike/repute-ink

License: MIT License

Rust 100.00%
blockchain ink reputation reputation-system smart-contract

repute-ink's Introduction

Repute contract

This repo contains the source code for a minimum smart contract of a reputation system in ink!.

How it works

Repute at it's core is a book-keeper.

It keep track of registered user reputation since their registration.

A user's reputation is updated when they interact with this contract.

Repute has an important function calculate_reputation_score that mocks a time based reputation scoring engine.

Repute uses score from calculate_reputation_score to update user reputation and rank.

Development

  1. Install rustup via https://rustup.rs/
  2. Run the following:
rustup install 1.68.0
rustup target add wasm32-unknown-unknown
  1. Install cargo-contract here
  2. To install contract node, run:
cargo install contracts-node --git https://github.com/paritytech/substrate-contracts-node.git --tag v0.23.0 --force --locked

Compiling

You can build release version by running:

cargo contract build --release

Testing

Run:

cargo contract test

repute-ink's People

Contributors

cenwadike avatar

Stargazers

 avatar

Watchers

 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.