Skip to content

Commit

Permalink
wire up main()
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidNix committed Sep 26, 2023
1 parent 52704a0 commit 181d971
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ func buildCosmosTasks(cosmosMets *metrics.Cosmos, internalMets *metrics.Internal
if len(valTasks) > 0 {
tasks = append(tasks, cosmos.NewValParamsTask(cosmosMets, restClient, chain))
}

// For loop work around tasks being an array of Task interface
accountTasks := cosmos.NewAccountTasks(cosmosMets, restClient, chain)
for i := range accountTasks {
tasks = append(tasks, accountTasks[i])
}
}

return tasks
Expand Down
5 changes: 5 additions & 0 deletions config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ cosmos:
validators:
# The consensus address of a validator.
- consaddress: cosmosvalcons164q2kq3q3psj436t9p7swmdlh39rw73wpy6qx6
# Query account balances for cosmos addresses.
accounts:
- address: cosmos130mdu9a0etmeuw52qfxk73pn0ga6gawkryh2z6
alias: cosmoshub-test
denoms: ["uatom", "ibc/B05539B66B72E2739B986B86391E5D08F12B8D5D2C2A7F8F8CF9ADF674DFA231"]
- chainID: osmosis-1
rest:
- url: https://osmosis-api.polkachu.com
Expand Down

0 comments on commit 181d971

Please sign in to comment.