-
Notifications
You must be signed in to change notification settings - Fork 808
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc1e6a8
commit 2ff5d46
Showing
3 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
- name: Test simulation sending funds | ||
inputs: | ||
# Create test account | ||
- cmd: seid keys add bank-test --keyring-backend test | ||
- cmd: seid keys add bank-test --keyring-backend test | ||
- cmd: printf "12345678\n" | seid keys show -a admin | ||
env: ADMIN_ACC | ||
- cmd: seid keys show -a bank-test --keyring-backend test | ||
env: BANK_TEST_ACC | ||
|
||
# Send funds | ||
- cmd: printf "12345678\n" | seid tx bank send $ADMIN_ACC $BANK_TEST_ACC 1sei -b block --fees 2000usei --chain-id sei -y | ||
|
||
- cmd: seid tx bank send $ADMIN_ACC $BANK_TEST_ACC 1sei --from $ADMIN_ACC --chain-id sei -b block -y --fees 10sei --dry-run --keyring-backend test | ||
- cmd: seid tx bank send $ADMIN_ACC $BANK_TEST_ACC 1000sei --from $ADMIN_ACC --chain-id sei -b block -y --dry-run --keyring-backend test | ||
env: GAS_ESIMATE | ||
|
||
- cmd: echo $GAS_ESIMATE_JSON | "jq. " | ||
|
||
# Validate that only the 1sei is sent | ||
- cmd: seid q bank balances $BANK_TEST_ACC --output json | jq -r .balances[0].amount | ||
env: BANK_TEST_BAL | ||
|
||
verifiers: | ||
# Bank balance should be 1sei | ||
- type: eval | ||
expr: BANK_TEST_BAL == 1000000 | ||
- type: eval | ||
expr: GAS_ESIMATE == "gas estimate 123" | ||
# - type: eval | ||
# expr: BANK_TEST_BAL == 1000000 | ||
- type: regex | ||
expr: "gas_estimate: [0-9]+" | ||
result: GAS_ESIMATE |