-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: dzmitry-lahoda <dzmitry@lahoda.pro>
- Loading branch information
1 parent
38b6185
commit 562f042
Showing
116 changed files
with
13,577 additions
and
779 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Oops, something went wrong.