-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terra localnet #405
Terra localnet #405
Conversation
SetupSuite rename fix pfm subspace
…h in hermes keys generate
can we break down this pull request into multiple smaller items, reviewing 4000+ lines of code is not manageable |
I have reduced to 2000+ |
1000+ now |
Thank you for your pull request. Given the current ambivalence within the community regarding PPJ, we will temporarily suspend the reviewing process until a well-defined plan for PPJ, which includes the reviewing process and delineates the shares of responsibility, is approved through governance. |
done | ||
|
||
install_prerequisites () { | ||
wget -qO /usr/local/bin/dasel https://github.com/TomWright/dasel/releases/latest/download/dasel_linux_amd64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might want to check if the download actually succeeded.
CONFIG_FOLDER=$TERRA_HOME/config | ||
|
||
install_prerequisites () { | ||
wget -qO /usr/local/bin/dasel https://github.com/TomWright/dasel/releases/latest/download/dasel_linux_amd64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might want to check if the download actually succeeded
count=$(chainA query wasm contract-state smart "$CONTRACT_ADDRESS" "$QUERY" -o json | jq -r '.data') | ||
|
||
echo "funds: $funds, count: $count" | ||
echo "denom: $denom, old balance: $balance, new balance: $new_balance" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although this is only a bash script, I would suggest to add the expected values, too.
new_balance=$(chainC query bank balances "$RECEIVER" -o json | jq -r '.balances[0].amount') | ||
# export ADDR_IN_CHAIN_A=$(chainC q ibchooks wasm-sender channel-0 "$VALIDATOR") | ||
|
||
echo "denom: $denom, old balance: $balance, new balance: $new_balance" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although this is only a bash script, I would suggest to add the expected values, too.
Summary of changes
Localrelayer is a local testing environment composed of three LocalTerra instances connected by a relayer. Localrelayer comes preconfigured with opinionated, sensible defaults for a standard testing environment.
Presequite
Ensure you have docker and docker-compose installed:
Deploy
Build a local docker image with current changes
Start the testing environment:
Check that everything is running:
Expected output:
Testing
Run
IBC-Hooks
test:Run
Packet Forward Middleware
test:Report of required housekeeping
(FOR ADMIN) Before merging