Skip to content

Commit

Permalink
fix: validator moniker display [web] (#1314)
Browse files Browse the repository at this point in the history
## Description

Closes: #XXXX

[BDU-1147](https://forbole.atlassian.net/browse/BDU-1147)

<!-- 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
- [x] 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)


[BDU-1147]:
https://forbole.atlassian.net/browse/BDU-1147?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
  • Loading branch information
MonikaCat authored Dec 6, 2023
1 parent 13e3ff8 commit 31003c3
Show file tree
Hide file tree
Showing 105 changed files with 142 additions and 4,979 deletions.
5 changes: 5 additions & 0 deletions .changeset/grumpy-insects-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'web': minor
---

fix: validator moniker display
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
query ValidatorsAddressList {
validator {
validatorInfo: validator_info {
operatorAddress: operator_address
selfDelegateAddress: self_delegate_address
consensusAddress: consensus_address
}
validatorDescriptions: validator_descriptions(limit: 1, order_by: {height: desc}) {
moniker
identity
avatarUrl: avatar_url
}
}
}

query ValidatorAddresses {
validator(where: {validator_info: {operator_address: {_is_null: false}, consensus_address: {_is_null: false}, self_delegate_address: {_is_null: false}}}) {
validatorInfo: validator_info {
Expand Down
46 changes: 0 additions & 46 deletions apps/web-agoric/src/graphql/types/general_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13663,52 +13663,6 @@ export function useValidatorsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions
export type ValidatorsQueryHookResult = ReturnType<typeof useValidatorsQuery>;
export type ValidatorsLazyQueryHookResult = ReturnType<typeof useValidatorsLazyQuery>;
export type ValidatorsQueryResult = Apollo.QueryResult<ValidatorsQuery, ValidatorsQueryVariables>;
export const ValidatorsAddressListDocument = gql`
query ValidatorsAddressList {
validator {
validatorInfo: validator_info {
operatorAddress: operator_address
selfDelegateAddress: self_delegate_address
consensusAddress: consensus_address
}
validatorDescriptions: validator_descriptions(
limit: 1
order_by: {height: desc}
) {
moniker
identity
avatarUrl: avatar_url
}
}
}
`;

/**
* __useValidatorsAddressListQuery__
*
* To run a query within a React component, call `useValidatorsAddressListQuery` and pass it any options that fit your needs.
* When your component renders, `useValidatorsAddressListQuery` returns an object from Apollo Client that contains loading, error, and data properties
* you can use to render your UI.
*
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
*
* @example
* const { data, loading, error } = useValidatorsAddressListQuery({
* variables: {
* },
* });
*/
export function useValidatorsAddressListQuery(baseOptions?: Apollo.QueryHookOptions<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useQuery<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>(ValidatorsAddressListDocument, options);
}
export function useValidatorsAddressListLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useLazyQuery<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>(ValidatorsAddressListDocument, options);
}
export type ValidatorsAddressListQueryHookResult = ReturnType<typeof useValidatorsAddressListQuery>;
export type ValidatorsAddressListLazyQueryHookResult = ReturnType<typeof useValidatorsAddressListLazyQuery>;
export type ValidatorsAddressListQueryResult = Apollo.QueryResult<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>;
export const ValidatorAddressesDocument = gql`
query ValidatorAddresses {
validator(
Expand Down
15 changes: 0 additions & 15 deletions apps/web-akash/src/graphql/general/validators_address_list.graphql
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
query ValidatorsAddressList {
validator {
validatorInfo: validator_info {
operatorAddress: operator_address
selfDelegateAddress: self_delegate_address
consensusAddress: consensus_address
}
validatorDescriptions: validator_descriptions(limit: 1, order_by: {height: desc}) {
moniker
identity
avatarUrl: avatar_url
}
}
}

query ValidatorAddresses {
validator(where: {validator_info: {operator_address: {_is_null: false}, consensus_address: {_is_null: false}, self_delegate_address: {_is_null: false}}}) {
validatorInfo: validator_info {
Expand Down
46 changes: 0 additions & 46 deletions apps/web-akash/src/graphql/types/general_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14930,52 +14930,6 @@ export function useValidatorsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions
export type ValidatorsQueryHookResult = ReturnType<typeof useValidatorsQuery>;
export type ValidatorsLazyQueryHookResult = ReturnType<typeof useValidatorsLazyQuery>;
export type ValidatorsQueryResult = Apollo.QueryResult<ValidatorsQuery, ValidatorsQueryVariables>;
export const ValidatorsAddressListDocument = gql`
query ValidatorsAddressList {
validator {
validatorInfo: validator_info {
operatorAddress: operator_address
selfDelegateAddress: self_delegate_address
consensusAddress: consensus_address
}
validatorDescriptions: validator_descriptions(
limit: 1
order_by: {height: desc}
) {
moniker
identity
avatarUrl: avatar_url
}
}
}
`;

/**
* __useValidatorsAddressListQuery__
*
* To run a query within a React component, call `useValidatorsAddressListQuery` and pass it any options that fit your needs.
* When your component renders, `useValidatorsAddressListQuery` returns an object from Apollo Client that contains loading, error, and data properties
* you can use to render your UI.
*
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
*
* @example
* const { data, loading, error } = useValidatorsAddressListQuery({
* variables: {
* },
* });
*/
export function useValidatorsAddressListQuery(baseOptions?: Apollo.QueryHookOptions<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useQuery<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>(ValidatorsAddressListDocument, options);
}
export function useValidatorsAddressListLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useLazyQuery<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>(ValidatorsAddressListDocument, options);
}
export type ValidatorsAddressListQueryHookResult = ReturnType<typeof useValidatorsAddressListQuery>;
export type ValidatorsAddressListLazyQueryHookResult = ReturnType<typeof useValidatorsAddressListLazyQuery>;
export type ValidatorsAddressListQueryResult = Apollo.QueryResult<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>;
export const ValidatorAddressesDocument = gql`
query ValidatorAddresses {
validator(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
query ValidatorsAddressList {
validator {
validatorInfo: validator_info {
operatorAddress: operator_address
selfDelegateAddress: self_delegate_address
consensusAddress: consensus_address
}
validatorDescriptions: validator_descriptions(limit: 1, order_by: {height: desc}) {
moniker
identity
avatarUrl: avatar_url
}
}
}

query ValidatorAddresses {
validator(where: {validator_info: {operator_address: {_is_null: false}, consensus_address: {_is_null: false}, self_delegate_address: {_is_null: false}}}) {
validatorInfo: validator_info {
Expand Down
46 changes: 0 additions & 46 deletions apps/web-archway/src/graphql/types/general_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9421,52 +9421,6 @@ export function useValidatorsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions
export type ValidatorsQueryHookResult = ReturnType<typeof useValidatorsQuery>;
export type ValidatorsLazyQueryHookResult = ReturnType<typeof useValidatorsLazyQuery>;
export type ValidatorsQueryResult = Apollo.QueryResult<ValidatorsQuery, ValidatorsQueryVariables>;
export const ValidatorsAddressListDocument = gql`
query ValidatorsAddressList {
validator {
validatorInfo: validator_info {
operatorAddress: operator_address
selfDelegateAddress: self_delegate_address
consensusAddress: consensus_address
}
validatorDescriptions: validator_descriptions(
limit: 1
order_by: {height: desc}
) {
moniker
identity
avatarUrl: avatar_url
}
}
}
`;

/**
* __useValidatorsAddressListQuery__
*
* To run a query within a React component, call `useValidatorsAddressListQuery` and pass it any options that fit your needs.
* When your component renders, `useValidatorsAddressListQuery` returns an object from Apollo Client that contains loading, error, and data properties
* you can use to render your UI.
*
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
*
* @example
* const { data, loading, error } = useValidatorsAddressListQuery({
* variables: {
* },
* });
*/
export function useValidatorsAddressListQuery(baseOptions?: Apollo.QueryHookOptions<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useQuery<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>(ValidatorsAddressListDocument, options);
}
export function useValidatorsAddressListLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useLazyQuery<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>(ValidatorsAddressListDocument, options);
}
export type ValidatorsAddressListQueryHookResult = ReturnType<typeof useValidatorsAddressListQuery>;
export type ValidatorsAddressListLazyQueryHookResult = ReturnType<typeof useValidatorsAddressListLazyQuery>;
export type ValidatorsAddressListQueryResult = Apollo.QueryResult<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>;
export const ValidatorAddressesDocument = gql`
query ValidatorAddresses {
validator(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
query ValidatorsAddressList {
validator {
validatorInfo: validator_info {
operatorAddress: operator_address
selfDelegateAddress: self_delegate_address
consensusAddress: consensus_address
}
validatorDescriptions: validator_descriptions(limit: 1, order_by: {height: desc}) {
moniker
identity
avatarUrl: avatar_url
}
}
}

query ValidatorAddresses {
validator(where: {validator_info: {operator_address: {_is_null: false}, consensus_address: {_is_null: false}, self_delegate_address: {_is_null: false}}}) {
validatorInfo: validator_info {
Expand Down
46 changes: 0 additions & 46 deletions apps/web-assetmantle/src/graphql/types/general_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13667,52 +13667,6 @@ export function useValidatorsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions
export type ValidatorsQueryHookResult = ReturnType<typeof useValidatorsQuery>;
export type ValidatorsLazyQueryHookResult = ReturnType<typeof useValidatorsLazyQuery>;
export type ValidatorsQueryResult = Apollo.QueryResult<ValidatorsQuery, ValidatorsQueryVariables>;
export const ValidatorsAddressListDocument = gql`
query ValidatorsAddressList {
validator {
validatorInfo: validator_info {
operatorAddress: operator_address
selfDelegateAddress: self_delegate_address
consensusAddress: consensus_address
}
validatorDescriptions: validator_descriptions(
limit: 1
order_by: {height: desc}
) {
moniker
identity
avatarUrl: avatar_url
}
}
}
`;

/**
* __useValidatorsAddressListQuery__
*
* To run a query within a React component, call `useValidatorsAddressListQuery` and pass it any options that fit your needs.
* When your component renders, `useValidatorsAddressListQuery` returns an object from Apollo Client that contains loading, error, and data properties
* you can use to render your UI.
*
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
*
* @example
* const { data, loading, error } = useValidatorsAddressListQuery({
* variables: {
* },
* });
*/
export function useValidatorsAddressListQuery(baseOptions?: Apollo.QueryHookOptions<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useQuery<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>(ValidatorsAddressListDocument, options);
}
export function useValidatorsAddressListLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useLazyQuery<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>(ValidatorsAddressListDocument, options);
}
export type ValidatorsAddressListQueryHookResult = ReturnType<typeof useValidatorsAddressListQuery>;
export type ValidatorsAddressListLazyQueryHookResult = ReturnType<typeof useValidatorsAddressListLazyQuery>;
export type ValidatorsAddressListQueryResult = Apollo.QueryResult<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>;
export const ValidatorAddressesDocument = gql`
query ValidatorAddresses {
validator(
Expand Down
15 changes: 0 additions & 15 deletions apps/web-band/src/graphql/general/validators_address_list.graphql
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
query ValidatorsAddressList {
validator {
validatorInfo: validator_info {
operatorAddress: operator_address
selfDelegateAddress: self_delegate_address
consensusAddress: consensus_address
}
validatorDescriptions: validator_descriptions(limit: 1, order_by: {height: desc}) {
moniker
identity
avatarUrl: avatar_url
}
}
}

query ValidatorAddresses {
validator(where: {validator_info: {operator_address: {_is_null: false}, consensus_address: {_is_null: false}, self_delegate_address: {_is_null: false}}}) {
validatorInfo: validator_info {
Expand Down
46 changes: 0 additions & 46 deletions apps/web-band/src/graphql/types/general_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13854,52 +13854,6 @@ export function useValidatorsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions
export type ValidatorsQueryHookResult = ReturnType<typeof useValidatorsQuery>;
export type ValidatorsLazyQueryHookResult = ReturnType<typeof useValidatorsLazyQuery>;
export type ValidatorsQueryResult = Apollo.QueryResult<ValidatorsQuery, ValidatorsQueryVariables>;
export const ValidatorsAddressListDocument = gql`
query ValidatorsAddressList {
validator {
validatorInfo: validator_info {
operatorAddress: operator_address
selfDelegateAddress: self_delegate_address
consensusAddress: consensus_address
}
validatorDescriptions: validator_descriptions(
limit: 1
order_by: {height: desc}
) {
moniker
identity
avatarUrl: avatar_url
}
}
}
`;

/**
* __useValidatorsAddressListQuery__
*
* To run a query within a React component, call `useValidatorsAddressListQuery` and pass it any options that fit your needs.
* When your component renders, `useValidatorsAddressListQuery` returns an object from Apollo Client that contains loading, error, and data properties
* you can use to render your UI.
*
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
*
* @example
* const { data, loading, error } = useValidatorsAddressListQuery({
* variables: {
* },
* });
*/
export function useValidatorsAddressListQuery(baseOptions?: Apollo.QueryHookOptions<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useQuery<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>(ValidatorsAddressListDocument, options);
}
export function useValidatorsAddressListLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useLazyQuery<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>(ValidatorsAddressListDocument, options);
}
export type ValidatorsAddressListQueryHookResult = ReturnType<typeof useValidatorsAddressListQuery>;
export type ValidatorsAddressListLazyQueryHookResult = ReturnType<typeof useValidatorsAddressListLazyQuery>;
export type ValidatorsAddressListQueryResult = Apollo.QueryResult<ValidatorsAddressListQuery, ValidatorsAddressListQueryVariables>;
export const ValidatorAddressesDocument = gql`
query ValidatorAddresses {
validator(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
query ValidatorsAddressList {
validator {
validatorInfo: validator_info {
operatorAddress: operator_address
selfDelegateAddress: self_delegate_address
consensusAddress: consensus_address
}
validatorDescriptions: validator_descriptions(limit: 1, order_by: {height: desc}) {
moniker
identity
avatarUrl: avatar_url
}
}
}

query ValidatorAddresses {
validator(where: {validator_info: {operator_address: {_is_null: false}, consensus_address: {_is_null: false}, self_delegate_address: {_is_null: false}}}) {
validatorInfo: validator_info {
Expand Down
Loading

1 comment on commit 31003c3

@vercel
Copy link

@vercel vercel bot commented on 31003c3 Dec 6, 2023

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-git-main-bigdipper.vercel.app
cosmos-bigdipper.vercel.app
bigdipper.vercel.app

Please sign in to comment.