Skip to content

Commit

Permalink
feat: update osmosis proposal and params page to display v1 [web-osmo…
Browse files Browse the repository at this point in the history
…sis] (#1317)

## Description

Closes: #XXXX

<!-- Add a description of the changes that this PR introduces and the
files that
are the most critical to review. -->

---

### Author Checklist

_All items are required. Please add a note to the item if the item is
not applicable and
please add links to any relevant follow up issues._

I have...

- [x] ran linting via `yarn lint`
- [ ] wrote tests where necessary
- [x] included the correct [type
prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json)
in the PR title
- [x] targeted the correct branch
- [ ] provided a link to the relevant issue or specification
- [x] reviewed "Files changed" and left comments if necessary
- [x] confirmed all CI checks have passed
- [x] added a changeset via [`yarn && yarn
changeset`](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md)
  • Loading branch information
MonikaCat authored Jan 10, 2024
1 parent 8789ccb commit 6f53ac8
Show file tree
Hide file tree
Showing 22 changed files with 2,675 additions and 772 deletions.
5 changes: 5 additions & 0 deletions .changeset/swift-monkeys-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'web-osmosis': major
---

update osmosis proposal and params page to display v1
3 changes: 2 additions & 1 deletion apps/web-osmosis/src/chain.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"title": "Osmosis Block Explorer",
"extra": {
"profile": true,
"graphqlWs": false
"graphqlWs": false,
"votingPowerExponent": 6
},
"previewImage": "https://s3.bigdipper.live/osmosis.png",
"themes": {
Expand Down
7 changes: 3 additions & 4 deletions apps/web-osmosis/src/graphql/general/params.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ query Params {
distributionParams: distribution_params(limit: 1, order_by: {height: desc}) {
params
}
govParams: gov_params (limit: 1, order_by: {height: desc}) {
depositParams: deposit_params
tallyParams: tally_params
votingParams: voting_params
govParams: gov_params(limit: 1, order_by: {height: desc}) {
params
height
}
}
5 changes: 3 additions & 2 deletions apps/web-osmosis/src/graphql/general/proposal_details.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ query ProposalDetails($proposalId: Int) {
content
proposalId: id
submitTime: submit_time
proposalType: proposal_type
metadata
summary
depositEndTime: deposit_end_time
votingStartTime: voting_start_time
votingEndTime: voting_end_time
Expand All @@ -25,7 +26,7 @@ query ProposalDetailsTally($proposalId: Int) {
bondedTokens: bonded_tokens
}
quorum: gov_params (limit: 1, order_by: {height: desc}) {
tallyParams: tally_params
tallyParams: params
}
}

Expand Down
1 change: 0 additions & 1 deletion apps/web-osmosis/src/graphql/general/token_price.graphql
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
subscription TokenPriceListener($denom: String) {
tokenPrice: token_price(where: {unit_name: {_eq: $denom}}) {
id
price
timestamp
marketCap: market_cap
Expand Down
Loading

1 comment on commit 6f53ac8

@vercel
Copy link

@vercel vercel bot commented on 6f53ac8 Jan 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

cosmos – ./

cosmos-bigdipper.vercel.app
cosmos-git-main-bigdipper.vercel.app
bigdipper.vercel.app

Please sign in to comment.