Skip to content

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

Notifications You must be signed in to change notification settings

yazidDev88/skale-manager

 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 61.0%
  • Solidity 32.8%
  • Python 3.1%
  • Jupyter Notebook 2.7%
  • Shell 0.3%
  • JavaScript 0.1%