Skip to content

Commit

Permalink
Done
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonWeng committed Jun 30, 2023
1 parent cc1e6a8 commit 2ff5d46
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ require (
replace (
github.com/CosmWasm/wasmd => github.com/sei-protocol/sei-wasmd v0.0.2
github.com/confio/ics23/go => github.com/cosmos/cosmos-sdk/ics23/go v0.8.0
github.com/cosmos/cosmos-sdk => github.com/sei-protocol/sei-cosmos v0.2.53
github.com/cosmos/cosmos-sdk => github.com/sei-protocol/sei-cosmos v0.2.57
github.com/cosmos/iavl => github.com/sei-protocol/sei-iavl v0.1.7
github.com/cosmos/ibc-go/v3 => github.com/sei-protocol/sei-ibc-go/v3 v3.1.0
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1074,8 +1074,8 @@ github.com/securego/gosec/v2 v2.11.0/go.mod h1:SX8bptShuG8reGC0XS09+a4H2BoWSJi+f
github.com/segmentio/fasthash v1.0.3/go.mod h1:waKX8l2N8yckOgmSsXJi7x1ZfdKZ4x7KRMzBtS3oedY=
github.com/sei-protocol/goutils v0.0.2 h1:Bfa7Sv+4CVLNM20QcpvGb81B8C5HkQC/kW1CQpIbXDA=
github.com/sei-protocol/goutils v0.0.2/go.mod h1:iYE2DuJfEnM+APPehr2gOUXfuLuPsVxorcDO+Tzq9q8=
github.com/sei-protocol/sei-cosmos v0.2.53 h1:MSH00lb3ahioaOnJNC4yvMNNPuC9rC0kBZcY30ay5QI=
github.com/sei-protocol/sei-cosmos v0.2.53/go.mod h1:XSmrSNlBQ7OQrk6VZMgARWsnD+1JSnQeDEZ7LEmexbo=
github.com/sei-protocol/sei-cosmos v0.2.57 h1:NjhLbsAAFHw3HUZub2Fxklb0vKpDSxNXovTZDH+40iI=
github.com/sei-protocol/sei-cosmos v0.2.57/go.mod h1:XSmrSNlBQ7OQrk6VZMgARWsnD+1JSnQeDEZ7LEmexbo=
github.com/sei-protocol/sei-iavl v0.1.7 h1:cUdHDBkxs0FF/kOt1qCVLm0K+Bqaw92/dbZSgn4kxiA=
github.com/sei-protocol/sei-iavl v0.1.7/go.mod h1:7PfkEVT5dcoQE+s/9KWdoXJ8VVVP1QpYYPLdxlkSXFk=
github.com/sei-protocol/sei-ibc-go/v3 v3.1.0 h1:rFHk2R/3vbG9iNr7cYtVclW/UyEDSRFjNVPz60zZswU=
Expand Down
16 changes: 8 additions & 8 deletions integration_test/bank_module/simulation_tx.yaml
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

0 comments on commit 2ff5d46

Please sign in to comment.