# Set the variables
# Come up with the name of your node and replace it instead <your_moniker>
MONIKER=<your_moniker>
echo 'export MONIKER='$MONIKER >> $HOME/.bash_profile
echo "export AXELAR_TESTNET_CHAIN_ID=axelar-testnet-lisbon-3" >> $HOME/.bash_profile
echo "export AXELAR_MAINNET_CHAIN_ID=axelar-dojo-1" >> $HOME/.bash_profile
echo "export AXELAR_TESTNET_PORT=40" >> $HOME/.bash_profile
echo "export AXELAR_MAINNET_PORT=41" >> $HOME/.bash_profile
source $HOME/.bash_profile
# check whether the last command was executed
# Download binary files
# Clone project repository
cd $HOME
rm -rf axelar-core
git clone https://github.com/axelarnetwork/axelar-core.git
cd axelar-core
git checkout v0.34.1
go mod edit -replace github.com/tendermint/tm-db=github.com/notional-labs/tm-db@v0.6.8-pebble
go mod tidy
go mod edit -replace github.com/cometbft/cometbft-db=github.com/notional-labs/cometbft-db@pebble
go mod tidy
go install -ldflags "-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb \
-X github.com/cosmos/cosmos-sdk/version.Version=$(git describe --tags)-pebbledb \
-X github.com/cosmos/cosmos-sdk/version.Commit=$(git log -1 --format='%H')" -tags pebbledb ./...
sudo cp $(which axelard) /usr/local/bin/t_axelar
sudo cp $(which axelard) /usr/local/bin/m_axelar
cd $HOME
t_axelar version
m_axelar version
# 0.34.1
# If the wallet was already there, restore it
t_axelar keys add wallet --recover --home $HOME/.axelar_testnet
# Insert the seed phrase from your wallet
# If everything is correct, you will see your wallet data
# Save the wallet address
AXELAR_TESTNET_ADDRESS=$(t_axelar keys show wallet -a --home $HOME/.axelar_testnet)
# If the wallet was already there, restore it
m_axelar keys add wallet --recover --home $HOME/.axelar_mainnet
# Insert the seed phrase from your wallet
# If everything is correct, you will see your wallet data
# Save the wallet address
AXELAR_MAINNET_ADDRESS=$(m_axelar keys show wallet -a --home $HOME/.axelar_mainnet)