Git Product home page Git Product logo

protocol's Introduction

KOI Smart Contract

=======

Note: be sure to set the path to the key file in bin/deploy.js

Attention Verification Process

  1. Every 24 hrs, 1000 KOI can be released

  2. Nodes poll the gateways (from the list in state.gateways

  3. Nodes track traffic logs locally, and when they are convinced, can submit a block

  4. Nodes submit blocks / attestations to a Bundler Node (we need to make an express server)

  5. Bundler Node upload and trigger vote (Pay AR)

  6. Vote happens -> Nodes check state change proposal and then submit boolean votes to Bundlers

  7. Bundlers compete to find the most votes, And update the state when a verdict is reached and the 1000 KOI are paid.

Token Configuration

Initial Supply: 10 million tokens.

Inflation: 365000 ~ a year.

Faucet/Stake Issuer Address: ``

Development

yarn build

Builds the smart contract and outputs it to dist.

yarn test

Runs unit tests in test.

yarn deploy

Deploys the smart contract assuming your JWK wallet is under the path ./arweave.creds.json. You can also specify a different location directly for testing in lib/test.js

KOI Library

The KOI integrations library is available in the /lib folder of this repository, and offers easy to use tools to interact with the KOI contract to do things like request tasks, register data assets, or vote on traffic logs and participate in mining.

This library will soon be packaged separately as a standalone NPM package. Contact us at [email protected] for more info!

protocol's People

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.