Skip to content
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

Upgrade simapp to nightly-2020-08-05 #342

Merged
merged 5 commits into from
Aug 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/cosmwasm/src/lcdapi/wasm.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ describe("WasmExtension", () => {
});

it("is empty for non-existent address", async () => {
pendingWithoutWasmd();
const client = makeWasmClient(wasmd.endpoint);
const nonExistentAddress = makeRandomAddress();
const state = await client.wasm.getAllContractState(nonExistentAddress);
Expand Down
2 changes: 1 addition & 1 deletion scripts/simapp/env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Choose from https://hub.docker.com/r/interchainio/simapp/tags
REPOSITORY="interchainio/simapp"
VERSION="nightly-2020-07-29"
VERSION="nightly-2020-08-05"
CONTAINER_NAME="simapp"
6 changes: 4 additions & 2 deletions scripts/simapp/generate_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ source "$SCRIPT_DIR"/env

rm -rf "$SCRIPT_DIR/template"
mkdir "$SCRIPT_DIR/template"
cp setup.sh "$SCRIPT_DIR/template/" && chmod +x "$SCRIPT_DIR/template/setup.sh"
cp run_simd.sh "$SCRIPT_DIR/template/" && chmod +x "$SCRIPT_DIR/template/run_simd.sh"
cp setup.sh "$SCRIPT_DIR/template/"
chmod +x "$SCRIPT_DIR/template/setup.sh"
cp run_simd.sh "$SCRIPT_DIR/template/"
chmod +x "$SCRIPT_DIR/template/run_simd.sh"

# The usage of the accounts below is documented in README.md of this directory
docker run --rm \
Expand Down
8 changes: 4 additions & 4 deletions scripts/simapp/setup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
set -o errexit -o nounset -o pipefail
set -o errexit -o nounset
willclarktech marked this conversation as resolved.
Show resolved Hide resolved
command -v shellcheck > /dev/null && shellcheck "$0"

PASSWORD=${PASSWORD:-1234567890}
Expand All @@ -13,7 +13,7 @@ simd init --chain-id "$CHAIN_ID" "$MONIKER"
sed -i "s/\"stake\"/\"$STAKE\"/" "$HOME"/.simapp/config/genesis.json # staking/governance token is hardcoded in config, change this

echo "Setting up validator ..."
if ! simd keys show validator; then
if ! simd keys show validator 2> /dev/null; then
willclarktech marked this conversation as resolved.
Show resolved Hide resolved
echo "Validator does not yet exist. Creating it ..."
(echo "$PASSWORD"; echo "$PASSWORD") | simd keys add validator
fi
Expand All @@ -23,10 +23,10 @@ echo "$PASSWORD" | simd add-genesis-account validator "1000000000$STAKE,10000000
echo "Setting up accounts ..."
# (optionally) add a few more genesis accounts
for addr in "$@"; do
echo $addr
echo "$addr"
simd add-genesis-account "$addr" "1000000000$STAKE,1000000000$FEE"
done

echo "Creating genesis tx ..."
(echo "$PASSWORD"; echo "$PASSWORD"; echo "$PASSWORD") | simd gentx validator --amount "250000000$STAKE" --chain-id "$CHAIN_ID"
(echo "$PASSWORD"; echo "$PASSWORD"; echo "$PASSWORD") | simd gentx validator --offline --amount "250000000$STAKE" --chain-id "$CHAIN_ID" --moniker="$MONIKER"
simd collect-gentxs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMC0wOC0wNSAxMDoxOTo0Ni42NTgyNTg5ICswMDAwIFVUQyBtPSswLjE3NDU1MDUwMSIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6IlNXQmdBYzlDVkw2YVdFNloifQ.1WcD0GRVorQbC7411RbZwvZdtSG9ZcipAXCgXzMCORWq4tE4ke8lJA.UHmYdum53TSPA169.HW0l0KFZS4GQ9_ss_4tSt7d_cv3qjixehXxAtXEVUEUhAV8JViouQYD1-VELy1mtd7r5Ld1L9q6l0X6B2OGmc6I9bQZSB1G3KSH9WCvTvigiTnYeOrGwtTy8ZxkrC5vWj0rkaADqd3Hmc3hZsovxhlUqMcLxP7ZXET0NjNWu9auNVEevt_jgKyqttqc2zMEER3wYXVTVSm0vHo723vhFIRJNF6hp1p0u1KmyaZ7q1Di_2wb1fUrubxzU.dr7x1R5fIfDzjGgU-w7PAg

This file was deleted.

Loading