-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add e2e tests for ibc_status params (#1978)
* chore: add tests in flow 1. check the quota after ibc_transfer 2. send the tokens to umee to gaia and back 3. disable the quota check 4. check the prices effected or not * chore: fix the lint * review: address the pr comments * Apply suggestions from code review * review: fix the lint --------- Co-authored-by: Robert Zaremba <robert@zaremba.ch>
- Loading branch information
1 parent
f67ec3d
commit 7f05ad4
Showing
12 changed files
with
239 additions
and
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package client | ||
|
||
import ( | ||
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1" | ||
) | ||
|
||
func (c Client) GovQClient() govtypes.QueryClient { | ||
return govtypes.NewQueryClient(c.Query.GrpcConn) | ||
} | ||
|
||
func (c Client) GovProposal(proposalID uint64) (*govtypes.Proposal, error) { | ||
ctx, cancel := c.NewQCtx() | ||
defer cancel() | ||
|
||
queryResponse, err := c.GovQClient().Proposal(ctx, &govtypes.QueryProposalRequest{ProposalId: proposalID}) | ||
if err != nil { | ||
return nil, err | ||
} | ||
return queryResponse.Proposal, nil | ||
} |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package client | ||
|
||
import ( | ||
"github.com/umee-network/umee/v4/x/uibc" | ||
) | ||
|
||
func (c Client) UIBCQueryClient() uibc.QueryClient { | ||
return uibc.NewQueryClient(c.Query.GrpcConn) | ||
} | ||
|
||
func (c Client) QueryUIBCParams() (uibc.Params, error) { | ||
ctx, cancel := c.NewQCtx() | ||
defer cancel() | ||
|
||
queryResponse, err := c.UIBCQueryClient().Params(ctx, &uibc.QueryParams{}) | ||
if err != nil { | ||
return uibc.Params{}, err | ||
} | ||
return queryResponse.Params, nil | ||
} |
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
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
Oops, something went wrong.