layer1
v1.0.0
Published
<!-- markdownlint-disable MD033 --> <h1 align="center">Dymension Rollapp</h1> <!-- markdownlint-enable MD033 -->
Readme
Rollappd - A template RollApp chain
This repository hosts rollappd, a template implementation of a dymension rollapp.
rollappd is an example of a working RollApp using dymension-RDK and dymint.
It uses Cosmos-SDK's simapp as a reference, but with the following changes:
- minimal app setup
- wired IBC for ICS 20 Fungible Token Transfers
- Uses
dymintfor block sequencing and replacingtendermint - Uses modules from
dymension-RDKto sync withdymintand provide RollApp custom logic
Overview
Note: Requires Go 1.19
Quick guide
Get started with building RollApps
Installing / Getting started
Build and install the rollappd binary:
make installInitial configuration
export the following variables:
export ROLLAPP_CHAIN_ID="demo-dymension-rollapp"
export KEY_NAME_ROLLAPP="rol-user"
export DENOM="urax"
export MONIKER="$ROLLAPP_CHAIN_ID-sequencer"And initialize the rollapp:
sh scripts/init.shRun rollapp
rollappd startYou should have a running local rollapp!
Run a rollapp with local settlement node
Run local dymension hub node
Follow the instructions on Dymension Hub docs to run local dymension hub node
Create sequencer keys
create sequencer key using dymd
dymd keys add sequencer --keyring-dir ~/.rollapp/sequencer_keys --keyring-backend test
SEQUENCER_ADDR=`dymd keys show sequencer --address --keyring-backend test --keyring-dir ~/.rollapp/sequencer_keys`fund the sequencer account
dymd tx bank send local-user $SEQUENCER_ADDR 10000000000000000000000udym --keyring-backend test --broadcast-mode blockRegister rollapp on settlement
sh scripts/settlement/register_rollapp_to_hub.shRegister sequencer for rollapp on settlement
sh scripts/settlement/register_sequencer_to_hub.shConfigure the rollapp
Modify dymint.toml in the chain directory (~/.rollapp/config)
set:
settlement_layer = "dymension"Run rollapp locally
rollappd startSetup IBC between rollapp and local dymension hub node
Install dymension relayer
git clone https://github.com/dymensionxyz/go-relayer.git --branch v0.2.0-v2.3.1-relayer
cd relayer && make installEstablish IBC channel
while the rollapp and the local dymension hub node running, run:
sh scripts/ibc/setup_ibc.shAfter successful run, the new established channels will be shown
run the relayer
rly start hub-rollappDevelopers guide
TODO
