Skip to content

Commit

Permalink
test: add query osmosis twap test
Browse files Browse the repository at this point in the history
  • Loading branch information
Duong Minh Ngoc committed Jan 17, 2024
1 parent cfc1a56 commit ba378a8
Show file tree
Hide file tree
Showing 3 changed files with 517 additions and 1 deletion.
15 changes: 15 additions & 0 deletions tests/interchaintest/feeabs/tx.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package feeabs

import (
"context"
"github.com/strangelove-ventures/interchaintest/v7/chain/cosmos"
)

func QueryOsmosisTWAP(c *cosmos.CosmosChain, ctx context.Context, keyName string) (string, error) {
tn := c.Validators[0]
if len(c.FullNodes) > 0 {
tn = c.FullNodes[0]
}
cmd := []string{"feeabs", "query-osmosis-twap"}
return tn.ExecTx(ctx, keyName, cmd...)
}
2 changes: 1 addition & 1 deletion tests/interchaintest/packet_foward_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
paramsutils "github.com/cosmos/cosmos-sdk/x/params/client/utils"

transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"
interchaintest "github.com/strangelove-ventures/interchaintest/v7"
"github.com/strangelove-ventures/interchaintest/v7"
"github.com/strangelove-ventures/interchaintest/v7/chain/cosmos"
"github.com/strangelove-ventures/interchaintest/v7/ibc"
"github.com/strangelove-ventures/interchaintest/v7/testreporter"
Expand Down
Loading

0 comments on commit ba378a8

Please sign in to comment.