Skip to content

Latest commit

 

History

History
96 lines (63 loc) · 3.72 KB

README.md

File metadata and controls

96 lines (63 loc) · 3.72 KB

tangle Banner

Tangle Parachain

Tangle's Parachain is an operation specific liquid staking system built off Bifrost's LST system but with modifications to enable finer-grained customizability. We leverage the LSTs primarily for Tangle's restaking infrastructure, rather than DeFi, as our main intention of creating liquid staking tokens in the Polkadot/Kusama ecosystem. The liquid staking system allows users to bond and nominate specifically chosen validators (or use programmatic defaults) while minting a liquid staked token representative of their nominations. We plan to support major parachains staking operations such as Polkadot's validator staking, Astar's dApp staking, Phala's vault staking, Moonbeam's parachain staking, and more.

Tangle's Parachain allows easy access to Polkadot liquidity for augmenting the security of Tangle's restaking infrastructure on Tangle mainnet. By minting liquid staked assets, users gain opportunities to secure restaking services, specifically Blueprints, deployed on Tangle.

Install Rust and required tools

curl https://sh.rustup.rs -sSf | sh
make init

Build binary

cargo build -p tangle-cli

Run local testnet with zombienet

You can get started quickly by using the provided Dockerfile.testnet file to launch a local testnet using zombienet.

docker build -f Dockerfile.testnet -t tangle-restaking-parachain .

# Run the Docker container with the ports published to the host.
docker run -it \
  -p 30334:30334 -p 9933:9933 -p 9615:9615 \
  -p 30335:30335 -p 9934:9934 -p 9616:9616 \
  -p 30336:30336 -p 9935:9935 -p 9617:9617 \
  -p 30337:30337 -p 9936:9936 -p 9618:9618 \
  tangle-restaking-parachain

Alternatively, follow the instructions below to install zombienet and polkadot binaries on your local machine.

1. Install zombienet

Download the zombienet binary and add it to your path for global access from their release page.

If you're using curl, here's an example of how you can accomplish this:

curl -L -o /usr/local/bin/zombienet https://github.com/paritytech/zombienet/releases/download/v1.3.105/zombienet-linux-x64
chmod +x /usr/local/bin/zombienet # Mark the binary as executable.

Verify that zombienet is installed correctly by running:

zombienet version

For more information, please refer to zombienet's installation guide.

2. Install or build Polkadot

Install Polkadot binaries using zombienet (recommended)

zombienet setup polkadot polkadot-launch

Or build Polkadot and install it using cargo

Note that this will take a while to build, given the size of the Polkadot codebase. View available tags/versions here.

# replace version with your target polkadot version
cargo install --git https://github.com/paritytech/polkadot-sdk --tag <version> polkadot --locked

Verify that the Polkadot binary is installed correctly by running:

polkadot --version

3. Launch Polkadot and the parachain

# Make sure you are in the parachain directory.
cd <path-to-tangle-parachain>

# Start the parachain.
zombienet --provider native spawn ./scripts/zombienet.toml

It will take about 1-2 minutes for the parachain to start producing blocks.

You can use the Direct Link in the zombienet output to access the chains.