Upgrade proposal detected
Crescent
Crescent is to provide a connected DeFi functionality for Cosmos Ecosystem to enhance capital efficiency and manage risk effectively.
It focuses on the three main functionalities;
* Crescent DEX
* Crescent Boost
* Crescent Derivatives
Crescent Network will commit to, and evolve toward embodiment of the following objectives:
* Providing a marketplace for multi-chain assets with capital-efficient liquidity incentivization
* Securing a cross-chain collateralization protocol for users to effectively manage risks of their portfolio
An array of utilities will be built by the team and perfected by the community through governance, each embracing the core fundamentals of the network.
Installation (Ubuntu/Debian)
Install dependencies
sudo apt update
sudo apt install -y curl git jq lz4 build-essential
sudo rm -rf /usr/local/go
sudo curl -Ls https://go.dev/dl/go1.19.linux-amd64.tar.gz | sudo tar -C /usr/local -xz
tee -a $HOME/.profile > /dev/null << EOF
export PATH=$PATH:/usr/local/go/bin
EOF
source $HOME/.profile
Download/compile and install crescentd
cd $HOME
rm -rf crescent
git clone https://github.com/crescent-network/crescent
cd crescent
# Compile version v1.1.0
git checkout v1.1.0
make build
mkdir -p $HOME/.crescent/cosmovisor/genesis/bin
mv build/crescentd $HOME/.crescent/cosmovisor/genesis/bin/
# Compile version v2.1.0
git checkout v2.1.0
make build
mkdir -p $HOME/.crescent/cosmovisor/upgrades/v2.0.0/bin
mv build/crescentd $HOME/.crescent/cosmovisor/upgrades/v2.0.0/bin/
Install cosmovisor and service
curl -Ls https://github.com/cosmos/cosmos-sdk/releases/download/cosmovisor%2Fv1.3.0/cosmovisor-v1.3.0-linux-amd64.tar.gz | tar xz
chmod 755 cosmovisor
sudo mv cosmovisor /usr/bin/cosmovisor
sudo tee /etc/systemd/system/crescentd.service > /dev/null << EOF
[Unit]
Description=Crescent Node Service
After=network-online.target
[Service]
User=$USER
ExecStart=/usr/bin/cosmovisor run start
Restart=on-failure
RestartSec=10
LimitNOFILE=8192
Environment="DAEMON_HOME=$HOME/.crescent"
Environment="DAEMON_NAME=crescentd"
Environment="UNSAFE_SKIP_BACKUP=true"
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable crescentd
Initialize the node
MONIKER=""
ln -s $HOME/.crescent/cosmovisor/upgrades/v2.0.0 $HOME/.crescent/cosmovisor/current
sudo ln -s $HOME/.crescent/cosmovisor/current/bin/crescentd /usr/local/bin/crescentd
crescentd config chain-id crescent-1
crescentd init $MONIKER --chain-id crescent-1
curl -Ls https://github.com/crescent-network/launch/raw/main/mainnet/crescent-1/genesis.json.tar.gz | tar -xz > $HOME/.crescent/config/genesis.json
tee $HOME/.crescent/data/priv_validator_state.json > /dev/null << EOF
{
"height": "0",
"round": 0,
"step": 0
}
EOF
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.0001ucre\"|" $HOME/.crescent/config/app.toml
sed -i -e "s|^pruning *=.*|pruning = \"custom\"|" $HOME/.crescent/config/app.toml
sed -i -e "s|^pruning-keep-recent *=.*|pruning-keep-recent = \"3000\"|" $HOME/.crescent/config/app.toml
sed -i -e "s|^pruning-keep-every *=.*|pruning-keep-every = \"0\"|" $HOME/.crescent/config/app.toml
sed -i -e "s|^pruning-interval *=.*|pruning-interval = \"10\"|" $HOME/.crescent/config/app.toml
sed -i -e "s|^snapshot-interval *=.*|snapshot-interval = \"1000\"|" $HOME/.crescent/config/app.toml
sed -i -e "s|^snapshot-keep-recent *=.*|snapshot-keep-recent = \"2\"|" $HOME/.crescent/config/app.toml
Download the latest snapshot
SNAPSHOT_FILE=$(curl -Ls https://snapshots.brocha.in/crescent/crescent-1.json | jq -r .file)
curl -L https://snapshots.brocha.in/crescent/$SNAPSHOT_FILE | lz4 -dc - | tar -xf - -C $HOME/.crescent
Start the service and check the log
sudo systemctl start crescentd
sudo journalctl -u crescentd -f --no-hostname -o cat