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: validator moniker display [web] #1314

Merged
merged 11 commits into from
Dec 6, 2023
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
Loading