Skip to content

Commit

Permalink
Merge pull request #988 from Setheum-Labs/qingdao-update
Browse files Browse the repository at this point in the history
Qingdao update
  • Loading branch information
balqaasem authored Feb 23, 2024
2 parents a66ec36 + 6caad96 commit 988a0d6
Show file tree
Hide file tree
Showing 171 changed files with 17,660 additions and 6,669 deletions.
268 changes: 225 additions & 43 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,44 +1,57 @@
cargo-features = ["resolver"]

[workspace]
resolver = "2"

members = [
# Primary modules
'node',
'runtime',
"runtime/common",
'primitives',
"blockchain/node",
"blockchain/node/cli",
"blockchain/node/service",

"blockchain/modules/*",
"blockchain/modules/currencies/runtime-api",
"blockchain/modules/evm-utility/macro",
"blockchain/primitives",
"blockchain/rpc",

# SERML Modules
"modules/airdrop",
"modules/currencies",
"modules//evm",
"modules//evm/rpc",
"modules//evm/rpc/runtime_api",
"modules//evm-accounts",
"modules//evm-bridge",
"modules//evm-manager",
"modules/idle-scheduler",
"modules/nft",
"modules/prices",
"modules/transaction-pause",
"modules/transaction-payment",
"modules/vesting",
"blockchainruntime/common",
"blockchainruntime/qingdao",
"blockchainruntime/setheum",

# ORML modules
"submodules/orml/authority",
"submodules/orml/benchmarking",
"submodules/orml/currencies",
"submodules/orml/nft",
"submodules/orml/oracle",
"submodules/orml/oracle/rpc",
"submodules/orml/oracle/rpc/runtime-api",
"submodules/orml/tokens",
"submodules/orml/traits",
"submodules/orml/utilities",
"orml/asset-registry",
"orml/auction",
"orml/authority",
"orml/benchmarking",
"orml/currencies",
"orml/gradually-update",
"orml/nft",
"orml/oracle",
"orml/oracle/runtime-api",
"orml/parameters",
"orml/payments",
"orml/rewards",
"orml/tokens",
"orml/tokens/runtime-api",
"orml/traits",
"orml/unknown-tokens",
"orml/utilities",
"orml/vesting",
"orml/xcm-support",
"orml/xcm",
"orml/xtokens",
]
exclude = ['rpc']

resolver = "2"

[profile.release]
# Substrate runtime requires unwinding.
panic = 'unwind'

[profile.dev]
split-debuginfo = "unpacked"

[profile.production]
inherits = "release"
lto = true
codegen-units = 1

# The list of dependencies below (which can be both direct and indirect dependencies) are crates
# that are suspected to be CPU-intensive, and that are unlikely to require debugging (as some of
Expand All @@ -57,7 +70,6 @@ exclude = ['rpc']
# This list is ordered alphabetically.
[profile.dev.package]
blake2 = { opt-level = 3 }
blake2-rfc = { opt-level = 3 }
blake2b_simd = { opt-level = 3 }
chacha20poly1305 = { opt-level = 3 }
cranelift-codegen = { opt-level = 3 }
Expand All @@ -66,7 +78,7 @@ crc32fast = { opt-level = 3 }
crossbeam-deque = { opt-level = 3 }
crypto-mac = { opt-level = 3 }
curve25519-dalek = { opt-level = 3 }
ed25519-dalek = { opt-level = 3 }
ed25519-zebra = { opt-level = 3 }
flate2 = { opt-level = 3 }
futures-channel = { opt-level = 3 }
hashbrown = { opt-level = 3 }
Expand All @@ -75,7 +87,6 @@ hmac = { opt-level = 3 }
httparse = { opt-level = 3 }
integer-sqrt = { opt-level = 3 }
keccak = { opt-level = 3 }
libm = { opt-level = 3 }
librocksdb-sys = { opt-level = 3 }
libsecp256k1 = { opt-level = 3 }
libz-sys = { opt-level = 3 }
Expand All @@ -94,14 +105,185 @@ smallvec = { opt-level = 3 }
snow = { opt-level = 3 }
twox-hash = { opt-level = 3 }
uint = { opt-level = 3 }
wasmi = { opt-level = 3 }
x25519-dalek = { opt-level = 3 }
yamux = { opt-level = 3 }
zeroize = { opt-level = 3 }
insta.opt-level = 3
similar.opt-level = 3

