Code Monkey home page Code Monkey logo

thchain / skale-manager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skalenetwork/skale-manager

0.0 0.0 0.0 15.7 MB

Ethereum Mainnet smart contracts that manage SKALE Network. Coordinates validator-node registration, SKALE Chain creation, bounties, delegation, distributed key generation and service level agreements

License: GNU Affero General Public License v3.0

Shell 0.33% JavaScript 0.07% Python 3.15% TypeScript 62.10% Jupyter Notebook 2.87% Dockerfile 0.02% Solidity 31.46%

skale-manager's Introduction

SKALE Manager

Discord Build Status codecov

A smart contract system that orchestrates and operates the SKALE Network.

Description

SKALE Manager controls Nodes, Validators, and SKALE chains. It also contains contracts for managing SkaleToken, Distributed Key Generation (DKG), and Verification of BLS signatures.

Upgradeability

This system is upgradeable and uses the Separate Data and Functionality approach.

  1. ContractManager: main contract of Separate Data and Functionality approach. It stores all contract's addresses in the SKALE Manager system.
  2. Permissions: connectable contract to every SKALE Manager contract except ContractManager. It stores address of ContractManager and a modifier that forbids calls only from the given contract

Structure

All interaction with this system is possible only through SKALE Manager. For all statuses and data, see Data contracts. The main purpose of this system:

  1. Control Nodes in the system: - Register, Delete
  2. Control Schains in the system: - Create schain, delete schain - Create group of Nodes for Schain
  3. Control Validation system: - collect verdicts of Nodes by Validators - charge Bounty

Install

  1. Clone this repo
  2. run yarn install

Deployment

To create your network, see examples in truffle-config.js

Create a .env file with following data:

ENDPOINT="your endpoint"
PRIVATE_KEY="your private key"
NETWORK="your created network"
  • deploy:

    truffle migrate --network

Test

Need to deploy the system first

yarn test

License

License

Copyright (C) 2018-present SKALE Labs

skale-manager's People

Contributors

dimastebaev avatar payvint avatar yavrsky avatar cstrangedk avatar dependabot[bot] avatar dependabot-preview[bot] avatar olehnikolaiev avatar sergiy-skalelabs avatar elvisgiv avatar dmytrotkk avatar gannakulikova avatar kladkogex avatar nataliyaskalelabs avatar polinakiporenko avatar dmytronazarenko avatar alexgex avatar dphoursa 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.