Skip to content

Commit

Permalink
demo changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ap0calypse644 committed Dec 17, 2024
1 parent 9d3b599 commit 778d6e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion hermes_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ denominator = '3'

[chains.gas_price]
price = 1
denom = 'stake'
denom = 'ufairy'

[chains.address_type]
derivation = 'cosmos'
11 changes: 5 additions & 6 deletions priv_gov_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ make devnet-down
echo "Enter the new voting period (e.g., 2s, 30m, 240h):"
read new_voting_period

sed -i "s/voting_period: .*/voting_period: ${new_voting_period}/" $dir_path/privgov/config.yml
sed -i "/^\s*voting_period: .*/voting_period: ${new_voting_period}/" $dir_path/privgov/config.yml

# Start fairyringd with logging
cd "$dir_path/fairyring"
Expand Down Expand Up @@ -229,17 +229,16 @@ if [[ $? -ne 0 ]]; then
exit 1
fi

hermes keys add --key-name fk --chain fairytest-1 --mnemonic-file "$mnemonic_file" --overwrite
hermes keys add --key-name fk --chain fairyring_devnet --mnemonic-file "$mnemonic_file" --overwrite
if [[ $? -ne 0 ]]; then
echo "Failed to add fk key for fairytest-1."
echo "Failed to add fk key for fairyring_devnet."
exit 1
fi


sleep 30
sleep 5

# Create a new IBC channel
hermes create channel --new-client-connection --a-chain privgov --b-chain fairytest-1 --a-port gov --b-port keyshare --channel-version keyshare-1 --yes
hermes create channel --new-client-connection --a-chain privgov --b-chain fairyring_devnet --a-port gov --b-port keyshare --channel-version keyshare-1 --yes
if [[ $? -ne 0 ]]; then
echo "Failed to create a new IBC channel."
exit 1
Expand Down

0 comments on commit 778d6e5

Please sign in to comment.