Ψ¨ΩΨ³ΩΩ Ω Ψ§ΩΩΩΩΩΩ Ψ§ΩΨ±ΩΩΨΩΩ ΩΩΩ Ψ§ΩΨ±ΩΩΨΩΩΩ
- Decentralized
- Exceptional
- Secure
- Interoperable
- Reliable
- Ethical
- Scalable
Setheum's Blockchain Network node Implementation in Rust, ready for hacking π
NOTE: SETHEUM means
Salam Eth
,Super Eth
,The house of gifts
andgifted
. Originally from the nameSeth/Sheeth
mixed withEthereum
, it also stands forSecure, Evergreen, Truthful, Heterogeneous, Economically Unbiased Market
.
- Setheum - Powering The New Internet
Founded November 2019,Setheum achieves a high level of equilibrium in the trilemma by leveraging a Directed Acyclic Graph(DAG) to build the blockchain consensus - making it a Blockchain via DAG, achieve instant finality, high throughput and very fast blocktime while preserving network security and having a fairly decentralised network,
Setheum is a light-speed decentralised blockchain network with EVM and WASM smart contracts, built from a mixture of what we have seen and considered to be some of the best solutions in the industry, improving on scalability, security, user experience, ethics,decentralisation and democratisation. Setheum intends to be the most complete blockchain network in the world. The AlephBFT Consensus Engine powers the Setheum Chain to have near instant finality, high throughput and high scalability and high security.
Ethical DeFi Suite is the DeFi powerhouse of the Setheum Network, providing all kinds of top notch DeFi protocols including an AMM DEX (inspired by Uniswap v3), Ethical Zero-interest Halal Stablecoins that gives us the properties of both Fiat and Crypto with SlickUSD (USSD) and the Setter (SETR) using an Ethical Collateralized Debt Position (ECDP) mechanism that is over-Collateralized and multi-Collateralised and stable without compromising decentralisation or economic stability, offering stable cryptocurrencies that have scalable value and reliability, setheum provides just that, backed by crypto assets on an efficient zero-interest debt-based system.
Edfis
: Ethical DeFi SuiteEdfis Pay
: Decentralised Payment ProtocolEdfis Swap Exchange
: AMM (Automated Market Maker) DEX Protocol inspired by Uniswap v3 designEdfis Launchpad
: Launchpad Crowdsales protocol for bootstrapping pools on Edfis ExchangeEdfis Launchpool
: Launchpool protocol for bootstrapping pools on Edfis Exchange
Setter
: Unpegged ECDP StablecoinSlickUSD
: USD Pegged ECDP Stablecoin
This project contains some configuration files to help get started π οΈ
Clone this repository:
git clone --recursive https://github.com/Setheum-Labs/Setheum
Install Rust:
curl https://sh.rustup.rs -sSf | sh
If, after installation, running
rustc --version
in the console fails, refer to it to repair.
You can install developer tools on Ubuntu with:
sudo apt-get install -y git make clang curl pkg-config libssl-dev llvm libudev-dev protobuf-compiler build-essential
You may need additional dependencies, checkout substrate.io for more info.
Make sure you have submodule.recurse
set to true to ease submodule use.
git config --global submodule.recurse true
You can install required tools and git hooks:
make init
The make run
command will launch a temporary node and its state will be discarded after you terminate the process.
make run
Use the following command to build the node without launching it:
make build
This command will start the single-node development chain with persistent state:
./target/release/setheum-node --dev
Purge the development chain's state:
./target/release/setheum-node purge-chain --dev
Start the development chain with detailed logging:
RUST_LOG=debug RUST_BACKTRACE=1 ./target/release/setheum-node -lruntime=debug --dev
Run type check:
make check-all
Run tests:
make test
Run in debugger:
make debug
Purge old chain data:
make purge
Purge old chain data and run:
make restart
Update Cargo:
make update
Update ORML:
cd orml && git checkout master && git pull
git add .
cargo update check-all
Note: All build command from Makefile are designed for local development purposes and hence have SKIP_WASM_BUILD
enabled to speed up build time and use --execution native
to only run using native execution mode.
For Docs on running nodes, check ./docs/nodes.md
Once the project has been built, the following command can be used to explore all parameters and subcommands:
./target/release/setheum-node -h
To list all available release builds run:
git tag
To create a corresponding production build, first checkout the tag:
git checkout testnet-1
Then run this command to install appropriate compiler version and produce a binary.
make release
Build the wasm runtime with:
make wasm
make generate-tokens
Note: All build commands with SKIP_WASM_BUILD
are designed for local development purposes and hence have the SKIP_WASM_BUILD
enabled to speed up build time and use --execution native
to only run use native execution mode.
Run runtime benchmark tests:
make bench
Run module benchmark tests:
cargo test -p module-poc --all-features
make benchmark
Run the module benchmarks and generate the weights file:
./target/release/setheum-node benchmark \
--chain=dev \
--steps=50 \
--repeat=20 \
--pallet=module_currencies \
--extrinsic='*' \
--execution=wasm \
--wasm-execution=compiled \
--heap-pages=4096 \
--output=./blockchain/modules/currencies/src/weights.rs
Bench bot can take care of syncing branch with master
and generating WeightInfos for module or runtime.
Comment on a PR /bench module <module_name>
i.e.: /bench module module_prices
Bench bot will do the benchmarking, generate weights.rs
file push and changes into your branch.
Comment on a PR /bench runtime module <module_name>
i.e.: /bench runtime module module_prices
Bench bot will do the benchmarking, generate weights.rs
file and push changes into your branch.
You can create a fork of a live chain (testnet / mainnet) for development purposes.
- Build binary and sync with target chain on localhost defaults. You will need to use unsafe rpc.
- Execute the
Make
command ensuring to specify chain name (testnet / mainnet).
make chain=testnet fork
- Now run a forked chain:
cd fork/data
./binary --chain fork.json --alice
If you would like to contribute, please fork the repository, introduce your changes and submit a pull request. All pull requests are warmly welcome.
In every interaction and contribution, this project adheres to the Contributor Covenant Code of Conduct.
Note> Before adding/removing a TODO, please carefully read the TODO.md file
Whenever you write a TODO in any file, please add a reference to it here. Whenever you remove a TODO in any file, please remove its reference from here.
The code in this repository is licensed under the GNU GPL Version 3 License
Unless you explicitly state otherwise, any contribution that you submit to this repo shall be licensed as above (as defined in the GNU GPL-3 Version 3.0 or later WITH Classpath-exception-2.0), without any additional terms or conditions.