Build
Complie Relaychain
1
git clone https://github.com/paritytech/polkadot.git
2
cd polkadot
3
git checkout v0.9.9-1
4
cargo build --release
5
cargo build --release -p test-parachain-adder-collator
Copied!

Compile Cumulus Parachain

1
git clone https://github.com/paritytech/cumulus.git
2
cargo build --release
Copied!
Compile Bifrost Parachain
1
git clone https://github.com/bifrost-finance/bifrost.git
2
cd bifrost
3
git checkout bifrost-v0.9.0
4
make build-all-release
Copied!
The version of Bifrost on Kusama is bifrost-v0.9.0:
GitHub - bifrost-finance/bifrost at bifrost-v0.9.0
GitHub

Use Polkadot-Launch to Deploy

1
git clone https://github.com/paritytech/polkadot-launch.git
2
cd polkadot-launch
3
mkdir bin
4
cp ../polkadot/target/release/polkadot bin
5
cp ../polkadot/target/release/adder-collator bin
6
cp ../cumulus/target/release/polkadot-collator bin
7
cp ../bifrost/target/release/bifrost bin
8
yarn
9
yarn start config.json ## cumulus parachain
Copied!
If Cumulus Parachain succesfully completed,kill related process and to deploy Bifrost Parachain.
1
yarn start asgard.json ## bifrost parachain
Copied!
The content of asgard.json is below:
1
{
2
"relaychain": {
3
"bin": "./bin/polkadot",
4
"chain": "rococo-local",
5
"nodes": [
6
{
7
"name": "alice",
8
"wsPort": 9877,
9
"port": 38877,
10
"flags": [
11
"--unsafe-ws-external",
12
"--unsafe-rpc-external",
13
"--rpc-cors=all"
14
]
15
},
16
{
17
"name": "bob",
18
"wsPort": 9878,
19
"port": 38878
20
}
21
],
22
"genesis": {
23
"runtime": {
24
"runtime_genesis_config": {
25
"configuration": {
26
"config": {
27
"validation_upgrade_frequency": 1,
28
"validation_upgrade_delay": 1
29
}
30
}
31
}
32
}
33
}
34
},
35
"parachains": [
36
{
37
"bin": "./bin/bifrost",
38
"id": "2001",
39
"balance": "1000000000000000000000",
40
"chain": "bifrost-local",
41
"nodes": [
42
{
43
"wsPort": 9866,
44
"port": 38100,
45
"name": "alice",
46
"flags": [
47
"--force-authoring",
48
"--unsafe-ws-external",
49
"--unsafe-rpc-external",
50
"--rpc-methods=Unsafe",
51
"--rpc-cors=all",
52
"--",
53
"--execution=wasm"
54
]
55
},
56
{
57
"wsPort": 9867,
58
"port": 38101,
59
"name": "bob",
60
"flags": [
61
"--force-authoring",
62
"--unsafe-ws-external",
63
"--unsafe-rpc-external",
64
"--rpc-methods=Unsafe",
65
"--rpc-cors=all",
66
"--",
67
"--execution=wasm"
68
]
69
}
70
]
71
}
72
],
73
"simpleParachains": [],
74
"hrmpChannels": [],
75
"types": {},
76
"finalization": false
77
}
Copied!
nmp is another option,but the version of polkadot-lunnch might be old:
npm: polkadot-launch
npm
1
npm i polkadot-launch -g
2
polkadot-launch config.json
Copied!
bifrost-launch is a clone of polkadot-launch with some modifications:
GitHub - bifrost-finance/bifrost-launch: Simple CLI tool to launch a local Polkadot test network
GitHub
Last modified 1mo ago