Skip to content

Commit

Permalink
just prior to 0.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mgravitt committed Feb 14, 2021
1 parent f260a20 commit 7eca498
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ dockers:
binaries:
- daoctl
image_templates:
- "dsmaxds/daoctl:latest"
- "dsmaxds/daoctl:{{ .Tag }}"
- "dappdever/daoctl:latest"
- "dappdever/daoctl:{{ .Tag }}"
dockerfile: Dockerfile
extra_files:
- daoctl.yaml
Expand Down
16 changes: 0 additions & 16 deletions cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,23 +265,15 @@ var serveCmd = &cobra.Command{

hypha, err := getTokenSupply(ctx, api, viper.GetString("RewardToken.Contract"), viper.GetString("RewardToken.Symbol"))
if err == nil {
<<<<<<< Updated upstream
hyphaSupply.Set(assetToFloat(&hypha))
=======
hyphaSupply.Set(hypha)
>>>>>>> Stashed changes
} else {
errorCount.Add(1)
log.Println("Retrieval error: supply: token contract: "+viper.GetString("RewardToken.Contract")+" symbol: "+viper.GetString("RewardToken.Symbol"), err)
}

husd, err := getTokenSupply(ctx, api, viper.GetString("Treasury.TokenContract"), viper.GetString("Treasury.Symbol"))
if err == nil {
<<<<<<< Updated upstream
husdSupply.Set(assetToFloat(&husd))
=======
husdSupply.Set(husd)
>>>>>>> Stashed changes
} else {
errorCount.Add(1)
log.Println("Retrieval error: supply: token contract: "+viper.GetString("Treasury.TokenContract")+" symbol: "+viper.GetString("Treasury.Symbol"), err)
Expand All @@ -297,7 +289,6 @@ var serveCmd = &cobra.Command{

escrowedSeeds, err := getTokenBalance(ctx, api, viper.GetString("SeedsTokenContract"), viper.GetString("EscrowContract"), "SEEDS")
if err == nil {
<<<<<<< Updated upstream
escrowedSeedsBalance.Set(assetToFloat(&escrowedSeeds))
} else {
errorCount.Add(1)
Expand All @@ -321,9 +312,6 @@ var serveCmd = &cobra.Command{
proposals, err := getLegacyObjects(ctx, api, eos.AN(viper.GetString("DAOContract")), eos.Name("proposal"))
if err == nil {
openProposals.Set(float64(len(proposals)))
=======
voteEventCount.Set(float64(len(results)))
>>>>>>> Stashed changes
} else {
errorCount.Add(1)
log.Println("Retrieval error: an error querying legacy objects from "+viper.GetString("DAOContract")+" scope: proposal", err)
Expand All @@ -350,11 +338,7 @@ var serveCmd = &cobra.Command{
query.Limit = 1000
results, err := query.Results()
if err == nil {
<<<<<<< Updated upstream
voteEventCount.Set(float64(len(results)))
=======
daoEventCount.Set(float64(len(results)))
>>>>>>> Stashed changes
} else {
errorCount.Add(1)
log.Println("Error updating the vote count: ", err)
Expand Down
5 changes: 0 additions & 5 deletions daoctl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ HyperionEndpoint: https://telos.caleos.io
BallotPrefix: hypha1.....
RewardToken:
Contract: token.hypha
<<<<<<< Updated upstream
Symbol: HYPHA
=======

BallotPrefix: hypha1....
>>>>>>> Stashed changes
VoteTokenSymbol: HVOICE
ServePort: 8085
ScrapeInterval: 1m
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ require (

replace github.com/hypha-dao/dao-contracts/dao-go => ../dao-contracts/dao-go

replace github.com/hypha-dao/document-graph/docgraph => ../document-graph/docgraph
replace github.com/hypha-dao/document-graph/docgraph => ../dao-contracts/document-graph/docgraph
4 changes: 0 additions & 4 deletions views/payout.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,7 @@ func PayoutTable(payouts []models.Payout) *simpletable.Table {
{Align: simpletable.AlignRight, Text: util.FormatAsset(&payouts[index].SeedsEscrow, 0)},
{Align: simpletable.AlignRight, Text: util.FormatAsset(&payouts[index].SeedsLiquid, 0)},
{Align: simpletable.AlignRight, Text: payouts[index].CreatedDate.Time.Format("2006 Jan 02")},
<<<<<<< Updated upstream
{Align: simpletable.AlignRight, Text: string(payouts[index].BallotName)[9:]},
=======
{Align: simpletable.AlignRight, Text: string(payouts[index].BallotName)[10:]},
>>>>>>> Stashed changes
}
table.Body.Cells = append(table.Body.Cells, r)
}
Expand Down

0 comments on commit 7eca498

Please sign in to comment.