Skip to content

Commit

Permalink
Merge pull request #307 from comdex-official/com_refactor
Browse files Browse the repository at this point in the history
query modified
  • Loading branch information
pratikasr authored Jul 1, 2022
2 parents 3492ce3 + c91e8e6 commit 96ca745
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 74 deletions.
3 changes: 3 additions & 0 deletions proto/comdex/vault/v1beta1/vault.proto
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ message PairStatisticData {
string minted_amount = 4 [(gogoproto.moretags) = "yaml:\"minted_amount\"",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.nullable) = false];
uint64 extended_pair_vault_id = 5 [
(gogoproto.customname) = "ExtendedPairVaultID",
(gogoproto.moretags) = "yaml:\"extended_pair_vault_id\""];
}


Expand Down
1 change: 1 addition & 0 deletions x/vault/keeper/query_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,7 @@ func (q *queryServer) QueryPairsLockedAndMintedStatisticByApp(c context.Context,
statistics.AssetOutDenom = outDenom.Denom
statistics.CollateralAmount = data.CollateralLockedAmount
statistics.MintedAmount = data.TokenMintedAmount
statistics.ExtendedPairVaultID = data.ExtendedPairId

pairStatistics = append(pairStatistics, statistics)
}
Expand Down
177 changes: 103 additions & 74 deletions x/vault/types/vault.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 96ca745

Please sign in to comment.