diff --git a/apps/web-stratos/src/graphql/general/account_details_documents.ts b/apps/web-stratos/src/graphql/general/account_details_documents.ts deleted file mode 100644 index 72915dd849..0000000000 --- a/apps/web-stratos/src/graphql/general/account_details_documents.ts +++ /dev/null @@ -1,105 +0,0 @@ -export const AccountCommissionDocument = /* GraphQL */ ` - query AccountCommission($validatorAddress: String!) { - commission: action_validator_commission_amount(address: $validatorAddress) { - coins - } - } -`; - -export const AccountWithdrawalAddressDocument = /* GraphQL */ ` - query AccountWithdrawalAddress($address: String!) { - withdrawalAddress: action_delegator_withdraw_address(address: $address) { - address - } - } -`; - -export const AccountBalancesDocument = /* GraphQL */ ` - query AccountBalances($address: String!) { - accountBalances: action_account_balance(address: $address) { - coins - } - } -`; - -export const AccountDelegationBalanceDocument = /* GraphQL */ ` - query AccountDelegationBalance($address: String!) { - delegationBalance: action_delegation_total(address: $address) { - coins - } - } -`; - -export const AccountUnbondingBalanceDocument = /* GraphQL */ ` - query AccountUnbondingBalance($address: String!) { - unbondingBalance: action_unbonding_delegation_total(address: $address) { - coins - } - } -`; - -export const AccountDelegationRewardsDocument = /* GraphQL */ ` - query AccountDelegationRewards($address: String!) { - delegationRewards: action_delegation_reward(address: $address) { - validatorAddress: validator_address - coins - } - } -`; - -export const AccountDelegationsDocument = /* GraphQL */ ` - query AccountDelegations( - $address: String! - $offset: Int = 0 - $limit: Int = 10 - $pagination: Boolean! = true - ) { - delegations: action_delegation( - address: $address - limit: $limit - offset: $offset - count_total: $pagination - ) { - delegations - pagination - } - } -`; - -export const AccountRedelegationsDocument = /* GraphQL */ ` - query AccountRedelegations( - $address: String! - $offset: Int = 0 - $limit: Int = 10 - $pagination: Boolean! = true - ) { - redelegations: action_redelegation( - address: $address - limit: $limit - offset: $offset - count_total: $pagination - ) { - redelegations - pagination - } - } -`; - -export const AccountUndelegationsDocument = /* GraphQL */ ` - query AccountUndelegations( - $address: String! - $offset: Int = 0 - $limit: Int = 10 - $pagination: Boolean! = true - ) { - undelegations: action_unbonding_delegation( - address: $address - limit: $limit - offset: $offset - count_total: $pagination - ) { - undelegations: unbonding_delegations - pagination - } - } -`; diff --git a/apps/web-stratos/src/graphql/general/active_validator_count.graphql b/apps/web-stratos/src/graphql/general/active_validator_count.graphql deleted file mode 100644 index 8ba3cee775..0000000000 --- a/apps/web-stratos/src/graphql/general/active_validator_count.graphql +++ /dev/null @@ -1,17 +0,0 @@ -query ActiveValidatorCount { - activeTotal: validator_status_aggregate(where: {status: {_eq: 3}}) { - aggregate { - count - } - } - inactiveTotal: validator_status_aggregate(where: {status: {_neq: 3}}) { - aggregate { - count - } - } - total: validator_status_aggregate { - aggregate { - count - } - } -} diff --git a/apps/web-stratos/src/graphql/general/block_details.graphql b/apps/web-stratos/src/graphql/general/block_details.graphql deleted file mode 100644 index e9c1530a53..0000000000 --- a/apps/web-stratos/src/graphql/general/block_details.graphql +++ /dev/null @@ -1,34 +0,0 @@ -query BlockDetails($height: bigint, $signatureHeight: bigint) { - transaction(where: {height: {_eq: $height}}) { - height - hash - messages - success - logs - } - block(limit: 1, where: {height: {_eq: $height}}) { - height - hash - timestamp - txs: num_txs - validator { - validatorInfo: validator_info { - operatorAddress: operator_address - } - } - } - preCommitsAggregate: pre_commit_aggregate(where: {height: {_eq: $signatureHeight}}) { - aggregate{ - sum { - votingPower: voting_power - } - } - } - preCommits: pre_commit(where: {height: {_eq: $signatureHeight}}) { - validator { - validatorInfo: validator_info { - operatorAddress: operator_address - } - } - } -} diff --git a/apps/web-stratos/src/graphql/general/block_height.graphql b/apps/web-stratos/src/graphql/general/block_height.graphql deleted file mode 100644 index 9120a53f6f..0000000000 --- a/apps/web-stratos/src/graphql/general/block_height.graphql +++ /dev/null @@ -1,5 +0,0 @@ -subscription LatestBlockHeightListener($offset: Int = 0) { - height: block(order_by: {height: desc}, limit: 1, offset: $offset) { - height - } -} diff --git a/apps/web-stratos/src/graphql/general/block_time.graphql b/apps/web-stratos/src/graphql/general/block_time.graphql deleted file mode 100644 index 8c9b3bbacb..0000000000 --- a/apps/web-stratos/src/graphql/general/block_time.graphql +++ /dev/null @@ -1,11 +0,0 @@ -query AverageBlockTime { - averageBlockTime: average_block_time_per_hour(limit: 1, order_by: {height: desc}) { - averageTime: average_time - } -} - -query LatestBlockTimestamp($offset: Int = 0) { - block: block(order_by: {height: desc}, limit: 1, offset: $offset) { - timestamp - } -} diff --git a/apps/web-stratos/src/graphql/general/blocks.graphql b/apps/web-stratos/src/graphql/general/blocks.graphql deleted file mode 100644 index 037f11e378..0000000000 --- a/apps/web-stratos/src/graphql/general/blocks.graphql +++ /dev/null @@ -1,33 +0,0 @@ -subscription BlocksListener($limit: Int = 7, $offset: Int = 0) { - blocks: block(limit: $limit, offset: $offset, order_by: {height: desc}) { - height - txs: num_txs - hash - timestamp - validator { - validatorInfo: validator_info { - operatorAddress: operator_address - } - } - } -} - - -query Blocks($limit: Int = 7, $offset: Int = 0) { - blocks: block(limit: $limit, offset: $offset, order_by: {height: desc}) { - height - txs: num_txs - hash - timestamp - validator { - validatorInfo: validator_info { - operatorAddress: operator_address - self_delegate_address - } - validatorDescriptions: validator_descriptions(limit: 1, order_by: {height: desc}) { - moniker - identity - } - } - } -} diff --git a/apps/web-stratos/src/graphql/general/chain_id.graphql b/apps/web-stratos/src/graphql/general/chain_id.graphql deleted file mode 100644 index c11d7e10bc..0000000000 --- a/apps/web-stratos/src/graphql/general/chain_id.graphql +++ /dev/null @@ -1,6 +0,0 @@ -query ChainId { - genesis(limit: 1, order_by: {time: desc}) { - chainId: chain_id - time - } -} diff --git a/apps/web-stratos/src/graphql/general/market_data.graphql b/apps/web-stratos/src/graphql/general/market_data.graphql deleted file mode 100644 index 67569522e0..0000000000 --- a/apps/web-stratos/src/graphql/general/market_data.graphql +++ /dev/null @@ -1,21 +0,0 @@ -query MarketData ($denom: String) { - communityPool: community_pool(order_by: {height: desc}, limit: 1) { - coins - } - inflation: inflation(order_by: {height: desc}, limit: 1) { - value - } - tokenPrice: token_price(where: {unit_name: {_eq: $denom}}) { - marketCap: market_cap - price - } - supply { - coins - } - bondedTokens: staking_pool(order_by: {height: desc}, limit: 1) { - bonded_tokens - } - distributionParams: distribution_params { - params - } -} diff --git a/apps/web-stratos/src/graphql/general/messages_by_address.graphql b/apps/web-stratos/src/graphql/general/messages_by_address.graphql deleted file mode 100644 index 1eba15606a..0000000000 --- a/apps/web-stratos/src/graphql/general/messages_by_address.graphql +++ /dev/null @@ -1,15 +0,0 @@ -query GetMessagesByAddress($address: _text, $limit: bigint = 50, $offset: bigint = 0 $types: _text = "{}") { - messagesByAddress: messages_by_address(args: {addresses: $address, types: $types, limit: $limit, offset: $offset}) { - transaction { - height - hash - success - messages - logs - block { - height - timestamp - } - } - } -} diff --git a/apps/web-stratos/src/graphql/general/online_voting_power.graphql b/apps/web-stratos/src/graphql/general/online_voting_power.graphql deleted file mode 100644 index bbfebf96f8..0000000000 --- a/apps/web-stratos/src/graphql/general/online_voting_power.graphql +++ /dev/null @@ -1,20 +0,0 @@ -query OnlineVotingPower { - activeTotal: validator_status_aggregate(where: {status: {_eq: 3}}) { - aggregate { - count - } - } - validatorVotingPowerAggregate: validator_voting_power_aggregate(where: {validator: {validator_statuses: {status: {_eq: 3}}}}) { - aggregate { - sum { - votingPower: voting_power - } - } - } - stakingPool: staking_pool(order_by: {height: desc}, limit: 1) { - bonded: bonded_tokens - } - stakingParams: staking_params(limit: 1) { - params - } -} diff --git a/apps/web-stratos/src/graphql/general/params.graphql b/apps/web-stratos/src/graphql/general/params.graphql deleted file mode 100644 index 322ead5a1f..0000000000 --- a/apps/web-stratos/src/graphql/general/params.graphql +++ /dev/null @@ -1,18 +0,0 @@ -query Params { - stakingParams: staking_params(limit: 1, order_by: {height: desc}) { - params - } - slashingParams: slashing_params(limit: 1, order_by: {height: desc}) { - params - } - mintParams: mint_params(limit: 1, order_by: {height: desc}) { - params - } - distributionParams: distribution_params(limit: 1, order_by: {height: desc}) { - params - } - govParams: gov_params(limit: 1, order_by: {height: desc}) { - params - height - } -} diff --git a/apps/web-stratos/src/graphql/general/proposal_details.graphql b/apps/web-stratos/src/graphql/general/proposal_details.graphql deleted file mode 100644 index e94fb744df..0000000000 --- a/apps/web-stratos/src/graphql/general/proposal_details.graphql +++ /dev/null @@ -1,54 +0,0 @@ -query ProposalDetails($proposalId: Int) { - proposal(where: {id: {_eq: $proposalId}}) { - proposer: proposer_address - title - description - status - content - proposalId: id - submitTime: submit_time - #proposalType: proposal_type - depositEndTime: deposit_end_time - votingStartTime: voting_start_time - votingEndTime: voting_end_time - } -} - -query ProposalDetailsTally($proposalId: Int) { - proposalTallyResult: proposal_tally_result(where: {proposal_id: {_eq: $proposalId}}) { - yes - no - noWithVeto: no_with_veto - abstain - } - stakingPool: proposal_staking_pool_snapshot(where: {proposal_id: {_eq: $proposalId}}) { - bondedTokens: bonded_tokens - } - quorum: gov_params (limit: 1, order_by: {height: desc}) { - tallyParams: params - } -} - -query ProposalDetailsDeposits($proposalId: Int) { - proposalDeposit: proposal_deposit(where: {proposal_id: {_eq: $proposalId}}, order_by: {height: desc}) { - amount - depositorAddress: depositor_address - block { - timestamp - } - } -} - -query ProposalDetailsVotes($proposalId: Int) { - proposalVote: proposal_vote(where: {proposal_id: {_eq: $proposalId}}, order_by: {height: desc}) { - option - voterAddress: voter_address - } - validatorStatuses: proposal_validator_status_snapshot(where: {proposal_id: {_eq: $proposalId}, status: {_eq: 3}}) { - validator { - validatorInfo: validator_info { - selfDelegateAddress: self_delegate_address - } - } - } -} diff --git a/apps/web-stratos/src/graphql/general/proposals.graphql b/apps/web-stratos/src/graphql/general/proposals.graphql deleted file mode 100644 index f7e08f978e..0000000000 --- a/apps/web-stratos/src/graphql/general/proposals.graphql +++ /dev/null @@ -1,14 +0,0 @@ -query Proposals ($limit: Int = 7, $offset: Int = 0) { - proposals: proposal (limit: $limit, offset: $offset, order_by: {id: desc}) { - title - proposalId: id - status - description - } - total: proposal_aggregate { - aggregate { - count - } - } -} - diff --git a/apps/web-stratos/src/graphql/general/token_price.graphql b/apps/web-stratos/src/graphql/general/token_price.graphql deleted file mode 100644 index 3ed50b2348..0000000000 --- a/apps/web-stratos/src/graphql/general/token_price.graphql +++ /dev/null @@ -1,15 +0,0 @@ -subscription TokenPriceListener($denom: String) { - tokenPrice: token_price(where: {unit_name: {_eq: $denom}}) { - price - timestamp - marketCap: market_cap - unitName: unit_name - } -} - -query TokenPriceHistory($denom: String, $limit: Int = 10) { - tokenPrice: token_price_history(where: {unit_name: {_eq: $denom}}, limit: $limit, order_by: {timestamp: desc}) { - price - timestamp - } -} diff --git a/apps/web-stratos/src/graphql/general/tokenomics.graphql b/apps/web-stratos/src/graphql/general/tokenomics.graphql deleted file mode 100644 index 783cfd99ee..0000000000 --- a/apps/web-stratos/src/graphql/general/tokenomics.graphql +++ /dev/null @@ -1,12 +0,0 @@ -query Tokenomics{ - stakingParams: staking_params(limit: 1) { - params - } - stakingPool: staking_pool(order_by: {height: desc}, limit: 1) { - bonded: bonded_tokens - unbonded: not_bonded_tokens - } - supply: supply(order_by: {height: desc}, limit: 1) { - coins - } -} diff --git a/apps/web-stratos/src/graphql/general/transaction_details.graphql b/apps/web-stratos/src/graphql/general/transaction_details.graphql deleted file mode 100644 index ace8e8135e..0000000000 --- a/apps/web-stratos/src/graphql/general/transaction_details.graphql +++ /dev/null @@ -1,17 +0,0 @@ -query TransactionDetails($hash: String) { - transaction(where: {hash: {_eq: $hash}}, limit: 1) { - hash: hash - height: height - block: block { - timestamp: timestamp - } - fee: fee - gasUsed: gas_used - gasWanted: gas_wanted - success: success - memo: memo - messages: messages - logs - rawLog: raw_log - } -} diff --git a/apps/web-stratos/src/graphql/general/transactions.graphql b/apps/web-stratos/src/graphql/general/transactions.graphql deleted file mode 100644 index 9fbc89fd74..0000000000 --- a/apps/web-stratos/src/graphql/general/transactions.graphql +++ /dev/null @@ -1,25 +0,0 @@ -subscription TransactionsListener($limit: Int = 7, $offset: Int = 0) { - transactions: transaction(limit: $limit, offset: $offset, order_by: {height: desc}) { - height - hash - success - block { - timestamp - } - messages - logs - } -} - -query Transactions($limit: Int = 7, $offset: Int = 0) { - transactions: transaction(limit: $limit, offset: $offset, order_by: {height: desc}) { - height - hash - success - block { - timestamp - } - messages - logs - } -} diff --git a/apps/web-stratos/src/graphql/general/validator_details.graphql b/apps/web-stratos/src/graphql/general/validator_details.graphql deleted file mode 100644 index cdc166572e..0000000000 --- a/apps/web-stratos/src/graphql/general/validator_details.graphql +++ /dev/null @@ -1,62 +0,0 @@ - -subscription LastHundredBlocks($address: String) { - block(offset: 1, order_by: {height: desc}, limit: 100) { - height - validator { - validatorInfo: validator_info { - operatorAddress: operator_address - } - } - transactions { - hash - } - precommits: pre_commits(where: {validator: {validator_info: {operator_address: {_eq: $address}}}}) { - validatorAddress: validator_address - } - } -} - -subscription ValidatorLastSeenListener($address: String) { - preCommit: pre_commit(limit: 1, where: {validator: {validator_info: {operator_address: {_eq: $address}}}}, order_by: {height: desc}) { - height - timestamp - } -} - -query ValidatorDetails($address: String) { - stakingPool: staking_pool(order_by: {height: desc}, limit: 1, offset: 0) { - height - bonded: bonded_tokens - } - validator(where: {validator_info: {operator_address: {_eq: $address}}}) { - 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 - } - validatorInfo: validator_info { - operatorAddress: operator_address - selfDelegateAddress: self_delegate_address - maxRate: max_rate - } - validatorCommissions: validator_commissions(order_by: {height: desc}, limit: 1) { - commission - } - validatorVotingPowers: validator_voting_powers(offset: 0, limit: 1, order_by: {height: desc}) { - height - votingPower: voting_power - } - } - slashingParams: slashing_params(order_by: {height: desc}, limit: 1) { - params - } -} - diff --git a/apps/web-stratos/src/graphql/general/validator_details_documents.ts b/apps/web-stratos/src/graphql/general/validator_details_documents.ts deleted file mode 100644 index 13b7441d0f..0000000000 --- a/apps/web-stratos/src/graphql/general/validator_details_documents.ts +++ /dev/null @@ -1,56 +0,0 @@ -export const ValidatorDelegationsDocument = /* GraphQL */ ` - query ValidatorDelegations( - $validatorAddress: String! - $offset: Int = 0 - $limit: Int = 10 - $pagination: Boolean! = true - ) { - delegations: action_validator_delegations( - address: $validatorAddress - limit: $limit - offset: $offset - count_total: $pagination - ) { - delegations - pagination - } - } -`; - -export const ValidatorRedelegationsDocument = /* GraphQL */ ` - query ValidatorRedelegations( - $validatorAddress: String! - $offset: Int = 0 - $limit: Int = 10 - $pagination: Boolean! = true - ) { - redelegations: action_validator_redelegations_from( - address: $validatorAddress - limit: $limit - offset: $offset - count_total: $pagination - ) { - redelegations - pagination - } - } -`; - -export const ValidatorUndelegationsDocument = /* GraphQL */ ` - query ValidatorUndelegations( - $validatorAddress: String! - $offset: Int = 0 - $limit: Int = 10 - $pagination: Boolean! = true - ) { - undelegations: action_validator_unbonding_delegations( - address: $validatorAddress - limit: $limit - offset: $offset - count_total: $pagination - ) { - undelegations: unbonding_delegations - pagination - } - } -`; diff --git a/apps/web-stratos/src/graphql/general/validators.graphql b/apps/web-stratos/src/graphql/general/validators.graphql deleted file mode 100644 index 20f3b19335..0000000000 --- a/apps/web-stratos/src/graphql/general/validators.graphql +++ /dev/null @@ -1,32 +0,0 @@ -query Validators { - stakingPool: staking_pool(limit: 1, order_by: {height: desc}) { - bondedTokens: bonded_tokens - } - validator { - 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 - } - validatorInfo: validator_info { - operatorAddress: operator_address - selfDelegateAddress: self_delegate_address - } - validatorVotingPowers: validator_voting_powers(offset: 0, limit: 1, order_by: {height: desc}) { - votingPower: voting_power - } - validatorCommissions: validator_commissions(order_by: {height: desc}, limit: 1) { - commission - } - validatorSigningInfos: validator_signing_infos(order_by: {height: desc}, limit: 1) { - missedBlocksCounter: missed_blocks_counter - } - } - slashingParams: slashing_params(order_by: {height: desc}, limit: 1) { - params - } -} diff --git a/apps/web-stratos/src/graphql/general/validators_address_list.graphql b/apps/web-stratos/src/graphql/general/validators_address_list.graphql deleted file mode 100644 index d018f104bc..0000000000 --- a/apps/web-stratos/src/graphql/general/validators_address_list.graphql +++ /dev/null @@ -1,28 +0,0 @@ -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 { - operatorAddress: operator_address - selfDelegateAddress: self_delegate_address - consensusAddress: consensus_address - } - validatorDescriptions: validator_descriptions(limit: 1, order_by: {height: desc}) { - moniker - avatarUrl: avatar_url - } - } -} diff --git a/apps/web-stratos/src/graphql/types/general_types.ts b/apps/web-stratos/src/graphql/types/general_types.ts deleted file mode 100644 index 0e297b478f..0000000000 --- a/apps/web-stratos/src/graphql/types/general_types.ts +++ /dev/null @@ -1,8443 +0,0 @@ -import { gql } from '@apollo/client'; -import * as Apollo from '@apollo/client'; -export type Maybe = T | null; -export type InputMaybe = Maybe; -export type Exact = { [K in keyof T]: T[K] }; -export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; -export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; -const defaultOptions = {} as const; -/** All built-in and custom scalars, mapped to their actual values */ -export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; - ActionCoin: any; - ActionDelegation: any; - ActionPagination: any; - ActionRedelegation: any; - ActionUnbondingDelegation: any; - _coin: any; - _dec_coin: any; - _text: any; - bigint: any; - json: any; - jsonb: any; - numeric: any; - smallint: any; - timestamp: any; -}; - -export type ActionAddress = { - __typename?: 'ActionAddress'; - address: Scalars['String']; -}; - -export type ActionBalance = { - __typename?: 'ActionBalance'; - coins?: Maybe>>; -}; - -export type ActionDelegationResponse = { - __typename?: 'ActionDelegationResponse'; - delegations?: Maybe>>; - pagination?: Maybe; -}; - -export type ActionDelegationReward = { - __typename?: 'ActionDelegationReward'; - coins?: Maybe>>; - validator_address: Scalars['String']; -}; - -export type ActionRedelegationResponse = { - __typename?: 'ActionRedelegationResponse'; - pagination?: Maybe; - redelegations?: Maybe>>; -}; - -export type ActionUnbondingDelegationResponse = { - __typename?: 'ActionUnbondingDelegationResponse'; - pagination?: Maybe; - unbonding_delegations?: Maybe>>; -}; - -export type ActionValidatorCommissionAmount = { - __typename?: 'ActionValidatorCommissionAmount'; - coins?: Maybe>>; -}; - -export type Boolean_Cast_Exp = { - String?: InputMaybe; -}; - -/** Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'. */ -export type Boolean_Comparison_Exp = { - _cast?: InputMaybe; - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; -}; - -export type Int_Cast_Exp = { - String?: InputMaybe; -}; - -/** Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'. */ -export type Int_Comparison_Exp = { - _cast?: InputMaybe; - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; -}; - -/** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */ -export type String_Comparison_Exp = { - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - /** does the column match the given case-insensitive pattern */ - _ilike?: InputMaybe; - _in?: InputMaybe>; - /** does the column match the given POSIX regular expression, case insensitive */ - _iregex?: InputMaybe; - _is_null?: InputMaybe; - /** does the column match the given pattern */ - _like?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - /** does the column NOT match the given case-insensitive pattern */ - _nilike?: InputMaybe; - _nin?: InputMaybe>; - /** does the column NOT match the given POSIX regular expression, case insensitive */ - _niregex?: InputMaybe; - /** does the column NOT match the given pattern */ - _nlike?: InputMaybe; - /** does the column NOT match the given POSIX regular expression, case sensitive */ - _nregex?: InputMaybe; - /** does the column NOT match the given SQL regular expression */ - _nsimilar?: InputMaybe; - /** does the column match the given POSIX regular expression, case sensitive */ - _regex?: InputMaybe; - /** does the column match the given SQL regular expression */ - _similar?: InputMaybe; -}; - -/** Boolean expression to compare columns of type "_coin". All fields are combined with logical 'AND'. */ -export type _Coin_Comparison_Exp = { - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; -}; - -/** Boolean expression to compare columns of type "_dec_coin". All fields are combined with logical 'AND'. */ -export type _Dec_Coin_Comparison_Exp = { - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; -}; - -/** Boolean expression to compare columns of type "_text". All fields are combined with logical 'AND'. */ -export type _Text_Comparison_Exp = { - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; -}; - -/** columns and relationships of "account" */ -export type Account = { - __typename?: 'account'; - address: Scalars['String']; - /** An array relationship */ - proposal_deposits: Array; - /** An array relationship */ - proposal_votes: Array; - /** An array relationship */ - proposals: Array; - /** An aggregate relationship */ - proposals_aggregate: Proposal_Aggregate; - /** An array relationship */ - validator_infos: Array; - /** An object relationship */ - vesting_account?: Maybe; - /** An array relationship */ - vesting_accounts: Array; -}; - - -/** columns and relationships of "account" */ -export type AccountProposal_DepositsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "account" */ -export type AccountProposal_VotesArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "account" */ -export type AccountProposalsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "account" */ -export type AccountProposals_AggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "account" */ -export type AccountValidator_InfosArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "account" */ -export type AccountVesting_AccountsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "account". All fields are combined with a logical 'AND'. */ -export type Account_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - address?: InputMaybe; - proposal_deposits?: InputMaybe; - proposal_votes?: InputMaybe; - proposals?: InputMaybe; - validator_infos?: InputMaybe; - vesting_account?: InputMaybe; - vesting_accounts?: InputMaybe; -}; - -/** Ordering options when selecting data from "account". */ -export type Account_Order_By = { - address?: InputMaybe; - proposal_deposits_aggregate?: InputMaybe; - proposal_votes_aggregate?: InputMaybe; - proposals_aggregate?: InputMaybe; - validator_infos_aggregate?: InputMaybe; - vesting_account?: InputMaybe; - vesting_accounts_aggregate?: InputMaybe; -}; - -/** select columns of table "account" */ -export enum Account_Select_Column { - /** column name */ - Address = 'address' -} - -/** columns and relationships of "average_block_time_from_genesis" */ -export type Average_Block_Time_From_Genesis = { - __typename?: 'average_block_time_from_genesis'; - average_time: Scalars['numeric']; - height: Scalars['bigint']; -}; - -/** Boolean expression to filter rows from the table "average_block_time_from_genesis". All fields are combined with a logical 'AND'. */ -export type Average_Block_Time_From_Genesis_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - average_time?: InputMaybe; - height?: InputMaybe; -}; - -/** Ordering options when selecting data from "average_block_time_from_genesis". */ -export type Average_Block_Time_From_Genesis_Order_By = { - average_time?: InputMaybe; - height?: InputMaybe; -}; - -/** select columns of table "average_block_time_from_genesis" */ -export enum Average_Block_Time_From_Genesis_Select_Column { - /** column name */ - AverageTime = 'average_time', - /** column name */ - Height = 'height' -} - -/** columns and relationships of "average_block_time_per_day" */ -export type Average_Block_Time_Per_Day = { - __typename?: 'average_block_time_per_day'; - average_time: Scalars['numeric']; - height: Scalars['bigint']; -}; - -/** Boolean expression to filter rows from the table "average_block_time_per_day". All fields are combined with a logical 'AND'. */ -export type Average_Block_Time_Per_Day_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - average_time?: InputMaybe; - height?: InputMaybe; -}; - -/** Ordering options when selecting data from "average_block_time_per_day". */ -export type Average_Block_Time_Per_Day_Order_By = { - average_time?: InputMaybe; - height?: InputMaybe; -}; - -/** select columns of table "average_block_time_per_day" */ -export enum Average_Block_Time_Per_Day_Select_Column { - /** column name */ - AverageTime = 'average_time', - /** column name */ - Height = 'height' -} - -/** columns and relationships of "average_block_time_per_hour" */ -export type Average_Block_Time_Per_Hour = { - __typename?: 'average_block_time_per_hour'; - average_time: Scalars['numeric']; - height: Scalars['bigint']; -}; - -/** Boolean expression to filter rows from the table "average_block_time_per_hour". All fields are combined with a logical 'AND'. */ -export type Average_Block_Time_Per_Hour_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - average_time?: InputMaybe; - height?: InputMaybe; -}; - -/** Ordering options when selecting data from "average_block_time_per_hour". */ -export type Average_Block_Time_Per_Hour_Order_By = { - average_time?: InputMaybe; - height?: InputMaybe; -}; - -/** select columns of table "average_block_time_per_hour" */ -export enum Average_Block_Time_Per_Hour_Select_Column { - /** column name */ - AverageTime = 'average_time', - /** column name */ - Height = 'height' -} - -/** columns and relationships of "average_block_time_per_minute" */ -export type Average_Block_Time_Per_Minute = { - __typename?: 'average_block_time_per_minute'; - average_time: Scalars['numeric']; - height: Scalars['bigint']; -}; - -/** Boolean expression to filter rows from the table "average_block_time_per_minute". All fields are combined with a logical 'AND'. */ -export type Average_Block_Time_Per_Minute_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - average_time?: InputMaybe; - height?: InputMaybe; -}; - -/** Ordering options when selecting data from "average_block_time_per_minute". */ -export type Average_Block_Time_Per_Minute_Order_By = { - average_time?: InputMaybe; - height?: InputMaybe; -}; - -/** select columns of table "average_block_time_per_minute" */ -export enum Average_Block_Time_Per_Minute_Select_Column { - /** column name */ - AverageTime = 'average_time', - /** column name */ - Height = 'height' -} - -export type Bigint_Cast_Exp = { - String?: InputMaybe; -}; - -/** Boolean expression to compare columns of type "bigint". All fields are combined with logical 'AND'. */ -export type Bigint_Comparison_Exp = { - _cast?: InputMaybe; - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; -}; - -/** columns and relationships of "block" */ -export type Block = { - __typename?: 'block'; - hash: Scalars['String']; - height: Scalars['bigint']; - num_txs?: Maybe; - /** An array relationship */ - pre_commits: Array; - /** An aggregate relationship */ - pre_commits_aggregate: Pre_Commit_Aggregate; - /** An array relationship */ - proposal_deposits: Array; - /** An array relationship */ - proposal_votes: Array; - proposer_address?: Maybe; - timestamp: Scalars['timestamp']; - total_gas?: Maybe; - /** An array relationship */ - transactions: Array; - /** An object relationship */ - validator?: Maybe; - /** An array relationship */ - validator_voting_powers: Array; - /** An aggregate relationship */ - validator_voting_powers_aggregate: Validator_Voting_Power_Aggregate; -}; - - -/** columns and relationships of "block" */ -export type BlockPre_CommitsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "block" */ -export type BlockPre_Commits_AggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "block" */ -export type BlockProposal_DepositsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "block" */ -export type BlockProposal_VotesArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "block" */ -export type BlockTransactionsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "block" */ -export type BlockValidator_Voting_PowersArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "block" */ -export type BlockValidator_Voting_Powers_AggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - -/** order by aggregate values of table "block" */ -export type Block_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** order by avg() on columns of table "block" */ -export type Block_Avg_Order_By = { - height?: InputMaybe; - num_txs?: InputMaybe; - total_gas?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "block". All fields are combined with a logical 'AND'. */ -export type Block_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - hash?: InputMaybe; - height?: InputMaybe; - num_txs?: InputMaybe; - pre_commits?: InputMaybe; - proposal_deposits?: InputMaybe; - proposal_votes?: InputMaybe; - proposer_address?: InputMaybe; - timestamp?: InputMaybe; - total_gas?: InputMaybe; - transactions?: InputMaybe; - validator?: InputMaybe; - validator_voting_powers?: InputMaybe; -}; - -/** order by max() on columns of table "block" */ -export type Block_Max_Order_By = { - hash?: InputMaybe; - height?: InputMaybe; - num_txs?: InputMaybe; - proposer_address?: InputMaybe; - timestamp?: InputMaybe; - total_gas?: InputMaybe; -}; - -/** order by min() on columns of table "block" */ -export type Block_Min_Order_By = { - hash?: InputMaybe; - height?: InputMaybe; - num_txs?: InputMaybe; - proposer_address?: InputMaybe; - timestamp?: InputMaybe; - total_gas?: InputMaybe; -}; - -/** Ordering options when selecting data from "block". */ -export type Block_Order_By = { - hash?: InputMaybe; - height?: InputMaybe; - num_txs?: InputMaybe; - pre_commits_aggregate?: InputMaybe; - proposal_deposits_aggregate?: InputMaybe; - proposal_votes_aggregate?: InputMaybe; - proposer_address?: InputMaybe; - timestamp?: InputMaybe; - total_gas?: InputMaybe; - transactions_aggregate?: InputMaybe; - validator?: InputMaybe; - validator_voting_powers_aggregate?: InputMaybe; -}; - -/** select columns of table "block" */ -export enum Block_Select_Column { - /** column name */ - Hash = 'hash', - /** column name */ - Height = 'height', - /** column name */ - NumTxs = 'num_txs', - /** column name */ - ProposerAddress = 'proposer_address', - /** column name */ - Timestamp = 'timestamp', - /** column name */ - TotalGas = 'total_gas' -} - -/** order by stddev() on columns of table "block" */ -export type Block_Stddev_Order_By = { - height?: InputMaybe; - num_txs?: InputMaybe; - total_gas?: InputMaybe; -}; - -/** order by stddev_pop() on columns of table "block" */ -export type Block_Stddev_Pop_Order_By = { - height?: InputMaybe; - num_txs?: InputMaybe; - total_gas?: InputMaybe; -}; - -/** order by stddev_samp() on columns of table "block" */ -export type Block_Stddev_Samp_Order_By = { - height?: InputMaybe; - num_txs?: InputMaybe; - total_gas?: InputMaybe; -}; - -/** order by sum() on columns of table "block" */ -export type Block_Sum_Order_By = { - height?: InputMaybe; - num_txs?: InputMaybe; - total_gas?: InputMaybe; -}; - -/** order by var_pop() on columns of table "block" */ -export type Block_Var_Pop_Order_By = { - height?: InputMaybe; - num_txs?: InputMaybe; - total_gas?: InputMaybe; -}; - -/** order by var_samp() on columns of table "block" */ -export type Block_Var_Samp_Order_By = { - height?: InputMaybe; - num_txs?: InputMaybe; - total_gas?: InputMaybe; -}; - -/** order by variance() on columns of table "block" */ -export type Block_Variance_Order_By = { - height?: InputMaybe; - num_txs?: InputMaybe; - total_gas?: InputMaybe; -}; - -/** columns and relationships of "community_pool" */ -export type Community_Pool = { - __typename?: 'community_pool'; - coins: Scalars['_dec_coin']; - height: Scalars['bigint']; -}; - -/** Boolean expression to filter rows from the table "community_pool". All fields are combined with a logical 'AND'. */ -export type Community_Pool_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - coins?: InputMaybe<_Dec_Coin_Comparison_Exp>; - height?: InputMaybe; -}; - -/** Ordering options when selecting data from "community_pool". */ -export type Community_Pool_Order_By = { - coins?: InputMaybe; - height?: InputMaybe; -}; - -/** select columns of table "community_pool" */ -export enum Community_Pool_Select_Column { - /** column name */ - Coins = 'coins', - /** column name */ - Height = 'height' -} - -/** columns and relationships of "distribution_params" */ -export type Distribution_Params = { - __typename?: 'distribution_params'; - height: Scalars['bigint']; - params: Scalars['jsonb']; -}; - - -/** columns and relationships of "distribution_params" */ -export type Distribution_ParamsParamsArgs = { - path?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "distribution_params". All fields are combined with a logical 'AND'. */ -export type Distribution_Params_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - height?: InputMaybe; - params?: InputMaybe; -}; - -/** Ordering options when selecting data from "distribution_params". */ -export type Distribution_Params_Order_By = { - height?: InputMaybe; - params?: InputMaybe; -}; - -/** select columns of table "distribution_params" */ -export enum Distribution_Params_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - Params = 'params' -} - -/** columns and relationships of "double_sign_evidence" */ -export type Double_Sign_Evidence = { - __typename?: 'double_sign_evidence'; - /** An object relationship */ - doubleSignVoteByVoteAId: Double_Sign_Vote; - /** An object relationship */ - double_sign_vote: Double_Sign_Vote; - height: Scalars['bigint']; - vote_a_id: Scalars['bigint']; - vote_b_id: Scalars['bigint']; -}; - -/** order by aggregate values of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** order by avg() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Avg_Order_By = { - height?: InputMaybe; - vote_a_id?: InputMaybe; - vote_b_id?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "double_sign_evidence". All fields are combined with a logical 'AND'. */ -export type Double_Sign_Evidence_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - doubleSignVoteByVoteAId?: InputMaybe; - double_sign_vote?: InputMaybe; - height?: InputMaybe; - vote_a_id?: InputMaybe; - vote_b_id?: InputMaybe; -}; - -/** order by max() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Max_Order_By = { - height?: InputMaybe; - vote_a_id?: InputMaybe; - vote_b_id?: InputMaybe; -}; - -/** order by min() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Min_Order_By = { - height?: InputMaybe; - vote_a_id?: InputMaybe; - vote_b_id?: InputMaybe; -}; - -/** Ordering options when selecting data from "double_sign_evidence". */ -export type Double_Sign_Evidence_Order_By = { - doubleSignVoteByVoteAId?: InputMaybe; - double_sign_vote?: InputMaybe; - height?: InputMaybe; - vote_a_id?: InputMaybe; - vote_b_id?: InputMaybe; -}; - -/** select columns of table "double_sign_evidence" */ -export enum Double_Sign_Evidence_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - VoteAId = 'vote_a_id', - /** column name */ - VoteBId = 'vote_b_id' -} - -/** order by stddev() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Stddev_Order_By = { - height?: InputMaybe; - vote_a_id?: InputMaybe; - vote_b_id?: InputMaybe; -}; - -/** order by stddev_pop() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Stddev_Pop_Order_By = { - height?: InputMaybe; - vote_a_id?: InputMaybe; - vote_b_id?: InputMaybe; -}; - -/** order by stddev_samp() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Stddev_Samp_Order_By = { - height?: InputMaybe; - vote_a_id?: InputMaybe; - vote_b_id?: InputMaybe; -}; - -/** order by sum() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Sum_Order_By = { - height?: InputMaybe; - vote_a_id?: InputMaybe; - vote_b_id?: InputMaybe; -}; - -/** order by var_pop() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Var_Pop_Order_By = { - height?: InputMaybe; - vote_a_id?: InputMaybe; - vote_b_id?: InputMaybe; -}; - -/** order by var_samp() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Var_Samp_Order_By = { - height?: InputMaybe; - vote_a_id?: InputMaybe; - vote_b_id?: InputMaybe; -}; - -/** order by variance() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Variance_Order_By = { - height?: InputMaybe; - vote_a_id?: InputMaybe; - vote_b_id?: InputMaybe; -}; - -/** columns and relationships of "double_sign_vote" */ -export type Double_Sign_Vote = { - __typename?: 'double_sign_vote'; - block_id: Scalars['String']; - /** An array relationship */ - doubleSignEvidencesByVoteBId: Array; - /** An array relationship */ - double_sign_evidences: Array; - height: Scalars['bigint']; - round: Scalars['Int']; - signature: Scalars['String']; - type: Scalars['smallint']; - /** An object relationship */ - validator: Validator; - validator_address: Scalars['String']; - validator_index: Scalars['Int']; -}; - - -/** columns and relationships of "double_sign_vote" */ -export type Double_Sign_VoteDoubleSignEvidencesByVoteBIdArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "double_sign_vote" */ -export type Double_Sign_VoteDouble_Sign_EvidencesArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - -/** order by aggregate values of table "double_sign_vote" */ -export type Double_Sign_Vote_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** order by avg() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Avg_Order_By = { - height?: InputMaybe; - round?: InputMaybe; - type?: InputMaybe; - validator_index?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "double_sign_vote". All fields are combined with a logical 'AND'. */ -export type Double_Sign_Vote_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - block_id?: InputMaybe; - doubleSignEvidencesByVoteBId?: InputMaybe; - double_sign_evidences?: InputMaybe; - height?: InputMaybe; - round?: InputMaybe; - signature?: InputMaybe; - type?: InputMaybe; - validator?: InputMaybe; - validator_address?: InputMaybe; - validator_index?: InputMaybe; -}; - -/** order by max() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Max_Order_By = { - block_id?: InputMaybe; - height?: InputMaybe; - round?: InputMaybe; - signature?: InputMaybe; - type?: InputMaybe; - validator_address?: InputMaybe; - validator_index?: InputMaybe; -}; - -/** order by min() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Min_Order_By = { - block_id?: InputMaybe; - height?: InputMaybe; - round?: InputMaybe; - signature?: InputMaybe; - type?: InputMaybe; - validator_address?: InputMaybe; - validator_index?: InputMaybe; -}; - -/** Ordering options when selecting data from "double_sign_vote". */ -export type Double_Sign_Vote_Order_By = { - block_id?: InputMaybe; - doubleSignEvidencesByVoteBId_aggregate?: InputMaybe; - double_sign_evidences_aggregate?: InputMaybe; - height?: InputMaybe; - round?: InputMaybe; - signature?: InputMaybe; - type?: InputMaybe; - validator?: InputMaybe; - validator_address?: InputMaybe; - validator_index?: InputMaybe; -}; - -/** select columns of table "double_sign_vote" */ -export enum Double_Sign_Vote_Select_Column { - /** column name */ - BlockId = 'block_id', - /** column name */ - Height = 'height', - /** column name */ - Round = 'round', - /** column name */ - Signature = 'signature', - /** column name */ - Type = 'type', - /** column name */ - ValidatorAddress = 'validator_address', - /** column name */ - ValidatorIndex = 'validator_index' -} - -/** order by stddev() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Stddev_Order_By = { - height?: InputMaybe; - round?: InputMaybe; - type?: InputMaybe; - validator_index?: InputMaybe; -}; - -/** order by stddev_pop() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Stddev_Pop_Order_By = { - height?: InputMaybe; - round?: InputMaybe; - type?: InputMaybe; - validator_index?: InputMaybe; -}; - -/** order by stddev_samp() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Stddev_Samp_Order_By = { - height?: InputMaybe; - round?: InputMaybe; - type?: InputMaybe; - validator_index?: InputMaybe; -}; - -/** order by sum() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Sum_Order_By = { - height?: InputMaybe; - round?: InputMaybe; - type?: InputMaybe; - validator_index?: InputMaybe; -}; - -/** order by var_pop() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Var_Pop_Order_By = { - height?: InputMaybe; - round?: InputMaybe; - type?: InputMaybe; - validator_index?: InputMaybe; -}; - -/** order by var_samp() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Var_Samp_Order_By = { - height?: InputMaybe; - round?: InputMaybe; - type?: InputMaybe; - validator_index?: InputMaybe; -}; - -/** order by variance() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Variance_Order_By = { - height?: InputMaybe; - round?: InputMaybe; - type?: InputMaybe; - validator_index?: InputMaybe; -}; - -/** columns and relationships of "fee_grant_allowance" */ -export type Fee_Grant_Allowance = { - __typename?: 'fee_grant_allowance'; - allowance: Scalars['jsonb']; - /** An object relationship */ - grantee: Account; - grantee_address: Scalars['String']; - /** An object relationship */ - granter: Account; - granter_address: Scalars['String']; - height: Scalars['bigint']; -}; - - -/** columns and relationships of "fee_grant_allowance" */ -export type Fee_Grant_AllowanceAllowanceArgs = { - path?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "fee_grant_allowance". All fields are combined with a logical 'AND'. */ -export type Fee_Grant_Allowance_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - allowance?: InputMaybe; - grantee?: InputMaybe; - grantee_address?: InputMaybe; - granter?: InputMaybe; - granter_address?: InputMaybe; - height?: InputMaybe; -}; - -/** Ordering options when selecting data from "fee_grant_allowance". */ -export type Fee_Grant_Allowance_Order_By = { - allowance?: InputMaybe; - grantee?: InputMaybe; - grantee_address?: InputMaybe; - granter?: InputMaybe; - granter_address?: InputMaybe; - height?: InputMaybe; -}; - -/** select columns of table "fee_grant_allowance" */ -export enum Fee_Grant_Allowance_Select_Column { - /** column name */ - Allowance = 'allowance', - /** column name */ - GranteeAddress = 'grantee_address', - /** column name */ - GranterAddress = 'granter_address', - /** column name */ - Height = 'height' -} - -/** columns and relationships of "genesis" */ -export type Genesis = { - __typename?: 'genesis'; - chain_id: Scalars['String']; - initial_height: Scalars['bigint']; - time: Scalars['timestamp']; -}; - -/** Boolean expression to filter rows from the table "genesis". All fields are combined with a logical 'AND'. */ -export type Genesis_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - chain_id?: InputMaybe; - initial_height?: InputMaybe; - time?: InputMaybe; -}; - -/** Ordering options when selecting data from "genesis". */ -export type Genesis_Order_By = { - chain_id?: InputMaybe; - initial_height?: InputMaybe; - time?: InputMaybe; -}; - -/** select columns of table "genesis" */ -export enum Genesis_Select_Column { - /** column name */ - ChainId = 'chain_id', - /** column name */ - InitialHeight = 'initial_height', - /** column name */ - Time = 'time' -} - -/** columns and relationships of "gov_params" */ -export type Gov_Params = { - __typename?: 'gov_params'; - height: Scalars['bigint']; - params: Scalars['jsonb']; -}; - - -/** columns and relationships of "gov_params" */ -export type Gov_ParamsParamsArgs = { - path?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "gov_params". All fields are combined with a logical 'AND'. */ -export type Gov_Params_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - height?: InputMaybe; - params?: InputMaybe; -}; - -/** Ordering options when selecting data from "gov_params". */ -export type Gov_Params_Order_By = { - height?: InputMaybe; - params?: InputMaybe; -}; - -/** select columns of table "gov_params" */ -export enum Gov_Params_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - Params = 'params' -} - -/** columns and relationships of "inflation" */ -export type Inflation = { - __typename?: 'inflation'; - height: Scalars['bigint']; - value: Scalars['numeric']; -}; - -/** Boolean expression to filter rows from the table "inflation". All fields are combined with a logical 'AND'. */ -export type Inflation_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - height?: InputMaybe; - value?: InputMaybe; -}; - -/** Ordering options when selecting data from "inflation". */ -export type Inflation_Order_By = { - height?: InputMaybe; - value?: InputMaybe; -}; - -/** select columns of table "inflation" */ -export enum Inflation_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - Value = 'value' -} - -export type Json_Cast_Exp = { - String?: InputMaybe; -}; - -/** Boolean expression to compare columns of type "json". All fields are combined with logical 'AND'. */ -export type Json_Comparison_Exp = { - _cast?: InputMaybe; - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; -}; - -export type Jsonb_Cast_Exp = { - String?: InputMaybe; -}; - -/** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */ -export type Jsonb_Comparison_Exp = { - _cast?: InputMaybe; - /** is the column contained in the given json value */ - _contained_in?: InputMaybe; - /** does the column contain the given json value at the top level */ - _contains?: InputMaybe; - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - /** does the string exist as a top-level key in the column */ - _has_key?: InputMaybe; - /** do all of these strings exist as top-level keys in the column */ - _has_keys_all?: InputMaybe>; - /** do any of these strings exist as top-level keys in the column */ - _has_keys_any?: InputMaybe>; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; -}; - -/** columns and relationships of "message" */ -export type Message = { - __typename?: 'message'; - height: Scalars['bigint']; - index: Scalars['bigint']; - involved_accounts_addresses: Scalars['_text']; - /** An object relationship */ - transaction?: Maybe; - transaction_hash: Scalars['String']; - type: Scalars['String']; - value: Scalars['json']; -}; - - -/** columns and relationships of "message" */ -export type MessageValueArgs = { - path?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "message". All fields are combined with a logical 'AND'. */ -export type Message_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - height?: InputMaybe; - index?: InputMaybe; - involved_accounts_addresses?: InputMaybe<_Text_Comparison_Exp>; - transaction?: InputMaybe; - transaction_hash?: InputMaybe; - type?: InputMaybe; - value?: InputMaybe; -}; - -/** Ordering options when selecting data from "message". */ -export type Message_Order_By = { - height?: InputMaybe; - index?: InputMaybe; - involved_accounts_addresses?: InputMaybe; - transaction?: InputMaybe; - transaction_hash?: InputMaybe; - type?: InputMaybe; - value?: InputMaybe; -}; - -/** select columns of table "message" */ -export enum Message_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - Index = 'index', - /** column name */ - InvolvedAccountsAddresses = 'involved_accounts_addresses', - /** column name */ - TransactionHash = 'transaction_hash', - /** column name */ - Type = 'type', - /** column name */ - Value = 'value' -} - -export type Messages_By_Address_Args = { - addresses?: InputMaybe; - limit?: InputMaybe; - offset?: InputMaybe; - types?: InputMaybe; -}; - -/** columns and relationships of "mint_params" */ -export type Mint_Params = { - __typename?: 'mint_params'; - height: Scalars['bigint']; - params: Scalars['jsonb']; -}; - - -/** columns and relationships of "mint_params" */ -export type Mint_ParamsParamsArgs = { - path?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "mint_params". All fields are combined with a logical 'AND'. */ -export type Mint_Params_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - height?: InputMaybe; - params?: InputMaybe; -}; - -/** Ordering options when selecting data from "mint_params". */ -export type Mint_Params_Order_By = { - height?: InputMaybe; - params?: InputMaybe; -}; - -/** select columns of table "mint_params" */ -export enum Mint_Params_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - Params = 'params' -} - -/** columns and relationships of "modules" */ -export type Modules = { - __typename?: 'modules'; - module_name: Scalars['String']; -}; - -/** Boolean expression to filter rows from the table "modules". All fields are combined with a logical 'AND'. */ -export type Modules_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - module_name?: InputMaybe; -}; - -/** Ordering options when selecting data from "modules". */ -export type Modules_Order_By = { - module_name?: InputMaybe; -}; - -/** select columns of table "modules" */ -export enum Modules_Select_Column { - /** column name */ - ModuleName = 'module_name' -} - -export type Numeric_Cast_Exp = { - String?: InputMaybe; -}; - -/** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ -export type Numeric_Comparison_Exp = { - _cast?: InputMaybe; - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; -}; - -/** column ordering options */ -export enum Order_By { - /** in ascending order, nulls last */ - Asc = 'asc', - /** in ascending order, nulls first */ - AscNullsFirst = 'asc_nulls_first', - /** in ascending order, nulls last */ - AscNullsLast = 'asc_nulls_last', - /** in descending order, nulls first */ - Desc = 'desc', - /** in descending order, nulls first */ - DescNullsFirst = 'desc_nulls_first', - /** in descending order, nulls last */ - DescNullsLast = 'desc_nulls_last' -} - -/** columns and relationships of "pre_commit" */ -export type Pre_Commit = { - __typename?: 'pre_commit'; - height: Scalars['bigint']; - proposer_priority: Scalars['bigint']; - timestamp: Scalars['timestamp']; - /** An object relationship */ - validator: Validator; - validator_address: Scalars['String']; - voting_power: Scalars['bigint']; -}; - -/** aggregated selection of "pre_commit" */ -export type Pre_Commit_Aggregate = { - __typename?: 'pre_commit_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "pre_commit" */ -export type Pre_Commit_Aggregate_Fields = { - __typename?: 'pre_commit_aggregate_fields'; - avg?: Maybe; - count: Scalars['Int']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - - -/** aggregate fields of "pre_commit" */ -export type Pre_Commit_Aggregate_FieldsCountArgs = { - columns?: InputMaybe>; - distinct?: InputMaybe; -}; - -/** order by aggregate values of table "pre_commit" */ -export type Pre_Commit_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** aggregate avg on columns */ -export type Pre_Commit_Avg_Fields = { - __typename?: 'pre_commit_avg_fields'; - height?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** order by avg() on columns of table "pre_commit" */ -export type Pre_Commit_Avg_Order_By = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "pre_commit". All fields are combined with a logical 'AND'. */ -export type Pre_Commit_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - height?: InputMaybe; - proposer_priority?: InputMaybe; - timestamp?: InputMaybe; - validator?: InputMaybe; - validator_address?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** aggregate max on columns */ -export type Pre_Commit_Max_Fields = { - __typename?: 'pre_commit_max_fields'; - height?: Maybe; - proposer_priority?: Maybe; - timestamp?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** order by max() on columns of table "pre_commit" */ -export type Pre_Commit_Max_Order_By = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - timestamp?: InputMaybe; - validator_address?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** aggregate min on columns */ -export type Pre_Commit_Min_Fields = { - __typename?: 'pre_commit_min_fields'; - height?: Maybe; - proposer_priority?: Maybe; - timestamp?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** order by min() on columns of table "pre_commit" */ -export type Pre_Commit_Min_Order_By = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - timestamp?: InputMaybe; - validator_address?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** Ordering options when selecting data from "pre_commit". */ -export type Pre_Commit_Order_By = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - timestamp?: InputMaybe; - validator?: InputMaybe; - validator_address?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** select columns of table "pre_commit" */ -export enum Pre_Commit_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - ProposerPriority = 'proposer_priority', - /** column name */ - Timestamp = 'timestamp', - /** column name */ - ValidatorAddress = 'validator_address', - /** column name */ - VotingPower = 'voting_power' -} - -/** aggregate stddev on columns */ -export type Pre_Commit_Stddev_Fields = { - __typename?: 'pre_commit_stddev_fields'; - height?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** order by stddev() on columns of table "pre_commit" */ -export type Pre_Commit_Stddev_Order_By = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** aggregate stddev_pop on columns */ -export type Pre_Commit_Stddev_Pop_Fields = { - __typename?: 'pre_commit_stddev_pop_fields'; - height?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** order by stddev_pop() on columns of table "pre_commit" */ -export type Pre_Commit_Stddev_Pop_Order_By = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** aggregate stddev_samp on columns */ -export type Pre_Commit_Stddev_Samp_Fields = { - __typename?: 'pre_commit_stddev_samp_fields'; - height?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** order by stddev_samp() on columns of table "pre_commit" */ -export type Pre_Commit_Stddev_Samp_Order_By = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** aggregate sum on columns */ -export type Pre_Commit_Sum_Fields = { - __typename?: 'pre_commit_sum_fields'; - height?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** order by sum() on columns of table "pre_commit" */ -export type Pre_Commit_Sum_Order_By = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** aggregate var_pop on columns */ -export type Pre_Commit_Var_Pop_Fields = { - __typename?: 'pre_commit_var_pop_fields'; - height?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** order by var_pop() on columns of table "pre_commit" */ -export type Pre_Commit_Var_Pop_Order_By = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** aggregate var_samp on columns */ -export type Pre_Commit_Var_Samp_Fields = { - __typename?: 'pre_commit_var_samp_fields'; - height?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** order by var_samp() on columns of table "pre_commit" */ -export type Pre_Commit_Var_Samp_Order_By = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** aggregate variance on columns */ -export type Pre_Commit_Variance_Fields = { - __typename?: 'pre_commit_variance_fields'; - height?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** order by variance() on columns of table "pre_commit" */ -export type Pre_Commit_Variance_Order_By = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** columns and relationships of "proposal" */ -export type Proposal = { - __typename?: 'proposal'; - content: Scalars['jsonb']; - deposit_end_time?: Maybe; - description: Scalars['String']; - id: Scalars['Int']; - metadata: Scalars['String']; - /** An array relationship */ - proposal_deposits: Array; - /** An object relationship */ - proposal_tally_result?: Maybe; - /** An array relationship */ - proposal_tally_results: Array; - /** An array relationship */ - proposal_votes: Array; - /** An object relationship */ - proposer: Account; - proposer_address: Scalars['String']; - /** An object relationship */ - staking_pool_snapshot?: Maybe; - status?: Maybe; - submit_time: Scalars['timestamp']; - title: Scalars['String']; - /** An array relationship */ - validator_status_snapshots: Array; - voting_end_time?: Maybe; - voting_start_time?: Maybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalContentArgs = { - path?: InputMaybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalProposal_DepositsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalProposal_Tally_ResultsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalProposal_VotesArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalValidator_Status_SnapshotsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - -/** aggregated selection of "proposal" */ -export type Proposal_Aggregate = { - __typename?: 'proposal_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "proposal" */ -export type Proposal_Aggregate_Fields = { - __typename?: 'proposal_aggregate_fields'; - avg?: Maybe; - count: Scalars['Int']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - - -/** aggregate fields of "proposal" */ -export type Proposal_Aggregate_FieldsCountArgs = { - columns?: InputMaybe>; - distinct?: InputMaybe; -}; - -/** order by aggregate values of table "proposal" */ -export type Proposal_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** aggregate avg on columns */ -export type Proposal_Avg_Fields = { - __typename?: 'proposal_avg_fields'; - id?: Maybe; -}; - -/** order by avg() on columns of table "proposal" */ -export type Proposal_Avg_Order_By = { - id?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "proposal". All fields are combined with a logical 'AND'. */ -export type Proposal_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - content?: InputMaybe; - deposit_end_time?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - metadata?: InputMaybe; - proposal_deposits?: InputMaybe; - proposal_tally_result?: InputMaybe; - proposal_tally_results?: InputMaybe; - proposal_votes?: InputMaybe; - proposer?: InputMaybe; - proposer_address?: InputMaybe; - staking_pool_snapshot?: InputMaybe; - status?: InputMaybe; - submit_time?: InputMaybe; - title?: InputMaybe; - validator_status_snapshots?: InputMaybe; - voting_end_time?: InputMaybe; - voting_start_time?: InputMaybe; -}; - -/** columns and relationships of "proposal_deposit" */ -export type Proposal_Deposit = { - __typename?: 'proposal_deposit'; - amount?: Maybe; - /** An object relationship */ - block?: Maybe; - /** An object relationship */ - depositor?: Maybe; - depositor_address?: Maybe; - height: Scalars['bigint']; - /** An object relationship */ - proposal: Proposal; - proposal_id: Scalars['Int']; - timestamp?: Maybe; -}; - -/** order by aggregate values of table "proposal_deposit" */ -export type Proposal_Deposit_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** order by avg() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Avg_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "proposal_deposit". All fields are combined with a logical 'AND'. */ -export type Proposal_Deposit_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - amount?: InputMaybe<_Coin_Comparison_Exp>; - block?: InputMaybe; - depositor?: InputMaybe; - depositor_address?: InputMaybe; - height?: InputMaybe; - proposal?: InputMaybe; - proposal_id?: InputMaybe; - timestamp?: InputMaybe; -}; - -/** order by max() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Max_Order_By = { - depositor_address?: InputMaybe; - height?: InputMaybe; - proposal_id?: InputMaybe; - timestamp?: InputMaybe; -}; - -/** order by min() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Min_Order_By = { - depositor_address?: InputMaybe; - height?: InputMaybe; - proposal_id?: InputMaybe; - timestamp?: InputMaybe; -}; - -/** Ordering options when selecting data from "proposal_deposit". */ -export type Proposal_Deposit_Order_By = { - amount?: InputMaybe; - block?: InputMaybe; - depositor?: InputMaybe; - depositor_address?: InputMaybe; - height?: InputMaybe; - proposal?: InputMaybe; - proposal_id?: InputMaybe; - timestamp?: InputMaybe; -}; - -/** select columns of table "proposal_deposit" */ -export enum Proposal_Deposit_Select_Column { - /** column name */ - Amount = 'amount', - /** column name */ - DepositorAddress = 'depositor_address', - /** column name */ - Height = 'height', - /** column name */ - ProposalId = 'proposal_id', - /** column name */ - Timestamp = 'timestamp' -} - -/** order by stddev() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Stddev_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** order by stddev_pop() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Stddev_Pop_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** order by stddev_samp() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Stddev_Samp_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** order by sum() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Sum_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** order by var_pop() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Var_Pop_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** order by var_samp() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Var_Samp_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** order by variance() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Variance_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** aggregate max on columns */ -export type Proposal_Max_Fields = { - __typename?: 'proposal_max_fields'; - deposit_end_time?: Maybe; - description?: Maybe; - id?: Maybe; - metadata?: Maybe; - proposer_address?: Maybe; - status?: Maybe; - submit_time?: Maybe; - title?: Maybe; - voting_end_time?: Maybe; - voting_start_time?: Maybe; -}; - -/** order by max() on columns of table "proposal" */ -export type Proposal_Max_Order_By = { - deposit_end_time?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - metadata?: InputMaybe; - proposer_address?: InputMaybe; - status?: InputMaybe; - submit_time?: InputMaybe; - title?: InputMaybe; - voting_end_time?: InputMaybe; - voting_start_time?: InputMaybe; -}; - -/** aggregate min on columns */ -export type Proposal_Min_Fields = { - __typename?: 'proposal_min_fields'; - deposit_end_time?: Maybe; - description?: Maybe; - id?: Maybe; - metadata?: Maybe; - proposer_address?: Maybe; - status?: Maybe; - submit_time?: Maybe; - title?: Maybe; - voting_end_time?: Maybe; - voting_start_time?: Maybe; -}; - -/** order by min() on columns of table "proposal" */ -export type Proposal_Min_Order_By = { - deposit_end_time?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - metadata?: InputMaybe; - proposer_address?: InputMaybe; - status?: InputMaybe; - submit_time?: InputMaybe; - title?: InputMaybe; - voting_end_time?: InputMaybe; - voting_start_time?: InputMaybe; -}; - -/** Ordering options when selecting data from "proposal". */ -export type Proposal_Order_By = { - content?: InputMaybe; - deposit_end_time?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - metadata?: InputMaybe; - proposal_deposits_aggregate?: InputMaybe; - proposal_tally_result?: InputMaybe; - proposal_tally_results_aggregate?: InputMaybe; - proposal_votes_aggregate?: InputMaybe; - proposer?: InputMaybe; - proposer_address?: InputMaybe; - staking_pool_snapshot?: InputMaybe; - status?: InputMaybe; - submit_time?: InputMaybe; - title?: InputMaybe; - validator_status_snapshots_aggregate?: InputMaybe; - voting_end_time?: InputMaybe; - voting_start_time?: InputMaybe; -}; - -/** select columns of table "proposal" */ -export enum Proposal_Select_Column { - /** column name */ - Content = 'content', - /** column name */ - DepositEndTime = 'deposit_end_time', - /** column name */ - Description = 'description', - /** column name */ - Id = 'id', - /** column name */ - Metadata = 'metadata', - /** column name */ - ProposerAddress = 'proposer_address', - /** column name */ - Status = 'status', - /** column name */ - SubmitTime = 'submit_time', - /** column name */ - Title = 'title', - /** column name */ - VotingEndTime = 'voting_end_time', - /** column name */ - VotingStartTime = 'voting_start_time' -} - -/** columns and relationships of "proposal_staking_pool_snapshot" */ -export type Proposal_Staking_Pool_Snapshot = { - __typename?: 'proposal_staking_pool_snapshot'; - bonded_tokens: Scalars['String']; - height: Scalars['bigint']; - not_bonded_tokens: Scalars['String']; - /** An object relationship */ - proposal: Proposal; - proposal_id: Scalars['Int']; -}; - -/** Boolean expression to filter rows from the table "proposal_staking_pool_snapshot". All fields are combined with a logical 'AND'. */ -export type Proposal_Staking_Pool_Snapshot_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - bonded_tokens?: InputMaybe; - height?: InputMaybe; - not_bonded_tokens?: InputMaybe; - proposal?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** Ordering options when selecting data from "proposal_staking_pool_snapshot". */ -export type Proposal_Staking_Pool_Snapshot_Order_By = { - bonded_tokens?: InputMaybe; - height?: InputMaybe; - not_bonded_tokens?: InputMaybe; - proposal?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** select columns of table "proposal_staking_pool_snapshot" */ -export enum Proposal_Staking_Pool_Snapshot_Select_Column { - /** column name */ - BondedTokens = 'bonded_tokens', - /** column name */ - Height = 'height', - /** column name */ - NotBondedTokens = 'not_bonded_tokens', - /** column name */ - ProposalId = 'proposal_id' -} - -/** aggregate stddev on columns */ -export type Proposal_Stddev_Fields = { - __typename?: 'proposal_stddev_fields'; - id?: Maybe; -}; - -/** order by stddev() on columns of table "proposal" */ -export type Proposal_Stddev_Order_By = { - id?: InputMaybe; -}; - -/** aggregate stddev_pop on columns */ -export type Proposal_Stddev_Pop_Fields = { - __typename?: 'proposal_stddev_pop_fields'; - id?: Maybe; -}; - -/** order by stddev_pop() on columns of table "proposal" */ -export type Proposal_Stddev_Pop_Order_By = { - id?: InputMaybe; -}; - -/** aggregate stddev_samp on columns */ -export type Proposal_Stddev_Samp_Fields = { - __typename?: 'proposal_stddev_samp_fields'; - id?: Maybe; -}; - -/** order by stddev_samp() on columns of table "proposal" */ -export type Proposal_Stddev_Samp_Order_By = { - id?: InputMaybe; -}; - -/** aggregate sum on columns */ -export type Proposal_Sum_Fields = { - __typename?: 'proposal_sum_fields'; - id?: Maybe; -}; - -/** order by sum() on columns of table "proposal" */ -export type Proposal_Sum_Order_By = { - id?: InputMaybe; -}; - -/** columns and relationships of "proposal_tally_result" */ -export type Proposal_Tally_Result = { - __typename?: 'proposal_tally_result'; - abstain: Scalars['String']; - height: Scalars['bigint']; - no: Scalars['String']; - no_with_veto: Scalars['String']; - /** An object relationship */ - proposal: Proposal; - proposal_id: Scalars['Int']; - yes: Scalars['String']; -}; - -/** order by aggregate values of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** order by avg() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Avg_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "proposal_tally_result". All fields are combined with a logical 'AND'. */ -export type Proposal_Tally_Result_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - abstain?: InputMaybe; - height?: InputMaybe; - no?: InputMaybe; - no_with_veto?: InputMaybe; - proposal?: InputMaybe; - proposal_id?: InputMaybe; - yes?: InputMaybe; -}; - -/** order by max() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Max_Order_By = { - abstain?: InputMaybe; - height?: InputMaybe; - no?: InputMaybe; - no_with_veto?: InputMaybe; - proposal_id?: InputMaybe; - yes?: InputMaybe; -}; - -/** order by min() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Min_Order_By = { - abstain?: InputMaybe; - height?: InputMaybe; - no?: InputMaybe; - no_with_veto?: InputMaybe; - proposal_id?: InputMaybe; - yes?: InputMaybe; -}; - -/** Ordering options when selecting data from "proposal_tally_result". */ -export type Proposal_Tally_Result_Order_By = { - abstain?: InputMaybe; - height?: InputMaybe; - no?: InputMaybe; - no_with_veto?: InputMaybe; - proposal?: InputMaybe; - proposal_id?: InputMaybe; - yes?: InputMaybe; -}; - -/** select columns of table "proposal_tally_result" */ -export enum Proposal_Tally_Result_Select_Column { - /** column name */ - Abstain = 'abstain', - /** column name */ - Height = 'height', - /** column name */ - No = 'no', - /** column name */ - NoWithVeto = 'no_with_veto', - /** column name */ - ProposalId = 'proposal_id', - /** column name */ - Yes = 'yes' -} - -/** order by stddev() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Stddev_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** order by stddev_pop() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Stddev_Pop_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** order by stddev_samp() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Stddev_Samp_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** order by sum() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Sum_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** order by var_pop() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Var_Pop_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** order by var_samp() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Var_Samp_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** order by variance() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Variance_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** columns and relationships of "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot = { - __typename?: 'proposal_validator_status_snapshot'; - height: Scalars['bigint']; - jailed: Scalars['Boolean']; - /** An object relationship */ - proposal?: Maybe; - proposal_id?: Maybe; - status: Scalars['Int']; - /** An object relationship */ - validator: Validator; - validator_address: Scalars['String']; - voting_power: Scalars['bigint']; -}; - -/** order by aggregate values of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** order by avg() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Avg_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; - status?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "proposal_validator_status_snapshot". All fields are combined with a logical 'AND'. */ -export type Proposal_Validator_Status_Snapshot_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - height?: InputMaybe; - jailed?: InputMaybe; - proposal?: InputMaybe; - proposal_id?: InputMaybe; - status?: InputMaybe; - validator?: InputMaybe; - validator_address?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** order by max() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Max_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; - status?: InputMaybe; - validator_address?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** order by min() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Min_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; - status?: InputMaybe; - validator_address?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** Ordering options when selecting data from "proposal_validator_status_snapshot". */ -export type Proposal_Validator_Status_Snapshot_Order_By = { - height?: InputMaybe; - jailed?: InputMaybe; - proposal?: InputMaybe; - proposal_id?: InputMaybe; - status?: InputMaybe; - validator?: InputMaybe; - validator_address?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** select columns of table "proposal_validator_status_snapshot" */ -export enum Proposal_Validator_Status_Snapshot_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - Jailed = 'jailed', - /** column name */ - ProposalId = 'proposal_id', - /** column name */ - Status = 'status', - /** column name */ - ValidatorAddress = 'validator_address', - /** column name */ - VotingPower = 'voting_power' -} - -/** order by stddev() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Stddev_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; - status?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** order by stddev_pop() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Stddev_Pop_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; - status?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** order by stddev_samp() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Stddev_Samp_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; - status?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** order by sum() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Sum_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; - status?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** order by var_pop() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Var_Pop_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; - status?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** order by var_samp() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Var_Samp_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; - status?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** order by variance() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Variance_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; - status?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** aggregate var_pop on columns */ -export type Proposal_Var_Pop_Fields = { - __typename?: 'proposal_var_pop_fields'; - id?: Maybe; -}; - -/** order by var_pop() on columns of table "proposal" */ -export type Proposal_Var_Pop_Order_By = { - id?: InputMaybe; -}; - -/** aggregate var_samp on columns */ -export type Proposal_Var_Samp_Fields = { - __typename?: 'proposal_var_samp_fields'; - id?: Maybe; -}; - -/** order by var_samp() on columns of table "proposal" */ -export type Proposal_Var_Samp_Order_By = { - id?: InputMaybe; -}; - -/** aggregate variance on columns */ -export type Proposal_Variance_Fields = { - __typename?: 'proposal_variance_fields'; - id?: Maybe; -}; - -/** order by variance() on columns of table "proposal" */ -export type Proposal_Variance_Order_By = { - id?: InputMaybe; -}; - -/** columns and relationships of "proposal_vote" */ -export type Proposal_Vote = { - __typename?: 'proposal_vote'; - /** An object relationship */ - account: Account; - /** An object relationship */ - block?: Maybe; - height: Scalars['bigint']; - option: Scalars['String']; - /** An object relationship */ - proposal: Proposal; - proposal_id: Scalars['Int']; - timestamp?: Maybe; - voter_address: Scalars['String']; - weight: Scalars['String']; -}; - -/** order by aggregate values of table "proposal_vote" */ -export type Proposal_Vote_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** order by avg() on columns of table "proposal_vote" */ -export type Proposal_Vote_Avg_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "proposal_vote". All fields are combined with a logical 'AND'. */ -export type Proposal_Vote_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - account?: InputMaybe; - block?: InputMaybe; - height?: InputMaybe; - option?: InputMaybe; - proposal?: InputMaybe; - proposal_id?: InputMaybe; - timestamp?: InputMaybe; - voter_address?: InputMaybe; - weight?: InputMaybe; -}; - -/** order by max() on columns of table "proposal_vote" */ -export type Proposal_Vote_Max_Order_By = { - height?: InputMaybe; - option?: InputMaybe; - proposal_id?: InputMaybe; - timestamp?: InputMaybe; - voter_address?: InputMaybe; - weight?: InputMaybe; -}; - -/** order by min() on columns of table "proposal_vote" */ -export type Proposal_Vote_Min_Order_By = { - height?: InputMaybe; - option?: InputMaybe; - proposal_id?: InputMaybe; - timestamp?: InputMaybe; - voter_address?: InputMaybe; - weight?: InputMaybe; -}; - -/** Ordering options when selecting data from "proposal_vote". */ -export type Proposal_Vote_Order_By = { - account?: InputMaybe; - block?: InputMaybe; - height?: InputMaybe; - option?: InputMaybe; - proposal?: InputMaybe; - proposal_id?: InputMaybe; - timestamp?: InputMaybe; - voter_address?: InputMaybe; - weight?: InputMaybe; -}; - -/** select columns of table "proposal_vote" */ -export enum Proposal_Vote_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - Option = 'option', - /** column name */ - ProposalId = 'proposal_id', - /** column name */ - Timestamp = 'timestamp', - /** column name */ - VoterAddress = 'voter_address', - /** column name */ - Weight = 'weight' -} - -/** order by stddev() on columns of table "proposal_vote" */ -export type Proposal_Vote_Stddev_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** order by stddev_pop() on columns of table "proposal_vote" */ -export type Proposal_Vote_Stddev_Pop_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** order by stddev_samp() on columns of table "proposal_vote" */ -export type Proposal_Vote_Stddev_Samp_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** order by sum() on columns of table "proposal_vote" */ -export type Proposal_Vote_Sum_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** order by var_pop() on columns of table "proposal_vote" */ -export type Proposal_Vote_Var_Pop_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** order by var_samp() on columns of table "proposal_vote" */ -export type Proposal_Vote_Var_Samp_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -/** order by variance() on columns of table "proposal_vote" */ -export type Proposal_Vote_Variance_Order_By = { - height?: InputMaybe; - proposal_id?: InputMaybe; -}; - -export type Query_Root = { - __typename?: 'query_root'; - /** fetch data from the table: "account" */ - account: Array; - /** fetch data from the table: "account" using primary key columns */ - account_by_pk?: Maybe; - action_account_balance?: Maybe; - action_delegation?: Maybe; - action_delegation_reward?: Maybe>>; - action_delegation_total?: Maybe; - action_delegator_withdraw_address: ActionAddress; - action_redelegation?: Maybe; - action_unbonding_delegation?: Maybe; - action_unbonding_delegation_total?: Maybe; - action_validator_commission_amount?: Maybe; - action_validator_delegations?: Maybe; - action_validator_redelegations_from?: Maybe; - action_validator_unbonding_delegations?: Maybe; - /** fetch data from the table: "average_block_time_from_genesis" */ - average_block_time_from_genesis: Array; - /** fetch data from the table: "average_block_time_per_day" */ - average_block_time_per_day: Array; - /** fetch data from the table: "average_block_time_per_hour" */ - average_block_time_per_hour: Array; - /** fetch data from the table: "average_block_time_per_minute" */ - average_block_time_per_minute: Array; - /** fetch data from the table: "block" */ - block: Array; - /** fetch data from the table: "block" using primary key columns */ - block_by_pk?: Maybe; - /** fetch data from the table: "community_pool" */ - community_pool: Array; - /** fetch data from the table: "distribution_params" */ - distribution_params: Array; - /** fetch data from the table: "double_sign_evidence" */ - double_sign_evidence: Array; - /** fetch data from the table: "double_sign_vote" */ - double_sign_vote: Array; - /** fetch data from the table: "fee_grant_allowance" */ - fee_grant_allowance: Array; - /** fetch data from the table: "genesis" */ - genesis: Array; - /** fetch data from the table: "gov_params" */ - gov_params: Array; - /** fetch data from the table: "inflation" */ - inflation: Array; - /** fetch data from the table: "message" */ - message: Array; - /** execute function "messages_by_address" which returns "message" */ - messages_by_address: Array; - /** fetch data from the table: "mint_params" */ - mint_params: Array; - /** fetch data from the table: "modules" */ - modules: Array; - /** fetch data from the table: "modules" using primary key columns */ - modules_by_pk?: Maybe; - /** fetch data from the table: "pre_commit" */ - pre_commit: Array; - /** fetch aggregated fields from the table: "pre_commit" */ - pre_commit_aggregate: Pre_Commit_Aggregate; - /** fetch data from the table: "proposal" */ - proposal: Array; - /** fetch aggregated fields from the table: "proposal" */ - proposal_aggregate: Proposal_Aggregate; - /** fetch data from the table: "proposal" using primary key columns */ - proposal_by_pk?: Maybe; - /** fetch data from the table: "proposal_deposit" */ - proposal_deposit: Array; - /** fetch data from the table: "proposal_staking_pool_snapshot" */ - proposal_staking_pool_snapshot: Array; - /** fetch data from the table: "proposal_staking_pool_snapshot" using primary key columns */ - proposal_staking_pool_snapshot_by_pk?: Maybe; - /** fetch data from the table: "proposal_tally_result" */ - proposal_tally_result: Array; - /** fetch data from the table: "proposal_tally_result" using primary key columns */ - proposal_tally_result_by_pk?: Maybe; - /** fetch data from the table: "proposal_validator_status_snapshot" */ - proposal_validator_status_snapshot: Array; - /** fetch data from the table: "proposal_vote" */ - proposal_vote: Array; - /** fetch data from the table: "slashing_params" */ - slashing_params: Array; - /** fetch data from the table: "software_upgrade_plan" */ - software_upgrade_plan: Array; - /** fetch aggregated fields from the table: "software_upgrade_plan" */ - software_upgrade_plan_aggregate: Software_Upgrade_Plan_Aggregate; - /** fetch data from the table: "staking_params" */ - staking_params: Array; - /** fetch data from the table: "staking_pool" */ - staking_pool: Array; - /** fetch data from the table: "supply" */ - supply: Array; - /** fetch data from the table: "token" */ - token: Array; - /** fetch data from the table: "token_price" */ - token_price: Array; - /** fetch data from the table: "token_price_history" */ - token_price_history: Array; - /** fetch data from the table: "token_unit" */ - token_unit: Array; - /** fetch data from the table: "transaction" */ - transaction: Array; - /** fetch data from the table: "validator" */ - validator: Array; - /** fetch data from the table: "validator" using primary key columns */ - validator_by_pk?: Maybe; - /** fetch data from the table: "validator_commission" */ - validator_commission: Array; - /** fetch data from the table: "validator_commission" using primary key columns */ - validator_commission_by_pk?: Maybe; - /** fetch data from the table: "validator_description" */ - validator_description: Array; - /** fetch data from the table: "validator_description" using primary key columns */ - validator_description_by_pk?: Maybe; - /** fetch data from the table: "validator_info" */ - validator_info: Array; - /** fetch data from the table: "validator_info" using primary key columns */ - validator_info_by_pk?: Maybe; - /** fetch data from the table: "validator_signing_info" */ - validator_signing_info: Array; - /** fetch data from the table: "validator_signing_info" using primary key columns */ - validator_signing_info_by_pk?: Maybe; - /** fetch data from the table: "validator_status" */ - validator_status: Array; - /** fetch aggregated fields from the table: "validator_status" */ - validator_status_aggregate: Validator_Status_Aggregate; - /** fetch data from the table: "validator_status" using primary key columns */ - validator_status_by_pk?: Maybe; - /** fetch data from the table: "validator_voting_power" */ - validator_voting_power: Array; - /** fetch aggregated fields from the table: "validator_voting_power" */ - validator_voting_power_aggregate: Validator_Voting_Power_Aggregate; - /** fetch data from the table: "validator_voting_power" using primary key columns */ - validator_voting_power_by_pk?: Maybe; - /** fetch data from the table: "vesting_account" */ - vesting_account: Array; - /** fetch data from the table: "vesting_period" */ - vesting_period: Array; -}; - - -export type Query_RootAccountArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootAccount_By_PkArgs = { - address: Scalars['String']; -}; - - -export type Query_RootAction_Account_BalanceArgs = { - address: Scalars['String']; - height?: InputMaybe; -}; - - -export type Query_RootAction_DelegationArgs = { - address: Scalars['String']; - count_total?: InputMaybe; - height?: InputMaybe; - limit?: InputMaybe; - offset?: InputMaybe; -}; - - -export type Query_RootAction_Delegation_RewardArgs = { - address: Scalars['String']; - height?: InputMaybe; -}; - - -export type Query_RootAction_Delegation_TotalArgs = { - address: Scalars['String']; - height?: InputMaybe; -}; - - -export type Query_RootAction_Delegator_Withdraw_AddressArgs = { - address: Scalars['String']; -}; - - -export type Query_RootAction_RedelegationArgs = { - address: Scalars['String']; - count_total?: InputMaybe; - height?: InputMaybe; - limit?: InputMaybe; - offset?: InputMaybe; -}; - - -export type Query_RootAction_Unbonding_DelegationArgs = { - address: Scalars['String']; - count_total?: InputMaybe; - height?: InputMaybe; - limit?: InputMaybe; - offset?: InputMaybe; -}; - - -export type Query_RootAction_Unbonding_Delegation_TotalArgs = { - address: Scalars['String']; - height?: InputMaybe; -}; - - -export type Query_RootAction_Validator_Commission_AmountArgs = { - address: Scalars['String']; -}; - - -export type Query_RootAction_Validator_DelegationsArgs = { - address: Scalars['String']; - count_total?: InputMaybe; - limit?: InputMaybe; - offset?: InputMaybe; -}; - - -export type Query_RootAction_Validator_Redelegations_FromArgs = { - address: Scalars['String']; - count_total?: InputMaybe; - height?: InputMaybe; - limit?: InputMaybe; - offset?: InputMaybe; -}; - - -export type Query_RootAction_Validator_Unbonding_DelegationsArgs = { - address: Scalars['String']; - count_total?: InputMaybe; - limit?: InputMaybe; - offset?: InputMaybe; -}; - - -export type Query_RootAverage_Block_Time_From_GenesisArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootAverage_Block_Time_Per_DayArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootAverage_Block_Time_Per_HourArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootAverage_Block_Time_Per_MinuteArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootBlockArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootBlock_By_PkArgs = { - height: Scalars['bigint']; -}; - - -export type Query_RootCommunity_PoolArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootDistribution_ParamsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootDouble_Sign_EvidenceArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootDouble_Sign_VoteArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootFee_Grant_AllowanceArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootGenesisArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootGov_ParamsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootInflationArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootMessageArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootMessages_By_AddressArgs = { - args: Messages_By_Address_Args; - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootMint_ParamsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootModulesArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootModules_By_PkArgs = { - module_name: Scalars['String']; -}; - - -export type Query_RootPre_CommitArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootPre_Commit_AggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootProposalArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootProposal_AggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootProposal_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootProposal_DepositArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootProposal_Staking_Pool_SnapshotArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootProposal_Staking_Pool_Snapshot_By_PkArgs = { - proposal_id: Scalars['Int']; -}; - - -export type Query_RootProposal_Tally_ResultArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootProposal_Tally_Result_By_PkArgs = { - proposal_id: Scalars['Int']; -}; - - -export type Query_RootProposal_Validator_Status_SnapshotArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootProposal_VoteArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootSlashing_ParamsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootSoftware_Upgrade_PlanArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootSoftware_Upgrade_Plan_AggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootStaking_ParamsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootStaking_PoolArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootSupplyArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootTokenArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootToken_PriceArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootToken_Price_HistoryArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootToken_UnitArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootTransactionArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootValidatorArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootValidator_By_PkArgs = { - consensus_address: Scalars['String']; -}; - - -export type Query_RootValidator_CommissionArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootValidator_Commission_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Query_RootValidator_DescriptionArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootValidator_Description_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Query_RootValidator_InfoArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootValidator_Info_By_PkArgs = { - consensus_address: Scalars['String']; -}; - - -export type Query_RootValidator_Signing_InfoArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootValidator_Signing_Info_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Query_RootValidator_StatusArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootValidator_Status_AggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootValidator_Status_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Query_RootValidator_Voting_PowerArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootValidator_Voting_Power_AggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootValidator_Voting_Power_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Query_RootVesting_AccountArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Query_RootVesting_PeriodArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - -/** columns and relationships of "slashing_params" */ -export type Slashing_Params = { - __typename?: 'slashing_params'; - height: Scalars['bigint']; - params: Scalars['jsonb']; -}; - - -/** columns and relationships of "slashing_params" */ -export type Slashing_ParamsParamsArgs = { - path?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "slashing_params". All fields are combined with a logical 'AND'. */ -export type Slashing_Params_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - height?: InputMaybe; - params?: InputMaybe; -}; - -/** Ordering options when selecting data from "slashing_params". */ -export type Slashing_Params_Order_By = { - height?: InputMaybe; - params?: InputMaybe; -}; - -/** select columns of table "slashing_params" */ -export enum Slashing_Params_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - Params = 'params' -} - -export type Smallint_Cast_Exp = { - String?: InputMaybe; -}; - -/** Boolean expression to compare columns of type "smallint". All fields are combined with logical 'AND'. */ -export type Smallint_Comparison_Exp = { - _cast?: InputMaybe; - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; -}; - -/** columns and relationships of "software_upgrade_plan" */ -export type Software_Upgrade_Plan = { - __typename?: 'software_upgrade_plan'; - height: Scalars['bigint']; - info: Scalars['String']; - plan_name: Scalars['String']; - /** An object relationship */ - proposal?: Maybe; - proposal_id?: Maybe; - upgrade_height: Scalars['bigint']; -}; - -/** aggregated selection of "software_upgrade_plan" */ -export type Software_Upgrade_Plan_Aggregate = { - __typename?: 'software_upgrade_plan_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "software_upgrade_plan" */ -export type Software_Upgrade_Plan_Aggregate_Fields = { - __typename?: 'software_upgrade_plan_aggregate_fields'; - avg?: Maybe; - count: Scalars['Int']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - - -/** aggregate fields of "software_upgrade_plan" */ -export type Software_Upgrade_Plan_Aggregate_FieldsCountArgs = { - columns?: InputMaybe>; - distinct?: InputMaybe; -}; - -/** aggregate avg on columns */ -export type Software_Upgrade_Plan_Avg_Fields = { - __typename?: 'software_upgrade_plan_avg_fields'; - height?: Maybe; - proposal_id?: Maybe; - upgrade_height?: Maybe; -}; - -/** Boolean expression to filter rows from the table "software_upgrade_plan". All fields are combined with a logical 'AND'. */ -export type Software_Upgrade_Plan_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - height?: InputMaybe; - info?: InputMaybe; - plan_name?: InputMaybe; - proposal?: InputMaybe; - proposal_id?: InputMaybe; - upgrade_height?: InputMaybe; -}; - -/** aggregate max on columns */ -export type Software_Upgrade_Plan_Max_Fields = { - __typename?: 'software_upgrade_plan_max_fields'; - height?: Maybe; - info?: Maybe; - plan_name?: Maybe; - proposal_id?: Maybe; - upgrade_height?: Maybe; -}; - -/** aggregate min on columns */ -export type Software_Upgrade_Plan_Min_Fields = { - __typename?: 'software_upgrade_plan_min_fields'; - height?: Maybe; - info?: Maybe; - plan_name?: Maybe; - proposal_id?: Maybe; - upgrade_height?: Maybe; -}; - -/** Ordering options when selecting data from "software_upgrade_plan". */ -export type Software_Upgrade_Plan_Order_By = { - height?: InputMaybe; - info?: InputMaybe; - plan_name?: InputMaybe; - proposal?: InputMaybe; - proposal_id?: InputMaybe; - upgrade_height?: InputMaybe; -}; - -/** select columns of table "software_upgrade_plan" */ -export enum Software_Upgrade_Plan_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - Info = 'info', - /** column name */ - PlanName = 'plan_name', - /** column name */ - ProposalId = 'proposal_id', - /** column name */ - UpgradeHeight = 'upgrade_height' -} - -/** aggregate stddev on columns */ -export type Software_Upgrade_Plan_Stddev_Fields = { - __typename?: 'software_upgrade_plan_stddev_fields'; - height?: Maybe; - proposal_id?: Maybe; - upgrade_height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Software_Upgrade_Plan_Stddev_Pop_Fields = { - __typename?: 'software_upgrade_plan_stddev_pop_fields'; - height?: Maybe; - proposal_id?: Maybe; - upgrade_height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Software_Upgrade_Plan_Stddev_Samp_Fields = { - __typename?: 'software_upgrade_plan_stddev_samp_fields'; - height?: Maybe; - proposal_id?: Maybe; - upgrade_height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Software_Upgrade_Plan_Sum_Fields = { - __typename?: 'software_upgrade_plan_sum_fields'; - height?: Maybe; - proposal_id?: Maybe; - upgrade_height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Software_Upgrade_Plan_Var_Pop_Fields = { - __typename?: 'software_upgrade_plan_var_pop_fields'; - height?: Maybe; - proposal_id?: Maybe; - upgrade_height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Software_Upgrade_Plan_Var_Samp_Fields = { - __typename?: 'software_upgrade_plan_var_samp_fields'; - height?: Maybe; - proposal_id?: Maybe; - upgrade_height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Software_Upgrade_Plan_Variance_Fields = { - __typename?: 'software_upgrade_plan_variance_fields'; - height?: Maybe; - proposal_id?: Maybe; - upgrade_height?: Maybe; -}; - -/** columns and relationships of "staking_params" */ -export type Staking_Params = { - __typename?: 'staking_params'; - height: Scalars['bigint']; - params: Scalars['jsonb']; -}; - - -/** columns and relationships of "staking_params" */ -export type Staking_ParamsParamsArgs = { - path?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "staking_params". All fields are combined with a logical 'AND'. */ -export type Staking_Params_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - height?: InputMaybe; - params?: InputMaybe; -}; - -/** Ordering options when selecting data from "staking_params". */ -export type Staking_Params_Order_By = { - height?: InputMaybe; - params?: InputMaybe; -}; - -/** select columns of table "staking_params" */ -export enum Staking_Params_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - Params = 'params' -} - -/** columns and relationships of "staking_pool" */ -export type Staking_Pool = { - __typename?: 'staking_pool'; - bonded_tokens: Scalars['String']; - height: Scalars['bigint']; - not_bonded_tokens: Scalars['String']; - staked_not_bonded_tokens: Scalars['String']; - unbonding_tokens: Scalars['String']; -}; - -/** Boolean expression to filter rows from the table "staking_pool". All fields are combined with a logical 'AND'. */ -export type Staking_Pool_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - bonded_tokens?: InputMaybe; - height?: InputMaybe; - not_bonded_tokens?: InputMaybe; - staked_not_bonded_tokens?: InputMaybe; - unbonding_tokens?: InputMaybe; -}; - -/** Ordering options when selecting data from "staking_pool". */ -export type Staking_Pool_Order_By = { - bonded_tokens?: InputMaybe; - height?: InputMaybe; - not_bonded_tokens?: InputMaybe; - staked_not_bonded_tokens?: InputMaybe; - unbonding_tokens?: InputMaybe; -}; - -/** select columns of table "staking_pool" */ -export enum Staking_Pool_Select_Column { - /** column name */ - BondedTokens = 'bonded_tokens', - /** column name */ - Height = 'height', - /** column name */ - NotBondedTokens = 'not_bonded_tokens', - /** column name */ - StakedNotBondedTokens = 'staked_not_bonded_tokens', - /** column name */ - UnbondingTokens = 'unbonding_tokens' -} - -export type Subscription_Root = { - __typename?: 'subscription_root'; - /** fetch data from the table: "account" */ - account: Array; - /** fetch data from the table: "account" using primary key columns */ - account_by_pk?: Maybe; - /** fetch data from the table: "average_block_time_from_genesis" */ - average_block_time_from_genesis: Array; - /** fetch data from the table: "average_block_time_per_day" */ - average_block_time_per_day: Array; - /** fetch data from the table: "average_block_time_per_hour" */ - average_block_time_per_hour: Array; - /** fetch data from the table: "average_block_time_per_minute" */ - average_block_time_per_minute: Array; - /** fetch data from the table: "block" */ - block: Array; - /** fetch data from the table: "block" using primary key columns */ - block_by_pk?: Maybe; - /** fetch data from the table: "community_pool" */ - community_pool: Array; - /** fetch data from the table: "distribution_params" */ - distribution_params: Array; - /** fetch data from the table: "double_sign_evidence" */ - double_sign_evidence: Array; - /** fetch data from the table: "double_sign_vote" */ - double_sign_vote: Array; - /** fetch data from the table: "fee_grant_allowance" */ - fee_grant_allowance: Array; - /** fetch data from the table: "genesis" */ - genesis: Array; - /** fetch data from the table: "gov_params" */ - gov_params: Array; - /** fetch data from the table: "inflation" */ - inflation: Array; - /** fetch data from the table: "message" */ - message: Array; - /** execute function "messages_by_address" which returns "message" */ - messages_by_address: Array; - /** fetch data from the table: "mint_params" */ - mint_params: Array; - /** fetch data from the table: "modules" */ - modules: Array; - /** fetch data from the table: "modules" using primary key columns */ - modules_by_pk?: Maybe; - /** fetch data from the table: "pre_commit" */ - pre_commit: Array; - /** fetch aggregated fields from the table: "pre_commit" */ - pre_commit_aggregate: Pre_Commit_Aggregate; - /** fetch data from the table: "proposal" */ - proposal: Array; - /** fetch aggregated fields from the table: "proposal" */ - proposal_aggregate: Proposal_Aggregate; - /** fetch data from the table: "proposal" using primary key columns */ - proposal_by_pk?: Maybe; - /** fetch data from the table: "proposal_deposit" */ - proposal_deposit: Array; - /** fetch data from the table: "proposal_staking_pool_snapshot" */ - proposal_staking_pool_snapshot: Array; - /** fetch data from the table: "proposal_staking_pool_snapshot" using primary key columns */ - proposal_staking_pool_snapshot_by_pk?: Maybe; - /** fetch data from the table: "proposal_tally_result" */ - proposal_tally_result: Array; - /** fetch data from the table: "proposal_tally_result" using primary key columns */ - proposal_tally_result_by_pk?: Maybe; - /** fetch data from the table: "proposal_validator_status_snapshot" */ - proposal_validator_status_snapshot: Array; - /** fetch data from the table: "proposal_vote" */ - proposal_vote: Array; - /** fetch data from the table: "slashing_params" */ - slashing_params: Array; - /** fetch data from the table: "software_upgrade_plan" */ - software_upgrade_plan: Array; - /** fetch aggregated fields from the table: "software_upgrade_plan" */ - software_upgrade_plan_aggregate: Software_Upgrade_Plan_Aggregate; - /** fetch data from the table: "staking_params" */ - staking_params: Array; - /** fetch data from the table: "staking_pool" */ - staking_pool: Array; - /** fetch data from the table: "supply" */ - supply: Array; - /** fetch data from the table: "token" */ - token: Array; - /** fetch data from the table: "token_price" */ - token_price: Array; - /** fetch data from the table: "token_price_history" */ - token_price_history: Array; - /** fetch data from the table: "token_unit" */ - token_unit: Array; - /** fetch data from the table: "transaction" */ - transaction: Array; - /** fetch data from the table: "validator" */ - validator: Array; - /** fetch data from the table: "validator" using primary key columns */ - validator_by_pk?: Maybe; - /** fetch data from the table: "validator_commission" */ - validator_commission: Array; - /** fetch data from the table: "validator_commission" using primary key columns */ - validator_commission_by_pk?: Maybe; - /** fetch data from the table: "validator_description" */ - validator_description: Array; - /** fetch data from the table: "validator_description" using primary key columns */ - validator_description_by_pk?: Maybe; - /** fetch data from the table: "validator_info" */ - validator_info: Array; - /** fetch data from the table: "validator_info" using primary key columns */ - validator_info_by_pk?: Maybe; - /** fetch data from the table: "validator_signing_info" */ - validator_signing_info: Array; - /** fetch data from the table: "validator_signing_info" using primary key columns */ - validator_signing_info_by_pk?: Maybe; - /** fetch data from the table: "validator_status" */ - validator_status: Array; - /** fetch aggregated fields from the table: "validator_status" */ - validator_status_aggregate: Validator_Status_Aggregate; - /** fetch data from the table: "validator_status" using primary key columns */ - validator_status_by_pk?: Maybe; - /** fetch data from the table: "validator_voting_power" */ - validator_voting_power: Array; - /** fetch aggregated fields from the table: "validator_voting_power" */ - validator_voting_power_aggregate: Validator_Voting_Power_Aggregate; - /** fetch data from the table: "validator_voting_power" using primary key columns */ - validator_voting_power_by_pk?: Maybe; - /** fetch data from the table: "vesting_account" */ - vesting_account: Array; - /** fetch data from the table: "vesting_period" */ - vesting_period: Array; -}; - - -export type Subscription_RootAccountArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootAccount_By_PkArgs = { - address: Scalars['String']; -}; - - -export type Subscription_RootAverage_Block_Time_From_GenesisArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootAverage_Block_Time_Per_DayArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootAverage_Block_Time_Per_HourArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootAverage_Block_Time_Per_MinuteArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootBlockArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootBlock_By_PkArgs = { - height: Scalars['bigint']; -}; - - -export type Subscription_RootCommunity_PoolArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootDistribution_ParamsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootDouble_Sign_EvidenceArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootDouble_Sign_VoteArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootFee_Grant_AllowanceArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootGenesisArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootGov_ParamsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootInflationArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootMessageArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootMessages_By_AddressArgs = { - args: Messages_By_Address_Args; - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootMint_ParamsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootModulesArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootModules_By_PkArgs = { - module_name: Scalars['String']; -}; - - -export type Subscription_RootPre_CommitArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootPre_Commit_AggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootProposalArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootProposal_AggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootProposal_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Subscription_RootProposal_DepositArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootProposal_Staking_Pool_SnapshotArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootProposal_Staking_Pool_Snapshot_By_PkArgs = { - proposal_id: Scalars['Int']; -}; - - -export type Subscription_RootProposal_Tally_ResultArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootProposal_Tally_Result_By_PkArgs = { - proposal_id: Scalars['Int']; -}; - - -export type Subscription_RootProposal_Validator_Status_SnapshotArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootProposal_VoteArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootSlashing_ParamsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootSoftware_Upgrade_PlanArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootSoftware_Upgrade_Plan_AggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootStaking_ParamsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootStaking_PoolArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootSupplyArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootTokenArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootToken_PriceArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootToken_Price_HistoryArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootToken_UnitArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootTransactionArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootValidatorArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootValidator_By_PkArgs = { - consensus_address: Scalars['String']; -}; - - -export type Subscription_RootValidator_CommissionArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootValidator_Commission_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Subscription_RootValidator_DescriptionArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootValidator_Description_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Subscription_RootValidator_InfoArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootValidator_Info_By_PkArgs = { - consensus_address: Scalars['String']; -}; - - -export type Subscription_RootValidator_Signing_InfoArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootValidator_Signing_Info_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Subscription_RootValidator_StatusArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootValidator_Status_AggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootValidator_Status_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Subscription_RootValidator_Voting_PowerArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootValidator_Voting_Power_AggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootValidator_Voting_Power_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Subscription_RootVesting_AccountArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -export type Subscription_RootVesting_PeriodArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - -/** columns and relationships of "supply" */ -export type Supply = { - __typename?: 'supply'; - coins: Scalars['_coin']; - height: Scalars['bigint']; -}; - -/** Boolean expression to filter rows from the table "supply". All fields are combined with a logical 'AND'. */ -export type Supply_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - coins?: InputMaybe<_Coin_Comparison_Exp>; - height?: InputMaybe; -}; - -/** Ordering options when selecting data from "supply". */ -export type Supply_Order_By = { - coins?: InputMaybe; - height?: InputMaybe; -}; - -/** select columns of table "supply" */ -export enum Supply_Select_Column { - /** column name */ - Coins = 'coins', - /** column name */ - Height = 'height' -} - -export type Timestamp_Cast_Exp = { - String?: InputMaybe; -}; - -/** Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. */ -export type Timestamp_Comparison_Exp = { - _cast?: InputMaybe; - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; -}; - -/** columns and relationships of "token" */ -export type Token = { - __typename?: 'token'; - name: Scalars['String']; - /** An array relationship */ - token_units: Array; -}; - - -/** columns and relationships of "token" */ -export type TokenToken_UnitsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "token". All fields are combined with a logical 'AND'. */ -export type Token_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - name?: InputMaybe; - token_units?: InputMaybe; -}; - -/** Ordering options when selecting data from "token". */ -export type Token_Order_By = { - name?: InputMaybe; - token_units_aggregate?: InputMaybe; -}; - -/** columns and relationships of "token_price" */ -export type Token_Price = { - __typename?: 'token_price'; - market_cap: Scalars['bigint']; - price: Scalars['numeric']; - timestamp: Scalars['timestamp']; - /** An object relationship */ - token_unit: Token_Unit; - unit_name: Scalars['String']; -}; - -/** order by aggregate values of table "token_price" */ -export type Token_Price_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** order by avg() on columns of table "token_price" */ -export type Token_Price_Avg_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "token_price". All fields are combined with a logical 'AND'. */ -export type Token_Price_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - market_cap?: InputMaybe; - price?: InputMaybe; - timestamp?: InputMaybe; - token_unit?: InputMaybe; - unit_name?: InputMaybe; -}; - -/** columns and relationships of "token_price_history" */ -export type Token_Price_History = { - __typename?: 'token_price_history'; - market_cap: Scalars['bigint']; - price: Scalars['numeric']; - timestamp: Scalars['timestamp']; - /** An object relationship */ - token_unit: Token_Unit; - unit_name: Scalars['String']; -}; - -/** order by aggregate values of table "token_price_history" */ -export type Token_Price_History_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** order by avg() on columns of table "token_price_history" */ -export type Token_Price_History_Avg_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "token_price_history". All fields are combined with a logical 'AND'. */ -export type Token_Price_History_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - market_cap?: InputMaybe; - price?: InputMaybe; - timestamp?: InputMaybe; - token_unit?: InputMaybe; - unit_name?: InputMaybe; -}; - -/** order by max() on columns of table "token_price_history" */ -export type Token_Price_History_Max_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; - timestamp?: InputMaybe; - unit_name?: InputMaybe; -}; - -/** order by min() on columns of table "token_price_history" */ -export type Token_Price_History_Min_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; - timestamp?: InputMaybe; - unit_name?: InputMaybe; -}; - -/** Ordering options when selecting data from "token_price_history". */ -export type Token_Price_History_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; - timestamp?: InputMaybe; - token_unit?: InputMaybe; - unit_name?: InputMaybe; -}; - -/** select columns of table "token_price_history" */ -export enum Token_Price_History_Select_Column { - /** column name */ - MarketCap = 'market_cap', - /** column name */ - Price = 'price', - /** column name */ - Timestamp = 'timestamp', - /** column name */ - UnitName = 'unit_name' -} - -/** order by stddev() on columns of table "token_price_history" */ -export type Token_Price_History_Stddev_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; -}; - -/** order by stddev_pop() on columns of table "token_price_history" */ -export type Token_Price_History_Stddev_Pop_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; -}; - -/** order by stddev_samp() on columns of table "token_price_history" */ -export type Token_Price_History_Stddev_Samp_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; -}; - -/** order by sum() on columns of table "token_price_history" */ -export type Token_Price_History_Sum_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; -}; - -/** order by var_pop() on columns of table "token_price_history" */ -export type Token_Price_History_Var_Pop_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; -}; - -/** order by var_samp() on columns of table "token_price_history" */ -export type Token_Price_History_Var_Samp_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; -}; - -/** order by variance() on columns of table "token_price_history" */ -export type Token_Price_History_Variance_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; -}; - -/** order by max() on columns of table "token_price" */ -export type Token_Price_Max_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; - timestamp?: InputMaybe; - unit_name?: InputMaybe; -}; - -/** order by min() on columns of table "token_price" */ -export type Token_Price_Min_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; - timestamp?: InputMaybe; - unit_name?: InputMaybe; -}; - -/** Ordering options when selecting data from "token_price". */ -export type Token_Price_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; - timestamp?: InputMaybe; - token_unit?: InputMaybe; - unit_name?: InputMaybe; -}; - -/** select columns of table "token_price" */ -export enum Token_Price_Select_Column { - /** column name */ - MarketCap = 'market_cap', - /** column name */ - Price = 'price', - /** column name */ - Timestamp = 'timestamp', - /** column name */ - UnitName = 'unit_name' -} - -/** order by stddev() on columns of table "token_price" */ -export type Token_Price_Stddev_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; -}; - -/** order by stddev_pop() on columns of table "token_price" */ -export type Token_Price_Stddev_Pop_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; -}; - -/** order by stddev_samp() on columns of table "token_price" */ -export type Token_Price_Stddev_Samp_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; -}; - -/** order by sum() on columns of table "token_price" */ -export type Token_Price_Sum_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; -}; - -/** order by var_pop() on columns of table "token_price" */ -export type Token_Price_Var_Pop_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; -}; - -/** order by var_samp() on columns of table "token_price" */ -export type Token_Price_Var_Samp_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; -}; - -/** order by variance() on columns of table "token_price" */ -export type Token_Price_Variance_Order_By = { - market_cap?: InputMaybe; - price?: InputMaybe; -}; - -/** select columns of table "token" */ -export enum Token_Select_Column { - /** column name */ - Name = 'name' -} - -/** columns and relationships of "token_unit" */ -export type Token_Unit = { - __typename?: 'token_unit'; - aliases?: Maybe; - denom: Scalars['String']; - exponent: Scalars['Int']; - price_id?: Maybe; - /** An object relationship */ - token: Token; - token_name: Scalars['String']; - /** An object relationship */ - token_price?: Maybe; - /** An array relationship */ - token_price_histories: Array; - /** An array relationship */ - token_prices: Array; -}; - - -/** columns and relationships of "token_unit" */ -export type Token_UnitToken_Price_HistoriesArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "token_unit" */ -export type Token_UnitToken_PricesArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - -/** order by aggregate values of table "token_unit" */ -export type Token_Unit_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** order by avg() on columns of table "token_unit" */ -export type Token_Unit_Avg_Order_By = { - exponent?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "token_unit". All fields are combined with a logical 'AND'. */ -export type Token_Unit_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - aliases?: InputMaybe<_Text_Comparison_Exp>; - denom?: InputMaybe; - exponent?: InputMaybe; - price_id?: InputMaybe; - token?: InputMaybe; - token_name?: InputMaybe; - token_price?: InputMaybe; - token_price_histories?: InputMaybe; - token_prices?: InputMaybe; -}; - -/** order by max() on columns of table "token_unit" */ -export type Token_Unit_Max_Order_By = { - denom?: InputMaybe; - exponent?: InputMaybe; - price_id?: InputMaybe; - token_name?: InputMaybe; -}; - -/** order by min() on columns of table "token_unit" */ -export type Token_Unit_Min_Order_By = { - denom?: InputMaybe; - exponent?: InputMaybe; - price_id?: InputMaybe; - token_name?: InputMaybe; -}; - -/** Ordering options when selecting data from "token_unit". */ -export type Token_Unit_Order_By = { - aliases?: InputMaybe; - denom?: InputMaybe; - exponent?: InputMaybe; - price_id?: InputMaybe; - token?: InputMaybe; - token_name?: InputMaybe; - token_price?: InputMaybe; - token_price_histories_aggregate?: InputMaybe; - token_prices_aggregate?: InputMaybe; -}; - -/** select columns of table "token_unit" */ -export enum Token_Unit_Select_Column { - /** column name */ - Aliases = 'aliases', - /** column name */ - Denom = 'denom', - /** column name */ - Exponent = 'exponent', - /** column name */ - PriceId = 'price_id', - /** column name */ - TokenName = 'token_name' -} - -/** order by stddev() on columns of table "token_unit" */ -export type Token_Unit_Stddev_Order_By = { - exponent?: InputMaybe; -}; - -/** order by stddev_pop() on columns of table "token_unit" */ -export type Token_Unit_Stddev_Pop_Order_By = { - exponent?: InputMaybe; -}; - -/** order by stddev_samp() on columns of table "token_unit" */ -export type Token_Unit_Stddev_Samp_Order_By = { - exponent?: InputMaybe; -}; - -/** order by sum() on columns of table "token_unit" */ -export type Token_Unit_Sum_Order_By = { - exponent?: InputMaybe; -}; - -/** order by var_pop() on columns of table "token_unit" */ -export type Token_Unit_Var_Pop_Order_By = { - exponent?: InputMaybe; -}; - -/** order by var_samp() on columns of table "token_unit" */ -export type Token_Unit_Var_Samp_Order_By = { - exponent?: InputMaybe; -}; - -/** order by variance() on columns of table "token_unit" */ -export type Token_Unit_Variance_Order_By = { - exponent?: InputMaybe; -}; - -/** columns and relationships of "transaction" */ -export type Transaction = { - __typename?: 'transaction'; - /** An object relationship */ - block: Block; - fee: Scalars['jsonb']; - gas_used?: Maybe; - gas_wanted?: Maybe; - hash: Scalars['String']; - height: Scalars['bigint']; - logs?: Maybe; - memo?: Maybe; - messages: Scalars['json']; - raw_log?: Maybe; - signatures: Scalars['_text']; - signer_infos: Scalars['jsonb']; - success: Scalars['Boolean']; -}; - - -/** columns and relationships of "transaction" */ -export type TransactionFeeArgs = { - path?: InputMaybe; -}; - - -/** columns and relationships of "transaction" */ -export type TransactionLogsArgs = { - path?: InputMaybe; -}; - - -/** columns and relationships of "transaction" */ -export type TransactionMessagesArgs = { - path?: InputMaybe; -}; - - -/** columns and relationships of "transaction" */ -export type TransactionSigner_InfosArgs = { - path?: InputMaybe; -}; - -/** order by aggregate values of table "transaction" */ -export type Transaction_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** order by avg() on columns of table "transaction" */ -export type Transaction_Avg_Order_By = { - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - height?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "transaction". All fields are combined with a logical 'AND'. */ -export type Transaction_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - block?: InputMaybe; - fee?: InputMaybe; - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - hash?: InputMaybe; - height?: InputMaybe; - logs?: InputMaybe; - memo?: InputMaybe; - messages?: InputMaybe; - raw_log?: InputMaybe; - signatures?: InputMaybe<_Text_Comparison_Exp>; - signer_infos?: InputMaybe; - success?: InputMaybe; -}; - -/** order by max() on columns of table "transaction" */ -export type Transaction_Max_Order_By = { - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - hash?: InputMaybe; - height?: InputMaybe; - memo?: InputMaybe; - raw_log?: InputMaybe; -}; - -/** order by min() on columns of table "transaction" */ -export type Transaction_Min_Order_By = { - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - hash?: InputMaybe; - height?: InputMaybe; - memo?: InputMaybe; - raw_log?: InputMaybe; -}; - -/** Ordering options when selecting data from "transaction". */ -export type Transaction_Order_By = { - block?: InputMaybe; - fee?: InputMaybe; - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - hash?: InputMaybe; - height?: InputMaybe; - logs?: InputMaybe; - memo?: InputMaybe; - messages?: InputMaybe; - raw_log?: InputMaybe; - signatures?: InputMaybe; - signer_infos?: InputMaybe; - success?: InputMaybe; -}; - -/** select columns of table "transaction" */ -export enum Transaction_Select_Column { - /** column name */ - Fee = 'fee', - /** column name */ - GasUsed = 'gas_used', - /** column name */ - GasWanted = 'gas_wanted', - /** column name */ - Hash = 'hash', - /** column name */ - Height = 'height', - /** column name */ - Logs = 'logs', - /** column name */ - Memo = 'memo', - /** column name */ - Messages = 'messages', - /** column name */ - RawLog = 'raw_log', - /** column name */ - Signatures = 'signatures', - /** column name */ - SignerInfos = 'signer_infos', - /** column name */ - Success = 'success' -} - -/** order by stddev() on columns of table "transaction" */ -export type Transaction_Stddev_Order_By = { - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - height?: InputMaybe; -}; - -/** order by stddev_pop() on columns of table "transaction" */ -export type Transaction_Stddev_Pop_Order_By = { - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - height?: InputMaybe; -}; - -/** order by stddev_samp() on columns of table "transaction" */ -export type Transaction_Stddev_Samp_Order_By = { - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - height?: InputMaybe; -}; - -/** order by sum() on columns of table "transaction" */ -export type Transaction_Sum_Order_By = { - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - height?: InputMaybe; -}; - -/** order by var_pop() on columns of table "transaction" */ -export type Transaction_Var_Pop_Order_By = { - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - height?: InputMaybe; -}; - -/** order by var_samp() on columns of table "transaction" */ -export type Transaction_Var_Samp_Order_By = { - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - height?: InputMaybe; -}; - -/** order by variance() on columns of table "transaction" */ -export type Transaction_Variance_Order_By = { - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - height?: InputMaybe; -}; - -/** columns and relationships of "validator" */ -export type Validator = { - __typename?: 'validator'; - /** An array relationship */ - blocks: Array; - consensus_address: Scalars['String']; - consensus_pubkey: Scalars['String']; - /** An array relationship */ - double_sign_votes: Array; - /** An array relationship */ - pre_commits: Array; - /** An aggregate relationship */ - pre_commits_aggregate: Pre_Commit_Aggregate; - /** An object relationship */ - proposal_validator_status_snapshot?: Maybe; - /** An array relationship */ - proposal_validator_status_snapshots: Array; - /** An array relationship */ - validator_commissions: Array; - /** An array relationship */ - validator_descriptions: Array; - /** An object relationship */ - validator_info?: Maybe; - /** An array relationship */ - validator_infos: Array; - /** An array relationship */ - validator_signing_infos: Array; - /** An array relationship */ - validator_statuses: Array; - /** An aggregate relationship */ - validator_statuses_aggregate: Validator_Status_Aggregate; - /** An array relationship */ - validator_voting_powers: Array; - /** An aggregate relationship */ - validator_voting_powers_aggregate: Validator_Voting_Power_Aggregate; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorBlocksArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorDouble_Sign_VotesArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorPre_CommitsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorPre_Commits_AggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorProposal_Validator_Status_SnapshotsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorValidator_CommissionsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorValidator_DescriptionsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorValidator_InfosArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorValidator_Signing_InfosArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorValidator_StatusesArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorValidator_Statuses_AggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorValidator_Voting_PowersArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorValidator_Voting_Powers_AggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "validator". All fields are combined with a logical 'AND'. */ -export type Validator_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - blocks?: InputMaybe; - consensus_address?: InputMaybe; - consensus_pubkey?: InputMaybe; - double_sign_votes?: InputMaybe; - pre_commits?: InputMaybe; - proposal_validator_status_snapshot?: InputMaybe; - proposal_validator_status_snapshots?: InputMaybe; - validator_commissions?: InputMaybe; - validator_descriptions?: InputMaybe; - validator_info?: InputMaybe; - validator_infos?: InputMaybe; - validator_signing_infos?: InputMaybe; - validator_statuses?: InputMaybe; - validator_voting_powers?: InputMaybe; -}; - -/** columns and relationships of "validator_commission" */ -export type Validator_Commission = { - __typename?: 'validator_commission'; - commission: Scalars['numeric']; - height: Scalars['bigint']; - min_self_delegation: Scalars['bigint']; - /** An object relationship */ - validator: Validator; - validator_address: Scalars['String']; -}; - -/** order by aggregate values of table "validator_commission" */ -export type Validator_Commission_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** order by avg() on columns of table "validator_commission" */ -export type Validator_Commission_Avg_Order_By = { - commission?: InputMaybe; - height?: InputMaybe; - min_self_delegation?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "validator_commission". All fields are combined with a logical 'AND'. */ -export type Validator_Commission_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - commission?: InputMaybe; - height?: InputMaybe; - min_self_delegation?: InputMaybe; - validator?: InputMaybe; - validator_address?: InputMaybe; -}; - -/** order by max() on columns of table "validator_commission" */ -export type Validator_Commission_Max_Order_By = { - commission?: InputMaybe; - height?: InputMaybe; - min_self_delegation?: InputMaybe; - validator_address?: InputMaybe; -}; - -/** order by min() on columns of table "validator_commission" */ -export type Validator_Commission_Min_Order_By = { - commission?: InputMaybe; - height?: InputMaybe; - min_self_delegation?: InputMaybe; - validator_address?: InputMaybe; -}; - -/** Ordering options when selecting data from "validator_commission". */ -export type Validator_Commission_Order_By = { - commission?: InputMaybe; - height?: InputMaybe; - min_self_delegation?: InputMaybe; - validator?: InputMaybe; - validator_address?: InputMaybe; -}; - -/** select columns of table "validator_commission" */ -export enum Validator_Commission_Select_Column { - /** column name */ - Commission = 'commission', - /** column name */ - Height = 'height', - /** column name */ - MinSelfDelegation = 'min_self_delegation', - /** column name */ - ValidatorAddress = 'validator_address' -} - -/** order by stddev() on columns of table "validator_commission" */ -export type Validator_Commission_Stddev_Order_By = { - commission?: InputMaybe; - height?: InputMaybe; - min_self_delegation?: InputMaybe; -}; - -/** order by stddev_pop() on columns of table "validator_commission" */ -export type Validator_Commission_Stddev_Pop_Order_By = { - commission?: InputMaybe; - height?: InputMaybe; - min_self_delegation?: InputMaybe; -}; - -/** order by stddev_samp() on columns of table "validator_commission" */ -export type Validator_Commission_Stddev_Samp_Order_By = { - commission?: InputMaybe; - height?: InputMaybe; - min_self_delegation?: InputMaybe; -}; - -/** order by sum() on columns of table "validator_commission" */ -export type Validator_Commission_Sum_Order_By = { - commission?: InputMaybe; - height?: InputMaybe; - min_self_delegation?: InputMaybe; -}; - -/** order by var_pop() on columns of table "validator_commission" */ -export type Validator_Commission_Var_Pop_Order_By = { - commission?: InputMaybe; - height?: InputMaybe; - min_self_delegation?: InputMaybe; -}; - -/** order by var_samp() on columns of table "validator_commission" */ -export type Validator_Commission_Var_Samp_Order_By = { - commission?: InputMaybe; - height?: InputMaybe; - min_self_delegation?: InputMaybe; -}; - -/** order by variance() on columns of table "validator_commission" */ -export type Validator_Commission_Variance_Order_By = { - commission?: InputMaybe; - height?: InputMaybe; - min_self_delegation?: InputMaybe; -}; - -/** columns and relationships of "validator_description" */ -export type Validator_Description = { - __typename?: 'validator_description'; - avatar_url?: Maybe; - details?: Maybe; - height: Scalars['bigint']; - identity?: Maybe; - moniker?: Maybe; - security_contact?: Maybe; - /** An object relationship */ - validator: Validator; - validator_address: Scalars['String']; - website?: Maybe; -}; - -/** order by aggregate values of table "validator_description" */ -export type Validator_Description_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** order by avg() on columns of table "validator_description" */ -export type Validator_Description_Avg_Order_By = { - height?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "validator_description". All fields are combined with a logical 'AND'. */ -export type Validator_Description_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - avatar_url?: InputMaybe; - details?: InputMaybe; - height?: InputMaybe; - identity?: InputMaybe; - moniker?: InputMaybe; - security_contact?: InputMaybe; - validator?: InputMaybe; - validator_address?: InputMaybe; - website?: InputMaybe; -}; - -/** order by max() on columns of table "validator_description" */ -export type Validator_Description_Max_Order_By = { - avatar_url?: InputMaybe; - details?: InputMaybe; - height?: InputMaybe; - identity?: InputMaybe; - moniker?: InputMaybe; - security_contact?: InputMaybe; - validator_address?: InputMaybe; - website?: InputMaybe; -}; - -/** order by min() on columns of table "validator_description" */ -export type Validator_Description_Min_Order_By = { - avatar_url?: InputMaybe; - details?: InputMaybe; - height?: InputMaybe; - identity?: InputMaybe; - moniker?: InputMaybe; - security_contact?: InputMaybe; - validator_address?: InputMaybe; - website?: InputMaybe; -}; - -/** Ordering options when selecting data from "validator_description". */ -export type Validator_Description_Order_By = { - avatar_url?: InputMaybe; - details?: InputMaybe; - height?: InputMaybe; - identity?: InputMaybe; - moniker?: InputMaybe; - security_contact?: InputMaybe; - validator?: InputMaybe; - validator_address?: InputMaybe; - website?: InputMaybe; -}; - -/** select columns of table "validator_description" */ -export enum Validator_Description_Select_Column { - /** column name */ - AvatarUrl = 'avatar_url', - /** column name */ - Details = 'details', - /** column name */ - Height = 'height', - /** column name */ - Identity = 'identity', - /** column name */ - Moniker = 'moniker', - /** column name */ - SecurityContact = 'security_contact', - /** column name */ - ValidatorAddress = 'validator_address', - /** column name */ - Website = 'website' -} - -/** order by stddev() on columns of table "validator_description" */ -export type Validator_Description_Stddev_Order_By = { - height?: InputMaybe; -}; - -/** order by stddev_pop() on columns of table "validator_description" */ -export type Validator_Description_Stddev_Pop_Order_By = { - height?: InputMaybe; -}; - -/** order by stddev_samp() on columns of table "validator_description" */ -export type Validator_Description_Stddev_Samp_Order_By = { - height?: InputMaybe; -}; - -/** order by sum() on columns of table "validator_description" */ -export type Validator_Description_Sum_Order_By = { - height?: InputMaybe; -}; - -/** order by var_pop() on columns of table "validator_description" */ -export type Validator_Description_Var_Pop_Order_By = { - height?: InputMaybe; -}; - -/** order by var_samp() on columns of table "validator_description" */ -export type Validator_Description_Var_Samp_Order_By = { - height?: InputMaybe; -}; - -/** order by variance() on columns of table "validator_description" */ -export type Validator_Description_Variance_Order_By = { - height?: InputMaybe; -}; - -/** columns and relationships of "validator_info" */ -export type Validator_Info = { - __typename?: 'validator_info'; - /** An object relationship */ - account?: Maybe; - consensus_address: Scalars['String']; - max_change_rate: Scalars['String']; - max_rate: Scalars['String']; - operator_address: Scalars['String']; - self_delegate_address?: Maybe; - /** An object relationship */ - validator: Validator; -}; - -/** order by aggregate values of table "validator_info" */ -export type Validator_Info_Aggregate_Order_By = { - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "validator_info". All fields are combined with a logical 'AND'. */ -export type Validator_Info_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - account?: InputMaybe; - consensus_address?: InputMaybe; - max_change_rate?: InputMaybe; - max_rate?: InputMaybe; - operator_address?: InputMaybe; - self_delegate_address?: InputMaybe; - validator?: InputMaybe; -}; - -/** order by max() on columns of table "validator_info" */ -export type Validator_Info_Max_Order_By = { - consensus_address?: InputMaybe; - max_change_rate?: InputMaybe; - max_rate?: InputMaybe; - operator_address?: InputMaybe; - self_delegate_address?: InputMaybe; -}; - -/** order by min() on columns of table "validator_info" */ -export type Validator_Info_Min_Order_By = { - consensus_address?: InputMaybe; - max_change_rate?: InputMaybe; - max_rate?: InputMaybe; - operator_address?: InputMaybe; - self_delegate_address?: InputMaybe; -}; - -/** Ordering options when selecting data from "validator_info". */ -export type Validator_Info_Order_By = { - account?: InputMaybe; - consensus_address?: InputMaybe; - max_change_rate?: InputMaybe; - max_rate?: InputMaybe; - operator_address?: InputMaybe; - self_delegate_address?: InputMaybe; - validator?: InputMaybe; -}; - -/** select columns of table "validator_info" */ -export enum Validator_Info_Select_Column { - /** column name */ - ConsensusAddress = 'consensus_address', - /** column name */ - MaxChangeRate = 'max_change_rate', - /** column name */ - MaxRate = 'max_rate', - /** column name */ - OperatorAddress = 'operator_address', - /** column name */ - SelfDelegateAddress = 'self_delegate_address' -} - -/** Ordering options when selecting data from "validator". */ -export type Validator_Order_By = { - blocks_aggregate?: InputMaybe; - consensus_address?: InputMaybe; - consensus_pubkey?: InputMaybe; - double_sign_votes_aggregate?: InputMaybe; - pre_commits_aggregate?: InputMaybe; - proposal_validator_status_snapshot?: InputMaybe; - proposal_validator_status_snapshots_aggregate?: InputMaybe; - validator_commissions_aggregate?: InputMaybe; - validator_descriptions_aggregate?: InputMaybe; - validator_info?: InputMaybe; - validator_infos_aggregate?: InputMaybe; - validator_signing_infos_aggregate?: InputMaybe; - validator_statuses_aggregate?: InputMaybe; - validator_voting_powers_aggregate?: InputMaybe; -}; - -/** select columns of table "validator" */ -export enum Validator_Select_Column { - /** column name */ - ConsensusAddress = 'consensus_address', - /** column name */ - ConsensusPubkey = 'consensus_pubkey' -} - -/** columns and relationships of "validator_signing_info" */ -export type Validator_Signing_Info = { - __typename?: 'validator_signing_info'; - height: Scalars['bigint']; - index_offset: Scalars['bigint']; - jailed_until: Scalars['timestamp']; - missed_blocks_counter: Scalars['bigint']; - start_height: Scalars['bigint']; - tombstoned: Scalars['Boolean']; - validator_address: Scalars['String']; -}; - -/** order by aggregate values of table "validator_signing_info" */ -export type Validator_Signing_Info_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** order by avg() on columns of table "validator_signing_info" */ -export type Validator_Signing_Info_Avg_Order_By = { - height?: InputMaybe; - index_offset?: InputMaybe; - missed_blocks_counter?: InputMaybe; - start_height?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "validator_signing_info". All fields are combined with a logical 'AND'. */ -export type Validator_Signing_Info_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - height?: InputMaybe; - index_offset?: InputMaybe; - jailed_until?: InputMaybe; - missed_blocks_counter?: InputMaybe; - start_height?: InputMaybe; - tombstoned?: InputMaybe; - validator_address?: InputMaybe; -}; - -/** order by max() on columns of table "validator_signing_info" */ -export type Validator_Signing_Info_Max_Order_By = { - height?: InputMaybe; - index_offset?: InputMaybe; - jailed_until?: InputMaybe; - missed_blocks_counter?: InputMaybe; - start_height?: InputMaybe; - validator_address?: InputMaybe; -}; - -/** order by min() on columns of table "validator_signing_info" */ -export type Validator_Signing_Info_Min_Order_By = { - height?: InputMaybe; - index_offset?: InputMaybe; - jailed_until?: InputMaybe; - missed_blocks_counter?: InputMaybe; - start_height?: InputMaybe; - validator_address?: InputMaybe; -}; - -/** Ordering options when selecting data from "validator_signing_info". */ -export type Validator_Signing_Info_Order_By = { - height?: InputMaybe; - index_offset?: InputMaybe; - jailed_until?: InputMaybe; - missed_blocks_counter?: InputMaybe; - start_height?: InputMaybe; - tombstoned?: InputMaybe; - validator_address?: InputMaybe; -}; - -/** select columns of table "validator_signing_info" */ -export enum Validator_Signing_Info_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - IndexOffset = 'index_offset', - /** column name */ - JailedUntil = 'jailed_until', - /** column name */ - MissedBlocksCounter = 'missed_blocks_counter', - /** column name */ - StartHeight = 'start_height', - /** column name */ - Tombstoned = 'tombstoned', - /** column name */ - ValidatorAddress = 'validator_address' -} - -/** order by stddev() on columns of table "validator_signing_info" */ -export type Validator_Signing_Info_Stddev_Order_By = { - height?: InputMaybe; - index_offset?: InputMaybe; - missed_blocks_counter?: InputMaybe; - start_height?: InputMaybe; -}; - -/** order by stddev_pop() on columns of table "validator_signing_info" */ -export type Validator_Signing_Info_Stddev_Pop_Order_By = { - height?: InputMaybe; - index_offset?: InputMaybe; - missed_blocks_counter?: InputMaybe; - start_height?: InputMaybe; -}; - -/** order by stddev_samp() on columns of table "validator_signing_info" */ -export type Validator_Signing_Info_Stddev_Samp_Order_By = { - height?: InputMaybe; - index_offset?: InputMaybe; - missed_blocks_counter?: InputMaybe; - start_height?: InputMaybe; -}; - -/** order by sum() on columns of table "validator_signing_info" */ -export type Validator_Signing_Info_Sum_Order_By = { - height?: InputMaybe; - index_offset?: InputMaybe; - missed_blocks_counter?: InputMaybe; - start_height?: InputMaybe; -}; - -/** order by var_pop() on columns of table "validator_signing_info" */ -export type Validator_Signing_Info_Var_Pop_Order_By = { - height?: InputMaybe; - index_offset?: InputMaybe; - missed_blocks_counter?: InputMaybe; - start_height?: InputMaybe; -}; - -/** order by var_samp() on columns of table "validator_signing_info" */ -export type Validator_Signing_Info_Var_Samp_Order_By = { - height?: InputMaybe; - index_offset?: InputMaybe; - missed_blocks_counter?: InputMaybe; - start_height?: InputMaybe; -}; - -/** order by variance() on columns of table "validator_signing_info" */ -export type Validator_Signing_Info_Variance_Order_By = { - height?: InputMaybe; - index_offset?: InputMaybe; - missed_blocks_counter?: InputMaybe; - start_height?: InputMaybe; -}; - -/** columns and relationships of "validator_status" */ -export type Validator_Status = { - __typename?: 'validator_status'; - height: Scalars['bigint']; - jailed: Scalars['Boolean']; - status: Scalars['Int']; - /** An object relationship */ - validator: Validator; - validator_address: Scalars['String']; -}; - -/** aggregated selection of "validator_status" */ -export type Validator_Status_Aggregate = { - __typename?: 'validator_status_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "validator_status" */ -export type Validator_Status_Aggregate_Fields = { - __typename?: 'validator_status_aggregate_fields'; - avg?: Maybe; - count: Scalars['Int']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - - -/** aggregate fields of "validator_status" */ -export type Validator_Status_Aggregate_FieldsCountArgs = { - columns?: InputMaybe>; - distinct?: InputMaybe; -}; - -/** order by aggregate values of table "validator_status" */ -export type Validator_Status_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** aggregate avg on columns */ -export type Validator_Status_Avg_Fields = { - __typename?: 'validator_status_avg_fields'; - height?: Maybe; - status?: Maybe; -}; - -/** order by avg() on columns of table "validator_status" */ -export type Validator_Status_Avg_Order_By = { - height?: InputMaybe; - status?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "validator_status". All fields are combined with a logical 'AND'. */ -export type Validator_Status_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - height?: InputMaybe; - jailed?: InputMaybe; - status?: InputMaybe; - validator?: InputMaybe; - validator_address?: InputMaybe; -}; - -/** aggregate max on columns */ -export type Validator_Status_Max_Fields = { - __typename?: 'validator_status_max_fields'; - height?: Maybe; - status?: Maybe; - validator_address?: Maybe; -}; - -/** order by max() on columns of table "validator_status" */ -export type Validator_Status_Max_Order_By = { - height?: InputMaybe; - status?: InputMaybe; - validator_address?: InputMaybe; -}; - -/** aggregate min on columns */ -export type Validator_Status_Min_Fields = { - __typename?: 'validator_status_min_fields'; - height?: Maybe; - status?: Maybe; - validator_address?: Maybe; -}; - -/** order by min() on columns of table "validator_status" */ -export type Validator_Status_Min_Order_By = { - height?: InputMaybe; - status?: InputMaybe; - validator_address?: InputMaybe; -}; - -/** Ordering options when selecting data from "validator_status". */ -export type Validator_Status_Order_By = { - height?: InputMaybe; - jailed?: InputMaybe; - status?: InputMaybe; - validator?: InputMaybe; - validator_address?: InputMaybe; -}; - -/** select columns of table "validator_status" */ -export enum Validator_Status_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - Jailed = 'jailed', - /** column name */ - Status = 'status', - /** column name */ - ValidatorAddress = 'validator_address' -} - -/** aggregate stddev on columns */ -export type Validator_Status_Stddev_Fields = { - __typename?: 'validator_status_stddev_fields'; - height?: Maybe; - status?: Maybe; -}; - -/** order by stddev() on columns of table "validator_status" */ -export type Validator_Status_Stddev_Order_By = { - height?: InputMaybe; - status?: InputMaybe; -}; - -/** aggregate stddev_pop on columns */ -export type Validator_Status_Stddev_Pop_Fields = { - __typename?: 'validator_status_stddev_pop_fields'; - height?: Maybe; - status?: Maybe; -}; - -/** order by stddev_pop() on columns of table "validator_status" */ -export type Validator_Status_Stddev_Pop_Order_By = { - height?: InputMaybe; - status?: InputMaybe; -}; - -/** aggregate stddev_samp on columns */ -export type Validator_Status_Stddev_Samp_Fields = { - __typename?: 'validator_status_stddev_samp_fields'; - height?: Maybe; - status?: Maybe; -}; - -/** order by stddev_samp() on columns of table "validator_status" */ -export type Validator_Status_Stddev_Samp_Order_By = { - height?: InputMaybe; - status?: InputMaybe; -}; - -/** aggregate sum on columns */ -export type Validator_Status_Sum_Fields = { - __typename?: 'validator_status_sum_fields'; - height?: Maybe; - status?: Maybe; -}; - -/** order by sum() on columns of table "validator_status" */ -export type Validator_Status_Sum_Order_By = { - height?: InputMaybe; - status?: InputMaybe; -}; - -/** aggregate var_pop on columns */ -export type Validator_Status_Var_Pop_Fields = { - __typename?: 'validator_status_var_pop_fields'; - height?: Maybe; - status?: Maybe; -}; - -/** order by var_pop() on columns of table "validator_status" */ -export type Validator_Status_Var_Pop_Order_By = { - height?: InputMaybe; - status?: InputMaybe; -}; - -/** aggregate var_samp on columns */ -export type Validator_Status_Var_Samp_Fields = { - __typename?: 'validator_status_var_samp_fields'; - height?: Maybe; - status?: Maybe; -}; - -/** order by var_samp() on columns of table "validator_status" */ -export type Validator_Status_Var_Samp_Order_By = { - height?: InputMaybe; - status?: InputMaybe; -}; - -/** aggregate variance on columns */ -export type Validator_Status_Variance_Fields = { - __typename?: 'validator_status_variance_fields'; - height?: Maybe; - status?: Maybe; -}; - -/** order by variance() on columns of table "validator_status" */ -export type Validator_Status_Variance_Order_By = { - height?: InputMaybe; - status?: InputMaybe; -}; - -/** columns and relationships of "validator_voting_power" */ -export type Validator_Voting_Power = { - __typename?: 'validator_voting_power'; - /** An object relationship */ - block: Block; - height: Scalars['bigint']; - /** An object relationship */ - validator: Validator; - validator_address: Scalars['String']; - voting_power: Scalars['bigint']; -}; - -/** aggregated selection of "validator_voting_power" */ -export type Validator_Voting_Power_Aggregate = { - __typename?: 'validator_voting_power_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "validator_voting_power" */ -export type Validator_Voting_Power_Aggregate_Fields = { - __typename?: 'validator_voting_power_aggregate_fields'; - avg?: Maybe; - count: Scalars['Int']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - - -/** aggregate fields of "validator_voting_power" */ -export type Validator_Voting_Power_Aggregate_FieldsCountArgs = { - columns?: InputMaybe>; - distinct?: InputMaybe; -}; - -/** order by aggregate values of table "validator_voting_power" */ -export type Validator_Voting_Power_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** aggregate avg on columns */ -export type Validator_Voting_Power_Avg_Fields = { - __typename?: 'validator_voting_power_avg_fields'; - height?: Maybe; - voting_power?: Maybe; -}; - -/** order by avg() on columns of table "validator_voting_power" */ -export type Validator_Voting_Power_Avg_Order_By = { - height?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "validator_voting_power". All fields are combined with a logical 'AND'. */ -export type Validator_Voting_Power_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - block?: InputMaybe; - height?: InputMaybe; - validator?: InputMaybe; - validator_address?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** aggregate max on columns */ -export type Validator_Voting_Power_Max_Fields = { - __typename?: 'validator_voting_power_max_fields'; - height?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** order by max() on columns of table "validator_voting_power" */ -export type Validator_Voting_Power_Max_Order_By = { - height?: InputMaybe; - validator_address?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** aggregate min on columns */ -export type Validator_Voting_Power_Min_Fields = { - __typename?: 'validator_voting_power_min_fields'; - height?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** order by min() on columns of table "validator_voting_power" */ -export type Validator_Voting_Power_Min_Order_By = { - height?: InputMaybe; - validator_address?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** Ordering options when selecting data from "validator_voting_power". */ -export type Validator_Voting_Power_Order_By = { - block?: InputMaybe; - height?: InputMaybe; - validator?: InputMaybe; - validator_address?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** select columns of table "validator_voting_power" */ -export enum Validator_Voting_Power_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - ValidatorAddress = 'validator_address', - /** column name */ - VotingPower = 'voting_power' -} - -/** aggregate stddev on columns */ -export type Validator_Voting_Power_Stddev_Fields = { - __typename?: 'validator_voting_power_stddev_fields'; - height?: Maybe; - voting_power?: Maybe; -}; - -/** order by stddev() on columns of table "validator_voting_power" */ -export type Validator_Voting_Power_Stddev_Order_By = { - height?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** aggregate stddev_pop on columns */ -export type Validator_Voting_Power_Stddev_Pop_Fields = { - __typename?: 'validator_voting_power_stddev_pop_fields'; - height?: Maybe; - voting_power?: Maybe; -}; - -/** order by stddev_pop() on columns of table "validator_voting_power" */ -export type Validator_Voting_Power_Stddev_Pop_Order_By = { - height?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** aggregate stddev_samp on columns */ -export type Validator_Voting_Power_Stddev_Samp_Fields = { - __typename?: 'validator_voting_power_stddev_samp_fields'; - height?: Maybe; - voting_power?: Maybe; -}; - -/** order by stddev_samp() on columns of table "validator_voting_power" */ -export type Validator_Voting_Power_Stddev_Samp_Order_By = { - height?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** aggregate sum on columns */ -export type Validator_Voting_Power_Sum_Fields = { - __typename?: 'validator_voting_power_sum_fields'; - height?: Maybe; - voting_power?: Maybe; -}; - -/** order by sum() on columns of table "validator_voting_power" */ -export type Validator_Voting_Power_Sum_Order_By = { - height?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** aggregate var_pop on columns */ -export type Validator_Voting_Power_Var_Pop_Fields = { - __typename?: 'validator_voting_power_var_pop_fields'; - height?: Maybe; - voting_power?: Maybe; -}; - -/** order by var_pop() on columns of table "validator_voting_power" */ -export type Validator_Voting_Power_Var_Pop_Order_By = { - height?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** aggregate var_samp on columns */ -export type Validator_Voting_Power_Var_Samp_Fields = { - __typename?: 'validator_voting_power_var_samp_fields'; - height?: Maybe; - voting_power?: Maybe; -}; - -/** order by var_samp() on columns of table "validator_voting_power" */ -export type Validator_Voting_Power_Var_Samp_Order_By = { - height?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** aggregate variance on columns */ -export type Validator_Voting_Power_Variance_Fields = { - __typename?: 'validator_voting_power_variance_fields'; - height?: Maybe; - voting_power?: Maybe; -}; - -/** order by variance() on columns of table "validator_voting_power" */ -export type Validator_Voting_Power_Variance_Order_By = { - height?: InputMaybe; - voting_power?: InputMaybe; -}; - -/** columns and relationships of "vesting_account" */ -export type Vesting_Account = { - __typename?: 'vesting_account'; - /** An object relationship */ - account: Account; - address: Scalars['String']; - end_time: Scalars['timestamp']; - original_vesting: Scalars['_coin']; - start_time?: Maybe; - type: Scalars['String']; - /** An array relationship */ - vesting_periods: Array; -}; - - -/** columns and relationships of "vesting_account" */ -export type Vesting_AccountVesting_PeriodsArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - -/** order by aggregate values of table "vesting_account" */ -export type Vesting_Account_Aggregate_Order_By = { - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "vesting_account". All fields are combined with a logical 'AND'. */ -export type Vesting_Account_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - account?: InputMaybe; - address?: InputMaybe; - end_time?: InputMaybe; - original_vesting?: InputMaybe<_Coin_Comparison_Exp>; - start_time?: InputMaybe; - type?: InputMaybe; - vesting_periods?: InputMaybe; -}; - -/** order by max() on columns of table "vesting_account" */ -export type Vesting_Account_Max_Order_By = { - address?: InputMaybe; - end_time?: InputMaybe; - start_time?: InputMaybe; - type?: InputMaybe; -}; - -/** order by min() on columns of table "vesting_account" */ -export type Vesting_Account_Min_Order_By = { - address?: InputMaybe; - end_time?: InputMaybe; - start_time?: InputMaybe; - type?: InputMaybe; -}; - -/** Ordering options when selecting data from "vesting_account". */ -export type Vesting_Account_Order_By = { - account?: InputMaybe; - address?: InputMaybe; - end_time?: InputMaybe; - original_vesting?: InputMaybe; - start_time?: InputMaybe; - type?: InputMaybe; - vesting_periods_aggregate?: InputMaybe; -}; - -/** select columns of table "vesting_account" */ -export enum Vesting_Account_Select_Column { - /** column name */ - Address = 'address', - /** column name */ - EndTime = 'end_time', - /** column name */ - OriginalVesting = 'original_vesting', - /** column name */ - StartTime = 'start_time', - /** column name */ - Type = 'type' -} - -/** columns and relationships of "vesting_period" */ -export type Vesting_Period = { - __typename?: 'vesting_period'; - amount: Scalars['_coin']; - length: Scalars['bigint']; - period_order: Scalars['bigint']; - /** An object relationship */ - vesting_account: Vesting_Account; -}; - -/** order by aggregate values of table "vesting_period" */ -export type Vesting_Period_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** order by avg() on columns of table "vesting_period" */ -export type Vesting_Period_Avg_Order_By = { - length?: InputMaybe; - period_order?: InputMaybe; -}; - -/** Boolean expression to filter rows from the table "vesting_period". All fields are combined with a logical 'AND'. */ -export type Vesting_Period_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - amount?: InputMaybe<_Coin_Comparison_Exp>; - length?: InputMaybe; - period_order?: InputMaybe; - vesting_account?: InputMaybe; -}; - -/** order by max() on columns of table "vesting_period" */ -export type Vesting_Period_Max_Order_By = { - length?: InputMaybe; - period_order?: InputMaybe; -}; - -/** order by min() on columns of table "vesting_period" */ -export type Vesting_Period_Min_Order_By = { - length?: InputMaybe; - period_order?: InputMaybe; -}; - -/** Ordering options when selecting data from "vesting_period". */ -export type Vesting_Period_Order_By = { - amount?: InputMaybe; - length?: InputMaybe; - period_order?: InputMaybe; - vesting_account?: InputMaybe; -}; - -/** select columns of table "vesting_period" */ -export enum Vesting_Period_Select_Column { - /** column name */ - Amount = 'amount', - /** column name */ - Length = 'length', - /** column name */ - PeriodOrder = 'period_order' -} - -/** order by stddev() on columns of table "vesting_period" */ -export type Vesting_Period_Stddev_Order_By = { - length?: InputMaybe; - period_order?: InputMaybe; -}; - -/** order by stddev_pop() on columns of table "vesting_period" */ -export type Vesting_Period_Stddev_Pop_Order_By = { - length?: InputMaybe; - period_order?: InputMaybe; -}; - -/** order by stddev_samp() on columns of table "vesting_period" */ -export type Vesting_Period_Stddev_Samp_Order_By = { - length?: InputMaybe; - period_order?: InputMaybe; -}; - -/** order by sum() on columns of table "vesting_period" */ -export type Vesting_Period_Sum_Order_By = { - length?: InputMaybe; - period_order?: InputMaybe; -}; - -/** order by var_pop() on columns of table "vesting_period" */ -export type Vesting_Period_Var_Pop_Order_By = { - length?: InputMaybe; - period_order?: InputMaybe; -}; - -/** order by var_samp() on columns of table "vesting_period" */ -export type Vesting_Period_Var_Samp_Order_By = { - length?: InputMaybe; - period_order?: InputMaybe; -}; - -/** order by variance() on columns of table "vesting_period" */ -export type Vesting_Period_Variance_Order_By = { - length?: InputMaybe; - period_order?: InputMaybe; -}; - -export type AccountCommissionQueryVariables = Exact<{ - validatorAddress: Scalars['String']; -}>; - - -export type AccountCommissionQuery = { commission?: { __typename?: 'ActionValidatorCommissionAmount', coins?: Array | null } | null }; - -export type AccountWithdrawalAddressQueryVariables = Exact<{ - address: Scalars['String']; -}>; - - -export type AccountWithdrawalAddressQuery = { withdrawalAddress: { __typename?: 'ActionAddress', address: string } }; - -export type AccountBalancesQueryVariables = Exact<{ - address: Scalars['String']; -}>; - - -export type AccountBalancesQuery = { accountBalances?: { __typename?: 'ActionBalance', coins?: Array | null } | null }; - -export type AccountDelegationBalanceQueryVariables = Exact<{ - address: Scalars['String']; -}>; - - -export type AccountDelegationBalanceQuery = { delegationBalance?: { __typename?: 'ActionBalance', coins?: Array | null } | null }; - -export type AccountUnbondingBalanceQueryVariables = Exact<{ - address: Scalars['String']; -}>; - - -export type AccountUnbondingBalanceQuery = { unbondingBalance?: { __typename?: 'ActionBalance', coins?: Array | null } | null }; - -export type AccountDelegationRewardsQueryVariables = Exact<{ - address: Scalars['String']; -}>; - - -export type AccountDelegationRewardsQuery = { delegationRewards?: Array<{ __typename?: 'ActionDelegationReward', coins?: Array | null, validatorAddress: string } | null> | null }; - -export type AccountDelegationsQueryVariables = Exact<{ - address: Scalars['String']; - offset?: InputMaybe; - limit?: InputMaybe; - pagination?: Scalars['Boolean']; -}>; - - -export type AccountDelegationsQuery = { delegations?: { __typename?: 'ActionDelegationResponse', delegations?: Array | null, pagination?: any | null } | null }; - -export type AccountRedelegationsQueryVariables = Exact<{ - address: Scalars['String']; - offset?: InputMaybe; - limit?: InputMaybe; - pagination?: Scalars['Boolean']; -}>; - - -export type AccountRedelegationsQuery = { redelegations?: { __typename?: 'ActionRedelegationResponse', redelegations?: Array | null, pagination?: any | null } | null }; - -export type AccountUndelegationsQueryVariables = Exact<{ - address: Scalars['String']; - offset?: InputMaybe; - limit?: InputMaybe; - pagination?: Scalars['Boolean']; -}>; - - -export type AccountUndelegationsQuery = { undelegations?: { __typename?: 'ActionUnbondingDelegationResponse', pagination?: any | null, undelegations?: Array | null } | null }; - -export type ActiveValidatorCountQueryVariables = Exact<{ [key: string]: never; }>; - - -export type ActiveValidatorCountQuery = { activeTotal: { __typename?: 'validator_status_aggregate', aggregate?: { __typename?: 'validator_status_aggregate_fields', count: number } | null }, inactiveTotal: { __typename?: 'validator_status_aggregate', aggregate?: { __typename?: 'validator_status_aggregate_fields', count: number } | null }, total: { __typename?: 'validator_status_aggregate', aggregate?: { __typename?: 'validator_status_aggregate_fields', count: number } | null } }; - -export type BlockDetailsQueryVariables = Exact<{ - height?: InputMaybe; - signatureHeight?: InputMaybe; -}>; - - -export type BlockDetailsQuery = { transaction: Array<{ __typename?: 'transaction', height: any, hash: string, messages: any, success: boolean, logs?: any | null }>, block: Array<{ __typename?: 'block', height: any, hash: string, timestamp: any, txs?: number | null, validator?: { __typename?: 'validator', validatorInfo?: { __typename?: 'validator_info', operatorAddress: string } | null } | null }>, preCommitsAggregate: { __typename?: 'pre_commit_aggregate', aggregate?: { __typename?: 'pre_commit_aggregate_fields', sum?: { __typename?: 'pre_commit_sum_fields', votingPower?: any | null } | null } | null }, preCommits: Array<{ __typename?: 'pre_commit', validator: { __typename?: 'validator', validatorInfo?: { __typename?: 'validator_info', operatorAddress: string } | null } }> }; - -export type LatestBlockHeightListenerSubscriptionVariables = Exact<{ - offset?: InputMaybe; -}>; - - -export type LatestBlockHeightListenerSubscription = { height: Array<{ __typename?: 'block', height: any }> }; - -export type AverageBlockTimeQueryVariables = Exact<{ [key: string]: never; }>; - - -export type AverageBlockTimeQuery = { averageBlockTime: Array<{ __typename?: 'average_block_time_per_hour', averageTime: any }> }; - -export type LatestBlockTimestampQueryVariables = Exact<{ - offset?: InputMaybe; -}>; - - -export type LatestBlockTimestampQuery = { block: Array<{ __typename?: 'block', timestamp: any }> }; - -export type BlocksListenerSubscriptionVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; -}>; - - -export type BlocksListenerSubscription = { blocks: Array<{ __typename?: 'block', height: any, hash: string, timestamp: any, txs?: number | null, validator?: { __typename?: 'validator', validatorInfo?: { __typename?: 'validator_info', operatorAddress: string } | null } | null }> }; - -export type BlocksQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; -}>; - - -export type BlocksQuery = { blocks: Array<{ __typename?: 'block', height: any, hash: string, timestamp: any, txs?: number | null, validator?: { __typename?: 'validator', validatorInfo?: { __typename?: 'validator_info', self_delegate_address?: string | null, operatorAddress: string } | null, validatorDescriptions: Array<{ __typename?: 'validator_description', moniker?: string | null, identity?: string | null }> } | null }> }; - -export type ChainIdQueryVariables = Exact<{ [key: string]: never; }>; - - -export type ChainIdQuery = { genesis: Array<{ __typename?: 'genesis', time: any, chainId: string }> }; - -export type MarketDataQueryVariables = Exact<{ - denom?: InputMaybe; -}>; - - -export type MarketDataQuery = { communityPool: Array<{ __typename?: 'community_pool', coins: any }>, inflation: Array<{ __typename?: 'inflation', value: any }>, tokenPrice: Array<{ __typename?: 'token_price', price: any, marketCap: any }>, supply: Array<{ __typename?: 'supply', coins: any }>, bondedTokens: Array<{ __typename?: 'staking_pool', bonded_tokens: string }>, distributionParams: Array<{ __typename?: 'distribution_params', params: any }> }; - -export type GetMessagesByAddressQueryVariables = Exact<{ - address?: InputMaybe; - limit?: InputMaybe; - offset?: InputMaybe; - types?: InputMaybe; -}>; - - -export type GetMessagesByAddressQuery = { messagesByAddress: Array<{ __typename?: 'message', transaction?: { __typename?: 'transaction', height: any, hash: string, success: boolean, messages: any, logs?: any | null, block: { __typename?: 'block', height: any, timestamp: any } } | null }> }; - -export type OnlineVotingPowerQueryVariables = Exact<{ [key: string]: never; }>; - - -export type OnlineVotingPowerQuery = { activeTotal: { __typename?: 'validator_status_aggregate', aggregate?: { __typename?: 'validator_status_aggregate_fields', count: number } | null }, validatorVotingPowerAggregate: { __typename?: 'validator_voting_power_aggregate', aggregate?: { __typename?: 'validator_voting_power_aggregate_fields', sum?: { __typename?: 'validator_voting_power_sum_fields', votingPower?: any | null } | null } | null }, stakingPool: Array<{ __typename?: 'staking_pool', bonded: string }>, stakingParams: Array<{ __typename?: 'staking_params', params: any }> }; - -export type ParamsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type ParamsQuery = { stakingParams: Array<{ __typename?: 'staking_params', params: any }>, slashingParams: Array<{ __typename?: 'slashing_params', params: any }>, mintParams: Array<{ __typename?: 'mint_params', params: any }>, distributionParams: Array<{ __typename?: 'distribution_params', params: any }>, govParams: Array<{ __typename?: 'gov_params', params: any, height: any }> }; - -export type ProposalDetailsQueryVariables = Exact<{ - proposalId?: InputMaybe; -}>; - - -export type ProposalDetailsQuery = { proposal: Array<{ __typename?: 'proposal', title: string, description: string, status?: string | null, content: any, proposer: string, proposalId: number, submitTime: any, depositEndTime?: any | null, votingStartTime?: any | null, votingEndTime?: any | null }> }; - -export type ProposalDetailsTallyQueryVariables = Exact<{ - proposalId?: InputMaybe; -}>; - - -export type ProposalDetailsTallyQuery = { proposalTallyResult: Array<{ __typename?: 'proposal_tally_result', yes: string, no: string, abstain: string, noWithVeto: string }>, stakingPool: Array<{ __typename?: 'proposal_staking_pool_snapshot', bondedTokens: string }>, quorum: Array<{ __typename?: 'gov_params', tallyParams: any }> }; - -export type ProposalDetailsDepositsQueryVariables = Exact<{ - proposalId?: InputMaybe; -}>; - - -export type ProposalDetailsDepositsQuery = { proposalDeposit: Array<{ __typename?: 'proposal_deposit', amount?: any | null, depositorAddress?: string | null, block?: { __typename?: 'block', timestamp: any } | null }> }; - -export type ProposalDetailsVotesQueryVariables = Exact<{ - proposalId?: InputMaybe; -}>; - - -export type ProposalDetailsVotesQuery = { proposalVote: Array<{ __typename?: 'proposal_vote', option: string, voterAddress: string }>, validatorStatuses: Array<{ __typename?: 'proposal_validator_status_snapshot', validator: { __typename?: 'validator', validatorInfo?: { __typename?: 'validator_info', selfDelegateAddress?: string | null } | null } }> }; - -export type ProposalsQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; -}>; - - -export type ProposalsQuery = { proposals: Array<{ __typename?: 'proposal', title: string, status?: string | null, description: string, proposalId: number }>, total: { __typename?: 'proposal_aggregate', aggregate?: { __typename?: 'proposal_aggregate_fields', count: number } | null } }; - -export type TokenPriceListenerSubscriptionVariables = Exact<{ - denom?: InputMaybe; -}>; - - -export type TokenPriceListenerSubscription = { tokenPrice: Array<{ __typename?: 'token_price', price: any, timestamp: any, marketCap: any, unitName: string }> }; - -export type TokenPriceHistoryQueryVariables = Exact<{ - denom?: InputMaybe; - limit?: InputMaybe; -}>; - - -export type TokenPriceHistoryQuery = { tokenPrice: Array<{ __typename?: 'token_price_history', price: any, timestamp: any }> }; - -export type TokenomicsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type TokenomicsQuery = { stakingParams: Array<{ __typename?: 'staking_params', params: any }>, stakingPool: Array<{ __typename?: 'staking_pool', bonded: string, unbonded: string }>, supply: Array<{ __typename?: 'supply', coins: any }> }; - -export type TransactionDetailsQueryVariables = Exact<{ - hash?: InputMaybe; -}>; - - -export type TransactionDetailsQuery = { transaction: Array<{ __typename?: 'transaction', logs?: any | null, hash: string, height: any, fee: any, gasUsed?: any | null, gasWanted?: any | null, success: boolean, memo?: string | null, messages: any, rawLog?: string | null, block: { __typename?: 'block', timestamp: any } }> }; - -export type TransactionsListenerSubscriptionVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; -}>; - - -export type TransactionsListenerSubscription = { transactions: Array<{ __typename?: 'transaction', height: any, hash: string, success: boolean, messages: any, logs?: any | null, block: { __typename?: 'block', timestamp: any } }> }; - -export type TransactionsQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; -}>; - - -export type TransactionsQuery = { transactions: Array<{ __typename?: 'transaction', height: any, hash: string, success: boolean, messages: any, logs?: any | null, block: { __typename?: 'block', timestamp: any } }> }; - -export type LastHundredBlocksSubscriptionVariables = Exact<{ - address?: InputMaybe; -}>; - - -export type LastHundredBlocksSubscription = { block: Array<{ __typename?: 'block', height: any, validator?: { __typename?: 'validator', validatorInfo?: { __typename?: 'validator_info', operatorAddress: string } | null } | null, transactions: Array<{ __typename?: 'transaction', hash: string }>, precommits: Array<{ __typename?: 'pre_commit', validatorAddress: string }> }> }; - -export type ValidatorLastSeenListenerSubscriptionVariables = Exact<{ - address?: InputMaybe; -}>; - - -export type ValidatorLastSeenListenerSubscription = { preCommit: Array<{ __typename?: 'pre_commit', height: any, timestamp: any }> }; - -export type ValidatorDetailsQueryVariables = Exact<{ - address?: InputMaybe; -}>; - - -export type ValidatorDetailsQuery = { stakingPool: Array<{ __typename?: 'staking_pool', height: any, bonded: string }>, validator: Array<{ __typename?: 'validator', validatorDescriptions: Array<{ __typename?: 'validator_description', details?: string | null, website?: string | null }>, validatorStatuses: Array<{ __typename?: 'validator_status', status: number, jailed: boolean, height: any }>, validatorSigningInfos: Array<{ __typename?: 'validator_signing_info', tombstoned: boolean, missedBlocksCounter: any }>, validatorInfo?: { __typename?: 'validator_info', operatorAddress: string, selfDelegateAddress?: string | null, maxRate: string } | null, validatorCommissions: Array<{ __typename?: 'validator_commission', commission: any }>, validatorVotingPowers: Array<{ __typename?: 'validator_voting_power', height: any, votingPower: any }> }>, slashingParams: Array<{ __typename?: 'slashing_params', params: any }> }; - -export type ValidatorDelegationsQueryVariables = Exact<{ - validatorAddress: Scalars['String']; - offset?: InputMaybe; - limit?: InputMaybe; - pagination?: Scalars['Boolean']; -}>; - - -export type ValidatorDelegationsQuery = { delegations?: { __typename?: 'ActionDelegationResponse', delegations?: Array | null, pagination?: any | null } | null }; - -export type ValidatorRedelegationsQueryVariables = Exact<{ - validatorAddress: Scalars['String']; - offset?: InputMaybe; - limit?: InputMaybe; - pagination?: Scalars['Boolean']; -}>; - - -export type ValidatorRedelegationsQuery = { redelegations?: { __typename?: 'ActionRedelegationResponse', redelegations?: Array | null, pagination?: any | null } | null }; - -export type ValidatorUndelegationsQueryVariables = Exact<{ - validatorAddress: Scalars['String']; - offset?: InputMaybe; - limit?: InputMaybe; - pagination?: Scalars['Boolean']; -}>; - - -export type ValidatorUndelegationsQuery = { undelegations?: { __typename?: 'ActionUnbondingDelegationResponse', pagination?: any | null, undelegations?: Array | null } | null }; - -export type ValidatorsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type ValidatorsQuery = { stakingPool: Array<{ __typename?: 'staking_pool', bondedTokens: string }>, validator: Array<{ __typename?: 'validator', validatorStatuses: Array<{ __typename?: 'validator_status', status: number, jailed: boolean, height: any }>, validatorSigningInfos: Array<{ __typename?: 'validator_signing_info', tombstoned: boolean, missedBlocksCounter: any }>, validatorInfo?: { __typename?: 'validator_info', operatorAddress: string, selfDelegateAddress?: string | null } | null, validatorVotingPowers: Array<{ __typename?: 'validator_voting_power', votingPower: any }>, validatorCommissions: Array<{ __typename?: 'validator_commission', commission: any }> }>, slashingParams: Array<{ __typename?: 'slashing_params', params: any }> }; - -export type ValidatorsAddressListQueryVariables = Exact<{ [key: string]: never; }>; - - -export type ValidatorsAddressListQuery = { validator: Array<{ __typename?: 'validator', validatorInfo?: { __typename?: 'validator_info', operatorAddress: string, selfDelegateAddress?: string | null, consensusAddress: string } | null, validatorDescriptions: Array<{ __typename?: 'validator_description', moniker?: string | null, identity?: string | null, avatarUrl?: string | null }> }> }; - -export type ValidatorAddressesQueryVariables = Exact<{ [key: string]: never; }>; - - -export type ValidatorAddressesQuery = { validator: Array<{ __typename?: 'validator', validatorInfo?: { __typename?: 'validator_info', operatorAddress: string, selfDelegateAddress?: string | null, consensusAddress: string } | null, validatorDescriptions: Array<{ __typename?: 'validator_description', moniker?: string | null, avatarUrl?: string | null }> }> }; - - -export const AccountCommissionDocument = gql` - query AccountCommission($validatorAddress: String!) { - commission: action_validator_commission_amount(address: $validatorAddress) { - coins - } -} - `; - -/** - * __useAccountCommissionQuery__ - * - * To run a query within a React component, call `useAccountCommissionQuery` and pass it any options that fit your needs. - * When your component renders, `useAccountCommissionQuery` 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 } = useAccountCommissionQuery({ - * variables: { - * validatorAddress: // value for 'validatorAddress' - * }, - * }); - */ -export function useAccountCommissionQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AccountCommissionDocument, options); - } -export function useAccountCommissionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AccountCommissionDocument, options); - } -export type AccountCommissionQueryHookResult = ReturnType; -export type AccountCommissionLazyQueryHookResult = ReturnType; -export type AccountCommissionQueryResult = Apollo.QueryResult; -export const AccountWithdrawalAddressDocument = gql` - query AccountWithdrawalAddress($address: String!) { - withdrawalAddress: action_delegator_withdraw_address(address: $address) { - address - } -} - `; - -/** - * __useAccountWithdrawalAddressQuery__ - * - * To run a query within a React component, call `useAccountWithdrawalAddressQuery` and pass it any options that fit your needs. - * When your component renders, `useAccountWithdrawalAddressQuery` 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 } = useAccountWithdrawalAddressQuery({ - * variables: { - * address: // value for 'address' - * }, - * }); - */ -export function useAccountWithdrawalAddressQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AccountWithdrawalAddressDocument, options); - } -export function useAccountWithdrawalAddressLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AccountWithdrawalAddressDocument, options); - } -export type AccountWithdrawalAddressQueryHookResult = ReturnType; -export type AccountWithdrawalAddressLazyQueryHookResult = ReturnType; -export type AccountWithdrawalAddressQueryResult = Apollo.QueryResult; -export const AccountBalancesDocument = gql` - query AccountBalances($address: String!) { - accountBalances: action_account_balance(address: $address) { - coins - } -} - `; - -/** - * __useAccountBalancesQuery__ - * - * To run a query within a React component, call `useAccountBalancesQuery` and pass it any options that fit your needs. - * When your component renders, `useAccountBalancesQuery` 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 } = useAccountBalancesQuery({ - * variables: { - * address: // value for 'address' - * }, - * }); - */ -export function useAccountBalancesQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AccountBalancesDocument, options); - } -export function useAccountBalancesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AccountBalancesDocument, options); - } -export type AccountBalancesQueryHookResult = ReturnType; -export type AccountBalancesLazyQueryHookResult = ReturnType; -export type AccountBalancesQueryResult = Apollo.QueryResult; -export const AccountDelegationBalanceDocument = gql` - query AccountDelegationBalance($address: String!) { - delegationBalance: action_delegation_total(address: $address) { - coins - } -} - `; - -/** - * __useAccountDelegationBalanceQuery__ - * - * To run a query within a React component, call `useAccountDelegationBalanceQuery` and pass it any options that fit your needs. - * When your component renders, `useAccountDelegationBalanceQuery` 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 } = useAccountDelegationBalanceQuery({ - * variables: { - * address: // value for 'address' - * }, - * }); - */ -export function useAccountDelegationBalanceQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AccountDelegationBalanceDocument, options); - } -export function useAccountDelegationBalanceLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AccountDelegationBalanceDocument, options); - } -export type AccountDelegationBalanceQueryHookResult = ReturnType; -export type AccountDelegationBalanceLazyQueryHookResult = ReturnType; -export type AccountDelegationBalanceQueryResult = Apollo.QueryResult; -export const AccountUnbondingBalanceDocument = gql` - query AccountUnbondingBalance($address: String!) { - unbondingBalance: action_unbonding_delegation_total(address: $address) { - coins - } -} - `; - -/** - * __useAccountUnbondingBalanceQuery__ - * - * To run a query within a React component, call `useAccountUnbondingBalanceQuery` and pass it any options that fit your needs. - * When your component renders, `useAccountUnbondingBalanceQuery` 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 } = useAccountUnbondingBalanceQuery({ - * variables: { - * address: // value for 'address' - * }, - * }); - */ -export function useAccountUnbondingBalanceQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AccountUnbondingBalanceDocument, options); - } -export function useAccountUnbondingBalanceLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AccountUnbondingBalanceDocument, options); - } -export type AccountUnbondingBalanceQueryHookResult = ReturnType; -export type AccountUnbondingBalanceLazyQueryHookResult = ReturnType; -export type AccountUnbondingBalanceQueryResult = Apollo.QueryResult; -export const AccountDelegationRewardsDocument = gql` - query AccountDelegationRewards($address: String!) { - delegationRewards: action_delegation_reward(address: $address) { - validatorAddress: validator_address - coins - } -} - `; - -/** - * __useAccountDelegationRewardsQuery__ - * - * To run a query within a React component, call `useAccountDelegationRewardsQuery` and pass it any options that fit your needs. - * When your component renders, `useAccountDelegationRewardsQuery` 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 } = useAccountDelegationRewardsQuery({ - * variables: { - * address: // value for 'address' - * }, - * }); - */ -export function useAccountDelegationRewardsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AccountDelegationRewardsDocument, options); - } -export function useAccountDelegationRewardsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AccountDelegationRewardsDocument, options); - } -export type AccountDelegationRewardsQueryHookResult = ReturnType; -export type AccountDelegationRewardsLazyQueryHookResult = ReturnType; -export type AccountDelegationRewardsQueryResult = Apollo.QueryResult; -export const AccountDelegationsDocument = gql` - query AccountDelegations($address: String!, $offset: Int = 0, $limit: Int = 10, $pagination: Boolean! = true) { - delegations: action_delegation( - address: $address - limit: $limit - offset: $offset - count_total: $pagination - ) { - delegations - pagination - } -} - `; - -/** - * __useAccountDelegationsQuery__ - * - * To run a query within a React component, call `useAccountDelegationsQuery` and pass it any options that fit your needs. - * When your component renders, `useAccountDelegationsQuery` 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 } = useAccountDelegationsQuery({ - * variables: { - * address: // value for 'address' - * offset: // value for 'offset' - * limit: // value for 'limit' - * pagination: // value for 'pagination' - * }, - * }); - */ -export function useAccountDelegationsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AccountDelegationsDocument, options); - } -export function useAccountDelegationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AccountDelegationsDocument, options); - } -export type AccountDelegationsQueryHookResult = ReturnType; -export type AccountDelegationsLazyQueryHookResult = ReturnType; -export type AccountDelegationsQueryResult = Apollo.QueryResult; -export const AccountRedelegationsDocument = gql` - query AccountRedelegations($address: String!, $offset: Int = 0, $limit: Int = 10, $pagination: Boolean! = true) { - redelegations: action_redelegation( - address: $address - limit: $limit - offset: $offset - count_total: $pagination - ) { - redelegations - pagination - } -} - `; - -/** - * __useAccountRedelegationsQuery__ - * - * To run a query within a React component, call `useAccountRedelegationsQuery` and pass it any options that fit your needs. - * When your component renders, `useAccountRedelegationsQuery` 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 } = useAccountRedelegationsQuery({ - * variables: { - * address: // value for 'address' - * offset: // value for 'offset' - * limit: // value for 'limit' - * pagination: // value for 'pagination' - * }, - * }); - */ -export function useAccountRedelegationsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AccountRedelegationsDocument, options); - } -export function useAccountRedelegationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AccountRedelegationsDocument, options); - } -export type AccountRedelegationsQueryHookResult = ReturnType; -export type AccountRedelegationsLazyQueryHookResult = ReturnType; -export type AccountRedelegationsQueryResult = Apollo.QueryResult; -export const AccountUndelegationsDocument = gql` - query AccountUndelegations($address: String!, $offset: Int = 0, $limit: Int = 10, $pagination: Boolean! = true) { - undelegations: action_unbonding_delegation( - address: $address - limit: $limit - offset: $offset - count_total: $pagination - ) { - undelegations: unbonding_delegations - pagination - } -} - `; - -/** - * __useAccountUndelegationsQuery__ - * - * To run a query within a React component, call `useAccountUndelegationsQuery` and pass it any options that fit your needs. - * When your component renders, `useAccountUndelegationsQuery` 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 } = useAccountUndelegationsQuery({ - * variables: { - * address: // value for 'address' - * offset: // value for 'offset' - * limit: // value for 'limit' - * pagination: // value for 'pagination' - * }, - * }); - */ -export function useAccountUndelegationsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AccountUndelegationsDocument, options); - } -export function useAccountUndelegationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AccountUndelegationsDocument, options); - } -export type AccountUndelegationsQueryHookResult = ReturnType; -export type AccountUndelegationsLazyQueryHookResult = ReturnType; -export type AccountUndelegationsQueryResult = Apollo.QueryResult; -export const ActiveValidatorCountDocument = gql` - query ActiveValidatorCount { - activeTotal: validator_status_aggregate(where: {status: {_eq: 3}}) { - aggregate { - count - } - } - inactiveTotal: validator_status_aggregate(where: {status: {_neq: 3}}) { - aggregate { - count - } - } - total: validator_status_aggregate { - aggregate { - count - } - } -} - `; - -/** - * __useActiveValidatorCountQuery__ - * - * To run a query within a React component, call `useActiveValidatorCountQuery` and pass it any options that fit your needs. - * When your component renders, `useActiveValidatorCountQuery` 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 } = useActiveValidatorCountQuery({ - * variables: { - * }, - * }); - */ -export function useActiveValidatorCountQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ActiveValidatorCountDocument, options); - } -export function useActiveValidatorCountLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ActiveValidatorCountDocument, options); - } -export type ActiveValidatorCountQueryHookResult = ReturnType; -export type ActiveValidatorCountLazyQueryHookResult = ReturnType; -export type ActiveValidatorCountQueryResult = Apollo.QueryResult; -export const BlockDetailsDocument = gql` - query BlockDetails($height: bigint, $signatureHeight: bigint) { - transaction(where: {height: {_eq: $height}}) { - height - hash - messages - success - logs - } - block(limit: 1, where: {height: {_eq: $height}}) { - height - hash - timestamp - txs: num_txs - validator { - validatorInfo: validator_info { - operatorAddress: operator_address - } - } - } - preCommitsAggregate: pre_commit_aggregate( - where: {height: {_eq: $signatureHeight}} - ) { - aggregate { - sum { - votingPower: voting_power - } - } - } - preCommits: pre_commit(where: {height: {_eq: $signatureHeight}}) { - validator { - validatorInfo: validator_info { - operatorAddress: operator_address - } - } - } -} - `; - -/** - * __useBlockDetailsQuery__ - * - * To run a query within a React component, call `useBlockDetailsQuery` and pass it any options that fit your needs. - * When your component renders, `useBlockDetailsQuery` 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 } = useBlockDetailsQuery({ - * variables: { - * height: // value for 'height' - * signatureHeight: // value for 'signatureHeight' - * }, - * }); - */ -export function useBlockDetailsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(BlockDetailsDocument, options); - } -export function useBlockDetailsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(BlockDetailsDocument, options); - } -export type BlockDetailsQueryHookResult = ReturnType; -export type BlockDetailsLazyQueryHookResult = ReturnType; -export type BlockDetailsQueryResult = Apollo.QueryResult; -export const LatestBlockHeightListenerDocument = gql` - subscription LatestBlockHeightListener($offset: Int = 0) { - height: block(order_by: {height: desc}, limit: 1, offset: $offset) { - height - } -} - `; - -/** - * __useLatestBlockHeightListenerSubscription__ - * - * To run a query within a React component, call `useLatestBlockHeightListenerSubscription` and pass it any options that fit your needs. - * When your component renders, `useLatestBlockHeightListenerSubscription` 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 subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useLatestBlockHeightListenerSubscription({ - * variables: { - * offset: // value for 'offset' - * }, - * }); - */ -export function useLatestBlockHeightListenerSubscription(baseOptions?: Apollo.SubscriptionHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useSubscription(LatestBlockHeightListenerDocument, options); - } -export type LatestBlockHeightListenerSubscriptionHookResult = ReturnType; -export type LatestBlockHeightListenerSubscriptionResult = Apollo.SubscriptionResult; -export const AverageBlockTimeDocument = gql` - query AverageBlockTime { - averageBlockTime: average_block_time_per_hour( - limit: 1 - order_by: {height: desc} - ) { - averageTime: average_time - } -} - `; - -/** - * __useAverageBlockTimeQuery__ - * - * To run a query within a React component, call `useAverageBlockTimeQuery` and pass it any options that fit your needs. - * When your component renders, `useAverageBlockTimeQuery` 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 } = useAverageBlockTimeQuery({ - * variables: { - * }, - * }); - */ -export function useAverageBlockTimeQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AverageBlockTimeDocument, options); - } -export function useAverageBlockTimeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AverageBlockTimeDocument, options); - } -export type AverageBlockTimeQueryHookResult = ReturnType; -export type AverageBlockTimeLazyQueryHookResult = ReturnType; -export type AverageBlockTimeQueryResult = Apollo.QueryResult; -export const LatestBlockTimestampDocument = gql` - query LatestBlockTimestamp($offset: Int = 0) { - block: block(order_by: {height: desc}, limit: 1, offset: $offset) { - timestamp - } -} - `; - -/** - * __useLatestBlockTimestampQuery__ - * - * To run a query within a React component, call `useLatestBlockTimestampQuery` and pass it any options that fit your needs. - * When your component renders, `useLatestBlockTimestampQuery` 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 } = useLatestBlockTimestampQuery({ - * variables: { - * offset: // value for 'offset' - * }, - * }); - */ -export function useLatestBlockTimestampQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(LatestBlockTimestampDocument, options); - } -export function useLatestBlockTimestampLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(LatestBlockTimestampDocument, options); - } -export type LatestBlockTimestampQueryHookResult = ReturnType; -export type LatestBlockTimestampLazyQueryHookResult = ReturnType; -export type LatestBlockTimestampQueryResult = Apollo.QueryResult; -export const BlocksListenerDocument = gql` - subscription BlocksListener($limit: Int = 7, $offset: Int = 0) { - blocks: block(limit: $limit, offset: $offset, order_by: {height: desc}) { - height - txs: num_txs - hash - timestamp - validator { - validatorInfo: validator_info { - operatorAddress: operator_address - } - } - } -} - `; - -/** - * __useBlocksListenerSubscription__ - * - * To run a query within a React component, call `useBlocksListenerSubscription` and pass it any options that fit your needs. - * When your component renders, `useBlocksListenerSubscription` 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 subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useBlocksListenerSubscription({ - * variables: { - * limit: // value for 'limit' - * offset: // value for 'offset' - * }, - * }); - */ -export function useBlocksListenerSubscription(baseOptions?: Apollo.SubscriptionHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useSubscription(BlocksListenerDocument, options); - } -export type BlocksListenerSubscriptionHookResult = ReturnType; -export type BlocksListenerSubscriptionResult = Apollo.SubscriptionResult; -export const BlocksDocument = gql` - query Blocks($limit: Int = 7, $offset: Int = 0) { - blocks: block(limit: $limit, offset: $offset, order_by: {height: desc}) { - height - txs: num_txs - hash - timestamp - validator { - validatorInfo: validator_info { - operatorAddress: operator_address - self_delegate_address - } - validatorDescriptions: validator_descriptions( - limit: 1 - order_by: {height: desc} - ) { - moniker - identity - } - } - } -} - `; - -/** - * __useBlocksQuery__ - * - * To run a query within a React component, call `useBlocksQuery` and pass it any options that fit your needs. - * When your component renders, `useBlocksQuery` 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 } = useBlocksQuery({ - * variables: { - * limit: // value for 'limit' - * offset: // value for 'offset' - * }, - * }); - */ -export function useBlocksQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(BlocksDocument, options); - } -export function useBlocksLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(BlocksDocument, options); - } -export type BlocksQueryHookResult = ReturnType; -export type BlocksLazyQueryHookResult = ReturnType; -export type BlocksQueryResult = Apollo.QueryResult; -export const ChainIdDocument = gql` - query ChainId { - genesis(limit: 1, order_by: {time: desc}) { - chainId: chain_id - time - } -} - `; - -/** - * __useChainIdQuery__ - * - * To run a query within a React component, call `useChainIdQuery` and pass it any options that fit your needs. - * When your component renders, `useChainIdQuery` 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 } = useChainIdQuery({ - * variables: { - * }, - * }); - */ -export function useChainIdQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ChainIdDocument, options); - } -export function useChainIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ChainIdDocument, options); - } -export type ChainIdQueryHookResult = ReturnType; -export type ChainIdLazyQueryHookResult = ReturnType; -export type ChainIdQueryResult = Apollo.QueryResult; -export const MarketDataDocument = gql` - query MarketData($denom: String) { - communityPool: community_pool(order_by: {height: desc}, limit: 1) { - coins - } - inflation: inflation(order_by: {height: desc}, limit: 1) { - value - } - tokenPrice: token_price(where: {unit_name: {_eq: $denom}}) { - marketCap: market_cap - price - } - supply { - coins - } - bondedTokens: staking_pool(order_by: {height: desc}, limit: 1) { - bonded_tokens - } - distributionParams: distribution_params { - params - } -} - `; - -/** - * __useMarketDataQuery__ - * - * To run a query within a React component, call `useMarketDataQuery` and pass it any options that fit your needs. - * When your component renders, `useMarketDataQuery` 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 } = useMarketDataQuery({ - * variables: { - * denom: // value for 'denom' - * }, - * }); - */ -export function useMarketDataQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(MarketDataDocument, options); - } -export function useMarketDataLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(MarketDataDocument, options); - } -export type MarketDataQueryHookResult = ReturnType; -export type MarketDataLazyQueryHookResult = ReturnType; -export type MarketDataQueryResult = Apollo.QueryResult; -export const GetMessagesByAddressDocument = gql` - query GetMessagesByAddress($address: _text, $limit: bigint = 50, $offset: bigint = 0, $types: _text = "{}") { - messagesByAddress: messages_by_address( - args: {addresses: $address, types: $types, limit: $limit, offset: $offset} - ) { - transaction { - height - hash - success - messages - logs - block { - height - timestamp - } - } - } -} - `; - -/** - * __useGetMessagesByAddressQuery__ - * - * To run a query within a React component, call `useGetMessagesByAddressQuery` and pass it any options that fit your needs. - * When your component renders, `useGetMessagesByAddressQuery` 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 } = useGetMessagesByAddressQuery({ - * variables: { - * address: // value for 'address' - * limit: // value for 'limit' - * offset: // value for 'offset' - * types: // value for 'types' - * }, - * }); - */ -export function useGetMessagesByAddressQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetMessagesByAddressDocument, options); - } -export function useGetMessagesByAddressLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetMessagesByAddressDocument, options); - } -export type GetMessagesByAddressQueryHookResult = ReturnType; -export type GetMessagesByAddressLazyQueryHookResult = ReturnType; -export type GetMessagesByAddressQueryResult = Apollo.QueryResult; -export const OnlineVotingPowerDocument = gql` - query OnlineVotingPower { - activeTotal: validator_status_aggregate(where: {status: {_eq: 3}}) { - aggregate { - count - } - } - validatorVotingPowerAggregate: validator_voting_power_aggregate( - where: {validator: {validator_statuses: {status: {_eq: 3}}}} - ) { - aggregate { - sum { - votingPower: voting_power - } - } - } - stakingPool: staking_pool(order_by: {height: desc}, limit: 1) { - bonded: bonded_tokens - } - stakingParams: staking_params(limit: 1) { - params - } -} - `; - -/** - * __useOnlineVotingPowerQuery__ - * - * To run a query within a React component, call `useOnlineVotingPowerQuery` and pass it any options that fit your needs. - * When your component renders, `useOnlineVotingPowerQuery` 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 } = useOnlineVotingPowerQuery({ - * variables: { - * }, - * }); - */ -export function useOnlineVotingPowerQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(OnlineVotingPowerDocument, options); - } -export function useOnlineVotingPowerLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(OnlineVotingPowerDocument, options); - } -export type OnlineVotingPowerQueryHookResult = ReturnType; -export type OnlineVotingPowerLazyQueryHookResult = ReturnType; -export type OnlineVotingPowerQueryResult = Apollo.QueryResult; -export const ParamsDocument = gql` - query Params { - stakingParams: staking_params(limit: 1, order_by: {height: desc}) { - params - } - slashingParams: slashing_params(limit: 1, order_by: {height: desc}) { - params - } - mintParams: mint_params(limit: 1, order_by: {height: desc}) { - params - } - distributionParams: distribution_params(limit: 1, order_by: {height: desc}) { - params - } - govParams: gov_params(limit: 1, order_by: {height: desc}) { - params - height - } -} - `; - -/** - * __useParamsQuery__ - * - * To run a query within a React component, call `useParamsQuery` and pass it any options that fit your needs. - * When your component renders, `useParamsQuery` 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 } = useParamsQuery({ - * variables: { - * }, - * }); - */ -export function useParamsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ParamsDocument, options); - } -export function useParamsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ParamsDocument, options); - } -export type ParamsQueryHookResult = ReturnType; -export type ParamsLazyQueryHookResult = ReturnType; -export type ParamsQueryResult = Apollo.QueryResult; -export const ProposalDetailsDocument = gql` - query ProposalDetails($proposalId: Int) { - proposal(where: {id: {_eq: $proposalId}}) { - proposer: proposer_address - title - description - status - content - proposalId: id - submitTime: submit_time - depositEndTime: deposit_end_time - votingStartTime: voting_start_time - votingEndTime: voting_end_time - } -} - `; - -/** - * __useProposalDetailsQuery__ - * - * To run a query within a React component, call `useProposalDetailsQuery` and pass it any options that fit your needs. - * When your component renders, `useProposalDetailsQuery` 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 } = useProposalDetailsQuery({ - * variables: { - * proposalId: // value for 'proposalId' - * }, - * }); - */ -export function useProposalDetailsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ProposalDetailsDocument, options); - } -export function useProposalDetailsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ProposalDetailsDocument, options); - } -export type ProposalDetailsQueryHookResult = ReturnType; -export type ProposalDetailsLazyQueryHookResult = ReturnType; -export type ProposalDetailsQueryResult = Apollo.QueryResult; -export const ProposalDetailsTallyDocument = gql` - query ProposalDetailsTally($proposalId: Int) { - proposalTallyResult: proposal_tally_result( - where: {proposal_id: {_eq: $proposalId}} - ) { - yes - no - noWithVeto: no_with_veto - abstain - } - stakingPool: proposal_staking_pool_snapshot( - where: {proposal_id: {_eq: $proposalId}} - ) { - bondedTokens: bonded_tokens - } - quorum: gov_params(limit: 1, order_by: {height: desc}) { - tallyParams: params - } -} - `; - -/** - * __useProposalDetailsTallyQuery__ - * - * To run a query within a React component, call `useProposalDetailsTallyQuery` and pass it any options that fit your needs. - * When your component renders, `useProposalDetailsTallyQuery` 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 } = useProposalDetailsTallyQuery({ - * variables: { - * proposalId: // value for 'proposalId' - * }, - * }); - */ -export function useProposalDetailsTallyQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ProposalDetailsTallyDocument, options); - } -export function useProposalDetailsTallyLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ProposalDetailsTallyDocument, options); - } -export type ProposalDetailsTallyQueryHookResult = ReturnType; -export type ProposalDetailsTallyLazyQueryHookResult = ReturnType; -export type ProposalDetailsTallyQueryResult = Apollo.QueryResult; -export const ProposalDetailsDepositsDocument = gql` - query ProposalDetailsDeposits($proposalId: Int) { - proposalDeposit: proposal_deposit( - where: {proposal_id: {_eq: $proposalId}} - order_by: {height: desc} - ) { - amount - depositorAddress: depositor_address - block { - timestamp - } - } -} - `; - -/** - * __useProposalDetailsDepositsQuery__ - * - * To run a query within a React component, call `useProposalDetailsDepositsQuery` and pass it any options that fit your needs. - * When your component renders, `useProposalDetailsDepositsQuery` 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 } = useProposalDetailsDepositsQuery({ - * variables: { - * proposalId: // value for 'proposalId' - * }, - * }); - */ -export function useProposalDetailsDepositsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ProposalDetailsDepositsDocument, options); - } -export function useProposalDetailsDepositsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ProposalDetailsDepositsDocument, options); - } -export type ProposalDetailsDepositsQueryHookResult = ReturnType; -export type ProposalDetailsDepositsLazyQueryHookResult = ReturnType; -export type ProposalDetailsDepositsQueryResult = Apollo.QueryResult; -export const ProposalDetailsVotesDocument = gql` - query ProposalDetailsVotes($proposalId: Int) { - proposalVote: proposal_vote( - where: {proposal_id: {_eq: $proposalId}} - order_by: {height: desc} - ) { - option - voterAddress: voter_address - } - validatorStatuses: proposal_validator_status_snapshot( - where: {proposal_id: {_eq: $proposalId}, status: {_eq: 3}} - ) { - validator { - validatorInfo: validator_info { - selfDelegateAddress: self_delegate_address - } - } - } -} - `; - -/** - * __useProposalDetailsVotesQuery__ - * - * To run a query within a React component, call `useProposalDetailsVotesQuery` and pass it any options that fit your needs. - * When your component renders, `useProposalDetailsVotesQuery` 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 } = useProposalDetailsVotesQuery({ - * variables: { - * proposalId: // value for 'proposalId' - * }, - * }); - */ -export function useProposalDetailsVotesQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ProposalDetailsVotesDocument, options); - } -export function useProposalDetailsVotesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ProposalDetailsVotesDocument, options); - } -export type ProposalDetailsVotesQueryHookResult = ReturnType; -export type ProposalDetailsVotesLazyQueryHookResult = ReturnType; -export type ProposalDetailsVotesQueryResult = Apollo.QueryResult; -export const ProposalsDocument = gql` - query Proposals($limit: Int = 7, $offset: Int = 0) { - proposals: proposal(limit: $limit, offset: $offset, order_by: {id: desc}) { - title - proposalId: id - status - description - } - total: proposal_aggregate { - aggregate { - count - } - } -} - `; - -/** - * __useProposalsQuery__ - * - * To run a query within a React component, call `useProposalsQuery` and pass it any options that fit your needs. - * When your component renders, `useProposalsQuery` 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 } = useProposalsQuery({ - * variables: { - * limit: // value for 'limit' - * offset: // value for 'offset' - * }, - * }); - */ -export function useProposalsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ProposalsDocument, options); - } -export function useProposalsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ProposalsDocument, options); - } -export type ProposalsQueryHookResult = ReturnType; -export type ProposalsLazyQueryHookResult = ReturnType; -export type ProposalsQueryResult = Apollo.QueryResult; -export const TokenPriceListenerDocument = gql` - subscription TokenPriceListener($denom: String) { - tokenPrice: token_price(where: {unit_name: {_eq: $denom}}) { - price - timestamp - marketCap: market_cap - unitName: unit_name - } -} - `; - -/** - * __useTokenPriceListenerSubscription__ - * - * To run a query within a React component, call `useTokenPriceListenerSubscription` and pass it any options that fit your needs. - * When your component renders, `useTokenPriceListenerSubscription` 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 subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useTokenPriceListenerSubscription({ - * variables: { - * denom: // value for 'denom' - * }, - * }); - */ -export function useTokenPriceListenerSubscription(baseOptions?: Apollo.SubscriptionHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useSubscription(TokenPriceListenerDocument, options); - } -export type TokenPriceListenerSubscriptionHookResult = ReturnType; -export type TokenPriceListenerSubscriptionResult = Apollo.SubscriptionResult; -export const TokenPriceHistoryDocument = gql` - query TokenPriceHistory($denom: String, $limit: Int = 10) { - tokenPrice: token_price_history( - where: {unit_name: {_eq: $denom}} - limit: $limit - order_by: {timestamp: desc} - ) { - price - timestamp - } -} - `; - -/** - * __useTokenPriceHistoryQuery__ - * - * To run a query within a React component, call `useTokenPriceHistoryQuery` and pass it any options that fit your needs. - * When your component renders, `useTokenPriceHistoryQuery` 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 } = useTokenPriceHistoryQuery({ - * variables: { - * denom: // value for 'denom' - * limit: // value for 'limit' - * }, - * }); - */ -export function useTokenPriceHistoryQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(TokenPriceHistoryDocument, options); - } -export function useTokenPriceHistoryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(TokenPriceHistoryDocument, options); - } -export type TokenPriceHistoryQueryHookResult = ReturnType; -export type TokenPriceHistoryLazyQueryHookResult = ReturnType; -export type TokenPriceHistoryQueryResult = Apollo.QueryResult; -export const TokenomicsDocument = gql` - query Tokenomics { - stakingParams: staking_params(limit: 1) { - params - } - stakingPool: staking_pool(order_by: {height: desc}, limit: 1) { - bonded: bonded_tokens - unbonded: not_bonded_tokens - } - supply: supply(order_by: {height: desc}, limit: 1) { - coins - } -} - `; - -/** - * __useTokenomicsQuery__ - * - * To run a query within a React component, call `useTokenomicsQuery` and pass it any options that fit your needs. - * When your component renders, `useTokenomicsQuery` 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 } = useTokenomicsQuery({ - * variables: { - * }, - * }); - */ -export function useTokenomicsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(TokenomicsDocument, options); - } -export function useTokenomicsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(TokenomicsDocument, options); - } -export type TokenomicsQueryHookResult = ReturnType; -export type TokenomicsLazyQueryHookResult = ReturnType; -export type TokenomicsQueryResult = Apollo.QueryResult; -export const TransactionDetailsDocument = gql` - query TransactionDetails($hash: String) { - transaction(where: {hash: {_eq: $hash}}, limit: 1) { - hash: hash - height: height - block: block { - timestamp: timestamp - } - fee: fee - gasUsed: gas_used - gasWanted: gas_wanted - success: success - memo: memo - messages: messages - logs - rawLog: raw_log - } -} - `; - -/** - * __useTransactionDetailsQuery__ - * - * To run a query within a React component, call `useTransactionDetailsQuery` and pass it any options that fit your needs. - * When your component renders, `useTransactionDetailsQuery` 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 } = useTransactionDetailsQuery({ - * variables: { - * hash: // value for 'hash' - * }, - * }); - */ -export function useTransactionDetailsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(TransactionDetailsDocument, options); - } -export function useTransactionDetailsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(TransactionDetailsDocument, options); - } -export type TransactionDetailsQueryHookResult = ReturnType; -export type TransactionDetailsLazyQueryHookResult = ReturnType; -export type TransactionDetailsQueryResult = Apollo.QueryResult; -export const TransactionsListenerDocument = gql` - subscription TransactionsListener($limit: Int = 7, $offset: Int = 0) { - transactions: transaction( - limit: $limit - offset: $offset - order_by: {height: desc} - ) { - height - hash - success - block { - timestamp - } - messages - logs - } -} - `; - -/** - * __useTransactionsListenerSubscription__ - * - * To run a query within a React component, call `useTransactionsListenerSubscription` and pass it any options that fit your needs. - * When your component renders, `useTransactionsListenerSubscription` 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 subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useTransactionsListenerSubscription({ - * variables: { - * limit: // value for 'limit' - * offset: // value for 'offset' - * }, - * }); - */ -export function useTransactionsListenerSubscription(baseOptions?: Apollo.SubscriptionHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useSubscription(TransactionsListenerDocument, options); - } -export type TransactionsListenerSubscriptionHookResult = ReturnType; -export type TransactionsListenerSubscriptionResult = Apollo.SubscriptionResult; -export const TransactionsDocument = gql` - query Transactions($limit: Int = 7, $offset: Int = 0) { - transactions: transaction( - limit: $limit - offset: $offset - order_by: {height: desc} - ) { - height - hash - success - block { - timestamp - } - messages - logs - } -} - `; - -/** - * __useTransactionsQuery__ - * - * To run a query within a React component, call `useTransactionsQuery` and pass it any options that fit your needs. - * When your component renders, `useTransactionsQuery` 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 } = useTransactionsQuery({ - * variables: { - * limit: // value for 'limit' - * offset: // value for 'offset' - * }, - * }); - */ -export function useTransactionsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(TransactionsDocument, options); - } -export function useTransactionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(TransactionsDocument, options); - } -export type TransactionsQueryHookResult = ReturnType; -export type TransactionsLazyQueryHookResult = ReturnType; -export type TransactionsQueryResult = Apollo.QueryResult; -export const LastHundredBlocksDocument = gql` - subscription LastHundredBlocks($address: String) { - block(offset: 1, order_by: {height: desc}, limit: 100) { - height - validator { - validatorInfo: validator_info { - operatorAddress: operator_address - } - } - transactions { - hash - } - precommits: pre_commits( - where: {validator: {validator_info: {operator_address: {_eq: $address}}}} - ) { - validatorAddress: validator_address - } - } -} - `; - -/** - * __useLastHundredBlocksSubscription__ - * - * To run a query within a React component, call `useLastHundredBlocksSubscription` and pass it any options that fit your needs. - * When your component renders, `useLastHundredBlocksSubscription` 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 subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useLastHundredBlocksSubscription({ - * variables: { - * address: // value for 'address' - * }, - * }); - */ -export function useLastHundredBlocksSubscription(baseOptions?: Apollo.SubscriptionHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useSubscription(LastHundredBlocksDocument, options); - } -export type LastHundredBlocksSubscriptionHookResult = ReturnType; -export type LastHundredBlocksSubscriptionResult = Apollo.SubscriptionResult; -export const ValidatorLastSeenListenerDocument = gql` - subscription ValidatorLastSeenListener($address: String) { - preCommit: pre_commit( - limit: 1 - where: {validator: {validator_info: {operator_address: {_eq: $address}}}} - order_by: {height: desc} - ) { - height - timestamp - } -} - `; - -/** - * __useValidatorLastSeenListenerSubscription__ - * - * To run a query within a React component, call `useValidatorLastSeenListenerSubscription` and pass it any options that fit your needs. - * When your component renders, `useValidatorLastSeenListenerSubscription` 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 subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useValidatorLastSeenListenerSubscription({ - * variables: { - * address: // value for 'address' - * }, - * }); - */ -export function useValidatorLastSeenListenerSubscription(baseOptions?: Apollo.SubscriptionHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useSubscription(ValidatorLastSeenListenerDocument, options); - } -export type ValidatorLastSeenListenerSubscriptionHookResult = ReturnType; -export type ValidatorLastSeenListenerSubscriptionResult = Apollo.SubscriptionResult; -export const ValidatorDetailsDocument = gql` - query ValidatorDetails($address: String) { - stakingPool: staking_pool(order_by: {height: desc}, limit: 1, offset: 0) { - height - bonded: bonded_tokens - } - validator(where: {validator_info: {operator_address: {_eq: $address}}}) { - 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 - } - validatorInfo: validator_info { - operatorAddress: operator_address - selfDelegateAddress: self_delegate_address - maxRate: max_rate - } - validatorCommissions: validator_commissions(order_by: {height: desc}, limit: 1) { - commission - } - validatorVotingPowers: validator_voting_powers( - offset: 0 - limit: 1 - order_by: {height: desc} - ) { - height - votingPower: voting_power - } - } - slashingParams: slashing_params(order_by: {height: desc}, limit: 1) { - params - } -} - `; - -/** - * __useValidatorDetailsQuery__ - * - * To run a query within a React component, call `useValidatorDetailsQuery` and pass it any options that fit your needs. - * When your component renders, `useValidatorDetailsQuery` 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 } = useValidatorDetailsQuery({ - * variables: { - * address: // value for 'address' - * }, - * }); - */ -export function useValidatorDetailsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ValidatorDetailsDocument, options); - } -export function useValidatorDetailsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ValidatorDetailsDocument, options); - } -export type ValidatorDetailsQueryHookResult = ReturnType; -export type ValidatorDetailsLazyQueryHookResult = ReturnType; -export type ValidatorDetailsQueryResult = Apollo.QueryResult; -export const ValidatorDelegationsDocument = gql` - query ValidatorDelegations($validatorAddress: String!, $offset: Int = 0, $limit: Int = 10, $pagination: Boolean! = true) { - delegations: action_validator_delegations( - address: $validatorAddress - limit: $limit - offset: $offset - count_total: $pagination - ) { - delegations - pagination - } -} - `; - -/** - * __useValidatorDelegationsQuery__ - * - * To run a query within a React component, call `useValidatorDelegationsQuery` and pass it any options that fit your needs. - * When your component renders, `useValidatorDelegationsQuery` 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 } = useValidatorDelegationsQuery({ - * variables: { - * validatorAddress: // value for 'validatorAddress' - * offset: // value for 'offset' - * limit: // value for 'limit' - * pagination: // value for 'pagination' - * }, - * }); - */ -export function useValidatorDelegationsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ValidatorDelegationsDocument, options); - } -export function useValidatorDelegationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ValidatorDelegationsDocument, options); - } -export type ValidatorDelegationsQueryHookResult = ReturnType; -export type ValidatorDelegationsLazyQueryHookResult = ReturnType; -export type ValidatorDelegationsQueryResult = Apollo.QueryResult; -export const ValidatorRedelegationsDocument = gql` - query ValidatorRedelegations($validatorAddress: String!, $offset: Int = 0, $limit: Int = 10, $pagination: Boolean! = true) { - redelegations: action_validator_redelegations_from( - address: $validatorAddress - limit: $limit - offset: $offset - count_total: $pagination - ) { - redelegations - pagination - } -} - `; - -/** - * __useValidatorRedelegationsQuery__ - * - * To run a query within a React component, call `useValidatorRedelegationsQuery` and pass it any options that fit your needs. - * When your component renders, `useValidatorRedelegationsQuery` 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 } = useValidatorRedelegationsQuery({ - * variables: { - * validatorAddress: // value for 'validatorAddress' - * offset: // value for 'offset' - * limit: // value for 'limit' - * pagination: // value for 'pagination' - * }, - * }); - */ -export function useValidatorRedelegationsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ValidatorRedelegationsDocument, options); - } -export function useValidatorRedelegationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ValidatorRedelegationsDocument, options); - } -export type ValidatorRedelegationsQueryHookResult = ReturnType; -export type ValidatorRedelegationsLazyQueryHookResult = ReturnType; -export type ValidatorRedelegationsQueryResult = Apollo.QueryResult; -export const ValidatorUndelegationsDocument = gql` - query ValidatorUndelegations($validatorAddress: String!, $offset: Int = 0, $limit: Int = 10, $pagination: Boolean! = true) { - undelegations: action_validator_unbonding_delegations( - address: $validatorAddress - limit: $limit - offset: $offset - count_total: $pagination - ) { - undelegations: unbonding_delegations - pagination - } -} - `; - -/** - * __useValidatorUndelegationsQuery__ - * - * To run a query within a React component, call `useValidatorUndelegationsQuery` and pass it any options that fit your needs. - * When your component renders, `useValidatorUndelegationsQuery` 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 } = useValidatorUndelegationsQuery({ - * variables: { - * validatorAddress: // value for 'validatorAddress' - * offset: // value for 'offset' - * limit: // value for 'limit' - * pagination: // value for 'pagination' - * }, - * }); - */ -export function useValidatorUndelegationsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ValidatorUndelegationsDocument, options); - } -export function useValidatorUndelegationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ValidatorUndelegationsDocument, options); - } -export type ValidatorUndelegationsQueryHookResult = ReturnType; -export type ValidatorUndelegationsLazyQueryHookResult = ReturnType; -export type ValidatorUndelegationsQueryResult = Apollo.QueryResult; -export const ValidatorsDocument = gql` - query Validators { - stakingPool: staking_pool(limit: 1, order_by: {height: desc}) { - bondedTokens: bonded_tokens - } - validator { - 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 - } - validatorInfo: validator_info { - operatorAddress: operator_address - selfDelegateAddress: self_delegate_address - } - validatorVotingPowers: validator_voting_powers( - offset: 0 - limit: 1 - order_by: {height: desc} - ) { - votingPower: voting_power - } - validatorCommissions: validator_commissions(order_by: {height: desc}, limit: 1) { - commission - } - validatorSigningInfos: validator_signing_infos( - order_by: {height: desc} - limit: 1 - ) { - missedBlocksCounter: missed_blocks_counter - } - } - slashingParams: slashing_params(order_by: {height: desc}, limit: 1) { - params - } -} - `; - -/** - * __useValidatorsQuery__ - * - * To run a query within a React component, call `useValidatorsQuery` and pass it any options that fit your needs. - * When your component renders, `useValidatorsQuery` 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 } = useValidatorsQuery({ - * variables: { - * }, - * }); - */ -export function useValidatorsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ValidatorsDocument, options); - } -export function useValidatorsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ValidatorsDocument, options); - } -export type ValidatorsQueryHookResult = ReturnType; -export type ValidatorsLazyQueryHookResult = ReturnType; -export type ValidatorsQueryResult = Apollo.QueryResult; -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) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ValidatorsAddressListDocument, options); - } -export function useValidatorsAddressListLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ValidatorsAddressListDocument, options); - } -export type ValidatorsAddressListQueryHookResult = ReturnType; -export type ValidatorsAddressListLazyQueryHookResult = ReturnType; -export type ValidatorsAddressListQueryResult = Apollo.QueryResult; -export const ValidatorAddressesDocument = gql` - 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 { - operatorAddress: operator_address - selfDelegateAddress: self_delegate_address - consensusAddress: consensus_address - } - validatorDescriptions: validator_descriptions( - limit: 1 - order_by: {height: desc} - ) { - moniker - avatarUrl: avatar_url - } - } -} - `; - -/** - * __useValidatorAddressesQuery__ - * - * To run a query within a React component, call `useValidatorAddressesQuery` and pass it any options that fit your needs. - * When your component renders, `useValidatorAddressesQuery` 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 } = useValidatorAddressesQuery({ - * variables: { - * }, - * }); - */ -export function useValidatorAddressesQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ValidatorAddressesDocument, options); - } -export function useValidatorAddressesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ValidatorAddressesDocument, options); - } -export type ValidatorAddressesQueryHookResult = ReturnType; -export type ValidatorAddressesLazyQueryHookResult = ReturnType; -export type ValidatorAddressesQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/apps/web-stratos/src/graphql/useApollo/index.ts b/apps/web-stratos/src/graphql/useApollo/index.ts new file mode 100644 index 0000000000..53c34977ee --- /dev/null +++ b/apps/web-stratos/src/graphql/useApollo/index.ts @@ -0,0 +1,205 @@ +import chainConfig from '@/chainConfig'; +import { + ApolloClient, + DefaultOptions, + InMemoryCache, + NormalizedCacheObject, + split +} from '@apollo/client'; +import { BatchHttpLink } from '@apollo/client/link/batch-http'; +import { HttpLink } from '@apollo/client/link/http'; +import { GraphQLWsLink } from '@apollo/client/link/subscriptions'; +import { WebSocketLink } from '@apollo/client/link/ws'; +import { getMainDefinition } from '@apollo/client/utilities'; +import { RestLink } from 'apollo-link-rest'; +import { Kind, OperationTypeNode } from 'graphql'; +import { createClient } from 'graphql-ws'; +import { useEffect, useState } from 'react'; + +const { chainType, endpoints, extra } = chainConfig(); + +/* Checking if the code is running on the server or the client. */ +const ssrMode = typeof window === 'undefined'; + + +/* A global variable that stores the Apollo Client. */ +let globalApolloClient: ApolloClient; + +const urlEndpoints = [ + process.env.NEXT_PUBLIC_GRAPHQL_URL, + endpoints.graphql, + 'http://localhost:3000/v1/graphql', +]; + +const wsEndpoints = [ + process.env.NEXT_PUBLIC_GRAPHQL_WS, + endpoints.graphqlWebsocket, + 'ws://localhost:3000/websocket', +]; + +/* Setting the default options for the Apollo Client. */ +const defaultOptions: DefaultOptions = { + watchQuery: { + fetchPolicy: 'cache-and-network', + errorPolicy: 'all', + }, + query: { + fetchPolicy: 'cache-first', + errorPolicy: 'all', + }, +}; + +/* Creating a new HttpBatchLink object. */ +function createHttpBatchLink(uri?: string) { + return new BatchHttpLink({ + uri, + batchMax: 20, + batchInterval: 200, + }); +} + +/* Creating a new HttpLink object. */ +function createHttpLink(uri?: string) { + return new HttpLink({ uri }); +} + +/** + * It creates a WebSocketLink object that connects to the GraphQL server via a WebSocket connection + * @returns A WebSocketLink object. + */ +function createWebSocketLink(uri?: string) { + // older version of Hasura doesn't support graphql-ws + if (extra.graphqlWs) { + return new GraphQLWsLink( + createClient({ + url: uri ?? '', + lazy: true, + retryAttempts: Infinity, + retryWait: (_count) => new Promise((r) => setTimeout(() => r(), 1000)), + shouldRetry: () => true, + keepAlive: 30 * 1000, + }) + ); + } + + return new WebSocketLink({ + uri: uri ?? '', + options: { + lazy: true, + reconnect: true, + reconnectionAttempts: Infinity, + timeout: 30 * 1000, + minTimeout: 12 * 1000, + inactivityTimeout: 30 * 1000, + }, + }); +} + +export function profileApi() { + if (/^testnet/i.test(chainType)) { + return 'https://gql.morpheus.desmos.network/v1/graphql'; + } + return 'https://gql.mainnet.desmos.network/v1/graphql'; +} + +export const BIG_DIPPER_NETWORKS = 'https://raw.githubusercontent.com/stratosnet/big-dipper-networks/main/'; + +/** + * It creates a new Apollo Client, and sets the default options for it + * @param initialState - The initial state of the cache. + * @returns A function that takes an initial state and returns an Apollo Client. + */ +function createApolloClient(initialState = {}) { + /* Restoring the cache from the initial state. */ + const cache = new InMemoryCache().restore(initialState); + + const restLink = new RestLink({ uri: BIG_DIPPER_NETWORKS }); + + const httpLink = + // split( + // ({ operationName }) => + // /^(?:WasmCode|WasmContract|WasmCodeWithByteCode)$/.test(operationName), + // createHttpBatchLink('https://gql.juno.forbole.com/v1/graphql'), + split( + ({ operationName, variables }) => + /^(?:Account|Validator)Delegations$/.test(operationName) && variables?.pagination, + createHttpLink(urlEndpoints.find((u) => u)), + createHttpBatchLink(urlEndpoints.find((u) => u)) + ); + const httpOrWsLink = ssrMode + ? createHttpBatchLink(urlEndpoints.find((u) => u)) + : split( + /* Checking if the query is a subscription. */ + ({ query }) => { + const node = getMainDefinition(query); + const isSubscription = + node.kind === Kind.OPERATION_DEFINITION && + node.operation === OperationTypeNode.SUBSCRIPTION; + return isSubscription; + }, + createWebSocketLink(wsEndpoints.find((u) => u)), + httpLink + ); + + const graphlqllink = split( + ({ operationName }) => /^DesmosProfile/.test(operationName), + createHttpBatchLink(profileApi()), + httpOrWsLink + ); + + const link = split( + ({ operationName }) => operationName === 'Rest', + restLink, + httpOrWsLink, + ); + + /* Creating a new Apollo Client. */ + const client = new ApolloClient({ + ssrMode, + link, + cache, + }); + + /* Setting the default options for the Apollo Client. */ + client.defaultOptions = defaultOptions; + + return client; +} + +/** + * If we're on the server, we create a new Apollo Client. If we're on the client, we create a new + * Apollo Client if one doesn't already exist + * @param {NormalizedCacheObject} [initialState] - This is the initial state of the Apollo Client. It + * is used to hydrate the cache. + * @returns A function that takes in an initialState and returns a new ApolloClient. + */ +export function initializeApollo(initialState?: NormalizedCacheObject) { + // For SSG and SSR always create a new Apollo Client + if (ssrMode) return createApolloClient(initialState); + + /* Checking if the globalApolloClient is already created. If it is not, it creates it. */ + if (!globalApolloClient) { + globalApolloClient = createApolloClient(initialState); + } + + return globalApolloClient; +} + +/** + * It initializes the Apollo Client with the initial state and returns the store + * @param {NormalizedCacheObject} initialState - This is the initial state of the Apollo Client. + * @returns The Apollo Client instance. + */ +function useApollo(initialState?: NormalizedCacheObject) { + /* Setting the initial state of the Apollo Client. */ + const [store, setStore] = useState(() => initializeApollo(initialState)); + + useEffect(() => { + /* Setting the store with the new initial state. */ + setStore(initializeApollo(initialState)); + }, []); + + return store; +} + +export default useApollo;