Welcome,
Bifrost is a Web3 derivatives protocol that provides decentralized cross-chain liquidity for staked assets. By leveraging on the cross-consensus message (XCM) it can provide cross-chain liquid staking services for multiple chains.
Our mission is to provide standardized cross-chain interest-bearing derivatives for Polkadot relay chains, parachains, and heterogeneous chains bridged with Polkadot.
π Discover the Bifrost at bifrost.finance.
π Learn to use the Bifrost with our wiki.
make helpcurl https://sh.rustup.rs -sSf | sh
make initmake build-all-releasemake formatmake clippymake test-allif runtime logic change we may do the benchmarking to regenerate WeightInfo for dispatch calls
make generate-all-weightsIf modify the storage, should test the data migration before production upgrade.
# bifrost kusama
make try-kusama-runtime-upgrade
# bifrost polkadot
make try-polkadot-runtime-upgrademake run-devyarn global add polkadot-launch
cd -git clone -n https://github.com/paritytech/polkadot.git /tmp/polkadot
cd /tmp/polkadot
git checkout release-v0.9.22
cargo build --release
cd -cd -
polkadot-launch ./scripts/bifrost-launch.jsonIt will take about 1-2 minutes for the parachain to start producing blocks.
yarn global add @open-web3/parachain-launchparachain-launch generate --config=scripts/bifrost-docker-launch.yml --yesIt will pull images and generate required docker files in a folder called output in your current working directory
To start the nodes, navigate to the output folder that the generated docker scripts in and start containers:
cd ./output
docker-compose up -d --buildmkdir -p ~/node-key
subkey generate-node-key --file ~/node-key/bifrost.keyReplace your-fullnode-name
docker pull bifrostnetwork/bifrost:latest
docker run -d \
-v ~/node-key:/node-key \
-p 9944:9944 \
-p 9933:9933 \
-p 30333:30333 \
bifrostnetwork/bifrost:latest \
--name your-fullnode-name \
--base-path "/data" \
--node-key-file "/node-key/bifrost.key" \
--chain "/spec/bifrost.json" \
--pruning=archive \
--rpc-external \
--ws-external \
--rpc-cors all \
--state-cache-size 0 \
--execution wasm