[profile.release]
# Substrate runtime requires unwinding.
panic = 'unwind'
[workspace.dependencies]
log = { version = "0.4.20", default-features = false }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.145", default-features = false }
parity-scale-codec = { version = "3.6.5", default-features = false }
serde_json = { version = "1.0.81", default-features = false }
hex = { version = "0.4", default-features = false }
hex-literal = { version = "0.4.1" }
rand_chacha = { version = "0.2", default-features = false }
env_logger = { version = "0.10.0" }
smallvec = { version = "1.4.1" }
ripemd = { version = "0.1.3", default-features = false }
rlp = { version = "0.5.2", default-features = false }
sha3 = { version = "0.10.8", default-features = false }
tiny-keccak = { version = "2.0" }
num = { version = "0.4", default-features = false }
bn = { package = "substrate-bn", version = "0.6", default-features = false }
libsecp256k1 = { version = "0.7", default-features = false }
impl-trait-for-tuples = { version = "0.2.2" }
ethereum-types = { version = "0.14.0", default-features = false }
num_enum = { version = "0.5.1", default-features = false }
quote = { version = "1.0.20" }
syn = { version = "1.0.98" }
proc-macro2 = { version = "1.0.40" }
clap = { version = "4.0.9" }
derive_more = { version = "0.99" }
bstringify = { version = "0.1.2" }
enumflags2 = { version = "0.7.7" }
paste = { version = "1.0" }
futures = { version = "0.3.28" }
jsonrpsee = { version = "0.16.2" }
static_assertions = { version = "1.1.0" }
ethabi = { version = "18.0.0", default-features = false }
async-trait = { version = "0.1.71" }
coins-bip32 = { version = "0.7.0" }
coins-bip39 = { version = "0.7.0" }
k256 = { version = "0.11.5", default-features = false }

[profile.dev]
split-debuginfo = "unpacked"
# Dependencies are split into 2 groups: WASM and Client.
# - "WASM" dependencies requires to be no_std compatible, which often requires
# `default-features = false`. When used in a client-side crate the "std" feature should be enabled
# there if it exists.
# - "Client" dependencies are only used in the client, and thus don't need to be no_std compatible.

# ORML (WASM)
wasm-bencher = { git = "https://github.com/open-web3-stack/wasm-bencher", branch = "polkadot-v1.3.0", default-features = false }
orml-auction = { path = "orml/auction", default-features = false }
orml-authority = { path = "orml/authority", default-features = false }
orml-benchmarking = { path = "orml/benchmarking", default-features = false }
orml-currencies = { path = "orml/currencies", default-features = false }
orml-nft = { path = "orml/nft", default-features = false }
orml-oracle = { path = "orml/oracle", default-features = false }
orml-oracle-runtime-api = { path = "orml/oracle/runtime-api", default-features = false }
orml-parameters = { path = "orml/parameters", default-features = false }
orml-payments = { path = "orml/payments", default-features = false }
orml-rewards = { path = "orml/rewards", default-features = false }
orml-tokens = { path = "orml/tokens", default-features = false }
orml-tokens-runtime-api = { path = "orml/tokens/runtime-api", default-features = false }
orml-traits = { path = "orml/traits", default-features = false }
orml-unknown-tokens = { path = "orml/unknown-tokens", default-features = false }
orml-utilities = { path = "orml/utilities", default-features = false }
orml-vesting = { path = "orml/vesting", default-features = false }
orml-xcm = { path = "orml/xcm", default-features = false }
orml-xcm-support = { path = "orml/xcm-support", default-features = false }
orml-xtokens = { path = "orml/xtokens", default-features = false }

# Setheum (WASM)
primitives = { package = "setheum-primitives", path = "blockchain/primitives", default-features = false }
runtime-common = { path = "blockchain/runtime/common", default-features = false }
qingdao-runtime = { path = "blockchain/runtime/qingdao", default-features = false }
setheum-runtime = { path = "blockchain/runtime/setheum", default-features = false }

