-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup e2e tests on a single chain; add balances query test (#1193)
* create e2e image and a makefile step to build * progress * e2e tests in ci * use root distroless image and correct volume path * remove chain b references * implement query balances * implement TestQueryBalances * trigger worflow * trigger * test-e2e Makefile step * fmt and sleep if service unavailable * README * restore branches * add changelog entry * exclude e2e from regular tests * -E flag for grep exclusion * grep * go mod tidy --compat=1.17 * manually tidy go.mod
- Loading branch information
1 parent
c71f077
commit c32c5b3
Showing
10 changed files
with
212 additions
and
109 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,25 @@ | ||
package chain | ||
|
||
import "fmt" | ||
|
||
type ChainMeta struct { | ||
DataDir string `json:"dataDir"` | ||
Id string `json:"id"` | ||
} | ||
|
||
type Validator struct { | ||
Name string `json:"name"` | ||
ConfigDir string `json:"configDir"` | ||
Index int `json:"index"` | ||
Mnemonic string `json:"mnemonic"` | ||
PublicAddress string `json:"publicAddress"` | ||
} | ||
|
||
type Chain struct { | ||
ChainMeta ChainMeta `json:"chainMeta"` | ||
Validators []*Validator `json:"validators"` | ||
} | ||
|
||
func (c *ChainMeta) configDir() string { | ||
return fmt.Sprintf("%s/%s", c.DataDir, c.Id) | ||
} |
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.