Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: improve account and validator details page loading speed [web-desmos] #1322

Merged
merged 44 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
267515e
updated online voting power hooks for validator details
MonikaCat Jan 25, 2024
56ccdfb
updated validator overview hooks for validator details
MonikaCat Jan 25, 2024
8b4abff
fix queries for validator details page
MonikaCat Jan 29, 2024
5b679ee
update account details query loading
MonikaCat Jan 29, 2024
6db1753
updated graphql query
MonikaCat Jan 29, 2024
a3b7c08
updated graphql query
MonikaCat Jan 29, 2024
e0efc47
add validator exist check
MonikaCat Jan 29, 2024
ea88e8f
fix: updated validator details page, allow profile and overview to lo…
MonikaCat Jan 30, 2024
dcb143e
fix: updated account details page balance to load first
MonikaCat Jan 30, 2024
4cf1964
updated apps/web graphql
MonikaCat Jan 30, 2024
eba9c12
updated ui graphql
MonikaCat Jan 30, 2024
39d9836
cleanup hooks
MonikaCat Jan 30, 2024
de3170f
updated apps/web-agoric graphql
MonikaCat Jan 30, 2024
1129197
updated apps/web-akash graphql
MonikaCat Jan 30, 2024
8ad5392
updated apps/web-archway graphql
MonikaCat Jan 30, 2024
3d42671
updated apps/web-assetmantle graphql
MonikaCat Jan 30, 2024
4396359
updated apps/web-band graphql
MonikaCat Jan 30, 2024
b6cc6c8
updated apps/web-bitsong graphql
MonikaCat Jan 30, 2024
a993d14
updated apps/web-cheqd graphql
MonikaCat Jan 30, 2024
88c8dca
updated apps/web-comdex graphql
MonikaCat Jan 30, 2024
fe94099
updated apps/web-coreum graphql
MonikaCat Jan 30, 2024
9223a42
updated apps/web-cosmos graphql
MonikaCat Jan 30, 2024
adb7c2d
updated apps/web-crescent graphql and validator details page
MonikaCat Jan 30, 2024
1186f92
updated apps/web-desmos graphql
MonikaCat Jan 30, 2024
d6a0f8f
updated apps/web-emoney graphql and account and validator details page
MonikaCat Jan 30, 2024
e6f71fd
updated apps/web-gitopia graphql
MonikaCat Jan 30, 2024
0e82752
updated apps/web-humansai graphql
MonikaCat Jan 30, 2024
f398cec
updated apps/web-jackal graphql
MonikaCat Jan 30, 2024
837a614
updated apps/web-kyve graphql
MonikaCat Jan 30, 2024
be48f04
updated apps/web-likecoin graphql
MonikaCat Jan 30, 2024
a37381d
updated apps/web-nym graphql
MonikaCat Jan 30, 2024
076cd32
updated apps/web-osmosis graphql
MonikaCat Jan 30, 2024
50615bc
updated apps/web-persistence graphql
MonikaCat Jan 30, 2024
3044f15
updated apps/web-provenance graphql
MonikaCat Jan 30, 2024
6c35917
updated apps/web-quasar graphql
MonikaCat Jan 30, 2024
298a050
updated apps/web-quicksilver graphql
MonikaCat Jan 30, 2024
bc09083
updated apps/web-regen graphql
MonikaCat Jan 30, 2024
342b0aa
updated apps/web-rizon graphql
MonikaCat Jan 30, 2024
138c9c6
updated apps/web-wormhole graphql
MonikaCat Jan 30, 2024
64e516e
updated apps/web-stride graphql
MonikaCat Jan 30, 2024
b896198
updated apps/web-evmos graphql
MonikaCat Jan 30, 2024
41ce94b
fix lint
MonikaCat Jan 31, 2024
76f556b
updated tests
MonikaCat Jan 31, 2024
16ad827
added changeset
MonikaCat Jan 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .changeset/two-fireants-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
'web-assetmantle': major
'web-persistence': major
'web-quicksilver': major
'web-provenance': major
'web-crescent': major
'web-humansai': major
'web-likecoin': major
'web-wormhole': major
'web-archway': major
'web-bitsong': major
'web-gitopia': major
'web-osmosis': major
'web-agoric': major
'web-comdex': major
'web-coreum': major
'web-cosmos': major
'web-desmos': major
'web-emoney': major
'web-jackal': major
'web-quasar': major
'web-stride': major
'web-akash': major
'web-cheqd': major
'web-evmos': major
'web-nomic': major
'web-regen': major
'web-rizon': major
'web-band': major
'web-kyve': major
'web-nym': major
'ui': major
'web': major
---