# Setheum & ORML (client)
setheum-cli = { path = "blockchain/node/cli" }
setheum-rpc = { path = "blockchain/rpc" }
setheum-service = { path = "blockchain/node/service", default-features = false }
module-evm-utility-macro = { path = "blockchain/modules/evm-utility/macro" }
orml-build-script-utils = { path = "orml/build-script-utils" }

# Substrate (WASM)
frame-benchmarking = { version = "25.0.0", default-features = false }
frame-executive = { version = "25.0.0", default-features = false }
frame-support = { version = "25.0.0", default-features = false }
frame-system = { version = "25.0.0", default-features = false }
frame-system-rpc-runtime-api = { version = "23.0.0", default-features = false }
frame-try-runtime = { version = "0.31.0", default-features = false }
pallet-aura = { version = "24.0.0", default-features = false }
pallet-authority-discovery = { version = "25.0.0", default-features = false }
pallet-authorship = { version = "25.0.0", default-features = false }
pallet-balances = { version = "25.0.0", default-features = false }
pallet-bounties = { version = "24.0.0", default-features = false }
pallet-collective = { version = "25.0.0", default-features = false }
pallet-democracy = { version = "25.0.0", default-features = false }
pallet-elections-phragmen = { version = "26.0.0", default-features = false }
pallet-indices = { version = "25.0.0", default-features = false }
pallet-membership = { version = "25.0.0", default-features = false }
pallet-message-queue = { version = "28.0.0", default-features = false }
pallet-multisig = { version = "25.0.0", default-features = false }
pallet-preimage = { version = "25.0.0", default-features = false }
pallet-proxy = { version = "25.0.0", default-features = false }
pallet-recovery = { version = "25.0.0", default-features = false }
pallet-root-testing = { version = "1.0.0", default-features = false }
pallet-scheduler = { version = "26.0.0", default-features = false }
pallet-session = { version = "25.0.0", default-features = false }
pallet-sudo = { version = "25.0.0", default-features = false }
pallet-timestamp = { version = "24.0.0", default-features = false }
pallet-tips = { version = "24.0.0", default-features = false }
pallet-transaction-payment = { version = "25.0.0", default-features = false }
pallet-transaction-payment-rpc-runtime-api = { version = "25.0.0", default-features = false }
pallet-treasury = { version = "24.0.0", default-features = false }
pallet-utility = { version = "25.0.0", default-features = false }
pallet-xcm = { version = "4.0.0", default-features = false }
sp-api = { version = "23.0.0", default-features = false }
sp-application-crypto = { version = "27.0.0", default-features = false }
sp-arithmetic = { version = "20.0.0", default-features = false }
sp-block-builder = { version = "23.0.0", default-features = false }
sp-blockchain = { version = "25.0.0", default-features = false }
sp-consensus = { version = "0.29.0", default-features = false }
sp-consensus-aura = { version = "0.29.0", default-features = false }
sp-consensus-slots = { version = "0.29.0", default-features = false }
sp-core = { version = "25.0.0", default-features = false }
sp-debug-derive = { version = "12.0.0", default-features = false }
sp-externalities = { version = "0.23.0", default-features = false }
sp-inherents = { version = "23.0.0", default-features = false }
sp-io = { version = "27.0.0", default-features = false }
sp-keyring = { version = "28.0.0", default-features = false }
sp-keystore = { version = "0.31.0", default-features = false }
sp-offchain = { version = "23.0.0", default-features = false }
sp-runtime = { version = "28.0.0", default-features = false }
sp-runtime-interface = { version = "21.0.0", default-features = false }
sp-session = { version = "24.0.0", default-features = false }
sp-staking = { version = "23.0.0", default-features = false }
sp-state-machine = { version = "0.32.0", default-features = false }
sp-std = { version = "12.0.0", default-features = false }
sp-storage = { version = "17.0.0", default-features = false }
sp-timestamp = { version = "23.0.0", default-features = false }
sp-tracing = { version = "14.0.0", default-features = false }
sp-transaction-pool = { version = "23.0.0", default-features = false }
sp-trie = { version = "26.0.0", default-features = false }
sp-version = { version = "26.0.0", default-features = false }
sp-wasm-interface = { version = "18.0.0", default-features = false }
sp-weights = { version = "24.0.0", default-features = false }
xcm = { package = "staging-xcm", version = "4.0.0", default-features = false }
xcm-builder = { package = "staging-xcm-builder", version = "4.0.0", default-features = false }
xcm-executor = { package = "staging-xcm-executor", version = "4.0.0", default-features = false }
# Substrate (WASM)
frame-benchmarking-cli = { version = "29.0.0" }
pallet-transaction-payment-rpc = { version = "27.0.0" }
sc-basic-authorship = { version = "0.31.0" }
sc-chain-spec = { version = "24.0.0" }
sc-cli = { version = "0.33.0" }
sc-client-api = { version = "25.0.0" }
sc-consensus = { version = "0.30.0" }
sc-consensus-aura = { version = "0.31.0" }
sc-consensus-grandpa = { version = "0.16.0" }
sc-consensus-manual-seal = { version = "0.32.0" }
sc-consensus-slots = { version = "0.30.0" }
sc-executor = { version = "0.29.0" }
sc-network = { version = "0.31.0" }
sc-network-common = { version = "0.30.0" }
sc-network-sync = { version = "0.30.0" }
sc-offchain = { version = "26.0.0" }
sc-rpc = { version = "26.0.0" }
sc-rpc-api = { version = "0.30.0" }
sc-rpc-server = { version = "10.0.0" }
sc-service = { version = "0.32.0" }
sc-telemetry = { version = "12.0.0" }
sc-tracing = { version = "25.0.0" }
sc-transaction-pool = { version = "25.0.0" }
sc-transaction-pool-api = { version = "25.0.0" }
substrate-build-script-utils = { version = "9.0.0" }
substrate-frame-rpc-system = { version = "25.0.0" }
substrate-prometheus-endpoint = { version = "0.16.0" }
substrate-wasm-builder = { version = "14.0.0" }
try-runtime-cli = { version = "0.35.0" }
xcm-simulator = { version = "4.0.0" }
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ Setheum's Blockchain Network node Implementation in Rust, ready for hacking :roc

