GithubHelp home page GithubHelp logo

sekmet / moonbeam Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moonbeam-foundation/moonbeam

0.0 0.0 0.0 1.74 MB

License: GNU General Public License v3.0

Rust 62.01% Shell 7.81% Dockerfile 1.81% TypeScript 24.95% JavaScript 1.64% Solidity 0.21% Ruby 1.27% HTML 0.30%

moonbeam's Introduction

moonbeam

Tests

Run an Ethereum compatible parachain (blockchain for now, until parachains are available) based on Substrate.

See moonbeam.network for the moonbeam blockchain description.
See www.substrate.io for substrate information.

Install (linux)

Moonbeam

git clone -b moonbeam-tutorials https://github.com/PureStake/moonbeam
cd moonbeam

Dependencies

Install Substrate and its pre-requisites (including Rust):

curl https://getsubstrate.io -sSf | bash -s -- --fast

Build

Build Wasm and native code:

cargo build --release

(Building for the first time will take a long time, to install and compile all the libraries)

If a cargo not found error appears in the terminal, manually add Rust to your system path (or restart your system):

source $HOME/.cargo/env

Run

Single node dev

./target/release/moonbase-standalone --dev

Docker image

You can run the moonbeam node within Docker directly.
The Dockerfile is optimized for development speed.
(Running the docker run... command will recompile the binaries but not the dependencies)

Building (takes 5-10 min):

docker build -t moonbeam-node-dev .

Running (takes 1 min to rebuild binaries):

docker run -t moonbeam-node-dev

Pallets

  • aura: Time-based Authority Consensus (for simplicity until more development is done)

  • balances: Account & Balance management

  • grandpa: GRANDPA Authority consensus (This will be removed once it becomes a parachain)

  • sudo: Allow specific account to call any dispatchable ("Alice": 0x57d213d0927ccc7596044c6ba013dd05522aacba, will get removed at some point)

  • timestamp: On-Chain time management

  • transaction-payment: Transaction payement (fee) management

  • evm: EVM Execution. (Temporary until we work on pallet-ethereum)

  • mb-core: Currently serves as a way to experiments with pallets and substrate (will get removed)

  • mb-session: Logic for selecting validators based on a endorsement system

Tests

Tests are run with the following command:

cargo test --verbose

This github repository is also linked to Gitlab CI

Contribute

Code style

Moonbeam is following the Substrate code style
We provide a .editorconfig (compatible with VSCode using RLS)

moonbeam's People

Contributors

crystalin avatar tgmichel avatar mario-sangar avatar joshorndorff avatar thequantumphysicist avatar dtyoo avatar albertov19 avatar dependabot[bot] 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.