-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Testing] refactor: integration app / feat: add
IntegrationAppSuite
(…
…#827) ## Summary - Refactor integration app base app construction to eliminate duplicate DB construction. - Set default params for all poktroll modules, some were omitted. - Expose integration app's pre-generated account iterator for use by integration tests. - Add faucet account to integration app to consolidate funding mechanics for integration tests. - Add authz & bank modules to integration app in preparation for param update test porting/refactoring as integration tests (#826). - Add IntegrationAppSuite & base implementation. ## Dependents - #789 - #826 ## Issue - #799 ## Type of change Select one or more from the following: - [x] New feature, functionality or library - [ ] Consensus breaking; add the `consensus-breaking` label if so. See #791 for details - [ ] Bug fix - [x] Code health or cleanup - [ ] Documentation - [ ] Other (specify) ## Testing - [ ] **Documentation**: `make docusaurus_start`; only needed if you make doc changes - [ ] **Unit Tests**: `make go_develop_and_test` - [ ] **LocalNet E2E Tests**: `make test_e2e` - [ ] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. ## Sanity Checklist - [x] I have tested my changes using the available tooling - [x] I have commented my code - [x] I have performed a self-review of my own code; both comments & source code - [ ] I create and reference any new tickets, if applicable - [x] I have left TODOs throughout the codebase, if applicable --------- Co-authored-by: red-0ne <[email protected]> Co-authored-by: Daniel Olshansky <[email protected]>
- Loading branch information
1 parent
bdd925a
commit 9e544f3
Showing
14 changed files
with
1,021 additions
and
277 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
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,22 @@ | ||
package events | ||
|
||
import ( | ||
"strings" | ||
|
||
cosmostypes "github.com/cosmos/cosmos-sdk/types" | ||
) | ||
|
||
// GetAttributeValue returns the value of the attribute with the given key in the | ||
// event. The returned attribute value is trimmed of any quotation marks. If the | ||
// attribute does not exist, hasAttr is false. | ||
func GetAttributeValue( | ||
event *cosmostypes.Event, | ||
key string, | ||
) (value string, hasAttr bool) { | ||
attr, hasAttr := event.GetAttribute(key) | ||
if !hasAttr { | ||
return "", false | ||
} | ||
|
||
return strings.Trim(attr.GetValue(), "\""), true | ||
} |
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.