<div align="center">

[![Setheum version](https://img.shields.io/badge/Setheum-0.9.80-blue?logo=Parity%20Substrate)](https://setheum.xyz/)
[![License](https://img.shields.io/github/license/Setheum-Labs/Setheum?color=blue)](https://github.com/Setheum-Labs/Setheum/blob/master/LICENSE)
[![Setheum version](https://img.shields.io/badge/Setheum-0.9.81-yellow?logo=Parity%20Substrate)](https://setheum.xyz/)
[![License](https://img.shields.io/github/license/Setheum-Labs/Setheum?color=blue)](https://github.com/Setheum-Labs/Setheum/blob/master/LICENSE.md)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](docs/contributor/CONTRIBUTING.md)

<br />
[![Rust](https://github.com/Setheum-Labs/Setheum/actions/workflows/rust.yml/badge.svg)](https://github.com/Setheum-Labs/Setheum/actions/workflows/rust.yml)
[![CodeQL](https://github.com/Setheum-Labs/Setheum/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/Setheum-Labs/Setheum/actions/workflows/github-code-scanning/codeql)

[![Website](https://img.shields.io/badge/web-gray?logo=web)](https://setheum.xyz)
[![Twitter URL](https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Ftwitter.com%2FSetheum)](https://twitter.com/Setheum)
Expand Down Expand Up @@ -82,7 +83,7 @@ Setheum’s consensus system works to achieve high scalability and high security

### 1.2. EthicalDeFi

EthicalDeFi Suite is the DeFi powerhouse of the Setheum Network, providing all kinds of top notch DeFi protocols including a cutting-edge AMM DEX, modules,
EthicalDeFi Suite is the DeFi powerhouse of the Setheum Network, providing all kinds of top notch DeFi protocols including AMM, Orderbook & Aggregated DEX modules,
Decentralised Liquid Staking for Setheum SE and 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 zero-interest loans of stable cryptocurrencies that has scalable value and trust,
Expand Down Expand Up @@ -304,7 +305,7 @@ Run the module benchmarks and generate the weights file:
--execution=wasm \
--wasm-execution=compiled \
--heap-pages=4096 \
--output=./modules/currencies/src/weights.rs
--output=./blockchain/modules/currencies/src/weights.rs
```

### 6.4. Bench Bot
Expand Down
Loading

0 comments on commit 988a0d6

Please sign in to comment.