Skip to content

Commit

Permalink
merge branch with tests and fixes
Browse files Browse the repository at this point in the history
Signed-off-by: dzmitry-lahoda <dzmitry@lahoda.pro>
  • Loading branch information
dzmitry-lahoda committed Dec 26, 2021
1 parent 38b6185 commit 562f042
Show file tree
Hide file tree
Showing 116 changed files with 13,577 additions and 779 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,20 @@ jobs:
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
- name: Cargo Check
- name: Check
run: |
rustup target add wasm32-unknown-unknown
SKIP_WASM_BUILD=1 cargo check --all --benches
- name: Cargo Check Benchmark
- name: Benchmark
run: |
SKIP_WASM_BUILD=1 cargo check --features=runtime-benchmarks --workspace --release --exclude integration-tests
- name: Picasso Runtime Build
- name: Benchmark Develop
run: |
SKIP_WASM_BUILD=1 cargo check --features=runtime-benchmarks,develop --workspace --release --exclude integration-tests
- name: Picasso
run: |
cargo build --release -p picasso-runtime
- name: Picasso Runtime Build with develop feature
- name: Picasso Develop
run: |
cargo build --release -p picasso-runtime --features develop
linters:
Expand Down
37 changes: 37 additions & 0 deletions ARCHITECTURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Architecture

Composable is a [Polkadot parachain](https://wiki.polkadot.network/docs/learn-parachains) built with [Substrate](https://substrate.dev/). We provide a wide variety of DeFi protocols and cross-chain capabilities.

# Overview

The Composable project consists of a blockchain, various utility applications, deployment scripts and setup scripts.

# Runtimes

When building the chain, we use different names to target different [relay chain](https://wiki.polkadot.network/docs/learn-architecture):
- the **Dali** chain is deployed for **Westend/Rococo/Chachacha**
- the **Picasso** chain is deployed for **Kusama**
- the **Composable** chain is deployed for **Polkadot**

The runtimes can be found under the `runtime` directory.
The chain specs are located in `node/src/chain_spec`.

# Pallets

The building blocks of a substrate blockchain are **pallets**, they define the capability and allow us to implements DeFi protocols.
You can find them under the `frame` directory. We try to give them a meaningful name.

# Utilities in `utils`

## Price feed server

The `oracle` off-chain worker is fetching prices from a server. We provide a reference implementation named `price-feed` that fetches and caches prices from different, configurable sources.

## Subxt clients

We do our best to maintain generated subxt clients for our runtimes.

# Scripts

The `scripts/polkadot-launch` scripts are setting up a whole Relay + Composable + Basilisk environment.
Various [polkadotjs](https://polkadot.js.org/docs/) scripts located in `setup` are helping us testing the pallets once the local node is up and running.

0 comments on commit 562f042

Please sign in to comment.