Skip to content

Commit

Permalink
Merge pull request #43 from Agoric/40-minimum-gas
Browse files Browse the repository at this point in the history
stop minimum-gas warning
  • Loading branch information
turadg authored Dec 13, 2023
2 parents 63f96bd + 8a220b4 commit 2007e7a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ If the proposal is _pending_ and does not yet have a number, use a letter. The p

### Files

- `config.json` specifies what kind of proposal it is. If it's a "Software Upgrade Proposal" it also includes additional parameters.
- `package.json` specifies what kind of proposal it is in a `agoricProposal` field. If it's a "Software Upgrade Proposal" it also includes additional parameters.
- `use.sh` is the script that will be run in the USE stage of the build
- `test.sh` is the script that will be _included_ in the TEST stage of the build, and run in CI

Expand Down
3 changes: 3 additions & 0 deletions proposals/29:upgrade-9/test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash
source /usr/src/upgrade-test-scripts/env_setup.sh

test_not_val "$(cat /root/.agoric/psm_metrics.json | wc -l)" "0" "psm metrics shouldnt be empty"
test_not_val "$(cat /root/.agoric/psm_governance.json | wc -l)" "0" "psm gov params shouldnt be empty"

# provision pool has right balance
test_val $(agd query bank balances agoric1megzytg65cyrgzs6fvzxgrcqvwwl7ugpt62346 -o json | jq -r '.balances | first | .amount') "19000000"

Expand Down
6 changes: 3 additions & 3 deletions proposals/29:upgrade-9/use.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ set -e

source /usr/src/upgrade-test-scripts/env_setup.sh

# Set to zero so tests don't have to pay gas (we're not testing that)
sed --in-place=.bak s/'minimum-gas-prices = ""'/'minimum-gas-prices = "0ubld,0uist"'/ ~/.agoric/config/app.toml

# NOTE: agoric follow doesn't have the `--first-value-only` parameter in this version
# so we use a hack

# save somewhere we can access later
echo "Dumping PSM gov params..."
timeout 3 agoric follow -l :published.psm.${PSM_PAIR}.metrics -o jsonlines | tee /root/.agoric/psm_metrics.json
timeout 3 agoric follow -l :published.psm.${PSM_PAIR}.governance -o jsonlines | tee /root/.agoric/psm_governance.json

test_not_val "$(cat /root/.agoric/psm_metrics.json | wc -l)" "0" "psm metrics shouldnt be empty"
test_not_val "$(cat /root/.agoric/psm_governance.json | wc -l)" "0" "psm gov params shouldnt be empty"

0 comments on commit 2007e7a

Please sign in to comment.