improve account and validator details page loading speed
69 changes: 62 additions & 7 deletions apps/web-agoric/src/graphql/general/validator_details.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -23,40 +23,95 @@ subscription ValidatorLastSeenListener($address: String) {
}
}

query ValidatorDetails($address: String) {
stakingPool: staking_pool(order_by: {height: desc}, limit: 1, offset: 0) {
height
bonded: bonded_tokens
}
query ValidatorDescription($address: String) {
validator(where: {validator_info: {operator_address: {_eq: $address}}}) {
validatorDescriptions: validator_descriptions(order_by: {height: desc}, limit: 1) {
details
website
}
}
}

query ValidatorStatuses($address: String) {
validator(where: {validator_info: {operator_address: {_eq: $address}}}) {
validatorStatuses: validator_statuses(order_by: {height: desc}, limit: 1) {
status
jailed
height
}
}
slashingParams: slashing_params(order_by: {height: desc}, limit: 1) {
params
}
}

query ValidatorSigningInfos($address: String) {
validator(where: {validator_info: {operator_address: {_eq: $address}}}) {
validatorSigningInfos: validator_signing_infos(order_by: {height: desc}, limit: 1) {
missedBlocksCounter: missed_blocks_counter
tombstoned
}
}
}

query ValidatorInfo($address: String) {
validator(where: {validator_info: {operator_address: {_eq: $address}}}) {
validatorInfo: validator_info {
operatorAddress: operator_address
selfDelegateAddress: self_delegate_address
maxRate: max_rate
}
validatorDescriptions: validator_descriptions(order_by: {height: desc}, limit: 1) {
details
website
}
validatorStatuses: validator_statuses(order_by: {height: desc}, limit: 1) {
status
jailed
height
}
validatorSigningInfos: validator_signing_infos(order_by: {height: desc}, limit: 1) {
missedBlocksCounter: missed_blocks_counter
tombstoned
}
validatorCommissions: validator_commissions(order_by: {height: desc}, limit: 1) {
commission
}
}
slashingParams: slashing_params(order_by: {height: desc}, limit: 1) {
params
}
}

query ValidatorCommission($address: String) {
validator(where: {validator_info: {operator_address: {_eq: $address}}}) {
validatorCommissions: validator_commissions(order_by: {height: desc}, limit: 1) {
commission
}
}
}

query ValidatorVotingPowers($address: String) {
validator(where: {validator_info: {operator_address: {_eq: $address}}}) {
validatorVotingPowers: validator_voting_powers(offset: 0, limit: 1, order_by: {height: desc}) {
height
votingPower: voting_power
}
validatorStatuses: validator_statuses(order_by: {height: desc}, limit: 1) {
status
}
}
slashingParams: slashing_params(order_by: {height: desc}, limit: 1) {
params
stakingPool: staking_pool(order_by: {height: desc}, limit: 1, offset: 0) {
height
bonded: bonded_tokens
}
}

query ValidatorAddress($address: String) {
validator(where: {validator_info: {operator_address: {_eq: $address}}}) {
validatorInfo: validator_info {
operatorAddress: operator_address
selfDelegateAddress: self_delegate_address
}
}
}
Loading
Loading