From cfadbc8e843b0b775c2fa7c273e887a67a92fdf5 Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Wed, 12 Jan 2022 13:55:48 +0800 Subject: [PATCH 01/54] 645/update config (#647) --- CHANGELOG.md | 5 + src/configs/chain_config.mainnet.json | 1 + src/configs/chain_config.testnet.json | 1 + src/graphql/desmos_profile.ts | 1161 ++++++++++++++++- src/graphql/types.tsx | 347 ++++- src/graphql/validator_details.graphql | 3 - src/graphql/validators.graphql | 3 - .../__snapshots__/index.test.tsx.snap | 4 +- .../components/online_voting_power/hooks.tsx | 18 +- src/screens/validator_details/hooks.ts | 4 +- .../validators/components/list/hooks.ts | 9 +- 11 files changed, 1475 insertions(+), 81 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd50ba85e1..642aebe02e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,10 +2,15 @@ ## Changes - Optimized initial loading by setting basic details first then profiles after ([\#629](https://github.com/forbole/big-dipper-2.0-cosmos/issues/629)) +- Add vp token unit in config ([\#645](https://github.com/forbole/big-dipper-2.0-cosmos/issues/645)) ## Bug fixes - Fix home page validator image url not displaying correctly ([\#632](https://github.com/forbole/big-dipper-2.0-cosmos/issues/632)) +## Migration + +- [v1.7.0 to v1.10.0](https://docs.bigdipper.live/cosmos-based/frontend/migrations/v1.7.0-to-v1.10.0) + # base-v1.9.0 - 2021-01-10 ## Changes diff --git a/src/configs/chain_config.mainnet.json b/src/configs/chain_config.mainnet.json index d95206baea..3c27e0dde0 100644 --- a/src/configs/chain_config.mainnet.json +++ b/src/configs/chain_config.mainnet.json @@ -15,6 +15,7 @@ "height": 1 }, "primaryTokenUnit": "udsm", + "votingPowerTokenUnit": "udsm", "tokenUnits": { "udsm": { "display": "dsm", diff --git a/src/configs/chain_config.testnet.json b/src/configs/chain_config.testnet.json index 07ec3046ef..e389acb0aa 100644 --- a/src/configs/chain_config.testnet.json +++ b/src/configs/chain_config.testnet.json @@ -15,6 +15,7 @@ "height": 1 }, "primaryTokenUnit": "udaric", + "votingPowerTokenUnit": "udaric", "tokenUnits": { "udaric": { "display": "daric", diff --git a/src/graphql/desmos_profile.ts b/src/graphql/desmos_profile.ts index fc87799d5f..dde2a11fa1 100644 --- a/src/graphql/desmos_profile.ts +++ b/src/graphql/desmos_profile.ts @@ -143,6 +143,18 @@ export type Account = { /** An aggregate relationship */ delegations_aggregate: Delegation_Aggregate; /** An array relationship */ + delegators_to_refreshes: Array; + /** An aggregate relationship */ + delegators_to_refreshes_aggregate: Delegators_To_Refresh_Aggregate; + /** An array relationship */ + feeGrantAllowancesByGranterAddress: Array; + /** An aggregate relationship */ + feeGrantAllowancesByGranterAddress_aggregate: Fee_Grant_Allowance_Aggregate; + /** An array relationship */ + fee_grant_allowances: Array; + /** An aggregate relationship */ + fee_grant_allowances_aggregate: Fee_Grant_Allowance_Aggregate; + /** An array relationship */ proposal_deposits: Array; /** An aggregate relationship */ proposal_deposits_aggregate: Proposal_Deposit_Aggregate; @@ -168,6 +180,10 @@ export type Account = { validator_infos_aggregate: Validator_Info_Aggregate; /** An object relationship */ vesting_account?: Maybe; + /** An array relationship */ + vesting_accounts: Array; + /** An aggregate relationship */ + vesting_accounts_aggregate: Vesting_Account_Aggregate; }; @@ -251,6 +267,66 @@ export type AccountDelegations_AggregateArgs = { }; +/** columns and relationships of "account" */ +export type AccountDelegators_To_RefreshesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountDelegators_To_Refreshes_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountFeeGrantAllowancesByGranterAddressArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountFeeGrantAllowancesByGranterAddress_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountFee_Grant_AllowancesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountFee_Grant_Allowances_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + /** columns and relationships of "account" */ export type AccountProposal_DepositsArgs = { distinct_on?: Maybe>; @@ -370,6 +446,26 @@ export type AccountValidator_Infos_AggregateArgs = { where?: Maybe; }; + +/** columns and relationships of "account" */ +export type AccountVesting_AccountsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountVesting_Accounts_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + /** aggregated selection of "account" */ export type Account_Aggregate = { __typename?: 'account_aggregate'; @@ -747,6 +843,9 @@ export type Account_Bool_Exp = { address?: Maybe; delegation_rewards?: Maybe; delegations?: Maybe; + delegators_to_refreshes?: Maybe; + feeGrantAllowancesByGranterAddress?: Maybe; + fee_grant_allowances?: Maybe; proposal_deposits?: Maybe; proposal_votes?: Maybe; proposals?: Maybe; @@ -754,6 +853,7 @@ export type Account_Bool_Exp = { unbonding_delegations?: Maybe; validator_infos?: Maybe; vesting_account?: Maybe; + vesting_accounts?: Maybe; }; /** aggregate max on columns */ @@ -775,6 +875,9 @@ export type Account_Order_By = { address?: Maybe; delegation_rewards_aggregate?: Maybe; delegations_aggregate?: Maybe; + delegators_to_refreshes_aggregate?: Maybe; + feeGrantAllowancesByGranterAddress_aggregate?: Maybe; + fee_grant_allowances_aggregate?: Maybe; proposal_deposits_aggregate?: Maybe; proposal_votes_aggregate?: Maybe; proposals_aggregate?: Maybe; @@ -782,6 +885,7 @@ export type Account_Order_By = { unbonding_delegations_aggregate?: Maybe; validator_infos_aggregate?: Maybe; vesting_account?: Maybe; + vesting_accounts_aggregate?: Maybe; }; /** select columns of table "account" */ @@ -1929,6 +2033,14 @@ export type Block = { pre_commits: Array; /** An aggregate relationship */ pre_commits_aggregate: Pre_Commit_Aggregate; + /** An array relationship */ + proposal_deposits: Array; + /** An aggregate relationship */ + proposal_deposits_aggregate: Proposal_Deposit_Aggregate; + /** An array relationship */ + proposal_votes: Array; + /** An aggregate relationship */ + proposal_votes_aggregate: Proposal_Vote_Aggregate; proposer_address?: Maybe; timestamp: Scalars['timestamp']; total_gas?: Maybe; @@ -1965,6 +2077,46 @@ export type BlockPre_Commits_AggregateArgs = { }; +/** columns and relationships of "block" */ +export type BlockProposal_DepositsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "block" */ +export type BlockProposal_Deposits_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "block" */ +export type BlockProposal_VotesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "block" */ +export type BlockProposal_Votes_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + /** columns and relationships of "block" */ export type BlockTransactionsArgs = { distinct_on?: Maybe>; @@ -2073,6 +2225,8 @@ export type Block_Bool_Exp = { height?: Maybe; num_txs?: Maybe; pre_commits?: Maybe; + proposal_deposits?: Maybe; + proposal_votes?: Maybe; proposer_address?: Maybe; timestamp?: Maybe; total_gas?: Maybe; @@ -2129,6 +2283,8 @@ export type Block_Order_By = { height?: Maybe; num_txs?: Maybe; pre_commits_aggregate?: Maybe; + proposal_deposits_aggregate?: Maybe; + proposal_votes_aggregate?: Maybe; proposer_address?: Maybe; timestamp?: Maybe; total_gas?: Maybe; @@ -2983,6 +3139,143 @@ export type Community_Pool_Variance_Fields = { height?: Maybe; }; +/** columns and relationships of "consensus" */ +export type Consensus = { + __typename?: 'consensus'; + height: Scalars['bigint']; + round: Scalars['Int']; + step: Scalars['String']; +}; + +/** aggregated selection of "consensus" */ +export type Consensus_Aggregate = { + __typename?: 'consensus_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "consensus" */ +export type Consensus_Aggregate_Fields = { + __typename?: 'consensus_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 "consensus" */ +export type Consensus_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Consensus_Avg_Fields = { + __typename?: 'consensus_avg_fields'; + height?: Maybe; + round?: Maybe; +}; + +/** Boolean expression to filter rows from the table "consensus". All fields are combined with a logical 'AND'. */ +export type Consensus_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + height?: Maybe; + round?: Maybe; + step?: Maybe; +}; + +/** aggregate max on columns */ +export type Consensus_Max_Fields = { + __typename?: 'consensus_max_fields'; + height?: Maybe; + round?: Maybe; + step?: Maybe; +}; + +/** aggregate min on columns */ +export type Consensus_Min_Fields = { + __typename?: 'consensus_min_fields'; + height?: Maybe; + round?: Maybe; + step?: Maybe; +}; + +/** Ordering options when selecting data from "consensus". */ +export type Consensus_Order_By = { + height?: Maybe; + round?: Maybe; + step?: Maybe; +}; + +/** select columns of table "consensus" */ +export enum Consensus_Select_Column { + /** column name */ + Height = 'height', + /** column name */ + Round = 'round', + /** column name */ + Step = 'step' +} + +/** aggregate stddev on columns */ +export type Consensus_Stddev_Fields = { + __typename?: 'consensus_stddev_fields'; + height?: Maybe; + round?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Consensus_Stddev_Pop_Fields = { + __typename?: 'consensus_stddev_pop_fields'; + height?: Maybe; + round?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Consensus_Stddev_Samp_Fields = { + __typename?: 'consensus_stddev_samp_fields'; + height?: Maybe; + round?: Maybe; +}; + +/** aggregate sum on columns */ +export type Consensus_Sum_Fields = { + __typename?: 'consensus_sum_fields'; + height?: Maybe; + round?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Consensus_Var_Pop_Fields = { + __typename?: 'consensus_var_pop_fields'; + height?: Maybe; + round?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Consensus_Var_Samp_Fields = { + __typename?: 'consensus_var_samp_fields'; + height?: Maybe; + round?: Maybe; +}; + +/** aggregate variance on columns */ +export type Consensus_Variance_Fields = { + __typename?: 'consensus_variance_fields'; + height?: Maybe; + round?: Maybe; +}; + /** columns and relationships of "delegation" */ export type Delegation = { __typename?: 'delegation'; @@ -3441,6 +3734,199 @@ export type Delegation_Variance_Order_By = { id?: Maybe; }; +/** columns and relationships of "delegators_to_refresh" */ +export type Delegators_To_Refresh = { + __typename?: 'delegators_to_refresh'; + /** An object relationship */ + account: Account; + address: Scalars['String']; + height: Scalars['bigint']; +}; + +/** aggregated selection of "delegators_to_refresh" */ +export type Delegators_To_Refresh_Aggregate = { + __typename?: 'delegators_to_refresh_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "delegators_to_refresh" */ +export type Delegators_To_Refresh_Aggregate_Fields = { + __typename?: 'delegators_to_refresh_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 "delegators_to_refresh" */ +export type Delegators_To_Refresh_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "delegators_to_refresh" */ +export type Delegators_To_Refresh_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Delegators_To_Refresh_Avg_Fields = { + __typename?: 'delegators_to_refresh_avg_fields'; + height?: Maybe; +}; + +/** order by avg() on columns of table "delegators_to_refresh" */ +export type Delegators_To_Refresh_Avg_Order_By = { + height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "delegators_to_refresh". All fields are combined with a logical 'AND'. */ +export type Delegators_To_Refresh_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + account?: Maybe; + address?: Maybe; + height?: Maybe; +}; + +/** aggregate max on columns */ +export type Delegators_To_Refresh_Max_Fields = { + __typename?: 'delegators_to_refresh_max_fields'; + address?: Maybe; + height?: Maybe; +}; + +/** order by max() on columns of table "delegators_to_refresh" */ +export type Delegators_To_Refresh_Max_Order_By = { + address?: Maybe; + height?: Maybe; +}; + +/** aggregate min on columns */ +export type Delegators_To_Refresh_Min_Fields = { + __typename?: 'delegators_to_refresh_min_fields'; + address?: Maybe; + height?: Maybe; +}; + +/** order by min() on columns of table "delegators_to_refresh" */ +export type Delegators_To_Refresh_Min_Order_By = { + address?: Maybe; + height?: Maybe; +}; + +/** Ordering options when selecting data from "delegators_to_refresh". */ +export type Delegators_To_Refresh_Order_By = { + account?: Maybe; + address?: Maybe; + height?: Maybe; +}; + +/** select columns of table "delegators_to_refresh" */ +export enum Delegators_To_Refresh_Select_Column { + /** column name */ + Address = 'address', + /** column name */ + Height = 'height' +} + +/** aggregate stddev on columns */ +export type Delegators_To_Refresh_Stddev_Fields = { + __typename?: 'delegators_to_refresh_stddev_fields'; + height?: Maybe; +}; + +/** order by stddev() on columns of table "delegators_to_refresh" */ +export type Delegators_To_Refresh_Stddev_Order_By = { + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Delegators_To_Refresh_Stddev_Pop_Fields = { + __typename?: 'delegators_to_refresh_stddev_pop_fields'; + height?: Maybe; +}; + +/** order by stddev_pop() on columns of table "delegators_to_refresh" */ +export type Delegators_To_Refresh_Stddev_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Delegators_To_Refresh_Stddev_Samp_Fields = { + __typename?: 'delegators_to_refresh_stddev_samp_fields'; + height?: Maybe; +}; + +/** order by stddev_samp() on columns of table "delegators_to_refresh" */ +export type Delegators_To_Refresh_Stddev_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Delegators_To_Refresh_Sum_Fields = { + __typename?: 'delegators_to_refresh_sum_fields'; + height?: Maybe; +}; + +/** order by sum() on columns of table "delegators_to_refresh" */ +export type Delegators_To_Refresh_Sum_Order_By = { + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Delegators_To_Refresh_Var_Pop_Fields = { + __typename?: 'delegators_to_refresh_var_pop_fields'; + height?: Maybe; +}; + +/** order by var_pop() on columns of table "delegators_to_refresh" */ +export type Delegators_To_Refresh_Var_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Delegators_To_Refresh_Var_Samp_Fields = { + __typename?: 'delegators_to_refresh_var_samp_fields'; + height?: Maybe; +}; + +/** order by var_samp() on columns of table "delegators_to_refresh" */ +export type Delegators_To_Refresh_Var_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Delegators_To_Refresh_Variance_Fields = { + __typename?: 'delegators_to_refresh_variance_fields'; + height?: Maybe; +}; + +/** order by variance() on columns of table "delegators_to_refresh" */ +export type Delegators_To_Refresh_Variance_Order_By = { + height?: Maybe; +}; + /** columns and relationships of "distribution_params" */ export type Distribution_Params = { __typename?: 'distribution_params'; @@ -4292,91 +4778,333 @@ export type Dtag_Transfer_Requests_Order_By = { sender_address?: Maybe; }; -/** select columns of table "dtag_transfer_requests" */ -export enum Dtag_Transfer_Requests_Select_Column { +/** select columns of table "dtag_transfer_requests" */ +export enum Dtag_Transfer_Requests_Select_Column { + /** column name */ + Height = 'height', + /** column name */ + ReceiverAddress = 'receiver_address', + /** column name */ + SenderAddress = 'sender_address' +} + +/** aggregate stddev on columns */ +export type Dtag_Transfer_Requests_Stddev_Fields = { + __typename?: 'dtag_transfer_requests_stddev_fields'; + height?: Maybe; +}; + +/** order by stddev() on columns of table "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Stddev_Order_By = { + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Dtag_Transfer_Requests_Stddev_Pop_Fields = { + __typename?: 'dtag_transfer_requests_stddev_pop_fields'; + height?: Maybe; +}; + +/** order by stddev_pop() on columns of table "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Stddev_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Dtag_Transfer_Requests_Stddev_Samp_Fields = { + __typename?: 'dtag_transfer_requests_stddev_samp_fields'; + height?: Maybe; +}; + +/** order by stddev_samp() on columns of table "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Stddev_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Dtag_Transfer_Requests_Sum_Fields = { + __typename?: 'dtag_transfer_requests_sum_fields'; + height?: Maybe; +}; + +/** order by sum() on columns of table "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Sum_Order_By = { + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Dtag_Transfer_Requests_Var_Pop_Fields = { + __typename?: 'dtag_transfer_requests_var_pop_fields'; + height?: Maybe; +}; + +/** order by var_pop() on columns of table "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Var_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Dtag_Transfer_Requests_Var_Samp_Fields = { + __typename?: 'dtag_transfer_requests_var_samp_fields'; + height?: Maybe; +}; + +/** order by var_samp() on columns of table "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Var_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Dtag_Transfer_Requests_Variance_Fields = { + __typename?: 'dtag_transfer_requests_variance_fields'; + height?: Maybe; +}; + +/** order by variance() on columns of table "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Variance_Order_By = { + height?: Maybe; +}; + +/** columns and relationships of "fee_grant_allowance" */ +export type Fee_Grant_Allowance = { + __typename?: 'fee_grant_allowance'; + /** An object relationship */ + account: Account; + /** An object relationship */ + accountByGranterAddress: Account; + allowance: Scalars['jsonb']; + grantee_address: Scalars['String']; + granter_address: Scalars['String']; + height: Scalars['bigint']; + id: Scalars['Int']; +}; + + +/** columns and relationships of "fee_grant_allowance" */ +export type Fee_Grant_AllowanceAllowanceArgs = { + path?: Maybe; +}; + +/** aggregated selection of "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Aggregate = { + __typename?: 'fee_grant_allowance_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Aggregate_Fields = { + __typename?: 'fee_grant_allowance_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 "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Fee_Grant_Allowance_Avg_Fields = { + __typename?: 'fee_grant_allowance_avg_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by avg() on columns of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Avg_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + account?: Maybe; + accountByGranterAddress?: Maybe; + allowance?: Maybe; + grantee_address?: Maybe; + granter_address?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate max on columns */ +export type Fee_Grant_Allowance_Max_Fields = { + __typename?: 'fee_grant_allowance_max_fields'; + grantee_address?: Maybe; + granter_address?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** order by max() on columns of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Max_Order_By = { + grantee_address?: Maybe; + granter_address?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate min on columns */ +export type Fee_Grant_Allowance_Min_Fields = { + __typename?: 'fee_grant_allowance_min_fields'; + grantee_address?: Maybe; + granter_address?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** order by min() on columns of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Min_Order_By = { + grantee_address?: Maybe; + granter_address?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** Ordering options when selecting data from "fee_grant_allowance". */ +export type Fee_Grant_Allowance_Order_By = { + account?: Maybe; + accountByGranterAddress?: Maybe; + allowance?: Maybe; + grantee_address?: Maybe; + granter_address?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** select columns of table "fee_grant_allowance" */ +export enum Fee_Grant_Allowance_Select_Column { /** column name */ - Height = 'height', + Allowance = 'allowance', /** column name */ - ReceiverAddress = 'receiver_address', + GranteeAddress = 'grantee_address', /** column name */ - SenderAddress = 'sender_address' + GranterAddress = 'granter_address', + /** column name */ + Height = 'height', + /** column name */ + Id = 'id' } /** aggregate stddev on columns */ -export type Dtag_Transfer_Requests_Stddev_Fields = { - __typename?: 'dtag_transfer_requests_stddev_fields'; +export type Fee_Grant_Allowance_Stddev_Fields = { + __typename?: 'fee_grant_allowance_stddev_fields'; height?: Maybe; + id?: Maybe; }; -/** order by stddev() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Stddev_Order_By = { +/** order by stddev() on columns of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Stddev_Order_By = { height?: Maybe; + id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Dtag_Transfer_Requests_Stddev_Pop_Fields = { - __typename?: 'dtag_transfer_requests_stddev_pop_fields'; +export type Fee_Grant_Allowance_Stddev_Pop_Fields = { + __typename?: 'fee_grant_allowance_stddev_pop_fields'; height?: Maybe; + id?: Maybe; }; -/** order by stddev_pop() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Stddev_Pop_Order_By = { +/** order by stddev_pop() on columns of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Stddev_Pop_Order_By = { height?: Maybe; + id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Dtag_Transfer_Requests_Stddev_Samp_Fields = { - __typename?: 'dtag_transfer_requests_stddev_samp_fields'; +export type Fee_Grant_Allowance_Stddev_Samp_Fields = { + __typename?: 'fee_grant_allowance_stddev_samp_fields'; height?: Maybe; + id?: Maybe; }; -/** order by stddev_samp() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Stddev_Samp_Order_By = { +/** order by stddev_samp() on columns of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Stddev_Samp_Order_By = { height?: Maybe; + id?: Maybe; }; /** aggregate sum on columns */ -export type Dtag_Transfer_Requests_Sum_Fields = { - __typename?: 'dtag_transfer_requests_sum_fields'; +export type Fee_Grant_Allowance_Sum_Fields = { + __typename?: 'fee_grant_allowance_sum_fields'; height?: Maybe; + id?: Maybe; }; -/** order by sum() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Sum_Order_By = { +/** order by sum() on columns of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Sum_Order_By = { height?: Maybe; + id?: Maybe; }; /** aggregate var_pop on columns */ -export type Dtag_Transfer_Requests_Var_Pop_Fields = { - __typename?: 'dtag_transfer_requests_var_pop_fields'; +export type Fee_Grant_Allowance_Var_Pop_Fields = { + __typename?: 'fee_grant_allowance_var_pop_fields'; height?: Maybe; + id?: Maybe; }; -/** order by var_pop() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Var_Pop_Order_By = { +/** order by var_pop() on columns of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Var_Pop_Order_By = { height?: Maybe; + id?: Maybe; }; /** aggregate var_samp on columns */ -export type Dtag_Transfer_Requests_Var_Samp_Fields = { - __typename?: 'dtag_transfer_requests_var_samp_fields'; +export type Fee_Grant_Allowance_Var_Samp_Fields = { + __typename?: 'fee_grant_allowance_var_samp_fields'; height?: Maybe; + id?: Maybe; }; -/** order by var_samp() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Var_Samp_Order_By = { +/** order by var_samp() on columns of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Var_Samp_Order_By = { height?: Maybe; + id?: Maybe; }; /** aggregate variance on columns */ -export type Dtag_Transfer_Requests_Variance_Fields = { - __typename?: 'dtag_transfer_requests_variance_fields'; +export type Fee_Grant_Allowance_Variance_Fields = { + __typename?: 'fee_grant_allowance_variance_fields'; height?: Maybe; + id?: Maybe; }; -/** order by variance() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Variance_Order_By = { +/** order by variance() on columns of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Variance_Order_By = { height?: Maybe; + id?: Maybe; }; /** columns and relationships of "genesis" */ @@ -9443,6 +10171,8 @@ export type Proposal_Vote = { __typename?: 'proposal_vote'; /** An object relationship */ account: Account; + /** An object relationship */ + block: Block; height: Scalars['bigint']; option: Scalars['String']; /** An object relationship */ @@ -9515,6 +10245,7 @@ export type Proposal_Vote_Bool_Exp = { _not?: Maybe; _or?: Maybe>; account?: Maybe; + block?: Maybe; height?: Maybe; option?: Maybe; proposal?: Maybe; @@ -9559,6 +10290,7 @@ export type Proposal_Vote_Min_Order_By = { /** Ordering options when selecting data from "proposal_vote". */ export type Proposal_Vote_Order_By = { account?: Maybe; + block?: Maybe; height?: Maybe; option?: Maybe; proposal?: Maybe; @@ -9741,6 +10473,10 @@ export type Query_Root = { community_pool: Array; /** fetch aggregated fields from the table: "community_pool" */ community_pool_aggregate: Community_Pool_Aggregate; + /** fetch data from the table: "consensus" */ + consensus: Array; + /** fetch aggregated fields from the table: "consensus" */ + consensus_aggregate: Consensus_Aggregate; /** fetch data from the table: "delegation" */ delegation: Array; /** fetch aggregated fields from the table: "delegation" */ @@ -9751,6 +10487,10 @@ export type Query_Root = { delegation_reward: Array; /** fetch aggregated fields from the table: "delegation_reward" */ delegation_reward_aggregate: Delegation_Reward_Aggregate; + /** fetch data from the table: "delegators_to_refresh" */ + delegators_to_refresh: Array; + /** fetch aggregated fields from the table: "delegators_to_refresh" */ + delegators_to_refresh_aggregate: Delegators_To_Refresh_Aggregate; /** fetch data from the table: "distribution_params" */ distribution_params: Array; /** fetch aggregated fields from the table: "distribution_params" */ @@ -9771,6 +10511,12 @@ export type Query_Root = { dtag_transfer_requests: Array; /** An aggregate relationship */ dtag_transfer_requests_aggregate: Dtag_Transfer_Requests_Aggregate; + /** fetch data from the table: "fee_grant_allowance" */ + fee_grant_allowance: Array; + /** fetch aggregated fields from the table: "fee_grant_allowance" */ + fee_grant_allowance_aggregate: Fee_Grant_Allowance_Aggregate; + /** fetch data from the table: "fee_grant_allowance" using primary key columns */ + fee_grant_allowance_by_pk?: Maybe; /** fetch data from the table: "genesis" */ genesis: Array; /** fetch aggregated fields from the table: "genesis" */ @@ -10305,6 +11051,24 @@ export type Query_RootCommunity_Pool_AggregateArgs = { }; +export type Query_RootConsensusArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootConsensus_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Query_RootDelegationArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -10346,6 +11110,24 @@ export type Query_RootDelegation_Reward_AggregateArgs = { }; +export type Query_RootDelegators_To_RefreshArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDelegators_To_Refresh_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Query_RootDistribution_ParamsArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -10428,6 +11210,29 @@ export type Query_RootDtag_Transfer_Requests_AggregateArgs = { }; +export type Query_RootFee_Grant_AllowanceArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootFee_Grant_Allowance_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootFee_Grant_Allowance_By_PkArgs = { + id: Scalars['Int']; +}; + + export type Query_RootGenesisArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -12376,6 +13181,10 @@ export type Subscription_Root = { community_pool: Array; /** fetch aggregated fields from the table: "community_pool" */ community_pool_aggregate: Community_Pool_Aggregate; + /** fetch data from the table: "consensus" */ + consensus: Array; + /** fetch aggregated fields from the table: "consensus" */ + consensus_aggregate: Consensus_Aggregate; /** fetch data from the table: "delegation" */ delegation: Array; /** fetch aggregated fields from the table: "delegation" */ @@ -12386,6 +13195,10 @@ export type Subscription_Root = { delegation_reward: Array; /** fetch aggregated fields from the table: "delegation_reward" */ delegation_reward_aggregate: Delegation_Reward_Aggregate; + /** fetch data from the table: "delegators_to_refresh" */ + delegators_to_refresh: Array; + /** fetch aggregated fields from the table: "delegators_to_refresh" */ + delegators_to_refresh_aggregate: Delegators_To_Refresh_Aggregate; /** fetch data from the table: "distribution_params" */ distribution_params: Array; /** fetch aggregated fields from the table: "distribution_params" */ @@ -12406,6 +13219,12 @@ export type Subscription_Root = { dtag_transfer_requests: Array; /** An aggregate relationship */ dtag_transfer_requests_aggregate: Dtag_Transfer_Requests_Aggregate; + /** fetch data from the table: "fee_grant_allowance" */ + fee_grant_allowance: Array; + /** fetch aggregated fields from the table: "fee_grant_allowance" */ + fee_grant_allowance_aggregate: Fee_Grant_Allowance_Aggregate; + /** fetch data from the table: "fee_grant_allowance" using primary key columns */ + fee_grant_allowance_by_pk?: Maybe; /** fetch data from the table: "genesis" */ genesis: Array; /** fetch aggregated fields from the table: "genesis" */ @@ -12940,6 +13759,24 @@ export type Subscription_RootCommunity_Pool_AggregateArgs = { }; +export type Subscription_RootConsensusArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootConsensus_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Subscription_RootDelegationArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -12981,6 +13818,24 @@ export type Subscription_RootDelegation_Reward_AggregateArgs = { }; +export type Subscription_RootDelegators_To_RefreshArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootDelegators_To_Refresh_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Subscription_RootDistribution_ParamsArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -13063,6 +13918,29 @@ export type Subscription_RootDtag_Transfer_Requests_AggregateArgs = { }; +export type Subscription_RootFee_Grant_AllowanceArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootFee_Grant_Allowance_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootFee_Grant_Allowance_By_PkArgs = { + id: Scalars['Int']; +}; + + export type Subscription_RootGenesisArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -16093,6 +16971,10 @@ export type Validator = { /** An aggregate relationship */ pre_commits_aggregate: Pre_Commit_Aggregate; /** An array relationship */ + proposal_validator_status_snapshots: Array; + /** An aggregate relationship */ + proposal_validator_status_snapshots_aggregate: Proposal_Validator_Status_Snapshot_Aggregate; + /** An array relationship */ redelegationsByDstValidatorAddress: Array; /** An aggregate relationship */ redelegationsByDstValidatorAddress_aggregate: Redelegation_Aggregate; @@ -16239,6 +17121,26 @@ export type ValidatorPre_Commits_AggregateArgs = { }; +/** columns and relationships of "validator" */ +export type ValidatorProposal_Validator_Status_SnapshotsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorProposal_Validator_Status_Snapshots_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + /** columns and relationships of "validator" */ export type ValidatorRedelegationsByDstValidatorAddressArgs = { distinct_on?: Maybe>; @@ -16482,6 +17384,7 @@ export type Validator_Bool_Exp = { delegations?: Maybe; double_sign_votes?: Maybe; pre_commits?: Maybe; + proposal_validator_status_snapshots?: Maybe; redelegationsByDstValidatorAddress?: Maybe; redelegationsBySrcValidatorAddress?: Maybe; unbonding_delegations?: Maybe; @@ -17189,6 +18092,7 @@ export type Validator_Info = { /** An object relationship */ account?: Maybe; consensus_address: Scalars['String']; + height: Scalars['bigint']; max_change_rate: Scalars['String']; max_rate: Scalars['String']; operator_address: Scalars['String']; @@ -17207,9 +18111,17 @@ export type Validator_Info_Aggregate = { /** aggregate fields of "validator_info" */ export type Validator_Info_Aggregate_Fields = { __typename?: 'validator_info_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; }; @@ -17221,9 +18133,28 @@ export type Validator_Info_Aggregate_FieldsCountArgs = { /** order by aggregate values of table "validator_info" */ export type Validator_Info_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; max?: Maybe; min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Validator_Info_Avg_Fields = { + __typename?: 'validator_info_avg_fields'; + height?: Maybe; +}; + +/** order by avg() on columns of table "validator_info" */ +export type Validator_Info_Avg_Order_By = { + height?: Maybe; }; /** Boolean expression to filter rows from the table "validator_info". All fields are combined with a logical 'AND'. */ @@ -17233,6 +18164,7 @@ export type Validator_Info_Bool_Exp = { _or?: Maybe>; account?: Maybe; consensus_address?: Maybe; + height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -17244,6 +18176,7 @@ export type Validator_Info_Bool_Exp = { export type Validator_Info_Max_Fields = { __typename?: 'validator_info_max_fields'; consensus_address?: Maybe; + height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -17253,6 +18186,7 @@ export type Validator_Info_Max_Fields = { /** order by max() on columns of table "validator_info" */ export type Validator_Info_Max_Order_By = { consensus_address?: Maybe; + height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -17263,6 +18197,7 @@ export type Validator_Info_Max_Order_By = { export type Validator_Info_Min_Fields = { __typename?: 'validator_info_min_fields'; consensus_address?: Maybe; + height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -17272,6 +18207,7 @@ export type Validator_Info_Min_Fields = { /** order by min() on columns of table "validator_info" */ export type Validator_Info_Min_Order_By = { consensus_address?: Maybe; + height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -17282,6 +18218,7 @@ export type Validator_Info_Min_Order_By = { export type Validator_Info_Order_By = { account?: Maybe; consensus_address?: Maybe; + height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -17294,6 +18231,8 @@ export enum Validator_Info_Select_Column { /** column name */ ConsensusAddress = 'consensus_address', /** column name */ + Height = 'height', + /** column name */ MaxChangeRate = 'max_change_rate', /** column name */ MaxRate = 'max_rate', @@ -17303,6 +18242,83 @@ export enum Validator_Info_Select_Column { SelfDelegateAddress = 'self_delegate_address' } +/** aggregate stddev on columns */ +export type Validator_Info_Stddev_Fields = { + __typename?: 'validator_info_stddev_fields'; + height?: Maybe; +}; + +/** order by stddev() on columns of table "validator_info" */ +export type Validator_Info_Stddev_Order_By = { + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Validator_Info_Stddev_Pop_Fields = { + __typename?: 'validator_info_stddev_pop_fields'; + height?: Maybe; +}; + +/** order by stddev_pop() on columns of table "validator_info" */ +export type Validator_Info_Stddev_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Validator_Info_Stddev_Samp_Fields = { + __typename?: 'validator_info_stddev_samp_fields'; + height?: Maybe; +}; + +/** order by stddev_samp() on columns of table "validator_info" */ +export type Validator_Info_Stddev_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Validator_Info_Sum_Fields = { + __typename?: 'validator_info_sum_fields'; + height?: Maybe; +}; + +/** order by sum() on columns of table "validator_info" */ +export type Validator_Info_Sum_Order_By = { + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Validator_Info_Var_Pop_Fields = { + __typename?: 'validator_info_var_pop_fields'; + height?: Maybe; +}; + +/** order by var_pop() on columns of table "validator_info" */ +export type Validator_Info_Var_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Validator_Info_Var_Samp_Fields = { + __typename?: 'validator_info_var_samp_fields'; + height?: Maybe; +}; + +/** order by var_samp() on columns of table "validator_info" */ +export type Validator_Info_Var_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Validator_Info_Variance_Fields = { + __typename?: 'validator_info_variance_fields'; + height?: Maybe; +}; + +/** order by variance() on columns of table "validator_info" */ +export type Validator_Info_Variance_Order_By = { + height?: Maybe; +}; + /** aggregate max on columns */ export type Validator_Max_Fields = { __typename?: 'validator_max_fields'; @@ -17326,6 +18342,7 @@ export type Validator_Order_By = { delegations_aggregate?: Maybe; double_sign_votes_aggregate?: Maybe; pre_commits_aggregate?: Maybe; + proposal_validator_status_snapshots_aggregate?: Maybe; redelegationsByDstValidatorAddress_aggregate?: Maybe; redelegationsBySrcValidatorAddress_aggregate?: Maybe; unbonding_delegations_aggregate?: Maybe; @@ -17631,6 +18648,7 @@ export type Validator_Status = { height: Scalars['bigint']; jailed: Scalars['Boolean']; status: Scalars['Int']; + tombstoned: Scalars['Boolean']; /** An object relationship */ validator: Validator; validator_address: Scalars['String']; @@ -17702,6 +18720,7 @@ export type Validator_Status_Bool_Exp = { height?: Maybe; jailed?: Maybe; status?: Maybe; + tombstoned?: Maybe; validator?: Maybe; validator_address?: Maybe; }; @@ -17741,6 +18760,7 @@ export type Validator_Status_Order_By = { height?: Maybe; jailed?: Maybe; status?: Maybe; + tombstoned?: Maybe; validator?: Maybe; validator_address?: Maybe; }; @@ -17754,6 +18774,8 @@ export enum Validator_Status_Select_Column { /** column name */ Status = 'status', /** column name */ + Tombstoned = 'tombstoned', + /** column name */ ValidatorAddress = 'validator_address' } @@ -18133,12 +19155,32 @@ export type Vesting_Account_Aggregate_FieldsCountArgs = { distinct?: Maybe; }; +/** order by aggregate values of table "vesting_account" */ +export type Vesting_Account_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + /** aggregate avg on columns */ export type Vesting_Account_Avg_Fields = { __typename?: 'vesting_account_avg_fields'; id?: Maybe; }; +/** order by avg() on columns of table "vesting_account" */ +export type Vesting_Account_Avg_Order_By = { + id?: Maybe; +}; + /** 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?: Maybe>; @@ -18164,6 +19206,15 @@ export type Vesting_Account_Max_Fields = { type?: Maybe; }; +/** order by max() on columns of table "vesting_account" */ +export type Vesting_Account_Max_Order_By = { + address?: Maybe; + end_time?: Maybe; + id?: Maybe; + start_time?: Maybe; + type?: Maybe; +}; + /** aggregate min on columns */ export type Vesting_Account_Min_Fields = { __typename?: 'vesting_account_min_fields'; @@ -18174,6 +19225,15 @@ export type Vesting_Account_Min_Fields = { type?: Maybe; }; +/** order by min() on columns of table "vesting_account" */ +export type Vesting_Account_Min_Order_By = { + address?: Maybe; + end_time?: Maybe; + id?: Maybe; + start_time?: Maybe; + type?: Maybe; +}; + /** Ordering options when selecting data from "vesting_account". */ export type Vesting_Account_Order_By = { account?: Maybe; @@ -18208,42 +19268,77 @@ export type Vesting_Account_Stddev_Fields = { id?: Maybe; }; +/** order by stddev() on columns of table "vesting_account" */ +export type Vesting_Account_Stddev_Order_By = { + id?: Maybe; +}; + /** aggregate stddev_pop on columns */ export type Vesting_Account_Stddev_Pop_Fields = { __typename?: 'vesting_account_stddev_pop_fields'; id?: Maybe; }; +/** order by stddev_pop() on columns of table "vesting_account" */ +export type Vesting_Account_Stddev_Pop_Order_By = { + id?: Maybe; +}; + /** aggregate stddev_samp on columns */ export type Vesting_Account_Stddev_Samp_Fields = { __typename?: 'vesting_account_stddev_samp_fields'; id?: Maybe; }; +/** order by stddev_samp() on columns of table "vesting_account" */ +export type Vesting_Account_Stddev_Samp_Order_By = { + id?: Maybe; +}; + /** aggregate sum on columns */ export type Vesting_Account_Sum_Fields = { __typename?: 'vesting_account_sum_fields'; id?: Maybe; }; +/** order by sum() on columns of table "vesting_account" */ +export type Vesting_Account_Sum_Order_By = { + id?: Maybe; +}; + /** aggregate var_pop on columns */ export type Vesting_Account_Var_Pop_Fields = { __typename?: 'vesting_account_var_pop_fields'; id?: Maybe; }; +/** order by var_pop() on columns of table "vesting_account" */ +export type Vesting_Account_Var_Pop_Order_By = { + id?: Maybe; +}; + /** aggregate var_samp on columns */ export type Vesting_Account_Var_Samp_Fields = { __typename?: 'vesting_account_var_samp_fields'; id?: Maybe; }; +/** order by var_samp() on columns of table "vesting_account" */ +export type Vesting_Account_Var_Samp_Order_By = { + id?: Maybe; +}; + /** aggregate variance on columns */ export type Vesting_Account_Variance_Fields = { __typename?: 'vesting_account_variance_fields'; id?: Maybe; }; +/** order by variance() on columns of table "vesting_account" */ +export type Vesting_Account_Variance_Order_By = { + id?: Maybe; +}; + /** columns and relationships of "vesting_period" */ export type Vesting_Period = { __typename?: 'vesting_period'; diff --git a/src/graphql/types.tsx b/src/graphql/types.tsx index 72d5549f24..b7494b37bb 100644 --- a/src/graphql/types.tsx +++ b/src/graphql/types.tsx @@ -4385,6 +4385,161 @@ export type Dtag_Transfer_Requests_Variance_Order_By = { height?: Maybe; }; +/** columns and relationships of "fee_grant_allowance" */ +export type Fee_Grant_Allowance = { + __typename?: 'fee_grant_allowance'; + allowance: Scalars['jsonb']; + grantee_address: Scalars['String']; + granter_address: Scalars['String']; + height: Scalars['bigint']; + id: Scalars['Int']; +}; + + +/** columns and relationships of "fee_grant_allowance" */ +export type Fee_Grant_AllowanceAllowanceArgs = { + path?: Maybe; +}; + +/** aggregated selection of "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Aggregate = { + __typename?: 'fee_grant_allowance_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Aggregate_Fields = { + __typename?: 'fee_grant_allowance_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 "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Fee_Grant_Allowance_Avg_Fields = { + __typename?: 'fee_grant_allowance_avg_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + allowance?: Maybe; + grantee_address?: Maybe; + granter_address?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate max on columns */ +export type Fee_Grant_Allowance_Max_Fields = { + __typename?: 'fee_grant_allowance_max_fields'; + grantee_address?: Maybe; + granter_address?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate min on columns */ +export type Fee_Grant_Allowance_Min_Fields = { + __typename?: 'fee_grant_allowance_min_fields'; + grantee_address?: Maybe; + granter_address?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** Ordering options when selecting data from "fee_grant_allowance". */ +export type Fee_Grant_Allowance_Order_By = { + allowance?: Maybe; + grantee_address?: Maybe; + granter_address?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** 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', + /** column name */ + Id = 'id' +} + +/** aggregate stddev on columns */ +export type Fee_Grant_Allowance_Stddev_Fields = { + __typename?: 'fee_grant_allowance_stddev_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Fee_Grant_Allowance_Stddev_Pop_Fields = { + __typename?: 'fee_grant_allowance_stddev_pop_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Fee_Grant_Allowance_Stddev_Samp_Fields = { + __typename?: 'fee_grant_allowance_stddev_samp_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate sum on columns */ +export type Fee_Grant_Allowance_Sum_Fields = { + __typename?: 'fee_grant_allowance_sum_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Fee_Grant_Allowance_Var_Pop_Fields = { + __typename?: 'fee_grant_allowance_var_pop_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Fee_Grant_Allowance_Var_Samp_Fields = { + __typename?: 'fee_grant_allowance_var_samp_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate variance on columns */ +export type Fee_Grant_Allowance_Variance_Fields = { + __typename?: 'fee_grant_allowance_variance_fields'; + height?: Maybe; + id?: Maybe; +}; + /** columns and relationships of "genesis" */ export type Genesis = { __typename?: 'genesis'; @@ -9777,6 +9932,12 @@ export type Query_Root = { dtag_transfer_requests: Array; /** An aggregate relationship */ dtag_transfer_requests_aggregate: Dtag_Transfer_Requests_Aggregate; + /** fetch data from the table: "fee_grant_allowance" */ + fee_grant_allowance: Array; + /** fetch aggregated fields from the table: "fee_grant_allowance" */ + fee_grant_allowance_aggregate: Fee_Grant_Allowance_Aggregate; + /** fetch data from the table: "fee_grant_allowance" using primary key columns */ + fee_grant_allowance_by_pk?: Maybe; /** fetch data from the table: "genesis" */ genesis: Array; /** fetch aggregated fields from the table: "genesis" */ @@ -10432,6 +10593,29 @@ export type Query_RootDtag_Transfer_Requests_AggregateArgs = { }; +export type Query_RootFee_Grant_AllowanceArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootFee_Grant_Allowance_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootFee_Grant_Allowance_By_PkArgs = { + id: Scalars['Int']; +}; + + export type Query_RootGenesisArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -12402,6 +12586,12 @@ export type Subscription_Root = { dtag_transfer_requests: Array; /** An aggregate relationship */ dtag_transfer_requests_aggregate: Dtag_Transfer_Requests_Aggregate; + /** fetch data from the table: "fee_grant_allowance" */ + fee_grant_allowance: Array; + /** fetch aggregated fields from the table: "fee_grant_allowance" */ + fee_grant_allowance_aggregate: Fee_Grant_Allowance_Aggregate; + /** fetch data from the table: "fee_grant_allowance" using primary key columns */ + fee_grant_allowance_by_pk?: Maybe; /** fetch data from the table: "genesis" */ genesis: Array; /** fetch aggregated fields from the table: "genesis" */ @@ -13057,6 +13247,29 @@ export type Subscription_RootDtag_Transfer_Requests_AggregateArgs = { }; +export type Subscription_RootFee_Grant_AllowanceArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootFee_Grant_Allowance_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootFee_Grant_Allowance_By_PkArgs = { + id: Scalars['Int']; +}; + + export type Subscription_RootGenesisArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -17176,6 +17389,7 @@ export type Validator_Info = { /** An object relationship */ account?: Maybe; consensus_address: Scalars['String']; + height: Scalars['bigint']; max_change_rate: Scalars['String']; max_rate: Scalars['String']; operator_address: Scalars['String']; @@ -17194,9 +17408,17 @@ export type Validator_Info_Aggregate = { /** aggregate fields of "validator_info" */ export type Validator_Info_Aggregate_Fields = { __typename?: 'validator_info_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; }; @@ -17208,9 +17430,28 @@ export type Validator_Info_Aggregate_FieldsCountArgs = { /** order by aggregate values of table "validator_info" */ export type Validator_Info_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; max?: Maybe; min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Validator_Info_Avg_Fields = { + __typename?: 'validator_info_avg_fields'; + height?: Maybe; +}; + +/** order by avg() on columns of table "validator_info" */ +export type Validator_Info_Avg_Order_By = { + height?: Maybe; }; /** Boolean expression to filter rows from the table "validator_info". All fields are combined with a logical 'AND'. */ @@ -17220,6 +17461,7 @@ export type Validator_Info_Bool_Exp = { _or?: Maybe>; account?: Maybe; consensus_address?: Maybe; + height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -17231,6 +17473,7 @@ export type Validator_Info_Bool_Exp = { export type Validator_Info_Max_Fields = { __typename?: 'validator_info_max_fields'; consensus_address?: Maybe; + height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -17240,6 +17483,7 @@ export type Validator_Info_Max_Fields = { /** order by max() on columns of table "validator_info" */ export type Validator_Info_Max_Order_By = { consensus_address?: Maybe; + height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -17250,6 +17494,7 @@ export type Validator_Info_Max_Order_By = { export type Validator_Info_Min_Fields = { __typename?: 'validator_info_min_fields'; consensus_address?: Maybe; + height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -17259,6 +17504,7 @@ export type Validator_Info_Min_Fields = { /** order by min() on columns of table "validator_info" */ export type Validator_Info_Min_Order_By = { consensus_address?: Maybe; + height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -17269,6 +17515,7 @@ export type Validator_Info_Min_Order_By = { export type Validator_Info_Order_By = { account?: Maybe; consensus_address?: Maybe; + height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -17281,6 +17528,8 @@ export enum Validator_Info_Select_Column { /** column name */ ConsensusAddress = 'consensus_address', /** column name */ + Height = 'height', + /** column name */ MaxChangeRate = 'max_change_rate', /** column name */ MaxRate = 'max_rate', @@ -17290,6 +17539,83 @@ export enum Validator_Info_Select_Column { SelfDelegateAddress = 'self_delegate_address' } +/** aggregate stddev on columns */ +export type Validator_Info_Stddev_Fields = { + __typename?: 'validator_info_stddev_fields'; + height?: Maybe; +}; + +/** order by stddev() on columns of table "validator_info" */ +export type Validator_Info_Stddev_Order_By = { + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Validator_Info_Stddev_Pop_Fields = { + __typename?: 'validator_info_stddev_pop_fields'; + height?: Maybe; +}; + +/** order by stddev_pop() on columns of table "validator_info" */ +export type Validator_Info_Stddev_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Validator_Info_Stddev_Samp_Fields = { + __typename?: 'validator_info_stddev_samp_fields'; + height?: Maybe; +}; + +/** order by stddev_samp() on columns of table "validator_info" */ +export type Validator_Info_Stddev_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Validator_Info_Sum_Fields = { + __typename?: 'validator_info_sum_fields'; + height?: Maybe; +}; + +/** order by sum() on columns of table "validator_info" */ +export type Validator_Info_Sum_Order_By = { + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Validator_Info_Var_Pop_Fields = { + __typename?: 'validator_info_var_pop_fields'; + height?: Maybe; +}; + +/** order by var_pop() on columns of table "validator_info" */ +export type Validator_Info_Var_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Validator_Info_Var_Samp_Fields = { + __typename?: 'validator_info_var_samp_fields'; + height?: Maybe; +}; + +/** order by var_samp() on columns of table "validator_info" */ +export type Validator_Info_Var_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Validator_Info_Variance_Fields = { + __typename?: 'validator_info_variance_fields'; + height?: Maybe; +}; + +/** order by variance() on columns of table "validator_info" */ +export type Validator_Info_Variance_Order_By = { + height?: Maybe; +}; + /** aggregate max on columns */ export type Validator_Max_Fields = { __typename?: 'validator_max_fields'; @@ -17618,6 +17944,7 @@ export type Validator_Status = { height: Scalars['bigint']; jailed: Scalars['Boolean']; status: Scalars['Int']; + tombstoned: Scalars['Boolean']; /** An object relationship */ validator: Validator; validator_address: Scalars['String']; @@ -17689,6 +18016,7 @@ export type Validator_Status_Bool_Exp = { height?: Maybe; jailed?: Maybe; status?: Maybe; + tombstoned?: Maybe; validator?: Maybe; validator_address?: Maybe; }; @@ -17728,6 +18056,7 @@ export type Validator_Status_Order_By = { height?: Maybe; jailed?: Maybe; status?: Maybe; + tombstoned?: Maybe; validator?: Maybe; validator_address?: Maybe; }; @@ -17741,6 +18070,8 @@ export enum Validator_Status_Select_Column { /** column name */ Status = 'status', /** column name */ + Tombstoned = 'tombstoned', + /** column name */ ValidatorAddress = 'validator_address' } @@ -18952,10 +19283,7 @@ export type ValidatorDetailsQueryVariables = Exact<{ }>; -export type ValidatorDetailsQuery = { stakingParams: Array<( - { __typename?: 'staking_params' } - & Pick - )>, stakingPool: Array<( +export type ValidatorDetailsQuery = { stakingPool: Array<( { __typename?: 'staking_pool' } & Pick & { bonded: Staking_Pool['bonded_tokens'] } @@ -19006,10 +19334,7 @@ export type ValidatorDetailsQuery = { stakingParams: Array<( export type ValidatorsQueryVariables = Exact<{ [key: string]: never; }>; -export type ValidatorsQuery = { stakingParams: Array<( - { __typename?: 'staking_params' } - & Pick - )>, stakingPool: Array<( +export type ValidatorsQuery = { stakingPool: Array<( { __typename?: 'staking_pool' } & { bondedTokens: Staking_Pool['bonded_tokens'] } )>, validator: Array<( @@ -20172,9 +20497,6 @@ export type ValidatorLastSeenListenerSubscriptionHookResult = ReturnType; export const ValidatorDetailsDocument = gql` query ValidatorDetails($address: String, $utc: timestamp) { - stakingParams: staking_params(limit: 1) { - params - } stakingPool: staking_pool(order_by: {height: desc}, limit: 1, offset: 0) { height bonded: bonded_tokens @@ -20274,9 +20596,6 @@ export type ValidatorDetailsLazyQueryHookResult = ReturnType; export const ValidatorsDocument = gql` query Validators { - stakingParams: staking_params(limit: 1) { - params - } stakingPool: staking_pool(limit: 1, order_by: {height: desc}) { bondedTokens: bonded_tokens } diff --git a/src/graphql/validator_details.graphql b/src/graphql/validator_details.graphql index 9211584e4c..42576c8b0e 100644 --- a/src/graphql/validator_details.graphql +++ b/src/graphql/validator_details.graphql @@ -25,9 +25,6 @@ subscription ValidatorLastSeenListener($address: String) { query ValidatorDetails($address: String, $utc: timestamp) { - stakingParams: staking_params(limit: 1) { - params - } stakingPool: staking_pool(order_by: {height: desc}, limit: 1, offset: 0) { height bonded: bonded_tokens diff --git a/src/graphql/validators.graphql b/src/graphql/validators.graphql index dd2a9f8b45..8ff7c5eefa 100644 --- a/src/graphql/validators.graphql +++ b/src/graphql/validators.graphql @@ -1,7 +1,4 @@ query Validators { - stakingParams: staking_params(limit: 1) { - params - } stakingPool: staking_pool(limit: 1, order_by: {height: desc}) { bondedTokens: bonded_tokens } diff --git a/src/screens/home/components/online_voting_power/__snapshots__/index.test.tsx.snap b/src/screens/home/components/online_voting_power/__snapshots__/index.test.tsx.snap index 55daeb4ab4..61c442fb33 100644 --- a/src/screens/home/components/online_voting_power/__snapshots__/index.test.tsx.snap +++ b/src/screens/home/components/online_voting_power/__snapshots__/index.test.tsx.snap @@ -130,7 +130,7 @@ Array [ / - 254,579 + 254,578,529,800

- 254,579 + 254,578,529,800

diff --git a/src/screens/home/components/online_voting_power/hooks.tsx b/src/screens/home/components/online_voting_power/hooks.tsx index 562b6e707e..5159acebfd 100644 --- a/src/screens/home/components/online_voting_power/hooks.tsx +++ b/src/screens/home/components/online_voting_power/hooks.tsx @@ -6,9 +6,7 @@ import { useOnlineVotingPowerListenerSubscription, OnlineVotingPowerListenerSubscription, TotalVotingPowerListenerSubscription, - useStakingParamsQuery, } from '@graphql/types'; -import { StakingParams } from '@models'; import { chainConfig } from '@configs'; import { formatToken } from '@utils/format_token'; @@ -16,12 +14,10 @@ const initialState: { height: number; votingPower: number; totalVotingPower: number; - denom: string; } = { height: 0, votingPower: 0, totalVotingPower: 0, - denom: chainConfig.primaryTokenUnit, }; export const useOnlineVotingPower = () => { @@ -31,18 +27,6 @@ export const useOnlineVotingPower = () => { setState((prevState) => R.mergeDeepLeft(stateChange, prevState)); }; - // ==================================== - // staking params - // ==================================== - useStakingParamsQuery({ - onCompleted: (data) => { - const stakingParams = StakingParams.fromJson(R.pathOr({}, ['stakingParams', 0, 'params'], data)); - handleSetState({ - denom: stakingParams.bondDenom, - }); - }, - }); - // ==================================== // block voting power // ==================================== @@ -84,7 +68,7 @@ export const useOnlineVotingPower = () => { 0, 'bonded', ], data); - bonded = numeral(formatToken(bonded, state.denom).value).value(); + bonded = numeral(formatToken(bonded, chainConfig.votingPowerTokenUnit).value).value(); return bonded; }; diff --git a/src/screens/validator_details/hooks.ts b/src/screens/validator_details/hooks.ts index 0b24c4d8ea..392c9b065d 100644 --- a/src/screens/validator_details/hooks.ts +++ b/src/screens/validator_details/hooks.ts @@ -21,7 +21,6 @@ import { validatorToDelegatorAddress } from '@recoil/profiles'; import { getValidatorCondition } from '@utils/get_validator_condition'; import { chainConfig } from '@src/configs'; import { - StakingParams, SlashingParams, } from '@models'; import { ValidatorDetailsState } from './types'; @@ -295,14 +294,13 @@ export const useValidatorDetails = () => { ); const selfDelegatePercent = (numeral(R.pathOr(0, ['amount', 'amount'], selfDelegate)).value() / totalDelegations) * 100; - const stakingParams = StakingParams.fromJson(R.pathOr({}, ['stakingParams', 0, 'params'], data)); const votingPower = { self, selfDelegate: selfDelegateAmount, selfDelegatePercent, overall: formatToken( R.pathOr(0, ['stakingPool', 0, 'bonded'], data), - stakingParams.bondDenom, + chainConfig.votingPowerTokenUnit, ), height: R.pathOr(0, ['validatorVotingPowers', 0, 'height'], data.validator[0]), }; diff --git a/src/screens/validators/components/list/hooks.ts b/src/screens/validators/components/list/hooks.ts index e7f2117cc8..cab106c336 100644 --- a/src/screens/validators/components/list/hooks.ts +++ b/src/screens/validators/components/list/hooks.ts @@ -8,10 +8,8 @@ import { } from '@graphql/types'; import { getValidatorCondition } from '@utils/get_validator_condition'; import { formatToken } from '@utils/format_token'; -import { - StakingParams, - SlashingParams, -} from '@models'; +import { SlashingParams } from '@models'; +import { chainConfig } from '@src/configs'; import { ValidatorsState, ItemType, @@ -50,11 +48,10 @@ export const useValidators = () => { // Parse data // ========================== const formatValidators = (data: ValidatorsQuery) => { - const stakingParams = StakingParams.fromJson(R.pathOr({}, ['stakingParams', 0, 'params'], data)); const slashingParams = SlashingParams.fromJson(R.pathOr({}, ['slashingParams', 0, 'params'], data)); const votingPowerOverall = numeral(formatToken( R.pathOr(0, ['stakingPool', 0, 'bondedTokens'], data), - stakingParams.bondDenom, + chainConfig.votingPowerTokenUnit, ).value).value(); const { signedBlockWindow } = slashingParams; From f792beb7f5f8aa2e48f3da7d6fe922a44165ca2c Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Mon, 17 Jan 2022 11:05:23 +0800 Subject: [PATCH 02/54] fixed: dependencies (#665) --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 43c127e5c5..81ea7789b4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9566,9 +9566,9 @@ "dev": true }, "follow-redirects": { - "version": "1.14.4", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.4.tgz", - "integrity": "sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g==" + "version": "1.14.7", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.7.tgz", + "integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==" }, "foreach": { "version": "2.0.5", From 7bd6df75e9c32491a9edda0187e7120df9872fd1 Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Wed, 19 Jan 2022 11:23:31 +0800 Subject: [PATCH 03/54] fix: gql with utc (#669) --- CHANGELOG.md | 1 + src/screens/account_details/hooks.ts | 4 +++- src/screens/validator_details/hooks.ts | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 642aebe02e..ea19677037 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ ## Bug fixes - Fix home page validator image url not displaying correctly ([\#632](https://github.com/forbole/big-dipper-2.0-cosmos/issues/632)) +- Fix validator anc account details possible infinite load due to dayjs in hook ## Migration diff --git a/src/screens/account_details/hooks.ts b/src/screens/account_details/hooks.ts index 44cf51ece9..465c8bdf8f 100644 --- a/src/screens/account_details/hooks.ts +++ b/src/screens/account_details/hooks.ts @@ -71,6 +71,8 @@ const initialState: AccountDetailState = { }, }; +const UTC_NOW = dayjs.utc().format('YYYY-MM-DDTHH:mm:ss'); + export const useAccountDetails = () => { const router = useRouter(); const [state, setState] = useState(initialState); @@ -108,7 +110,7 @@ export const useAccountDetails = () => { useAccountQuery({ variables: { address: R.pathOr('', ['query', 'address'], router), - utc: dayjs.utc().format('YYYY-MM-DDTHH:mm:ss'), + utc: UTC_NOW, }, onCompleted: (data) => { handleSetState(formatAccountQuery(data)); diff --git a/src/screens/validator_details/hooks.ts b/src/screens/validator_details/hooks.ts index 392c9b065d..1051f79a24 100644 --- a/src/screens/validator_details/hooks.ts +++ b/src/screens/validator_details/hooks.ts @@ -80,6 +80,8 @@ const initialState: ValidatorDetailsState = { }, }; +const UTC_NOW = dayjs.utc().format('YYYY-MM-DDTHH:mm:ss'); + export const useValidatorDetails = () => { const router = useRouter(); const [state, setState] = useState(initialState); @@ -118,7 +120,7 @@ export const useValidatorDetails = () => { useValidatorDetailsQuery({ variables: { address: R.pathOr('', ['query', 'address'], router), - utc: dayjs.utc().format('YYYY-MM-DDTHH:mm:ss'), + utc: UTC_NOW, }, onCompleted: (data) => { handleSetState(formatAccountQuery(data)); From 9461c3e8eb5bdec90b08140027356d90d8e63c9c Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Wed, 19 Jan 2022 14:56:35 +0800 Subject: [PATCH 04/54] add: sanitzation (#671) --- CHANGELOG.md | 1 + src/screens/proposals/hooks.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea19677037..14ba3972a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ ## Bug fixes - Fix home page validator image url not displaying correctly ([\#632](https://github.com/forbole/big-dipper-2.0-cosmos/issues/632)) - Fix validator anc account details possible infinite load due to dayjs in hook +- Add description sanitization to proposals list ([\#666](https://github.com/forbole/big-dipper-2.0-cosmos/issues/666)) ## Migration diff --git a/src/screens/proposals/hooks.tsx b/src/screens/proposals/hooks.tsx index 38ad3c591b..7562fa670c 100644 --- a/src/screens/proposals/hooks.tsx +++ b/src/screens/proposals/hooks.tsx @@ -1,5 +1,6 @@ import { useState } from 'react'; import * as R from 'ramda'; +import DOMPurify from 'dompurify'; import { useProposalsQuery, ProposalsQuery, @@ -67,10 +68,11 @@ export const useProposals = () => { const formatProposals = (data: ProposalsQuery) => { return data.proposals.map((x) => { + const description = DOMPurify.sanitize(x.description); return ({ + description, id: x.proposalId, title: x.title, - description: x.description, status: x.status, }); }); From fa15049a9b802a0a149251f15e195ee4186609fe Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Wed, 19 Jan 2022 15:56:01 +0800 Subject: [PATCH 05/54] fix: pagination (#672) --- CHANGELOG.md | 1 + src/hooks/use_pagination.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14ba3972a9..fd4ea1e17b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Fix home page validator image url not displaying correctly ([\#632](https://github.com/forbole/big-dipper-2.0-cosmos/issues/632)) - Fix validator anc account details possible infinite load due to dayjs in hook - Add description sanitization to proposals list ([\#666](https://github.com/forbole/big-dipper-2.0-cosmos/issues/666)) +- Fix pagination hook page callback ([\#667](https://github.com/forbole/big-dipper-2.0-cosmos/issues/667)) ## Migration diff --git a/src/hooks/use_pagination.ts b/src/hooks/use_pagination.ts index 785bdb9957..97b60361d2 100644 --- a/src/hooks/use_pagination.ts +++ b/src/hooks/use_pagination.ts @@ -23,7 +23,7 @@ export const usePagination = (options?:Options) => { ) => { setPage(newPage); if (pageChangeCallback) { - pageChangeCallback(page, rowsPerPage); + pageChangeCallback(newPage, rowsPerPage); } }; From 1f7ade803455e9e665b1a8b843dd48710ea032f6 Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Tue, 25 Jan 2022 12:06:03 +0800 Subject: [PATCH 06/54] update dependencies (#679) --- package-lock.json | 920 ++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 809 insertions(+), 111 deletions(-) diff --git a/package-lock.json b/package-lock.json index 81ea7789b4..152868dae3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -343,6 +343,33 @@ } } }, + "@babel/helper-environment-visitor": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.16.7.tgz", + "integrity": "sha512-SLLb0AAn6PkUeAfKJCCOl9e1R53pQlGAfc4y4XuMRZfqeMYLE0dM1LMhqbGAlGQY0lfw5/ohoYWAe9V1yibRag==", + "dev": true, + "requires": { + "@babel/types": "^7.16.7" + }, + "dependencies": { + "@babel/helper-validator-identifier": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz", + "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==", + "dev": true + }, + "@babel/types": { + "version": "7.16.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.8.tgz", + "integrity": "sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.16.7", + "to-fast-properties": "^2.0.0" + } + } + } + }, "@babel/helper-explode-assignable-expression": { "version": "7.13.0", "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.13.0.tgz", @@ -1148,12 +1175,20 @@ } }, "@babel/plugin-syntax-flow": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.12.13.tgz", - "integrity": "sha512-J/RYxnlSLXZLVR7wTRsozxKT8qbsx1mNKJzXEEjQ0Kjx1ZACcyHgbanNWNCFtc36IzuWhYWPpvJFFoexoOWFmA==", + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.16.7.tgz", + "integrity": "sha512-UDo3YGQO0jH6ytzVwgSLv9i/CzMcUjbKenL67dTrAZPPv6GFAtDhe6jqnvmoKzC/7htNTohhos+onPtDMqJwaQ==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.12.13" + "@babel/helper-plugin-utils": "^7.16.7" + }, + "dependencies": { + "@babel/helper-plugin-utils": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz", + "integrity": "sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA==", + "dev": true + } } }, "@babel/plugin-syntax-import-meta": { @@ -1364,13 +1399,21 @@ } }, "@babel/plugin-transform-flow-strip-types": { - "version": "7.13.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.13.0.tgz", - "integrity": "sha512-EXAGFMJgSX8gxWD7PZtW/P6M+z74jpx3wm/+9pn+c2dOawPpBkUX7BrfyPvo6ZpXbgRIEuwgwDb/MGlKvu2pOg==", + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.16.7.tgz", + "integrity": "sha512-mzmCq3cNsDpZZu9FADYYyfZJIOrSONmHcop2XEKPdBNMa4PDC4eEvcOvzZaCNcjKu72v0XQlA5y1g58aLRXdYg==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.13.0", - "@babel/plugin-syntax-flow": "^7.12.13" + "@babel/helper-plugin-utils": "^7.16.7", + "@babel/plugin-syntax-flow": "^7.16.7" + }, + "dependencies": { + "@babel/helper-plugin-utils": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz", + "integrity": "sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA==", + "dev": true + } } }, "@babel/plugin-transform-for-of": { @@ -2309,21 +2352,59 @@ } }, "@graphql-codegen/typescript": { - "version": "1.21.1", - "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript/-/typescript-1.21.1.tgz", - "integrity": "sha512-JF6Vsu5HSv3dAoS2ca3PFLUN0qVxotex/+BgWw/6SKhtd83MUPnzJ/RU3lACg4vuNTCWeQSeGvg8x5qrw9Go9w==", + "version": "1.23.0", + "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript/-/typescript-1.23.0.tgz", + "integrity": "sha512-ZfFgk5mGfuOy4kEpy+dcuvJMphigMfJ4AkiP1qWmWFufDW3Sg2yayTSNmzeFdcXMrWGgfNW2dKtuuTmbmQhS5g==", "dev": true, "requires": { - "@graphql-codegen/plugin-helpers": "^1.18.3", - "@graphql-codegen/visitor-plugin-common": "^1.19.0", + "@graphql-codegen/plugin-helpers": "^1.18.8", + "@graphql-codegen/visitor-plugin-common": "1.22.0", "auto-bind": "~4.0.0", - "tslib": "~2.1.0" + "tslib": "~2.3.0" }, "dependencies": { + "@graphql-codegen/plugin-helpers": { + "version": "1.18.8", + "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-1.18.8.tgz", + "integrity": "sha512-mb4I9j9lMGqvGggYuZ0CV+Hme08nar68xkpPbAVotg/ZBmlhZIok/HqW2BcMQi7Rj+Il5HQMeQ1wQ1M7sv/TlQ==", + "dev": true, + "requires": { + "@graphql-tools/utils": "^7.9.1", + "common-tags": "1.8.0", + "import-from": "4.0.0", + "lodash": "~4.17.0", + "tslib": "~2.3.0" + } + }, + "@graphql-tools/utils": { + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-7.10.0.tgz", + "integrity": "sha512-d334r6bo9mxdSqZW6zWboEnnOOFRrAPVQJ7LkU8/6grglrbcu6WhwCLzHb90E94JI3TD3ricC3YGbUqIi9Xg0w==", + "dev": true, + "requires": { + "@ardatan/aggregate-error": "0.0.6", + "camel-case": "4.1.2", + "tslib": "~2.2.0" + }, + "dependencies": { + "tslib": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.2.0.tgz", + "integrity": "sha512-gS9GVHRU+RGn5KQM2rllAlR3dU6m7AcpJKdtH8gFvQiC4Otgk98XnmMU+nZenHt/+VhnBPWwgrJsyrdcw6i23w==", + "dev": true + } + } + }, + "import-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/import-from/-/import-from-4.0.0.tgz", + "integrity": "sha512-P9J71vT5nLlDeV8FHs5nNxaLbrpfAV5cF5srvbZfpwpcJoM/xZR3hiv+q+SAnuSmuGbXMWud063iIMx/V/EWZQ==", + "dev": true + }, "tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", "dev": true } } @@ -2371,59 +2452,126 @@ } }, "@graphql-codegen/visitor-plugin-common": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-1.19.1.tgz", - "integrity": "sha512-MJZXe5vXxV6PLOgHhQoz93gnjzJtbnVQXQKqVEcbyB9W8ImoKuTHsEf/eJ6yCL79f7X/2dnOOM84d5Osh1eaKg==", + "version": "1.22.0", + "resolved": "https://registry.npmjs.org/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-1.22.0.tgz", + "integrity": "sha512-2afJGb6d8iuZl9KizYsexPwraEKO1lAvt5eVHNM5Xew4vwz/AUHeqDR2uOeQgVV+27EzjjzSDd47IEdH0dLC2w==", "dev": true, "requires": { - "@graphql-codegen/plugin-helpers": "^1.18.4", + "@graphql-codegen/plugin-helpers": "^1.18.8", "@graphql-tools/optimize": "^1.0.1", - "@graphql-tools/relay-operation-optimizer": "^6", + "@graphql-tools/relay-operation-optimizer": "^6.3.0", "array.prototype.flatmap": "^1.2.4", "auto-bind": "~4.0.0", - "change-case-all": "1.0.12", + "change-case-all": "1.0.14", "dependency-graph": "^0.11.0", "graphql-tag": "^2.11.0", "parse-filepath": "^1.0.2", - "tslib": "~2.1.0" + "tslib": "~2.3.0" }, "dependencies": { + "@graphql-codegen/plugin-helpers": { + "version": "1.18.8", + "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-1.18.8.tgz", + "integrity": "sha512-mb4I9j9lMGqvGggYuZ0CV+Hme08nar68xkpPbAVotg/ZBmlhZIok/HqW2BcMQi7Rj+Il5HQMeQ1wQ1M7sv/TlQ==", + "dev": true, + "requires": { + "@graphql-tools/utils": "^7.9.1", + "common-tags": "1.8.0", + "import-from": "4.0.0", + "lodash": "~4.17.0", + "tslib": "~2.3.0" + } + }, + "@graphql-tools/utils": { + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-7.10.0.tgz", + "integrity": "sha512-d334r6bo9mxdSqZW6zWboEnnOOFRrAPVQJ7LkU8/6grglrbcu6WhwCLzHb90E94JI3TD3ricC3YGbUqIi9Xg0w==", + "dev": true, + "requires": { + "@ardatan/aggregate-error": "0.0.6", + "camel-case": "4.1.2", + "tslib": "~2.2.0" + }, + "dependencies": { + "tslib": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.2.0.tgz", + "integrity": "sha512-gS9GVHRU+RGn5KQM2rllAlR3dU6m7AcpJKdtH8gFvQiC4Otgk98XnmMU+nZenHt/+VhnBPWwgrJsyrdcw6i23w==", + "dev": true + } + } + }, + "change-case-all": { + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.14.tgz", + "integrity": "sha512-CWVm2uT7dmSHdO/z1CXT/n47mWonyypzBbuCy5tN7uMg22BsfkhwT6oHmFCAk+gL1LOOxhdbB9SZz3J1KTY3gA==", + "dev": true, + "requires": { + "change-case": "^4.1.2", + "is-lower-case": "^2.0.2", + "is-upper-case": "^2.0.2", + "lower-case": "^2.0.2", + "lower-case-first": "^2.0.2", + "sponge-case": "^1.0.1", + "swap-case": "^2.0.2", + "title-case": "^3.0.3", + "upper-case": "^2.0.2", + "upper-case-first": "^2.0.2" + } + }, + "import-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/import-from/-/import-from-4.0.0.tgz", + "integrity": "sha512-P9J71vT5nLlDeV8FHs5nNxaLbrpfAV5cF5srvbZfpwpcJoM/xZR3hiv+q+SAnuSmuGbXMWud063iIMx/V/EWZQ==", + "dev": true + }, "tslib": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", - "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", "dev": true } } }, "@graphql-tools/apollo-engine-loader": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/apollo-engine-loader/-/apollo-engine-loader-7.0.3.tgz", - "integrity": "sha512-nOl4Xma8+Pe++Y/K8Zx5xahdmYyehCuW2snEWNhjADSNri+t1S+2VnldEyiSLh6IHGhPfd+/YpSLPw9LCFctyA==", + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/@graphql-tools/apollo-engine-loader/-/apollo-engine-loader-7.2.2.tgz", + "integrity": "sha512-jrtA1IvgbaHzla9nyBngNyvajudTcQAVE3//mgrK+DoN7UpUhtoXfxTOOq2tzZN67o4a6Bv/RJsxB3rSI3NLzg==", "dev": true, "requires": { - "@graphql-tools/utils": "8.1.0", - "cross-fetch": "3.1.4", - "sync-fetch": "0.3.0", + "@graphql-tools/utils": "^8.5.1", + "cross-undici-fetch": "^0.1.19", + "sync-fetch": "0.3.1", "tslib": "~2.3.0" }, "dependencies": { "@graphql-tools/utils": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.1.0.tgz", - "integrity": "sha512-V5a7xAxZ6DHzrYYticmsLgWim+vGnC6ztbiOXrO5cGtOOk5NSK657SZXsyVOR7hNvdWiHSW0dlBZb6zkkfOnHA==", + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.6.1.tgz", + "integrity": "sha512-uxcfHCocp4ENoIiovPxUWZEHOnbXqj3ekWc0rm7fUhW93a1xheARNHcNKhwMTR+UKXVJbTFQdGI1Rl5XdyvDBg==", "dev": true, "requires": { "tslib": "~2.3.0" } }, - "cross-fetch": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.4.tgz", - "integrity": "sha512-1eAtFWdIubi6T4XPy6ei9iUFoKpUkIF971QLN8lIvvvwueI65+Nw5haMNKUwfJxabqlIIDODJKGrQ66gxC0PbQ==", + "buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "sync-fetch": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/sync-fetch/-/sync-fetch-0.3.1.tgz", + "integrity": "sha512-xj5qiCDap/03kpci5a+qc5wSJjc8ZSixgG2EUmH1B8Ea2sfWclQA7eH40hiHPCtkCn6MCk4Wb+dqcXdCy2PP3g==", "dev": true, "requires": { - "node-fetch": "2.6.1" + "buffer": "^5.7.0", + "node-fetch": "^2.6.1" } }, "tslib": { @@ -2610,10 +2758,7 @@ "version": "3.1.4", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.4.tgz", "integrity": "sha512-1eAtFWdIubi6T4XPy6ei9iUFoKpUkIF971QLN8lIvvvwueI65+Nw5haMNKUwfJxabqlIIDODJKGrQ66gxC0PbQ==", - "dev": true, - "requires": { - "node-fetch": "2.6.1" - } + "dev": true }, "tslib": { "version": "2.3.1", @@ -2956,18 +3101,18 @@ } }, "@graphql-tools/optimize": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/optimize/-/optimize-1.0.1.tgz", - "integrity": "sha512-cRlUNsbErYoBtzzS6zXahXeTBZGPVlPHXCpnEZ0XiK/KY/sQL96cyzak0fM/Gk6qEI9/l32MYEICjasiBQrl5w==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/optimize/-/optimize-1.1.1.tgz", + "integrity": "sha512-y0TEfPyGmJaQjnsTRs/UP7/ZHaB3i68VAsXW4H2doUFKY6rIOUz+ruME/uWsfy/VeTWBNqGX8/m/X7YFEi5OJQ==", "dev": true, "requires": { - "tslib": "~2.0.1" + "tslib": "~2.3.0" }, "dependencies": { "tslib": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.3.tgz", - "integrity": "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", "dev": true } } @@ -3088,20 +3233,29 @@ } }, "@graphql-tools/relay-operation-optimizer": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/relay-operation-optimizer/-/relay-operation-optimizer-6.3.0.tgz", - "integrity": "sha512-Or3UgRvkY9Fq1AAx7q38oPqFmTepLz7kp6wDHKyR0ceG7AvHv5En22R12mAeISInbhff4Rpwgf6cE8zHRu6bCw==", + "version": "6.4.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/relay-operation-optimizer/-/relay-operation-optimizer-6.4.1.tgz", + "integrity": "sha512-2b9D5L+31sIBnvmcmIW5tfvNUV+nJFtbHpUyarTRDmFT6EZ2cXo4WZMm9XJcHQD/Z5qvMXfPHxzQ3/JUs4xI+w==", "dev": true, "requires": { - "@graphql-tools/utils": "^7.1.0", - "relay-compiler": "10.1.0", - "tslib": "~2.0.1" + "@graphql-tools/utils": "^8.5.1", + "relay-compiler": "12.0.0", + "tslib": "~2.3.0" }, "dependencies": { + "@graphql-tools/utils": { + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.6.1.tgz", + "integrity": "sha512-uxcfHCocp4ENoIiovPxUWZEHOnbXqj3ekWc0rm7fUhW93a1xheARNHcNKhwMTR+UKXVJbTFQdGI1Rl5XdyvDBg==", + "dev": true, + "requires": { + "tslib": "~2.3.0" + } + }, "tslib": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.3.tgz", - "integrity": "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", "dev": true } } @@ -3187,10 +3341,7 @@ "version": "3.1.4", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.4.tgz", "integrity": "sha512-1eAtFWdIubi6T4XPy6ei9iUFoKpUkIF971QLN8lIvvvwueI65+Nw5haMNKUwfJxabqlIIDODJKGrQ66gxC0PbQ==", - "dev": true, - "requires": { - "node-fetch": "2.6.1" - } + "dev": true }, "tslib": { "version": "2.3.1", @@ -6605,9 +6756,9 @@ } }, "babel-preset-fbjs": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/babel-preset-fbjs/-/babel-preset-fbjs-3.3.0.tgz", - "integrity": "sha512-7QTLTCd2gwB2qGoi5epSULMHugSVgpcVt5YAeiFO9ABLrutDQzKfGwzxgZHLpugq8qMdg/DhRZDZ5CLKxBkEbw==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/babel-preset-fbjs/-/babel-preset-fbjs-3.4.0.tgz", + "integrity": "sha512-9ywCsCvo1ojrw0b+XYk7aFvTH6D9064t0RIL1rtMf3nsa02Xw41MS7sZw216Im35xj/UY0PDBQsa1brUDDF1Ow==", "dev": true, "requires": { "@babel/plugin-proposal-class-properties": "^7.0.0", @@ -7613,6 +7764,14 @@ "dev": true, "requires": { "node-fetch": "2.6.1" + }, + "dependencies": { + "node-fetch": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", + "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==", + "dev": true + } } }, "cross-spawn": { @@ -7626,6 +7785,20 @@ "which": "^2.0.1" } }, + "cross-undici-fetch": { + "version": "0.1.19", + "resolved": "https://registry.npmjs.org/cross-undici-fetch/-/cross-undici-fetch-0.1.19.tgz", + "integrity": "sha512-bNBuesVn09Iy15mAM/hpt97fLWSexblVYpUYa5FjbtLHA7om9w3g1uRGGwrEnmVxy3wouNvZyJwQzAPHXgOrxQ==", + "dev": true, + "requires": { + "abort-controller": "^3.0.0", + "form-data-encoder": "^1.7.1", + "formdata-node": "^4.3.1", + "node-fetch": "^2.6.7", + "undici": "^4.9.3", + "web-streams-polyfill": "^3.2.0" + } + }, "crypto-browserify": { "version": "3.12.0", "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", @@ -9470,9 +9643,9 @@ } }, "fbjs": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-3.0.0.tgz", - "integrity": "sha512-dJd4PiDOFuhe7vk4F80Mba83Vr2QuK86FoxtgPmzBqEJahncp+13YCmfoa53KHCo6OnlXLG7eeMWPfB5CrpVKg==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-3.0.2.tgz", + "integrity": "sha512-qv+boqYndjElAJHNN3NoM8XuwQZ1j2m3kEvTgdle8IDjr6oUbkEpvABWtj/rQl3vq4ew7dnElBxL4YJAwTVqQQ==", "dev": true, "requires": { "cross-fetch": "^3.0.4", @@ -9481,7 +9654,7 @@ "object-assign": "^4.1.0", "promise": "^7.1.1", "setimmediate": "^1.0.5", - "ua-parser-js": "^0.7.18" + "ua-parser-js": "^0.7.30" } }, "fbjs-css-vars": { @@ -9586,6 +9759,30 @@ "mime-types": "^2.1.12" } }, + "form-data-encoder": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.7.1.tgz", + "integrity": "sha512-EFRDrsMm/kyqbTQocNvRXMLjc7Es2Vk+IQFx/YW7hkUH1eBl4J1fqiP34l74Yt0pFLCNpc06fkbVk00008mzjg==", + "dev": true + }, + "formdata-node": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-4.3.2.tgz", + "integrity": "sha512-k7lYJyzDOSL6h917favP8j1L0/wNyylzU+x+1w4p5haGVHNlP58dbpdJhiCUsDbWsa9HwEtLp89obQgXl2e0qg==", + "dev": true, + "requires": { + "node-domexception": "1.0.0", + "web-streams-polyfill": "4.0.0-beta.1" + }, + "dependencies": { + "web-streams-polyfill": { + "version": "4.0.0-beta.1", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.1.tgz", + "integrity": "sha512-3ux37gEX670UUphBF9AMCq8XM6iQ8Ac6A+DSRRjDoRBm1ufCkaCDdNVbaqq60PsEkdNlLKrGtv/YBP4EJXqNtQ==", + "dev": true + } + } + }, "forwarded": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", @@ -10316,6 +10513,15 @@ "resolved": "https://registry.npmjs.org/internmap/-/internmap-1.0.1.tgz", "integrity": "sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==" }, + "invariant": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "dev": true, + "requires": { + "loose-envify": "^1.0.0" + } + }, "ipaddr.js": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", @@ -15571,9 +15777,9 @@ "dev": true }, "nanoid": { - "version": "3.1.30", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.30.tgz", - "integrity": "sha512-zJpuPDwOv8D2zq2WRoMe1HsfZthVewpel9CAvTfc/2mBD1uUT/agc5f7GHGWXlYkFvi1mVxe4IjvP2HNrop7nQ==" + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.2.0.tgz", + "integrity": "sha512-fmsZYa9lpn69Ad5eDn7FMcnnSR+8R34W9qJEijxYhTbfOWzr22n1QxCMzXLK+ODyW2973V3Fux959iQoUxzUIA==" }, "native-url": { "version": "0.3.4", @@ -15692,6 +15898,11 @@ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, + "node-fetch": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", + "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" + }, "raw-body": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.1.tgz", @@ -15738,10 +15949,44 @@ } } }, + "node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "dev": true + }, "node-fetch": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", - "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" + "version": "2.6.7", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", + "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "dev": true, + "requires": { + "whatwg-url": "^5.0.0" + }, + "dependencies": { + "tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=", + "dev": true + }, + "webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=", + "dev": true + }, + "whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", + "dev": true, + "requires": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + } + } }, "node-html-parser": { "version": "1.4.9", @@ -16423,6 +16668,12 @@ "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" }, + "picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, "picomatch": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", @@ -17192,46 +17443,436 @@ } }, "relay-compiler": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/relay-compiler/-/relay-compiler-10.1.0.tgz", - "integrity": "sha512-HPqc3N3tNgEgUH5+lTr5lnLbgnsZMt+MRiyS0uAVNhuPY2It0X1ZJG+9qdA3L9IqKFUNwVn6zTO7RArjMZbARQ==", + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/relay-compiler/-/relay-compiler-12.0.0.tgz", + "integrity": "sha512-SWqeSQZ+AMU/Cr7iZsHi1e78Z7oh00I5SvR092iCJq79aupqJ6Ds+I1Pz/Vzo5uY5PY0jvC4rBJXzlIN5g9boQ==", "dev": true, "requires": { - "@babel/core": "^7.0.0", - "@babel/generator": "^7.5.0", - "@babel/parser": "^7.0.0", + "@babel/core": "^7.14.0", + "@babel/generator": "^7.14.0", + "@babel/parser": "^7.14.0", "@babel/runtime": "^7.0.0", - "@babel/traverse": "^7.0.0", + "@babel/traverse": "^7.14.0", "@babel/types": "^7.0.0", - "babel-preset-fbjs": "^3.3.0", + "babel-preset-fbjs": "^3.4.0", "chalk": "^4.0.0", "fb-watchman": "^2.0.0", "fbjs": "^3.0.0", "glob": "^7.1.1", "immutable": "~3.7.6", + "invariant": "^2.2.4", "nullthrows": "^1.1.1", - "relay-runtime": "10.1.0", + "relay-runtime": "12.0.0", "signedsource": "^1.0.0", "yargs": "^15.3.1" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "@babel/code-frame": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", + "integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==", "dev": true, "requires": { - "color-convert": "^2.0.1" + "@babel/highlight": "^7.16.7" + } + }, + "@babel/compat-data": { + "version": "7.16.8", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.16.8.tgz", + "integrity": "sha512-m7OkX0IdKLKPpBlJtF561YJal5y/jyI5fNfWbPxh2D/nbzzGI4qRyrD8xO2jB24u7l+5I2a43scCG2IrfjC50Q==", + "dev": true + }, + "@babel/core": { + "version": "7.16.12", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.16.12.tgz", + "integrity": "sha512-dK5PtG1uiN2ikk++5OzSYsitZKny4wOCD0nrO4TqnW4BVBTQ2NGS3NgilvT/TEyxTST7LNyWV/T4tXDoD3fOgg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.16.7", + "@babel/generator": "^7.16.8", + "@babel/helper-compilation-targets": "^7.16.7", + "@babel/helper-module-transforms": "^7.16.7", + "@babel/helpers": "^7.16.7", + "@babel/parser": "^7.16.12", + "@babel/template": "^7.16.7", + "@babel/traverse": "^7.16.10", + "@babel/types": "^7.16.8", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.1.2", + "semver": "^6.3.0", + "source-map": "^0.5.0" + }, + "dependencies": { + "@babel/types": { + "version": "7.16.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.8.tgz", + "integrity": "sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.16.7", + "to-fast-properties": "^2.0.0" + } + } + } + }, + "@babel/generator": { + "version": "7.16.8", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.16.8.tgz", + "integrity": "sha512-1ojZwE9+lOXzcWdWmO6TbUzDfqLD39CmEhN8+2cX9XkDo5yW1OpgfejfliysR2AWLpMamTiOiAp/mtroaymhpw==", + "dev": true, + "requires": { + "@babel/types": "^7.16.8", + "jsesc": "^2.5.1", + "source-map": "^0.5.0" + }, + "dependencies": { + "@babel/types": { + "version": "7.16.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.8.tgz", + "integrity": "sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.16.7", + "to-fast-properties": "^2.0.0" + } + } + } + }, + "@babel/helper-compilation-targets": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.7.tgz", + "integrity": "sha512-mGojBwIWcwGD6rfqgRXVlVYmPAv7eOpIemUG3dGnDdCY4Pae70ROij3XmfrH6Fa1h1aiDylpglbZyktfzyo/hA==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.16.4", + "@babel/helper-validator-option": "^7.16.7", + "browserslist": "^4.17.5", + "semver": "^6.3.0" + } + }, + "@babel/helper-function-name": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.16.7.tgz", + "integrity": "sha512-QfDfEnIUyyBSR3HtrtGECuZ6DAyCkYFp7GHl75vFtTnn6pjKeK0T1DB5lLkFvBea8MdaiUABx3osbgLyInoejA==", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "^7.16.7", + "@babel/template": "^7.16.7", + "@babel/types": "^7.16.7" + }, + "dependencies": { + "@babel/types": { + "version": "7.16.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.8.tgz", + "integrity": "sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.16.7", + "to-fast-properties": "^2.0.0" + } + } + } + }, + "@babel/helper-get-function-arity": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.16.7.tgz", + "integrity": "sha512-flc+RLSOBXzNzVhcLu6ujeHUrD6tANAOU5ojrRx/as+tbzf8+stUCj7+IfRRoAbEZqj/ahXEMsjhOhgeZsrnTw==", + "dev": true, + "requires": { + "@babel/types": "^7.16.7" + }, + "dependencies": { + "@babel/types": { + "version": "7.16.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.8.tgz", + "integrity": "sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.16.7", + "to-fast-properties": "^2.0.0" + } + } + } + }, + "@babel/helper-hoist-variables": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz", + "integrity": "sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg==", + "dev": true, + "requires": { + "@babel/types": "^7.16.7" + }, + "dependencies": { + "@babel/types": { + "version": "7.16.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.8.tgz", + "integrity": "sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.16.7", + "to-fast-properties": "^2.0.0" + } + } + } + }, + "@babel/helper-module-imports": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz", + "integrity": "sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==", + "dev": true, + "requires": { + "@babel/types": "^7.16.7" + }, + "dependencies": { + "@babel/types": { + "version": "7.16.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.8.tgz", + "integrity": "sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.16.7", + "to-fast-properties": "^2.0.0" + } + } + } + }, + "@babel/helper-module-transforms": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.16.7.tgz", + "integrity": "sha512-gaqtLDxJEFCeQbYp9aLAefjhkKdjKcdh6DB7jniIGU3Pz52WAmP268zK0VgPz9hUNkMSYeH976K2/Y6yPadpng==", + "dev": true, + "requires": { + "@babel/helper-environment-visitor": "^7.16.7", + "@babel/helper-module-imports": "^7.16.7", + "@babel/helper-simple-access": "^7.16.7", + "@babel/helper-split-export-declaration": "^7.16.7", + "@babel/helper-validator-identifier": "^7.16.7", + "@babel/template": "^7.16.7", + "@babel/traverse": "^7.16.7", + "@babel/types": "^7.16.7" + }, + "dependencies": { + "@babel/types": { + "version": "7.16.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.8.tgz", + "integrity": "sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.16.7", + "to-fast-properties": "^2.0.0" + } + } + } + }, + "@babel/helper-simple-access": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.16.7.tgz", + "integrity": "sha512-ZIzHVyoeLMvXMN/vok/a4LWRy8G2v205mNP0XOuf9XRLyX5/u9CnVulUtDgUTama3lT+bf/UqucuZjqiGuTS1g==", + "dev": true, + "requires": { + "@babel/types": "^7.16.7" + }, + "dependencies": { + "@babel/types": { + "version": "7.16.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.8.tgz", + "integrity": "sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.16.7", + "to-fast-properties": "^2.0.0" + } + } + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz", + "integrity": "sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw==", + "dev": true, + "requires": { + "@babel/types": "^7.16.7" + }, + "dependencies": { + "@babel/types": { + "version": "7.16.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.8.tgz", + "integrity": "sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.16.7", + "to-fast-properties": "^2.0.0" + } + } + } + }, + "@babel/helper-validator-identifier": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz", + "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==", + "dev": true + }, + "@babel/helper-validator-option": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz", + "integrity": "sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ==", + "dev": true + }, + "@babel/helpers": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.16.7.tgz", + "integrity": "sha512-9ZDoqtfY7AuEOt3cxchfii6C7GDyyMBffktR5B2jvWv8u2+efwvpnVKXMWzNehqy68tKgAfSwfdw/lWpthS2bw==", + "dev": true, + "requires": { + "@babel/template": "^7.16.7", + "@babel/traverse": "^7.16.7", + "@babel/types": "^7.16.7" + }, + "dependencies": { + "@babel/types": { + "version": "7.16.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.8.tgz", + "integrity": "sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.16.7", + "to-fast-properties": "^2.0.0" + } + } } }, + "@babel/highlight": { + "version": "7.16.10", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.16.10.tgz", + "integrity": "sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfTBFxdw==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.16.7", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "dependencies": { + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + } + } + }, + "@babel/parser": { + "version": "7.16.12", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.16.12.tgz", + "integrity": "sha512-VfaV15po8RiZssrkPweyvbGVSe4x2y+aciFCgn0n0/SJMR22cwofRV1mtnJQYcSB1wUTaA/X1LnA3es66MCO5A==", + "dev": true + }, + "@babel/template": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz", + "integrity": "sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.16.7", + "@babel/parser": "^7.16.7", + "@babel/types": "^7.16.7" + }, + "dependencies": { + "@babel/types": { + "version": "7.16.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.8.tgz", + "integrity": "sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.16.7", + "to-fast-properties": "^2.0.0" + } + } + } + }, + "@babel/traverse": { + "version": "7.16.10", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.16.10.tgz", + "integrity": "sha512-yzuaYXoRJBGMlBhsMJoUW7G1UmSb/eXr/JHYM/MsOJgavJibLwASijW7oXBdw3NQ6T0bW7Ty5P/VarOs9cHmqw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.16.7", + "@babel/generator": "^7.16.8", + "@babel/helper-environment-visitor": "^7.16.7", + "@babel/helper-function-name": "^7.16.7", + "@babel/helper-hoist-variables": "^7.16.7", + "@babel/helper-split-export-declaration": "^7.16.7", + "@babel/parser": "^7.16.10", + "@babel/types": "^7.16.8", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "dependencies": { + "@babel/types": { + "version": "7.16.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.8.tgz", + "integrity": "sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.16.7", + "to-fast-properties": "^2.0.0" + } + } + } + }, + "browserslist": { + "version": "4.19.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.19.1.tgz", + "integrity": "sha512-u2tbbG5PdKRTUoctO3NBD8FQ5HdPh1ZXPHzp1rwaa5jTc+RV9/+RlWiAIKmjRPQF+xbGM9Kklj5bZQFa2s/38A==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001286", + "electron-to-chromium": "^1.4.17", + "escalade": "^3.1.1", + "node-releases": "^2.0.1", + "picocolors": "^1.0.0" + } + }, + "caniuse-lite": { + "version": "1.0.30001301", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001301.tgz", + "integrity": "sha512-csfD/GpHMqgEL3V3uIgosvh+SVIQvCh43SNu9HRbP1lnxkKm1kjDG4f32PP571JplkLjfS+mg2p1gxR7MYrrIA==", + "dev": true + }, "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, "cliui": { @@ -17260,21 +17901,54 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, + "debug": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", + "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "electron-to-chromium": { + "version": "1.4.52", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.52.tgz", + "integrity": "sha512-JGkh8HEh5PnVrhU4HbpyyO0O791dVY6k7AdqfDeqbcRMeoGxtNHWT77deR2nhvbLe4dKpxjlDEvdEwrvRLGu2Q==", + "dev": true + }, "has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "json5": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", + "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", "dev": true, "requires": { - "has-flag": "^4.0.0" + "minimist": "^1.2.5" } }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node-releases": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.1.tgz", + "integrity": "sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA==", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + }, "wrap-ansi": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", @@ -17284,12 +17958,23 @@ "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + } } }, "y18n": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz", - "integrity": "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", "dev": true }, "yargs": { @@ -17324,13 +18009,14 @@ } }, "relay-runtime": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/relay-runtime/-/relay-runtime-10.1.0.tgz", - "integrity": "sha512-bxznLnQ1ST6APN/cFi7l0FpjbZVchWQjjhj9mAuJBuUqNNCh9uV+UTRhpQF7Q8ycsPp19LHTpVyGhYb0ustuRQ==", + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/relay-runtime/-/relay-runtime-12.0.0.tgz", + "integrity": "sha512-QU6JKr1tMsry22DXNy9Whsq5rmvwr3LSZiiWV/9+DFpuTWvp+WFhobWMc8TC4OjKFfNhEZy7mOiqUAn5atQtug==", "dev": true, "requires": { "@babel/runtime": "^7.0.0", - "fbjs": "^3.0.0" + "fbjs": "^3.0.0", + "invariant": "^2.2.4" } }, "remedial": { @@ -18780,9 +19466,9 @@ "dev": true }, "ua-parser-js": { - "version": "0.7.26", - "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.26.tgz", - "integrity": "sha512-VwIvGlFNmpKbjzRt51jpbbFTrKIEgGHxIwA8Y69K1Bqc6bTIV7TaGGABOkghSFQWsLmcRB4drGvpfv9z2szqoQ==", + "version": "0.7.31", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.31.tgz", + "integrity": "sha512-qLK/Xe9E2uzmYI3qLeOmI0tEOt+TBBQyUIAh4aAgU05FVYzeZrKUdkAZfBNVGRaHVgV0TDkdEngJSw/SyQchkQ==", "dev": true }, "unbox-primitive": { @@ -18811,6 +19497,12 @@ "debug": "^2.2.0" } }, + "undici": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/undici/-/undici-4.12.2.tgz", + "integrity": "sha512-RZj6SbkQFs5O/pJCboGEo6l5DTCe3Zg4r/8Z/0/2qnIv08+s6zL4akohOPMYWKc3mzwv15WTvsfMWaafZcvYoQ==", + "dev": true + }, "unicode-canonical-property-names-ecmascript": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz", @@ -19166,6 +19858,12 @@ "graceful-fs": "^4.1.2" } }, + "web-streams-polyfill": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.0.tgz", + "integrity": "sha512-EqPmREeOzttaLRm5HS7io98goBgZ7IVz79aDvqjD0kYXLtFZTc0T/U6wHTPKyIjb+MdN7DFIIX6hgdBEpWmfPA==", + "dev": true + }, "webidl-conversions": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", From 266ee15564dd528a87d8c11f2ff778a0293020d1 Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Tue, 25 Jan 2022 15:01:53 +0800 Subject: [PATCH 07/54] 668/fix avatar name (#680) --- CHANGELOG.md | 3 ++- src/recoil/profiles/selectors.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd4ea1e17b..0d9edd9256 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# Unreleased +# base-v1.10.0 - 2021-01-25 ## Changes - Optimized initial loading by setting basic details first then profiles after ([\#629](https://github.com/forbole/big-dipper-2.0-cosmos/issues/629)) @@ -9,6 +9,7 @@ - Fix validator anc account details possible infinite load due to dayjs in hook - Add description sanitization to proposals list ([\#666](https://github.com/forbole/big-dipper-2.0-cosmos/issues/666)) - Fix pagination hook page callback ([\#667](https://github.com/forbole/big-dipper-2.0-cosmos/issues/667)) +- Show address if name or moniker is empty ([\#668](https://github.com/forbole/big-dipper-2.0-cosmos/issues/668)) ## Migration diff --git a/src/recoil/profiles/selectors.ts b/src/recoil/profiles/selectors.ts index bf6e10fbf4..b38b911a7a 100644 --- a/src/recoil/profiles/selectors.ts +++ b/src/recoil/profiles/selectors.ts @@ -80,7 +80,7 @@ const getProfile = (address: string) => ({ get }): AvatarName => { const imageUrl = R.pathOr('', ['imageUrl'], state); return ({ address: returnAddress, - name, + name: name.length ? name : address, imageUrl, }); }; @@ -98,7 +98,7 @@ const getProfiles = (addresses: string[]) => ({ get }): AvatarName[] => { const imageUrl = R.pathOr('', ['imageUrl'], state); return ({ address: returnAddress, - name, + name: name.length ? name : x, imageUrl, }); }); From a5ee796570e31b1df0346b41cda1544f1db92f3d Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Tue, 25 Jan 2022 19:56:20 +0800 Subject: [PATCH 08/54] update: tag (#681) --- src/configs/general_config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configs/general_config.json b/src/configs/general_config.json index 404ca1e7d1..b4c12792ed 100644 --- a/src/configs/general_config.json +++ b/src/configs/general_config.json @@ -6,5 +6,5 @@ "github": { "reportIssue": "https://github.com/forbole/big-dipper-2.0-cosmos/issues" }, - "version": "base-v1.9.0" + "version": "base-v1.10.0" } From d030d5445778b528bb3f8bb8fd9d60e9f8e8bb08 Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Mon, 7 Feb 2022 11:55:49 +0800 Subject: [PATCH 09/54] 2.0 release --- CHANGELOG.md | 9 + public/locales/en/accounts.json | 3 +- public/locales/en/validators.json | 3 +- src/configs/general_config.json | 2 +- src/graphql/account.graphql | 96 +- src/graphql/types.tsx | 20104 ++++++---------- src/graphql/validator_details.graphql | 46 +- src/graphql/validators.graphql | 4 - .../__snapshots__/index.test.tsx.snap | 109 +- .../delegations/components/desktop/index.tsx | 15 - .../delegations/components/desktop/styles.ts | 31 - .../delegations/components/desktop/utils.ts | 9 - .../delegations/components/mobile/index.tsx | 64 +- .../staking/components/delegations/index.tsx | 61 +- .../staking/components/delegations/types.ts | 2 +- .../components/desktop/index.tsx | 53 +- .../components/desktop/styles.ts | 27 + .../redelegations/components/desktop/utils.ts | 6 +- .../redelegations/components/mobile/index.tsx | 62 +- .../components/redelegations/index.tsx | 64 +- .../staking/components/redelegations/types.ts | 2 +- .../unbondings/components/desktop/index.tsx | 58 +- .../unbondings/components/desktop/styles.ts | 27 + .../unbondings/components/desktop/utils.ts | 13 +- .../unbondings/components/mobile/index.tsx | 48 +- .../staking/components/unbondings/index.tsx | 58 +- .../staking/components/unbondings/types.ts | 2 +- .../components/staking/hooks.tsx | 253 +- .../components/staking/index.tsx | 43 +- .../components/staking/types.ts | 41 + .../components/staking/utils.tsx | 35 - src/screens/account_details/hooks.ts | 218 +- src/screens/account_details/index.test.tsx | 124 +- src/screens/account_details/index.tsx | 4 +- src/screens/account_details/types.ts | 41 +- .../home/components/tokenomics/index.tsx | 5 +- .../delegations/components/desktop/index.tsx | 25 +- .../delegations/components/desktop/utils.ts | 4 +- .../delegations/components/mobile/index.tsx | 16 +- .../delegations/components/mobile/styles.ts | 15 + .../staking/components/delegations/index.tsx | 67 +- .../staking/components/delegations/types.ts | 4 +- .../components/staking/components/index.ts | 4 +- .../components/desktop/index.tsx | 74 +- .../components/desktop/styles.ts | 27 + .../redelegations/components/desktop/utils.ts | 14 +- .../redelegations/components/mobile/index.tsx | 88 +- .../components/redelegations/index.tsx | 71 +- .../staking/components/redelegations/types.ts | 8 +- .../tabs/__snapshots__/index.test.tsx.snap | 2 +- .../staking/components/tabs/index.tsx | 2 +- .../unbondings/components/desktop/index.tsx | 131 + .../unbondings/components/desktop/styles.ts | 27 + .../components/desktop/utils.ts | 8 +- .../components/index.ts | 0 .../components/mobile/index.tsx | 68 +- .../components/mobile/styles.ts | 0 .../staking/components/unbondings/index.tsx | 73 + .../{undelegations => unbondings}/styles.tsx | 0 .../staking/components/unbondings/types.ts | 3 + .../components/desktop/index.tsx | 86 - .../components/undelegations/index.tsx | 73 - .../staking/components/undelegations/types.ts | 3 - .../components/staking/hooks.tsx | 249 +- .../components/staking/index.tsx | 47 +- .../components/staking/types.ts | 40 + .../components/staking/utils.tsx | 35 - .../components/voting_power/index.tsx | 10 +- src/screens/validator_details/hooks.ts | 109 +- src/screens/validator_details/index.tsx | 6 - src/screens/validator_details/types.ts | 33 - .../list/components/desktop/index.tsx | 2 - .../list/components/desktop/utils.tsx | 22 +- .../component/single_validator/index.tsx | 27 +- .../list/components/mobile/index.tsx | 2 - .../validators/components/list/hooks.ts | 14 - .../validators/components/list/types.ts | 2 - src/utils/get_denom.ts | 2 +- src/utils/prefix_convert.ts | 10 + 79 files changed, 9153 insertions(+), 14092 deletions(-) delete mode 100644 src/screens/account_details/components/staking/components/delegations/components/desktop/styles.ts create mode 100644 src/screens/account_details/components/staking/components/redelegations/components/desktop/styles.ts create mode 100644 src/screens/account_details/components/staking/components/unbondings/components/desktop/styles.ts create mode 100644 src/screens/account_details/components/staking/types.ts delete mode 100644 src/screens/account_details/components/staking/utils.tsx create mode 100644 src/screens/validator_details/components/staking/components/redelegations/components/desktop/styles.ts create mode 100644 src/screens/validator_details/components/staking/components/unbondings/components/desktop/index.tsx create mode 100644 src/screens/validator_details/components/staking/components/unbondings/components/desktop/styles.ts rename src/screens/validator_details/components/staking/components/{undelegations => unbondings}/components/desktop/utils.ts (76%) rename src/screens/validator_details/components/staking/components/{undelegations => unbondings}/components/index.ts (100%) rename src/screens/validator_details/components/staking/components/{undelegations => unbondings}/components/mobile/index.tsx (50%) rename src/screens/validator_details/components/staking/components/{undelegations => unbondings}/components/mobile/styles.ts (100%) create mode 100644 src/screens/validator_details/components/staking/components/unbondings/index.tsx rename src/screens/validator_details/components/staking/components/{undelegations => unbondings}/styles.tsx (100%) create mode 100644 src/screens/validator_details/components/staking/components/unbondings/types.ts delete mode 100644 src/screens/validator_details/components/staking/components/undelegations/components/desktop/index.tsx delete mode 100644 src/screens/validator_details/components/staking/components/undelegations/index.tsx delete mode 100644 src/screens/validator_details/components/staking/components/undelegations/types.ts create mode 100644 src/screens/validator_details/components/staking/types.ts delete mode 100644 src/screens/validator_details/components/staking/utils.tsx create mode 100644 src/utils/prefix_convert.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d9edd9256..6d4d82e36b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +# base-v2.0.0 - 2021-02-07 + +## Changes +- Updated Hasura Actions + +## Migration + +- Will add formal migration docs later but do not use this tag if your [bdjuno](https://github.com/forbole/bdjuno) is not at least `v1.0.0` + # base-v1.10.0 - 2021-01-25 ## Changes diff --git a/public/locales/en/accounts.json b/public/locales/en/accounts.json index 3d110f6892..78c6eb6f31 100644 --- a/public/locales/en/accounts.json +++ b/public/locales/en/accounts.json @@ -32,5 +32,6 @@ "identifier": "Identifier", "creationTime": "Creation Time", "bio": "Bio", - "status": "Status" + "status": "Status", + "completionTime": "Completion Time" } diff --git a/public/locales/en/validators.json b/public/locales/en/validators.json index 5e9085e03d..aa29a0a883 100644 --- a/public/locales/en/validators.json +++ b/public/locales/en/validators.json @@ -56,5 +56,6 @@ "lastSeen": "Last Seen", "status": "Status", "votingPowerExplanation": "As the top 34% voting power can easily <0>decrease network security and <0>halt the network they will be highlighted differently in order to educate and encourage decentralization", - "tombstoned": "Tombstoned" + "tombstoned": "Tombstoned", + "votingPowerPercent": "Voting Power %" } diff --git a/src/configs/general_config.json b/src/configs/general_config.json index b4c12792ed..dddaf30618 100644 --- a/src/configs/general_config.json +++ b/src/configs/general_config.json @@ -6,5 +6,5 @@ "github": { "reportIssue": "https://github.com/forbole/big-dipper-2.0-cosmos/issues" }, - "version": "base-v1.10.0" + "version": "base-v2.0.0" } diff --git a/src/graphql/account.graphql b/src/graphql/account.graphql index 50ae813267..b5538001c7 100644 --- a/src/graphql/account.graphql +++ b/src/graphql/account.graphql @@ -1,61 +1,43 @@ -query Account($address: String, $utc: timestamp) { - stakingParams: staking_params(limit: 1) { - params + +query Account($address: String!, $validatorAddress: String!) { + commission: action_validator_commission_amount(address: $validatorAddress) { + coins } - account(where: {address: {_eq: $address}}) { + withdrawalAddress: action_delegator_withdraw_address(address: $address) { address - accountBalances: account_balances(limit: 1, order_by: {height: desc}) { - coins - } - delegations { - amount - validator { - validatorInfo: validator_info { - operatorAddress: operator_address - } - validatorCommissions: validator_commissions(limit: 1, order_by: {height: desc}) { - commission - } - validatorStatuses: validator_statuses (limit: 1, order_by: {height: desc}) { - status - jailed - } - validatorSigningInfos: validator_signing_infos(order_by: {height: desc}, limit: 1) { - tombstoned - } - } - } - unbonding: unbonding_delegations(where: {completion_timestamp: {_gt: $utc}}) { - amount - completionTimestamp: completion_timestamp - validator { - validatorCommissions: validator_commissions(limit: 1, order_by: {height: desc}) { - commission - } - validatorInfo: validator_info { - operatorAddress: operator_address - } - } - } - redelegations(where: {completion_time: {_gt: $utc}}) { - amount - completionTime: completion_time - from: src_validator_address - to: dst_validator_address - } - delegationRewards: delegation_rewards { - amount - withdrawAddress: withdraw_address - validator { - validatorInfo: validator_info { - operatorAddress: operator_address - } - } - } - } - validator: validator(limit: 1, where: {validator_info: {self_delegate_address: {_eq: $address}}}) { - commission: validator_commission_amounts(limit: 1, order_by: {height: desc}) { - amount - } + } + accountBalances: action_account_balance(address: $address) { + coins + } + delegationBalance: action_delegation_total(address: $address) { + coins + } + unbondingBalance: action_unbonding_delegation_total(address: $address) { + coins + } + delegationRewards: action_delegation_reward(address: $address) { + validatorAddress: validator_address + coins + } +} + +query AccountDelegations($address: String!, $offset: Int = 0, $limit: Int = 10) { + delegations: action_delegation(address: $address, limit: $limit, offset: $offset, count_total: true){ + delegations + pagination + } +} + +query AccountRedelegations($address: String!, $offset: Int = 0, $limit: Int = 10) { + redelegations: action_redelegation(address: $address, limit: $limit, offset: $offset, count_total: true){ + redelegations + pagination + } +} + +query AccountUndelegations($address: String!, $offset: Int = 0, $limit: Int = 10) { + undelegations: action_unbonding_delegation(address: $address, limit: $limit, offset: $offset, count_total: true){ + undelegations: unbonding_delegations + pagination } } diff --git a/src/graphql/types.tsx b/src/graphql/types.tsx index b7494b37bb..b8560e3f3a 100644 --- a/src/graphql/types.tsx +++ b/src/graphql/types.tsx @@ -12,6 +12,11 @@ export type Scalars = { Boolean: boolean; Int: number; Float: number; + ActionCoin: any; + ActionDelegation: any; + ActionPagination: any; + ActionRedelegation: any; + ActionUnbondingDelegation: any; _coin: any; _dec_coin: any; _text: any; @@ -24,6 +29,50 @@ export type Scalars = { }; +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>>; +}; + /** Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'. */ export type Boolean_Comparison_Exp = { _eq?: Maybe; @@ -597,6 +646,7 @@ export type Account_Balance_History_Order_By = { redelegating?: Maybe; reward?: Maybe; timestamp?: Maybe; + token_prices_history_aggregate?: Maybe; unbonding?: Maybe; }; @@ -653,6 +703,7 @@ export type Account_Balance_Order_By = { block?: Maybe; coins?: Maybe; height?: Maybe; + tokens_prices_aggregate?: Maybe; }; /** select columns of table "account_balance" */ @@ -795,676 +846,471 @@ export enum Account_Select_Column { Address = 'address' } -/** columns and relationships of "application_link" */ -export type Application_Link = { - __typename?: 'application_link'; - application: Scalars['String']; - /** An array relationship */ - application_link_oracle_requests: Array; - /** An aggregate relationship */ - application_link_oracle_requests_aggregate: Application_Link_Oracle_Request_Aggregate; - creation_time: Scalars['timestamp']; +/** 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']; - id: Scalars['Int']; - /** An object relationship */ - profile: Profile; - result?: Maybe; - state: Scalars['String']; - user_address: Scalars['String']; - username: Scalars['String']; }; - -/** columns and relationships of "application_link" */ -export type Application_LinkApplication_Link_Oracle_RequestsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregated selection of "average_block_time_from_genesis" */ +export type Average_Block_Time_From_Genesis_Aggregate = { + __typename?: 'average_block_time_from_genesis_aggregate'; + aggregate?: Maybe; + nodes: Array; }; - -/** columns and relationships of "application_link" */ -export type Application_LinkApplication_Link_Oracle_Requests_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate fields of "average_block_time_from_genesis" */ +export type Average_Block_Time_From_Genesis_Aggregate_Fields = { + __typename?: 'average_block_time_from_genesis_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; }; -/** columns and relationships of "application_link" */ -export type Application_LinkResultArgs = { - path?: Maybe; +/** aggregate fields of "average_block_time_from_genesis" */ +export type Average_Block_Time_From_Genesis_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; -/** aggregated selection of "application_link" */ -export type Application_Link_Aggregate = { - __typename?: 'application_link_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregate avg on columns */ +export type Average_Block_Time_From_Genesis_Avg_Fields = { + __typename?: 'average_block_time_from_genesis_avg_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** aggregate fields of "application_link" */ -export type Application_Link_Aggregate_Fields = { - __typename?: 'application_link_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; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + average_time?: Maybe; + height?: Maybe; }; +/** aggregate max on columns */ +export type Average_Block_Time_From_Genesis_Max_Fields = { + __typename?: 'average_block_time_from_genesis_max_fields'; + average_time?: Maybe; + height?: Maybe; +}; -/** aggregate fields of "application_link" */ -export type Application_Link_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** aggregate min on columns */ +export type Average_Block_Time_From_Genesis_Min_Fields = { + __typename?: 'average_block_time_from_genesis_min_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** order by aggregate values of table "application_link" */ -export type Application_Link_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; +/** Ordering options when selecting data from "average_block_time_from_genesis". */ +export type Average_Block_Time_From_Genesis_Order_By = { + average_time?: Maybe; + height?: Maybe; }; -/** aggregate avg on columns */ -export type Application_Link_Avg_Fields = { - __typename?: 'application_link_avg_fields'; +/** 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' +} + +/** aggregate stddev on columns */ +export type Average_Block_Time_From_Genesis_Stddev_Fields = { + __typename?: 'average_block_time_from_genesis_stddev_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; }; -/** order by avg() on columns of table "application_link" */ -export type Application_Link_Avg_Order_By = { - height?: Maybe; - id?: Maybe; +/** aggregate stddev_pop on columns */ +export type Average_Block_Time_From_Genesis_Stddev_Pop_Fields = { + __typename?: 'average_block_time_from_genesis_stddev_pop_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** Boolean expression to filter rows from the table "application_link". All fields are combined with a logical 'AND'. */ -export type Application_Link_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - application?: Maybe; - application_link_oracle_requests?: Maybe; - creation_time?: Maybe; - height?: Maybe; - id?: Maybe; - profile?: Maybe; - result?: Maybe; - state?: Maybe; - user_address?: Maybe; - username?: Maybe; +/** aggregate stddev_samp on columns */ +export type Average_Block_Time_From_Genesis_Stddev_Samp_Fields = { + __typename?: 'average_block_time_from_genesis_stddev_samp_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** aggregate max on columns */ -export type Application_Link_Max_Fields = { - __typename?: 'application_link_max_fields'; - application?: Maybe; - creation_time?: Maybe; +/** aggregate sum on columns */ +export type Average_Block_Time_From_Genesis_Sum_Fields = { + __typename?: 'average_block_time_from_genesis_sum_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - state?: Maybe; - user_address?: Maybe; - username?: Maybe; }; -/** order by max() on columns of table "application_link" */ -export type Application_Link_Max_Order_By = { - application?: Maybe; - creation_time?: Maybe; - height?: Maybe; - id?: Maybe; - state?: Maybe; - user_address?: Maybe; - username?: Maybe; +/** aggregate var_pop on columns */ +export type Average_Block_Time_From_Genesis_Var_Pop_Fields = { + __typename?: 'average_block_time_from_genesis_var_pop_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** aggregate min on columns */ -export type Application_Link_Min_Fields = { - __typename?: 'application_link_min_fields'; - application?: Maybe; - creation_time?: Maybe; - height?: Maybe; - id?: Maybe; - state?: Maybe; - user_address?: Maybe; - username?: Maybe; +/** aggregate var_samp on columns */ +export type Average_Block_Time_From_Genesis_Var_Samp_Fields = { + __typename?: 'average_block_time_from_genesis_var_samp_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** order by min() on columns of table "application_link" */ -export type Application_Link_Min_Order_By = { - application?: Maybe; - creation_time?: Maybe; - height?: Maybe; - id?: Maybe; - state?: Maybe; - user_address?: Maybe; - username?: Maybe; +/** aggregate variance on columns */ +export type Average_Block_Time_From_Genesis_Variance_Fields = { + __typename?: 'average_block_time_from_genesis_variance_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** columns and relationships of "application_link_oracle_request" */ -export type Application_Link_Oracle_Request = { - __typename?: 'application_link_oracle_request'; - /** An object relationship */ - application_link: Application_Link; - application_link_id: Scalars['bigint']; - call_data: Scalars['jsonb']; - client_id: Scalars['String']; +/** 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']; - id: Scalars['Int']; - request_id: Scalars['bigint']; - script_id: Scalars['bigint']; -}; - - -/** columns and relationships of "application_link_oracle_request" */ -export type Application_Link_Oracle_RequestCall_DataArgs = { - path?: Maybe; }; -/** aggregated selection of "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Aggregate = { - __typename?: 'application_link_oracle_request_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "average_block_time_per_day" */ +export type Average_Block_Time_Per_Day_Aggregate = { + __typename?: 'average_block_time_per_day_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Aggregate_Fields = { - __typename?: 'application_link_oracle_request_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "average_block_time_per_day" */ +export type Average_Block_Time_Per_Day_Aggregate_Fields = { + __typename?: 'average_block_time_per_day_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; + 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 "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "average_block_time_per_day" */ +export type Average_Block_Time_Per_Day_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - /** aggregate avg on columns */ -export type Application_Link_Oracle_Request_Avg_Fields = { - __typename?: 'application_link_oracle_request_avg_fields'; - application_link_id?: Maybe; +export type Average_Block_Time_Per_Day_Avg_Fields = { + __typename?: 'average_block_time_per_day_avg_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; -/** order by avg() on columns of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Avg_Order_By = { - application_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; -}; - -/** Boolean expression to filter rows from the table "application_link_oracle_request". All fields are combined with a logical 'AND'. */ -export type Application_Link_Oracle_Request_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - application_link?: Maybe; - application_link_id?: Maybe; - call_data?: Maybe; - client_id?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; /** aggregate max on columns */ -export type Application_Link_Oracle_Request_Max_Fields = { - __typename?: 'application_link_oracle_request_max_fields'; - application_link_id?: Maybe; - client_id?: Maybe; +export type Average_Block_Time_Per_Day_Max_Fields = { + __typename?: 'average_block_time_per_day_max_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; -}; - -/** order by max() on columns of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Max_Order_By = { - application_link_id?: Maybe; - client_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; /** aggregate min on columns */ -export type Application_Link_Oracle_Request_Min_Fields = { - __typename?: 'application_link_oracle_request_min_fields'; - application_link_id?: Maybe; - client_id?: Maybe; +export type Average_Block_Time_Per_Day_Min_Fields = { + __typename?: 'average_block_time_per_day_min_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; -}; - -/** order by min() on columns of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Min_Order_By = { - application_link_id?: Maybe; - client_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; -/** Ordering options when selecting data from "application_link_oracle_request". */ -export type Application_Link_Oracle_Request_Order_By = { - application_link?: Maybe; - application_link_id?: Maybe; - call_data?: Maybe; - client_id?: Maybe; +/** Ordering options when selecting data from "average_block_time_per_day". */ +export type Average_Block_Time_Per_Day_Order_By = { + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; -/** select columns of table "application_link_oracle_request" */ -export enum Application_Link_Oracle_Request_Select_Column { - /** column name */ - ApplicationLinkId = 'application_link_id', - /** column name */ - CallData = 'call_data', - /** column name */ - ClientId = 'client_id', - /** column name */ - Height = 'height', - /** column name */ - Id = 'id', +/** select columns of table "average_block_time_per_day" */ +export enum Average_Block_Time_Per_Day_Select_Column { /** column name */ - RequestId = 'request_id', + AverageTime = 'average_time', /** column name */ - ScriptId = 'script_id' + Height = 'height' } /** aggregate stddev on columns */ -export type Application_Link_Oracle_Request_Stddev_Fields = { - __typename?: 'application_link_oracle_request_stddev_fields'; - application_link_id?: Maybe; +export type Average_Block_Time_Per_Day_Stddev_Fields = { + __typename?: 'average_block_time_per_day_stddev_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; -}; - -/** order by stddev() on columns of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Stddev_Order_By = { - application_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Application_Link_Oracle_Request_Stddev_Pop_Fields = { - __typename?: 'application_link_oracle_request_stddev_pop_fields'; - application_link_id?: Maybe; +export type Average_Block_Time_Per_Day_Stddev_Pop_Fields = { + __typename?: 'average_block_time_per_day_stddev_pop_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; -}; - -/** order by stddev_pop() on columns of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Stddev_Pop_Order_By = { - application_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Application_Link_Oracle_Request_Stddev_Samp_Fields = { - __typename?: 'application_link_oracle_request_stddev_samp_fields'; - application_link_id?: Maybe; +export type Average_Block_Time_Per_Day_Stddev_Samp_Fields = { + __typename?: 'average_block_time_per_day_stddev_samp_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; -}; - -/** order by stddev_samp() on columns of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Stddev_Samp_Order_By = { - application_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; /** aggregate sum on columns */ -export type Application_Link_Oracle_Request_Sum_Fields = { - __typename?: 'application_link_oracle_request_sum_fields'; - application_link_id?: Maybe; +export type Average_Block_Time_Per_Day_Sum_Fields = { + __typename?: 'average_block_time_per_day_sum_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; -}; - -/** order by sum() on columns of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Sum_Order_By = { - application_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; /** aggregate var_pop on columns */ -export type Application_Link_Oracle_Request_Var_Pop_Fields = { - __typename?: 'application_link_oracle_request_var_pop_fields'; - application_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; +export type Average_Block_Time_Per_Day_Var_Pop_Fields = { + __typename?: 'average_block_time_per_day_var_pop_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** order by var_pop() on columns of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Var_Pop_Order_By = { - application_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; +/** aggregate var_samp on columns */ +export type Average_Block_Time_Per_Day_Var_Samp_Fields = { + __typename?: 'average_block_time_per_day_var_samp_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** aggregate var_samp on columns */ -export type Application_Link_Oracle_Request_Var_Samp_Fields = { - __typename?: 'application_link_oracle_request_var_samp_fields'; - application_link_id?: Maybe; +/** aggregate variance on columns */ +export type Average_Block_Time_Per_Day_Variance_Fields = { + __typename?: 'average_block_time_per_day_variance_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; -/** order by var_samp() on columns of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Var_Samp_Order_By = { - application_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; +/** 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']; }; -/** aggregate variance on columns */ -export type Application_Link_Oracle_Request_Variance_Fields = { - __typename?: 'application_link_oracle_request_variance_fields'; - application_link_id?: Maybe; +/** aggregated selection of "average_block_time_per_hour" */ +export type Average_Block_Time_Per_Hour_Aggregate = { + __typename?: 'average_block_time_per_hour_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "average_block_time_per_hour" */ +export type Average_Block_Time_Per_Hour_Aggregate_Fields = { + __typename?: 'average_block_time_per_hour_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 "average_block_time_per_hour" */ +export type Average_Block_Time_Per_Hour_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Average_Block_Time_Per_Hour_Avg_Fields = { + __typename?: 'average_block_time_per_hour_avg_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; -/** order by variance() on columns of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Variance_Order_By = { - application_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate max on columns */ +export type Average_Block_Time_Per_Hour_Max_Fields = { + __typename?: 'average_block_time_per_hour_max_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate min on columns */ +export type Average_Block_Time_Per_Hour_Min_Fields = { + __typename?: 'average_block_time_per_hour_min_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** Ordering options when selecting data from "application_link". */ -export type Application_Link_Order_By = { - application?: Maybe; - application_link_oracle_requests_aggregate?: Maybe; - creation_time?: Maybe; +/** Ordering options when selecting data from "average_block_time_per_hour". */ +export type Average_Block_Time_Per_Hour_Order_By = { + average_time?: Maybe; height?: Maybe; - id?: Maybe; - profile?: Maybe; - result?: Maybe; - state?: Maybe; - user_address?: Maybe; - username?: Maybe; }; -/** select columns of table "application_link" */ -export enum Application_Link_Select_Column { - /** column name */ - Application = 'application', - /** column name */ - CreationTime = 'creation_time', - /** column name */ - Height = 'height', - /** column name */ - Id = 'id', - /** column name */ - Result = 'result', - /** column name */ - State = 'state', +/** select columns of table "average_block_time_per_hour" */ +export enum Average_Block_Time_Per_Hour_Select_Column { /** column name */ - UserAddress = 'user_address', + AverageTime = 'average_time', /** column name */ - Username = 'username' + Height = 'height' } /** aggregate stddev on columns */ -export type Application_Link_Stddev_Fields = { - __typename?: 'application_link_stddev_fields'; +export type Average_Block_Time_Per_Hour_Stddev_Fields = { + __typename?: 'average_block_time_per_hour_stddev_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; -}; - -/** order by stddev() on columns of table "application_link" */ -export type Application_Link_Stddev_Order_By = { - height?: Maybe; - id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Application_Link_Stddev_Pop_Fields = { - __typename?: 'application_link_stddev_pop_fields'; +export type Average_Block_Time_Per_Hour_Stddev_Pop_Fields = { + __typename?: 'average_block_time_per_hour_stddev_pop_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; -}; - -/** order by stddev_pop() on columns of table "application_link" */ -export type Application_Link_Stddev_Pop_Order_By = { - height?: Maybe; - id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Application_Link_Stddev_Samp_Fields = { - __typename?: 'application_link_stddev_samp_fields'; +export type Average_Block_Time_Per_Hour_Stddev_Samp_Fields = { + __typename?: 'average_block_time_per_hour_stddev_samp_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; -}; - -/** order by stddev_samp() on columns of table "application_link" */ -export type Application_Link_Stddev_Samp_Order_By = { - height?: Maybe; - id?: Maybe; }; /** aggregate sum on columns */ -export type Application_Link_Sum_Fields = { - __typename?: 'application_link_sum_fields'; +export type Average_Block_Time_Per_Hour_Sum_Fields = { + __typename?: 'average_block_time_per_hour_sum_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; -}; - -/** order by sum() on columns of table "application_link" */ -export type Application_Link_Sum_Order_By = { - height?: Maybe; - id?: Maybe; }; /** aggregate var_pop on columns */ -export type Application_Link_Var_Pop_Fields = { - __typename?: 'application_link_var_pop_fields'; +export type Average_Block_Time_Per_Hour_Var_Pop_Fields = { + __typename?: 'average_block_time_per_hour_var_pop_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; -}; - -/** order by var_pop() on columns of table "application_link" */ -export type Application_Link_Var_Pop_Order_By = { - height?: Maybe; - id?: Maybe; }; /** aggregate var_samp on columns */ -export type Application_Link_Var_Samp_Fields = { - __typename?: 'application_link_var_samp_fields'; +export type Average_Block_Time_Per_Hour_Var_Samp_Fields = { + __typename?: 'average_block_time_per_hour_var_samp_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; -}; - -/** order by var_samp() on columns of table "application_link" */ -export type Application_Link_Var_Samp_Order_By = { - height?: Maybe; - id?: Maybe; }; /** aggregate variance on columns */ -export type Application_Link_Variance_Fields = { - __typename?: 'application_link_variance_fields'; +export type Average_Block_Time_Per_Hour_Variance_Fields = { + __typename?: 'average_block_time_per_hour_variance_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; }; -/** order by variance() on columns of table "application_link" */ -export type Application_Link_Variance_Order_By = { - height?: Maybe; - id?: Maybe; -}; - -/** columns and relationships of "average_block_time_from_genesis" */ -export type Average_Block_Time_From_Genesis = { - __typename?: 'average_block_time_from_genesis'; +/** 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']; }; -/** aggregated selection of "average_block_time_from_genesis" */ -export type Average_Block_Time_From_Genesis_Aggregate = { - __typename?: 'average_block_time_from_genesis_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "average_block_time_per_minute" */ +export type Average_Block_Time_Per_Minute_Aggregate = { + __typename?: 'average_block_time_per_minute_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "average_block_time_from_genesis" */ -export type Average_Block_Time_From_Genesis_Aggregate_Fields = { - __typename?: 'average_block_time_from_genesis_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "average_block_time_per_minute" */ +export type Average_Block_Time_Per_Minute_Aggregate_Fields = { + __typename?: 'average_block_time_per_minute_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; + 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 "average_block_time_from_genesis" */ -export type Average_Block_Time_From_Genesis_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "average_block_time_per_minute" */ +export type Average_Block_Time_Per_Minute_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; /** aggregate avg on columns */ -export type Average_Block_Time_From_Genesis_Avg_Fields = { - __typename?: 'average_block_time_from_genesis_avg_fields'; +export type Average_Block_Time_Per_Minute_Avg_Fields = { + __typename?: 'average_block_time_per_minute_avg_fields'; average_time?: Maybe; height?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; average_time?: Maybe; height?: Maybe; }; /** aggregate max on columns */ -export type Average_Block_Time_From_Genesis_Max_Fields = { - __typename?: 'average_block_time_from_genesis_max_fields'; +export type Average_Block_Time_Per_Minute_Max_Fields = { + __typename?: 'average_block_time_per_minute_max_fields'; average_time?: Maybe; height?: Maybe; }; /** aggregate min on columns */ -export type Average_Block_Time_From_Genesis_Min_Fields = { - __typename?: 'average_block_time_from_genesis_min_fields'; +export type Average_Block_Time_Per_Minute_Min_Fields = { + __typename?: 'average_block_time_per_minute_min_fields'; average_time?: Maybe; height?: Maybe; }; -/** Ordering options when selecting data from "average_block_time_from_genesis". */ -export type Average_Block_Time_From_Genesis_Order_By = { +/** Ordering options when selecting data from "average_block_time_per_minute". */ +export type Average_Block_Time_Per_Minute_Order_By = { average_time?: Maybe; height?: Maybe; }; -/** select columns of table "average_block_time_from_genesis" */ -export enum Average_Block_Time_From_Genesis_Select_Column { +/** 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 */ @@ -1472,11020 +1318,4732 @@ export enum Average_Block_Time_From_Genesis_Select_Column { } /** aggregate stddev on columns */ -export type Average_Block_Time_From_Genesis_Stddev_Fields = { - __typename?: 'average_block_time_from_genesis_stddev_fields'; +export type Average_Block_Time_Per_Minute_Stddev_Fields = { + __typename?: 'average_block_time_per_minute_stddev_fields'; average_time?: Maybe; height?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Average_Block_Time_From_Genesis_Stddev_Pop_Fields = { - __typename?: 'average_block_time_from_genesis_stddev_pop_fields'; +export type Average_Block_Time_Per_Minute_Stddev_Pop_Fields = { + __typename?: 'average_block_time_per_minute_stddev_pop_fields'; average_time?: Maybe; height?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Average_Block_Time_From_Genesis_Stddev_Samp_Fields = { - __typename?: 'average_block_time_from_genesis_stddev_samp_fields'; +export type Average_Block_Time_Per_Minute_Stddev_Samp_Fields = { + __typename?: 'average_block_time_per_minute_stddev_samp_fields'; average_time?: Maybe; height?: Maybe; }; /** aggregate sum on columns */ -export type Average_Block_Time_From_Genesis_Sum_Fields = { - __typename?: 'average_block_time_from_genesis_sum_fields'; +export type Average_Block_Time_Per_Minute_Sum_Fields = { + __typename?: 'average_block_time_per_minute_sum_fields'; average_time?: Maybe; height?: Maybe; }; /** aggregate var_pop on columns */ -export type Average_Block_Time_From_Genesis_Var_Pop_Fields = { - __typename?: 'average_block_time_from_genesis_var_pop_fields'; +export type Average_Block_Time_Per_Minute_Var_Pop_Fields = { + __typename?: 'average_block_time_per_minute_var_pop_fields'; average_time?: Maybe; height?: Maybe; }; /** aggregate var_samp on columns */ -export type Average_Block_Time_From_Genesis_Var_Samp_Fields = { - __typename?: 'average_block_time_from_genesis_var_samp_fields'; +export type Average_Block_Time_Per_Minute_Var_Samp_Fields = { + __typename?: 'average_block_time_per_minute_var_samp_fields'; average_time?: Maybe; height?: Maybe; }; /** aggregate variance on columns */ -export type Average_Block_Time_From_Genesis_Variance_Fields = { - __typename?: 'average_block_time_from_genesis_variance_fields'; +export type Average_Block_Time_Per_Minute_Variance_Fields = { + __typename?: 'average_block_time_per_minute_variance_fields'; average_time?: Maybe; height?: Maybe; }; -/** 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']; -}; -/** aggregated selection of "average_block_time_per_day" */ -export type Average_Block_Time_Per_Day_Aggregate = { - __typename?: 'average_block_time_per_day_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** Boolean expression to compare columns of type "bigint". All fields are combined with logical 'AND'. */ +export type Bigint_Comparison_Exp = { + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; }; -/** aggregate fields of "average_block_time_per_day" */ -export type Average_Block_Time_Per_Day_Aggregate_Fields = { - __typename?: 'average_block_time_per_day_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; +/** 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; + proposer_address?: Maybe; + timestamp: Scalars['timestamp']; + total_gas?: Maybe; + /** An array relationship */ + transactions: Array; + /** An aggregate relationship */ + transactions_aggregate: Transaction_Aggregate; + /** An object relationship */ + validator?: Maybe; + /** An array relationship */ + validator_voting_powers: Array; + /** An aggregate relationship */ + validator_voting_powers_aggregate: Validator_Voting_Power_Aggregate; }; -/** aggregate fields of "average_block_time_per_day" */ -export type Average_Block_Time_Per_Day_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** columns and relationships of "block" */ +export type BlockPre_CommitsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate avg on columns */ -export type Average_Block_Time_Per_Day_Avg_Fields = { - __typename?: 'average_block_time_per_day_avg_fields'; - average_time?: Maybe; - height?: Maybe; -}; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - average_time?: Maybe; - height?: Maybe; +/** columns and relationships of "block" */ +export type BlockPre_Commits_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate max on columns */ -export type Average_Block_Time_Per_Day_Max_Fields = { - __typename?: 'average_block_time_per_day_max_fields'; - average_time?: Maybe; - height?: Maybe; -}; -/** aggregate min on columns */ -export type Average_Block_Time_Per_Day_Min_Fields = { - __typename?: 'average_block_time_per_day_min_fields'; - average_time?: Maybe; - height?: Maybe; +/** columns and relationships of "block" */ +export type BlockTransactionsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** Ordering options when selecting data from "average_block_time_per_day". */ -export type Average_Block_Time_Per_Day_Order_By = { - average_time?: Maybe; - height?: Maybe; + +/** columns and relationships of "block" */ +export type BlockTransactions_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** 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' -} -/** aggregate stddev on columns */ -export type Average_Block_Time_Per_Day_Stddev_Fields = { - __typename?: 'average_block_time_per_day_stddev_fields'; - average_time?: Maybe; - height?: Maybe; +/** columns and relationships of "block" */ +export type BlockValidator_Voting_PowersArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Average_Block_Time_Per_Day_Stddev_Pop_Fields = { - __typename?: 'average_block_time_per_day_stddev_pop_fields'; - average_time?: Maybe; - height?: Maybe; + +/** columns and relationships of "block" */ +export type BlockValidator_Voting_Powers_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate stddev_samp on columns */ -export type Average_Block_Time_Per_Day_Stddev_Samp_Fields = { - __typename?: 'average_block_time_per_day_stddev_samp_fields'; - average_time?: Maybe; - height?: Maybe; +/** aggregated selection of "block" */ +export type Block_Aggregate = { + __typename?: 'block_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate sum on columns */ -export type Average_Block_Time_Per_Day_Sum_Fields = { - __typename?: 'average_block_time_per_day_sum_fields'; - average_time?: Maybe; - height?: Maybe; +/** aggregate fields of "block" */ +export type Block_Aggregate_Fields = { + __typename?: 'block_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 var_pop on columns */ -export type Average_Block_Time_Per_Day_Var_Pop_Fields = { - __typename?: 'average_block_time_per_day_var_pop_fields'; - average_time?: Maybe; - height?: Maybe; + +/** aggregate fields of "block" */ +export type Block_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; -/** aggregate var_samp on columns */ -export type Average_Block_Time_Per_Day_Var_Samp_Fields = { - __typename?: 'average_block_time_per_day_var_samp_fields'; - average_time?: Maybe; - height?: Maybe; +/** order by aggregate values of table "block" */ +export type Block_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; -/** aggregate variance on columns */ -export type Average_Block_Time_Per_Day_Variance_Fields = { - __typename?: 'average_block_time_per_day_variance_fields'; - average_time?: Maybe; +/** aggregate avg on columns */ +export type Block_Avg_Fields = { + __typename?: 'block_avg_fields'; height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; }; -/** 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']; +/** order by avg() on columns of table "block" */ +export type Block_Avg_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; }; -/** aggregated selection of "average_block_time_per_hour" */ -export type Average_Block_Time_Per_Hour_Aggregate = { - __typename?: 'average_block_time_per_hour_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** Boolean expression to filter rows from the table "block". All fields are combined with a logical 'AND'. */ +export type Block_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + hash?: Maybe; + height?: Maybe; + num_txs?: Maybe; + pre_commits?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; + transactions?: Maybe; + validator?: Maybe; + validator_voting_powers?: Maybe; }; -/** aggregate fields of "average_block_time_per_hour" */ -export type Average_Block_Time_Per_Hour_Aggregate_Fields = { - __typename?: 'average_block_time_per_hour_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 "average_block_time_per_hour" */ -export type Average_Block_Time_Per_Hour_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** aggregate avg on columns */ -export type Average_Block_Time_Per_Hour_Avg_Fields = { - __typename?: 'average_block_time_per_hour_avg_fields'; - average_time?: Maybe; - height?: Maybe; +/** aggregate max on columns */ +export type Block_Max_Fields = { + __typename?: 'block_max_fields'; + hash?: Maybe; + height?: Maybe; + num_txs?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - average_time?: Maybe; - height?: Maybe; +/** order by max() on columns of table "block" */ +export type Block_Max_Order_By = { + hash?: Maybe; + height?: Maybe; + num_txs?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; }; -/** aggregate max on columns */ -export type Average_Block_Time_Per_Hour_Max_Fields = { - __typename?: 'average_block_time_per_hour_max_fields'; - average_time?: Maybe; +/** aggregate min on columns */ +export type Block_Min_Fields = { + __typename?: 'block_min_fields'; + hash?: Maybe; height?: Maybe; + num_txs?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; }; -/** aggregate min on columns */ -export type Average_Block_Time_Per_Hour_Min_Fields = { - __typename?: 'average_block_time_per_hour_min_fields'; - average_time?: Maybe; - height?: Maybe; +/** order by min() on columns of table "block" */ +export type Block_Min_Order_By = { + hash?: Maybe; + height?: Maybe; + num_txs?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; }; -/** Ordering options when selecting data from "average_block_time_per_hour". */ -export type Average_Block_Time_Per_Hour_Order_By = { - average_time?: Maybe; +/** Ordering options when selecting data from "block". */ +export type Block_Order_By = { + hash?: Maybe; height?: Maybe; + num_txs?: Maybe; + pre_commits_aggregate?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; + transactions_aggregate?: Maybe; + validator?: Maybe; + validator_voting_powers_aggregate?: Maybe; }; -/** select columns of table "average_block_time_per_hour" */ -export enum Average_Block_Time_Per_Hour_Select_Column { +/** select columns of table "block" */ +export enum Block_Select_Column { /** column name */ - AverageTime = 'average_time', + Hash = 'hash', /** column name */ - Height = 'height' + Height = 'height', + /** column name */ + NumTxs = 'num_txs', + /** column name */ + ProposerAddress = 'proposer_address', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + TotalGas = 'total_gas' } /** aggregate stddev on columns */ -export type Average_Block_Time_Per_Hour_Stddev_Fields = { - __typename?: 'average_block_time_per_hour_stddev_fields'; - average_time?: Maybe; +export type Block_Stddev_Fields = { + __typename?: 'block_stddev_fields'; height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by stddev() on columns of table "block" */ +export type Block_Stddev_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Average_Block_Time_Per_Hour_Stddev_Pop_Fields = { - __typename?: 'average_block_time_per_hour_stddev_pop_fields'; - average_time?: Maybe; +export type Block_Stddev_Pop_Fields = { + __typename?: 'block_stddev_pop_fields'; height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by stddev_pop() on columns of table "block" */ +export type Block_Stddev_Pop_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Average_Block_Time_Per_Hour_Stddev_Samp_Fields = { - __typename?: 'average_block_time_per_hour_stddev_samp_fields'; - average_time?: Maybe; +export type Block_Stddev_Samp_Fields = { + __typename?: 'block_stddev_samp_fields'; height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by stddev_samp() on columns of table "block" */ +export type Block_Stddev_Samp_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; }; /** aggregate sum on columns */ -export type Average_Block_Time_Per_Hour_Sum_Fields = { - __typename?: 'average_block_time_per_hour_sum_fields'; - average_time?: Maybe; +export type Block_Sum_Fields = { + __typename?: 'block_sum_fields'; height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by sum() on columns of table "block" */ +export type Block_Sum_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; }; /** aggregate var_pop on columns */ -export type Average_Block_Time_Per_Hour_Var_Pop_Fields = { - __typename?: 'average_block_time_per_hour_var_pop_fields'; - average_time?: Maybe; +export type Block_Var_Pop_Fields = { + __typename?: 'block_var_pop_fields'; height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; }; -/** aggregate var_samp on columns */ -export type Average_Block_Time_Per_Hour_Var_Samp_Fields = { - __typename?: 'average_block_time_per_hour_var_samp_fields'; - average_time?: Maybe; - height?: Maybe; +/** order by var_pop() on columns of table "block" */ +export type Block_Var_Pop_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; }; -/** aggregate variance on columns */ -export type Average_Block_Time_Per_Hour_Variance_Fields = { - __typename?: 'average_block_time_per_hour_variance_fields'; - average_time?: Maybe; +/** aggregate var_samp on columns */ +export type Block_Var_Samp_Fields = { + __typename?: 'block_var_samp_fields'; height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; }; -/** 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']; +/** order by var_samp() on columns of table "block" */ +export type Block_Var_Samp_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; }; -/** aggregated selection of "average_block_time_per_minute" */ -export type Average_Block_Time_Per_Minute_Aggregate = { - __typename?: 'average_block_time_per_minute_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregate variance on columns */ +export type Block_Variance_Fields = { + __typename?: 'block_variance_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; }; -/** aggregate fields of "average_block_time_per_minute" */ -export type Average_Block_Time_Per_Minute_Aggregate_Fields = { - __typename?: 'average_block_time_per_minute_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; +/** order by variance() on columns of table "block" */ +export type Block_Variance_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; }; -/** aggregate fields of "average_block_time_per_minute" */ -export type Average_Block_Time_Per_Minute_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** Boolean expression to compare columns of type "coin". All fields are combined with logical 'AND'. */ +export type Coin_Comparison_Exp = { + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; }; -/** aggregate avg on columns */ -export type Average_Block_Time_Per_Minute_Avg_Fields = { - __typename?: 'average_block_time_per_minute_avg_fields'; - average_time?: Maybe; - height?: Maybe; +/** 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 "average_block_time_per_minute". All fields are combined with a logical 'AND'. */ -export type Average_Block_Time_Per_Minute_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - average_time?: Maybe; +/** aggregated selection of "community_pool" */ +export type Community_Pool_Aggregate = { + __typename?: 'community_pool_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "community_pool" */ +export type Community_Pool_Aggregate_Fields = { + __typename?: 'community_pool_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 "community_pool" */ +export type Community_Pool_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Community_Pool_Avg_Fields = { + __typename?: 'community_pool_avg_fields'; + height?: Maybe; +}; + +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + coins?: Maybe<_Dec_Coin_Comparison_Exp>; height?: Maybe; }; /** aggregate max on columns */ -export type Average_Block_Time_Per_Minute_Max_Fields = { - __typename?: 'average_block_time_per_minute_max_fields'; - average_time?: Maybe; +export type Community_Pool_Max_Fields = { + __typename?: 'community_pool_max_fields'; height?: Maybe; }; /** aggregate min on columns */ -export type Average_Block_Time_Per_Minute_Min_Fields = { - __typename?: 'average_block_time_per_minute_min_fields'; - average_time?: Maybe; +export type Community_Pool_Min_Fields = { + __typename?: 'community_pool_min_fields'; height?: Maybe; }; -/** Ordering options when selecting data from "average_block_time_per_minute". */ -export type Average_Block_Time_Per_Minute_Order_By = { - average_time?: Maybe; +/** Ordering options when selecting data from "community_pool". */ +export type Community_Pool_Order_By = { + coins?: Maybe; height?: Maybe; }; -/** select columns of table "average_block_time_per_minute" */ -export enum Average_Block_Time_Per_Minute_Select_Column { +/** select columns of table "community_pool" */ +export enum Community_Pool_Select_Column { /** column name */ - AverageTime = 'average_time', + Coins = 'coins', /** column name */ Height = 'height' } /** aggregate stddev on columns */ -export type Average_Block_Time_Per_Minute_Stddev_Fields = { - __typename?: 'average_block_time_per_minute_stddev_fields'; - average_time?: Maybe; +export type Community_Pool_Stddev_Fields = { + __typename?: 'community_pool_stddev_fields'; height?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Average_Block_Time_Per_Minute_Stddev_Pop_Fields = { - __typename?: 'average_block_time_per_minute_stddev_pop_fields'; - average_time?: Maybe; +export type Community_Pool_Stddev_Pop_Fields = { + __typename?: 'community_pool_stddev_pop_fields'; height?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Average_Block_Time_Per_Minute_Stddev_Samp_Fields = { - __typename?: 'average_block_time_per_minute_stddev_samp_fields'; - average_time?: Maybe; +export type Community_Pool_Stddev_Samp_Fields = { + __typename?: 'community_pool_stddev_samp_fields'; height?: Maybe; }; /** aggregate sum on columns */ -export type Average_Block_Time_Per_Minute_Sum_Fields = { - __typename?: 'average_block_time_per_minute_sum_fields'; - average_time?: Maybe; +export type Community_Pool_Sum_Fields = { + __typename?: 'community_pool_sum_fields'; height?: Maybe; }; /** aggregate var_pop on columns */ -export type Average_Block_Time_Per_Minute_Var_Pop_Fields = { - __typename?: 'average_block_time_per_minute_var_pop_fields'; - average_time?: Maybe; +export type Community_Pool_Var_Pop_Fields = { + __typename?: 'community_pool_var_pop_fields'; height?: Maybe; }; /** aggregate var_samp on columns */ -export type Average_Block_Time_Per_Minute_Var_Samp_Fields = { - __typename?: 'average_block_time_per_minute_var_samp_fields'; - average_time?: Maybe; +export type Community_Pool_Var_Samp_Fields = { + __typename?: 'community_pool_var_samp_fields'; height?: Maybe; }; /** aggregate variance on columns */ -export type Average_Block_Time_Per_Minute_Variance_Fields = { - __typename?: 'average_block_time_per_minute_variance_fields'; - average_time?: Maybe; +export type Community_Pool_Variance_Fields = { + __typename?: 'community_pool_variance_fields'; height?: Maybe; }; - -/** Boolean expression to compare columns of type "bigint". All fields are combined with logical 'AND'. */ -export type Bigint_Comparison_Exp = { - _eq?: Maybe; - _gt?: Maybe; - _gte?: Maybe; - _in?: Maybe>; - _is_null?: Maybe; - _lt?: Maybe; - _lte?: Maybe; - _neq?: Maybe; - _nin?: Maybe>; -}; - -/** columns and relationships of "block" */ -export type Block = { - __typename?: 'block'; - hash: Scalars['String']; +/** columns and relationships of "delegation" */ +export type Delegation = { + __typename?: 'delegation'; + /** An object relationship */ + account: Account; + amount: Scalars['coin']; + delegator_address: Scalars['String']; height: Scalars['bigint']; - num_txs?: Maybe; - /** An array relationship */ - pre_commits: Array; - /** An aggregate relationship */ - pre_commits_aggregate: Pre_Commit_Aggregate; - proposer_address?: Maybe; - timestamp: Scalars['timestamp']; - total_gas?: Maybe; - /** An array relationship */ - transactions: Array; - /** An aggregate relationship */ - transactions_aggregate: Transaction_Aggregate; + id: Scalars['Int']; + /** A computed field, executes function "is_delegation_self_delegate" */ + is_self_delegate?: Maybe; /** An object relationship */ - validator?: Maybe; - /** An array relationship */ - validator_voting_powers: Array; - /** An aggregate relationship */ - validator_voting_powers_aggregate: Validator_Voting_Power_Aggregate; + validator: Validator; + validator_address: Scalars['String']; }; - -/** columns and relationships of "block" */ -export type BlockPre_CommitsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregated selection of "delegation" */ +export type Delegation_Aggregate = { + __typename?: 'delegation_aggregate'; + aggregate?: Maybe; + nodes: Array; }; - -/** columns and relationships of "block" */ -export type BlockPre_Commits_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate fields of "delegation" */ +export type Delegation_Aggregate_Fields = { + __typename?: 'delegation_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; }; -/** columns and relationships of "block" */ -export type BlockTransactionsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate fields of "delegation" */ +export type Delegation_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; - -/** columns and relationships of "block" */ -export type BlockTransactions_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** order by aggregate values of table "delegation" */ +export type Delegation_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; - -/** columns and relationships of "block" */ -export type BlockValidator_Voting_PowersArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate avg on columns */ +export type Delegation_Avg_Fields = { + __typename?: 'delegation_avg_fields'; + height?: Maybe; + id?: Maybe; }; +/** order by avg() on columns of table "delegation" */ +export type Delegation_Avg_Order_By = { + height?: Maybe; + id?: Maybe; +}; -/** columns and relationships of "block" */ -export type BlockValidator_Voting_Powers_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** Boolean expression to filter rows from the table "delegation". All fields are combined with a logical 'AND'. */ +export type Delegation_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + account?: Maybe; + amount?: Maybe; + delegator_address?: Maybe; + height?: Maybe; + id?: Maybe; + is_self_delegate?: Maybe; + validator?: Maybe; + validator_address?: Maybe; }; -/** aggregated selection of "block" */ -export type Block_Aggregate = { - __typename?: 'block_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregate max on columns */ +export type Delegation_Max_Fields = { + __typename?: 'delegation_max_fields'; + delegator_address?: Maybe; + height?: Maybe; + id?: Maybe; + validator_address?: Maybe; }; -/** aggregate fields of "block" */ -export type Block_Aggregate_Fields = { - __typename?: 'block_aggregate_fields'; - avg?: Maybe; +/** order by max() on columns of table "delegation" */ +export type Delegation_Max_Order_By = { + delegator_address?: Maybe; + height?: Maybe; + id?: Maybe; + validator_address?: Maybe; +}; + +/** aggregate min on columns */ +export type Delegation_Min_Fields = { + __typename?: 'delegation_min_fields'; + delegator_address?: Maybe; + height?: Maybe; + id?: Maybe; + validator_address?: Maybe; +}; + +/** order by min() on columns of table "delegation" */ +export type Delegation_Min_Order_By = { + delegator_address?: Maybe; + height?: Maybe; + id?: Maybe; + validator_address?: Maybe; +}; + +/** Ordering options when selecting data from "delegation". */ +export type Delegation_Order_By = { + account?: Maybe; + amount?: Maybe; + delegator_address?: Maybe; + height?: Maybe; + id?: Maybe; + is_self_delegate?: Maybe; + validator?: Maybe; + validator_address?: Maybe; +}; + +/** columns and relationships of "delegation_reward" */ +export type Delegation_Reward = { + __typename?: 'delegation_reward'; + /** An object relationship */ + account: Account; + amount: Scalars['_dec_coin']; + delegator_address: Scalars['String']; + height: Scalars['bigint']; + /** An object relationship */ + validator: Validator; + validator_address: Scalars['String']; + withdraw_address: Scalars['String']; +}; + +/** aggregated selection of "delegation_reward" */ +export type Delegation_Reward_Aggregate = { + __typename?: 'delegation_reward_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "delegation_reward" */ +export type Delegation_Reward_Aggregate_Fields = { + __typename?: 'delegation_reward_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; + 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 "block" */ -export type Block_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "delegation_reward" */ +export type Delegation_Reward_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "block" */ -export type Block_Aggregate_Order_By = { - avg?: Maybe; +/** order by aggregate values of table "delegation_reward" */ +export type Delegation_Reward_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate avg on columns */ -export type Block_Avg_Fields = { - __typename?: 'block_avg_fields'; +export type Delegation_Reward_Avg_Fields = { + __typename?: 'delegation_reward_avg_fields'; height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; }; -/** order by avg() on columns of table "block" */ -export type Block_Avg_Order_By = { +/** order by avg() on columns of table "delegation_reward" */ +export type Delegation_Reward_Avg_Order_By = { height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; }; -/** Boolean expression to filter rows from the table "block". All fields are combined with a logical 'AND'. */ -export type Block_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - hash?: Maybe; +/** Boolean expression to filter rows from the table "delegation_reward". All fields are combined with a logical 'AND'. */ +export type Delegation_Reward_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + account?: Maybe; + amount?: Maybe<_Dec_Coin_Comparison_Exp>; + delegator_address?: Maybe; height?: Maybe; - num_txs?: Maybe; - pre_commits?: Maybe; - proposer_address?: Maybe; - timestamp?: Maybe; - total_gas?: Maybe; - transactions?: Maybe; validator?: Maybe; - validator_voting_powers?: Maybe; + validator_address?: Maybe; + withdraw_address?: Maybe; }; /** aggregate max on columns */ -export type Block_Max_Fields = { - __typename?: 'block_max_fields'; - hash?: Maybe; +export type Delegation_Reward_Max_Fields = { + __typename?: 'delegation_reward_max_fields'; + delegator_address?: Maybe; height?: Maybe; - num_txs?: Maybe; - proposer_address?: Maybe; - timestamp?: Maybe; - total_gas?: Maybe; + validator_address?: Maybe; + withdraw_address?: Maybe; }; -/** order by max() on columns of table "block" */ -export type Block_Max_Order_By = { - hash?: Maybe; +/** order by max() on columns of table "delegation_reward" */ +export type Delegation_Reward_Max_Order_By = { + delegator_address?: Maybe; height?: Maybe; - num_txs?: Maybe; - proposer_address?: Maybe; - timestamp?: Maybe; - total_gas?: Maybe; + validator_address?: Maybe; + withdraw_address?: Maybe; }; /** aggregate min on columns */ -export type Block_Min_Fields = { - __typename?: 'block_min_fields'; - hash?: Maybe; +export type Delegation_Reward_Min_Fields = { + __typename?: 'delegation_reward_min_fields'; + delegator_address?: Maybe; height?: Maybe; - num_txs?: Maybe; - proposer_address?: Maybe; - timestamp?: Maybe; - total_gas?: Maybe; + validator_address?: Maybe; + withdraw_address?: Maybe; }; -/** order by min() on columns of table "block" */ -export type Block_Min_Order_By = { - hash?: Maybe; +/** order by min() on columns of table "delegation_reward" */ +export type Delegation_Reward_Min_Order_By = { + delegator_address?: Maybe; height?: Maybe; - num_txs?: Maybe; - proposer_address?: Maybe; - timestamp?: Maybe; - total_gas?: Maybe; + validator_address?: Maybe; + withdraw_address?: Maybe; }; -/** Ordering options when selecting data from "block". */ -export type Block_Order_By = { - hash?: Maybe; +/** Ordering options when selecting data from "delegation_reward". */ +export type Delegation_Reward_Order_By = { + account?: Maybe; + amount?: Maybe; + delegator_address?: Maybe; height?: Maybe; - num_txs?: Maybe; - pre_commits_aggregate?: Maybe; - proposer_address?: Maybe; - timestamp?: Maybe; - total_gas?: Maybe; - transactions_aggregate?: Maybe; validator?: Maybe; - validator_voting_powers_aggregate?: Maybe; + validator_address?: Maybe; + withdraw_address?: Maybe; }; -/** select columns of table "block" */ -export enum Block_Select_Column { - /** column name */ - Hash = 'hash', +/** select columns of table "delegation_reward" */ +export enum Delegation_Reward_Select_Column { /** column name */ - Height = 'height', + Amount = 'amount', /** column name */ - NumTxs = 'num_txs', + DelegatorAddress = 'delegator_address', /** column name */ - ProposerAddress = 'proposer_address', + Height = 'height', /** column name */ - Timestamp = 'timestamp', + ValidatorAddress = 'validator_address', /** column name */ - TotalGas = 'total_gas' + WithdrawAddress = 'withdraw_address' } /** aggregate stddev on columns */ -export type Block_Stddev_Fields = { - __typename?: 'block_stddev_fields'; +export type Delegation_Reward_Stddev_Fields = { + __typename?: 'delegation_reward_stddev_fields'; height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; }; -/** order by stddev() on columns of table "block" */ -export type Block_Stddev_Order_By = { +/** order by stddev() on columns of table "delegation_reward" */ +export type Delegation_Reward_Stddev_Order_By = { height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Block_Stddev_Pop_Fields = { - __typename?: 'block_stddev_pop_fields'; +export type Delegation_Reward_Stddev_Pop_Fields = { + __typename?: 'delegation_reward_stddev_pop_fields'; height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; }; -/** order by stddev_pop() on columns of table "block" */ -export type Block_Stddev_Pop_Order_By = { +/** order by stddev_pop() on columns of table "delegation_reward" */ +export type Delegation_Reward_Stddev_Pop_Order_By = { height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Block_Stddev_Samp_Fields = { - __typename?: 'block_stddev_samp_fields'; +export type Delegation_Reward_Stddev_Samp_Fields = { + __typename?: 'delegation_reward_stddev_samp_fields'; height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; }; -/** order by stddev_samp() on columns of table "block" */ -export type Block_Stddev_Samp_Order_By = { +/** order by stddev_samp() on columns of table "delegation_reward" */ +export type Delegation_Reward_Stddev_Samp_Order_By = { height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; }; /** aggregate sum on columns */ -export type Block_Sum_Fields = { - __typename?: 'block_sum_fields'; +export type Delegation_Reward_Sum_Fields = { + __typename?: 'delegation_reward_sum_fields'; height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; }; -/** order by sum() on columns of table "block" */ -export type Block_Sum_Order_By = { +/** order by sum() on columns of table "delegation_reward" */ +export type Delegation_Reward_Sum_Order_By = { height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; }; /** aggregate var_pop on columns */ -export type Block_Var_Pop_Fields = { - __typename?: 'block_var_pop_fields'; +export type Delegation_Reward_Var_Pop_Fields = { + __typename?: 'delegation_reward_var_pop_fields'; height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; }; -/** order by var_pop() on columns of table "block" */ -export type Block_Var_Pop_Order_By = { +/** order by var_pop() on columns of table "delegation_reward" */ +export type Delegation_Reward_Var_Pop_Order_By = { height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; }; /** aggregate var_samp on columns */ -export type Block_Var_Samp_Fields = { - __typename?: 'block_var_samp_fields'; +export type Delegation_Reward_Var_Samp_Fields = { + __typename?: 'delegation_reward_var_samp_fields'; height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; }; -/** order by var_samp() on columns of table "block" */ -export type Block_Var_Samp_Order_By = { +/** order by var_samp() on columns of table "delegation_reward" */ +export type Delegation_Reward_Var_Samp_Order_By = { height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; }; /** aggregate variance on columns */ -export type Block_Variance_Fields = { - __typename?: 'block_variance_fields'; +export type Delegation_Reward_Variance_Fields = { + __typename?: 'delegation_reward_variance_fields'; height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; }; -/** order by variance() on columns of table "block" */ -export type Block_Variance_Order_By = { +/** order by variance() on columns of table "delegation_reward" */ +export type Delegation_Reward_Variance_Order_By = { height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; }; -/** columns and relationships of "chain_link" */ -export type Chain_Link = { - __typename?: 'chain_link'; - /** An object relationship */ - chain_config: Chain_Link_Chain_Config; - chain_config_id: Scalars['bigint']; - creation_time: Scalars['timestamp']; - external_address: Scalars['String']; - height: Scalars['bigint']; - id: Scalars['Int']; - /** An object relationship */ - profile: Profile; - /** An object relationship */ - proof?: Maybe; - user_address: Scalars['String']; +/** select columns of table "delegation" */ +export enum Delegation_Select_Column { + /** column name */ + Amount = 'amount', + /** column name */ + DelegatorAddress = 'delegator_address', + /** column name */ + Height = 'height', + /** column name */ + Id = 'id', + /** column name */ + ValidatorAddress = 'validator_address' +} + +/** aggregate stddev on columns */ +export type Delegation_Stddev_Fields = { + __typename?: 'delegation_stddev_fields'; + height?: Maybe; + id?: Maybe; }; -/** aggregated selection of "chain_link" */ -export type Chain_Link_Aggregate = { - __typename?: 'chain_link_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** order by stddev() on columns of table "delegation" */ +export type Delegation_Stddev_Order_By = { + height?: Maybe; + id?: Maybe; }; -/** aggregate fields of "chain_link" */ -export type Chain_Link_Aggregate_Fields = { - __typename?: 'chain_link_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 stddev_pop on columns */ +export type Delegation_Stddev_Pop_Fields = { + __typename?: 'delegation_stddev_pop_fields'; + height?: Maybe; + id?: Maybe; }; +/** order by stddev_pop() on columns of table "delegation" */ +export type Delegation_Stddev_Pop_Order_By = { + height?: Maybe; + id?: Maybe; +}; -/** aggregate fields of "chain_link" */ -export type Chain_Link_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** aggregate stddev_samp on columns */ +export type Delegation_Stddev_Samp_Fields = { + __typename?: 'delegation_stddev_samp_fields'; + height?: Maybe; + id?: Maybe; }; -/** order by aggregate values of table "chain_link" */ -export type Chain_Link_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; +/** order by stddev_samp() on columns of table "delegation" */ +export type Delegation_Stddev_Samp_Order_By = { + height?: Maybe; + id?: Maybe; }; -/** aggregate avg on columns */ -export type Chain_Link_Avg_Fields = { - __typename?: 'chain_link_avg_fields'; - chain_config_id?: Maybe; +/** aggregate sum on columns */ +export type Delegation_Sum_Fields = { + __typename?: 'delegation_sum_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by sum() on columns of table "delegation" */ +export type Delegation_Sum_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Delegation_Var_Pop_Fields = { + __typename?: 'delegation_var_pop_fields'; height?: Maybe; id?: Maybe; }; -/** order by avg() on columns of table "chain_link" */ -export type Chain_Link_Avg_Order_By = { - chain_config_id?: Maybe; +/** order by var_pop() on columns of table "delegation" */ +export type Delegation_Var_Pop_Order_By = { height?: Maybe; id?: Maybe; }; -/** Boolean expression to filter rows from the table "chain_link". All fields are combined with a logical 'AND'. */ -export type Chain_Link_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - chain_config?: Maybe; - chain_config_id?: Maybe; - creation_time?: Maybe; - external_address?: Maybe; - height?: Maybe; - id?: Maybe; - profile?: Maybe; - proof?: Maybe; - user_address?: Maybe; +/** aggregate var_samp on columns */ +export type Delegation_Var_Samp_Fields = { + __typename?: 'delegation_var_samp_fields'; + height?: Maybe; + id?: Maybe; }; -/** columns and relationships of "chain_link_chain_config" */ -export type Chain_Link_Chain_Config = { - __typename?: 'chain_link_chain_config'; - /** An array relationship */ - chain_links: Array; - /** An aggregate relationship */ - chain_links_aggregate: Chain_Link_Aggregate; - id: Scalars['Int']; - name: Scalars['String']; +/** order by var_samp() on columns of table "delegation" */ +export type Delegation_Var_Samp_Order_By = { + height?: Maybe; + id?: Maybe; }; +/** aggregate variance on columns */ +export type Delegation_Variance_Fields = { + __typename?: 'delegation_variance_fields'; + height?: Maybe; + id?: Maybe; +}; -/** columns and relationships of "chain_link_chain_config" */ -export type Chain_Link_Chain_ConfigChain_LinksArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** order by variance() on columns of table "delegation" */ +export type Delegation_Variance_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** columns and relationships of "distribution_params" */ +export type Distribution_Params = { + __typename?: 'distribution_params'; + height: Scalars['bigint']; + one_row_id: Scalars['Boolean']; + params: Scalars['jsonb']; }; -/** columns and relationships of "chain_link_chain_config" */ -export type Chain_Link_Chain_ConfigChain_Links_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** columns and relationships of "distribution_params" */ +export type Distribution_ParamsParamsArgs = { + path?: Maybe; }; -/** aggregated selection of "chain_link_chain_config" */ -export type Chain_Link_Chain_Config_Aggregate = { - __typename?: 'chain_link_chain_config_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "distribution_params" */ +export type Distribution_Params_Aggregate = { + __typename?: 'distribution_params_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "chain_link_chain_config" */ -export type Chain_Link_Chain_Config_Aggregate_Fields = { - __typename?: 'chain_link_chain_config_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "distribution_params" */ +export type Distribution_Params_Aggregate_Fields = { + __typename?: 'distribution_params_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; + 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 "chain_link_chain_config" */ -export type Chain_Link_Chain_Config_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "distribution_params" */ +export type Distribution_Params_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; /** aggregate avg on columns */ -export type Chain_Link_Chain_Config_Avg_Fields = { - __typename?: 'chain_link_chain_config_avg_fields'; - id?: Maybe; +export type Distribution_Params_Avg_Fields = { + __typename?: 'distribution_params_avg_fields'; + height?: Maybe; }; -/** Boolean expression to filter rows from the table "chain_link_chain_config". All fields are combined with a logical 'AND'. */ -export type Chain_Link_Chain_Config_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - chain_links?: Maybe; - id?: Maybe; - name?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + height?: Maybe; + one_row_id?: Maybe; + params?: Maybe; }; /** aggregate max on columns */ -export type Chain_Link_Chain_Config_Max_Fields = { - __typename?: 'chain_link_chain_config_max_fields'; - id?: Maybe; - name?: Maybe; +export type Distribution_Params_Max_Fields = { + __typename?: 'distribution_params_max_fields'; + height?: Maybe; }; /** aggregate min on columns */ -export type Chain_Link_Chain_Config_Min_Fields = { - __typename?: 'chain_link_chain_config_min_fields'; - id?: Maybe; - name?: Maybe; +export type Distribution_Params_Min_Fields = { + __typename?: 'distribution_params_min_fields'; + height?: Maybe; }; -/** Ordering options when selecting data from "chain_link_chain_config". */ -export type Chain_Link_Chain_Config_Order_By = { - chain_links_aggregate?: Maybe; - id?: Maybe; - name?: Maybe; +/** Ordering options when selecting data from "distribution_params". */ +export type Distribution_Params_Order_By = { + height?: Maybe; + one_row_id?: Maybe; + params?: Maybe; }; -/** select columns of table "chain_link_chain_config" */ -export enum Chain_Link_Chain_Config_Select_Column { +/** select columns of table "distribution_params" */ +export enum Distribution_Params_Select_Column { /** column name */ - Id = 'id', + Height = 'height', /** column name */ - Name = 'name' + OneRowId = 'one_row_id', + /** column name */ + Params = 'params' } /** aggregate stddev on columns */ -export type Chain_Link_Chain_Config_Stddev_Fields = { - __typename?: 'chain_link_chain_config_stddev_fields'; - id?: Maybe; +export type Distribution_Params_Stddev_Fields = { + __typename?: 'distribution_params_stddev_fields'; + height?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Chain_Link_Chain_Config_Stddev_Pop_Fields = { - __typename?: 'chain_link_chain_config_stddev_pop_fields'; - id?: Maybe; +export type Distribution_Params_Stddev_Pop_Fields = { + __typename?: 'distribution_params_stddev_pop_fields'; + height?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Chain_Link_Chain_Config_Stddev_Samp_Fields = { - __typename?: 'chain_link_chain_config_stddev_samp_fields'; - id?: Maybe; +export type Distribution_Params_Stddev_Samp_Fields = { + __typename?: 'distribution_params_stddev_samp_fields'; + height?: Maybe; }; /** aggregate sum on columns */ -export type Chain_Link_Chain_Config_Sum_Fields = { - __typename?: 'chain_link_chain_config_sum_fields'; - id?: Maybe; +export type Distribution_Params_Sum_Fields = { + __typename?: 'distribution_params_sum_fields'; + height?: Maybe; }; /** aggregate var_pop on columns */ -export type Chain_Link_Chain_Config_Var_Pop_Fields = { - __typename?: 'chain_link_chain_config_var_pop_fields'; - id?: Maybe; +export type Distribution_Params_Var_Pop_Fields = { + __typename?: 'distribution_params_var_pop_fields'; + height?: Maybe; }; /** aggregate var_samp on columns */ -export type Chain_Link_Chain_Config_Var_Samp_Fields = { - __typename?: 'chain_link_chain_config_var_samp_fields'; - id?: Maybe; +export type Distribution_Params_Var_Samp_Fields = { + __typename?: 'distribution_params_var_samp_fields'; + height?: Maybe; }; /** aggregate variance on columns */ -export type Chain_Link_Chain_Config_Variance_Fields = { - __typename?: 'chain_link_chain_config_variance_fields'; - id?: Maybe; -}; - -/** aggregate max on columns */ -export type Chain_Link_Max_Fields = { - __typename?: 'chain_link_max_fields'; - chain_config_id?: Maybe; - creation_time?: Maybe; - external_address?: Maybe; - height?: Maybe; - id?: Maybe; - user_address?: Maybe; -}; - -/** order by max() on columns of table "chain_link" */ -export type Chain_Link_Max_Order_By = { - chain_config_id?: Maybe; - creation_time?: Maybe; - external_address?: Maybe; - height?: Maybe; - id?: Maybe; - user_address?: Maybe; -}; - -/** aggregate min on columns */ -export type Chain_Link_Min_Fields = { - __typename?: 'chain_link_min_fields'; - chain_config_id?: Maybe; - creation_time?: Maybe; - external_address?: Maybe; - height?: Maybe; - id?: Maybe; - user_address?: Maybe; -}; - -/** order by min() on columns of table "chain_link" */ -export type Chain_Link_Min_Order_By = { - chain_config_id?: Maybe; - creation_time?: Maybe; - external_address?: Maybe; - height?: Maybe; - id?: Maybe; - user_address?: Maybe; -}; - -/** Ordering options when selecting data from "chain_link". */ -export type Chain_Link_Order_By = { - chain_config?: Maybe; - chain_config_id?: Maybe; - creation_time?: Maybe; - external_address?: Maybe; - height?: Maybe; - id?: Maybe; - profile?: Maybe; - proof?: Maybe; - user_address?: Maybe; +export type Distribution_Params_Variance_Fields = { + __typename?: 'distribution_params_variance_fields'; + height?: Maybe; }; -/** columns and relationships of "chain_link_proof" */ -export type Chain_Link_Proof = { - __typename?: 'chain_link_proof'; +/** columns and relationships of "double_sign_evidence" */ +export type Double_Sign_Evidence = { + __typename?: 'double_sign_evidence'; /** An object relationship */ - chain_link: Chain_Link; - chain_link_id: Scalars['bigint']; + doubleSignVoteByVoteAId: Double_Sign_Vote; + /** An object relationship */ + double_sign_vote: Double_Sign_Vote; height: Scalars['bigint']; - id: Scalars['Int']; - plain_text: Scalars['String']; - public_key: Scalars['jsonb']; - signature: Scalars['String']; -}; - - -/** columns and relationships of "chain_link_proof" */ -export type Chain_Link_ProofPublic_KeyArgs = { - path?: Maybe; + vote_a_id: Scalars['bigint']; + vote_b_id: Scalars['bigint']; }; -/** aggregated selection of "chain_link_proof" */ -export type Chain_Link_Proof_Aggregate = { - __typename?: 'chain_link_proof_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "double_sign_evidence" */ +export type Double_Sign_Evidence_Aggregate = { + __typename?: 'double_sign_evidence_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "chain_link_proof" */ -export type Chain_Link_Proof_Aggregate_Fields = { - __typename?: 'chain_link_proof_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "double_sign_evidence" */ +export type Double_Sign_Evidence_Aggregate_Fields = { + __typename?: 'double_sign_evidence_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; + 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 "chain_link_proof" */ -export type Chain_Link_Proof_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "double_sign_evidence" */ +export type Double_Sign_Evidence_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; +/** order by aggregate values of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + /** aggregate avg on columns */ -export type Chain_Link_Proof_Avg_Fields = { - __typename?: 'chain_link_proof_avg_fields'; - chain_link_id?: Maybe; +export type Double_Sign_Evidence_Avg_Fields = { + __typename?: 'double_sign_evidence_avg_fields'; height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** Boolean expression to filter rows from the table "chain_link_proof". All fields are combined with a logical 'AND'. */ -export type Chain_Link_Proof_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - chain_link?: Maybe; - chain_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - plain_text?: Maybe; - public_key?: Maybe; - signature?: Maybe; +/** order by avg() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Avg_Order_By = { + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** aggregate max on columns */ -export type Chain_Link_Proof_Max_Fields = { - __typename?: 'chain_link_proof_max_fields'; - chain_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - plain_text?: Maybe; - signature?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + doubleSignVoteByVoteAId?: Maybe; + double_sign_vote?: Maybe; + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** aggregate min on columns */ -export type Chain_Link_Proof_Min_Fields = { - __typename?: 'chain_link_proof_min_fields'; - chain_link_id?: Maybe; +/** aggregate max on columns */ +export type Double_Sign_Evidence_Max_Fields = { + __typename?: 'double_sign_evidence_max_fields'; height?: Maybe; - id?: Maybe; - plain_text?: Maybe; - signature?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** Ordering options when selecting data from "chain_link_proof". */ -export type Chain_Link_Proof_Order_By = { - chain_link?: Maybe; - chain_link_id?: Maybe; +/** order by max() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Max_Order_By = { height?: Maybe; - id?: Maybe; - plain_text?: Maybe; - public_key?: Maybe; - signature?: Maybe; -}; - -/** select columns of table "chain_link_proof" */ -export enum Chain_Link_Proof_Select_Column { - /** column name */ - ChainLinkId = 'chain_link_id', - /** column name */ - Height = 'height', - /** column name */ - Id = 'id', - /** column name */ - PlainText = 'plain_text', - /** column name */ - PublicKey = 'public_key', - /** column name */ - Signature = 'signature' -} - -/** aggregate stddev on columns */ -export type Chain_Link_Proof_Stddev_Fields = { - __typename?: 'chain_link_proof_stddev_fields'; - chain_link_id?: Maybe; - height?: Maybe; - id?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Chain_Link_Proof_Stddev_Pop_Fields = { - __typename?: 'chain_link_proof_stddev_pop_fields'; - chain_link_id?: Maybe; - height?: Maybe; - id?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Chain_Link_Proof_Stddev_Samp_Fields = { - __typename?: 'chain_link_proof_stddev_samp_fields'; - chain_link_id?: Maybe; - height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** aggregate sum on columns */ -export type Chain_Link_Proof_Sum_Fields = { - __typename?: 'chain_link_proof_sum_fields'; - chain_link_id?: Maybe; +/** aggregate min on columns */ +export type Double_Sign_Evidence_Min_Fields = { + __typename?: 'double_sign_evidence_min_fields'; height?: Maybe; - id?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Chain_Link_Proof_Var_Pop_Fields = { - __typename?: 'chain_link_proof_var_pop_fields'; - chain_link_id?: Maybe; - height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** aggregate var_samp on columns */ -export type Chain_Link_Proof_Var_Samp_Fields = { - __typename?: 'chain_link_proof_var_samp_fields'; - chain_link_id?: Maybe; - height?: Maybe; - id?: Maybe; +/** order by min() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Min_Order_By = { + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** aggregate variance on columns */ -export type Chain_Link_Proof_Variance_Fields = { - __typename?: 'chain_link_proof_variance_fields'; - chain_link_id?: Maybe; - height?: Maybe; - id?: Maybe; +/** Ordering options when selecting data from "double_sign_evidence". */ +export type Double_Sign_Evidence_Order_By = { + doubleSignVoteByVoteAId?: Maybe; + double_sign_vote?: Maybe; + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** select columns of table "chain_link" */ -export enum Chain_Link_Select_Column { - /** column name */ - ChainConfigId = 'chain_config_id', - /** column name */ - CreationTime = 'creation_time', - /** column name */ - ExternalAddress = 'external_address', +/** select columns of table "double_sign_evidence" */ +export enum Double_Sign_Evidence_Select_Column { /** column name */ Height = 'height', /** column name */ - Id = 'id', + VoteAId = 'vote_a_id', /** column name */ - UserAddress = 'user_address' + VoteBId = 'vote_b_id' } /** aggregate stddev on columns */ -export type Chain_Link_Stddev_Fields = { - __typename?: 'chain_link_stddev_fields'; - chain_config_id?: Maybe; +export type Double_Sign_Evidence_Stddev_Fields = { + __typename?: 'double_sign_evidence_stddev_fields'; height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** order by stddev() on columns of table "chain_link" */ -export type Chain_Link_Stddev_Order_By = { - chain_config_id?: Maybe; +/** order by stddev() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Stddev_Order_By = { height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Chain_Link_Stddev_Pop_Fields = { - __typename?: 'chain_link_stddev_pop_fields'; - chain_config_id?: Maybe; +export type Double_Sign_Evidence_Stddev_Pop_Fields = { + __typename?: 'double_sign_evidence_stddev_pop_fields'; height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** order by stddev_pop() on columns of table "chain_link" */ -export type Chain_Link_Stddev_Pop_Order_By = { - chain_config_id?: Maybe; +/** order by stddev_pop() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Stddev_Pop_Order_By = { height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Chain_Link_Stddev_Samp_Fields = { - __typename?: 'chain_link_stddev_samp_fields'; - chain_config_id?: Maybe; +export type Double_Sign_Evidence_Stddev_Samp_Fields = { + __typename?: 'double_sign_evidence_stddev_samp_fields'; height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** order by stddev_samp() on columns of table "chain_link" */ -export type Chain_Link_Stddev_Samp_Order_By = { - chain_config_id?: Maybe; +/** order by stddev_samp() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Stddev_Samp_Order_By = { height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; /** aggregate sum on columns */ -export type Chain_Link_Sum_Fields = { - __typename?: 'chain_link_sum_fields'; - chain_config_id?: Maybe; +export type Double_Sign_Evidence_Sum_Fields = { + __typename?: 'double_sign_evidence_sum_fields'; height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** order by sum() on columns of table "chain_link" */ -export type Chain_Link_Sum_Order_By = { - chain_config_id?: Maybe; +/** order by sum() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Sum_Order_By = { height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; /** aggregate var_pop on columns */ -export type Chain_Link_Var_Pop_Fields = { - __typename?: 'chain_link_var_pop_fields'; - chain_config_id?: Maybe; +export type Double_Sign_Evidence_Var_Pop_Fields = { + __typename?: 'double_sign_evidence_var_pop_fields'; height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** order by var_pop() on columns of table "chain_link" */ -export type Chain_Link_Var_Pop_Order_By = { - chain_config_id?: Maybe; +/** order by var_pop() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Var_Pop_Order_By = { height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; /** aggregate var_samp on columns */ -export type Chain_Link_Var_Samp_Fields = { - __typename?: 'chain_link_var_samp_fields'; - chain_config_id?: Maybe; +export type Double_Sign_Evidence_Var_Samp_Fields = { + __typename?: 'double_sign_evidence_var_samp_fields'; height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** order by var_samp() on columns of table "chain_link" */ -export type Chain_Link_Var_Samp_Order_By = { - chain_config_id?: Maybe; +/** order by var_samp() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Var_Samp_Order_By = { height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; /** aggregate variance on columns */ -export type Chain_Link_Variance_Fields = { - __typename?: 'chain_link_variance_fields'; - chain_config_id?: Maybe; +export type Double_Sign_Evidence_Variance_Fields = { + __typename?: 'double_sign_evidence_variance_fields'; height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** order by variance() on columns of table "chain_link" */ -export type Chain_Link_Variance_Order_By = { - chain_config_id?: Maybe; +/** order by variance() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Variance_Order_By = { height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; - -/** Boolean expression to compare columns of type "coin". All fields are combined with logical 'AND'. */ -export type Coin_Comparison_Exp = { - _eq?: Maybe; - _gt?: Maybe; - _gte?: Maybe; - _in?: Maybe>; - _is_null?: Maybe; - _lt?: Maybe; - _lte?: Maybe; - _neq?: Maybe; - _nin?: Maybe>; +/** 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 aggregate relationship */ + doubleSignEvidencesByVoteBId_aggregate: Double_Sign_Evidence_Aggregate; + /** An array relationship */ + double_sign_evidences: Array; + /** An aggregate relationship */ + double_sign_evidences_aggregate: Double_Sign_Evidence_Aggregate; + height: Scalars['bigint']; + id: Scalars['Int']; + 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 "community_pool" */ -export type Community_Pool = { - __typename?: 'community_pool'; - coins: Scalars['_dec_coin']; - height: Scalars['bigint']; + +/** columns and relationships of "double_sign_vote" */ +export type Double_Sign_VoteDoubleSignEvidencesByVoteBIdArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregated selection of "community_pool" */ -export type Community_Pool_Aggregate = { - __typename?: 'community_pool_aggregate'; - aggregate?: Maybe; - nodes: Array; + +/** columns and relationships of "double_sign_vote" */ +export type Double_Sign_VoteDoubleSignEvidencesByVoteBId_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate fields of "community_pool" */ -export type Community_Pool_Aggregate_Fields = { - __typename?: 'community_pool_aggregate_fields'; - avg?: Maybe; + +/** columns and relationships of "double_sign_vote" */ +export type Double_Sign_VoteDouble_Sign_EvidencesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "double_sign_vote" */ +export type Double_Sign_VoteDouble_Sign_Evidences_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + +/** aggregated selection of "double_sign_vote" */ +export type Double_Sign_Vote_Aggregate = { + __typename?: 'double_sign_vote_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "double_sign_vote" */ +export type Double_Sign_Vote_Aggregate_Fields = { + __typename?: 'double_sign_vote_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; + 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 "community_pool" */ -export type Community_Pool_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "double_sign_vote" */ +export type Double_Sign_Vote_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; +/** order by aggregate values of table "double_sign_vote" */ +export type Double_Sign_Vote_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + /** aggregate avg on columns */ -export type Community_Pool_Avg_Fields = { - __typename?: 'community_pool_avg_fields'; +export type Double_Sign_Vote_Avg_Fields = { + __typename?: 'double_sign_vote_avg_fields'; height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - coins?: Maybe<_Dec_Coin_Comparison_Exp>; +/** order by avg() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Avg_Order_By = { + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + block_id?: Maybe; + doubleSignEvidencesByVoteBId?: Maybe; + double_sign_evidences?: Maybe; height?: Maybe; + id?: Maybe; + round?: Maybe; + signature?: Maybe; + type?: Maybe; + validator?: Maybe; + validator_address?: Maybe; + validator_index?: Maybe; }; /** aggregate max on columns */ -export type Community_Pool_Max_Fields = { - __typename?: 'community_pool_max_fields'; +export type Double_Sign_Vote_Max_Fields = { + __typename?: 'double_sign_vote_max_fields'; + block_id?: Maybe; height?: Maybe; + id?: Maybe; + round?: Maybe; + signature?: Maybe; + type?: Maybe; + validator_address?: Maybe; + validator_index?: Maybe; +}; + +/** order by max() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Max_Order_By = { + block_id?: Maybe; + height?: Maybe; + id?: Maybe; + round?: Maybe; + signature?: Maybe; + type?: Maybe; + validator_address?: Maybe; + validator_index?: Maybe; }; /** aggregate min on columns */ -export type Community_Pool_Min_Fields = { - __typename?: 'community_pool_min_fields'; +export type Double_Sign_Vote_Min_Fields = { + __typename?: 'double_sign_vote_min_fields'; + block_id?: Maybe; height?: Maybe; + id?: Maybe; + round?: Maybe; + signature?: Maybe; + type?: Maybe; + validator_address?: Maybe; + validator_index?: Maybe; }; -/** Ordering options when selecting data from "community_pool". */ -export type Community_Pool_Order_By = { - coins?: Maybe; +/** order by min() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Min_Order_By = { + block_id?: Maybe; height?: Maybe; + id?: Maybe; + round?: Maybe; + signature?: Maybe; + type?: Maybe; + validator_address?: Maybe; + validator_index?: Maybe; }; -/** select columns of table "community_pool" */ -export enum Community_Pool_Select_Column { +/** Ordering options when selecting data from "double_sign_vote". */ +export type Double_Sign_Vote_Order_By = { + block_id?: Maybe; + doubleSignEvidencesByVoteBId_aggregate?: Maybe; + double_sign_evidences_aggregate?: Maybe; + height?: Maybe; + id?: Maybe; + round?: Maybe; + signature?: Maybe; + type?: Maybe; + validator?: Maybe; + validator_address?: Maybe; + validator_index?: Maybe; +}; + +/** select columns of table "double_sign_vote" */ +export enum Double_Sign_Vote_Select_Column { /** column name */ - Coins = 'coins', + BlockId = 'block_id', /** column name */ - Height = 'height' + Height = 'height', + /** column name */ + Id = 'id', + /** column name */ + Round = 'round', + /** column name */ + Signature = 'signature', + /** column name */ + Type = 'type', + /** column name */ + ValidatorAddress = 'validator_address', + /** column name */ + ValidatorIndex = 'validator_index' } /** aggregate stddev on columns */ -export type Community_Pool_Stddev_Fields = { - __typename?: 'community_pool_stddev_fields'; +export type Double_Sign_Vote_Stddev_Fields = { + __typename?: 'double_sign_vote_stddev_fields'; height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Community_Pool_Stddev_Pop_Fields = { - __typename?: 'community_pool_stddev_pop_fields'; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** order by stddev() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Stddev_Order_By = { + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Double_Sign_Vote_Stddev_Pop_Fields = { + __typename?: 'double_sign_vote_stddev_pop_fields'; height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** order by stddev_pop() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Stddev_Pop_Order_By = { + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Community_Pool_Stddev_Samp_Fields = { - __typename?: 'community_pool_stddev_samp_fields'; +export type Double_Sign_Vote_Stddev_Samp_Fields = { + __typename?: 'double_sign_vote_stddev_samp_fields'; height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** order by stddev_samp() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Stddev_Samp_Order_By = { + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; /** aggregate sum on columns */ -export type Community_Pool_Sum_Fields = { - __typename?: 'community_pool_sum_fields'; +export type Double_Sign_Vote_Sum_Fields = { + __typename?: 'double_sign_vote_sum_fields'; height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** order by sum() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Sum_Order_By = { + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; /** aggregate var_pop on columns */ -export type Community_Pool_Var_Pop_Fields = { - __typename?: 'community_pool_var_pop_fields'; +export type Double_Sign_Vote_Var_Pop_Fields = { + __typename?: 'double_sign_vote_var_pop_fields'; height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** order by var_pop() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Var_Pop_Order_By = { + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; /** aggregate var_samp on columns */ -export type Community_Pool_Var_Samp_Fields = { - __typename?: 'community_pool_var_samp_fields'; +export type Double_Sign_Vote_Var_Samp_Fields = { + __typename?: 'double_sign_vote_var_samp_fields'; height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** order by var_samp() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Var_Samp_Order_By = { + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; /** aggregate variance on columns */ -export type Community_Pool_Variance_Fields = { - __typename?: 'community_pool_variance_fields'; +export type Double_Sign_Vote_Variance_Fields = { + __typename?: 'double_sign_vote_variance_fields'; height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; -/** columns and relationships of "delegation" */ -export type Delegation = { - __typename?: 'delegation'; +/** order by variance() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Variance_Order_By = { + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** columns and relationships of "fee_grant_allowance" */ +export type Fee_Grant_Allowance = { + __typename?: 'fee_grant_allowance'; + allowance: Scalars['jsonb']; /** An object relationship */ - account: Account; - amount: Scalars['coin']; - delegator_address: Scalars['String']; + grantee: Account; + grantee_address: Scalars['String']; + /** An object relationship */ + granter: Account; + granter_address: Scalars['String']; height: Scalars['bigint']; id: Scalars['Int']; - /** A computed field, executes function "is_delegation_self_delegate" */ - is_self_delegate?: Maybe; - /** An object relationship */ - validator: Validator; - validator_address: Scalars['String']; }; -/** aggregated selection of "delegation" */ -export type Delegation_Aggregate = { - __typename?: 'delegation_aggregate'; - aggregate?: Maybe; - nodes: Array; + +/** columns and relationships of "fee_grant_allowance" */ +export type Fee_Grant_AllowanceAllowanceArgs = { + path?: Maybe; }; -/** aggregate fields of "delegation" */ -export type Delegation_Aggregate_Fields = { - __typename?: 'delegation_aggregate_fields'; - avg?: Maybe; +/** aggregated selection of "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Aggregate = { + __typename?: 'fee_grant_allowance_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Aggregate_Fields = { + __typename?: 'fee_grant_allowance_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; + 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 "delegation" */ -export type Delegation_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "delegation" */ -export type Delegation_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - /** aggregate avg on columns */ -export type Delegation_Avg_Fields = { - __typename?: 'delegation_avg_fields'; +export type Fee_Grant_Allowance_Avg_Fields = { + __typename?: 'fee_grant_allowance_avg_fields'; height?: Maybe; id?: Maybe; }; -/** order by avg() on columns of table "delegation" */ -export type Delegation_Avg_Order_By = { - height?: Maybe; - id?: Maybe; -}; - -/** Boolean expression to filter rows from the table "delegation". All fields are combined with a logical 'AND'. */ -export type Delegation_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account?: Maybe; - amount?: Maybe; - delegator_address?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + allowance?: Maybe; + grantee?: Maybe; + grantee_address?: Maybe; + granter?: Maybe; + granter_address?: Maybe; height?: Maybe; id?: Maybe; - is_self_delegate?: Maybe; - validator?: Maybe; - validator_address?: Maybe; }; /** aggregate max on columns */ -export type Delegation_Max_Fields = { - __typename?: 'delegation_max_fields'; - delegator_address?: Maybe; +export type Fee_Grant_Allowance_Max_Fields = { + __typename?: 'fee_grant_allowance_max_fields'; + grantee_address?: Maybe; + granter_address?: Maybe; height?: Maybe; id?: Maybe; - validator_address?: Maybe; -}; - -/** order by max() on columns of table "delegation" */ -export type Delegation_Max_Order_By = { - delegator_address?: Maybe; - height?: Maybe; - id?: Maybe; - validator_address?: Maybe; }; /** aggregate min on columns */ -export type Delegation_Min_Fields = { - __typename?: 'delegation_min_fields'; - delegator_address?: Maybe; +export type Fee_Grant_Allowance_Min_Fields = { + __typename?: 'fee_grant_allowance_min_fields'; + grantee_address?: Maybe; + granter_address?: Maybe; height?: Maybe; id?: Maybe; - validator_address?: Maybe; }; -/** order by min() on columns of table "delegation" */ -export type Delegation_Min_Order_By = { - delegator_address?: Maybe; - height?: Maybe; - id?: Maybe; - validator_address?: Maybe; -}; - -/** Ordering options when selecting data from "delegation". */ -export type Delegation_Order_By = { - account?: Maybe; - amount?: Maybe; - delegator_address?: Maybe; +/** Ordering options when selecting data from "fee_grant_allowance". */ +export type Fee_Grant_Allowance_Order_By = { + allowance?: Maybe; + grantee?: Maybe; + grantee_address?: Maybe; + granter?: Maybe; + granter_address?: Maybe; height?: Maybe; id?: Maybe; - validator?: Maybe; - validator_address?: Maybe; -}; - -/** columns and relationships of "delegation_reward" */ -export type Delegation_Reward = { - __typename?: 'delegation_reward'; - /** An object relationship */ - account: Account; - amount: Scalars['_dec_coin']; - delegator_address: Scalars['String']; - height: Scalars['bigint']; - /** An object relationship */ - validator: Validator; - validator_address: Scalars['String']; - withdraw_address: Scalars['String']; -}; - -/** aggregated selection of "delegation_reward" */ -export type Delegation_Reward_Aggregate = { - __typename?: 'delegation_reward_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "delegation_reward" */ -export type Delegation_Reward_Aggregate_Fields = { - __typename?: 'delegation_reward_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 "delegation_reward" */ -export type Delegation_Reward_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "delegation_reward" */ -export type Delegation_Reward_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Delegation_Reward_Avg_Fields = { - __typename?: 'delegation_reward_avg_fields'; - height?: Maybe; -}; - -/** order by avg() on columns of table "delegation_reward" */ -export type Delegation_Reward_Avg_Order_By = { - height?: Maybe; -}; - -/** Boolean expression to filter rows from the table "delegation_reward". All fields are combined with a logical 'AND'. */ -export type Delegation_Reward_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account?: Maybe; - amount?: Maybe<_Dec_Coin_Comparison_Exp>; - delegator_address?: Maybe; - height?: Maybe; - validator?: Maybe; - validator_address?: Maybe; - withdraw_address?: Maybe; -}; - -/** aggregate max on columns */ -export type Delegation_Reward_Max_Fields = { - __typename?: 'delegation_reward_max_fields'; - delegator_address?: Maybe; - height?: Maybe; - validator_address?: Maybe; - withdraw_address?: Maybe; -}; - -/** order by max() on columns of table "delegation_reward" */ -export type Delegation_Reward_Max_Order_By = { - delegator_address?: Maybe; - height?: Maybe; - validator_address?: Maybe; - withdraw_address?: Maybe; -}; - -/** aggregate min on columns */ -export type Delegation_Reward_Min_Fields = { - __typename?: 'delegation_reward_min_fields'; - delegator_address?: Maybe; - height?: Maybe; - validator_address?: Maybe; - withdraw_address?: Maybe; -}; - -/** order by min() on columns of table "delegation_reward" */ -export type Delegation_Reward_Min_Order_By = { - delegator_address?: Maybe; - height?: Maybe; - validator_address?: Maybe; - withdraw_address?: Maybe; -}; - -/** Ordering options when selecting data from "delegation_reward". */ -export type Delegation_Reward_Order_By = { - account?: Maybe; - amount?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - validator?: Maybe; - validator_address?: Maybe; - withdraw_address?: Maybe; }; -/** select columns of table "delegation_reward" */ -export enum Delegation_Reward_Select_Column { +/** select columns of table "fee_grant_allowance" */ +export enum Fee_Grant_Allowance_Select_Column { /** column name */ - Amount = 'amount', + Allowance = 'allowance', /** column name */ - DelegatorAddress = 'delegator_address', + GranteeAddress = 'grantee_address', /** column name */ - Height = 'height', + GranterAddress = 'granter_address', /** column name */ - ValidatorAddress = 'validator_address', + Height = 'height', /** column name */ - WithdrawAddress = 'withdraw_address' + Id = 'id' } /** aggregate stddev on columns */ -export type Delegation_Reward_Stddev_Fields = { - __typename?: 'delegation_reward_stddev_fields'; +export type Fee_Grant_Allowance_Stddev_Fields = { + __typename?: 'fee_grant_allowance_stddev_fields'; height?: Maybe; -}; - -/** order by stddev() on columns of table "delegation_reward" */ -export type Delegation_Reward_Stddev_Order_By = { - height?: Maybe; + id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Delegation_Reward_Stddev_Pop_Fields = { - __typename?: 'delegation_reward_stddev_pop_fields'; +export type Fee_Grant_Allowance_Stddev_Pop_Fields = { + __typename?: 'fee_grant_allowance_stddev_pop_fields'; height?: Maybe; -}; - -/** order by stddev_pop() on columns of table "delegation_reward" */ -export type Delegation_Reward_Stddev_Pop_Order_By = { - height?: Maybe; + id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Delegation_Reward_Stddev_Samp_Fields = { - __typename?: 'delegation_reward_stddev_samp_fields'; +export type Fee_Grant_Allowance_Stddev_Samp_Fields = { + __typename?: 'fee_grant_allowance_stddev_samp_fields'; height?: Maybe; -}; - -/** order by stddev_samp() on columns of table "delegation_reward" */ -export type Delegation_Reward_Stddev_Samp_Order_By = { - height?: Maybe; + id?: Maybe; }; /** aggregate sum on columns */ -export type Delegation_Reward_Sum_Fields = { - __typename?: 'delegation_reward_sum_fields'; +export type Fee_Grant_Allowance_Sum_Fields = { + __typename?: 'fee_grant_allowance_sum_fields'; height?: Maybe; -}; - -/** order by sum() on columns of table "delegation_reward" */ -export type Delegation_Reward_Sum_Order_By = { - height?: Maybe; + id?: Maybe; }; /** aggregate var_pop on columns */ -export type Delegation_Reward_Var_Pop_Fields = { - __typename?: 'delegation_reward_var_pop_fields'; +export type Fee_Grant_Allowance_Var_Pop_Fields = { + __typename?: 'fee_grant_allowance_var_pop_fields'; height?: Maybe; -}; - -/** order by var_pop() on columns of table "delegation_reward" */ -export type Delegation_Reward_Var_Pop_Order_By = { - height?: Maybe; + id?: Maybe; }; /** aggregate var_samp on columns */ -export type Delegation_Reward_Var_Samp_Fields = { - __typename?: 'delegation_reward_var_samp_fields'; +export type Fee_Grant_Allowance_Var_Samp_Fields = { + __typename?: 'fee_grant_allowance_var_samp_fields'; height?: Maybe; -}; - -/** order by var_samp() on columns of table "delegation_reward" */ -export type Delegation_Reward_Var_Samp_Order_By = { - height?: Maybe; + id?: Maybe; }; /** aggregate variance on columns */ -export type Delegation_Reward_Variance_Fields = { - __typename?: 'delegation_reward_variance_fields'; +export type Fee_Grant_Allowance_Variance_Fields = { + __typename?: 'fee_grant_allowance_variance_fields'; height?: Maybe; + id?: Maybe; }; -/** order by variance() on columns of table "delegation_reward" */ -export type Delegation_Reward_Variance_Order_By = { - height?: Maybe; +/** columns and relationships of "genesis" */ +export type Genesis = { + __typename?: 'genesis'; + chain_id: Scalars['String']; + initial_height: Scalars['bigint']; + time: Scalars['timestamp']; }; -/** select columns of table "delegation" */ -export enum Delegation_Select_Column { - /** column name */ - Amount = 'amount', - /** column name */ - DelegatorAddress = 'delegator_address', - /** column name */ - Height = 'height', - /** column name */ - Id = 'id', - /** column name */ - ValidatorAddress = 'validator_address' -} +/** aggregated selection of "genesis" */ +export type Genesis_Aggregate = { + __typename?: 'genesis_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; -/** aggregate stddev on columns */ -export type Delegation_Stddev_Fields = { - __typename?: 'delegation_stddev_fields'; - height?: Maybe; - id?: Maybe; +/** aggregate fields of "genesis" */ +export type Genesis_Aggregate_Fields = { + __typename?: 'genesis_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; }; -/** order by stddev() on columns of table "delegation" */ -export type Delegation_Stddev_Order_By = { - height?: Maybe; - id?: Maybe; + +/** aggregate fields of "genesis" */ +export type Genesis_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Delegation_Stddev_Pop_Fields = { - __typename?: 'delegation_stddev_pop_fields'; - height?: Maybe; - id?: Maybe; +/** aggregate avg on columns */ +export type Genesis_Avg_Fields = { + __typename?: 'genesis_avg_fields'; + initial_height?: Maybe; }; -/** order by stddev_pop() on columns of table "delegation" */ -export type Delegation_Stddev_Pop_Order_By = { - height?: Maybe; - id?: Maybe; +/** Boolean expression to filter rows from the table "genesis". All fields are combined with a logical 'AND'. */ +export type Genesis_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + chain_id?: Maybe; + initial_height?: Maybe; + time?: Maybe; }; -/** aggregate stddev_samp on columns */ -export type Delegation_Stddev_Samp_Fields = { - __typename?: 'delegation_stddev_samp_fields'; - height?: Maybe; - id?: Maybe; +/** aggregate max on columns */ +export type Genesis_Max_Fields = { + __typename?: 'genesis_max_fields'; + chain_id?: Maybe; + initial_height?: Maybe; + time?: Maybe; }; -/** order by stddev_samp() on columns of table "delegation" */ -export type Delegation_Stddev_Samp_Order_By = { - height?: Maybe; - id?: Maybe; +/** aggregate min on columns */ +export type Genesis_Min_Fields = { + __typename?: 'genesis_min_fields'; + chain_id?: Maybe; + initial_height?: Maybe; + time?: Maybe; }; -/** aggregate sum on columns */ -export type Delegation_Sum_Fields = { - __typename?: 'delegation_sum_fields'; - height?: Maybe; - id?: Maybe; +/** Ordering options when selecting data from "genesis". */ +export type Genesis_Order_By = { + chain_id?: Maybe; + initial_height?: Maybe; + time?: Maybe; }; -/** order by sum() on columns of table "delegation" */ -export type Delegation_Sum_Order_By = { - height?: Maybe; - id?: Maybe; +/** select columns of table "genesis" */ +export enum Genesis_Select_Column { + /** column name */ + ChainId = 'chain_id', + /** column name */ + InitialHeight = 'initial_height', + /** column name */ + Time = 'time' +} + +/** aggregate stddev on columns */ +export type Genesis_Stddev_Fields = { + __typename?: 'genesis_stddev_fields'; + initial_height?: Maybe; }; -/** aggregate var_pop on columns */ -export type Delegation_Var_Pop_Fields = { - __typename?: 'delegation_var_pop_fields'; - height?: Maybe; - id?: Maybe; +/** aggregate stddev_pop on columns */ +export type Genesis_Stddev_Pop_Fields = { + __typename?: 'genesis_stddev_pop_fields'; + initial_height?: Maybe; }; -/** order by var_pop() on columns of table "delegation" */ -export type Delegation_Var_Pop_Order_By = { - height?: Maybe; - id?: Maybe; +/** aggregate stddev_samp on columns */ +export type Genesis_Stddev_Samp_Fields = { + __typename?: 'genesis_stddev_samp_fields'; + initial_height?: Maybe; }; -/** aggregate var_samp on columns */ -export type Delegation_Var_Samp_Fields = { - __typename?: 'delegation_var_samp_fields'; - height?: Maybe; - id?: Maybe; +/** aggregate sum on columns */ +export type Genesis_Sum_Fields = { + __typename?: 'genesis_sum_fields'; + initial_height?: Maybe; }; -/** order by var_samp() on columns of table "delegation" */ -export type Delegation_Var_Samp_Order_By = { - height?: Maybe; - id?: Maybe; +/** aggregate var_pop on columns */ +export type Genesis_Var_Pop_Fields = { + __typename?: 'genesis_var_pop_fields'; + initial_height?: Maybe; }; -/** aggregate variance on columns */ -export type Delegation_Variance_Fields = { - __typename?: 'delegation_variance_fields'; - height?: Maybe; - id?: Maybe; +/** aggregate var_samp on columns */ +export type Genesis_Var_Samp_Fields = { + __typename?: 'genesis_var_samp_fields'; + initial_height?: Maybe; }; -/** order by variance() on columns of table "delegation" */ -export type Delegation_Variance_Order_By = { - height?: Maybe; - id?: Maybe; +/** aggregate variance on columns */ +export type Genesis_Variance_Fields = { + __typename?: 'genesis_variance_fields'; + initial_height?: Maybe; }; -/** columns and relationships of "distribution_params" */ -export type Distribution_Params = { - __typename?: 'distribution_params'; +/** columns and relationships of "gov_params" */ +export type Gov_Params = { + __typename?: 'gov_params'; + deposit_params: Scalars['jsonb']; height: Scalars['bigint']; one_row_id: Scalars['Boolean']; - params: Scalars['jsonb']; + tally_params: Scalars['jsonb']; + voting_params: Scalars['jsonb']; }; -/** columns and relationships of "distribution_params" */ -export type Distribution_ParamsParamsArgs = { +/** columns and relationships of "gov_params" */ +export type Gov_ParamsDeposit_ParamsArgs = { path?: Maybe; }; -/** aggregated selection of "distribution_params" */ -export type Distribution_Params_Aggregate = { - __typename?: 'distribution_params_aggregate'; - aggregate?: Maybe; - nodes: Array; + +/** columns and relationships of "gov_params" */ +export type Gov_ParamsTally_ParamsArgs = { + path?: Maybe; }; -/** aggregate fields of "distribution_params" */ -export type Distribution_Params_Aggregate_Fields = { - __typename?: 'distribution_params_aggregate_fields'; - avg?: Maybe; + +/** columns and relationships of "gov_params" */ +export type Gov_ParamsVoting_ParamsArgs = { + path?: Maybe; +}; + +/** aggregated selection of "gov_params" */ +export type Gov_Params_Aggregate = { + __typename?: 'gov_params_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "gov_params" */ +export type Gov_Params_Aggregate_Fields = { + __typename?: 'gov_params_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; + 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 "distribution_params" */ -export type Distribution_Params_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "gov_params" */ +export type Gov_Params_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; /** aggregate avg on columns */ -export type Distribution_Params_Avg_Fields = { - __typename?: 'distribution_params_avg_fields'; +export type Gov_Params_Avg_Fields = { + __typename?: 'gov_params_avg_fields'; height?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + deposit_params?: Maybe; height?: Maybe; one_row_id?: Maybe; - params?: Maybe; + tally_params?: Maybe; + voting_params?: Maybe; }; /** aggregate max on columns */ -export type Distribution_Params_Max_Fields = { - __typename?: 'distribution_params_max_fields'; +export type Gov_Params_Max_Fields = { + __typename?: 'gov_params_max_fields'; height?: Maybe; }; /** aggregate min on columns */ -export type Distribution_Params_Min_Fields = { - __typename?: 'distribution_params_min_fields'; +export type Gov_Params_Min_Fields = { + __typename?: 'gov_params_min_fields'; height?: Maybe; }; -/** Ordering options when selecting data from "distribution_params". */ -export type Distribution_Params_Order_By = { +/** Ordering options when selecting data from "gov_params". */ +export type Gov_Params_Order_By = { + deposit_params?: Maybe; height?: Maybe; one_row_id?: Maybe; - params?: Maybe; + tally_params?: Maybe; + voting_params?: Maybe; }; -/** select columns of table "distribution_params" */ -export enum Distribution_Params_Select_Column { +/** select columns of table "gov_params" */ +export enum Gov_Params_Select_Column { + /** column name */ + DepositParams = 'deposit_params', /** column name */ Height = 'height', /** column name */ OneRowId = 'one_row_id', /** column name */ - Params = 'params' -} - + TallyParams = 'tally_params', + /** column name */ + VotingParams = 'voting_params' +} + /** aggregate stddev on columns */ -export type Distribution_Params_Stddev_Fields = { - __typename?: 'distribution_params_stddev_fields'; +export type Gov_Params_Stddev_Fields = { + __typename?: 'gov_params_stddev_fields'; height?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Distribution_Params_Stddev_Pop_Fields = { - __typename?: 'distribution_params_stddev_pop_fields'; +export type Gov_Params_Stddev_Pop_Fields = { + __typename?: 'gov_params_stddev_pop_fields'; height?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Distribution_Params_Stddev_Samp_Fields = { - __typename?: 'distribution_params_stddev_samp_fields'; +export type Gov_Params_Stddev_Samp_Fields = { + __typename?: 'gov_params_stddev_samp_fields'; height?: Maybe; }; /** aggregate sum on columns */ -export type Distribution_Params_Sum_Fields = { - __typename?: 'distribution_params_sum_fields'; +export type Gov_Params_Sum_Fields = { + __typename?: 'gov_params_sum_fields'; height?: Maybe; }; /** aggregate var_pop on columns */ -export type Distribution_Params_Var_Pop_Fields = { - __typename?: 'distribution_params_var_pop_fields'; +export type Gov_Params_Var_Pop_Fields = { + __typename?: 'gov_params_var_pop_fields'; height?: Maybe; }; /** aggregate var_samp on columns */ -export type Distribution_Params_Var_Samp_Fields = { - __typename?: 'distribution_params_var_samp_fields'; +export type Gov_Params_Var_Samp_Fields = { + __typename?: 'gov_params_var_samp_fields'; height?: Maybe; }; /** aggregate variance on columns */ -export type Distribution_Params_Variance_Fields = { - __typename?: 'distribution_params_variance_fields'; +export type Gov_Params_Variance_Fields = { + __typename?: 'gov_params_variance_fields'; height?: Maybe; }; -/** 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; +/** columns and relationships of "inflation" */ +export type Inflation = { + __typename?: 'inflation'; height: Scalars['bigint']; - vote_a_id: Scalars['bigint']; - vote_b_id: Scalars['bigint']; + value: Scalars['numeric']; }; -/** aggregated selection of "double_sign_evidence" */ -export type Double_Sign_Evidence_Aggregate = { - __typename?: 'double_sign_evidence_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "inflation" */ +export type Inflation_Aggregate = { + __typename?: 'inflation_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "double_sign_evidence" */ -export type Double_Sign_Evidence_Aggregate_Fields = { - __typename?: 'double_sign_evidence_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "inflation" */ +export type Inflation_Aggregate_Fields = { + __typename?: 'inflation_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; + 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 "double_sign_evidence" */ -export type Double_Sign_Evidence_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "inflation" */ +export type Inflation_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - /** aggregate avg on columns */ -export type Double_Sign_Evidence_Avg_Fields = { - __typename?: 'double_sign_evidence_avg_fields'; +export type Inflation_Avg_Fields = { + __typename?: 'inflation_avg_fields'; height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** order by avg() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Avg_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; + value?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - doubleSignVoteByVoteAId?: Maybe; - double_sign_vote?: Maybe; +/** Boolean expression to filter rows from the table "inflation". All fields are combined with a logical 'AND'. */ +export type Inflation_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; + value?: Maybe; }; /** aggregate max on columns */ -export type Double_Sign_Evidence_Max_Fields = { - __typename?: 'double_sign_evidence_max_fields'; +export type Inflation_Max_Fields = { + __typename?: 'inflation_max_fields'; height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** order by max() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Max_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; + value?: Maybe; }; /** aggregate min on columns */ -export type Double_Sign_Evidence_Min_Fields = { - __typename?: 'double_sign_evidence_min_fields'; +export type Inflation_Min_Fields = { + __typename?: 'inflation_min_fields'; height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** order by min() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Min_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; + value?: Maybe; }; -/** Ordering options when selecting data from "double_sign_evidence". */ -export type Double_Sign_Evidence_Order_By = { - doubleSignVoteByVoteAId?: Maybe; - double_sign_vote?: Maybe; +/** Ordering options when selecting data from "inflation". */ +export type Inflation_Order_By = { height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; + value?: Maybe; }; -/** select columns of table "double_sign_evidence" */ -export enum Double_Sign_Evidence_Select_Column { +/** select columns of table "inflation" */ +export enum Inflation_Select_Column { /** column name */ Height = 'height', /** column name */ - VoteAId = 'vote_a_id', - /** column name */ - VoteBId = 'vote_b_id' + Value = 'value' } /** aggregate stddev on columns */ -export type Double_Sign_Evidence_Stddev_Fields = { - __typename?: 'double_sign_evidence_stddev_fields'; +export type Inflation_Stddev_Fields = { + __typename?: 'inflation_stddev_fields'; height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** order by stddev() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Stddev_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; + value?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Double_Sign_Evidence_Stddev_Pop_Fields = { - __typename?: 'double_sign_evidence_stddev_pop_fields'; +export type Inflation_Stddev_Pop_Fields = { + __typename?: 'inflation_stddev_pop_fields'; height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** order by stddev_pop() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Stddev_Pop_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; + value?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Double_Sign_Evidence_Stddev_Samp_Fields = { - __typename?: 'double_sign_evidence_stddev_samp_fields'; +export type Inflation_Stddev_Samp_Fields = { + __typename?: 'inflation_stddev_samp_fields'; height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** order by stddev_samp() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Stddev_Samp_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; + value?: Maybe; }; /** aggregate sum on columns */ -export type Double_Sign_Evidence_Sum_Fields = { - __typename?: 'double_sign_evidence_sum_fields'; +export type Inflation_Sum_Fields = { + __typename?: 'inflation_sum_fields'; height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** order by sum() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Sum_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; + value?: Maybe; }; /** aggregate var_pop on columns */ -export type Double_Sign_Evidence_Var_Pop_Fields = { - __typename?: 'double_sign_evidence_var_pop_fields'; +export type Inflation_Var_Pop_Fields = { + __typename?: 'inflation_var_pop_fields'; height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** order by var_pop() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Var_Pop_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; + value?: Maybe; }; /** aggregate var_samp on columns */ -export type Double_Sign_Evidence_Var_Samp_Fields = { - __typename?: 'double_sign_evidence_var_samp_fields'; +export type Inflation_Var_Samp_Fields = { + __typename?: 'inflation_var_samp_fields'; height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** order by var_samp() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Var_Samp_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; + value?: Maybe; }; /** aggregate variance on columns */ -export type Double_Sign_Evidence_Variance_Fields = { - __typename?: 'double_sign_evidence_variance_fields'; +export type Inflation_Variance_Fields = { + __typename?: 'inflation_variance_fields'; height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** order by variance() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Variance_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** 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 aggregate relationship */ - doubleSignEvidencesByVoteBId_aggregate: Double_Sign_Evidence_Aggregate; - /** An array relationship */ - double_sign_evidences: Array; - /** An aggregate relationship */ - double_sign_evidences_aggregate: Double_Sign_Evidence_Aggregate; - height: Scalars['bigint']; - id: Scalars['Int']; - 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?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + value?: Maybe; }; -/** columns and relationships of "double_sign_vote" */ -export type Double_Sign_VoteDoubleSignEvidencesByVoteBId_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */ +export type Jsonb_Comparison_Exp = { + /** is the column contained in the given json value */ + _contained_in?: Maybe; + /** does the column contain the given json value at the top level */ + _contains?: Maybe; + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + /** does the string exist as a top-level key in the column */ + _has_key?: Maybe; + /** do all of these strings exist as top-level keys in the column */ + _has_keys_all?: Maybe>; + /** do any of these strings exist as top-level keys in the column */ + _has_keys_any?: Maybe>; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; }; - -/** columns and relationships of "double_sign_vote" */ -export type Double_Sign_VoteDouble_Sign_EvidencesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** columns and relationships of "message" */ +export type Message = { + __typename?: 'message'; + index: Scalars['bigint']; + involved_accounts_addresses?: Maybe; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']; + type: Scalars['String']; + value: Scalars['jsonb']; }; -/** columns and relationships of "double_sign_vote" */ -export type Double_Sign_VoteDouble_Sign_Evidences_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** columns and relationships of "message" */ +export type MessageValueArgs = { + path?: Maybe; }; -/** aggregated selection of "double_sign_vote" */ -export type Double_Sign_Vote_Aggregate = { - __typename?: 'double_sign_vote_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "message" */ +export type Message_Aggregate = { + __typename?: 'message_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "double_sign_vote" */ -export type Double_Sign_Vote_Aggregate_Fields = { - __typename?: 'double_sign_vote_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "message" */ +export type Message_Aggregate_Fields = { + __typename?: 'message_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; + 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 "double_sign_vote" */ -export type Double_Sign_Vote_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "message" */ +export type Message_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "double_sign_vote" */ -export type Double_Sign_Vote_Aggregate_Order_By = { - avg?: Maybe; +/** order by aggregate values of table "message" */ +export type Message_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate avg on columns */ -export type Double_Sign_Vote_Avg_Fields = { - __typename?: 'double_sign_vote_avg_fields'; - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +export type Message_Avg_Fields = { + __typename?: 'message_avg_fields'; + index?: Maybe; }; -/** order by avg() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Avg_Order_By = { - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +/** order by avg() on columns of table "message" */ +export type Message_Avg_Order_By = { + index?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - block_id?: Maybe; - doubleSignEvidencesByVoteBId?: Maybe; - double_sign_evidences?: Maybe; - height?: Maybe; - id?: Maybe; - round?: Maybe; - signature?: Maybe; - type?: Maybe; - validator?: Maybe; - validator_address?: Maybe; - validator_index?: Maybe; +/** Boolean expression to filter rows from the table "message". All fields are combined with a logical 'AND'. */ +export type Message_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + index?: Maybe; + involved_accounts_addresses?: Maybe<_Text_Comparison_Exp>; + transaction?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; + value?: Maybe; }; /** aggregate max on columns */ -export type Double_Sign_Vote_Max_Fields = { - __typename?: 'double_sign_vote_max_fields'; - block_id?: Maybe; - height?: Maybe; - id?: Maybe; - round?: Maybe; - signature?: Maybe; - type?: Maybe; - validator_address?: Maybe; - validator_index?: Maybe; +export type Message_Max_Fields = { + __typename?: 'message_max_fields'; + index?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; }; -/** order by max() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Max_Order_By = { - block_id?: Maybe; - height?: Maybe; - id?: Maybe; - round?: Maybe; - signature?: Maybe; +/** order by max() on columns of table "message" */ +export type Message_Max_Order_By = { + index?: Maybe; + transaction_hash?: Maybe; type?: Maybe; - validator_address?: Maybe; - validator_index?: Maybe; }; /** aggregate min on columns */ -export type Double_Sign_Vote_Min_Fields = { - __typename?: 'double_sign_vote_min_fields'; - block_id?: Maybe; - height?: Maybe; - id?: Maybe; - round?: Maybe; - signature?: Maybe; - type?: Maybe; - validator_address?: Maybe; - validator_index?: Maybe; +export type Message_Min_Fields = { + __typename?: 'message_min_fields'; + index?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; }; -/** order by min() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Min_Order_By = { - block_id?: Maybe; - height?: Maybe; - id?: Maybe; - round?: Maybe; - signature?: Maybe; +/** order by min() on columns of table "message" */ +export type Message_Min_Order_By = { + index?: Maybe; + transaction_hash?: Maybe; type?: Maybe; - validator_address?: Maybe; - validator_index?: Maybe; }; -/** Ordering options when selecting data from "double_sign_vote". */ -export type Double_Sign_Vote_Order_By = { - block_id?: Maybe; - doubleSignEvidencesByVoteBId_aggregate?: Maybe; - double_sign_evidences_aggregate?: Maybe; - height?: Maybe; - id?: Maybe; - round?: Maybe; - signature?: Maybe; +/** Ordering options when selecting data from "message". */ +export type Message_Order_By = { + index?: Maybe; + involved_accounts_addresses?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; type?: Maybe; - validator?: Maybe; - validator_address?: Maybe; - validator_index?: Maybe; + value?: Maybe; }; -/** select columns of table "double_sign_vote" */ -export enum Double_Sign_Vote_Select_Column { - /** column name */ - BlockId = 'block_id', - /** column name */ - Height = 'height', +/** select columns of table "message" */ +export enum Message_Select_Column { /** column name */ - Id = 'id', + Index = 'index', /** column name */ - Round = 'round', + InvolvedAccountsAddresses = 'involved_accounts_addresses', /** column name */ - Signature = 'signature', + TransactionHash = 'transaction_hash', /** column name */ Type = 'type', /** column name */ - ValidatorAddress = 'validator_address', - /** column name */ - ValidatorIndex = 'validator_index' + Value = 'value' } /** aggregate stddev on columns */ -export type Double_Sign_Vote_Stddev_Fields = { - __typename?: 'double_sign_vote_stddev_fields'; - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +export type Message_Stddev_Fields = { + __typename?: 'message_stddev_fields'; + index?: Maybe; }; -/** order by stddev() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Stddev_Order_By = { - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +/** order by stddev() on columns of table "message" */ +export type Message_Stddev_Order_By = { + index?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Double_Sign_Vote_Stddev_Pop_Fields = { - __typename?: 'double_sign_vote_stddev_pop_fields'; - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +export type Message_Stddev_Pop_Fields = { + __typename?: 'message_stddev_pop_fields'; + index?: Maybe; }; -/** order by stddev_pop() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Stddev_Pop_Order_By = { - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +/** order by stddev_pop() on columns of table "message" */ +export type Message_Stddev_Pop_Order_By = { + index?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Double_Sign_Vote_Stddev_Samp_Fields = { - __typename?: 'double_sign_vote_stddev_samp_fields'; - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +export type Message_Stddev_Samp_Fields = { + __typename?: 'message_stddev_samp_fields'; + index?: Maybe; }; -/** order by stddev_samp() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Stddev_Samp_Order_By = { - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +/** order by stddev_samp() on columns of table "message" */ +export type Message_Stddev_Samp_Order_By = { + index?: Maybe; }; /** aggregate sum on columns */ -export type Double_Sign_Vote_Sum_Fields = { - __typename?: 'double_sign_vote_sum_fields'; - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +export type Message_Sum_Fields = { + __typename?: 'message_sum_fields'; + index?: Maybe; }; -/** order by sum() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Sum_Order_By = { - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +/** order by sum() on columns of table "message" */ +export type Message_Sum_Order_By = { + index?: Maybe; }; /** aggregate var_pop on columns */ -export type Double_Sign_Vote_Var_Pop_Fields = { - __typename?: 'double_sign_vote_var_pop_fields'; - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +export type Message_Var_Pop_Fields = { + __typename?: 'message_var_pop_fields'; + index?: Maybe; }; -/** order by var_pop() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Var_Pop_Order_By = { - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +/** order by var_pop() on columns of table "message" */ +export type Message_Var_Pop_Order_By = { + index?: Maybe; }; /** aggregate var_samp on columns */ -export type Double_Sign_Vote_Var_Samp_Fields = { - __typename?: 'double_sign_vote_var_samp_fields'; - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +export type Message_Var_Samp_Fields = { + __typename?: 'message_var_samp_fields'; + index?: Maybe; }; -/** order by var_samp() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Var_Samp_Order_By = { - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +/** order by var_samp() on columns of table "message" */ +export type Message_Var_Samp_Order_By = { + index?: Maybe; }; /** aggregate variance on columns */ -export type Double_Sign_Vote_Variance_Fields = { - __typename?: 'double_sign_vote_variance_fields'; - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +export type Message_Variance_Fields = { + __typename?: 'message_variance_fields'; + index?: Maybe; }; -/** order by variance() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Variance_Order_By = { - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +/** order by variance() on columns of table "message" */ +export type Message_Variance_Order_By = { + index?: Maybe; +}; + +export type Messages_By_Address_Args = { + addresses?: Maybe; + limit?: Maybe; + offset?: Maybe; + types?: Maybe; }; -/** columns and relationships of "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests = { - __typename?: 'dtag_transfer_requests'; +/** columns and relationships of "mint_params" */ +export type Mint_Params = { + __typename?: 'mint_params'; height: Scalars['bigint']; - /** An object relationship */ - profile: Profile; - /** An object relationship */ - profileBySenderAddress: Profile; - receiver_address: Scalars['String']; - sender_address: Scalars['String']; + one_row_id: Scalars['Boolean']; + params: Scalars['jsonb']; +}; + + +/** columns and relationships of "mint_params" */ +export type Mint_ParamsParamsArgs = { + path?: Maybe; }; -/** aggregated selection of "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Aggregate = { - __typename?: 'dtag_transfer_requests_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "mint_params" */ +export type Mint_Params_Aggregate = { + __typename?: 'mint_params_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Aggregate_Fields = { - __typename?: 'dtag_transfer_requests_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "mint_params" */ +export type Mint_Params_Aggregate_Fields = { + __typename?: 'mint_params_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; + 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 "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "mint_params" */ +export type Mint_Params_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - /** aggregate avg on columns */ -export type Dtag_Transfer_Requests_Avg_Fields = { - __typename?: 'dtag_transfer_requests_avg_fields'; +export type Mint_Params_Avg_Fields = { + __typename?: 'mint_params_avg_fields'; height?: Maybe; }; -/** order by avg() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Avg_Order_By = { - height?: Maybe; -}; - -/** Boolean expression to filter rows from the table "dtag_transfer_requests". All fields are combined with a logical 'AND'. */ -export type Dtag_Transfer_Requests_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; height?: Maybe; - profile?: Maybe; - profileBySenderAddress?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; + one_row_id?: Maybe; + params?: Maybe; }; /** aggregate max on columns */ -export type Dtag_Transfer_Requests_Max_Fields = { - __typename?: 'dtag_transfer_requests_max_fields'; +export type Mint_Params_Max_Fields = { + __typename?: 'mint_params_max_fields'; height?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; -}; - -/** order by max() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Max_Order_By = { - height?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; }; /** aggregate min on columns */ -export type Dtag_Transfer_Requests_Min_Fields = { - __typename?: 'dtag_transfer_requests_min_fields'; +export type Mint_Params_Min_Fields = { + __typename?: 'mint_params_min_fields'; height?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; -}; - -/** order by min() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Min_Order_By = { - height?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; }; -/** Ordering options when selecting data from "dtag_transfer_requests". */ -export type Dtag_Transfer_Requests_Order_By = { +/** Ordering options when selecting data from "mint_params". */ +export type Mint_Params_Order_By = { height?: Maybe; - profile?: Maybe; - profileBySenderAddress?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; + one_row_id?: Maybe; + params?: Maybe; }; -/** select columns of table "dtag_transfer_requests" */ -export enum Dtag_Transfer_Requests_Select_Column { +/** select columns of table "mint_params" */ +export enum Mint_Params_Select_Column { /** column name */ Height = 'height', /** column name */ - ReceiverAddress = 'receiver_address', + OneRowId = 'one_row_id', /** column name */ - SenderAddress = 'sender_address' + Params = 'params' } /** aggregate stddev on columns */ -export type Dtag_Transfer_Requests_Stddev_Fields = { - __typename?: 'dtag_transfer_requests_stddev_fields'; +export type Mint_Params_Stddev_Fields = { + __typename?: 'mint_params_stddev_fields'; height?: Maybe; }; -/** order by stddev() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Stddev_Order_By = { - height?: Maybe; -}; - /** aggregate stddev_pop on columns */ -export type Dtag_Transfer_Requests_Stddev_Pop_Fields = { - __typename?: 'dtag_transfer_requests_stddev_pop_fields'; +export type Mint_Params_Stddev_Pop_Fields = { + __typename?: 'mint_params_stddev_pop_fields'; height?: Maybe; }; -/** order by stddev_pop() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Stddev_Pop_Order_By = { - height?: Maybe; -}; - /** aggregate stddev_samp on columns */ -export type Dtag_Transfer_Requests_Stddev_Samp_Fields = { - __typename?: 'dtag_transfer_requests_stddev_samp_fields'; +export type Mint_Params_Stddev_Samp_Fields = { + __typename?: 'mint_params_stddev_samp_fields'; height?: Maybe; }; -/** order by stddev_samp() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Stddev_Samp_Order_By = { - height?: Maybe; -}; - /** aggregate sum on columns */ -export type Dtag_Transfer_Requests_Sum_Fields = { - __typename?: 'dtag_transfer_requests_sum_fields'; +export type Mint_Params_Sum_Fields = { + __typename?: 'mint_params_sum_fields'; height?: Maybe; }; -/** order by sum() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Sum_Order_By = { - height?: Maybe; -}; - /** aggregate var_pop on columns */ -export type Dtag_Transfer_Requests_Var_Pop_Fields = { - __typename?: 'dtag_transfer_requests_var_pop_fields'; +export type Mint_Params_Var_Pop_Fields = { + __typename?: 'mint_params_var_pop_fields'; height?: Maybe; }; -/** order by var_pop() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Var_Pop_Order_By = { - height?: Maybe; -}; - /** aggregate var_samp on columns */ -export type Dtag_Transfer_Requests_Var_Samp_Fields = { - __typename?: 'dtag_transfer_requests_var_samp_fields'; +export type Mint_Params_Var_Samp_Fields = { + __typename?: 'mint_params_var_samp_fields'; height?: Maybe; }; -/** order by var_samp() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Var_Samp_Order_By = { - height?: Maybe; -}; - /** aggregate variance on columns */ -export type Dtag_Transfer_Requests_Variance_Fields = { - __typename?: 'dtag_transfer_requests_variance_fields'; +export type Mint_Params_Variance_Fields = { + __typename?: 'mint_params_variance_fields'; height?: Maybe; }; -/** order by variance() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Variance_Order_By = { - height?: Maybe; -}; - -/** columns and relationships of "fee_grant_allowance" */ -export type Fee_Grant_Allowance = { - __typename?: 'fee_grant_allowance'; - allowance: Scalars['jsonb']; - grantee_address: Scalars['String']; - granter_address: Scalars['String']; - height: Scalars['bigint']; - id: Scalars['Int']; -}; - - -/** columns and relationships of "fee_grant_allowance" */ -export type Fee_Grant_AllowanceAllowanceArgs = { - path?: Maybe; +/** columns and relationships of "modules" */ +export type Modules = { + __typename?: 'modules'; + module_name: Scalars['String']; }; -/** aggregated selection of "fee_grant_allowance" */ -export type Fee_Grant_Allowance_Aggregate = { - __typename?: 'fee_grant_allowance_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "modules" */ +export type Modules_Aggregate = { + __typename?: 'modules_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "fee_grant_allowance" */ -export type Fee_Grant_Allowance_Aggregate_Fields = { - __typename?: 'fee_grant_allowance_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "modules" */ +export type Modules_Aggregate_Fields = { + __typename?: 'modules_aggregate_fields'; 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; + max?: Maybe; + min?: Maybe; }; -/** aggregate fields of "fee_grant_allowance" */ -export type Fee_Grant_Allowance_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "modules" */ +export type Modules_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** aggregate avg on columns */ -export type Fee_Grant_Allowance_Avg_Fields = { - __typename?: 'fee_grant_allowance_avg_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - allowance?: Maybe; - grantee_address?: Maybe; - granter_address?: Maybe; - height?: Maybe; - id?: Maybe; +/** Boolean expression to filter rows from the table "modules". All fields are combined with a logical 'AND'. */ +export type Modules_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + module_name?: Maybe; }; /** aggregate max on columns */ -export type Fee_Grant_Allowance_Max_Fields = { - __typename?: 'fee_grant_allowance_max_fields'; - grantee_address?: Maybe; - granter_address?: Maybe; - height?: Maybe; - id?: Maybe; +export type Modules_Max_Fields = { + __typename?: 'modules_max_fields'; + module_name?: Maybe; }; /** aggregate min on columns */ -export type Fee_Grant_Allowance_Min_Fields = { - __typename?: 'fee_grant_allowance_min_fields'; - grantee_address?: Maybe; - granter_address?: Maybe; - height?: Maybe; - id?: Maybe; +export type Modules_Min_Fields = { + __typename?: 'modules_min_fields'; + module_name?: Maybe; }; -/** Ordering options when selecting data from "fee_grant_allowance". */ -export type Fee_Grant_Allowance_Order_By = { - allowance?: Maybe; - grantee_address?: Maybe; - granter_address?: Maybe; - height?: Maybe; - id?: Maybe; +/** Ordering options when selecting data from "modules". */ +export type Modules_Order_By = { + module_name?: Maybe; }; -/** 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', +/** select columns of table "modules" */ +export enum Modules_Select_Column { /** column name */ - Id = 'id' + ModuleName = 'module_name' } -/** aggregate stddev on columns */ -export type Fee_Grant_Allowance_Stddev_Fields = { - __typename?: 'fee_grant_allowance_stddev_fields'; - height?: Maybe; - id?: Maybe; -}; -/** aggregate stddev_pop on columns */ -export type Fee_Grant_Allowance_Stddev_Pop_Fields = { - __typename?: 'fee_grant_allowance_stddev_pop_fields'; - height?: Maybe; - id?: Maybe; +/** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ +export type Numeric_Comparison_Exp = { + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; }; -/** aggregate stddev_samp on columns */ -export type Fee_Grant_Allowance_Stddev_Samp_Fields = { - __typename?: 'fee_grant_allowance_stddev_samp_fields'; - height?: Maybe; - id?: Maybe; -}; +/** 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' +} -/** aggregate sum on columns */ -export type Fee_Grant_Allowance_Sum_Fields = { - __typename?: 'fee_grant_allowance_sum_fields'; - height?: Maybe; - id?: Maybe; +/** 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']; }; -/** aggregate var_pop on columns */ -export type Fee_Grant_Allowance_Var_Pop_Fields = { - __typename?: 'fee_grant_allowance_var_pop_fields'; - height?: Maybe; - id?: Maybe; +/** aggregated selection of "pre_commit" */ +export type Pre_Commit_Aggregate = { + __typename?: 'pre_commit_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate var_samp on columns */ -export type Fee_Grant_Allowance_Var_Samp_Fields = { - __typename?: 'fee_grant_allowance_var_samp_fields'; - height?: Maybe; - id?: Maybe; +/** 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 variance on columns */ -export type Fee_Grant_Allowance_Variance_Fields = { - __typename?: 'fee_grant_allowance_variance_fields'; - height?: Maybe; - id?: Maybe; -}; -/** columns and relationships of "genesis" */ -export type Genesis = { - __typename?: 'genesis'; - chain_id: Scalars['String']; - initial_height: Scalars['bigint']; - time: Scalars['timestamp']; +/** aggregate fields of "pre_commit" */ +export type Pre_Commit_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; -/** aggregated selection of "genesis" */ -export type Genesis_Aggregate = { - __typename?: 'genesis_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** order by aggregate values of table "pre_commit" */ +export type Pre_Commit_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + 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 "genesis" */ -export type Genesis_Aggregate_Fields = { - __typename?: 'genesis_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 avg on columns */ +export type Pre_Commit_Avg_Fields = { + __typename?: 'pre_commit_avg_fields'; + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; - -/** aggregate fields of "genesis" */ -export type Genesis_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** order by avg() on columns of table "pre_commit" */ +export type Pre_Commit_Avg_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; -/** aggregate avg on columns */ -export type Genesis_Avg_Fields = { - __typename?: 'genesis_avg_fields'; - initial_height?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + height?: Maybe; + proposer_priority?: Maybe; + timestamp?: Maybe; + validator?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; -/** Boolean expression to filter rows from the table "genesis". All fields are combined with a logical 'AND'. */ -export type Genesis_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - chain_id?: Maybe; - initial_height?: Maybe; - time?: Maybe; +/** 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; }; -/** aggregate max on columns */ -export type Genesis_Max_Fields = { - __typename?: 'genesis_max_fields'; - chain_id?: Maybe; - initial_height?: Maybe; - time?: Maybe; +/** order by max() on columns of table "pre_commit" */ +export type Pre_Commit_Max_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + timestamp?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; /** aggregate min on columns */ -export type Genesis_Min_Fields = { - __typename?: 'genesis_min_fields'; - chain_id?: Maybe; - initial_height?: Maybe; - time?: Maybe; +export type Pre_Commit_Min_Fields = { + __typename?: 'pre_commit_min_fields'; + height?: Maybe; + proposer_priority?: Maybe; + timestamp?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; -/** Ordering options when selecting data from "genesis". */ -export type Genesis_Order_By = { - chain_id?: Maybe; - initial_height?: Maybe; - time?: Maybe; +/** order by min() on columns of table "pre_commit" */ +export type Pre_Commit_Min_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + timestamp?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; -/** select columns of table "genesis" */ -export enum Genesis_Select_Column { +/** Ordering options when selecting data from "pre_commit". */ +export type Pre_Commit_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + timestamp?: Maybe; + validator?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; +}; + +/** select columns of table "pre_commit" */ +export enum Pre_Commit_Select_Column { /** column name */ - ChainId = 'chain_id', + Height = 'height', /** column name */ - InitialHeight = 'initial_height', + ProposerPriority = 'proposer_priority', /** column name */ - Time = 'time' + Timestamp = 'timestamp', + /** column name */ + ValidatorAddress = 'validator_address', + /** column name */ + VotingPower = 'voting_power' } /** aggregate stddev on columns */ -export type Genesis_Stddev_Fields = { - __typename?: 'genesis_stddev_fields'; - initial_height?: Maybe; +export type Pre_Commit_Stddev_Fields = { + __typename?: 'pre_commit_stddev_fields'; + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Genesis_Stddev_Pop_Fields = { - __typename?: 'genesis_stddev_pop_fields'; - initial_height?: Maybe; +/** order by stddev() on columns of table "pre_commit" */ +export type Pre_Commit_Stddev_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; -/** aggregate stddev_samp on columns */ -export type Genesis_Stddev_Samp_Fields = { - __typename?: 'genesis_stddev_samp_fields'; - initial_height?: Maybe; +/** 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; }; -/** aggregate sum on columns */ -export type Genesis_Sum_Fields = { - __typename?: 'genesis_sum_fields'; - initial_height?: Maybe; +/** order by stddev_pop() on columns of table "pre_commit" */ +export type Pre_Commit_Stddev_Pop_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; -/** aggregate var_pop on columns */ -export type Genesis_Var_Pop_Fields = { - __typename?: 'genesis_var_pop_fields'; - initial_height?: Maybe; +/** 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; }; -/** aggregate var_samp on columns */ -export type Genesis_Var_Samp_Fields = { - __typename?: 'genesis_var_samp_fields'; - initial_height?: Maybe; +/** order by stddev_samp() on columns of table "pre_commit" */ +export type Pre_Commit_Stddev_Samp_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; -/** aggregate variance on columns */ -export type Genesis_Variance_Fields = { - __typename?: 'genesis_variance_fields'; - initial_height?: Maybe; +/** aggregate sum on columns */ +export type Pre_Commit_Sum_Fields = { + __typename?: 'pre_commit_sum_fields'; + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; -/** columns and relationships of "gov_params" */ -export type Gov_Params = { - __typename?: 'gov_params'; - deposit_params: Scalars['jsonb']; - height: Scalars['bigint']; - one_row_id: Scalars['Boolean']; - tally_params: Scalars['jsonb']; - voting_params: Scalars['jsonb']; +/** order by sum() on columns of table "pre_commit" */ +export type Pre_Commit_Sum_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; - -/** columns and relationships of "gov_params" */ -export type Gov_ParamsDeposit_ParamsArgs = { - path?: Maybe; +/** 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; }; - -/** columns and relationships of "gov_params" */ -export type Gov_ParamsTally_ParamsArgs = { - path?: Maybe; +/** order by var_pop() on columns of table "pre_commit" */ +export type Pre_Commit_Var_Pop_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; - -/** columns and relationships of "gov_params" */ -export type Gov_ParamsVoting_ParamsArgs = { - path?: Maybe; +/** 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; }; -/** aggregated selection of "gov_params" */ -export type Gov_Params_Aggregate = { - __typename?: 'gov_params_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** order by var_samp() on columns of table "pre_commit" */ +export type Pre_Commit_Var_Samp_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; -/** aggregate fields of "gov_params" */ -export type Gov_Params_Aggregate_Fields = { - __typename?: 'gov_params_aggregate_fields'; - avg?: Maybe; +/** 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?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** columns and relationships of "profiles_params" */ +export type Profiles_Params = { + __typename?: 'profiles_params'; + height: Scalars['bigint']; + one_row_id: Scalars['Boolean']; + params: Scalars['jsonb']; +}; + + +/** columns and relationships of "profiles_params" */ +export type Profiles_ParamsParamsArgs = { + path?: Maybe; +}; + +/** aggregated selection of "profiles_params" */ +export type Profiles_Params_Aggregate = { + __typename?: 'profiles_params_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "profiles_params" */ +export type Profiles_Params_Aggregate_Fields = { + __typename?: 'profiles_params_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; + 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 "gov_params" */ -export type Gov_Params_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "profiles_params" */ +export type Profiles_Params_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; /** aggregate avg on columns */ -export type Gov_Params_Avg_Fields = { - __typename?: 'gov_params_avg_fields'; +export type Profiles_Params_Avg_Fields = { + __typename?: 'profiles_params_avg_fields'; height?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - deposit_params?: Maybe; +/** Boolean expression to filter rows from the table "profiles_params". All fields are combined with a logical 'AND'. */ +export type Profiles_Params_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; height?: Maybe; one_row_id?: Maybe; - tally_params?: Maybe; - voting_params?: Maybe; + params?: Maybe; }; /** aggregate max on columns */ -export type Gov_Params_Max_Fields = { - __typename?: 'gov_params_max_fields'; +export type Profiles_Params_Max_Fields = { + __typename?: 'profiles_params_max_fields'; height?: Maybe; }; /** aggregate min on columns */ -export type Gov_Params_Min_Fields = { - __typename?: 'gov_params_min_fields'; +export type Profiles_Params_Min_Fields = { + __typename?: 'profiles_params_min_fields'; height?: Maybe; }; -/** Ordering options when selecting data from "gov_params". */ -export type Gov_Params_Order_By = { - deposit_params?: Maybe; +/** Ordering options when selecting data from "profiles_params". */ +export type Profiles_Params_Order_By = { height?: Maybe; one_row_id?: Maybe; - tally_params?: Maybe; - voting_params?: Maybe; + params?: Maybe; }; -/** select columns of table "gov_params" */ -export enum Gov_Params_Select_Column { - /** column name */ - DepositParams = 'deposit_params', +/** select columns of table "profiles_params" */ +export enum Profiles_Params_Select_Column { /** column name */ Height = 'height', /** column name */ OneRowId = 'one_row_id', /** column name */ - TallyParams = 'tally_params', - /** column name */ - VotingParams = 'voting_params' + Params = 'params' } /** aggregate stddev on columns */ -export type Gov_Params_Stddev_Fields = { - __typename?: 'gov_params_stddev_fields'; +export type Profiles_Params_Stddev_Fields = { + __typename?: 'profiles_params_stddev_fields'; height?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Gov_Params_Stddev_Pop_Fields = { - __typename?: 'gov_params_stddev_pop_fields'; +export type Profiles_Params_Stddev_Pop_Fields = { + __typename?: 'profiles_params_stddev_pop_fields'; height?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Gov_Params_Stddev_Samp_Fields = { - __typename?: 'gov_params_stddev_samp_fields'; +export type Profiles_Params_Stddev_Samp_Fields = { + __typename?: 'profiles_params_stddev_samp_fields'; height?: Maybe; }; /** aggregate sum on columns */ -export type Gov_Params_Sum_Fields = { - __typename?: 'gov_params_sum_fields'; +export type Profiles_Params_Sum_Fields = { + __typename?: 'profiles_params_sum_fields'; height?: Maybe; }; /** aggregate var_pop on columns */ -export type Gov_Params_Var_Pop_Fields = { - __typename?: 'gov_params_var_pop_fields'; +export type Profiles_Params_Var_Pop_Fields = { + __typename?: 'profiles_params_var_pop_fields'; height?: Maybe; }; /** aggregate var_samp on columns */ -export type Gov_Params_Var_Samp_Fields = { - __typename?: 'gov_params_var_samp_fields'; +export type Profiles_Params_Var_Samp_Fields = { + __typename?: 'profiles_params_var_samp_fields'; height?: Maybe; }; /** aggregate variance on columns */ -export type Gov_Params_Variance_Fields = { - __typename?: 'gov_params_variance_fields'; +export type Profiles_Params_Variance_Fields = { + __typename?: 'profiles_params_variance_fields'; height?: Maybe; }; -/** columns and relationships of "inflation" */ -export type Inflation = { - __typename?: 'inflation'; - height: Scalars['bigint']; - value: Scalars['numeric']; +/** columns and relationships of "proposal" */ +export type Proposal = { + __typename?: 'proposal'; + content: Scalars['jsonb']; + deposit_end_time?: Maybe; + description: Scalars['String']; + id: Scalars['Int']; + /** An array relationship */ + proposal_deposits: Array; + /** An aggregate relationship */ + proposal_deposits_aggregate: Proposal_Deposit_Aggregate; + proposal_route: Scalars['String']; + /** An object relationship */ + proposal_tally_result?: Maybe; + /** An array relationship */ + proposal_tally_results: Array; + /** An aggregate relationship */ + proposal_tally_results_aggregate: Proposal_Tally_Result_Aggregate; + proposal_type: Scalars['String']; + /** An array relationship */ + proposal_votes: Array; + /** An aggregate relationship */ + proposal_votes_aggregate: Proposal_Vote_Aggregate; + /** 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; + /** An aggregate relationship */ + validator_status_snapshots_aggregate: Proposal_Validator_Status_Snapshot_Aggregate; + voting_end_time?: Maybe; + voting_start_time?: Maybe; }; -/** aggregated selection of "inflation" */ -export type Inflation_Aggregate = { - __typename?: 'inflation_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; -/** aggregate fields of "inflation" */ -export type Inflation_Aggregate_Fields = { - __typename?: 'inflation_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; +/** columns and relationships of "proposal" */ +export type ProposalContentArgs = { + path?: Maybe; }; -/** aggregate fields of "inflation" */ -export type Inflation_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** columns and relationships of "proposal" */ +export type ProposalProposal_DepositsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate avg on columns */ -export type Inflation_Avg_Fields = { - __typename?: 'inflation_avg_fields'; - height?: Maybe; - value?: Maybe; -}; -/** Boolean expression to filter rows from the table "inflation". All fields are combined with a logical 'AND'. */ -export type Inflation_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - value?: Maybe; +/** columns and relationships of "proposal" */ +export type ProposalProposal_Deposits_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate max on columns */ -export type Inflation_Max_Fields = { - __typename?: 'inflation_max_fields'; - height?: Maybe; - value?: Maybe; + +/** columns and relationships of "proposal" */ +export type ProposalProposal_Tally_ResultsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate min on columns */ -export type Inflation_Min_Fields = { - __typename?: 'inflation_min_fields'; - height?: Maybe; - value?: Maybe; + +/** columns and relationships of "proposal" */ +export type ProposalProposal_Tally_Results_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** Ordering options when selecting data from "inflation". */ -export type Inflation_Order_By = { - height?: Maybe; - value?: Maybe; + +/** columns and relationships of "proposal" */ +export type ProposalProposal_VotesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** select columns of table "inflation" */ -export enum Inflation_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - Value = 'value' -} -/** aggregate stddev on columns */ -export type Inflation_Stddev_Fields = { - __typename?: 'inflation_stddev_fields'; - height?: Maybe; - value?: Maybe; +/** columns and relationships of "proposal" */ +export type ProposalProposal_Votes_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Inflation_Stddev_Pop_Fields = { - __typename?: 'inflation_stddev_pop_fields'; - height?: Maybe; - value?: Maybe; -}; -/** aggregate stddev_samp on columns */ -export type Inflation_Stddev_Samp_Fields = { - __typename?: 'inflation_stddev_samp_fields'; - height?: Maybe; - value?: Maybe; +/** columns and relationships of "proposal" */ +export type ProposalValidator_Status_SnapshotsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate sum on columns */ -export type Inflation_Sum_Fields = { - __typename?: 'inflation_sum_fields'; - height?: Maybe; - value?: Maybe; + +/** columns and relationships of "proposal" */ +export type ProposalValidator_Status_Snapshots_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate var_pop on columns */ -export type Inflation_Var_Pop_Fields = { - __typename?: 'inflation_var_pop_fields'; - height?: Maybe; - value?: Maybe; +/** aggregated selection of "proposal" */ +export type Proposal_Aggregate = { + __typename?: 'proposal_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate var_samp on columns */ -export type Inflation_Var_Samp_Fields = { - __typename?: 'inflation_var_samp_fields'; - height?: Maybe; - value?: Maybe; +/** 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 variance on columns */ -export type Inflation_Variance_Fields = { - __typename?: 'inflation_variance_fields'; - height?: Maybe; - value?: Maybe; + +/** aggregate fields of "proposal" */ +export type Proposal_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; +/** order by aggregate values of table "proposal" */ +export type Proposal_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; -/** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */ -export type Jsonb_Comparison_Exp = { - /** is the column contained in the given json value */ - _contained_in?: Maybe; - /** does the column contain the given json value at the top level */ - _contains?: Maybe; - _eq?: Maybe; - _gt?: Maybe; - _gte?: Maybe; - /** does the string exist as a top-level key in the column */ - _has_key?: Maybe; - /** do all of these strings exist as top-level keys in the column */ - _has_keys_all?: Maybe>; - /** do any of these strings exist as top-level keys in the column */ - _has_keys_any?: Maybe>; - _in?: Maybe>; - _is_null?: Maybe; - _lt?: Maybe; - _lte?: Maybe; - _neq?: Maybe; - _nin?: Maybe>; +/** aggregate avg on columns */ +export type Proposal_Avg_Fields = { + __typename?: 'proposal_avg_fields'; + id?: Maybe; }; -/** columns and relationships of "message" */ -export type Message = { - __typename?: 'message'; - index: Scalars['bigint']; - involved_accounts_addresses?: Maybe; - /** An object relationship */ - transaction: Transaction; - transaction_hash: Scalars['String']; - type: Scalars['String']; - value: Scalars['jsonb']; +/** order by avg() on columns of table "proposal" */ +export type Proposal_Avg_Order_By = { + id?: Maybe; }; +/** Boolean expression to filter rows from the table "proposal". All fields are combined with a logical 'AND'. */ +export type Proposal_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + content?: Maybe; + deposit_end_time?: Maybe; + description?: Maybe; + id?: Maybe; + proposal_deposits?: Maybe; + proposal_route?: Maybe; + proposal_tally_result?: Maybe; + proposal_tally_results?: Maybe; + proposal_type?: Maybe; + proposal_votes?: Maybe; + proposer?: Maybe; + proposer_address?: Maybe; + staking_pool_snapshot?: Maybe; + status?: Maybe; + submit_time?: Maybe; + title?: Maybe; + validator_status_snapshots?: Maybe; + voting_end_time?: Maybe; + voting_start_time?: Maybe; +}; -/** columns and relationships of "message" */ -export type MessageValueArgs = { - path?: Maybe; +/** 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?: Maybe; + /** An object relationship */ + proposal: Proposal; + proposal_id: Scalars['Int']; }; -/** aggregated selection of "message" */ -export type Message_Aggregate = { - __typename?: 'message_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "proposal_deposit" */ +export type Proposal_Deposit_Aggregate = { + __typename?: 'proposal_deposit_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "message" */ -export type Message_Aggregate_Fields = { - __typename?: 'message_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "proposal_deposit" */ +export type Proposal_Deposit_Aggregate_Fields = { + __typename?: 'proposal_deposit_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; + 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 "message" */ -export type Message_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "proposal_deposit" */ +export type Proposal_Deposit_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "message" */ -export type Message_Aggregate_Order_By = { - avg?: Maybe; +/** order by aggregate values of table "proposal_deposit" */ +export type Proposal_Deposit_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate avg on columns */ -export type Message_Avg_Fields = { - __typename?: 'message_avg_fields'; - index?: Maybe; +export type Proposal_Deposit_Avg_Fields = { + __typename?: 'proposal_deposit_avg_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by avg() on columns of table "message" */ -export type Message_Avg_Order_By = { - index?: Maybe; +/** order by avg() on columns of table "proposal_deposit" */ +export type Proposal_Deposit_Avg_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; -/** Boolean expression to filter rows from the table "message". All fields are combined with a logical 'AND'. */ -export type Message_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - index?: Maybe; - involved_accounts_addresses?: Maybe<_Text_Comparison_Exp>; - transaction?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; - value?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + amount?: Maybe<_Coin_Comparison_Exp>; + block?: Maybe; + depositor?: Maybe; + depositor_address?: Maybe; + height?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; }; /** aggregate max on columns */ -export type Message_Max_Fields = { - __typename?: 'message_max_fields'; - index?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; +export type Proposal_Deposit_Max_Fields = { + __typename?: 'proposal_deposit_max_fields'; + depositor_address?: Maybe; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by max() on columns of table "message" */ -export type Message_Max_Order_By = { - index?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; +/** order by max() on columns of table "proposal_deposit" */ +export type Proposal_Deposit_Max_Order_By = { + depositor_address?: Maybe; + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate min on columns */ -export type Message_Min_Fields = { - __typename?: 'message_min_fields'; - index?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; +export type Proposal_Deposit_Min_Fields = { + __typename?: 'proposal_deposit_min_fields'; + depositor_address?: Maybe; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by min() on columns of table "message" */ -export type Message_Min_Order_By = { - index?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; +/** order by min() on columns of table "proposal_deposit" */ +export type Proposal_Deposit_Min_Order_By = { + depositor_address?: Maybe; + height?: Maybe; + proposal_id?: Maybe; }; -/** Ordering options when selecting data from "message". */ -export type Message_Order_By = { - index?: Maybe; - involved_accounts_addresses?: Maybe; - transaction?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; - value?: Maybe; +/** Ordering options when selecting data from "proposal_deposit". */ +export type Proposal_Deposit_Order_By = { + amount?: Maybe; + block?: Maybe; + depositor?: Maybe; + depositor_address?: Maybe; + height?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; }; -/** select columns of table "message" */ -export enum Message_Select_Column { - /** column name */ - Index = 'index', +/** select columns of table "proposal_deposit" */ +export enum Proposal_Deposit_Select_Column { /** column name */ - InvolvedAccountsAddresses = 'involved_accounts_addresses', + Amount = 'amount', /** column name */ - TransactionHash = 'transaction_hash', + DepositorAddress = 'depositor_address', /** column name */ - Type = 'type', + Height = 'height', /** column name */ - Value = 'value' + ProposalId = 'proposal_id' } /** aggregate stddev on columns */ -export type Message_Stddev_Fields = { - __typename?: 'message_stddev_fields'; - index?: Maybe; +export type Proposal_Deposit_Stddev_Fields = { + __typename?: 'proposal_deposit_stddev_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by stddev() on columns of table "message" */ -export type Message_Stddev_Order_By = { - index?: Maybe; +/** order by stddev() on columns of table "proposal_deposit" */ +export type Proposal_Deposit_Stddev_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Message_Stddev_Pop_Fields = { - __typename?: 'message_stddev_pop_fields'; - index?: Maybe; +export type Proposal_Deposit_Stddev_Pop_Fields = { + __typename?: 'proposal_deposit_stddev_pop_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by stddev_pop() on columns of table "message" */ -export type Message_Stddev_Pop_Order_By = { - index?: Maybe; +/** order by stddev_pop() on columns of table "proposal_deposit" */ +export type Proposal_Deposit_Stddev_Pop_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Message_Stddev_Samp_Fields = { - __typename?: 'message_stddev_samp_fields'; - index?: Maybe; +export type Proposal_Deposit_Stddev_Samp_Fields = { + __typename?: 'proposal_deposit_stddev_samp_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by stddev_samp() on columns of table "message" */ -export type Message_Stddev_Samp_Order_By = { - index?: Maybe; +/** order by stddev_samp() on columns of table "proposal_deposit" */ +export type Proposal_Deposit_Stddev_Samp_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate sum on columns */ -export type Message_Sum_Fields = { - __typename?: 'message_sum_fields'; - index?: Maybe; +export type Proposal_Deposit_Sum_Fields = { + __typename?: 'proposal_deposit_sum_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by sum() on columns of table "message" */ -export type Message_Sum_Order_By = { - index?: Maybe; +/** order by sum() on columns of table "proposal_deposit" */ +export type Proposal_Deposit_Sum_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate var_pop on columns */ -export type Message_Var_Pop_Fields = { - __typename?: 'message_var_pop_fields'; - index?: Maybe; +export type Proposal_Deposit_Var_Pop_Fields = { + __typename?: 'proposal_deposit_var_pop_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by var_pop() on columns of table "message" */ -export type Message_Var_Pop_Order_By = { - index?: Maybe; +/** order by var_pop() on columns of table "proposal_deposit" */ +export type Proposal_Deposit_Var_Pop_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate var_samp on columns */ -export type Message_Var_Samp_Fields = { - __typename?: 'message_var_samp_fields'; - index?: Maybe; +export type Proposal_Deposit_Var_Samp_Fields = { + __typename?: 'proposal_deposit_var_samp_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by var_samp() on columns of table "message" */ -export type Message_Var_Samp_Order_By = { - index?: Maybe; +/** order by var_samp() on columns of table "proposal_deposit" */ +export type Proposal_Deposit_Var_Samp_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate variance on columns */ -export type Message_Variance_Fields = { - __typename?: 'message_variance_fields'; - index?: Maybe; -}; - -/** order by variance() on columns of table "message" */ -export type Message_Variance_Order_By = { - index?: Maybe; +export type Proposal_Deposit_Variance_Fields = { + __typename?: 'proposal_deposit_variance_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -export type Messages_By_Address_Args = { - addresses?: Maybe; - limit?: Maybe; - offset?: Maybe; - types?: Maybe; +/** order by variance() on columns of table "proposal_deposit" */ +export type Proposal_Deposit_Variance_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; -/** columns and relationships of "mint_params" */ -export type Mint_Params = { - __typename?: 'mint_params'; - height: Scalars['bigint']; - one_row_id: Scalars['Boolean']; - params: Scalars['jsonb']; +/** aggregate max on columns */ +export type Proposal_Max_Fields = { + __typename?: 'proposal_max_fields'; + deposit_end_time?: Maybe; + description?: Maybe; + id?: Maybe; + proposal_route?: Maybe; + proposal_type?: Maybe; + proposer_address?: Maybe; + status?: Maybe; + submit_time?: Maybe; + title?: Maybe; + voting_end_time?: Maybe; + voting_start_time?: Maybe; }; - -/** columns and relationships of "mint_params" */ -export type Mint_ParamsParamsArgs = { - path?: Maybe; +/** order by max() on columns of table "proposal" */ +export type Proposal_Max_Order_By = { + deposit_end_time?: Maybe; + description?: Maybe; + id?: Maybe; + proposal_route?: Maybe; + proposal_type?: Maybe; + proposer_address?: Maybe; + status?: Maybe; + submit_time?: Maybe; + title?: Maybe; + voting_end_time?: Maybe; + voting_start_time?: Maybe; }; -/** aggregated selection of "mint_params" */ -export type Mint_Params_Aggregate = { - __typename?: 'mint_params_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregate min on columns */ +export type Proposal_Min_Fields = { + __typename?: 'proposal_min_fields'; + deposit_end_time?: Maybe; + description?: Maybe; + id?: Maybe; + proposal_route?: Maybe; + proposal_type?: Maybe; + proposer_address?: Maybe; + status?: Maybe; + submit_time?: Maybe; + title?: Maybe; + voting_end_time?: Maybe; + voting_start_time?: Maybe; }; -/** aggregate fields of "mint_params" */ -export type Mint_Params_Aggregate_Fields = { - __typename?: 'mint_params_aggregate_fields'; - avg?: Maybe; +/** order by min() on columns of table "proposal" */ +export type Proposal_Min_Order_By = { + deposit_end_time?: Maybe; + description?: Maybe; + id?: Maybe; + proposal_route?: Maybe; + proposal_type?: Maybe; + proposer_address?: Maybe; + status?: Maybe; + submit_time?: Maybe; + title?: Maybe; + voting_end_time?: Maybe; + voting_start_time?: Maybe; +}; + +/** Ordering options when selecting data from "proposal". */ +export type Proposal_Order_By = { + content?: Maybe; + deposit_end_time?: Maybe; + description?: Maybe; + id?: Maybe; + proposal_deposits_aggregate?: Maybe; + proposal_route?: Maybe; + proposal_tally_result?: Maybe; + proposal_tally_results_aggregate?: Maybe; + proposal_type?: Maybe; + proposal_votes_aggregate?: Maybe; + proposer?: Maybe; + proposer_address?: Maybe; + staking_pool_snapshot?: Maybe; + status?: Maybe; + submit_time?: Maybe; + title?: Maybe; + validator_status_snapshots_aggregate?: Maybe; + voting_end_time?: Maybe; + voting_start_time?: Maybe; +}; + +/** 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 */ + ProposalRoute = 'proposal_route', + /** column name */ + ProposalType = 'proposal_type', + /** 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['bigint']; + height: Scalars['bigint']; + not_bonded_tokens: Scalars['bigint']; + /** An object relationship */ + proposal: Proposal; + proposal_id: Scalars['Int']; +}; + +/** aggregated selection of "proposal_staking_pool_snapshot" */ +export type Proposal_Staking_Pool_Snapshot_Aggregate = { + __typename?: 'proposal_staking_pool_snapshot_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "proposal_staking_pool_snapshot" */ +export type Proposal_Staking_Pool_Snapshot_Aggregate_Fields = { + __typename?: 'proposal_staking_pool_snapshot_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; + 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 "mint_params" */ -export type Mint_Params_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "proposal_staking_pool_snapshot" */ +export type Proposal_Staking_Pool_Snapshot_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; /** aggregate avg on columns */ -export type Mint_Params_Avg_Fields = { - __typename?: 'mint_params_avg_fields'; +export type Proposal_Staking_Pool_Snapshot_Avg_Fields = { + __typename?: 'proposal_staking_pool_snapshot_avg_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; + proposal_id?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + bonded_tokens?: Maybe; height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; + not_bonded_tokens?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; }; /** aggregate max on columns */ -export type Mint_Params_Max_Fields = { - __typename?: 'mint_params_max_fields'; +export type Proposal_Staking_Pool_Snapshot_Max_Fields = { + __typename?: 'proposal_staking_pool_snapshot_max_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; + proposal_id?: Maybe; }; /** aggregate min on columns */ -export type Mint_Params_Min_Fields = { - __typename?: 'mint_params_min_fields'; +export type Proposal_Staking_Pool_Snapshot_Min_Fields = { + __typename?: 'proposal_staking_pool_snapshot_min_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; + proposal_id?: Maybe; }; -/** Ordering options when selecting data from "mint_params". */ -export type Mint_Params_Order_By = { +/** Ordering options when selecting data from "proposal_staking_pool_snapshot". */ +export type Proposal_Staking_Pool_Snapshot_Order_By = { + bonded_tokens?: Maybe; height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; + not_bonded_tokens?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; }; -/** select columns of table "mint_params" */ -export enum Mint_Params_Select_Column { +/** 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 */ - OneRowId = 'one_row_id', + NotBondedTokens = 'not_bonded_tokens', /** column name */ - Params = 'params' + ProposalId = 'proposal_id' } /** aggregate stddev on columns */ -export type Mint_Params_Stddev_Fields = { - __typename?: 'mint_params_stddev_fields'; +export type Proposal_Staking_Pool_Snapshot_Stddev_Fields = { + __typename?: 'proposal_staking_pool_snapshot_stddev_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; + proposal_id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Mint_Params_Stddev_Pop_Fields = { - __typename?: 'mint_params_stddev_pop_fields'; +export type Proposal_Staking_Pool_Snapshot_Stddev_Pop_Fields = { + __typename?: 'proposal_staking_pool_snapshot_stddev_pop_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; + proposal_id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Mint_Params_Stddev_Samp_Fields = { - __typename?: 'mint_params_stddev_samp_fields'; +export type Proposal_Staking_Pool_Snapshot_Stddev_Samp_Fields = { + __typename?: 'proposal_staking_pool_snapshot_stddev_samp_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; + proposal_id?: Maybe; }; /** aggregate sum on columns */ -export type Mint_Params_Sum_Fields = { - __typename?: 'mint_params_sum_fields'; +export type Proposal_Staking_Pool_Snapshot_Sum_Fields = { + __typename?: 'proposal_staking_pool_snapshot_sum_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; + proposal_id?: Maybe; }; /** aggregate var_pop on columns */ -export type Mint_Params_Var_Pop_Fields = { - __typename?: 'mint_params_var_pop_fields'; +export type Proposal_Staking_Pool_Snapshot_Var_Pop_Fields = { + __typename?: 'proposal_staking_pool_snapshot_var_pop_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; + proposal_id?: Maybe; }; /** aggregate var_samp on columns */ -export type Mint_Params_Var_Samp_Fields = { - __typename?: 'mint_params_var_samp_fields'; +export type Proposal_Staking_Pool_Snapshot_Var_Samp_Fields = { + __typename?: 'proposal_staking_pool_snapshot_var_samp_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; + proposal_id?: Maybe; }; /** aggregate variance on columns */ -export type Mint_Params_Variance_Fields = { - __typename?: 'mint_params_variance_fields'; +export type Proposal_Staking_Pool_Snapshot_Variance_Fields = { + __typename?: 'proposal_staking_pool_snapshot_variance_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; + proposal_id?: Maybe; }; -/** columns and relationships of "modules" */ -export type Modules = { - __typename?: 'modules'; - module_name: Scalars['String']; +/** aggregate stddev on columns */ +export type Proposal_Stddev_Fields = { + __typename?: 'proposal_stddev_fields'; + id?: Maybe; }; -/** aggregated selection of "modules" */ -export type Modules_Aggregate = { - __typename?: 'modules_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** order by stddev() on columns of table "proposal" */ +export type Proposal_Stddev_Order_By = { + id?: Maybe; }; -/** aggregate fields of "modules" */ -export type Modules_Aggregate_Fields = { - __typename?: 'modules_aggregate_fields'; - count: Scalars['Int']; - max?: Maybe; - min?: Maybe; +/** aggregate stddev_pop on columns */ +export type Proposal_Stddev_Pop_Fields = { + __typename?: 'proposal_stddev_pop_fields'; + id?: Maybe; }; - -/** aggregate fields of "modules" */ -export type Modules_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** order by stddev_pop() on columns of table "proposal" */ +export type Proposal_Stddev_Pop_Order_By = { + id?: Maybe; }; -/** Boolean expression to filter rows from the table "modules". All fields are combined with a logical 'AND'. */ -export type Modules_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - module_name?: Maybe; -}; - -/** aggregate max on columns */ -export type Modules_Max_Fields = { - __typename?: 'modules_max_fields'; - module_name?: Maybe; -}; - -/** aggregate min on columns */ -export type Modules_Min_Fields = { - __typename?: 'modules_min_fields'; - module_name?: Maybe; -}; - -/** Ordering options when selecting data from "modules". */ -export type Modules_Order_By = { - module_name?: Maybe; -}; - -/** select columns of table "modules" */ -export enum Modules_Select_Column { - /** column name */ - ModuleName = 'module_name' -} - - -/** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ -export type Numeric_Comparison_Exp = { - _eq?: Maybe; - _gt?: Maybe; - _gte?: Maybe; - _in?: Maybe>; - _is_null?: Maybe; - _lt?: Maybe; - _lte?: Maybe; - _neq?: Maybe; - _nin?: Maybe>; -}; - -/** 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 "poll" */ -export type Poll = { - __typename?: 'poll'; - allows_answer_edits: Scalars['Boolean']; - allows_multiple_answers: Scalars['Boolean']; - end_date: Scalars['timestamp']; - id: Scalars['Int']; - /** An array relationship */ - poll_answers: Array; - /** An aggregate relationship */ - poll_answers_aggregate: Poll_Answer_Aggregate; - /** An object relationship */ - post: Post; - post_id: Scalars['String']; - question: Scalars['String']; - /** An array relationship */ - user_poll_answers: Array; - /** An aggregate relationship */ - user_poll_answers_aggregate: User_Poll_Answer_Aggregate; -}; - - -/** columns and relationships of "poll" */ -export type PollPoll_AnswersArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "poll" */ -export type PollPoll_Answers_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "poll" */ -export type PollUser_Poll_AnswersArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "poll" */ -export type PollUser_Poll_Answers_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate stddev_samp on columns */ +export type Proposal_Stddev_Samp_Fields = { + __typename?: 'proposal_stddev_samp_fields'; + id?: Maybe; }; -/** aggregated selection of "poll" */ -export type Poll_Aggregate = { - __typename?: 'poll_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** order by stddev_samp() on columns of table "proposal" */ +export type Proposal_Stddev_Samp_Order_By = { + id?: Maybe; }; -/** aggregate fields of "poll" */ -export type Poll_Aggregate_Fields = { - __typename?: 'poll_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 sum on columns */ +export type Proposal_Sum_Fields = { + __typename?: 'proposal_sum_fields'; + id?: Maybe; }; - -/** aggregate fields of "poll" */ -export type Poll_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** order by sum() on columns of table "proposal" */ +export type Proposal_Sum_Order_By = { + id?: Maybe; }; -/** columns and relationships of "poll_answer" */ -export type Poll_Answer = { - __typename?: 'poll_answer'; - answer_id: Scalars['String']; - answer_text: Scalars['String']; +/** 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 */ - poll: Poll; - poll_id: Scalars['Int']; + proposal: Proposal; + proposal_id: Scalars['Int']; + yes: Scalars['String']; }; -/** aggregated selection of "poll_answer" */ -export type Poll_Answer_Aggregate = { - __typename?: 'poll_answer_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "proposal_tally_result" */ +export type Proposal_Tally_Result_Aggregate = { + __typename?: 'proposal_tally_result_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "poll_answer" */ -export type Poll_Answer_Aggregate_Fields = { - __typename?: 'poll_answer_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "proposal_tally_result" */ +export type Proposal_Tally_Result_Aggregate_Fields = { + __typename?: 'proposal_tally_result_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; + 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 "poll_answer" */ -export type Poll_Answer_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "proposal_tally_result" */ +export type Proposal_Tally_Result_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "poll_answer" */ -export type Poll_Answer_Aggregate_Order_By = { - avg?: Maybe; +/** order by aggregate values of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate avg on columns */ -export type Poll_Answer_Avg_Fields = { - __typename?: 'poll_answer_avg_fields'; - poll_id?: Maybe; +export type Proposal_Tally_Result_Avg_Fields = { + __typename?: 'proposal_tally_result_avg_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by avg() on columns of table "poll_answer" */ -export type Poll_Answer_Avg_Order_By = { - poll_id?: Maybe; +/** order by avg() on columns of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Avg_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; -/** Boolean expression to filter rows from the table "poll_answer". All fields are combined with a logical 'AND'. */ -export type Poll_Answer_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - answer_id?: Maybe; - answer_text?: Maybe; - poll?: Maybe; - poll_id?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + abstain?: Maybe; + height?: Maybe; + no?: Maybe; + no_with_veto?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; + yes?: Maybe; }; /** aggregate max on columns */ -export type Poll_Answer_Max_Fields = { - __typename?: 'poll_answer_max_fields'; - answer_id?: Maybe; - answer_text?: Maybe; - poll_id?: Maybe; +export type Proposal_Tally_Result_Max_Fields = { + __typename?: 'proposal_tally_result_max_fields'; + abstain?: Maybe; + height?: Maybe; + no?: Maybe; + no_with_veto?: Maybe; + proposal_id?: Maybe; + yes?: Maybe; }; -/** order by max() on columns of table "poll_answer" */ -export type Poll_Answer_Max_Order_By = { - answer_id?: Maybe; - answer_text?: Maybe; - poll_id?: Maybe; +/** order by max() on columns of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Max_Order_By = { + abstain?: Maybe; + height?: Maybe; + no?: Maybe; + no_with_veto?: Maybe; + proposal_id?: Maybe; + yes?: Maybe; }; /** aggregate min on columns */ -export type Poll_Answer_Min_Fields = { - __typename?: 'poll_answer_min_fields'; - answer_id?: Maybe; - answer_text?: Maybe; - poll_id?: Maybe; +export type Proposal_Tally_Result_Min_Fields = { + __typename?: 'proposal_tally_result_min_fields'; + abstain?: Maybe; + height?: Maybe; + no?: Maybe; + no_with_veto?: Maybe; + proposal_id?: Maybe; + yes?: Maybe; }; -/** order by min() on columns of table "poll_answer" */ -export type Poll_Answer_Min_Order_By = { - answer_id?: Maybe; - answer_text?: Maybe; - poll_id?: Maybe; +/** order by min() on columns of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Min_Order_By = { + abstain?: Maybe; + height?: Maybe; + no?: Maybe; + no_with_veto?: Maybe; + proposal_id?: Maybe; + yes?: Maybe; }; -/** Ordering options when selecting data from "poll_answer". */ -export type Poll_Answer_Order_By = { - answer_id?: Maybe; - answer_text?: Maybe; - poll?: Maybe; - poll_id?: Maybe; +/** Ordering options when selecting data from "proposal_tally_result". */ +export type Proposal_Tally_Result_Order_By = { + abstain?: Maybe; + height?: Maybe; + no?: Maybe; + no_with_veto?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; + yes?: Maybe; }; -/** select columns of table "poll_answer" */ -export enum Poll_Answer_Select_Column { +/** select columns of table "proposal_tally_result" */ +export enum Proposal_Tally_Result_Select_Column { /** column name */ - AnswerId = 'answer_id', + Abstain = 'abstain', + /** column name */ + Height = 'height', + /** column name */ + No = 'no', + /** column name */ + NoWithVeto = 'no_with_veto', /** column name */ - AnswerText = 'answer_text', + ProposalId = 'proposal_id', /** column name */ - PollId = 'poll_id' + Yes = 'yes' } /** aggregate stddev on columns */ -export type Poll_Answer_Stddev_Fields = { - __typename?: 'poll_answer_stddev_fields'; - poll_id?: Maybe; +export type Proposal_Tally_Result_Stddev_Fields = { + __typename?: 'proposal_tally_result_stddev_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by stddev() on columns of table "poll_answer" */ -export type Poll_Answer_Stddev_Order_By = { - poll_id?: Maybe; +/** order by stddev() on columns of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Stddev_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Poll_Answer_Stddev_Pop_Fields = { - __typename?: 'poll_answer_stddev_pop_fields'; - poll_id?: Maybe; +export type Proposal_Tally_Result_Stddev_Pop_Fields = { + __typename?: 'proposal_tally_result_stddev_pop_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by stddev_pop() on columns of table "poll_answer" */ -export type Poll_Answer_Stddev_Pop_Order_By = { - poll_id?: Maybe; +/** order by stddev_pop() on columns of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Stddev_Pop_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Poll_Answer_Stddev_Samp_Fields = { - __typename?: 'poll_answer_stddev_samp_fields'; - poll_id?: Maybe; +export type Proposal_Tally_Result_Stddev_Samp_Fields = { + __typename?: 'proposal_tally_result_stddev_samp_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by stddev_samp() on columns of table "poll_answer" */ -export type Poll_Answer_Stddev_Samp_Order_By = { - poll_id?: Maybe; +/** order by stddev_samp() on columns of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Stddev_Samp_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate sum on columns */ -export type Poll_Answer_Sum_Fields = { - __typename?: 'poll_answer_sum_fields'; - poll_id?: Maybe; +export type Proposal_Tally_Result_Sum_Fields = { + __typename?: 'proposal_tally_result_sum_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by sum() on columns of table "poll_answer" */ -export type Poll_Answer_Sum_Order_By = { - poll_id?: Maybe; +/** order by sum() on columns of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Sum_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate var_pop on columns */ -export type Poll_Answer_Var_Pop_Fields = { - __typename?: 'poll_answer_var_pop_fields'; - poll_id?: Maybe; -}; - -/** order by var_pop() on columns of table "poll_answer" */ -export type Poll_Answer_Var_Pop_Order_By = { - poll_id?: Maybe; +export type Proposal_Tally_Result_Var_Pop_Fields = { + __typename?: 'proposal_tally_result_var_pop_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** aggregate var_samp on columns */ -export type Poll_Answer_Var_Samp_Fields = { - __typename?: 'poll_answer_var_samp_fields'; - poll_id?: Maybe; +/** order by var_pop() on columns of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Var_Pop_Order_By = { + height?: Maybe; + proposal_id?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Proposal_Tally_Result_Var_Samp_Fields = { + __typename?: 'proposal_tally_result_var_samp_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by var_samp() on columns of table "poll_answer" */ -export type Poll_Answer_Var_Samp_Order_By = { - poll_id?: Maybe; +/** order by var_samp() on columns of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Var_Samp_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate variance on columns */ -export type Poll_Answer_Variance_Fields = { - __typename?: 'poll_answer_variance_fields'; - poll_id?: Maybe; +export type Proposal_Tally_Result_Variance_Fields = { + __typename?: 'proposal_tally_result_variance_fields'; + height?: Maybe; + proposal_id?: Maybe; +}; + +/** order by variance() on columns of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Variance_Order_By = { + height?: Maybe; + proposal_id?: Maybe; +}; + +/** columns and relationships of "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot = { + __typename?: 'proposal_validator_status_snapshot'; + height: Scalars['bigint']; + id: Scalars['Int']; + 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']; +}; + +/** aggregated selection of "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Aggregate = { + __typename?: 'proposal_validator_status_snapshot_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Aggregate_Fields = { + __typename?: 'proposal_validator_status_snapshot_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; }; -/** order by variance() on columns of table "poll_answer" */ -export type Poll_Answer_Variance_Order_By = { - poll_id?: Maybe; + +/** aggregate fields of "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate avg on columns */ -export type Poll_Avg_Fields = { - __typename?: 'poll_avg_fields'; +export type Proposal_Validator_Status_Snapshot_Avg_Fields = { + __typename?: 'proposal_validator_status_snapshot_avg_fields'; + height?: Maybe; id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; +}; + +/** order by avg() on columns of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Avg_Order_By = { + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; -/** Boolean expression to filter rows from the table "poll". All fields are combined with a logical 'AND'. */ -export type Poll_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - allows_answer_edits?: Maybe; - allows_multiple_answers?: Maybe; - end_date?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + height?: Maybe; id?: Maybe; - poll_answers?: Maybe; - post?: Maybe; - post_id?: Maybe; - question?: Maybe; - user_poll_answers?: Maybe; + jailed?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + validator?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; /** aggregate max on columns */ -export type Poll_Max_Fields = { - __typename?: 'poll_max_fields'; - end_date?: Maybe; +export type Proposal_Validator_Status_Snapshot_Max_Fields = { + __typename?: 'proposal_validator_status_snapshot_max_fields'; + height?: Maybe; id?: Maybe; - post_id?: Maybe; - question?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; +}; + +/** order by max() on columns of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Max_Order_By = { + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; /** aggregate min on columns */ -export type Poll_Min_Fields = { - __typename?: 'poll_min_fields'; - end_date?: Maybe; +export type Proposal_Validator_Status_Snapshot_Min_Fields = { + __typename?: 'proposal_validator_status_snapshot_min_fields'; + height?: Maybe; id?: Maybe; - post_id?: Maybe; - question?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; +}; + +/** order by min() on columns of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Min_Order_By = { + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; -/** Ordering options when selecting data from "poll". */ -export type Poll_Order_By = { - allows_answer_edits?: Maybe; - allows_multiple_answers?: Maybe; - end_date?: Maybe; +/** Ordering options when selecting data from "proposal_validator_status_snapshot". */ +export type Proposal_Validator_Status_Snapshot_Order_By = { + height?: Maybe; id?: Maybe; - poll_answers_aggregate?: Maybe; - post?: Maybe; - post_id?: Maybe; - question?: Maybe; - user_poll_answers_aggregate?: Maybe; + jailed?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + validator?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; -/** select columns of table "poll" */ -export enum Poll_Select_Column { +/** select columns of table "proposal_validator_status_snapshot" */ +export enum Proposal_Validator_Status_Snapshot_Select_Column { + /** column name */ + Height = 'height', /** column name */ - AllowsAnswerEdits = 'allows_answer_edits', + Id = 'id', /** column name */ - AllowsMultipleAnswers = 'allows_multiple_answers', + Jailed = 'jailed', /** column name */ - EndDate = 'end_date', + ProposalId = 'proposal_id', /** column name */ - Id = 'id', + Status = 'status', /** column name */ - PostId = 'post_id', + ValidatorAddress = 'validator_address', /** column name */ - Question = 'question' + VotingPower = 'voting_power' } /** aggregate stddev on columns */ -export type Poll_Stddev_Fields = { - __typename?: 'poll_stddev_fields'; +export type Proposal_Validator_Status_Snapshot_Stddev_Fields = { + __typename?: 'proposal_validator_status_snapshot_stddev_fields'; + height?: Maybe; id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; +}; + +/** order by stddev() on columns of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Stddev_Order_By = { + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Poll_Stddev_Pop_Fields = { - __typename?: 'poll_stddev_pop_fields'; +export type Proposal_Validator_Status_Snapshot_Stddev_Pop_Fields = { + __typename?: 'proposal_validator_status_snapshot_stddev_pop_fields'; + height?: Maybe; id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; +}; + +/** order by stddev_pop() on columns of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Stddev_Pop_Order_By = { + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Poll_Stddev_Samp_Fields = { - __typename?: 'poll_stddev_samp_fields'; +export type Proposal_Validator_Status_Snapshot_Stddev_Samp_Fields = { + __typename?: 'proposal_validator_status_snapshot_stddev_samp_fields'; + height?: Maybe; id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; +}; + +/** order by stddev_samp() on columns of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Stddev_Samp_Order_By = { + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; /** aggregate sum on columns */ -export type Poll_Sum_Fields = { - __typename?: 'poll_sum_fields'; +export type Proposal_Validator_Status_Snapshot_Sum_Fields = { + __typename?: 'proposal_validator_status_snapshot_sum_fields'; + height?: Maybe; id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; +}; + +/** order by sum() on columns of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Sum_Order_By = { + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; /** aggregate var_pop on columns */ -export type Poll_Var_Pop_Fields = { - __typename?: 'poll_var_pop_fields'; +export type Proposal_Validator_Status_Snapshot_Var_Pop_Fields = { + __typename?: 'proposal_validator_status_snapshot_var_pop_fields'; + height?: Maybe; id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; -/** aggregate var_samp on columns */ -export type Poll_Var_Samp_Fields = { - __typename?: 'poll_var_samp_fields'; - id?: Maybe; +/** order by var_pop() on columns of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Var_Pop_Order_By = { + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; -/** aggregate variance on columns */ -export type Poll_Variance_Fields = { - __typename?: 'poll_variance_fields'; +/** aggregate var_samp on columns */ +export type Proposal_Validator_Status_Snapshot_Var_Samp_Fields = { + __typename?: 'proposal_validator_status_snapshot_var_samp_fields'; + height?: Maybe; id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; -/** columns and relationships of "post" */ -export type Post = { - __typename?: 'post'; - comments_state: Scalars['String']; - created: Scalars['timestamp']; - creator_address: Scalars['String']; - height: Scalars['bigint']; - hidden: Scalars['Boolean']; - id: Scalars['String']; - last_edited: Scalars['timestamp']; - message: Scalars['String']; - parent_id?: Maybe; - /** An object relationship */ - poll: Poll; - /** An object relationship */ - post?: Maybe; - /** An array relationship */ - post_attachments: Array; - /** An aggregate relationship */ - post_attachments_aggregate: Post_Attachment_Aggregate; - /** An array relationship */ - post_attributes: Array; - /** An aggregate relationship */ - post_attributes_aggregate: Post_Attribute_Aggregate; - /** An array relationship */ - post_reactions: Array; - /** An aggregate relationship */ - post_reactions_aggregate: Post_Reaction_Aggregate; - /** An array relationship */ - post_reports: Array; - /** An aggregate relationship */ - post_reports_aggregate: Post_Report_Aggregate; - /** An array relationship */ - posts: Array; - /** An aggregate relationship */ - posts_aggregate: Post_Aggregate; - /** An object relationship */ - profile: Profile; - subspace: Scalars['String']; -}; - - -/** columns and relationships of "post" */ -export type PostPost_AttachmentsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "post" */ -export type PostPost_Attachments_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "post" */ -export type PostPost_AttributesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "post" */ -export type PostPost_Attributes_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "post" */ -export type PostPost_ReactionsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** order by var_samp() on columns of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Var_Samp_Order_By = { + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; - -/** columns and relationships of "post" */ -export type PostPost_Reactions_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate variance on columns */ +export type Proposal_Validator_Status_Snapshot_Variance_Fields = { + __typename?: 'proposal_validator_status_snapshot_variance_fields'; + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; - -/** columns and relationships of "post" */ -export type PostPost_ReportsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** order by variance() on columns of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Variance_Order_By = { + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; - -/** columns and relationships of "post" */ -export type PostPost_Reports_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate var_pop on columns */ +export type Proposal_Var_Pop_Fields = { + __typename?: 'proposal_var_pop_fields'; + id?: Maybe; }; - -/** columns and relationships of "post" */ -export type PostPostsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** order by var_pop() on columns of table "proposal" */ +export type Proposal_Var_Pop_Order_By = { + id?: Maybe; }; - -/** columns and relationships of "post" */ -export type PostPosts_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate var_samp on columns */ +export type Proposal_Var_Samp_Fields = { + __typename?: 'proposal_var_samp_fields'; + id?: Maybe; }; -/** aggregated selection of "post" */ -export type Post_Aggregate = { - __typename?: 'post_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** order by var_samp() on columns of table "proposal" */ +export type Proposal_Var_Samp_Order_By = { + id?: Maybe; }; -/** aggregate fields of "post" */ -export type Post_Aggregate_Fields = { - __typename?: 'post_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 variance on columns */ +export type Proposal_Variance_Fields = { + __typename?: 'proposal_variance_fields'; + id?: Maybe; }; - -/** aggregate fields of "post" */ -export type Post_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** order by variance() on columns of table "proposal" */ +export type Proposal_Variance_Order_By = { + id?: Maybe; }; -/** order by aggregate values of table "post" */ -export type Post_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** columns and relationships of "post_attachment" */ -export type Post_Attachment = { - __typename?: 'post_attachment'; - id: Scalars['Int']; - mime_type: Scalars['String']; +/** columns and relationships of "proposal_vote" */ +export type Proposal_Vote = { + __typename?: 'proposal_vote'; /** An object relationship */ - post: Post; - /** An array relationship */ - post_attachment_tags: Array; - /** An aggregate relationship */ - post_attachment_tags_aggregate: Post_Attachment_Tag_Aggregate; - post_id: Scalars['String']; - uri: Scalars['String']; -}; - - -/** columns and relationships of "post_attachment" */ -export type Post_AttachmentPost_Attachment_TagsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "post_attachment" */ -export type Post_AttachmentPost_Attachment_Tags_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + account: Account; + height: Scalars['bigint']; + option: Scalars['String']; + /** An object relationship */ + proposal: Proposal; + proposal_id: Scalars['Int']; + voter_address: Scalars['String']; }; -/** aggregated selection of "post_attachment" */ -export type Post_Attachment_Aggregate = { - __typename?: 'post_attachment_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "proposal_vote" */ +export type Proposal_Vote_Aggregate = { + __typename?: 'proposal_vote_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "post_attachment" */ -export type Post_Attachment_Aggregate_Fields = { - __typename?: 'post_attachment_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "proposal_vote" */ +export type Proposal_Vote_Aggregate_Fields = { + __typename?: 'proposal_vote_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; + 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 "post_attachment" */ -export type Post_Attachment_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "proposal_vote" */ +export type Proposal_Vote_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "post_attachment" */ -export type Post_Attachment_Aggregate_Order_By = { - avg?: Maybe; +/** order by aggregate values of table "proposal_vote" */ +export type Proposal_Vote_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate avg on columns */ -export type Post_Attachment_Avg_Fields = { - __typename?: 'post_attachment_avg_fields'; - id?: Maybe; +export type Proposal_Vote_Avg_Fields = { + __typename?: 'proposal_vote_avg_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by avg() on columns of table "post_attachment" */ -export type Post_Attachment_Avg_Order_By = { - id?: Maybe; +/** order by avg() on columns of table "proposal_vote" */ +export type Proposal_Vote_Avg_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; -/** Boolean expression to filter rows from the table "post_attachment". All fields are combined with a logical 'AND'. */ -export type Post_Attachment_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - id?: Maybe; - mime_type?: Maybe; - post?: Maybe; - post_attachment_tags?: Maybe; - post_id?: Maybe; - uri?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + account?: Maybe; + height?: Maybe; + option?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; + voter_address?: Maybe; }; /** aggregate max on columns */ -export type Post_Attachment_Max_Fields = { - __typename?: 'post_attachment_max_fields'; - id?: Maybe; - mime_type?: Maybe; - post_id?: Maybe; - uri?: Maybe; +export type Proposal_Vote_Max_Fields = { + __typename?: 'proposal_vote_max_fields'; + height?: Maybe; + option?: Maybe; + proposal_id?: Maybe; + voter_address?: Maybe; }; -/** order by max() on columns of table "post_attachment" */ -export type Post_Attachment_Max_Order_By = { - id?: Maybe; - mime_type?: Maybe; - post_id?: Maybe; - uri?: Maybe; +/** order by max() on columns of table "proposal_vote" */ +export type Proposal_Vote_Max_Order_By = { + height?: Maybe; + option?: Maybe; + proposal_id?: Maybe; + voter_address?: Maybe; }; /** aggregate min on columns */ -export type Post_Attachment_Min_Fields = { - __typename?: 'post_attachment_min_fields'; - id?: Maybe; - mime_type?: Maybe; - post_id?: Maybe; - uri?: Maybe; +export type Proposal_Vote_Min_Fields = { + __typename?: 'proposal_vote_min_fields'; + height?: Maybe; + option?: Maybe; + proposal_id?: Maybe; + voter_address?: Maybe; }; -/** order by min() on columns of table "post_attachment" */ -export type Post_Attachment_Min_Order_By = { - id?: Maybe; - mime_type?: Maybe; - post_id?: Maybe; - uri?: Maybe; +/** order by min() on columns of table "proposal_vote" */ +export type Proposal_Vote_Min_Order_By = { + height?: Maybe; + option?: Maybe; + proposal_id?: Maybe; + voter_address?: Maybe; }; -/** Ordering options when selecting data from "post_attachment". */ -export type Post_Attachment_Order_By = { - id?: Maybe; - mime_type?: Maybe; - post?: Maybe; - post_attachment_tags_aggregate?: Maybe; - post_id?: Maybe; - uri?: Maybe; +/** Ordering options when selecting data from "proposal_vote". */ +export type Proposal_Vote_Order_By = { + account?: Maybe; + height?: Maybe; + option?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; + voter_address?: Maybe; }; -/** select columns of table "post_attachment" */ -export enum Post_Attachment_Select_Column { +/** select columns of table "proposal_vote" */ +export enum Proposal_Vote_Select_Column { /** column name */ - Id = 'id', + Height = 'height', /** column name */ - MimeType = 'mime_type', + Option = 'option', /** column name */ - PostId = 'post_id', + ProposalId = 'proposal_id', /** column name */ - Uri = 'uri' + VoterAddress = 'voter_address' } /** aggregate stddev on columns */ -export type Post_Attachment_Stddev_Fields = { - __typename?: 'post_attachment_stddev_fields'; - id?: Maybe; +export type Proposal_Vote_Stddev_Fields = { + __typename?: 'proposal_vote_stddev_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by stddev() on columns of table "post_attachment" */ -export type Post_Attachment_Stddev_Order_By = { - id?: Maybe; +/** order by stddev() on columns of table "proposal_vote" */ +export type Proposal_Vote_Stddev_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Post_Attachment_Stddev_Pop_Fields = { - __typename?: 'post_attachment_stddev_pop_fields'; - id?: Maybe; +export type Proposal_Vote_Stddev_Pop_Fields = { + __typename?: 'proposal_vote_stddev_pop_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by stddev_pop() on columns of table "post_attachment" */ -export type Post_Attachment_Stddev_Pop_Order_By = { - id?: Maybe; +/** order by stddev_pop() on columns of table "proposal_vote" */ +export type Proposal_Vote_Stddev_Pop_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Post_Attachment_Stddev_Samp_Fields = { - __typename?: 'post_attachment_stddev_samp_fields'; - id?: Maybe; +export type Proposal_Vote_Stddev_Samp_Fields = { + __typename?: 'proposal_vote_stddev_samp_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by stddev_samp() on columns of table "post_attachment" */ -export type Post_Attachment_Stddev_Samp_Order_By = { - id?: Maybe; +/** order by stddev_samp() on columns of table "proposal_vote" */ +export type Proposal_Vote_Stddev_Samp_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate sum on columns */ -export type Post_Attachment_Sum_Fields = { - __typename?: 'post_attachment_sum_fields'; - id?: Maybe; -}; - -/** order by sum() on columns of table "post_attachment" */ -export type Post_Attachment_Sum_Order_By = { - id?: Maybe; +export type Proposal_Vote_Sum_Fields = { + __typename?: 'proposal_vote_sum_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** columns and relationships of "post_attachment_tag" */ -export type Post_Attachment_Tag = { - __typename?: 'post_attachment_tag'; - attachment_id: Scalars['Int']; - /** An object relationship */ - post_attachment: Post_Attachment; - /** An object relationship */ - profile: Profile; - tag_address: Scalars['String']; -}; - -/** aggregated selection of "post_attachment_tag" */ -export type Post_Attachment_Tag_Aggregate = { - __typename?: 'post_attachment_tag_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "post_attachment_tag" */ -export type Post_Attachment_Tag_Aggregate_Fields = { - __typename?: 'post_attachment_tag_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 "post_attachment_tag" */ -export type Post_Attachment_Tag_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Post_Attachment_Tag_Avg_Fields = { - __typename?: 'post_attachment_tag_avg_fields'; - attachment_id?: Maybe; -}; - -/** order by avg() on columns of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Avg_Order_By = { - attachment_id?: Maybe; -}; - -/** Boolean expression to filter rows from the table "post_attachment_tag". All fields are combined with a logical 'AND'. */ -export type Post_Attachment_Tag_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - attachment_id?: Maybe; - post_attachment?: Maybe; - profile?: Maybe; - tag_address?: Maybe; -}; - -/** aggregate max on columns */ -export type Post_Attachment_Tag_Max_Fields = { - __typename?: 'post_attachment_tag_max_fields'; - attachment_id?: Maybe; - tag_address?: Maybe; -}; - -/** order by max() on columns of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Max_Order_By = { - attachment_id?: Maybe; - tag_address?: Maybe; -}; - -/** aggregate min on columns */ -export type Post_Attachment_Tag_Min_Fields = { - __typename?: 'post_attachment_tag_min_fields'; - attachment_id?: Maybe; - tag_address?: Maybe; -}; - -/** order by min() on columns of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Min_Order_By = { - attachment_id?: Maybe; - tag_address?: Maybe; -}; - -/** Ordering options when selecting data from "post_attachment_tag". */ -export type Post_Attachment_Tag_Order_By = { - attachment_id?: Maybe; - post_attachment?: Maybe; - profile?: Maybe; - tag_address?: Maybe; -}; - -/** select columns of table "post_attachment_tag" */ -export enum Post_Attachment_Tag_Select_Column { - /** column name */ - AttachmentId = 'attachment_id', - /** column name */ - TagAddress = 'tag_address' -} - -/** aggregate stddev on columns */ -export type Post_Attachment_Tag_Stddev_Fields = { - __typename?: 'post_attachment_tag_stddev_fields'; - attachment_id?: Maybe; -}; - -/** order by stddev() on columns of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Stddev_Order_By = { - attachment_id?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Post_Attachment_Tag_Stddev_Pop_Fields = { - __typename?: 'post_attachment_tag_stddev_pop_fields'; - attachment_id?: Maybe; -}; - -/** order by stddev_pop() on columns of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Stddev_Pop_Order_By = { - attachment_id?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Post_Attachment_Tag_Stddev_Samp_Fields = { - __typename?: 'post_attachment_tag_stddev_samp_fields'; - attachment_id?: Maybe; -}; - -/** order by stddev_samp() on columns of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Stddev_Samp_Order_By = { - attachment_id?: Maybe; -}; - -/** aggregate sum on columns */ -export type Post_Attachment_Tag_Sum_Fields = { - __typename?: 'post_attachment_tag_sum_fields'; - attachment_id?: Maybe; -}; - -/** order by sum() on columns of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Sum_Order_By = { - attachment_id?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Post_Attachment_Tag_Var_Pop_Fields = { - __typename?: 'post_attachment_tag_var_pop_fields'; - attachment_id?: Maybe; -}; - -/** order by var_pop() on columns of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Var_Pop_Order_By = { - attachment_id?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Post_Attachment_Tag_Var_Samp_Fields = { - __typename?: 'post_attachment_tag_var_samp_fields'; - attachment_id?: Maybe; -}; - -/** order by var_samp() on columns of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Var_Samp_Order_By = { - attachment_id?: Maybe; -}; - -/** aggregate variance on columns */ -export type Post_Attachment_Tag_Variance_Fields = { - __typename?: 'post_attachment_tag_variance_fields'; - attachment_id?: Maybe; -}; - -/** order by variance() on columns of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Variance_Order_By = { - attachment_id?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Post_Attachment_Var_Pop_Fields = { - __typename?: 'post_attachment_var_pop_fields'; - id?: Maybe; -}; - -/** order by var_pop() on columns of table "post_attachment" */ -export type Post_Attachment_Var_Pop_Order_By = { - id?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Post_Attachment_Var_Samp_Fields = { - __typename?: 'post_attachment_var_samp_fields'; - id?: Maybe; -}; - -/** order by var_samp() on columns of table "post_attachment" */ -export type Post_Attachment_Var_Samp_Order_By = { - id?: Maybe; -}; - -/** aggregate variance on columns */ -export type Post_Attachment_Variance_Fields = { - __typename?: 'post_attachment_variance_fields'; - id?: Maybe; -}; - -/** order by variance() on columns of table "post_attachment" */ -export type Post_Attachment_Variance_Order_By = { - id?: Maybe; -}; - -/** columns and relationships of "post_attribute" */ -export type Post_Attribute = { - __typename?: 'post_attribute'; - key: Scalars['String']; - /** An object relationship */ - post: Post; - post_id: Scalars['String']; - value: Scalars['String']; -}; - -/** aggregated selection of "post_attribute" */ -export type Post_Attribute_Aggregate = { - __typename?: 'post_attribute_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "post_attribute" */ -export type Post_Attribute_Aggregate_Fields = { - __typename?: 'post_attribute_aggregate_fields'; - count: Scalars['Int']; - max?: Maybe; - min?: Maybe; -}; - - -/** aggregate fields of "post_attribute" */ -export type Post_Attribute_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "post_attribute" */ -export type Post_Attribute_Aggregate_Order_By = { - count?: Maybe; - max?: Maybe; - min?: Maybe; -}; - -/** Boolean expression to filter rows from the table "post_attribute". All fields are combined with a logical 'AND'. */ -export type Post_Attribute_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - key?: Maybe; - post?: Maybe; - post_id?: Maybe; - value?: Maybe; -}; - -/** aggregate max on columns */ -export type Post_Attribute_Max_Fields = { - __typename?: 'post_attribute_max_fields'; - key?: Maybe; - post_id?: Maybe; - value?: Maybe; -}; - -/** order by max() on columns of table "post_attribute" */ -export type Post_Attribute_Max_Order_By = { - key?: Maybe; - post_id?: Maybe; - value?: Maybe; -}; - -/** aggregate min on columns */ -export type Post_Attribute_Min_Fields = { - __typename?: 'post_attribute_min_fields'; - key?: Maybe; - post_id?: Maybe; - value?: Maybe; -}; - -/** order by min() on columns of table "post_attribute" */ -export type Post_Attribute_Min_Order_By = { - key?: Maybe; - post_id?: Maybe; - value?: Maybe; -}; - -/** Ordering options when selecting data from "post_attribute". */ -export type Post_Attribute_Order_By = { - key?: Maybe; - post?: Maybe; - post_id?: Maybe; - value?: Maybe; -}; - -/** select columns of table "post_attribute" */ -export enum Post_Attribute_Select_Column { - /** column name */ - Key = 'key', - /** column name */ - PostId = 'post_id', - /** column name */ - Value = 'value' -} - -/** aggregate avg on columns */ -export type Post_Avg_Fields = { - __typename?: 'post_avg_fields'; - height?: Maybe; -}; - -/** order by avg() on columns of table "post" */ -export type Post_Avg_Order_By = { - height?: Maybe; -}; - -/** Boolean expression to filter rows from the table "post". All fields are combined with a logical 'AND'. */ -export type Post_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - comments_state?: Maybe; - created?: Maybe; - creator_address?: Maybe; - height?: Maybe; - hidden?: Maybe; - id?: Maybe; - last_edited?: Maybe; - message?: Maybe; - parent_id?: Maybe; - poll?: Maybe; - post?: Maybe; - post_attachments?: Maybe; - post_attributes?: Maybe; - post_reactions?: Maybe; - post_reports?: Maybe; - posts?: Maybe; - profile?: Maybe; - subspace?: Maybe; -}; - -/** aggregate max on columns */ -export type Post_Max_Fields = { - __typename?: 'post_max_fields'; - comments_state?: Maybe; - created?: Maybe; - creator_address?: Maybe; - height?: Maybe; - id?: Maybe; - last_edited?: Maybe; - message?: Maybe; - parent_id?: Maybe; - subspace?: Maybe; -}; - -/** order by max() on columns of table "post" */ -export type Post_Max_Order_By = { - comments_state?: Maybe; - created?: Maybe; - creator_address?: Maybe; - height?: Maybe; - id?: Maybe; - last_edited?: Maybe; - message?: Maybe; - parent_id?: Maybe; - subspace?: Maybe; -}; - -/** aggregate min on columns */ -export type Post_Min_Fields = { - __typename?: 'post_min_fields'; - comments_state?: Maybe; - created?: Maybe; - creator_address?: Maybe; - height?: Maybe; - id?: Maybe; - last_edited?: Maybe; - message?: Maybe; - parent_id?: Maybe; - subspace?: Maybe; -}; - -/** order by min() on columns of table "post" */ -export type Post_Min_Order_By = { - comments_state?: Maybe; - created?: Maybe; - creator_address?: Maybe; - height?: Maybe; - id?: Maybe; - last_edited?: Maybe; - message?: Maybe; - parent_id?: Maybe; - subspace?: Maybe; -}; - -/** Ordering options when selecting data from "post". */ -export type Post_Order_By = { - comments_state?: Maybe; - created?: Maybe; - creator_address?: Maybe; - height?: Maybe; - hidden?: Maybe; - id?: Maybe; - last_edited?: Maybe; - message?: Maybe; - parent_id?: Maybe; - poll?: Maybe; - post?: Maybe; - post_attachments_aggregate?: Maybe; - post_attributes_aggregate?: Maybe; - post_reactions_aggregate?: Maybe; - post_reports_aggregate?: Maybe; - posts_aggregate?: Maybe; - profile?: Maybe; - subspace?: Maybe; -}; - -/** columns and relationships of "post_reaction" */ -export type Post_Reaction = { - __typename?: 'post_reaction'; - height: Scalars['bigint']; - owner_address: Scalars['String']; - /** An object relationship */ - post: Post; - post_id: Scalars['String']; - /** An object relationship */ - profile: Profile; - short_code: Scalars['String']; - value: Scalars['String']; -}; - -/** aggregated selection of "post_reaction" */ -export type Post_Reaction_Aggregate = { - __typename?: 'post_reaction_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "post_reaction" */ -export type Post_Reaction_Aggregate_Fields = { - __typename?: 'post_reaction_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 "post_reaction" */ -export type Post_Reaction_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "post_reaction" */ -export type Post_Reaction_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Post_Reaction_Avg_Fields = { - __typename?: 'post_reaction_avg_fields'; - height?: Maybe; -}; - -/** order by avg() on columns of table "post_reaction" */ -export type Post_Reaction_Avg_Order_By = { - height?: Maybe; -}; - -/** Boolean expression to filter rows from the table "post_reaction". All fields are combined with a logical 'AND'. */ -export type Post_Reaction_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - owner_address?: Maybe; - post?: Maybe; - post_id?: Maybe; - profile?: Maybe; - short_code?: Maybe; - value?: Maybe; -}; - -/** aggregate max on columns */ -export type Post_Reaction_Max_Fields = { - __typename?: 'post_reaction_max_fields'; - height?: Maybe; - owner_address?: Maybe; - post_id?: Maybe; - short_code?: Maybe; - value?: Maybe; -}; - -/** order by max() on columns of table "post_reaction" */ -export type Post_Reaction_Max_Order_By = { - height?: Maybe; - owner_address?: Maybe; - post_id?: Maybe; - short_code?: Maybe; - value?: Maybe; -}; - -/** aggregate min on columns */ -export type Post_Reaction_Min_Fields = { - __typename?: 'post_reaction_min_fields'; - height?: Maybe; - owner_address?: Maybe; - post_id?: Maybe; - short_code?: Maybe; - value?: Maybe; -}; - -/** order by min() on columns of table "post_reaction" */ -export type Post_Reaction_Min_Order_By = { - height?: Maybe; - owner_address?: Maybe; - post_id?: Maybe; - short_code?: Maybe; - value?: Maybe; -}; - -/** Ordering options when selecting data from "post_reaction". */ -export type Post_Reaction_Order_By = { - height?: Maybe; - owner_address?: Maybe; - post?: Maybe; - post_id?: Maybe; - profile?: Maybe; - short_code?: Maybe; - value?: Maybe; -}; - -/** select columns of table "post_reaction" */ -export enum Post_Reaction_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - OwnerAddress = 'owner_address', - /** column name */ - PostId = 'post_id', - /** column name */ - ShortCode = 'short_code', - /** column name */ - Value = 'value' -} - -/** aggregate stddev on columns */ -export type Post_Reaction_Stddev_Fields = { - __typename?: 'post_reaction_stddev_fields'; - height?: Maybe; -}; - -/** order by stddev() on columns of table "post_reaction" */ -export type Post_Reaction_Stddev_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Post_Reaction_Stddev_Pop_Fields = { - __typename?: 'post_reaction_stddev_pop_fields'; - height?: Maybe; -}; - -/** order by stddev_pop() on columns of table "post_reaction" */ -export type Post_Reaction_Stddev_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Post_Reaction_Stddev_Samp_Fields = { - __typename?: 'post_reaction_stddev_samp_fields'; - height?: Maybe; -}; - -/** order by stddev_samp() on columns of table "post_reaction" */ -export type Post_Reaction_Stddev_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Post_Reaction_Sum_Fields = { - __typename?: 'post_reaction_sum_fields'; - height?: Maybe; -}; - -/** order by sum() on columns of table "post_reaction" */ -export type Post_Reaction_Sum_Order_By = { +/** order by sum() on columns of table "proposal_vote" */ +export type Proposal_Vote_Sum_Order_By = { height?: Maybe; + proposal_id?: Maybe; }; /** aggregate var_pop on columns */ -export type Post_Reaction_Var_Pop_Fields = { - __typename?: 'post_reaction_var_pop_fields'; +export type Proposal_Vote_Var_Pop_Fields = { + __typename?: 'proposal_vote_var_pop_fields'; height?: Maybe; + proposal_id?: Maybe; }; -/** order by var_pop() on columns of table "post_reaction" */ -export type Post_Reaction_Var_Pop_Order_By = { +/** order by var_pop() on columns of table "proposal_vote" */ +export type Proposal_Vote_Var_Pop_Order_By = { height?: Maybe; + proposal_id?: Maybe; }; /** aggregate var_samp on columns */ -export type Post_Reaction_Var_Samp_Fields = { - __typename?: 'post_reaction_var_samp_fields'; +export type Proposal_Vote_Var_Samp_Fields = { + __typename?: 'proposal_vote_var_samp_fields'; height?: Maybe; + proposal_id?: Maybe; }; -/** order by var_samp() on columns of table "post_reaction" */ -export type Post_Reaction_Var_Samp_Order_By = { +/** order by var_samp() on columns of table "proposal_vote" */ +export type Proposal_Vote_Var_Samp_Order_By = { height?: Maybe; + proposal_id?: Maybe; }; /** aggregate variance on columns */ -export type Post_Reaction_Variance_Fields = { - __typename?: 'post_reaction_variance_fields'; +export type Proposal_Vote_Variance_Fields = { + __typename?: 'proposal_vote_variance_fields'; height?: Maybe; + proposal_id?: Maybe; }; -/** order by variance() on columns of table "post_reaction" */ -export type Post_Reaction_Variance_Order_By = { - height?: Maybe; -}; - -/** columns and relationships of "post_report" */ -export type Post_Report = { - __typename?: 'post_report'; - height: Scalars['bigint']; - id: Scalars['Int']; - message?: Maybe; - /** An object relationship */ - post: Post; - post_id: Scalars['String']; - /** An object relationship */ - profile: Profile; - reporter_address: Scalars['String']; - type: Scalars['String']; -}; - -/** aggregated selection of "post_report" */ -export type Post_Report_Aggregate = { - __typename?: 'post_report_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "post_report" */ -export type Post_Report_Aggregate_Fields = { - __typename?: 'post_report_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 "post_report" */ -export type Post_Report_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "post_report" */ -export type Post_Report_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Post_Report_Avg_Fields = { - __typename?: 'post_report_avg_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** order by avg() on columns of table "post_report" */ -export type Post_Report_Avg_Order_By = { - height?: Maybe; - id?: Maybe; -}; - -/** Boolean expression to filter rows from the table "post_report". All fields are combined with a logical 'AND'. */ -export type Post_Report_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - id?: Maybe; - message?: Maybe; - post?: Maybe; - post_id?: Maybe; - profile?: Maybe; - reporter_address?: Maybe; - type?: Maybe; -}; - -/** aggregate max on columns */ -export type Post_Report_Max_Fields = { - __typename?: 'post_report_max_fields'; - height?: Maybe; - id?: Maybe; - message?: Maybe; - post_id?: Maybe; - reporter_address?: Maybe; - type?: Maybe; -}; - -/** order by max() on columns of table "post_report" */ -export type Post_Report_Max_Order_By = { - height?: Maybe; - id?: Maybe; - message?: Maybe; - post_id?: Maybe; - reporter_address?: Maybe; - type?: Maybe; -}; - -/** aggregate min on columns */ -export type Post_Report_Min_Fields = { - __typename?: 'post_report_min_fields'; - height?: Maybe; - id?: Maybe; - message?: Maybe; - post_id?: Maybe; - reporter_address?: Maybe; - type?: Maybe; -}; - -/** order by min() on columns of table "post_report" */ -export type Post_Report_Min_Order_By = { - height?: Maybe; - id?: Maybe; - message?: Maybe; - post_id?: Maybe; - reporter_address?: Maybe; - type?: Maybe; -}; - -/** Ordering options when selecting data from "post_report". */ -export type Post_Report_Order_By = { - height?: Maybe; - id?: Maybe; - message?: Maybe; - post?: Maybe; - post_id?: Maybe; - profile?: Maybe; - reporter_address?: Maybe; - type?: Maybe; -}; - -/** select columns of table "post_report" */ -export enum Post_Report_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - Id = 'id', - /** column name */ - Message = 'message', - /** column name */ - PostId = 'post_id', - /** column name */ - ReporterAddress = 'reporter_address', - /** column name */ - Type = 'type' -} - -/** aggregate stddev on columns */ -export type Post_Report_Stddev_Fields = { - __typename?: 'post_report_stddev_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** order by stddev() on columns of table "post_report" */ -export type Post_Report_Stddev_Order_By = { - height?: Maybe; - id?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Post_Report_Stddev_Pop_Fields = { - __typename?: 'post_report_stddev_pop_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** order by stddev_pop() on columns of table "post_report" */ -export type Post_Report_Stddev_Pop_Order_By = { - height?: Maybe; - id?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Post_Report_Stddev_Samp_Fields = { - __typename?: 'post_report_stddev_samp_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** order by stddev_samp() on columns of table "post_report" */ -export type Post_Report_Stddev_Samp_Order_By = { - height?: Maybe; - id?: Maybe; -}; - -/** aggregate sum on columns */ -export type Post_Report_Sum_Fields = { - __typename?: 'post_report_sum_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** order by sum() on columns of table "post_report" */ -export type Post_Report_Sum_Order_By = { - height?: Maybe; - id?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Post_Report_Var_Pop_Fields = { - __typename?: 'post_report_var_pop_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** order by var_pop() on columns of table "post_report" */ -export type Post_Report_Var_Pop_Order_By = { - height?: Maybe; - id?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Post_Report_Var_Samp_Fields = { - __typename?: 'post_report_var_samp_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** order by var_samp() on columns of table "post_report" */ -export type Post_Report_Var_Samp_Order_By = { - height?: Maybe; - id?: Maybe; -}; - -/** aggregate variance on columns */ -export type Post_Report_Variance_Fields = { - __typename?: 'post_report_variance_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** order by variance() on columns of table "post_report" */ -export type Post_Report_Variance_Order_By = { - height?: Maybe; - id?: Maybe; -}; - -/** select columns of table "post" */ -export enum Post_Select_Column { - /** column name */ - CommentsState = 'comments_state', - /** column name */ - Created = 'created', - /** column name */ - CreatorAddress = 'creator_address', - /** column name */ - Height = 'height', - /** column name */ - Hidden = 'hidden', - /** column name */ - Id = 'id', - /** column name */ - LastEdited = 'last_edited', - /** column name */ - Message = 'message', - /** column name */ - ParentId = 'parent_id', - /** column name */ - Subspace = 'subspace' -} - -/** aggregate stddev on columns */ -export type Post_Stddev_Fields = { - __typename?: 'post_stddev_fields'; - height?: Maybe; -}; - -/** order by stddev() on columns of table "post" */ -export type Post_Stddev_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Post_Stddev_Pop_Fields = { - __typename?: 'post_stddev_pop_fields'; - height?: Maybe; -}; - -/** order by stddev_pop() on columns of table "post" */ -export type Post_Stddev_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Post_Stddev_Samp_Fields = { - __typename?: 'post_stddev_samp_fields'; - height?: Maybe; -}; - -/** order by stddev_samp() on columns of table "post" */ -export type Post_Stddev_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Post_Sum_Fields = { - __typename?: 'post_sum_fields'; - height?: Maybe; -}; - -/** order by sum() on columns of table "post" */ -export type Post_Sum_Order_By = { - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Post_Var_Pop_Fields = { - __typename?: 'post_var_pop_fields'; - height?: Maybe; -}; - -/** order by var_pop() on columns of table "post" */ -export type Post_Var_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Post_Var_Samp_Fields = { - __typename?: 'post_var_samp_fields'; - height?: Maybe; -}; - -/** order by var_samp() on columns of table "post" */ -export type Post_Var_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Post_Variance_Fields = { - __typename?: 'post_variance_fields'; - height?: Maybe; -}; - -/** order by variance() on columns of table "post" */ -export type Post_Variance_Order_By = { +/** order by variance() on columns of table "proposal_vote" */ +export type Proposal_Vote_Variance_Order_By = { height?: Maybe; + proposal_id?: Maybe; }; -/** 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?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "pre_commit" */ -export type Pre_Commit_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** 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?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - proposer_priority?: Maybe; - timestamp?: Maybe; - validator?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe; - proposer_priority?: Maybe; - timestamp?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe; - proposer_priority?: Maybe; - timestamp?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** Ordering options when selecting data from "pre_commit". */ -export type Pre_Commit_Order_By = { - height?: Maybe; - proposer_priority?: Maybe; - timestamp?: Maybe; - validator?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** columns and relationships of "profile" */ -export type Profile = { - __typename?: 'profile'; - address: Scalars['String']; - /** An array relationship */ - application_links: Array; - /** An aggregate relationship */ - application_links_aggregate: Application_Link_Aggregate; - bio: Scalars['String']; - /** An array relationship */ - chain_links: Array; - /** An aggregate relationship */ - chain_links_aggregate: Chain_Link_Aggregate; - cover_pic: Scalars['String']; - creation_time: Scalars['timestamp']; - dtag: Scalars['String']; - /** An array relationship */ - dtagTransferRequestsBySenderAddress: Array; - /** An aggregate relationship */ - dtagTransferRequestsBySenderAddress_aggregate: Dtag_Transfer_Requests_Aggregate; - /** An array relationship */ - dtag_transfer_requests: Array; - /** An aggregate relationship */ - dtag_transfer_requests_aggregate: Dtag_Transfer_Requests_Aggregate; - height: Scalars['bigint']; - nickname: Scalars['String']; - /** An array relationship */ - post_attachment_tags: Array; - /** An aggregate relationship */ - post_attachment_tags_aggregate: Post_Attachment_Tag_Aggregate; - /** An array relationship */ - post_reactions: Array; - /** An aggregate relationship */ - post_reactions_aggregate: Post_Reaction_Aggregate; - /** An array relationship */ - post_reports: Array; - /** An aggregate relationship */ - post_reports_aggregate: Post_Report_Aggregate; - /** An array relationship */ - posts: Array; - /** An aggregate relationship */ - posts_aggregate: Post_Aggregate; - /** An array relationship */ - profileRelationshipsBySenderAddress: Array; - /** An aggregate relationship */ - profileRelationshipsBySenderAddress_aggregate: Profile_Relationship_Aggregate; - profile_pic: Scalars['String']; - /** An array relationship */ - profile_relationships: Array; - /** An aggregate relationship */ - profile_relationships_aggregate: Profile_Relationship_Aggregate; - /** An array relationship */ - registered_reactions: Array; - /** An aggregate relationship */ - registered_reactions_aggregate: Registered_Reactions_Aggregate; - /** An array relationship */ - userBlocksByBlockerAddress: Array; - /** An aggregate relationship */ - userBlocksByBlockerAddress_aggregate: User_Block_Aggregate; - /** An array relationship */ - user_blocks: Array; - /** An aggregate relationship */ - user_blocks_aggregate: User_Block_Aggregate; - /** An array relationship */ - user_poll_answers: Array; - /** An aggregate relationship */ - user_poll_answers_aggregate: User_Poll_Answer_Aggregate; -}; - - -/** columns and relationships of "profile" */ -export type ProfileApplication_LinksArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileApplication_Links_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileChain_LinksArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileChain_Links_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileDtagTransferRequestsBySenderAddressArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileDtagTransferRequestsBySenderAddress_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileDtag_Transfer_RequestsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileDtag_Transfer_Requests_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfilePost_Attachment_TagsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfilePost_Attachment_Tags_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfilePost_ReactionsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfilePost_Reactions_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfilePost_ReportsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfilePost_Reports_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfilePostsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfilePosts_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileProfileRelationshipsBySenderAddressArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileProfileRelationshipsBySenderAddress_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileProfile_RelationshipsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileProfile_Relationships_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileRegistered_ReactionsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileRegistered_Reactions_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileUserBlocksByBlockerAddressArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileUserBlocksByBlockerAddress_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileUser_BlocksArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileUser_Blocks_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileUser_Poll_AnswersArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileUser_Poll_Answers_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - -/** aggregated selection of "profile" */ -export type Profile_Aggregate = { - __typename?: 'profile_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "profile" */ -export type Profile_Aggregate_Fields = { - __typename?: 'profile_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 "profile" */ -export type Profile_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** aggregate avg on columns */ -export type Profile_Avg_Fields = { - __typename?: 'profile_avg_fields'; - height?: Maybe; -}; - -/** Boolean expression to filter rows from the table "profile". All fields are combined with a logical 'AND'. */ -export type Profile_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - address?: Maybe; - application_links?: Maybe; - bio?: Maybe; - chain_links?: Maybe; - cover_pic?: Maybe; - creation_time?: Maybe; - dtag?: Maybe; - dtagTransferRequestsBySenderAddress?: Maybe; - dtag_transfer_requests?: Maybe; - height?: Maybe; - nickname?: Maybe; - post_attachment_tags?: Maybe; - post_reactions?: Maybe; - post_reports?: Maybe; - posts?: Maybe; - profileRelationshipsBySenderAddress?: Maybe; - profile_pic?: Maybe; - profile_relationships?: Maybe; - registered_reactions?: Maybe; - userBlocksByBlockerAddress?: Maybe; - user_blocks?: Maybe; - user_poll_answers?: Maybe; -}; - -/** aggregate max on columns */ -export type Profile_Max_Fields = { - __typename?: 'profile_max_fields'; - address?: Maybe; - bio?: Maybe; - cover_pic?: Maybe; - creation_time?: Maybe; - dtag?: Maybe; - height?: Maybe; - nickname?: Maybe; - profile_pic?: Maybe; -}; - -/** aggregate min on columns */ -export type Profile_Min_Fields = { - __typename?: 'profile_min_fields'; - address?: Maybe; - bio?: Maybe; - cover_pic?: Maybe; - creation_time?: Maybe; - dtag?: Maybe; - height?: Maybe; - nickname?: Maybe; - profile_pic?: Maybe; -}; - -/** Ordering options when selecting data from "profile". */ -export type Profile_Order_By = { - address?: Maybe; - application_links_aggregate?: Maybe; - bio?: Maybe; - chain_links_aggregate?: Maybe; - cover_pic?: Maybe; - creation_time?: Maybe; - dtag?: Maybe; - dtagTransferRequestsBySenderAddress_aggregate?: Maybe; - dtag_transfer_requests_aggregate?: Maybe; - height?: Maybe; - nickname?: Maybe; - post_attachment_tags_aggregate?: Maybe; - post_reactions_aggregate?: Maybe; - post_reports_aggregate?: Maybe; - posts_aggregate?: Maybe; - profileRelationshipsBySenderAddress_aggregate?: Maybe; - profile_pic?: Maybe; - profile_relationships_aggregate?: Maybe; - registered_reactions_aggregate?: Maybe; - userBlocksByBlockerAddress_aggregate?: Maybe; - user_blocks_aggregate?: Maybe; - user_poll_answers_aggregate?: Maybe; -}; - -/** columns and relationships of "profile_relationship" */ -export type Profile_Relationship = { - __typename?: 'profile_relationship'; - height: Scalars['bigint']; - /** An object relationship */ - profile: Profile; - /** An object relationship */ - profileBySenderAddress: Profile; - receiver_address: Scalars['String']; - sender_address: Scalars['String']; - subspace: Scalars['String']; -}; - -/** aggregated selection of "profile_relationship" */ -export type Profile_Relationship_Aggregate = { - __typename?: 'profile_relationship_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "profile_relationship" */ -export type Profile_Relationship_Aggregate_Fields = { - __typename?: 'profile_relationship_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 "profile_relationship" */ -export type Profile_Relationship_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "profile_relationship" */ -export type Profile_Relationship_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Profile_Relationship_Avg_Fields = { - __typename?: 'profile_relationship_avg_fields'; - height?: Maybe; -}; - -/** order by avg() on columns of table "profile_relationship" */ -export type Profile_Relationship_Avg_Order_By = { - height?: Maybe; -}; - -/** Boolean expression to filter rows from the table "profile_relationship". All fields are combined with a logical 'AND'. */ -export type Profile_Relationship_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - profile?: Maybe; - profileBySenderAddress?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; - subspace?: Maybe; -}; - -/** aggregate max on columns */ -export type Profile_Relationship_Max_Fields = { - __typename?: 'profile_relationship_max_fields'; - height?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; - subspace?: Maybe; -}; - -/** order by max() on columns of table "profile_relationship" */ -export type Profile_Relationship_Max_Order_By = { - height?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; - subspace?: Maybe; -}; - -/** aggregate min on columns */ -export type Profile_Relationship_Min_Fields = { - __typename?: 'profile_relationship_min_fields'; - height?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; - subspace?: Maybe; -}; - -/** order by min() on columns of table "profile_relationship" */ -export type Profile_Relationship_Min_Order_By = { - height?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; - subspace?: Maybe; -}; - -/** Ordering options when selecting data from "profile_relationship". */ -export type Profile_Relationship_Order_By = { - height?: Maybe; - profile?: Maybe; - profileBySenderAddress?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; - subspace?: Maybe; -}; - -/** select columns of table "profile_relationship" */ -export enum Profile_Relationship_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - ReceiverAddress = 'receiver_address', - /** column name */ - SenderAddress = 'sender_address', - /** column name */ - Subspace = 'subspace' -} - -/** aggregate stddev on columns */ -export type Profile_Relationship_Stddev_Fields = { - __typename?: 'profile_relationship_stddev_fields'; - height?: Maybe; -}; - -/** order by stddev() on columns of table "profile_relationship" */ -export type Profile_Relationship_Stddev_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Profile_Relationship_Stddev_Pop_Fields = { - __typename?: 'profile_relationship_stddev_pop_fields'; - height?: Maybe; -}; - -/** order by stddev_pop() on columns of table "profile_relationship" */ -export type Profile_Relationship_Stddev_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Profile_Relationship_Stddev_Samp_Fields = { - __typename?: 'profile_relationship_stddev_samp_fields'; - height?: Maybe; -}; - -/** order by stddev_samp() on columns of table "profile_relationship" */ -export type Profile_Relationship_Stddev_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Profile_Relationship_Sum_Fields = { - __typename?: 'profile_relationship_sum_fields'; - height?: Maybe; -}; - -/** order by sum() on columns of table "profile_relationship" */ -export type Profile_Relationship_Sum_Order_By = { - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Profile_Relationship_Var_Pop_Fields = { - __typename?: 'profile_relationship_var_pop_fields'; - height?: Maybe; -}; - -/** order by var_pop() on columns of table "profile_relationship" */ -export type Profile_Relationship_Var_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Profile_Relationship_Var_Samp_Fields = { - __typename?: 'profile_relationship_var_samp_fields'; - height?: Maybe; -}; - -/** order by var_samp() on columns of table "profile_relationship" */ -export type Profile_Relationship_Var_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Profile_Relationship_Variance_Fields = { - __typename?: 'profile_relationship_variance_fields'; - height?: Maybe; -}; - -/** order by variance() on columns of table "profile_relationship" */ -export type Profile_Relationship_Variance_Order_By = { - height?: Maybe; -}; - -/** select columns of table "profile" */ -export enum Profile_Select_Column { - /** column name */ - Address = 'address', - /** column name */ - Bio = 'bio', - /** column name */ - CoverPic = 'cover_pic', - /** column name */ - CreationTime = 'creation_time', - /** column name */ - Dtag = 'dtag', - /** column name */ - Height = 'height', - /** column name */ - Nickname = 'nickname', - /** column name */ - ProfilePic = 'profile_pic' -} - -/** aggregate stddev on columns */ -export type Profile_Stddev_Fields = { - __typename?: 'profile_stddev_fields'; - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Profile_Stddev_Pop_Fields = { - __typename?: 'profile_stddev_pop_fields'; - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Profile_Stddev_Samp_Fields = { - __typename?: 'profile_stddev_samp_fields'; - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Profile_Sum_Fields = { - __typename?: 'profile_sum_fields'; - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Profile_Var_Pop_Fields = { - __typename?: 'profile_var_pop_fields'; - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Profile_Var_Samp_Fields = { - __typename?: 'profile_var_samp_fields'; - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Profile_Variance_Fields = { - __typename?: 'profile_variance_fields'; - height?: Maybe; -}; - -/** columns and relationships of "profiles_params" */ -export type Profiles_Params = { - __typename?: 'profiles_params'; - height: Scalars['bigint']; - params: Scalars['jsonb']; -}; - - -/** columns and relationships of "profiles_params" */ -export type Profiles_ParamsParamsArgs = { - path?: Maybe; -}; - -/** Boolean expression to filter rows from the table "profiles_params". All fields are combined with a logical 'AND'. */ -export type Profiles_Params_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - params?: Maybe; -}; - -/** Ordering options when selecting data from "profiles_params". */ -export type Profiles_Params_Order_By = { - height?: Maybe; - params?: Maybe; -}; - -/** select columns of table "profiles_params" */ -export enum Profiles_Params_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - Params = 'params' -} - -/** columns and relationships of "proposal" */ -export type Proposal = { - __typename?: 'proposal'; - content: Scalars['jsonb']; - deposit_end_time?: Maybe; - description: Scalars['String']; - id: Scalars['Int']; - /** An array relationship */ - proposal_deposits: Array; - /** An aggregate relationship */ - proposal_deposits_aggregate: Proposal_Deposit_Aggregate; - proposal_route: Scalars['String']; - /** An object relationship */ - proposal_tally_result?: Maybe; - /** An array relationship */ - proposal_tally_results: Array; - /** An aggregate relationship */ - proposal_tally_results_aggregate: Proposal_Tally_Result_Aggregate; - proposal_type: Scalars['String']; - /** An array relationship */ - proposal_votes: Array; - /** An aggregate relationship */ - proposal_votes_aggregate: Proposal_Vote_Aggregate; - /** 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; - /** An aggregate relationship */ - validator_status_snapshots_aggregate: Proposal_Validator_Status_Snapshot_Aggregate; - voting_end_time?: Maybe; - voting_start_time?: Maybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalContentArgs = { - path?: Maybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalProposal_DepositsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalProposal_Deposits_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalProposal_Tally_ResultsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalProposal_Tally_Results_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalProposal_VotesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalProposal_Votes_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalValidator_Status_SnapshotsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalValidator_Status_Snapshots_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - -/** 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?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "proposal" */ -export type Proposal_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** 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?: Maybe; -}; - -/** Boolean expression to filter rows from the table "proposal". All fields are combined with a logical 'AND'. */ -export type Proposal_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - content?: Maybe; - deposit_end_time?: Maybe; - description?: Maybe; - id?: Maybe; - proposal_deposits?: Maybe; - proposal_route?: Maybe; - proposal_tally_result?: Maybe; - proposal_tally_results?: Maybe; - proposal_type?: Maybe; - proposal_votes?: Maybe; - proposer?: Maybe; - proposer_address?: Maybe; - staking_pool_snapshot?: Maybe; - status?: Maybe; - submit_time?: Maybe; - title?: Maybe; - validator_status_snapshots?: Maybe; - voting_end_time?: Maybe; - voting_start_time?: Maybe; -}; - -/** 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?: Maybe; - /** An object relationship */ - proposal: Proposal; - proposal_id: Scalars['Int']; -}; - -/** aggregated selection of "proposal_deposit" */ -export type Proposal_Deposit_Aggregate = { - __typename?: 'proposal_deposit_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "proposal_deposit" */ -export type Proposal_Deposit_Aggregate_Fields = { - __typename?: 'proposal_deposit_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_deposit" */ -export type Proposal_Deposit_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "proposal_deposit" */ -export type Proposal_Deposit_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Proposal_Deposit_Avg_Fields = { - __typename?: 'proposal_deposit_avg_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by avg() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Avg_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - amount?: Maybe<_Coin_Comparison_Exp>; - block?: Maybe; - depositor?: Maybe; - depositor_address?: Maybe; - height?: Maybe; - proposal?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate max on columns */ -export type Proposal_Deposit_Max_Fields = { - __typename?: 'proposal_deposit_max_fields'; - depositor_address?: Maybe; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by max() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Max_Order_By = { - depositor_address?: Maybe; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate min on columns */ -export type Proposal_Deposit_Min_Fields = { - __typename?: 'proposal_deposit_min_fields'; - depositor_address?: Maybe; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by min() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Min_Order_By = { - depositor_address?: Maybe; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** Ordering options when selecting data from "proposal_deposit". */ -export type Proposal_Deposit_Order_By = { - amount?: Maybe; - block?: Maybe; - depositor?: Maybe; - depositor_address?: Maybe; - height?: Maybe; - proposal?: Maybe; - proposal_id?: Maybe; -}; - -/** 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' -} - -/** aggregate stddev on columns */ -export type Proposal_Deposit_Stddev_Fields = { - __typename?: 'proposal_deposit_stddev_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by stddev() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Stddev_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Proposal_Deposit_Stddev_Pop_Fields = { - __typename?: 'proposal_deposit_stddev_pop_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by stddev_pop() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Stddev_Pop_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Proposal_Deposit_Stddev_Samp_Fields = { - __typename?: 'proposal_deposit_stddev_samp_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by stddev_samp() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Stddev_Samp_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate sum on columns */ -export type Proposal_Deposit_Sum_Fields = { - __typename?: 'proposal_deposit_sum_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by sum() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Sum_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Proposal_Deposit_Var_Pop_Fields = { - __typename?: 'proposal_deposit_var_pop_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by var_pop() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Var_Pop_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Proposal_Deposit_Var_Samp_Fields = { - __typename?: 'proposal_deposit_var_samp_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by var_samp() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Var_Samp_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate variance on columns */ -export type Proposal_Deposit_Variance_Fields = { - __typename?: 'proposal_deposit_variance_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by variance() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Variance_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate max on columns */ -export type Proposal_Max_Fields = { - __typename?: 'proposal_max_fields'; - deposit_end_time?: Maybe; - description?: Maybe; - id?: Maybe; - proposal_route?: Maybe; - proposal_type?: 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?: Maybe; - description?: Maybe; - id?: Maybe; - proposal_route?: Maybe; - proposal_type?: Maybe; - proposer_address?: Maybe; - status?: Maybe; - submit_time?: Maybe; - title?: Maybe; - voting_end_time?: Maybe; - voting_start_time?: Maybe; -}; - -/** aggregate min on columns */ -export type Proposal_Min_Fields = { - __typename?: 'proposal_min_fields'; - deposit_end_time?: Maybe; - description?: Maybe; - id?: Maybe; - proposal_route?: Maybe; - proposal_type?: 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?: Maybe; - description?: Maybe; - id?: Maybe; - proposal_route?: Maybe; - proposal_type?: Maybe; - proposer_address?: Maybe; - status?: Maybe; - submit_time?: Maybe; - title?: Maybe; - voting_end_time?: Maybe; - voting_start_time?: Maybe; -}; - -/** Ordering options when selecting data from "proposal". */ -export type Proposal_Order_By = { - content?: Maybe; - deposit_end_time?: Maybe; - description?: Maybe; - id?: Maybe; - proposal_deposits_aggregate?: Maybe; - proposal_route?: Maybe; - proposal_tally_result?: Maybe; - proposal_tally_results_aggregate?: Maybe; - proposal_type?: Maybe; - proposal_votes_aggregate?: Maybe; - proposer?: Maybe; - proposer_address?: Maybe; - staking_pool_snapshot?: Maybe; - status?: Maybe; - submit_time?: Maybe; - title?: Maybe; - validator_status_snapshots_aggregate?: Maybe; - voting_end_time?: Maybe; - voting_start_time?: Maybe; -}; - -/** 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 */ - ProposalRoute = 'proposal_route', - /** column name */ - ProposalType = 'proposal_type', - /** 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['bigint']; - height: Scalars['bigint']; - not_bonded_tokens: Scalars['bigint']; - /** An object relationship */ - proposal: Proposal; - proposal_id: Scalars['Int']; -}; - -/** aggregated selection of "proposal_staking_pool_snapshot" */ -export type Proposal_Staking_Pool_Snapshot_Aggregate = { - __typename?: 'proposal_staking_pool_snapshot_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "proposal_staking_pool_snapshot" */ -export type Proposal_Staking_Pool_Snapshot_Aggregate_Fields = { - __typename?: 'proposal_staking_pool_snapshot_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_staking_pool_snapshot" */ -export type Proposal_Staking_Pool_Snapshot_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** aggregate avg on columns */ -export type Proposal_Staking_Pool_Snapshot_Avg_Fields = { - __typename?: 'proposal_staking_pool_snapshot_avg_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal_id?: Maybe; -}; - -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate max on columns */ -export type Proposal_Staking_Pool_Snapshot_Max_Fields = { - __typename?: 'proposal_staking_pool_snapshot_max_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate min on columns */ -export type Proposal_Staking_Pool_Snapshot_Min_Fields = { - __typename?: 'proposal_staking_pool_snapshot_min_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal_id?: Maybe; -}; - -/** Ordering options when selecting data from "proposal_staking_pool_snapshot". */ -export type Proposal_Staking_Pool_Snapshot_Order_By = { - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal?: Maybe; - proposal_id?: Maybe; -}; - -/** 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_Staking_Pool_Snapshot_Stddev_Fields = { - __typename?: 'proposal_staking_pool_snapshot_stddev_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Proposal_Staking_Pool_Snapshot_Stddev_Pop_Fields = { - __typename?: 'proposal_staking_pool_snapshot_stddev_pop_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Proposal_Staking_Pool_Snapshot_Stddev_Samp_Fields = { - __typename?: 'proposal_staking_pool_snapshot_stddev_samp_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate sum on columns */ -export type Proposal_Staking_Pool_Snapshot_Sum_Fields = { - __typename?: 'proposal_staking_pool_snapshot_sum_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Proposal_Staking_Pool_Snapshot_Var_Pop_Fields = { - __typename?: 'proposal_staking_pool_snapshot_var_pop_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Proposal_Staking_Pool_Snapshot_Var_Samp_Fields = { - __typename?: 'proposal_staking_pool_snapshot_var_samp_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate variance on columns */ -export type Proposal_Staking_Pool_Snapshot_Variance_Fields = { - __typename?: 'proposal_staking_pool_snapshot_variance_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal_id?: Maybe; -}; - -/** 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?: Maybe; -}; - -/** 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?: Maybe; -}; - -/** 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?: Maybe; -}; - -/** 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?: Maybe; -}; - -/** 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']; -}; - -/** aggregated selection of "proposal_tally_result" */ -export type Proposal_Tally_Result_Aggregate = { - __typename?: 'proposal_tally_result_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "proposal_tally_result" */ -export type Proposal_Tally_Result_Aggregate_Fields = { - __typename?: 'proposal_tally_result_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_tally_result" */ -export type Proposal_Tally_Result_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Proposal_Tally_Result_Avg_Fields = { - __typename?: 'proposal_tally_result_avg_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by avg() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Avg_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - abstain?: Maybe; - height?: Maybe; - no?: Maybe; - no_with_veto?: Maybe; - proposal?: Maybe; - proposal_id?: Maybe; - yes?: Maybe; -}; - -/** aggregate max on columns */ -export type Proposal_Tally_Result_Max_Fields = { - __typename?: 'proposal_tally_result_max_fields'; - abstain?: Maybe; - height?: Maybe; - no?: Maybe; - no_with_veto?: Maybe; - proposal_id?: Maybe; - yes?: Maybe; -}; - -/** order by max() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Max_Order_By = { - abstain?: Maybe; - height?: Maybe; - no?: Maybe; - no_with_veto?: Maybe; - proposal_id?: Maybe; - yes?: Maybe; -}; - -/** aggregate min on columns */ -export type Proposal_Tally_Result_Min_Fields = { - __typename?: 'proposal_tally_result_min_fields'; - abstain?: Maybe; - height?: Maybe; - no?: Maybe; - no_with_veto?: Maybe; - proposal_id?: Maybe; - yes?: Maybe; -}; - -/** order by min() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Min_Order_By = { - abstain?: Maybe; - height?: Maybe; - no?: Maybe; - no_with_veto?: Maybe; - proposal_id?: Maybe; - yes?: Maybe; -}; - -/** Ordering options when selecting data from "proposal_tally_result". */ -export type Proposal_Tally_Result_Order_By = { - abstain?: Maybe; - height?: Maybe; - no?: Maybe; - no_with_veto?: Maybe; - proposal?: Maybe; - proposal_id?: Maybe; - yes?: Maybe; -}; - -/** 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' -} - -/** aggregate stddev on columns */ -export type Proposal_Tally_Result_Stddev_Fields = { - __typename?: 'proposal_tally_result_stddev_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by stddev() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Stddev_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Proposal_Tally_Result_Stddev_Pop_Fields = { - __typename?: 'proposal_tally_result_stddev_pop_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by stddev_pop() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Stddev_Pop_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Proposal_Tally_Result_Stddev_Samp_Fields = { - __typename?: 'proposal_tally_result_stddev_samp_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by stddev_samp() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Stddev_Samp_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate sum on columns */ -export type Proposal_Tally_Result_Sum_Fields = { - __typename?: 'proposal_tally_result_sum_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by sum() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Sum_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Proposal_Tally_Result_Var_Pop_Fields = { - __typename?: 'proposal_tally_result_var_pop_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by var_pop() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Var_Pop_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Proposal_Tally_Result_Var_Samp_Fields = { - __typename?: 'proposal_tally_result_var_samp_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by var_samp() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Var_Samp_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate variance on columns */ -export type Proposal_Tally_Result_Variance_Fields = { - __typename?: 'proposal_tally_result_variance_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by variance() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Variance_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** columns and relationships of "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot = { - __typename?: 'proposal_validator_status_snapshot'; - height: Scalars['bigint']; - id: Scalars['Int']; - 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']; -}; - -/** aggregated selection of "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Aggregate = { - __typename?: 'proposal_validator_status_snapshot_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Aggregate_Fields = { - __typename?: 'proposal_validator_status_snapshot_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_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Proposal_Validator_Status_Snapshot_Avg_Fields = { - __typename?: 'proposal_validator_status_snapshot_avg_fields'; - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** order by avg() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Avg_Order_By = { - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - id?: Maybe; - jailed?: Maybe; - proposal?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - validator?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** aggregate max on columns */ -export type Proposal_Validator_Status_Snapshot_Max_Fields = { - __typename?: 'proposal_validator_status_snapshot_max_fields'; - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** order by max() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Max_Order_By = { - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** aggregate min on columns */ -export type Proposal_Validator_Status_Snapshot_Min_Fields = { - __typename?: 'proposal_validator_status_snapshot_min_fields'; - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** order by min() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Min_Order_By = { - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** Ordering options when selecting data from "proposal_validator_status_snapshot". */ -export type Proposal_Validator_Status_Snapshot_Order_By = { - height?: Maybe; - id?: Maybe; - jailed?: Maybe; - proposal?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - validator?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** select columns of table "proposal_validator_status_snapshot" */ -export enum Proposal_Validator_Status_Snapshot_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - Id = 'id', - /** column name */ - Jailed = 'jailed', - /** column name */ - ProposalId = 'proposal_id', - /** column name */ - Status = 'status', - /** column name */ - ValidatorAddress = 'validator_address', - /** column name */ - VotingPower = 'voting_power' -} - -/** aggregate stddev on columns */ -export type Proposal_Validator_Status_Snapshot_Stddev_Fields = { - __typename?: 'proposal_validator_status_snapshot_stddev_fields'; - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** order by stddev() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Stddev_Order_By = { - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Proposal_Validator_Status_Snapshot_Stddev_Pop_Fields = { - __typename?: 'proposal_validator_status_snapshot_stddev_pop_fields'; - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** order by stddev_pop() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Stddev_Pop_Order_By = { - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Proposal_Validator_Status_Snapshot_Stddev_Samp_Fields = { - __typename?: 'proposal_validator_status_snapshot_stddev_samp_fields'; - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** order by stddev_samp() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Stddev_Samp_Order_By = { - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** aggregate sum on columns */ -export type Proposal_Validator_Status_Snapshot_Sum_Fields = { - __typename?: 'proposal_validator_status_snapshot_sum_fields'; - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** order by sum() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Sum_Order_By = { - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Proposal_Validator_Status_Snapshot_Var_Pop_Fields = { - __typename?: 'proposal_validator_status_snapshot_var_pop_fields'; - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** order by var_pop() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Var_Pop_Order_By = { - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Proposal_Validator_Status_Snapshot_Var_Samp_Fields = { - __typename?: 'proposal_validator_status_snapshot_var_samp_fields'; - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** order by var_samp() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Var_Samp_Order_By = { - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** aggregate variance on columns */ -export type Proposal_Validator_Status_Snapshot_Variance_Fields = { - __typename?: 'proposal_validator_status_snapshot_variance_fields'; - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** order by variance() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Variance_Order_By = { - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe; -}; - -/** 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?: Maybe; -}; - -/** 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?: Maybe; -}; - -/** columns and relationships of "proposal_vote" */ -export type Proposal_Vote = { - __typename?: 'proposal_vote'; - /** An object relationship */ - account: Account; - height: Scalars['bigint']; - option: Scalars['String']; - /** An object relationship */ - proposal: Proposal; - proposal_id: Scalars['Int']; - voter_address: Scalars['String']; -}; - -/** aggregated selection of "proposal_vote" */ -export type Proposal_Vote_Aggregate = { - __typename?: 'proposal_vote_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "proposal_vote" */ -export type Proposal_Vote_Aggregate_Fields = { - __typename?: 'proposal_vote_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_vote" */ -export type Proposal_Vote_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "proposal_vote" */ -export type Proposal_Vote_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Proposal_Vote_Avg_Fields = { - __typename?: 'proposal_vote_avg_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by avg() on columns of table "proposal_vote" */ -export type Proposal_Vote_Avg_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account?: Maybe; - height?: Maybe; - option?: Maybe; - proposal?: Maybe; - proposal_id?: Maybe; - voter_address?: Maybe; -}; - -/** aggregate max on columns */ -export type Proposal_Vote_Max_Fields = { - __typename?: 'proposal_vote_max_fields'; - height?: Maybe; - option?: Maybe; - proposal_id?: Maybe; - voter_address?: Maybe; -}; - -/** order by max() on columns of table "proposal_vote" */ -export type Proposal_Vote_Max_Order_By = { - height?: Maybe; - option?: Maybe; - proposal_id?: Maybe; - voter_address?: Maybe; -}; - -/** aggregate min on columns */ -export type Proposal_Vote_Min_Fields = { - __typename?: 'proposal_vote_min_fields'; - height?: Maybe; - option?: Maybe; - proposal_id?: Maybe; - voter_address?: Maybe; -}; - -/** order by min() on columns of table "proposal_vote" */ -export type Proposal_Vote_Min_Order_By = { - height?: Maybe; - option?: Maybe; - proposal_id?: Maybe; - voter_address?: Maybe; -}; - -/** Ordering options when selecting data from "proposal_vote". */ -export type Proposal_Vote_Order_By = { - account?: Maybe; - height?: Maybe; - option?: Maybe; - proposal?: Maybe; - proposal_id?: Maybe; - voter_address?: Maybe; -}; - -/** 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 */ - VoterAddress = 'voter_address' -} - -/** aggregate stddev on columns */ -export type Proposal_Vote_Stddev_Fields = { - __typename?: 'proposal_vote_stddev_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by stddev() on columns of table "proposal_vote" */ -export type Proposal_Vote_Stddev_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Proposal_Vote_Stddev_Pop_Fields = { - __typename?: 'proposal_vote_stddev_pop_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by stddev_pop() on columns of table "proposal_vote" */ -export type Proposal_Vote_Stddev_Pop_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Proposal_Vote_Stddev_Samp_Fields = { - __typename?: 'proposal_vote_stddev_samp_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by stddev_samp() on columns of table "proposal_vote" */ -export type Proposal_Vote_Stddev_Samp_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate sum on columns */ -export type Proposal_Vote_Sum_Fields = { - __typename?: 'proposal_vote_sum_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by sum() on columns of table "proposal_vote" */ -export type Proposal_Vote_Sum_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Proposal_Vote_Var_Pop_Fields = { - __typename?: 'proposal_vote_var_pop_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by var_pop() on columns of table "proposal_vote" */ -export type Proposal_Vote_Var_Pop_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Proposal_Vote_Var_Samp_Fields = { - __typename?: 'proposal_vote_var_samp_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by var_samp() on columns of table "proposal_vote" */ -export type Proposal_Vote_Var_Samp_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate variance on columns */ -export type Proposal_Vote_Variance_Fields = { - __typename?: 'proposal_vote_variance_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by variance() on columns of table "proposal_vote" */ -export type Proposal_Vote_Variance_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -export type Query_Root = { - __typename?: 'query_root'; - /** fetch data from the table: "account" */ - account: Array; - /** fetch aggregated fields from the table: "account" */ - account_aggregate: Account_Aggregate; - /** fetch data from the table: "account_balance" */ - account_balance: Array; - /** fetch aggregated fields from the table: "account_balance" */ - account_balance_aggregate: Account_Balance_Aggregate; - /** fetch data from the table: "account_balance" using primary key columns */ - account_balance_by_pk?: Maybe; - /** fetch data from the table: "account_balance_history" */ - account_balance_history: Array; - /** fetch aggregated fields from the table: "account_balance_history" */ - account_balance_history_aggregate: Account_Balance_History_Aggregate; - /** fetch data from the table: "account" using primary key columns */ - account_by_pk?: Maybe; - /** fetch data from the table: "application_link" */ - application_link: Array; - /** fetch aggregated fields from the table: "application_link" */ - application_link_aggregate: Application_Link_Aggregate; - /** fetch data from the table: "application_link" using primary key columns */ - application_link_by_pk?: Maybe; - /** fetch data from the table: "application_link_oracle_request" */ - application_link_oracle_request: Array; - /** fetch aggregated fields from the table: "application_link_oracle_request" */ - application_link_oracle_request_aggregate: Application_Link_Oracle_Request_Aggregate; - /** fetch data from the table: "application_link_oracle_request" using primary key columns */ - application_link_oracle_request_by_pk?: Maybe; - /** fetch data from the table: "average_block_time_from_genesis" */ - average_block_time_from_genesis: Array; - /** fetch aggregated fields from the table: "average_block_time_from_genesis" */ - average_block_time_from_genesis_aggregate: Average_Block_Time_From_Genesis_Aggregate; - /** fetch data from the table: "average_block_time_per_day" */ - average_block_time_per_day: Array; - /** fetch aggregated fields from the table: "average_block_time_per_day" */ - average_block_time_per_day_aggregate: Average_Block_Time_Per_Day_Aggregate; - /** fetch data from the table: "average_block_time_per_hour" */ - average_block_time_per_hour: Array; - /** fetch aggregated fields from the table: "average_block_time_per_hour" */ - average_block_time_per_hour_aggregate: Average_Block_Time_Per_Hour_Aggregate; - /** fetch data from the table: "average_block_time_per_minute" */ - average_block_time_per_minute: Array; - /** fetch aggregated fields from the table: "average_block_time_per_minute" */ - average_block_time_per_minute_aggregate: Average_Block_Time_Per_Minute_Aggregate; - /** fetch data from the table: "block" */ - block: Array; - /** fetch aggregated fields from the table: "block" */ - block_aggregate: Block_Aggregate; - /** fetch data from the table: "block" using primary key columns */ - block_by_pk?: Maybe; - /** fetch data from the table: "chain_link" */ - chain_link: Array; - /** fetch aggregated fields from the table: "chain_link" */ - chain_link_aggregate: Chain_Link_Aggregate; - /** fetch data from the table: "chain_link" using primary key columns */ - chain_link_by_pk?: Maybe; - /** fetch data from the table: "chain_link_chain_config" */ - chain_link_chain_config: Array; - /** fetch aggregated fields from the table: "chain_link_chain_config" */ - chain_link_chain_config_aggregate: Chain_Link_Chain_Config_Aggregate; - /** fetch data from the table: "chain_link_chain_config" using primary key columns */ - chain_link_chain_config_by_pk?: Maybe; - /** fetch data from the table: "chain_link_proof" */ - chain_link_proof: Array; - /** fetch aggregated fields from the table: "chain_link_proof" */ - chain_link_proof_aggregate: Chain_Link_Proof_Aggregate; - /** fetch data from the table: "community_pool" */ - community_pool: Array; - /** fetch aggregated fields from the table: "community_pool" */ - community_pool_aggregate: Community_Pool_Aggregate; - /** fetch data from the table: "delegation" */ - delegation: Array; - /** fetch aggregated fields from the table: "delegation" */ - delegation_aggregate: Delegation_Aggregate; - /** fetch data from the table: "delegation" using primary key columns */ - delegation_by_pk?: Maybe; - /** fetch data from the table: "delegation_reward" */ - delegation_reward: Array; - /** fetch aggregated fields from the table: "delegation_reward" */ - delegation_reward_aggregate: Delegation_Reward_Aggregate; - /** fetch data from the table: "distribution_params" */ - distribution_params: Array; - /** fetch aggregated fields from the table: "distribution_params" */ - distribution_params_aggregate: Distribution_Params_Aggregate; - /** fetch data from the table: "distribution_params" using primary key columns */ - distribution_params_by_pk?: Maybe; - /** fetch data from the table: "double_sign_evidence" */ - double_sign_evidence: Array; - /** fetch aggregated fields from the table: "double_sign_evidence" */ - double_sign_evidence_aggregate: Double_Sign_Evidence_Aggregate; - /** fetch data from the table: "double_sign_vote" */ - double_sign_vote: Array; - /** fetch aggregated fields from the table: "double_sign_vote" */ - double_sign_vote_aggregate: Double_Sign_Vote_Aggregate; - /** fetch data from the table: "double_sign_vote" using primary key columns */ - double_sign_vote_by_pk?: Maybe; - /** An array relationship */ - dtag_transfer_requests: Array; - /** An aggregate relationship */ - dtag_transfer_requests_aggregate: Dtag_Transfer_Requests_Aggregate; - /** fetch data from the table: "fee_grant_allowance" */ - fee_grant_allowance: Array; - /** fetch aggregated fields from the table: "fee_grant_allowance" */ - fee_grant_allowance_aggregate: Fee_Grant_Allowance_Aggregate; - /** fetch data from the table: "fee_grant_allowance" using primary key columns */ - fee_grant_allowance_by_pk?: Maybe; - /** fetch data from the table: "genesis" */ - genesis: Array; - /** fetch aggregated fields from the table: "genesis" */ - genesis_aggregate: Genesis_Aggregate; - /** fetch data from the table: "gov_params" */ - gov_params: Array; - /** fetch aggregated fields from the table: "gov_params" */ - gov_params_aggregate: Gov_Params_Aggregate; - /** fetch data from the table: "gov_params" using primary key columns */ - gov_params_by_pk?: Maybe; - /** fetch data from the table: "inflation" */ - inflation: Array; - /** fetch aggregated fields from the table: "inflation" */ - inflation_aggregate: Inflation_Aggregate; - /** fetch data from the table: "message" */ - message: Array; - /** fetch aggregated fields from the table: "message" */ - message_aggregate: Message_Aggregate; - /** execute function "messages_by_address" which returns "message" */ - messages_by_address: Array; - /** execute function "messages_by_address" and query aggregates on result of table type "message" */ - messages_by_address_aggregate: Message_Aggregate; - /** fetch data from the table: "mint_params" */ - mint_params: Array; - /** fetch aggregated fields from the table: "mint_params" */ - mint_params_aggregate: Mint_Params_Aggregate; - /** fetch data from the table: "mint_params" using primary key columns */ - mint_params_by_pk?: Maybe; - /** fetch data from the table: "modules" */ - modules: Array; - /** fetch aggregated fields from the table: "modules" */ - modules_aggregate: Modules_Aggregate; - /** fetch data from the table: "modules" using primary key columns */ - modules_by_pk?: Maybe; - /** fetch data from the table: "poll" */ - poll: Array; - /** fetch aggregated fields from the table: "poll" */ - poll_aggregate: Poll_Aggregate; - /** fetch data from the table: "poll_answer" */ - poll_answer: Array; - /** fetch aggregated fields from the table: "poll_answer" */ - poll_answer_aggregate: Poll_Answer_Aggregate; - /** fetch data from the table: "poll" using primary key columns */ - poll_by_pk?: Maybe; - /** fetch data from the table: "post" */ - post: Array; - /** fetch aggregated fields from the table: "post" */ - post_aggregate: Post_Aggregate; - /** fetch data from the table: "post_attachment" */ - post_attachment: Array; - /** fetch aggregated fields from the table: "post_attachment" */ - post_attachment_aggregate: Post_Attachment_Aggregate; - /** fetch data from the table: "post_attachment" using primary key columns */ - post_attachment_by_pk?: Maybe; - /** fetch data from the table: "post_attachment_tag" */ - post_attachment_tag: Array; - /** fetch aggregated fields from the table: "post_attachment_tag" */ - post_attachment_tag_aggregate: Post_Attachment_Tag_Aggregate; - /** fetch data from the table: "post_attribute" */ - post_attribute: Array; - /** fetch aggregated fields from the table: "post_attribute" */ - post_attribute_aggregate: Post_Attribute_Aggregate; - /** fetch data from the table: "post" using primary key columns */ - post_by_pk?: Maybe; - /** fetch data from the table: "post_reaction" */ - post_reaction: Array; - /** fetch aggregated fields from the table: "post_reaction" */ - post_reaction_aggregate: Post_Reaction_Aggregate; - /** fetch data from the table: "post_report" */ - post_report: Array; - /** fetch aggregated fields from the table: "post_report" */ - post_report_aggregate: Post_Report_Aggregate; - /** 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: "profile" */ - profile: Array; - /** fetch aggregated fields from the table: "profile" */ - profile_aggregate: Profile_Aggregate; - /** fetch data from the table: "profile" using primary key columns */ - profile_by_pk?: Maybe; - /** fetch data from the table: "profile_relationship" */ - profile_relationship: Array; - /** fetch aggregated fields from the table: "profile_relationship" */ - profile_relationship_aggregate: Profile_Relationship_Aggregate; - /** fetch data from the table: "profiles_params" */ - profiles_params: Array; - /** 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 aggregated fields from the table: "proposal_deposit" */ - proposal_deposit_aggregate: Proposal_Deposit_Aggregate; - /** fetch data from the table: "proposal_staking_pool_snapshot" */ - proposal_staking_pool_snapshot: Array; - /** fetch aggregated fields from the table: "proposal_staking_pool_snapshot" */ - proposal_staking_pool_snapshot_aggregate: Proposal_Staking_Pool_Snapshot_Aggregate; - /** 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 aggregated fields from the table: "proposal_tally_result" */ - proposal_tally_result_aggregate: Proposal_Tally_Result_Aggregate; - /** 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 aggregated fields from the table: "proposal_validator_status_snapshot" */ - proposal_validator_status_snapshot_aggregate: Proposal_Validator_Status_Snapshot_Aggregate; - /** fetch data from the table: "proposal_validator_status_snapshot" using primary key columns */ - proposal_validator_status_snapshot_by_pk?: Maybe; - /** fetch data from the table: "proposal_vote" */ - proposal_vote: Array; - /** fetch aggregated fields from the table: "proposal_vote" */ - proposal_vote_aggregate: Proposal_Vote_Aggregate; - /** fetch data from the table: "redelegation" */ - redelegation: Array; - /** fetch aggregated fields from the table: "redelegation" */ - redelegation_aggregate: Redelegation_Aggregate; - /** An array relationship */ - registered_reactions: Array; - /** An aggregate relationship */ - registered_reactions_aggregate: Registered_Reactions_Aggregate; - /** fetch data from the table: "slashing_params" */ - slashing_params: Array; - /** fetch aggregated fields from the table: "slashing_params" */ - slashing_params_aggregate: Slashing_Params_Aggregate; - /** fetch data from the table: "slashing_params" using primary key columns */ - slashing_params_by_pk?: Maybe; - /** fetch data from the table: "staking_params" */ - staking_params: Array; - /** fetch aggregated fields from the table: "staking_params" */ - staking_params_aggregate: Staking_Params_Aggregate; - /** fetch data from the table: "staking_params" using primary key columns */ - staking_params_by_pk?: Maybe; - /** fetch data from the table: "staking_pool" */ - staking_pool: Array; - /** fetch aggregated fields from the table: "staking_pool" */ - staking_pool_aggregate: Staking_Pool_Aggregate; - /** fetch data from the table: "supply" */ - supply: Array; - /** fetch aggregated fields from the table: "supply" */ - supply_aggregate: Supply_Aggregate; - /** fetch data from the table: "token" */ - token: Array; - /** fetch aggregated fields from the table: "token" */ - token_aggregate: Token_Aggregate; - /** fetch data from the table: "token_price" */ - token_price: Array; - /** fetch aggregated fields from the table: "token_price" */ - token_price_aggregate: Token_Price_Aggregate; - /** fetch data from the table: "token_price" using primary key columns */ - token_price_by_pk?: Maybe; - /** fetch data from the table: "token_price_history" */ - token_price_history: Array; - /** fetch aggregated fields from the table: "token_price_history" */ - token_price_history_aggregate: Token_Price_History_Aggregate; - /** fetch data from the table: "token_unit" */ - token_unit: Array; - /** fetch aggregated fields from the table: "token_unit" */ - token_unit_aggregate: Token_Unit_Aggregate; - /** fetch data from the table: "transaction" */ - transaction: Array; - /** fetch aggregated fields from the table: "transaction" */ - transaction_aggregate: Transaction_Aggregate; - /** fetch data from the table: "transaction" using primary key columns */ - transaction_by_pk?: Maybe; - /** fetch data from the table: "unbonding_delegation" */ - unbonding_delegation: Array; - /** fetch aggregated fields from the table: "unbonding_delegation" */ - unbonding_delegation_aggregate: Unbonding_Delegation_Aggregate; - /** fetch data from the table: "user_block" */ - user_block: Array; - /** fetch aggregated fields from the table: "user_block" */ - user_block_aggregate: User_Block_Aggregate; - /** fetch data from the table: "user_poll_answer" */ - user_poll_answer: Array; - /** fetch aggregated fields from the table: "user_poll_answer" */ - user_poll_answer_aggregate: User_Poll_Answer_Aggregate; - /** fetch data from the table: "validator" */ - validator: Array; - /** fetch aggregated fields from the table: "validator" */ - validator_aggregate: Validator_Aggregate; - /** 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 aggregated fields from the table: "validator_commission" */ - validator_commission_aggregate: Validator_Commission_Aggregate; - /** fetch data from the table: "validator_commission_amount" */ - validator_commission_amount: Array; - /** fetch aggregated fields from the table: "validator_commission_amount" */ - validator_commission_amount_aggregate: Validator_Commission_Amount_Aggregate; - /** fetch data from the table: "validator_commission_amount" using primary key columns */ - validator_commission_amount_by_pk?: Maybe; - /** 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 aggregated fields from the table: "validator_description" */ - validator_description_aggregate: Validator_Description_Aggregate; - /** 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 aggregated fields from the table: "validator_info" */ - validator_info_aggregate: Validator_Info_Aggregate; - /** 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 aggregated fields from the table: "validator_signing_info" */ - validator_signing_info_aggregate: Validator_Signing_Info_Aggregate; - /** 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 aggregated fields from the table: "vesting_account" */ - vesting_account_aggregate: Vesting_Account_Aggregate; - /** fetch data from the table: "vesting_account" using primary key columns */ - vesting_account_by_pk?: Maybe; - /** fetch data from the table: "vesting_period" */ - vesting_period: Array; - /** fetch aggregated fields from the table: "vesting_period" */ - vesting_period_aggregate: Vesting_Period_Aggregate; -}; - - -export type Query_RootAccountArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAccount_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAccount_BalanceArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAccount_Balance_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAccount_Balance_By_PkArgs = { - address: Scalars['String']; -}; - - -export type Query_RootAccount_Balance_HistoryArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAccount_Balance_History_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAccount_By_PkArgs = { - address: Scalars['String']; -}; - - -export type Query_RootApplication_LinkArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootApplication_Link_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootApplication_Link_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootApplication_Link_Oracle_RequestArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootApplication_Link_Oracle_Request_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootApplication_Link_Oracle_Request_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootAverage_Block_Time_From_GenesisArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAverage_Block_Time_From_Genesis_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAverage_Block_Time_Per_DayArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAverage_Block_Time_Per_Day_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAverage_Block_Time_Per_HourArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAverage_Block_Time_Per_Hour_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAverage_Block_Time_Per_MinuteArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAverage_Block_Time_Per_Minute_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootBlockArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootBlock_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootBlock_By_PkArgs = { - height: Scalars['bigint']; -}; - - -export type Query_RootChain_LinkArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootChain_Link_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootChain_Link_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootChain_Link_Chain_ConfigArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootChain_Link_Chain_Config_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootChain_Link_Chain_Config_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootChain_Link_ProofArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootChain_Link_Proof_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootCommunity_PoolArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootCommunity_Pool_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDelegationArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDelegation_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDelegation_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootDelegation_RewardArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDelegation_Reward_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDistribution_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDistribution_Params_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDistribution_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - -export type Query_RootDouble_Sign_EvidenceArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDouble_Sign_Evidence_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDouble_Sign_VoteArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDouble_Sign_Vote_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDouble_Sign_Vote_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootDtag_Transfer_RequestsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDtag_Transfer_Requests_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootFee_Grant_AllowanceArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootFee_Grant_Allowance_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootFee_Grant_Allowance_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootGenesisArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootGenesis_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootGov_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootGov_Params_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootGov_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - -export type Query_RootInflationArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootInflation_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootMessageArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootMessage_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootMessages_By_AddressArgs = { - args: Messages_By_Address_Args; - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootMessages_By_Address_AggregateArgs = { - args: Messages_By_Address_Args; - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootMint_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootMint_Params_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootMint_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - -export type Query_RootModulesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootModules_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootModules_By_PkArgs = { - module_name: Scalars['String']; -}; - - -export type Query_RootPollArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPoll_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPoll_AnswerArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPoll_Answer_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPoll_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootPostArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_AttachmentArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_Attachment_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_Attachment_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootPost_Attachment_TagArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_Attachment_Tag_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_AttributeArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_Attribute_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_By_PkArgs = { - id: Scalars['String']; -}; - - -export type Query_RootPost_ReactionArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_Reaction_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_ReportArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_Report_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPre_CommitArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPre_Commit_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProfileArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProfile_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProfile_By_PkArgs = { - address: Scalars['String']; -}; - - -export type Query_RootProfile_RelationshipArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProfile_Relationship_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProfiles_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposalArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootProposal_DepositArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_Deposit_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_Staking_Pool_SnapshotArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_Staking_Pool_Snapshot_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_Staking_Pool_Snapshot_By_PkArgs = { - proposal_id: Scalars['Int']; -}; - - -export type Query_RootProposal_Tally_ResultArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_Tally_Result_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_Tally_Result_By_PkArgs = { - proposal_id: Scalars['Int']; -}; - - -export type Query_RootProposal_Validator_Status_SnapshotArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_Validator_Status_Snapshot_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_Validator_Status_Snapshot_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootProposal_VoteArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_Vote_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootRedelegationArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootRedelegation_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootRegistered_ReactionsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootRegistered_Reactions_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootSlashing_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootSlashing_Params_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootSlashing_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - -export type Query_RootStaking_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootStaking_Params_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootStaking_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - -export type Query_RootStaking_PoolArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootStaking_Pool_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootSupplyArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootSupply_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootTokenArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootToken_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootToken_PriceArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootToken_Price_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootToken_Price_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootToken_Price_HistoryArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootToken_Price_History_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootToken_UnitArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootToken_Unit_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootTransactionArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootTransaction_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootTransaction_By_PkArgs = { - hash: Scalars['String']; -}; - - -export type Query_RootUnbonding_DelegationArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootUnbonding_Delegation_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootUser_BlockArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootUser_Block_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootUser_Poll_AnswerArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootUser_Poll_Answer_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidatorArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_By_PkArgs = { - consensus_address: Scalars['String']; -}; - - -export type Query_RootValidator_CommissionArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Commission_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Commission_AmountArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Commission_Amount_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Commission_Amount_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Query_RootValidator_Commission_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Query_RootValidator_DescriptionArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Description_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Description_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Query_RootValidator_InfoArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Info_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Info_By_PkArgs = { - consensus_address: Scalars['String']; -}; - - -export type Query_RootValidator_Signing_InfoArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Signing_Info_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Signing_Info_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Query_RootValidator_StatusArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Status_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Status_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Query_RootValidator_Voting_PowerArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Voting_Power_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Voting_Power_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Query_RootVesting_AccountArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootVesting_Account_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootVesting_Account_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootVesting_PeriodArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootVesting_Period_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - -/** columns and relationships of "redelegation" */ -export type Redelegation = { - __typename?: 'redelegation'; - /** An object relationship */ - account: Account; - amount: Scalars['coin']; - completion_time: Scalars['timestamp']; - delegator_address: Scalars['String']; - dst_validator_address: Scalars['String']; - height: Scalars['bigint']; - src_validator_address: Scalars['String']; - /** An object relationship */ - validator: Validator; - /** An object relationship */ - validatorByDstValidatorAddress: Validator; -}; - -/** aggregated selection of "redelegation" */ -export type Redelegation_Aggregate = { - __typename?: 'redelegation_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "redelegation" */ -export type Redelegation_Aggregate_Fields = { - __typename?: 'redelegation_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 "redelegation" */ -export type Redelegation_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "redelegation" */ -export type Redelegation_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Redelegation_Avg_Fields = { - __typename?: 'redelegation_avg_fields'; - height?: Maybe; -}; - -/** order by avg() on columns of table "redelegation" */ -export type Redelegation_Avg_Order_By = { - height?: Maybe; -}; - -/** Boolean expression to filter rows from the table "redelegation". All fields are combined with a logical 'AND'. */ -export type Redelegation_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account?: Maybe; - amount?: Maybe; - completion_time?: Maybe; - delegator_address?: Maybe; - dst_validator_address?: Maybe; - height?: Maybe; - src_validator_address?: Maybe; - validator?: Maybe; - validatorByDstValidatorAddress?: Maybe; -}; - -/** aggregate max on columns */ -export type Redelegation_Max_Fields = { - __typename?: 'redelegation_max_fields'; - completion_time?: Maybe; - delegator_address?: Maybe; - dst_validator_address?: Maybe; - height?: Maybe; - src_validator_address?: Maybe; -}; - -/** order by max() on columns of table "redelegation" */ -export type Redelegation_Max_Order_By = { - completion_time?: Maybe; - delegator_address?: Maybe; - dst_validator_address?: Maybe; - height?: Maybe; - src_validator_address?: Maybe; -}; - -/** aggregate min on columns */ -export type Redelegation_Min_Fields = { - __typename?: 'redelegation_min_fields'; - completion_time?: Maybe; - delegator_address?: Maybe; - dst_validator_address?: Maybe; - height?: Maybe; - src_validator_address?: Maybe; -}; - -/** order by min() on columns of table "redelegation" */ -export type Redelegation_Min_Order_By = { - completion_time?: Maybe; - delegator_address?: Maybe; - dst_validator_address?: Maybe; - height?: Maybe; - src_validator_address?: Maybe; -}; - -/** Ordering options when selecting data from "redelegation". */ -export type Redelegation_Order_By = { - account?: Maybe; - amount?: Maybe; - completion_time?: Maybe; - delegator_address?: Maybe; - dst_validator_address?: Maybe; - height?: Maybe; - src_validator_address?: Maybe; - validator?: Maybe; - validatorByDstValidatorAddress?: Maybe; -}; - -/** select columns of table "redelegation" */ -export enum Redelegation_Select_Column { - /** column name */ - Amount = 'amount', - /** column name */ - CompletionTime = 'completion_time', - /** column name */ - DelegatorAddress = 'delegator_address', - /** column name */ - DstValidatorAddress = 'dst_validator_address', - /** column name */ - Height = 'height', - /** column name */ - SrcValidatorAddress = 'src_validator_address' -} - -/** aggregate stddev on columns */ -export type Redelegation_Stddev_Fields = { - __typename?: 'redelegation_stddev_fields'; - height?: Maybe; -}; - -/** order by stddev() on columns of table "redelegation" */ -export type Redelegation_Stddev_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Redelegation_Stddev_Pop_Fields = { - __typename?: 'redelegation_stddev_pop_fields'; - height?: Maybe; -}; - -/** order by stddev_pop() on columns of table "redelegation" */ -export type Redelegation_Stddev_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Redelegation_Stddev_Samp_Fields = { - __typename?: 'redelegation_stddev_samp_fields'; - height?: Maybe; -}; - -/** order by stddev_samp() on columns of table "redelegation" */ -export type Redelegation_Stddev_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Redelegation_Sum_Fields = { - __typename?: 'redelegation_sum_fields'; - height?: Maybe; -}; - -/** order by sum() on columns of table "redelegation" */ -export type Redelegation_Sum_Order_By = { - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Redelegation_Var_Pop_Fields = { - __typename?: 'redelegation_var_pop_fields'; - height?: Maybe; -}; - -/** order by var_pop() on columns of table "redelegation" */ -export type Redelegation_Var_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Redelegation_Var_Samp_Fields = { - __typename?: 'redelegation_var_samp_fields'; - height?: Maybe; -}; - -/** order by var_samp() on columns of table "redelegation" */ -export type Redelegation_Var_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Redelegation_Variance_Fields = { - __typename?: 'redelegation_variance_fields'; - height?: Maybe; -}; - -/** order by variance() on columns of table "redelegation" */ -export type Redelegation_Variance_Order_By = { - height?: Maybe; -}; - -/** columns and relationships of "registered_reactions" */ -export type Registered_Reactions = { - __typename?: 'registered_reactions'; - height: Scalars['bigint']; - owner_address: Scalars['String']; - /** An object relationship */ - profile: Profile; - short_code: Scalars['String']; - subspace: Scalars['String']; - value: Scalars['String']; -}; - -/** aggregated selection of "registered_reactions" */ -export type Registered_Reactions_Aggregate = { - __typename?: 'registered_reactions_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "registered_reactions" */ -export type Registered_Reactions_Aggregate_Fields = { - __typename?: 'registered_reactions_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 "registered_reactions" */ -export type Registered_Reactions_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "registered_reactions" */ -export type Registered_Reactions_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Registered_Reactions_Avg_Fields = { - __typename?: 'registered_reactions_avg_fields'; - height?: Maybe; -}; - -/** order by avg() on columns of table "registered_reactions" */ -export type Registered_Reactions_Avg_Order_By = { - height?: Maybe; -}; - -/** Boolean expression to filter rows from the table "registered_reactions". All fields are combined with a logical 'AND'. */ -export type Registered_Reactions_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - owner_address?: Maybe; - profile?: Maybe; - short_code?: Maybe; - subspace?: Maybe; - value?: Maybe; -}; - -/** aggregate max on columns */ -export type Registered_Reactions_Max_Fields = { - __typename?: 'registered_reactions_max_fields'; - height?: Maybe; - owner_address?: Maybe; - short_code?: Maybe; - subspace?: Maybe; - value?: Maybe; -}; - -/** order by max() on columns of table "registered_reactions" */ -export type Registered_Reactions_Max_Order_By = { - height?: Maybe; - owner_address?: Maybe; - short_code?: Maybe; - subspace?: Maybe; - value?: Maybe; -}; - -/** aggregate min on columns */ -export type Registered_Reactions_Min_Fields = { - __typename?: 'registered_reactions_min_fields'; - height?: Maybe; - owner_address?: Maybe; - short_code?: Maybe; - subspace?: Maybe; - value?: Maybe; -}; - -/** order by min() on columns of table "registered_reactions" */ -export type Registered_Reactions_Min_Order_By = { - height?: Maybe; - owner_address?: Maybe; - short_code?: Maybe; - subspace?: Maybe; - value?: Maybe; -}; - -/** Ordering options when selecting data from "registered_reactions". */ -export type Registered_Reactions_Order_By = { - height?: Maybe; - owner_address?: Maybe; - profile?: Maybe; - short_code?: Maybe; - subspace?: Maybe; - value?: Maybe; -}; - -/** select columns of table "registered_reactions" */ -export enum Registered_Reactions_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - OwnerAddress = 'owner_address', - /** column name */ - ShortCode = 'short_code', - /** column name */ - Subspace = 'subspace', - /** column name */ - Value = 'value' -} - -/** aggregate stddev on columns */ -export type Registered_Reactions_Stddev_Fields = { - __typename?: 'registered_reactions_stddev_fields'; - height?: Maybe; -}; - -/** order by stddev() on columns of table "registered_reactions" */ -export type Registered_Reactions_Stddev_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Registered_Reactions_Stddev_Pop_Fields = { - __typename?: 'registered_reactions_stddev_pop_fields'; - height?: Maybe; -}; - -/** order by stddev_pop() on columns of table "registered_reactions" */ -export type Registered_Reactions_Stddev_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Registered_Reactions_Stddev_Samp_Fields = { - __typename?: 'registered_reactions_stddev_samp_fields'; - height?: Maybe; -}; - -/** order by stddev_samp() on columns of table "registered_reactions" */ -export type Registered_Reactions_Stddev_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Registered_Reactions_Sum_Fields = { - __typename?: 'registered_reactions_sum_fields'; - height?: Maybe; -}; - -/** order by sum() on columns of table "registered_reactions" */ -export type Registered_Reactions_Sum_Order_By = { - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Registered_Reactions_Var_Pop_Fields = { - __typename?: 'registered_reactions_var_pop_fields'; - height?: Maybe; -}; - -/** order by var_pop() on columns of table "registered_reactions" */ -export type Registered_Reactions_Var_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Registered_Reactions_Var_Samp_Fields = { - __typename?: 'registered_reactions_var_samp_fields'; - height?: Maybe; -}; - -/** order by var_samp() on columns of table "registered_reactions" */ -export type Registered_Reactions_Var_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Registered_Reactions_Variance_Fields = { - __typename?: 'registered_reactions_variance_fields'; - height?: Maybe; -}; - -/** order by variance() on columns of table "registered_reactions" */ -export type Registered_Reactions_Variance_Order_By = { - height?: Maybe; -}; - -/** columns and relationships of "slashing_params" */ -export type Slashing_Params = { - __typename?: 'slashing_params'; - height: Scalars['bigint']; - one_row_id: Scalars['Boolean']; - params: Scalars['jsonb']; -}; - - -/** columns and relationships of "slashing_params" */ -export type Slashing_ParamsParamsArgs = { - path?: Maybe; -}; - -/** aggregated selection of "slashing_params" */ -export type Slashing_Params_Aggregate = { - __typename?: 'slashing_params_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "slashing_params" */ -export type Slashing_Params_Aggregate_Fields = { - __typename?: 'slashing_params_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 "slashing_params" */ -export type Slashing_Params_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** aggregate avg on columns */ -export type Slashing_Params_Avg_Fields = { - __typename?: 'slashing_params_avg_fields'; - height?: Maybe; -}; - -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; -}; - -/** aggregate max on columns */ -export type Slashing_Params_Max_Fields = { - __typename?: 'slashing_params_max_fields'; - height?: Maybe; -}; - -/** aggregate min on columns */ -export type Slashing_Params_Min_Fields = { - __typename?: 'slashing_params_min_fields'; - height?: Maybe; -}; - -/** Ordering options when selecting data from "slashing_params". */ -export type Slashing_Params_Order_By = { - height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; -}; - -/** select columns of table "slashing_params" */ -export enum Slashing_Params_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - OneRowId = 'one_row_id', - /** column name */ - Params = 'params' -} - -/** aggregate stddev on columns */ -export type Slashing_Params_Stddev_Fields = { - __typename?: 'slashing_params_stddev_fields'; - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Slashing_Params_Stddev_Pop_Fields = { - __typename?: 'slashing_params_stddev_pop_fields'; - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Slashing_Params_Stddev_Samp_Fields = { - __typename?: 'slashing_params_stddev_samp_fields'; - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Slashing_Params_Sum_Fields = { - __typename?: 'slashing_params_sum_fields'; - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Slashing_Params_Var_Pop_Fields = { - __typename?: 'slashing_params_var_pop_fields'; - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Slashing_Params_Var_Samp_Fields = { - __typename?: 'slashing_params_var_samp_fields'; - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Slashing_Params_Variance_Fields = { - __typename?: 'slashing_params_variance_fields'; - height?: Maybe; -}; - - -/** Boolean expression to compare columns of type "smallint". All fields are combined with logical 'AND'. */ -export type Smallint_Comparison_Exp = { - _eq?: Maybe; - _gt?: Maybe; - _gte?: Maybe; - _in?: Maybe>; - _is_null?: Maybe; - _lt?: Maybe; - _lte?: Maybe; - _neq?: Maybe; - _nin?: Maybe>; -}; - -/** columns and relationships of "staking_params" */ -export type Staking_Params = { - __typename?: 'staking_params'; - height: Scalars['bigint']; - one_row_id: Scalars['Boolean']; - params: Scalars['jsonb']; -}; - - -/** columns and relationships of "staking_params" */ -export type Staking_ParamsParamsArgs = { - path?: Maybe; -}; - -/** aggregated selection of "staking_params" */ -export type Staking_Params_Aggregate = { - __typename?: 'staking_params_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "staking_params" */ -export type Staking_Params_Aggregate_Fields = { - __typename?: 'staking_params_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 "staking_params" */ -export type Staking_Params_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** aggregate avg on columns */ -export type Staking_Params_Avg_Fields = { - __typename?: 'staking_params_avg_fields'; - height?: Maybe; -}; - -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; -}; - -/** aggregate max on columns */ -export type Staking_Params_Max_Fields = { - __typename?: 'staking_params_max_fields'; - height?: Maybe; -}; - -/** aggregate min on columns */ -export type Staking_Params_Min_Fields = { - __typename?: 'staking_params_min_fields'; - height?: Maybe; -}; - -/** Ordering options when selecting data from "staking_params". */ -export type Staking_Params_Order_By = { - height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; -}; - -/** select columns of table "staking_params" */ -export enum Staking_Params_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - OneRowId = 'one_row_id', - /** column name */ - Params = 'params' -} - -/** aggregate stddev on columns */ -export type Staking_Params_Stddev_Fields = { - __typename?: 'staking_params_stddev_fields'; - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Staking_Params_Stddev_Pop_Fields = { - __typename?: 'staking_params_stddev_pop_fields'; - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Staking_Params_Stddev_Samp_Fields = { - __typename?: 'staking_params_stddev_samp_fields'; - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Staking_Params_Sum_Fields = { - __typename?: 'staking_params_sum_fields'; - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Staking_Params_Var_Pop_Fields = { - __typename?: 'staking_params_var_pop_fields'; - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Staking_Params_Var_Samp_Fields = { - __typename?: 'staking_params_var_samp_fields'; - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Staking_Params_Variance_Fields = { - __typename?: 'staking_params_variance_fields'; - height?: Maybe; -}; - -/** columns and relationships of "staking_pool" */ -export type Staking_Pool = { - __typename?: 'staking_pool'; - bonded_tokens: Scalars['bigint']; - height: Scalars['bigint']; - not_bonded_tokens: Scalars['bigint']; -}; - -/** aggregated selection of "staking_pool" */ -export type Staking_Pool_Aggregate = { - __typename?: 'staking_pool_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "staking_pool" */ -export type Staking_Pool_Aggregate_Fields = { - __typename?: 'staking_pool_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 "staking_pool" */ -export type Staking_Pool_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** aggregate avg on columns */ -export type Staking_Pool_Avg_Fields = { - __typename?: 'staking_pool_avg_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; -}; - -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; -}; - -/** aggregate max on columns */ -export type Staking_Pool_Max_Fields = { - __typename?: 'staking_pool_max_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; -}; - -/** aggregate min on columns */ -export type Staking_Pool_Min_Fields = { - __typename?: 'staking_pool_min_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; -}; - -/** Ordering options when selecting data from "staking_pool". */ -export type Staking_Pool_Order_By = { - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; -}; - -/** 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' -} - -/** aggregate stddev on columns */ -export type Staking_Pool_Stddev_Fields = { - __typename?: 'staking_pool_stddev_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Staking_Pool_Stddev_Pop_Fields = { - __typename?: 'staking_pool_stddev_pop_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Staking_Pool_Stddev_Samp_Fields = { - __typename?: 'staking_pool_stddev_samp_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; -}; - -/** aggregate sum on columns */ -export type Staking_Pool_Sum_Fields = { - __typename?: 'staking_pool_sum_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Staking_Pool_Var_Pop_Fields = { - __typename?: 'staking_pool_var_pop_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Staking_Pool_Var_Samp_Fields = { - __typename?: 'staking_pool_var_samp_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; -}; - -/** aggregate variance on columns */ -export type Staking_Pool_Variance_Fields = { - __typename?: 'staking_pool_variance_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; -}; - -export type Subscription_Root = { - __typename?: 'subscription_root'; +export type Query_Root = { + __typename?: 'query_root'; /** fetch data from the table: "account" */ account: Array; /** fetch aggregated fields from the table: "account" */ @@ -12502,18 +6060,18 @@ export type Subscription_Root = { account_balance_history_aggregate: Account_Balance_History_Aggregate; /** fetch data from the table: "account" using primary key columns */ account_by_pk?: Maybe; - /** fetch data from the table: "application_link" */ - application_link: Array; - /** fetch aggregated fields from the table: "application_link" */ - application_link_aggregate: Application_Link_Aggregate; - /** fetch data from the table: "application_link" using primary key columns */ - application_link_by_pk?: Maybe; - /** fetch data from the table: "application_link_oracle_request" */ - application_link_oracle_request: Array; - /** fetch aggregated fields from the table: "application_link_oracle_request" */ - application_link_oracle_request_aggregate: Application_Link_Oracle_Request_Aggregate; - /** fetch data from the table: "application_link_oracle_request" using primary key columns */ - application_link_oracle_request_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 aggregated fields from the table: "average_block_time_from_genesis" */ @@ -12536,22 +6094,6 @@ export type Subscription_Root = { block_aggregate: Block_Aggregate; /** fetch data from the table: "block" using primary key columns */ block_by_pk?: Maybe; - /** fetch data from the table: "chain_link" */ - chain_link: Array; - /** fetch aggregated fields from the table: "chain_link" */ - chain_link_aggregate: Chain_Link_Aggregate; - /** fetch data from the table: "chain_link" using primary key columns */ - chain_link_by_pk?: Maybe; - /** fetch data from the table: "chain_link_chain_config" */ - chain_link_chain_config: Array; - /** fetch aggregated fields from the table: "chain_link_chain_config" */ - chain_link_chain_config_aggregate: Chain_Link_Chain_Config_Aggregate; - /** fetch data from the table: "chain_link_chain_config" using primary key columns */ - chain_link_chain_config_by_pk?: Maybe; - /** fetch data from the table: "chain_link_proof" */ - chain_link_proof: Array; - /** fetch aggregated fields from the table: "chain_link_proof" */ - chain_link_proof_aggregate: Chain_Link_Proof_Aggregate; /** fetch data from the table: "community_pool" */ community_pool: Array; /** fetch aggregated fields from the table: "community_pool" */ @@ -12582,10 +6124,6 @@ export type Subscription_Root = { double_sign_vote_aggregate: Double_Sign_Vote_Aggregate; /** fetch data from the table: "double_sign_vote" using primary key columns */ double_sign_vote_by_pk?: Maybe; - /** An array relationship */ - dtag_transfer_requests: Array; - /** An aggregate relationship */ - dtag_transfer_requests_aggregate: Dtag_Transfer_Requests_Aggregate; /** fetch data from the table: "fee_grant_allowance" */ fee_grant_allowance: Array; /** fetch aggregated fields from the table: "fee_grant_allowance" */ @@ -12626,60 +6164,16 @@ export type Subscription_Root = { modules_aggregate: Modules_Aggregate; /** fetch data from the table: "modules" using primary key columns */ modules_by_pk?: Maybe; - /** fetch data from the table: "poll" */ - poll: Array; - /** fetch aggregated fields from the table: "poll" */ - poll_aggregate: Poll_Aggregate; - /** fetch data from the table: "poll_answer" */ - poll_answer: Array; - /** fetch aggregated fields from the table: "poll_answer" */ - poll_answer_aggregate: Poll_Answer_Aggregate; - /** fetch data from the table: "poll" using primary key columns */ - poll_by_pk?: Maybe; - /** fetch data from the table: "post" */ - post: Array; - /** fetch aggregated fields from the table: "post" */ - post_aggregate: Post_Aggregate; - /** fetch data from the table: "post_attachment" */ - post_attachment: Array; - /** fetch aggregated fields from the table: "post_attachment" */ - post_attachment_aggregate: Post_Attachment_Aggregate; - /** fetch data from the table: "post_attachment" using primary key columns */ - post_attachment_by_pk?: Maybe; - /** fetch data from the table: "post_attachment_tag" */ - post_attachment_tag: Array; - /** fetch aggregated fields from the table: "post_attachment_tag" */ - post_attachment_tag_aggregate: Post_Attachment_Tag_Aggregate; - /** fetch data from the table: "post_attribute" */ - post_attribute: Array; - /** fetch aggregated fields from the table: "post_attribute" */ - post_attribute_aggregate: Post_Attribute_Aggregate; - /** fetch data from the table: "post" using primary key columns */ - post_by_pk?: Maybe; - /** fetch data from the table: "post_reaction" */ - post_reaction: Array; - /** fetch aggregated fields from the table: "post_reaction" */ - post_reaction_aggregate: Post_Reaction_Aggregate; - /** fetch data from the table: "post_report" */ - post_report: Array; - /** fetch aggregated fields from the table: "post_report" */ - post_report_aggregate: Post_Report_Aggregate; /** 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: "profile" */ - profile: Array; - /** fetch aggregated fields from the table: "profile" */ - profile_aggregate: Profile_Aggregate; - /** fetch data from the table: "profile" using primary key columns */ - profile_by_pk?: Maybe; - /** fetch data from the table: "profile_relationship" */ - profile_relationship: Array; - /** fetch aggregated fields from the table: "profile_relationship" */ - profile_relationship_aggregate: Profile_Relationship_Aggregate; /** fetch data from the table: "profiles_params" */ profiles_params: Array; + /** fetch aggregated fields from the table: "profiles_params" */ + profiles_params_aggregate: Profiles_Params_Aggregate; + /** fetch data from the table: "profiles_params" using primary key columns */ + profiles_params_by_pk?: Maybe; /** fetch data from the table: "proposal" */ proposal: Array; /** fetch aggregated fields from the table: "proposal" */ @@ -12716,10 +6210,6 @@ export type Subscription_Root = { redelegation: Array; /** fetch aggregated fields from the table: "redelegation" */ redelegation_aggregate: Redelegation_Aggregate; - /** An array relationship */ - registered_reactions: Array; - /** An aggregate relationship */ - registered_reactions_aggregate: Registered_Reactions_Aggregate; /** fetch data from the table: "slashing_params" */ slashing_params: Array; /** fetch aggregated fields from the table: "slashing_params" */ @@ -12768,14 +6258,6 @@ export type Subscription_Root = { unbonding_delegation: Array; /** fetch aggregated fields from the table: "unbonding_delegation" */ unbonding_delegation_aggregate: Unbonding_Delegation_Aggregate; - /** fetch data from the table: "user_block" */ - user_block: Array; - /** fetch aggregated fields from the table: "user_block" */ - user_block_aggregate: User_Block_Aggregate; - /** fetch data from the table: "user_poll_answer" */ - user_poll_answer: Array; - /** fetch aggregated fields from the table: "user_poll_answer" */ - user_poll_answer_aggregate: User_Poll_Answer_Aggregate; /** fetch data from the table: "validator" */ validator: Array; /** fetch aggregated fields from the table: "validator" */ @@ -12837,1580 +6319,2842 @@ export type Subscription_Root = { }; -export type Subscription_RootAccountArgs = { - distinct_on?: Maybe>; +export type Query_RootAccountArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAccount_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAccount_BalanceArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAccount_Balance_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAccount_Balance_By_PkArgs = { + address: Scalars['String']; +}; + + +export type Query_RootAccount_Balance_HistoryArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAccount_Balance_History_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAccount_By_PkArgs = { + address: Scalars['String']; +}; + + +export type Query_RootAction_Account_BalanceArgs = { + address: Scalars['String']; + height?: Maybe; +}; + + +export type Query_RootAction_DelegationArgs = { + address: Scalars['String']; + count_total?: Maybe; + limit?: Maybe; + offset?: Maybe; +}; + + +export type Query_RootAction_Delegation_RewardArgs = { + address: Scalars['String']; +}; + + +export type Query_RootAction_Delegation_TotalArgs = { + address: Scalars['String']; + height?: Maybe; +}; + + +export type Query_RootAction_Delegator_Withdraw_AddressArgs = { + address: Scalars['String']; +}; + + +export type Query_RootAction_RedelegationArgs = { + address: Scalars['String']; + count_total?: Maybe; + limit?: Maybe; + offset?: Maybe; +}; + + +export type Query_RootAction_Unbonding_DelegationArgs = { + address: Scalars['String']; + count_total?: Maybe; + limit?: Maybe; + offset?: Maybe; +}; + + +export type Query_RootAction_Unbonding_Delegation_TotalArgs = { + address: Scalars['String']; + height?: Maybe; +}; + + +export type Query_RootAction_Validator_Commission_AmountArgs = { + address: Scalars['String']; +}; + + +export type Query_RootAction_Validator_DelegationsArgs = { + address: Scalars['String']; + count_total?: Maybe; + limit?: Maybe; + offset?: Maybe; +}; + + +export type Query_RootAction_Validator_Redelegations_FromArgs = { + address: Scalars['String']; + count_total?: Maybe; + limit?: Maybe; + offset?: Maybe; +}; + + +export type Query_RootAction_Validator_Unbonding_DelegationsArgs = { + address: Scalars['String']; + count_total?: Maybe; + limit?: Maybe; + offset?: Maybe; +}; + + +export type Query_RootAverage_Block_Time_From_GenesisArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAverage_Block_Time_From_Genesis_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAverage_Block_Time_Per_DayArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAverage_Block_Time_Per_Day_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAverage_Block_Time_Per_HourArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAverage_Block_Time_Per_Hour_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAverage_Block_Time_Per_MinuteArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAverage_Block_Time_Per_Minute_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootBlockArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootBlock_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootBlock_By_PkArgs = { + height: Scalars['bigint']; +}; + + +export type Query_RootCommunity_PoolArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootCommunity_Pool_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDelegationArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDelegation_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDelegation_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Query_RootDelegation_RewardArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDelegation_Reward_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDistribution_ParamsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDistribution_Params_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDistribution_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; +}; + + +export type Query_RootDouble_Sign_EvidenceArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDouble_Sign_Evidence_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDouble_Sign_VoteArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDouble_Sign_Vote_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDouble_Sign_Vote_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Query_RootFee_Grant_AllowanceArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootFee_Grant_Allowance_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootFee_Grant_Allowance_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Query_RootGenesisArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootGenesis_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootGov_ParamsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootGov_Params_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootGov_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; +}; + + +export type Query_RootInflationArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootInflation_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootMessageArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootMessage_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootMessages_By_AddressArgs = { + args: Messages_By_Address_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootMessages_By_Address_AggregateArgs = { + args: Messages_By_Address_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootMint_ParamsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootMint_Params_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootMint_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; +}; + + +export type Query_RootModulesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootModules_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootModules_By_PkArgs = { + module_name: Scalars['String']; +}; + + +export type Query_RootPre_CommitArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootPre_Commit_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootProfiles_ParamsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootProfiles_Params_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootProfiles_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; +}; + + +export type Query_RootProposalArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootProposal_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootProposal_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Query_RootProposal_DepositArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootProposal_Deposit_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootProposal_Staking_Pool_SnapshotArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootProposal_Staking_Pool_Snapshot_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootProposal_Staking_Pool_Snapshot_By_PkArgs = { + proposal_id: Scalars['Int']; +}; + + +export type Query_RootProposal_Tally_ResultArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootProposal_Tally_Result_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootProposal_Tally_Result_By_PkArgs = { + proposal_id: Scalars['Int']; +}; + + +export type Query_RootProposal_Validator_Status_SnapshotArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootProposal_Validator_Status_Snapshot_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAccount_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootProposal_Validator_Status_Snapshot_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Query_RootProposal_VoteArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAccount_BalanceArgs = { - distinct_on?: Maybe>; +export type Query_RootProposal_Vote_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootRedelegationArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootRedelegation_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootSlashing_ParamsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootSlashing_Params_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootSlashing_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; +}; + + +export type Query_RootStaking_ParamsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootStaking_Params_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootStaking_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; +}; + + +export type Query_RootStaking_PoolArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootStaking_Pool_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootSupplyArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootSupply_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootTokenArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootToken_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootToken_PriceArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootToken_Price_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootToken_Price_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Query_RootToken_Price_HistoryArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootToken_Price_History_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootToken_UnitArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootToken_Unit_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootTransactionArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootTransaction_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootTransaction_By_PkArgs = { + hash: Scalars['String']; +}; + + +export type Query_RootUnbonding_DelegationArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootUnbonding_Delegation_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootValidatorArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAccount_Balance_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAccount_Balance_By_PkArgs = { - address: Scalars['String']; +export type Query_RootValidator_By_PkArgs = { + consensus_address: Scalars['String']; }; -export type Subscription_RootAccount_Balance_HistoryArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_CommissionArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAccount_Balance_History_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_Commission_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAccount_By_PkArgs = { - address: Scalars['String']; +export type Query_RootValidator_Commission_AmountArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootApplication_LinkArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_Commission_Amount_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootApplication_Link_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +export type Query_RootValidator_Commission_Amount_By_PkArgs = { + validator_address: Scalars['String']; }; -export type Subscription_RootApplication_Link_By_PkArgs = { - id: Scalars['Int']; +export type Query_RootValidator_Commission_By_PkArgs = { + validator_address: Scalars['String']; }; -export type Subscription_RootApplication_Link_Oracle_RequestArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_DescriptionArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootApplication_Link_Oracle_Request_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_Description_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootApplication_Link_Oracle_Request_By_PkArgs = { - id: Scalars['Int']; +export type Query_RootValidator_Description_By_PkArgs = { + validator_address: Scalars['String']; }; -export type Subscription_RootAverage_Block_Time_From_GenesisArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_InfoArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAverage_Block_Time_From_Genesis_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_Info_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAverage_Block_Time_Per_DayArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +export type Query_RootValidator_Info_By_PkArgs = { + consensus_address: Scalars['String']; }; -export type Subscription_RootAverage_Block_Time_Per_Day_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_Signing_InfoArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAverage_Block_Time_Per_HourArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_Signing_Info_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAverage_Block_Time_Per_Hour_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +export type Query_RootValidator_Signing_Info_By_PkArgs = { + validator_address: Scalars['String']; }; -export type Subscription_RootAverage_Block_Time_Per_MinuteArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_StatusArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAverage_Block_Time_Per_Minute_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_Status_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootBlockArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_Status_By_PkArgs = { + validator_address: Scalars['String']; +}; + + +export type Query_RootValidator_Voting_PowerArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootBlock_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_Voting_Power_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootBlock_By_PkArgs = { - height: Scalars['bigint']; +export type Query_RootValidator_Voting_Power_By_PkArgs = { + validator_address: Scalars['String']; }; -export type Subscription_RootChain_LinkArgs = { - distinct_on?: Maybe>; +export type Query_RootVesting_AccountArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootChain_Link_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootVesting_Account_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootChain_Link_By_PkArgs = { +export type Query_RootVesting_Account_By_PkArgs = { id: Scalars['Int']; }; -export type Subscription_RootChain_Link_Chain_ConfigArgs = { - distinct_on?: Maybe>; +export type Query_RootVesting_PeriodArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootChain_Link_Chain_Config_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootVesting_Period_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; - -export type Subscription_RootChain_Link_Chain_Config_By_PkArgs = { - id: Scalars['Int']; +/** columns and relationships of "redelegation" */ +export type Redelegation = { + __typename?: 'redelegation'; + /** An object relationship */ + account: Account; + amount: Scalars['coin']; + completion_time: Scalars['timestamp']; + delegator_address: Scalars['String']; + dst_validator_address: Scalars['String']; + height: Scalars['bigint']; + src_validator_address: Scalars['String']; + /** An object relationship */ + validator: Validator; + /** An object relationship */ + validatorByDstValidatorAddress: Validator; }; +/** aggregated selection of "redelegation" */ +export type Redelegation_Aggregate = { + __typename?: 'redelegation_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; -export type Subscription_RootChain_Link_ProofArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate fields of "redelegation" */ +export type Redelegation_Aggregate_Fields = { + __typename?: 'redelegation_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; }; -export type Subscription_RootChain_Link_Proof_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate fields of "redelegation" */ +export type Redelegation_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; +/** order by aggregate values of table "redelegation" */ +export type Redelegation_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; -export type Subscription_RootCommunity_PoolArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate avg on columns */ +export type Redelegation_Avg_Fields = { + __typename?: 'redelegation_avg_fields'; + height?: Maybe; }; +/** order by avg() on columns of table "redelegation" */ +export type Redelegation_Avg_Order_By = { + height?: Maybe; +}; -export type Subscription_RootCommunity_Pool_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** Boolean expression to filter rows from the table "redelegation". All fields are combined with a logical 'AND'. */ +export type Redelegation_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + account?: Maybe; + amount?: Maybe; + completion_time?: Maybe; + delegator_address?: Maybe; + dst_validator_address?: Maybe; + height?: Maybe; + src_validator_address?: Maybe; + validator?: Maybe; + validatorByDstValidatorAddress?: Maybe; }; - -export type Subscription_RootDelegationArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate max on columns */ +export type Redelegation_Max_Fields = { + __typename?: 'redelegation_max_fields'; + completion_time?: Maybe; + delegator_address?: Maybe; + dst_validator_address?: Maybe; + height?: Maybe; + src_validator_address?: Maybe; }; - -export type Subscription_RootDelegation_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** order by max() on columns of table "redelegation" */ +export type Redelegation_Max_Order_By = { + completion_time?: Maybe; + delegator_address?: Maybe; + dst_validator_address?: Maybe; + height?: Maybe; + src_validator_address?: Maybe; }; - -export type Subscription_RootDelegation_By_PkArgs = { - id: Scalars['Int']; +/** aggregate min on columns */ +export type Redelegation_Min_Fields = { + __typename?: 'redelegation_min_fields'; + completion_time?: Maybe; + delegator_address?: Maybe; + dst_validator_address?: Maybe; + height?: Maybe; + src_validator_address?: Maybe; }; - -export type Subscription_RootDelegation_RewardArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** order by min() on columns of table "redelegation" */ +export type Redelegation_Min_Order_By = { + completion_time?: Maybe; + delegator_address?: Maybe; + dst_validator_address?: Maybe; + height?: Maybe; + src_validator_address?: Maybe; }; - -export type Subscription_RootDelegation_Reward_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** Ordering options when selecting data from "redelegation". */ +export type Redelegation_Order_By = { + account?: Maybe; + amount?: Maybe; + completion_time?: Maybe; + delegator_address?: Maybe; + dst_validator_address?: Maybe; + height?: Maybe; + src_validator_address?: Maybe; + validator?: Maybe; + validatorByDstValidatorAddress?: Maybe; }; +/** select columns of table "redelegation" */ +export enum Redelegation_Select_Column { + /** column name */ + Amount = 'amount', + /** column name */ + CompletionTime = 'completion_time', + /** column name */ + DelegatorAddress = 'delegator_address', + /** column name */ + DstValidatorAddress = 'dst_validator_address', + /** column name */ + Height = 'height', + /** column name */ + SrcValidatorAddress = 'src_validator_address' +} -export type Subscription_RootDistribution_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate stddev on columns */ +export type Redelegation_Stddev_Fields = { + __typename?: 'redelegation_stddev_fields'; + height?: Maybe; }; - -export type Subscription_RootDistribution_Params_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** order by stddev() on columns of table "redelegation" */ +export type Redelegation_Stddev_Order_By = { + height?: Maybe; }; - -export type Subscription_RootDistribution_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; +/** aggregate stddev_pop on columns */ +export type Redelegation_Stddev_Pop_Fields = { + __typename?: 'redelegation_stddev_pop_fields'; + height?: Maybe; }; - -export type Subscription_RootDouble_Sign_EvidenceArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** order by stddev_pop() on columns of table "redelegation" */ +export type Redelegation_Stddev_Pop_Order_By = { + height?: Maybe; }; - -export type Subscription_RootDouble_Sign_Evidence_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate stddev_samp on columns */ +export type Redelegation_Stddev_Samp_Fields = { + __typename?: 'redelegation_stddev_samp_fields'; + height?: Maybe; }; - -export type Subscription_RootDouble_Sign_VoteArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** order by stddev_samp() on columns of table "redelegation" */ +export type Redelegation_Stddev_Samp_Order_By = { + height?: Maybe; }; - -export type Subscription_RootDouble_Sign_Vote_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate sum on columns */ +export type Redelegation_Sum_Fields = { + __typename?: 'redelegation_sum_fields'; + height?: Maybe; }; - -export type Subscription_RootDouble_Sign_Vote_By_PkArgs = { - id: Scalars['Int']; +/** order by sum() on columns of table "redelegation" */ +export type Redelegation_Sum_Order_By = { + height?: Maybe; }; - -export type Subscription_RootDtag_Transfer_RequestsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate var_pop on columns */ +export type Redelegation_Var_Pop_Fields = { + __typename?: 'redelegation_var_pop_fields'; + height?: Maybe; }; - -export type Subscription_RootDtag_Transfer_Requests_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** order by var_pop() on columns of table "redelegation" */ +export type Redelegation_Var_Pop_Order_By = { + height?: Maybe; }; - -export type Subscription_RootFee_Grant_AllowanceArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate var_samp on columns */ +export type Redelegation_Var_Samp_Fields = { + __typename?: 'redelegation_var_samp_fields'; + height?: Maybe; }; +/** order by var_samp() on columns of table "redelegation" */ +export type Redelegation_Var_Samp_Order_By = { + height?: Maybe; +}; -export type Subscription_RootFee_Grant_Allowance_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate variance on columns */ +export type Redelegation_Variance_Fields = { + __typename?: 'redelegation_variance_fields'; + height?: Maybe; }; +/** order by variance() on columns of table "redelegation" */ +export type Redelegation_Variance_Order_By = { + height?: Maybe; +}; -export type Subscription_RootFee_Grant_Allowance_By_PkArgs = { - id: Scalars['Int']; +/** columns and relationships of "slashing_params" */ +export type Slashing_Params = { + __typename?: 'slashing_params'; + height: Scalars['bigint']; + one_row_id: Scalars['Boolean']; + params: Scalars['jsonb']; }; -export type Subscription_RootGenesisArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** columns and relationships of "slashing_params" */ +export type Slashing_ParamsParamsArgs = { + path?: Maybe; }; +/** aggregated selection of "slashing_params" */ +export type Slashing_Params_Aggregate = { + __typename?: 'slashing_params_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; -export type Subscription_RootGenesis_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate fields of "slashing_params" */ +export type Slashing_Params_Aggregate_Fields = { + __typename?: 'slashing_params_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; }; -export type Subscription_RootGov_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate fields of "slashing_params" */ +export type Slashing_Params_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; - -export type Subscription_RootGov_Params_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate avg on columns */ +export type Slashing_Params_Avg_Fields = { + __typename?: 'slashing_params_avg_fields'; + height?: Maybe; }; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + height?: Maybe; + one_row_id?: Maybe; + params?: Maybe; +}; -export type Subscription_RootGov_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; +/** aggregate max on columns */ +export type Slashing_Params_Max_Fields = { + __typename?: 'slashing_params_max_fields'; + height?: Maybe; }; +/** aggregate min on columns */ +export type Slashing_Params_Min_Fields = { + __typename?: 'slashing_params_min_fields'; + height?: Maybe; +}; -export type Subscription_RootInflationArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** Ordering options when selecting data from "slashing_params". */ +export type Slashing_Params_Order_By = { + height?: Maybe; + one_row_id?: Maybe; + params?: Maybe; }; +/** select columns of table "slashing_params" */ +export enum Slashing_Params_Select_Column { + /** column name */ + Height = 'height', + /** column name */ + OneRowId = 'one_row_id', + /** column name */ + Params = 'params' +} -export type Subscription_RootInflation_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate stddev on columns */ +export type Slashing_Params_Stddev_Fields = { + __typename?: 'slashing_params_stddev_fields'; + height?: Maybe; }; +/** aggregate stddev_pop on columns */ +export type Slashing_Params_Stddev_Pop_Fields = { + __typename?: 'slashing_params_stddev_pop_fields'; + height?: Maybe; +}; -export type Subscription_RootMessageArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate stddev_samp on columns */ +export type Slashing_Params_Stddev_Samp_Fields = { + __typename?: 'slashing_params_stddev_samp_fields'; + height?: Maybe; }; +/** aggregate sum on columns */ +export type Slashing_Params_Sum_Fields = { + __typename?: 'slashing_params_sum_fields'; + height?: Maybe; +}; -export type Subscription_RootMessage_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate var_pop on columns */ +export type Slashing_Params_Var_Pop_Fields = { + __typename?: 'slashing_params_var_pop_fields'; + height?: Maybe; }; +/** aggregate var_samp on columns */ +export type Slashing_Params_Var_Samp_Fields = { + __typename?: 'slashing_params_var_samp_fields'; + height?: Maybe; +}; -export type Subscription_RootMessages_By_AddressArgs = { - args: Messages_By_Address_Args; - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate variance on columns */ +export type Slashing_Params_Variance_Fields = { + __typename?: 'slashing_params_variance_fields'; + height?: Maybe; }; -export type Subscription_RootMessages_By_Address_AggregateArgs = { - args: Messages_By_Address_Args; - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** Boolean expression to compare columns of type "smallint". All fields are combined with logical 'AND'. */ +export type Smallint_Comparison_Exp = { + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; }; - -export type Subscription_RootMint_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** columns and relationships of "staking_params" */ +export type Staking_Params = { + __typename?: 'staking_params'; + height: Scalars['bigint']; + one_row_id: Scalars['Boolean']; + params: Scalars['jsonb']; }; -export type Subscription_RootMint_Params_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** columns and relationships of "staking_params" */ +export type Staking_ParamsParamsArgs = { + path?: Maybe; }; +/** aggregated selection of "staking_params" */ +export type Staking_Params_Aggregate = { + __typename?: 'staking_params_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; -export type Subscription_RootMint_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; +/** aggregate fields of "staking_params" */ +export type Staking_Params_Aggregate_Fields = { + __typename?: 'staking_params_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; }; -export type Subscription_RootModulesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate fields of "staking_params" */ +export type Staking_Params_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; - -export type Subscription_RootModules_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate avg on columns */ +export type Staking_Params_Avg_Fields = { + __typename?: 'staking_params_avg_fields'; + height?: Maybe; }; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + height?: Maybe; + one_row_id?: Maybe; + params?: Maybe; +}; -export type Subscription_RootModules_By_PkArgs = { - module_name: Scalars['String']; +/** aggregate max on columns */ +export type Staking_Params_Max_Fields = { + __typename?: 'staking_params_max_fields'; + height?: Maybe; }; +/** aggregate min on columns */ +export type Staking_Params_Min_Fields = { + __typename?: 'staking_params_min_fields'; + height?: Maybe; +}; -export type Subscription_RootPollArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** Ordering options when selecting data from "staking_params". */ +export type Staking_Params_Order_By = { + height?: Maybe; + one_row_id?: Maybe; + params?: Maybe; }; +/** select columns of table "staking_params" */ +export enum Staking_Params_Select_Column { + /** column name */ + Height = 'height', + /** column name */ + OneRowId = 'one_row_id', + /** column name */ + Params = 'params' +} -export type Subscription_RootPoll_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate stddev on columns */ +export type Staking_Params_Stddev_Fields = { + __typename?: 'staking_params_stddev_fields'; + height?: Maybe; }; +/** aggregate stddev_pop on columns */ +export type Staking_Params_Stddev_Pop_Fields = { + __typename?: 'staking_params_stddev_pop_fields'; + height?: Maybe; +}; -export type Subscription_RootPoll_AnswerArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate stddev_samp on columns */ +export type Staking_Params_Stddev_Samp_Fields = { + __typename?: 'staking_params_stddev_samp_fields'; + height?: Maybe; }; +/** aggregate sum on columns */ +export type Staking_Params_Sum_Fields = { + __typename?: 'staking_params_sum_fields'; + height?: Maybe; +}; -export type Subscription_RootPoll_Answer_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate var_pop on columns */ +export type Staking_Params_Var_Pop_Fields = { + __typename?: 'staking_params_var_pop_fields'; + height?: Maybe; }; - -export type Subscription_RootPoll_By_PkArgs = { - id: Scalars['Int']; +/** aggregate var_samp on columns */ +export type Staking_Params_Var_Samp_Fields = { + __typename?: 'staking_params_var_samp_fields'; + height?: Maybe; }; - -export type Subscription_RootPostArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate variance on columns */ +export type Staking_Params_Variance_Fields = { + __typename?: 'staking_params_variance_fields'; + height?: Maybe; }; - -export type Subscription_RootPost_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** columns and relationships of "staking_pool" */ +export type Staking_Pool = { + __typename?: 'staking_pool'; + bonded_tokens: Scalars['bigint']; + height: Scalars['bigint']; + not_bonded_tokens: Scalars['bigint']; }; - -export type Subscription_RootPost_AttachmentArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregated selection of "staking_pool" */ +export type Staking_Pool_Aggregate = { + __typename?: 'staking_pool_aggregate'; + aggregate?: Maybe; + nodes: Array; }; - -export type Subscription_RootPost_Attachment_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate fields of "staking_pool" */ +export type Staking_Pool_Aggregate_Fields = { + __typename?: 'staking_pool_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; }; -export type Subscription_RootPost_Attachment_By_PkArgs = { - id: Scalars['Int']; +/** aggregate fields of "staking_pool" */ +export type Staking_Pool_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; - -export type Subscription_RootPost_Attachment_TagArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate avg on columns */ +export type Staking_Pool_Avg_Fields = { + __typename?: 'staking_pool_avg_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; }; - -export type Subscription_RootPost_Attachment_Tag_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; }; - -export type Subscription_RootPost_AttributeArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate max on columns */ +export type Staking_Pool_Max_Fields = { + __typename?: 'staking_pool_max_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; }; +/** aggregate min on columns */ +export type Staking_Pool_Min_Fields = { + __typename?: 'staking_pool_min_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; +}; -export type Subscription_RootPost_Attribute_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** Ordering options when selecting data from "staking_pool". */ +export type Staking_Pool_Order_By = { + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; }; +/** 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' +} -export type Subscription_RootPost_By_PkArgs = { - id: Scalars['String']; +/** aggregate stddev on columns */ +export type Staking_Pool_Stddev_Fields = { + __typename?: 'staking_pool_stddev_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; }; - -export type Subscription_RootPost_ReactionArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate stddev_pop on columns */ +export type Staking_Pool_Stddev_Pop_Fields = { + __typename?: 'staking_pool_stddev_pop_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; }; +/** aggregate stddev_samp on columns */ +export type Staking_Pool_Stddev_Samp_Fields = { + __typename?: 'staking_pool_stddev_samp_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; +}; -export type Subscription_RootPost_Reaction_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate sum on columns */ +export type Staking_Pool_Sum_Fields = { + __typename?: 'staking_pool_sum_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; }; +/** aggregate var_pop on columns */ +export type Staking_Pool_Var_Pop_Fields = { + __typename?: 'staking_pool_var_pop_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; +}; -export type Subscription_RootPost_ReportArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate var_samp on columns */ +export type Staking_Pool_Var_Samp_Fields = { + __typename?: 'staking_pool_var_samp_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; }; +/** aggregate variance on columns */ +export type Staking_Pool_Variance_Fields = { + __typename?: 'staking_pool_variance_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; +}; -export type Subscription_RootPost_Report_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +export type Subscription_Root = { + __typename?: 'subscription_root'; + /** fetch data from the table: "account" */ + account: Array; + /** fetch aggregated fields from the table: "account" */ + account_aggregate: Account_Aggregate; + /** fetch data from the table: "account_balance" */ + account_balance: Array; + /** fetch aggregated fields from the table: "account_balance" */ + account_balance_aggregate: Account_Balance_Aggregate; + /** fetch data from the table: "account_balance" using primary key columns */ + account_balance_by_pk?: Maybe; + /** fetch data from the table: "account_balance_history" */ + account_balance_history: Array; + /** fetch aggregated fields from the table: "account_balance_history" */ + account_balance_history_aggregate: Account_Balance_History_Aggregate; + /** 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 aggregated fields from the table: "average_block_time_from_genesis" */ + average_block_time_from_genesis_aggregate: Average_Block_Time_From_Genesis_Aggregate; + /** fetch data from the table: "average_block_time_per_day" */ + average_block_time_per_day: Array; + /** fetch aggregated fields from the table: "average_block_time_per_day" */ + average_block_time_per_day_aggregate: Average_Block_Time_Per_Day_Aggregate; + /** fetch data from the table: "average_block_time_per_hour" */ + average_block_time_per_hour: Array; + /** fetch aggregated fields from the table: "average_block_time_per_hour" */ + average_block_time_per_hour_aggregate: Average_Block_Time_Per_Hour_Aggregate; + /** fetch data from the table: "average_block_time_per_minute" */ + average_block_time_per_minute: Array; + /** fetch aggregated fields from the table: "average_block_time_per_minute" */ + average_block_time_per_minute_aggregate: Average_Block_Time_Per_Minute_Aggregate; + /** fetch data from the table: "block" */ + block: Array; + /** fetch aggregated fields from the table: "block" */ + block_aggregate: Block_Aggregate; + /** 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 aggregated fields from the table: "community_pool" */ + community_pool_aggregate: Community_Pool_Aggregate; + /** fetch data from the table: "delegation" */ + delegation: Array; + /** fetch aggregated fields from the table: "delegation" */ + delegation_aggregate: Delegation_Aggregate; + /** fetch data from the table: "delegation" using primary key columns */ + delegation_by_pk?: Maybe; + /** fetch data from the table: "delegation_reward" */ + delegation_reward: Array; + /** fetch aggregated fields from the table: "delegation_reward" */ + delegation_reward_aggregate: Delegation_Reward_Aggregate; + /** fetch data from the table: "distribution_params" */ + distribution_params: Array; + /** fetch aggregated fields from the table: "distribution_params" */ + distribution_params_aggregate: Distribution_Params_Aggregate; + /** fetch data from the table: "distribution_params" using primary key columns */ + distribution_params_by_pk?: Maybe; + /** fetch data from the table: "double_sign_evidence" */ + double_sign_evidence: Array; + /** fetch aggregated fields from the table: "double_sign_evidence" */ + double_sign_evidence_aggregate: Double_Sign_Evidence_Aggregate; + /** fetch data from the table: "double_sign_vote" */ + double_sign_vote: Array; + /** fetch aggregated fields from the table: "double_sign_vote" */ + double_sign_vote_aggregate: Double_Sign_Vote_Aggregate; + /** fetch data from the table: "double_sign_vote" using primary key columns */ + double_sign_vote_by_pk?: Maybe; + /** fetch data from the table: "fee_grant_allowance" */ + fee_grant_allowance: Array; + /** fetch aggregated fields from the table: "fee_grant_allowance" */ + fee_grant_allowance_aggregate: Fee_Grant_Allowance_Aggregate; + /** fetch data from the table: "fee_grant_allowance" using primary key columns */ + fee_grant_allowance_by_pk?: Maybe; + /** fetch data from the table: "genesis" */ + genesis: Array; + /** fetch aggregated fields from the table: "genesis" */ + genesis_aggregate: Genesis_Aggregate; + /** fetch data from the table: "gov_params" */ + gov_params: Array; + /** fetch aggregated fields from the table: "gov_params" */ + gov_params_aggregate: Gov_Params_Aggregate; + /** fetch data from the table: "gov_params" using primary key columns */ + gov_params_by_pk?: Maybe; + /** fetch data from the table: "inflation" */ + inflation: Array; + /** fetch aggregated fields from the table: "inflation" */ + inflation_aggregate: Inflation_Aggregate; + /** fetch data from the table: "message" */ + message: Array; + /** fetch aggregated fields from the table: "message" */ + message_aggregate: Message_Aggregate; + /** execute function "messages_by_address" which returns "message" */ + messages_by_address: Array; + /** execute function "messages_by_address" and query aggregates on result of table type "message" */ + messages_by_address_aggregate: Message_Aggregate; + /** fetch data from the table: "mint_params" */ + mint_params: Array; + /** fetch aggregated fields from the table: "mint_params" */ + mint_params_aggregate: Mint_Params_Aggregate; + /** fetch data from the table: "mint_params" using primary key columns */ + mint_params_by_pk?: Maybe; + /** fetch data from the table: "modules" */ + modules: Array; + /** fetch aggregated fields from the table: "modules" */ + modules_aggregate: Modules_Aggregate; + /** 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: "profiles_params" */ + profiles_params: Array; + /** fetch aggregated fields from the table: "profiles_params" */ + profiles_params_aggregate: Profiles_Params_Aggregate; + /** fetch data from the table: "profiles_params" using primary key columns */ + profiles_params_by_pk?: Maybe; + /** 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 aggregated fields from the table: "proposal_deposit" */ + proposal_deposit_aggregate: Proposal_Deposit_Aggregate; + /** fetch data from the table: "proposal_staking_pool_snapshot" */ + proposal_staking_pool_snapshot: Array; + /** fetch aggregated fields from the table: "proposal_staking_pool_snapshot" */ + proposal_staking_pool_snapshot_aggregate: Proposal_Staking_Pool_Snapshot_Aggregate; + /** 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 aggregated fields from the table: "proposal_tally_result" */ + proposal_tally_result_aggregate: Proposal_Tally_Result_Aggregate; + /** 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 aggregated fields from the table: "proposal_validator_status_snapshot" */ + proposal_validator_status_snapshot_aggregate: Proposal_Validator_Status_Snapshot_Aggregate; + /** fetch data from the table: "proposal_validator_status_snapshot" using primary key columns */ + proposal_validator_status_snapshot_by_pk?: Maybe; + /** fetch data from the table: "proposal_vote" */ + proposal_vote: Array; + /** fetch aggregated fields from the table: "proposal_vote" */ + proposal_vote_aggregate: Proposal_Vote_Aggregate; + /** fetch data from the table: "redelegation" */ + redelegation: Array; + /** fetch aggregated fields from the table: "redelegation" */ + redelegation_aggregate: Redelegation_Aggregate; + /** fetch data from the table: "slashing_params" */ + slashing_params: Array; + /** fetch aggregated fields from the table: "slashing_params" */ + slashing_params_aggregate: Slashing_Params_Aggregate; + /** fetch data from the table: "slashing_params" using primary key columns */ + slashing_params_by_pk?: Maybe; + /** fetch data from the table: "staking_params" */ + staking_params: Array; + /** fetch aggregated fields from the table: "staking_params" */ + staking_params_aggregate: Staking_Params_Aggregate; + /** fetch data from the table: "staking_params" using primary key columns */ + staking_params_by_pk?: Maybe; + /** fetch data from the table: "staking_pool" */ + staking_pool: Array; + /** fetch aggregated fields from the table: "staking_pool" */ + staking_pool_aggregate: Staking_Pool_Aggregate; + /** fetch data from the table: "supply" */ + supply: Array; + /** fetch aggregated fields from the table: "supply" */ + supply_aggregate: Supply_Aggregate; + /** fetch data from the table: "token" */ + token: Array; + /** fetch aggregated fields from the table: "token" */ + token_aggregate: Token_Aggregate; + /** fetch data from the table: "token_price" */ + token_price: Array; + /** fetch aggregated fields from the table: "token_price" */ + token_price_aggregate: Token_Price_Aggregate; + /** fetch data from the table: "token_price" using primary key columns */ + token_price_by_pk?: Maybe; + /** fetch data from the table: "token_price_history" */ + token_price_history: Array; + /** fetch aggregated fields from the table: "token_price_history" */ + token_price_history_aggregate: Token_Price_History_Aggregate; + /** fetch data from the table: "token_unit" */ + token_unit: Array; + /** fetch aggregated fields from the table: "token_unit" */ + token_unit_aggregate: Token_Unit_Aggregate; + /** fetch data from the table: "transaction" */ + transaction: Array; + /** fetch aggregated fields from the table: "transaction" */ + transaction_aggregate: Transaction_Aggregate; + /** fetch data from the table: "transaction" using primary key columns */ + transaction_by_pk?: Maybe; + /** fetch data from the table: "unbonding_delegation" */ + unbonding_delegation: Array; + /** fetch aggregated fields from the table: "unbonding_delegation" */ + unbonding_delegation_aggregate: Unbonding_Delegation_Aggregate; + /** fetch data from the table: "validator" */ + validator: Array; + /** fetch aggregated fields from the table: "validator" */ + validator_aggregate: Validator_Aggregate; + /** 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 aggregated fields from the table: "validator_commission" */ + validator_commission_aggregate: Validator_Commission_Aggregate; + /** fetch data from the table: "validator_commission_amount" */ + validator_commission_amount: Array; + /** fetch aggregated fields from the table: "validator_commission_amount" */ + validator_commission_amount_aggregate: Validator_Commission_Amount_Aggregate; + /** fetch data from the table: "validator_commission_amount" using primary key columns */ + validator_commission_amount_by_pk?: Maybe; + /** 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 aggregated fields from the table: "validator_description" */ + validator_description_aggregate: Validator_Description_Aggregate; + /** 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 aggregated fields from the table: "validator_info" */ + validator_info_aggregate: Validator_Info_Aggregate; + /** 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 aggregated fields from the table: "validator_signing_info" */ + validator_signing_info_aggregate: Validator_Signing_Info_Aggregate; + /** 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 aggregated fields from the table: "vesting_account" */ + vesting_account_aggregate: Vesting_Account_Aggregate; + /** fetch data from the table: "vesting_account" using primary key columns */ + vesting_account_by_pk?: Maybe; + /** fetch data from the table: "vesting_period" */ + vesting_period: Array; + /** fetch aggregated fields from the table: "vesting_period" */ + vesting_period_aggregate: Vesting_Period_Aggregate; }; -export type Subscription_RootPre_CommitArgs = { - distinct_on?: Maybe>; +export type Subscription_RootAccountArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootPre_Commit_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootAccount_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootProfileArgs = { - distinct_on?: Maybe>; +export type Subscription_RootAccount_BalanceArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootProfile_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootAccount_Balance_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootProfile_By_PkArgs = { +export type Subscription_RootAccount_Balance_By_PkArgs = { address: Scalars['String']; }; -export type Subscription_RootProfile_RelationshipArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProfile_Relationship_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProfiles_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProposalArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProposal_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProposal_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Subscription_RootProposal_DepositArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProposal_Deposit_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProposal_Staking_Pool_SnapshotArgs = { - distinct_on?: Maybe>; +export type Subscription_RootAccount_Balance_HistoryArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootProposal_Staking_Pool_Snapshot_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootAccount_Balance_History_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootProposal_Staking_Pool_Snapshot_By_PkArgs = { - proposal_id: Scalars['Int']; +export type Subscription_RootAccount_By_PkArgs = { + address: Scalars['String']; }; -export type Subscription_RootProposal_Tally_ResultArgs = { - distinct_on?: Maybe>; +export type Subscription_RootAverage_Block_Time_From_GenesisArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootProposal_Tally_Result_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootAverage_Block_Time_From_Genesis_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootProposal_Tally_Result_By_PkArgs = { - proposal_id: Scalars['Int']; +export type Subscription_RootAverage_Block_Time_Per_DayArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootProposal_Validator_Status_SnapshotArgs = { - distinct_on?: Maybe>; +export type Subscription_RootAverage_Block_Time_Per_Day_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootProposal_Validator_Status_Snapshot_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootAverage_Block_Time_Per_HourArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootProposal_Validator_Status_Snapshot_By_PkArgs = { - id: Scalars['Int']; +export type Subscription_RootAverage_Block_Time_Per_Hour_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootProposal_VoteArgs = { - distinct_on?: Maybe>; +export type Subscription_RootAverage_Block_Time_Per_MinuteArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootProposal_Vote_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootAverage_Block_Time_Per_Minute_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootRedelegationArgs = { - distinct_on?: Maybe>; +export type Subscription_RootBlockArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootRedelegation_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootBlock_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootBlock_By_PkArgs = { + height: Scalars['bigint']; }; -export type Subscription_RootRegistered_ReactionsArgs = { - distinct_on?: Maybe>; +export type Subscription_RootCommunity_PoolArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootRegistered_Reactions_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootCommunity_Pool_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootSlashing_ParamsArgs = { - distinct_on?: Maybe>; +export type Subscription_RootDelegationArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootSlashing_Params_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootDelegation_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootSlashing_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; +export type Subscription_RootDelegation_By_PkArgs = { + id: Scalars['Int']; }; -export type Subscription_RootStaking_ParamsArgs = { - distinct_on?: Maybe>; +export type Subscription_RootDelegation_RewardArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootStaking_Params_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootDelegation_Reward_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootStaking_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; +export type Subscription_RootDistribution_ParamsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootStaking_PoolArgs = { - distinct_on?: Maybe>; +export type Subscription_RootDistribution_Params_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootStaking_Pool_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +export type Subscription_RootDistribution_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; }; -export type Subscription_RootSupplyArgs = { - distinct_on?: Maybe>; +export type Subscription_RootDouble_Sign_EvidenceArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootSupply_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootDouble_Sign_Evidence_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootTokenArgs = { - distinct_on?: Maybe>; +export type Subscription_RootDouble_Sign_VoteArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootToken_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootDouble_Sign_Vote_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootToken_PriceArgs = { - distinct_on?: Maybe>; +export type Subscription_RootDouble_Sign_Vote_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Subscription_RootFee_Grant_AllowanceArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootToken_Price_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootFee_Grant_Allowance_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootToken_Price_By_PkArgs = { +export type Subscription_RootFee_Grant_Allowance_By_PkArgs = { id: Scalars['Int']; }; -export type Subscription_RootToken_Price_HistoryArgs = { - distinct_on?: Maybe>; +export type Subscription_RootGenesisArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootToken_Price_History_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootGenesis_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootToken_UnitArgs = { - distinct_on?: Maybe>; +export type Subscription_RootGov_ParamsArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootToken_Unit_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootGov_Params_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootTransactionArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +export type Subscription_RootGov_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; }; -export type Subscription_RootTransaction_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootInflationArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootTransaction_By_PkArgs = { - hash: Scalars['String']; +export type Subscription_RootInflation_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootUnbonding_DelegationArgs = { - distinct_on?: Maybe>; +export type Subscription_RootMessageArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootUnbonding_Delegation_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootMessage_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootUser_BlockArgs = { - distinct_on?: Maybe>; +export type Subscription_RootMessages_By_AddressArgs = { + args: Messages_By_Address_Args; + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootUser_Block_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootMessages_By_Address_AggregateArgs = { + args: Messages_By_Address_Args; + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootUser_Poll_AnswerArgs = { - distinct_on?: Maybe>; +export type Subscription_RootMint_ParamsArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootUser_Poll_Answer_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootMint_Params_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidatorArgs = { - distinct_on?: Maybe>; +export type Subscription_RootMint_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; +}; + + +export type Subscription_RootModulesArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootModules_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_By_PkArgs = { - consensus_address: Scalars['String']; +export type Subscription_RootModules_By_PkArgs = { + module_name: Scalars['String']; }; -export type Subscription_RootValidator_CommissionArgs = { - distinct_on?: Maybe>; +export type Subscription_RootPre_CommitArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Commission_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootPre_Commit_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Commission_AmountArgs = { - distinct_on?: Maybe>; +export type Subscription_RootProfiles_ParamsArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Commission_Amount_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootProfiles_Params_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Commission_Amount_By_PkArgs = { - validator_address: Scalars['String']; +export type Subscription_RootProfiles_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; }; -export type Subscription_RootValidator_Commission_By_PkArgs = { - validator_address: Scalars['String']; +export type Subscription_RootProposalArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_DescriptionArgs = { - distinct_on?: Maybe>; +export type Subscription_RootProposal_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Description_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootProposal_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Subscription_RootProposal_DepositArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Description_By_PkArgs = { - validator_address: Scalars['String']; +export type Subscription_RootProposal_Deposit_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_InfoArgs = { - distinct_on?: Maybe>; +export type Subscription_RootProposal_Staking_Pool_SnapshotArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Info_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootProposal_Staking_Pool_Snapshot_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Info_By_PkArgs = { - consensus_address: Scalars['String']; +export type Subscription_RootProposal_Staking_Pool_Snapshot_By_PkArgs = { + proposal_id: Scalars['Int']; }; -export type Subscription_RootValidator_Signing_InfoArgs = { - distinct_on?: Maybe>; +export type Subscription_RootProposal_Tally_ResultArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Signing_Info_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootProposal_Tally_Result_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Signing_Info_By_PkArgs = { - validator_address: Scalars['String']; +export type Subscription_RootProposal_Tally_Result_By_PkArgs = { + proposal_id: Scalars['Int']; }; -export type Subscription_RootValidator_StatusArgs = { - distinct_on?: Maybe>; +export type Subscription_RootProposal_Validator_Status_SnapshotArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Status_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootProposal_Validator_Status_Snapshot_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Status_By_PkArgs = { - validator_address: Scalars['String']; +export type Subscription_RootProposal_Validator_Status_Snapshot_By_PkArgs = { + id: Scalars['Int']; }; -export type Subscription_RootValidator_Voting_PowerArgs = { - distinct_on?: Maybe>; +export type Subscription_RootProposal_VoteArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Voting_Power_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootProposal_Vote_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Voting_Power_By_PkArgs = { - validator_address: Scalars['String']; +export type Subscription_RootRedelegationArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootVesting_AccountArgs = { - distinct_on?: Maybe>; +export type Subscription_RootRedelegation_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootVesting_Account_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootSlashing_ParamsArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootSlashing_Params_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootVesting_Account_By_PkArgs = { - id: Scalars['Int']; +export type Subscription_RootSlashing_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; }; -export type Subscription_RootVesting_PeriodArgs = { - distinct_on?: Maybe>; +export type Subscription_RootStaking_ParamsArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootVesting_Period_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootStaking_Params_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** columns and relationships of "supply" */ -export type Supply = { - __typename?: 'supply'; - coins: Scalars['_coin']; - height: Scalars['bigint']; -}; -/** aggregated selection of "supply" */ -export type Supply_Aggregate = { - __typename?: 'supply_aggregate'; - aggregate?: Maybe; - nodes: Array; +export type Subscription_RootStaking_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; }; -/** aggregate fields of "supply" */ -export type Supply_Aggregate_Fields = { - __typename?: 'supply_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; + +export type Subscription_RootStaking_PoolArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate fields of "supply" */ -export type Supply_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +export type Subscription_RootStaking_Pool_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate avg on columns */ -export type Supply_Avg_Fields = { - __typename?: 'supply_avg_fields'; - height?: Maybe; -}; -/** Boolean expression to filter rows from the table "supply". All fields are combined with a logical 'AND'. */ -export type Supply_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - coins?: Maybe<_Coin_Comparison_Exp>; - height?: Maybe; +export type Subscription_RootSupplyArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate max on columns */ -export type Supply_Max_Fields = { - __typename?: 'supply_max_fields'; - height?: Maybe; -}; -/** aggregate min on columns */ -export type Supply_Min_Fields = { - __typename?: 'supply_min_fields'; - height?: Maybe; +export type Subscription_RootSupply_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** Ordering options when selecting data from "supply". */ -export type Supply_Order_By = { - coins?: Maybe; - height?: Maybe; + +export type Subscription_RootTokenArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** select columns of table "supply" */ -export enum Supply_Select_Column { - /** column name */ - Coins = 'coins', - /** column name */ - Height = 'height' -} -/** aggregate stddev on columns */ -export type Supply_Stddev_Fields = { - __typename?: 'supply_stddev_fields'; - height?: Maybe; +export type Subscription_RootToken_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Supply_Stddev_Pop_Fields = { - __typename?: 'supply_stddev_pop_fields'; - height?: Maybe; -}; -/** aggregate stddev_samp on columns */ -export type Supply_Stddev_Samp_Fields = { - __typename?: 'supply_stddev_samp_fields'; - height?: Maybe; +export type Subscription_RootToken_PriceArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate sum on columns */ -export type Supply_Sum_Fields = { - __typename?: 'supply_sum_fields'; - height?: Maybe; -}; -/** aggregate var_pop on columns */ -export type Supply_Var_Pop_Fields = { - __typename?: 'supply_var_pop_fields'; - height?: Maybe; +export type Subscription_RootToken_Price_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate var_samp on columns */ -export type Supply_Var_Samp_Fields = { - __typename?: 'supply_var_samp_fields'; - height?: Maybe; -}; -/** aggregate variance on columns */ -export type Supply_Variance_Fields = { - __typename?: 'supply_variance_fields'; - height?: Maybe; +export type Subscription_RootToken_Price_By_PkArgs = { + id: Scalars['Int']; }; -/** Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. */ -export type Timestamp_Comparison_Exp = { - _eq?: Maybe; - _gt?: Maybe; - _gte?: Maybe; - _in?: Maybe>; - _is_null?: Maybe; - _lt?: Maybe; - _lte?: Maybe; - _neq?: Maybe; - _nin?: Maybe>; +export type Subscription_RootToken_Price_HistoryArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** columns and relationships of "token" */ -export type Token = { - __typename?: 'token'; - name: Scalars['String']; - /** An array relationship */ - token_units: Array; - /** An aggregate relationship */ - token_units_aggregate: Token_Unit_Aggregate; + +export type Subscription_RootToken_Price_History_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** columns and relationships of "token" */ -export type TokenToken_UnitsArgs = { +export type Subscription_RootToken_UnitArgs = { distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; @@ -14419,8 +9163,7 @@ export type TokenToken_UnitsArgs = { }; -/** columns and relationships of "token" */ -export type TokenToken_Units_AggregateArgs = { +export type Subscription_RootToken_Unit_AggregateArgs = { distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; @@ -14428,1842 +9171,1801 @@ export type TokenToken_Units_AggregateArgs = { where?: Maybe; }; -/** aggregated selection of "token" */ -export type Token_Aggregate = { - __typename?: 'token_aggregate'; - aggregate?: Maybe; - nodes: Array; + +export type Subscription_RootTransactionArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate fields of "token" */ -export type Token_Aggregate_Fields = { - __typename?: 'token_aggregate_fields'; - count: Scalars['Int']; - max?: Maybe; - min?: Maybe; + +export type Subscription_RootTransaction_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate fields of "token" */ -export type Token_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +export type Subscription_RootTransaction_By_PkArgs = { + hash: Scalars['String']; }; -/** Boolean expression to filter rows from the table "token". All fields are combined with a logical 'AND'. */ -export type Token_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - name?: Maybe; - token_units?: Maybe; + +export type Subscription_RootUnbonding_DelegationArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootUnbonding_Delegation_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate max on columns */ -export type Token_Max_Fields = { - __typename?: 'token_max_fields'; - name?: Maybe; -}; -/** aggregate min on columns */ -export type Token_Min_Fields = { - __typename?: 'token_min_fields'; - name?: Maybe; +export type Subscription_RootValidatorArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** Ordering options when selecting data from "token". */ -export type Token_Order_By = { - name?: Maybe; - token_units_aggregate?: Maybe; -}; -/** columns and relationships of "token_price" */ -export type Token_Price = { - __typename?: 'token_price'; - id: Scalars['Int']; - market_cap: Scalars['bigint']; - price: Scalars['numeric']; - timestamp: Scalars['timestamp']; - /** An object relationship */ - token_unit: Token_Unit; - unit_name: Scalars['String']; +export type Subscription_RootValidator_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregated selection of "token_price" */ -export type Token_Price_Aggregate = { - __typename?: 'token_price_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; -/** aggregate fields of "token_price" */ -export type Token_Price_Aggregate_Fields = { - __typename?: 'token_price_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; +export type Subscription_RootValidator_By_PkArgs = { + consensus_address: Scalars['String']; }; -/** aggregate fields of "token_price" */ -export type Token_Price_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +export type Subscription_RootValidator_CommissionArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by aggregate values of table "token_price" */ -export type Token_Price_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; -/** aggregate avg on columns */ -export type Token_Price_Avg_Fields = { - __typename?: 'token_price_avg_fields'; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; +export type Subscription_RootValidator_Commission_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by avg() on columns of table "token_price" */ -export type Token_Price_Avg_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; -}; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - token_unit?: Maybe; - unit_name?: Maybe; +export type Subscription_RootValidator_Commission_AmountArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** 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']; -}; -/** aggregated selection of "token_price_history" */ -export type Token_Price_History_Aggregate = { - __typename?: 'token_price_history_aggregate'; - aggregate?: Maybe; - nodes: Array; +export type Subscription_RootValidator_Commission_Amount_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate fields of "token_price_history" */ -export type Token_Price_History_Aggregate_Fields = { - __typename?: 'token_price_history_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; + +export type Subscription_RootValidator_Commission_Amount_By_PkArgs = { + validator_address: Scalars['String']; }; -/** aggregate fields of "token_price_history" */ -export type Token_Price_History_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +export type Subscription_RootValidator_Commission_By_PkArgs = { + validator_address: Scalars['String']; }; -/** order by aggregate values of table "token_price_history" */ -export type Token_Price_History_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + +export type Subscription_RootValidator_DescriptionArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate avg on columns */ -export type Token_Price_History_Avg_Fields = { - __typename?: 'token_price_history_avg_fields'; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidator_Description_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by avg() on columns of table "token_price_history" */ -export type Token_Price_History_Avg_Order_By = { - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidator_Description_By_PkArgs = { + validator_address: Scalars['String']; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - token_unit?: Maybe; - unit_name?: Maybe; + +export type Subscription_RootValidator_InfoArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate max on columns */ -export type Token_Price_History_Max_Fields = { - __typename?: 'token_price_history_max_fields'; - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - unit_name?: Maybe; + +export type Subscription_RootValidator_Info_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by max() on columns of table "token_price_history" */ -export type Token_Price_History_Max_Order_By = { - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - unit_name?: Maybe; + +export type Subscription_RootValidator_Info_By_PkArgs = { + consensus_address: Scalars['String']; }; -/** aggregate min on columns */ -export type Token_Price_History_Min_Fields = { - __typename?: 'token_price_history_min_fields'; - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - unit_name?: Maybe; + +export type Subscription_RootValidator_Signing_InfoArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by min() on columns of table "token_price_history" */ -export type Token_Price_History_Min_Order_By = { - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - unit_name?: Maybe; + +export type Subscription_RootValidator_Signing_Info_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** Ordering options when selecting data from "token_price_history". */ -export type Token_Price_History_Order_By = { - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - token_unit?: Maybe; - unit_name?: Maybe; + +export type Subscription_RootValidator_Signing_Info_By_PkArgs = { + validator_address: Scalars['String']; }; -/** 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' -} -/** aggregate stddev on columns */ -export type Token_Price_History_Stddev_Fields = { - __typename?: 'token_price_history_stddev_fields'; - market_cap?: Maybe; - price?: Maybe; +export type Subscription_RootValidator_StatusArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by stddev() on columns of table "token_price_history" */ -export type Token_Price_History_Stddev_Order_By = { - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidator_Status_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Token_Price_History_Stddev_Pop_Fields = { - __typename?: 'token_price_history_stddev_pop_fields'; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidator_Status_By_PkArgs = { + validator_address: Scalars['String']; }; -/** order by stddev_pop() on columns of table "token_price_history" */ -export type Token_Price_History_Stddev_Pop_Order_By = { - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidator_Voting_PowerArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate stddev_samp on columns */ -export type Token_Price_History_Stddev_Samp_Fields = { - __typename?: 'token_price_history_stddev_samp_fields'; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidator_Voting_Power_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by stddev_samp() on columns of table "token_price_history" */ -export type Token_Price_History_Stddev_Samp_Order_By = { - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidator_Voting_Power_By_PkArgs = { + validator_address: Scalars['String']; }; -/** aggregate sum on columns */ -export type Token_Price_History_Sum_Fields = { - __typename?: 'token_price_history_sum_fields'; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootVesting_AccountArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by sum() on columns of table "token_price_history" */ -export type Token_Price_History_Sum_Order_By = { - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootVesting_Account_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate var_pop on columns */ -export type Token_Price_History_Var_Pop_Fields = { - __typename?: 'token_price_history_var_pop_fields'; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootVesting_Account_By_PkArgs = { + id: Scalars['Int']; }; -/** order by var_pop() on columns of table "token_price_history" */ -export type Token_Price_History_Var_Pop_Order_By = { - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootVesting_PeriodArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate var_samp on columns */ -export type Token_Price_History_Var_Samp_Fields = { - __typename?: 'token_price_history_var_samp_fields'; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootVesting_Period_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by var_samp() on columns of table "token_price_history" */ -export type Token_Price_History_Var_Samp_Order_By = { - market_cap?: Maybe; - price?: Maybe; +/** columns and relationships of "supply" */ +export type Supply = { + __typename?: 'supply'; + coins: Scalars['_coin']; + height: Scalars['bigint']; }; -/** aggregate variance on columns */ -export type Token_Price_History_Variance_Fields = { - __typename?: 'token_price_history_variance_fields'; - market_cap?: Maybe; - price?: Maybe; +/** aggregated selection of "supply" */ +export type Supply_Aggregate = { + __typename?: 'supply_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** order by variance() on columns of table "token_price_history" */ -export type Token_Price_History_Variance_Order_By = { - market_cap?: Maybe; - price?: Maybe; +/** aggregate fields of "supply" */ +export type Supply_Aggregate_Fields = { + __typename?: 'supply_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 max on columns */ -export type Token_Price_Max_Fields = { - __typename?: 'token_price_max_fields'; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - unit_name?: Maybe; + +/** aggregate fields of "supply" */ +export type Supply_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; -/** order by max() on columns of table "token_price" */ -export type Token_Price_Max_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - unit_name?: Maybe; +/** aggregate avg on columns */ +export type Supply_Avg_Fields = { + __typename?: 'supply_avg_fields'; + height?: Maybe; }; -/** aggregate min on columns */ -export type Token_Price_Min_Fields = { - __typename?: 'token_price_min_fields'; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - unit_name?: Maybe; +/** Boolean expression to filter rows from the table "supply". All fields are combined with a logical 'AND'. */ +export type Supply_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + coins?: Maybe<_Coin_Comparison_Exp>; + height?: Maybe; }; -/** order by min() on columns of table "token_price" */ -export type Token_Price_Min_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - unit_name?: Maybe; +/** aggregate max on columns */ +export type Supply_Max_Fields = { + __typename?: 'supply_max_fields'; + height?: Maybe; }; -/** Ordering options when selecting data from "token_price". */ -export type Token_Price_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - token_unit?: Maybe; - unit_name?: Maybe; +/** aggregate min on columns */ +export type Supply_Min_Fields = { + __typename?: 'supply_min_fields'; + height?: Maybe; }; -/** select columns of table "token_price" */ -export enum Token_Price_Select_Column { - /** column name */ - Id = 'id', - /** column name */ - MarketCap = 'market_cap', - /** column name */ - Price = 'price', +/** Ordering options when selecting data from "supply". */ +export type Supply_Order_By = { + coins?: Maybe; + height?: Maybe; +}; + +/** select columns of table "supply" */ +export enum Supply_Select_Column { /** column name */ - Timestamp = 'timestamp', + Coins = 'coins', /** column name */ - UnitName = 'unit_name' + Height = 'height' } /** aggregate stddev on columns */ -export type Token_Price_Stddev_Fields = { - __typename?: 'token_price_stddev_fields'; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; -}; - -/** order by stddev() on columns of table "token_price" */ -export type Token_Price_Stddev_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; +export type Supply_Stddev_Fields = { + __typename?: 'supply_stddev_fields'; + height?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Token_Price_Stddev_Pop_Fields = { - __typename?: 'token_price_stddev_pop_fields'; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; -}; - -/** order by stddev_pop() on columns of table "token_price" */ -export type Token_Price_Stddev_Pop_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; +export type Supply_Stddev_Pop_Fields = { + __typename?: 'supply_stddev_pop_fields'; + height?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Token_Price_Stddev_Samp_Fields = { - __typename?: 'token_price_stddev_samp_fields'; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; -}; - -/** order by stddev_samp() on columns of table "token_price" */ -export type Token_Price_Stddev_Samp_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; +export type Supply_Stddev_Samp_Fields = { + __typename?: 'supply_stddev_samp_fields'; + height?: Maybe; }; /** aggregate sum on columns */ -export type Token_Price_Sum_Fields = { - __typename?: 'token_price_sum_fields'; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; -}; - -/** order by sum() on columns of table "token_price" */ -export type Token_Price_Sum_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; +export type Supply_Sum_Fields = { + __typename?: 'supply_sum_fields'; + height?: Maybe; }; /** aggregate var_pop on columns */ -export type Token_Price_Var_Pop_Fields = { - __typename?: 'token_price_var_pop_fields'; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; -}; - -/** order by var_pop() on columns of table "token_price" */ -export type Token_Price_Var_Pop_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; +export type Supply_Var_Pop_Fields = { + __typename?: 'supply_var_pop_fields'; + height?: Maybe; }; /** aggregate var_samp on columns */ -export type Token_Price_Var_Samp_Fields = { - __typename?: 'token_price_var_samp_fields'; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; -}; - -/** order by var_samp() on columns of table "token_price" */ -export type Token_Price_Var_Samp_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; +export type Supply_Var_Samp_Fields = { + __typename?: 'supply_var_samp_fields'; + height?: Maybe; }; /** aggregate variance on columns */ -export type Token_Price_Variance_Fields = { - __typename?: 'token_price_variance_fields'; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; +export type Supply_Variance_Fields = { + __typename?: 'supply_variance_fields'; + height?: Maybe; }; -/** order by variance() on columns of table "token_price" */ -export type Token_Price_Variance_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; -}; -/** select columns of table "token" */ -export enum Token_Select_Column { - /** column name */ - Name = 'name' -} +/** Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. */ +export type Timestamp_Comparison_Exp = { + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; +}; -/** 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 aggregate relationship */ - token_price_histories_aggregate: Token_Price_History_Aggregate; +/** columns and relationships of "token" */ +export type Token = { + __typename?: 'token'; + name: Scalars['String']; /** An array relationship */ - token_prices: Array; + token_units: Array; /** An aggregate relationship */ - token_prices_aggregate: Token_Price_Aggregate; -}; - - -/** columns and relationships of "token_unit" */ -export type Token_UnitToken_Price_HistoriesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "token_unit" */ -export type Token_UnitToken_Price_Histories_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + token_units_aggregate: Token_Unit_Aggregate; }; -/** columns and relationships of "token_unit" */ -export type Token_UnitToken_PricesArgs = { - distinct_on?: Maybe>; +/** columns and relationships of "token" */ +export type TokenToken_UnitsArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** columns and relationships of "token_unit" */ -export type Token_UnitToken_Prices_AggregateArgs = { - distinct_on?: Maybe>; +/** columns and relationships of "token" */ +export type TokenToken_Units_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregated selection of "token_unit" */ -export type Token_Unit_Aggregate = { - __typename?: 'token_unit_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "token" */ +export type Token_Aggregate = { + __typename?: 'token_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "token_unit" */ -export type Token_Unit_Aggregate_Fields = { - __typename?: 'token_unit_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "token" */ +export type Token_Aggregate_Fields = { + __typename?: 'token_aggregate_fields'; 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; + max?: Maybe; + min?: Maybe; }; -/** aggregate fields of "token_unit" */ -export type Token_Unit_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "token" */ +export type Token_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "token_unit" */ -export type Token_Unit_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; +/** Boolean expression to filter rows from the table "token". All fields are combined with a logical 'AND'. */ +export type Token_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + name?: Maybe; + token_units?: Maybe; }; -/** aggregate avg on columns */ -export type Token_Unit_Avg_Fields = { - __typename?: 'token_unit_avg_fields'; - exponent?: Maybe; +/** aggregate max on columns */ +export type Token_Max_Fields = { + __typename?: 'token_max_fields'; + name?: Maybe; }; -/** order by avg() on columns of table "token_unit" */ -export type Token_Unit_Avg_Order_By = { - exponent?: Maybe; +/** aggregate min on columns */ +export type Token_Min_Fields = { + __typename?: 'token_min_fields'; + name?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - aliases?: Maybe<_Text_Comparison_Exp>; - denom?: Maybe; - exponent?: Maybe; - price_id?: Maybe; - token?: Maybe; - token_name?: Maybe; - token_price?: Maybe; - token_price_histories?: Maybe; - token_prices?: Maybe; +/** Ordering options when selecting data from "token". */ +export type Token_Order_By = { + name?: Maybe; + token_units_aggregate?: Maybe; }; -/** aggregate max on columns */ -export type Token_Unit_Max_Fields = { - __typename?: 'token_unit_max_fields'; - denom?: Maybe; - exponent?: Maybe; - price_id?: Maybe; - token_name?: Maybe; +/** columns and relationships of "token_price" */ +export type Token_Price = { + __typename?: 'token_price'; + id: Scalars['Int']; + market_cap: Scalars['bigint']; + price: Scalars['numeric']; + timestamp: Scalars['timestamp']; + /** An object relationship */ + token_unit: Token_Unit; + unit_name: Scalars['String']; }; -/** order by max() on columns of table "token_unit" */ -export type Token_Unit_Max_Order_By = { - denom?: Maybe; - exponent?: Maybe; - price_id?: Maybe; - token_name?: Maybe; +/** aggregated selection of "token_price" */ +export type Token_Price_Aggregate = { + __typename?: 'token_price_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate min on columns */ -export type Token_Unit_Min_Fields = { - __typename?: 'token_unit_min_fields'; - denom?: Maybe; - exponent?: Maybe; - price_id?: Maybe; - token_name?: Maybe; +/** aggregate fields of "token_price" */ +export type Token_Price_Aggregate_Fields = { + __typename?: 'token_price_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; }; -/** order by min() on columns of table "token_unit" */ -export type Token_Unit_Min_Order_By = { - denom?: Maybe; - exponent?: Maybe; - price_id?: Maybe; - token_name?: Maybe; + +/** aggregate fields of "token_price" */ +export type Token_Price_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; -/** Ordering options when selecting data from "token_unit". */ -export type Token_Unit_Order_By = { - aliases?: Maybe; - denom?: Maybe; - exponent?: Maybe; - price_id?: Maybe; - token?: Maybe; - token_name?: Maybe; - token_price?: Maybe; - token_price_histories_aggregate?: Maybe; - token_prices_aggregate?: Maybe; +/** order by aggregate values of table "token_price" */ +export type Token_Price_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; -/** 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' -} +/** aggregate avg on columns */ +export type Token_Price_Avg_Fields = { + __typename?: 'token_price_avg_fields'; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; +}; -/** aggregate stddev on columns */ -export type Token_Unit_Stddev_Fields = { - __typename?: 'token_unit_stddev_fields'; - exponent?: Maybe; +/** order by avg() on columns of table "token_price" */ +export type Token_Price_Avg_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; -/** order by stddev() on columns of table "token_unit" */ -export type Token_Unit_Stddev_Order_By = { - exponent?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + token_unit?: Maybe; + unit_name?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Token_Unit_Stddev_Pop_Fields = { - __typename?: 'token_unit_stddev_pop_fields'; - exponent?: Maybe; +/** 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 stddev_pop() on columns of table "token_unit" */ -export type Token_Unit_Stddev_Pop_Order_By = { - exponent?: Maybe; +/** aggregated selection of "token_price_history" */ +export type Token_Price_History_Aggregate = { + __typename?: 'token_price_history_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate stddev_samp on columns */ -export type Token_Unit_Stddev_Samp_Fields = { - __typename?: 'token_unit_stddev_samp_fields'; - exponent?: Maybe; +/** aggregate fields of "token_price_history" */ +export type Token_Price_History_Aggregate_Fields = { + __typename?: 'token_price_history_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; }; -/** order by stddev_samp() on columns of table "token_unit" */ -export type Token_Unit_Stddev_Samp_Order_By = { - exponent?: Maybe; + +/** aggregate fields of "token_price_history" */ +export type Token_Price_History_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; -/** aggregate sum on columns */ -export type Token_Unit_Sum_Fields = { - __typename?: 'token_unit_sum_fields'; - exponent?: Maybe; +/** order by aggregate values of table "token_price_history" */ +export type Token_Price_History_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; -/** order by sum() on columns of table "token_unit" */ -export type Token_Unit_Sum_Order_By = { - exponent?: Maybe; +/** aggregate avg on columns */ +export type Token_Price_History_Avg_Fields = { + __typename?: 'token_price_history_avg_fields'; + market_cap?: Maybe; + price?: Maybe; }; -/** aggregate var_pop on columns */ -export type Token_Unit_Var_Pop_Fields = { - __typename?: 'token_unit_var_pop_fields'; - exponent?: Maybe; +/** order by avg() on columns of table "token_price_history" */ +export type Token_Price_History_Avg_Order_By = { + market_cap?: Maybe; + price?: Maybe; }; -/** order by var_pop() on columns of table "token_unit" */ -export type Token_Unit_Var_Pop_Order_By = { - exponent?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + token_unit?: Maybe; + unit_name?: Maybe; }; -/** aggregate var_samp on columns */ -export type Token_Unit_Var_Samp_Fields = { - __typename?: 'token_unit_var_samp_fields'; - exponent?: Maybe; +/** aggregate max on columns */ +export type Token_Price_History_Max_Fields = { + __typename?: 'token_price_history_max_fields'; + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + unit_name?: Maybe; }; -/** order by var_samp() on columns of table "token_unit" */ -export type Token_Unit_Var_Samp_Order_By = { - exponent?: Maybe; +/** order by max() on columns of table "token_price_history" */ +export type Token_Price_History_Max_Order_By = { + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + unit_name?: Maybe; }; -/** aggregate variance on columns */ -export type Token_Unit_Variance_Fields = { - __typename?: 'token_unit_variance_fields'; - exponent?: Maybe; +/** aggregate min on columns */ +export type Token_Price_History_Min_Fields = { + __typename?: 'token_price_history_min_fields'; + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + unit_name?: Maybe; }; -/** order by variance() on columns of table "token_unit" */ -export type Token_Unit_Variance_Order_By = { - exponent?: Maybe; +/** order by min() on columns of table "token_price_history" */ +export type Token_Price_History_Min_Order_By = { + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + unit_name?: Maybe; }; -/** 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['jsonb']; - /** An array relationship */ - messagesByTransactionHash: Array; - /** An aggregate relationship */ - messagesByTransactionHash_aggregate: Message_Aggregate; - raw_log?: Maybe; - signatures: Scalars['_text']; - signer_infos: Scalars['jsonb']; - success: Scalars['Boolean']; +/** Ordering options when selecting data from "token_price_history". */ +export type Token_Price_History_Order_By = { + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + token_unit?: Maybe; + unit_name?: Maybe; }; +/** 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' +} -/** columns and relationships of "transaction" */ -export type TransactionFeeArgs = { - path?: Maybe; +/** aggregate stddev on columns */ +export type Token_Price_History_Stddev_Fields = { + __typename?: 'token_price_history_stddev_fields'; + market_cap?: Maybe; + price?: Maybe; }; - -/** columns and relationships of "transaction" */ -export type TransactionLogsArgs = { - path?: Maybe; +/** order by stddev() on columns of table "token_price_history" */ +export type Token_Price_History_Stddev_Order_By = { + market_cap?: Maybe; + price?: Maybe; }; - -/** columns and relationships of "transaction" */ -export type TransactionMessagesArgs = { - path?: Maybe; +/** aggregate stddev_pop on columns */ +export type Token_Price_History_Stddev_Pop_Fields = { + __typename?: 'token_price_history_stddev_pop_fields'; + market_cap?: Maybe; + price?: Maybe; }; - -/** columns and relationships of "transaction" */ -export type TransactionMessagesByTransactionHashArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** order by stddev_pop() on columns of table "token_price_history" */ +export type Token_Price_History_Stddev_Pop_Order_By = { + market_cap?: Maybe; + price?: Maybe; }; - -/** columns and relationships of "transaction" */ -export type TransactionMessagesByTransactionHash_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate stddev_samp on columns */ +export type Token_Price_History_Stddev_Samp_Fields = { + __typename?: 'token_price_history_stddev_samp_fields'; + market_cap?: Maybe; + price?: Maybe; }; - -/** columns and relationships of "transaction" */ -export type TransactionSigner_InfosArgs = { - path?: Maybe; +/** order by stddev_samp() on columns of table "token_price_history" */ +export type Token_Price_History_Stddev_Samp_Order_By = { + market_cap?: Maybe; + price?: Maybe; }; -/** aggregated selection of "transaction" */ -export type Transaction_Aggregate = { - __typename?: 'transaction_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregate sum on columns */ +export type Token_Price_History_Sum_Fields = { + __typename?: 'token_price_history_sum_fields'; + market_cap?: Maybe; + price?: Maybe; }; -/** aggregate fields of "transaction" */ -export type Transaction_Aggregate_Fields = { - __typename?: 'transaction_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; +/** order by sum() on columns of table "token_price_history" */ +export type Token_Price_History_Sum_Order_By = { + market_cap?: Maybe; + price?: Maybe; }; +/** aggregate var_pop on columns */ +export type Token_Price_History_Var_Pop_Fields = { + __typename?: 'token_price_history_var_pop_fields'; + market_cap?: Maybe; + price?: Maybe; +}; -/** aggregate fields of "transaction" */ -export type Transaction_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** order by var_pop() on columns of table "token_price_history" */ +export type Token_Price_History_Var_Pop_Order_By = { + market_cap?: Maybe; + price?: Maybe; }; -/** order by aggregate values of table "transaction" */ -export type Transaction_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; +/** aggregate var_samp on columns */ +export type Token_Price_History_Var_Samp_Fields = { + __typename?: 'token_price_history_var_samp_fields'; + market_cap?: Maybe; + price?: Maybe; }; -/** aggregate avg on columns */ -export type Transaction_Avg_Fields = { - __typename?: 'transaction_avg_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +/** order by var_samp() on columns of table "token_price_history" */ +export type Token_Price_History_Var_Samp_Order_By = { + market_cap?: Maybe; + price?: Maybe; }; -/** order by avg() on columns of table "transaction" */ -export type Transaction_Avg_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +/** aggregate variance on columns */ +export type Token_Price_History_Variance_Fields = { + __typename?: 'token_price_history_variance_fields'; + market_cap?: Maybe; + price?: Maybe; }; -/** Boolean expression to filter rows from the table "transaction". All fields are combined with a logical 'AND'. */ -export type Transaction_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - block?: Maybe; - fee?: Maybe; - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; - height?: Maybe; - logs?: Maybe; - memo?: Maybe; - messages?: Maybe; - messagesByTransactionHash?: Maybe; - raw_log?: Maybe; - signatures?: Maybe<_Text_Comparison_Exp>; - signer_infos?: Maybe; - success?: Maybe; +/** order by variance() on columns of table "token_price_history" */ +export type Token_Price_History_Variance_Order_By = { + market_cap?: Maybe; + price?: Maybe; }; /** aggregate max on columns */ -export type Transaction_Max_Fields = { - __typename?: 'transaction_max_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; - height?: Maybe; - memo?: Maybe; - raw_log?: Maybe; +export type Token_Price_Max_Fields = { + __typename?: 'token_price_max_fields'; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + unit_name?: Maybe; }; -/** order by max() on columns of table "transaction" */ -export type Transaction_Max_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; - height?: Maybe; - memo?: Maybe; - raw_log?: Maybe; +/** order by max() on columns of table "token_price" */ +export type Token_Price_Max_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + unit_name?: Maybe; }; /** aggregate min on columns */ -export type Transaction_Min_Fields = { - __typename?: 'transaction_min_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; - height?: Maybe; - memo?: Maybe; - raw_log?: Maybe; +export type Token_Price_Min_Fields = { + __typename?: 'token_price_min_fields'; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + unit_name?: Maybe; }; -/** order by min() on columns of table "transaction" */ -export type Transaction_Min_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; - height?: Maybe; - memo?: Maybe; - raw_log?: Maybe; +/** order by min() on columns of table "token_price" */ +export type Token_Price_Min_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + unit_name?: Maybe; }; -/** Ordering options when selecting data from "transaction". */ -export type Transaction_Order_By = { - block?: Maybe; - fee?: Maybe; - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; - height?: Maybe; - logs?: Maybe; - memo?: Maybe; - messages?: Maybe; - messagesByTransactionHash_aggregate?: Maybe; - raw_log?: Maybe; - signatures?: Maybe; - signer_infos?: Maybe; - success?: Maybe; +/** Ordering options when selecting data from "token_price". */ +export type Token_Price_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + token_unit?: Maybe; + unit_name?: Maybe; }; -/** 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', +/** select columns of table "token_price" */ +export enum Token_Price_Select_Column { /** column name */ - Messages = 'messages', + Id = 'id', /** column name */ - RawLog = 'raw_log', + MarketCap = 'market_cap', /** column name */ - Signatures = 'signatures', + Price = 'price', /** column name */ - SignerInfos = 'signer_infos', + Timestamp = 'timestamp', /** column name */ - Success = 'success' + UnitName = 'unit_name' } /** aggregate stddev on columns */ -export type Transaction_Stddev_Fields = { - __typename?: 'transaction_stddev_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +export type Token_Price_Stddev_Fields = { + __typename?: 'token_price_stddev_fields'; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; -/** order by stddev() on columns of table "transaction" */ -export type Transaction_Stddev_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +/** order by stddev() on columns of table "token_price" */ +export type Token_Price_Stddev_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Transaction_Stddev_Pop_Fields = { - __typename?: 'transaction_stddev_pop_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +export type Token_Price_Stddev_Pop_Fields = { + __typename?: 'token_price_stddev_pop_fields'; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; -/** order by stddev_pop() on columns of table "transaction" */ -export type Transaction_Stddev_Pop_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +/** order by stddev_pop() on columns of table "token_price" */ +export type Token_Price_Stddev_Pop_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Transaction_Stddev_Samp_Fields = { - __typename?: 'transaction_stddev_samp_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +export type Token_Price_Stddev_Samp_Fields = { + __typename?: 'token_price_stddev_samp_fields'; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; -/** order by stddev_samp() on columns of table "transaction" */ -export type Transaction_Stddev_Samp_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +/** order by stddev_samp() on columns of table "token_price" */ +export type Token_Price_Stddev_Samp_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; /** aggregate sum on columns */ -export type Transaction_Sum_Fields = { - __typename?: 'transaction_sum_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +export type Token_Price_Sum_Fields = { + __typename?: 'token_price_sum_fields'; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; -/** order by sum() on columns of table "transaction" */ -export type Transaction_Sum_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +/** order by sum() on columns of table "token_price" */ +export type Token_Price_Sum_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; /** aggregate var_pop on columns */ -export type Transaction_Var_Pop_Fields = { - __typename?: 'transaction_var_pop_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +export type Token_Price_Var_Pop_Fields = { + __typename?: 'token_price_var_pop_fields'; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; -/** order by var_pop() on columns of table "transaction" */ -export type Transaction_Var_Pop_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +/** order by var_pop() on columns of table "token_price" */ +export type Token_Price_Var_Pop_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; /** aggregate var_samp on columns */ -export type Transaction_Var_Samp_Fields = { - __typename?: 'transaction_var_samp_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +export type Token_Price_Var_Samp_Fields = { + __typename?: 'token_price_var_samp_fields'; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; +}; + +/** order by var_samp() on columns of table "token_price" */ +export type Token_Price_Var_Samp_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; +}; + +/** aggregate variance on columns */ +export type Token_Price_Variance_Fields = { + __typename?: 'token_price_variance_fields'; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; +}; + +/** order by variance() on columns of table "token_price" */ +export type Token_Price_Variance_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; +}; + +/** 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 aggregate relationship */ + token_price_histories_aggregate: Token_Price_History_Aggregate; + /** An array relationship */ + token_prices: Array; + /** An aggregate relationship */ + token_prices_aggregate: Token_Price_Aggregate; +}; + + +/** columns and relationships of "token_unit" */ +export type Token_UnitToken_Price_HistoriesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by var_samp() on columns of table "transaction" */ -export type Transaction_Var_Samp_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; -}; -/** aggregate variance on columns */ -export type Transaction_Variance_Fields = { - __typename?: 'transaction_variance_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +/** columns and relationships of "token_unit" */ +export type Token_UnitToken_Price_Histories_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by variance() on columns of table "transaction" */ -export type Transaction_Variance_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; + +/** columns and relationships of "token_unit" */ +export type Token_UnitToken_PricesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** columns and relationships of "unbonding_delegation" */ -export type Unbonding_Delegation = { - __typename?: 'unbonding_delegation'; - /** An object relationship */ - account: Account; - amount: Scalars['coin']; - completion_timestamp: Scalars['timestamp']; - delegator_address: Scalars['String']; - height: Scalars['bigint']; - /** An object relationship */ - validator: Validator; - validator_address: Scalars['String']; + +/** columns and relationships of "token_unit" */ +export type Token_UnitToken_Prices_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregated selection of "unbonding_delegation" */ -export type Unbonding_Delegation_Aggregate = { - __typename?: 'unbonding_delegation_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "token_unit" */ +export type Token_Unit_Aggregate = { + __typename?: 'token_unit_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "unbonding_delegation" */ -export type Unbonding_Delegation_Aggregate_Fields = { - __typename?: 'unbonding_delegation_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "token_unit" */ +export type Token_Unit_Aggregate_Fields = { + __typename?: 'token_unit_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; + 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 "unbonding_delegation" */ -export type Unbonding_Delegation_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "token_unit" */ +export type Token_Unit_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "unbonding_delegation" */ -export type Unbonding_Delegation_Aggregate_Order_By = { - avg?: Maybe; +/** order by aggregate values of table "token_unit" */ +export type Token_Unit_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate avg on columns */ -export type Unbonding_Delegation_Avg_Fields = { - __typename?: 'unbonding_delegation_avg_fields'; - height?: Maybe; +export type Token_Unit_Avg_Fields = { + __typename?: 'token_unit_avg_fields'; + exponent?: Maybe; }; -/** order by avg() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Avg_Order_By = { - height?: Maybe; +/** order by avg() on columns of table "token_unit" */ +export type Token_Unit_Avg_Order_By = { + exponent?: Maybe; }; -/** Boolean expression to filter rows from the table "unbonding_delegation". All fields are combined with a logical 'AND'. */ -export type Unbonding_Delegation_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account?: Maybe; - amount?: Maybe; - completion_timestamp?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - validator?: Maybe; - validator_address?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + aliases?: Maybe<_Text_Comparison_Exp>; + denom?: Maybe; + exponent?: Maybe; + price_id?: Maybe; + token?: Maybe; + token_name?: Maybe; + token_price?: Maybe; + token_price_histories?: Maybe; + token_prices?: Maybe; }; /** aggregate max on columns */ -export type Unbonding_Delegation_Max_Fields = { - __typename?: 'unbonding_delegation_max_fields'; - completion_timestamp?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - validator_address?: Maybe; +export type Token_Unit_Max_Fields = { + __typename?: 'token_unit_max_fields'; + denom?: Maybe; + exponent?: Maybe; + price_id?: Maybe; + token_name?: Maybe; }; -/** order by max() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Max_Order_By = { - completion_timestamp?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - validator_address?: Maybe; +/** order by max() on columns of table "token_unit" */ +export type Token_Unit_Max_Order_By = { + denom?: Maybe; + exponent?: Maybe; + price_id?: Maybe; + token_name?: Maybe; }; /** aggregate min on columns */ -export type Unbonding_Delegation_Min_Fields = { - __typename?: 'unbonding_delegation_min_fields'; - completion_timestamp?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - validator_address?: Maybe; +export type Token_Unit_Min_Fields = { + __typename?: 'token_unit_min_fields'; + denom?: Maybe; + exponent?: Maybe; + price_id?: Maybe; + token_name?: Maybe; }; -/** order by min() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Min_Order_By = { - completion_timestamp?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - validator_address?: Maybe; +/** order by min() on columns of table "token_unit" */ +export type Token_Unit_Min_Order_By = { + denom?: Maybe; + exponent?: Maybe; + price_id?: Maybe; + token_name?: Maybe; }; -/** Ordering options when selecting data from "unbonding_delegation". */ -export type Unbonding_Delegation_Order_By = { - account?: Maybe; - amount?: Maybe; - completion_timestamp?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - validator?: Maybe; - validator_address?: Maybe; +/** Ordering options when selecting data from "token_unit". */ +export type Token_Unit_Order_By = { + aliases?: Maybe; + denom?: Maybe; + exponent?: Maybe; + price_id?: Maybe; + token?: Maybe; + token_name?: Maybe; + token_price?: Maybe; + token_price_histories_aggregate?: Maybe; + token_prices_aggregate?: Maybe; }; -/** select columns of table "unbonding_delegation" */ -export enum Unbonding_Delegation_Select_Column { +/** select columns of table "token_unit" */ +export enum Token_Unit_Select_Column { /** column name */ - Amount = 'amount', + Aliases = 'aliases', /** column name */ - CompletionTimestamp = 'completion_timestamp', + Denom = 'denom', /** column name */ - DelegatorAddress = 'delegator_address', + Exponent = 'exponent', /** column name */ - Height = 'height', + PriceId = 'price_id', /** column name */ - ValidatorAddress = 'validator_address' + TokenName = 'token_name' } /** aggregate stddev on columns */ -export type Unbonding_Delegation_Stddev_Fields = { - __typename?: 'unbonding_delegation_stddev_fields'; - height?: Maybe; +export type Token_Unit_Stddev_Fields = { + __typename?: 'token_unit_stddev_fields'; + exponent?: Maybe; }; -/** order by stddev() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Stddev_Order_By = { - height?: Maybe; +/** order by stddev() on columns of table "token_unit" */ +export type Token_Unit_Stddev_Order_By = { + exponent?: Maybe; }; - -/** aggregate stddev_pop on columns */ -export type Unbonding_Delegation_Stddev_Pop_Fields = { - __typename?: 'unbonding_delegation_stddev_pop_fields'; - height?: Maybe; + +/** aggregate stddev_pop on columns */ +export type Token_Unit_Stddev_Pop_Fields = { + __typename?: 'token_unit_stddev_pop_fields'; + exponent?: Maybe; }; -/** order by stddev_pop() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Stddev_Pop_Order_By = { - height?: Maybe; +/** order by stddev_pop() on columns of table "token_unit" */ +export type Token_Unit_Stddev_Pop_Order_By = { + exponent?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Unbonding_Delegation_Stddev_Samp_Fields = { - __typename?: 'unbonding_delegation_stddev_samp_fields'; - height?: Maybe; +export type Token_Unit_Stddev_Samp_Fields = { + __typename?: 'token_unit_stddev_samp_fields'; + exponent?: Maybe; }; -/** order by stddev_samp() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Stddev_Samp_Order_By = { - height?: Maybe; +/** order by stddev_samp() on columns of table "token_unit" */ +export type Token_Unit_Stddev_Samp_Order_By = { + exponent?: Maybe; }; /** aggregate sum on columns */ -export type Unbonding_Delegation_Sum_Fields = { - __typename?: 'unbonding_delegation_sum_fields'; - height?: Maybe; +export type Token_Unit_Sum_Fields = { + __typename?: 'token_unit_sum_fields'; + exponent?: Maybe; }; -/** order by sum() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Sum_Order_By = { - height?: Maybe; +/** order by sum() on columns of table "token_unit" */ +export type Token_Unit_Sum_Order_By = { + exponent?: Maybe; }; /** aggregate var_pop on columns */ -export type Unbonding_Delegation_Var_Pop_Fields = { - __typename?: 'unbonding_delegation_var_pop_fields'; - height?: Maybe; +export type Token_Unit_Var_Pop_Fields = { + __typename?: 'token_unit_var_pop_fields'; + exponent?: Maybe; }; -/** order by var_pop() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Var_Pop_Order_By = { - height?: Maybe; +/** order by var_pop() on columns of table "token_unit" */ +export type Token_Unit_Var_Pop_Order_By = { + exponent?: Maybe; }; /** aggregate var_samp on columns */ -export type Unbonding_Delegation_Var_Samp_Fields = { - __typename?: 'unbonding_delegation_var_samp_fields'; - height?: Maybe; +export type Token_Unit_Var_Samp_Fields = { + __typename?: 'token_unit_var_samp_fields'; + exponent?: Maybe; }; -/** order by var_samp() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Var_Samp_Order_By = { - height?: Maybe; +/** order by var_samp() on columns of table "token_unit" */ +export type Token_Unit_Var_Samp_Order_By = { + exponent?: Maybe; }; /** aggregate variance on columns */ -export type Unbonding_Delegation_Variance_Fields = { - __typename?: 'unbonding_delegation_variance_fields'; - height?: Maybe; +export type Token_Unit_Variance_Fields = { + __typename?: 'token_unit_variance_fields'; + exponent?: Maybe; }; -/** order by variance() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Variance_Order_By = { - height?: Maybe; +/** order by variance() on columns of table "token_unit" */ +export type Token_Unit_Variance_Order_By = { + exponent?: Maybe; }; -/** columns and relationships of "user_block" */ -export type User_Block = { - __typename?: 'user_block'; - blocked_user_address: Scalars['String']; - blocker_address: Scalars['String']; - height: Scalars['bigint']; - /** An object relationship */ - profile: Profile; +/** columns and relationships of "transaction" */ +export type Transaction = { + __typename?: 'transaction'; /** An object relationship */ - profileByBlockerAddress: Profile; - reason?: Maybe; - subspace: Scalars['String']; + block: Block; + fee: Scalars['jsonb']; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash: Scalars['String']; + height: Scalars['bigint']; + logs?: Maybe; + memo?: Maybe; + messages: Scalars['jsonb']; + /** An array relationship */ + messagesByTransactionHash: Array; + /** An aggregate relationship */ + messagesByTransactionHash_aggregate: Message_Aggregate; + raw_log?: Maybe; + signatures: Scalars['_text']; + signer_infos: Scalars['jsonb']; + success: Scalars['Boolean']; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionFeeArgs = { + path?: Maybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionLogsArgs = { + path?: Maybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionMessagesArgs = { + path?: Maybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionMessagesByTransactionHashArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionMessagesByTransactionHash_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionSigner_InfosArgs = { + path?: Maybe; }; -/** aggregated selection of "user_block" */ -export type User_Block_Aggregate = { - __typename?: 'user_block_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "transaction" */ +export type Transaction_Aggregate = { + __typename?: 'transaction_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "user_block" */ -export type User_Block_Aggregate_Fields = { - __typename?: 'user_block_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "transaction" */ +export type Transaction_Aggregate_Fields = { + __typename?: 'transaction_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; + 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 "user_block" */ -export type User_Block_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "transaction" */ +export type Transaction_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "user_block" */ -export type User_Block_Aggregate_Order_By = { - avg?: Maybe; +/** order by aggregate values of table "transaction" */ +export type Transaction_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate avg on columns */ -export type User_Block_Avg_Fields = { - __typename?: 'user_block_avg_fields'; +export type Transaction_Avg_Fields = { + __typename?: 'transaction_avg_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; -/** order by avg() on columns of table "user_block" */ -export type User_Block_Avg_Order_By = { +/** order by avg() on columns of table "transaction" */ +export type Transaction_Avg_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; -/** Boolean expression to filter rows from the table "user_block". All fields are combined with a logical 'AND'. */ -export type User_Block_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - blocked_user_address?: Maybe; - blocker_address?: Maybe; +/** Boolean expression to filter rows from the table "transaction". All fields are combined with a logical 'AND'. */ +export type Transaction_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + block?: Maybe; + fee?: Maybe; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; height?: Maybe; - profile?: Maybe; - profileByBlockerAddress?: Maybe; - reason?: Maybe; - subspace?: Maybe; + logs?: Maybe; + memo?: Maybe; + messages?: Maybe; + messagesByTransactionHash?: Maybe; + raw_log?: Maybe; + signatures?: Maybe<_Text_Comparison_Exp>; + signer_infos?: Maybe; + success?: Maybe; }; /** aggregate max on columns */ -export type User_Block_Max_Fields = { - __typename?: 'user_block_max_fields'; - blocked_user_address?: Maybe; - blocker_address?: Maybe; +export type Transaction_Max_Fields = { + __typename?: 'transaction_max_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; height?: Maybe; - reason?: Maybe; - subspace?: Maybe; + memo?: Maybe; + raw_log?: Maybe; }; -/** order by max() on columns of table "user_block" */ -export type User_Block_Max_Order_By = { - blocked_user_address?: Maybe; - blocker_address?: Maybe; +/** order by max() on columns of table "transaction" */ +export type Transaction_Max_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; height?: Maybe; - reason?: Maybe; - subspace?: Maybe; + memo?: Maybe; + raw_log?: Maybe; }; /** aggregate min on columns */ -export type User_Block_Min_Fields = { - __typename?: 'user_block_min_fields'; - blocked_user_address?: Maybe; - blocker_address?: Maybe; +export type Transaction_Min_Fields = { + __typename?: 'transaction_min_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; height?: Maybe; - reason?: Maybe; - subspace?: Maybe; + memo?: Maybe; + raw_log?: Maybe; }; -/** order by min() on columns of table "user_block" */ -export type User_Block_Min_Order_By = { - blocked_user_address?: Maybe; - blocker_address?: Maybe; +/** order by min() on columns of table "transaction" */ +export type Transaction_Min_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; height?: Maybe; - reason?: Maybe; - subspace?: Maybe; + memo?: Maybe; + raw_log?: Maybe; }; -/** Ordering options when selecting data from "user_block". */ -export type User_Block_Order_By = { - blocked_user_address?: Maybe; - blocker_address?: Maybe; +/** Ordering options when selecting data from "transaction". */ +export type Transaction_Order_By = { + block?: Maybe; + fee?: Maybe; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; height?: Maybe; - profile?: Maybe; - profileByBlockerAddress?: Maybe; - reason?: Maybe; - subspace?: Maybe; + logs?: Maybe; + memo?: Maybe; + messages?: Maybe; + messagesByTransactionHash_aggregate?: Maybe; + raw_log?: Maybe; + signatures?: Maybe; + signer_infos?: Maybe; + success?: Maybe; }; -/** select columns of table "user_block" */ -export enum User_Block_Select_Column { +/** 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 */ - BlockedUserAddress = 'blocked_user_address', + Messages = 'messages', /** column name */ - BlockerAddress = 'blocker_address', + RawLog = 'raw_log', /** column name */ - Height = 'height', + Signatures = 'signatures', /** column name */ - Reason = 'reason', + SignerInfos = 'signer_infos', /** column name */ - Subspace = 'subspace' + Success = 'success' } /** aggregate stddev on columns */ -export type User_Block_Stddev_Fields = { - __typename?: 'user_block_stddev_fields'; +export type Transaction_Stddev_Fields = { + __typename?: 'transaction_stddev_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; -/** order by stddev() on columns of table "user_block" */ -export type User_Block_Stddev_Order_By = { +/** order by stddev() on columns of table "transaction" */ +export type Transaction_Stddev_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; /** aggregate stddev_pop on columns */ -export type User_Block_Stddev_Pop_Fields = { - __typename?: 'user_block_stddev_pop_fields'; +export type Transaction_Stddev_Pop_Fields = { + __typename?: 'transaction_stddev_pop_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; -/** order by stddev_pop() on columns of table "user_block" */ -export type User_Block_Stddev_Pop_Order_By = { +/** order by stddev_pop() on columns of table "transaction" */ +export type Transaction_Stddev_Pop_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; /** aggregate stddev_samp on columns */ -export type User_Block_Stddev_Samp_Fields = { - __typename?: 'user_block_stddev_samp_fields'; +export type Transaction_Stddev_Samp_Fields = { + __typename?: 'transaction_stddev_samp_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; -/** order by stddev_samp() on columns of table "user_block" */ -export type User_Block_Stddev_Samp_Order_By = { +/** order by stddev_samp() on columns of table "transaction" */ +export type Transaction_Stddev_Samp_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; /** aggregate sum on columns */ -export type User_Block_Sum_Fields = { - __typename?: 'user_block_sum_fields'; +export type Transaction_Sum_Fields = { + __typename?: 'transaction_sum_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; -/** order by sum() on columns of table "user_block" */ -export type User_Block_Sum_Order_By = { +/** order by sum() on columns of table "transaction" */ +export type Transaction_Sum_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; /** aggregate var_pop on columns */ -export type User_Block_Var_Pop_Fields = { - __typename?: 'user_block_var_pop_fields'; +export type Transaction_Var_Pop_Fields = { + __typename?: 'transaction_var_pop_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; -/** order by var_pop() on columns of table "user_block" */ -export type User_Block_Var_Pop_Order_By = { +/** order by var_pop() on columns of table "transaction" */ +export type Transaction_Var_Pop_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; /** aggregate var_samp on columns */ -export type User_Block_Var_Samp_Fields = { - __typename?: 'user_block_var_samp_fields'; +export type Transaction_Var_Samp_Fields = { + __typename?: 'transaction_var_samp_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; -/** order by var_samp() on columns of table "user_block" */ -export type User_Block_Var_Samp_Order_By = { +/** order by var_samp() on columns of table "transaction" */ +export type Transaction_Var_Samp_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; /** aggregate variance on columns */ -export type User_Block_Variance_Fields = { - __typename?: 'user_block_variance_fields'; +export type Transaction_Variance_Fields = { + __typename?: 'transaction_variance_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; -/** order by variance() on columns of table "user_block" */ -export type User_Block_Variance_Order_By = { +/** order by variance() on columns of table "transaction" */ +export type Transaction_Variance_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; -/** columns and relationships of "user_poll_answer" */ -export type User_Poll_Answer = { - __typename?: 'user_poll_answer'; - answer: Scalars['Int']; - answerer_address: Scalars['String']; - height: Scalars['bigint']; +/** columns and relationships of "unbonding_delegation" */ +export type Unbonding_Delegation = { + __typename?: 'unbonding_delegation'; /** An object relationship */ - poll: Poll; - poll_id: Scalars['Int']; + account: Account; + amount: Scalars['coin']; + completion_timestamp: Scalars['timestamp']; + delegator_address: Scalars['String']; + height: Scalars['bigint']; /** An object relationship */ - profile: Profile; + validator: Validator; + validator_address: Scalars['String']; }; -/** aggregated selection of "user_poll_answer" */ -export type User_Poll_Answer_Aggregate = { - __typename?: 'user_poll_answer_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "unbonding_delegation" */ +export type Unbonding_Delegation_Aggregate = { + __typename?: 'unbonding_delegation_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "user_poll_answer" */ -export type User_Poll_Answer_Aggregate_Fields = { - __typename?: 'user_poll_answer_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "unbonding_delegation" */ +export type Unbonding_Delegation_Aggregate_Fields = { + __typename?: 'unbonding_delegation_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; + 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 "user_poll_answer" */ -export type User_Poll_Answer_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "unbonding_delegation" */ +export type Unbonding_Delegation_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "user_poll_answer" */ -export type User_Poll_Answer_Aggregate_Order_By = { - avg?: Maybe; +/** order by aggregate values of table "unbonding_delegation" */ +export type Unbonding_Delegation_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate avg on columns */ -export type User_Poll_Answer_Avg_Fields = { - __typename?: 'user_poll_answer_avg_fields'; - answer?: Maybe; +export type Unbonding_Delegation_Avg_Fields = { + __typename?: 'unbonding_delegation_avg_fields'; height?: Maybe; - poll_id?: Maybe; }; -/** order by avg() on columns of table "user_poll_answer" */ -export type User_Poll_Answer_Avg_Order_By = { - answer?: Maybe; +/** order by avg() on columns of table "unbonding_delegation" */ +export type Unbonding_Delegation_Avg_Order_By = { height?: Maybe; - poll_id?: Maybe; }; -/** Boolean expression to filter rows from the table "user_poll_answer". All fields are combined with a logical 'AND'. */ -export type User_Poll_Answer_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - answer?: Maybe; - answerer_address?: Maybe; +/** Boolean expression to filter rows from the table "unbonding_delegation". All fields are combined with a logical 'AND'. */ +export type Unbonding_Delegation_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + account?: Maybe; + amount?: Maybe; + completion_timestamp?: Maybe; + delegator_address?: Maybe; height?: Maybe; - poll?: Maybe; - poll_id?: Maybe; - profile?: Maybe; + validator?: Maybe; + validator_address?: Maybe; }; /** aggregate max on columns */ -export type User_Poll_Answer_Max_Fields = { - __typename?: 'user_poll_answer_max_fields'; - answer?: Maybe; - answerer_address?: Maybe; +export type Unbonding_Delegation_Max_Fields = { + __typename?: 'unbonding_delegation_max_fields'; + completion_timestamp?: Maybe; + delegator_address?: Maybe; height?: Maybe; - poll_id?: Maybe; + validator_address?: Maybe; }; -/** order by max() on columns of table "user_poll_answer" */ -export type User_Poll_Answer_Max_Order_By = { - answer?: Maybe; - answerer_address?: Maybe; +/** order by max() on columns of table "unbonding_delegation" */ +export type Unbonding_Delegation_Max_Order_By = { + completion_timestamp?: Maybe; + delegator_address?: Maybe; height?: Maybe; - poll_id?: Maybe; + validator_address?: Maybe; }; /** aggregate min on columns */ -export type User_Poll_Answer_Min_Fields = { - __typename?: 'user_poll_answer_min_fields'; - answer?: Maybe; - answerer_address?: Maybe; +export type Unbonding_Delegation_Min_Fields = { + __typename?: 'unbonding_delegation_min_fields'; + completion_timestamp?: Maybe; + delegator_address?: Maybe; height?: Maybe; - poll_id?: Maybe; + validator_address?: Maybe; }; -/** order by min() on columns of table "user_poll_answer" */ -export type User_Poll_Answer_Min_Order_By = { - answer?: Maybe; - answerer_address?: Maybe; +/** order by min() on columns of table "unbonding_delegation" */ +export type Unbonding_Delegation_Min_Order_By = { + completion_timestamp?: Maybe; + delegator_address?: Maybe; height?: Maybe; - poll_id?: Maybe; + validator_address?: Maybe; }; -/** Ordering options when selecting data from "user_poll_answer". */ -export type User_Poll_Answer_Order_By = { - answer?: Maybe; - answerer_address?: Maybe; +/** Ordering options when selecting data from "unbonding_delegation". */ +export type Unbonding_Delegation_Order_By = { + account?: Maybe; + amount?: Maybe; + completion_timestamp?: Maybe; + delegator_address?: Maybe; height?: Maybe; - poll?: Maybe; - poll_id?: Maybe; - profile?: Maybe; + validator?: Maybe; + validator_address?: Maybe; }; -/** select columns of table "user_poll_answer" */ -export enum User_Poll_Answer_Select_Column { +/** select columns of table "unbonding_delegation" */ +export enum Unbonding_Delegation_Select_Column { + /** column name */ + Amount = 'amount', /** column name */ - Answer = 'answer', + CompletionTimestamp = 'completion_timestamp', /** column name */ - AnswererAddress = 'answerer_address', + DelegatorAddress = 'delegator_address', /** column name */ Height = 'height', /** column name */ - PollId = 'poll_id' + ValidatorAddress = 'validator_address' } /** aggregate stddev on columns */ -export type User_Poll_Answer_Stddev_Fields = { - __typename?: 'user_poll_answer_stddev_fields'; - answer?: Maybe; +export type Unbonding_Delegation_Stddev_Fields = { + __typename?: 'unbonding_delegation_stddev_fields'; height?: Maybe; - poll_id?: Maybe; }; -/** order by stddev() on columns of table "user_poll_answer" */ -export type User_Poll_Answer_Stddev_Order_By = { - answer?: Maybe; +/** order by stddev() on columns of table "unbonding_delegation" */ +export type Unbonding_Delegation_Stddev_Order_By = { height?: Maybe; - poll_id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type User_Poll_Answer_Stddev_Pop_Fields = { - __typename?: 'user_poll_answer_stddev_pop_fields'; - answer?: Maybe; +export type Unbonding_Delegation_Stddev_Pop_Fields = { + __typename?: 'unbonding_delegation_stddev_pop_fields'; height?: Maybe; - poll_id?: Maybe; }; -/** order by stddev_pop() on columns of table "user_poll_answer" */ -export type User_Poll_Answer_Stddev_Pop_Order_By = { - answer?: Maybe; +/** order by stddev_pop() on columns of table "unbonding_delegation" */ +export type Unbonding_Delegation_Stddev_Pop_Order_By = { height?: Maybe; - poll_id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type User_Poll_Answer_Stddev_Samp_Fields = { - __typename?: 'user_poll_answer_stddev_samp_fields'; - answer?: Maybe; +export type Unbonding_Delegation_Stddev_Samp_Fields = { + __typename?: 'unbonding_delegation_stddev_samp_fields'; height?: Maybe; - poll_id?: Maybe; }; -/** order by stddev_samp() on columns of table "user_poll_answer" */ -export type User_Poll_Answer_Stddev_Samp_Order_By = { - answer?: Maybe; +/** order by stddev_samp() on columns of table "unbonding_delegation" */ +export type Unbonding_Delegation_Stddev_Samp_Order_By = { height?: Maybe; - poll_id?: Maybe; }; /** aggregate sum on columns */ -export type User_Poll_Answer_Sum_Fields = { - __typename?: 'user_poll_answer_sum_fields'; - answer?: Maybe; +export type Unbonding_Delegation_Sum_Fields = { + __typename?: 'unbonding_delegation_sum_fields'; height?: Maybe; - poll_id?: Maybe; }; -/** order by sum() on columns of table "user_poll_answer" */ -export type User_Poll_Answer_Sum_Order_By = { - answer?: Maybe; +/** order by sum() on columns of table "unbonding_delegation" */ +export type Unbonding_Delegation_Sum_Order_By = { height?: Maybe; - poll_id?: Maybe; }; /** aggregate var_pop on columns */ -export type User_Poll_Answer_Var_Pop_Fields = { - __typename?: 'user_poll_answer_var_pop_fields'; - answer?: Maybe; +export type Unbonding_Delegation_Var_Pop_Fields = { + __typename?: 'unbonding_delegation_var_pop_fields'; height?: Maybe; - poll_id?: Maybe; }; -/** order by var_pop() on columns of table "user_poll_answer" */ -export type User_Poll_Answer_Var_Pop_Order_By = { - answer?: Maybe; +/** order by var_pop() on columns of table "unbonding_delegation" */ +export type Unbonding_Delegation_Var_Pop_Order_By = { height?: Maybe; - poll_id?: Maybe; }; /** aggregate var_samp on columns */ -export type User_Poll_Answer_Var_Samp_Fields = { - __typename?: 'user_poll_answer_var_samp_fields'; - answer?: Maybe; +export type Unbonding_Delegation_Var_Samp_Fields = { + __typename?: 'unbonding_delegation_var_samp_fields'; height?: Maybe; - poll_id?: Maybe; }; -/** order by var_samp() on columns of table "user_poll_answer" */ -export type User_Poll_Answer_Var_Samp_Order_By = { - answer?: Maybe; +/** order by var_samp() on columns of table "unbonding_delegation" */ +export type Unbonding_Delegation_Var_Samp_Order_By = { height?: Maybe; - poll_id?: Maybe; }; /** aggregate variance on columns */ -export type User_Poll_Answer_Variance_Fields = { - __typename?: 'user_poll_answer_variance_fields'; - answer?: Maybe; +export type Unbonding_Delegation_Variance_Fields = { + __typename?: 'unbonding_delegation_variance_fields'; height?: Maybe; - poll_id?: Maybe; }; -/** order by variance() on columns of table "user_poll_answer" */ -export type User_Poll_Answer_Variance_Order_By = { - answer?: Maybe; +/** order by variance() on columns of table "unbonding_delegation" */ +export type Unbonding_Delegation_Variance_Order_By = { height?: Maybe; - poll_id?: Maybe; }; /** columns and relationships of "validator" */ @@ -17389,7 +12091,6 @@ export type Validator_Info = { /** An object relationship */ account?: Maybe; consensus_address: Scalars['String']; - height: Scalars['bigint']; max_change_rate: Scalars['String']; max_rate: Scalars['String']; operator_address: Scalars['String']; @@ -17408,17 +12109,9 @@ export type Validator_Info_Aggregate = { /** aggregate fields of "validator_info" */ export type Validator_Info_Aggregate_Fields = { __typename?: 'validator_info_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; }; @@ -17430,28 +12123,9 @@ export type Validator_Info_Aggregate_FieldsCountArgs = { /** order by aggregate values of table "validator_info" */ export type Validator_Info_Aggregate_Order_By = { - avg?: Maybe; count?: Maybe; max?: Maybe; min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Validator_Info_Avg_Fields = { - __typename?: 'validator_info_avg_fields'; - height?: Maybe; -}; - -/** order by avg() on columns of table "validator_info" */ -export type Validator_Info_Avg_Order_By = { - height?: Maybe; }; /** Boolean expression to filter rows from the table "validator_info". All fields are combined with a logical 'AND'. */ @@ -17461,7 +12135,6 @@ export type Validator_Info_Bool_Exp = { _or?: Maybe>; account?: Maybe; consensus_address?: Maybe; - height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -17473,7 +12146,6 @@ export type Validator_Info_Bool_Exp = { export type Validator_Info_Max_Fields = { __typename?: 'validator_info_max_fields'; consensus_address?: Maybe; - height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -17483,7 +12155,6 @@ export type Validator_Info_Max_Fields = { /** order by max() on columns of table "validator_info" */ export type Validator_Info_Max_Order_By = { consensus_address?: Maybe; - height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -17494,7 +12165,6 @@ export type Validator_Info_Max_Order_By = { export type Validator_Info_Min_Fields = { __typename?: 'validator_info_min_fields'; consensus_address?: Maybe; - height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -17504,7 +12174,6 @@ export type Validator_Info_Min_Fields = { /** order by min() on columns of table "validator_info" */ export type Validator_Info_Min_Order_By = { consensus_address?: Maybe; - height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -17515,7 +12184,6 @@ export type Validator_Info_Min_Order_By = { export type Validator_Info_Order_By = { account?: Maybe; consensus_address?: Maybe; - height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -17528,93 +12196,14 @@ export enum Validator_Info_Select_Column { /** column name */ ConsensusAddress = 'consensus_address', /** column name */ - Height = 'height', - /** column name */ - MaxChangeRate = 'max_change_rate', - /** column name */ - MaxRate = 'max_rate', - /** column name */ - OperatorAddress = 'operator_address', - /** column name */ - SelfDelegateAddress = 'self_delegate_address' -} - -/** aggregate stddev on columns */ -export type Validator_Info_Stddev_Fields = { - __typename?: 'validator_info_stddev_fields'; - height?: Maybe; -}; - -/** order by stddev() on columns of table "validator_info" */ -export type Validator_Info_Stddev_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Validator_Info_Stddev_Pop_Fields = { - __typename?: 'validator_info_stddev_pop_fields'; - height?: Maybe; -}; - -/** order by stddev_pop() on columns of table "validator_info" */ -export type Validator_Info_Stddev_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Validator_Info_Stddev_Samp_Fields = { - __typename?: 'validator_info_stddev_samp_fields'; - height?: Maybe; -}; - -/** order by stddev_samp() on columns of table "validator_info" */ -export type Validator_Info_Stddev_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Validator_Info_Sum_Fields = { - __typename?: 'validator_info_sum_fields'; - height?: Maybe; -}; - -/** order by sum() on columns of table "validator_info" */ -export type Validator_Info_Sum_Order_By = { - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Validator_Info_Var_Pop_Fields = { - __typename?: 'validator_info_var_pop_fields'; - height?: Maybe; -}; - -/** order by var_pop() on columns of table "validator_info" */ -export type Validator_Info_Var_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Validator_Info_Var_Samp_Fields = { - __typename?: 'validator_info_var_samp_fields'; - height?: Maybe; -}; - -/** order by var_samp() on columns of table "validator_info" */ -export type Validator_Info_Var_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Validator_Info_Variance_Fields = { - __typename?: 'validator_info_variance_fields'; - height?: Maybe; -}; - -/** order by variance() on columns of table "validator_info" */ -export type Validator_Info_Variance_Order_By = { - height?: Maybe; -}; + MaxChangeRate = 'max_change_rate', + /** column name */ + MaxRate = 'max_rate', + /** column name */ + OperatorAddress = 'operator_address', + /** column name */ + SelfDelegateAddress = 'self_delegate_address' +} /** aggregate max on columns */ export type Validator_Max_Fields = { @@ -17641,6 +12230,7 @@ export type Validator_Order_By = { pre_commits_aggregate?: Maybe; redelegationsByDstValidatorAddress_aggregate?: Maybe; redelegationsBySrcValidatorAddress_aggregate?: Maybe; + self_delegations_aggregate?: Maybe; unbonding_delegations_aggregate?: Maybe; validator_commission_amounts_aggregate?: Maybe; validator_commissions_aggregate?: Maybe; @@ -18802,75 +13392,67 @@ export type Vesting_Period_Variance_Order_By = { }; export type AccountQueryVariables = Exact<{ - address?: Maybe; - utc?: Maybe; + address: Scalars['String']; + validatorAddress: Scalars['String']; }>; -export type AccountQuery = { stakingParams: Array<( - { __typename?: 'staking_params' } - & Pick - )>, account: Array<( - { __typename?: 'account' } - & Pick - & { accountBalances: Array<( - { __typename?: 'account_balance' } - & Pick - )>, delegations: Array<( - { __typename?: 'delegation' } - & Pick - & { validator: ( - { __typename?: 'validator' } - & { validatorInfo?: Maybe<( - { __typename?: 'validator_info' } - & { operatorAddress: Validator_Info['operator_address'] } - )>, validatorCommissions: Array<( - { __typename?: 'validator_commission' } - & Pick - )>, validatorStatuses: Array<( - { __typename?: 'validator_status' } - & Pick - )>, validatorSigningInfos: Array<( - { __typename?: 'validator_signing_info' } - & Pick - )> } - ) } - )>, unbonding: Array<( - { __typename?: 'unbonding_delegation' } - & Pick - & { completionTimestamp: Unbonding_Delegation['completion_timestamp'] } - & { validator: ( - { __typename?: 'validator' } - & { validatorCommissions: Array<( - { __typename?: 'validator_commission' } - & Pick - )>, validatorInfo?: Maybe<( - { __typename?: 'validator_info' } - & { operatorAddress: Validator_Info['operator_address'] } - )> } - ) } - )>, redelegations: Array<( - { __typename?: 'redelegation' } - & Pick - & { completionTime: Redelegation['completion_time'], from: Redelegation['src_validator_address'], to: Redelegation['dst_validator_address'] } - )>, delegationRewards: Array<( - { __typename?: 'delegation_reward' } - & Pick - & { withdrawAddress: Delegation_Reward['withdraw_address'] } - & { validator: ( - { __typename?: 'validator' } - & { validatorInfo?: Maybe<( - { __typename?: 'validator_info' } - & { operatorAddress: Validator_Info['operator_address'] } - )> } - ) } - )> } - )>, validator: Array<( - { __typename?: 'validator' } - & { commission: Array<( - { __typename?: 'validator_commission_amount' } - & Pick - )> } +export type AccountQuery = { commission?: Maybe<( + { __typename?: 'ActionValidatorCommissionAmount' } + & Pick + )>, withdrawalAddress: ( + { __typename?: 'ActionAddress' } + & Pick + ), accountBalances?: Maybe<( + { __typename?: 'ActionBalance' } + & Pick + )>, delegationBalance?: Maybe<( + { __typename?: 'ActionBalance' } + & Pick + )>, unbondingBalance?: Maybe<( + { __typename?: 'ActionBalance' } + & Pick + )>, delegationRewards?: Maybe + & { validatorAddress: ActionDelegationReward['validator_address'] } + )>>> }; + +export type AccountDelegationsQueryVariables = Exact<{ + address: Scalars['String']; + offset?: Maybe; + limit?: Maybe; +}>; + + +export type AccountDelegationsQuery = { delegations?: Maybe<( + { __typename?: 'ActionDelegationResponse' } + & Pick + )> }; + +export type AccountRedelegationsQueryVariables = Exact<{ + address: Scalars['String']; + offset?: Maybe; + limit?: Maybe; +}>; + + +export type AccountRedelegationsQuery = { redelegations?: Maybe<( + { __typename?: 'ActionRedelegationResponse' } + & Pick + )> }; + +export type AccountUndelegationsQueryVariables = Exact<{ + address: Scalars['String']; + offset?: Maybe; + limit?: Maybe; +}>; + + +export type AccountUndelegationsQuery = { undelegations?: Maybe<( + { __typename?: 'ActionUnbondingDelegationResponse' } + & Pick + & { undelegations: ActionUnbondingDelegationResponse['unbonding_delegations'] } )> }; export type ActiveValidatorCountQueryVariables = Exact<{ [key: string]: never; }>; @@ -19279,7 +13861,6 @@ export type ValidatorLastSeenListenerSubscription = { preCommit: Array<( export type ValidatorDetailsQueryVariables = Exact<{ address?: Maybe; - utc?: Maybe; }>; @@ -19309,28 +13890,49 @@ export type ValidatorDetailsQuery = { stakingPool: Array<( { __typename?: 'validator_voting_power' } & Pick & { votingPower: Validator_Voting_Power['voting_power'] } - )>, delegations: Array<( - { __typename?: 'delegation' } - & Pick - & { delegatorAddress: Delegation['delegator_address'] } - )>, redelegationsByDstValidatorAddress: Array<( - { __typename?: 'redelegation' } - & Pick - & { completionTime: Redelegation['completion_time'], from: Redelegation['src_validator_address'], to: Redelegation['dst_validator_address'], delegatorAddress: Redelegation['delegator_address'] } - )>, redelegationsBySrcValidatorAddress: Array<( - { __typename?: 'redelegation' } - & Pick - & { completionTime: Redelegation['completion_time'], from: Redelegation['src_validator_address'], to: Redelegation['dst_validator_address'], delegatorAddress: Redelegation['delegator_address'] } - )>, unbonding: Array<( - { __typename?: 'unbonding_delegation' } - & Pick - & { completionTimestamp: Unbonding_Delegation['completion_timestamp'], delegatorAddress: Unbonding_Delegation['delegator_address'] } )> } )>, slashingParams: Array<( { __typename?: 'slashing_params' } & Pick )> }; +export type ValidatorDelegationsQueryVariables = Exact<{ + validatorAddress: Scalars['String']; + offset?: Maybe; + limit?: Maybe; +}>; + + +export type ValidatorDelegationsQuery = { delegations?: Maybe<( + { __typename?: 'ActionDelegationResponse' } + & Pick + )> }; + +export type ValidatorRedelegationsQueryVariables = Exact<{ + validatorAddress: Scalars['String']; + offset?: Maybe; + limit?: Maybe; +}>; + + +export type ValidatorRedelegationsQuery = { redelegations?: Maybe<( + { __typename?: 'ActionRedelegationResponse' } + & Pick + )> }; + +export type ValidatorUndelegationsQueryVariables = Exact<{ + validatorAddress: Scalars['String']; + offset?: Maybe; + limit?: Maybe; +}>; + + +export type ValidatorUndelegationsQuery = { undelegations?: Maybe<( + { __typename?: 'ActionUnbondingDelegationResponse' } + & Pick + & { undelegations: ActionUnbondingDelegationResponse['unbonding_delegations'] } + )> }; + export type ValidatorsQueryVariables = Exact<{ [key: string]: never; }>; @@ -19355,10 +13957,6 @@ export type ValidatorsQuery = { stakingPool: Array<( )>, validatorCommissions: Array<( { __typename?: 'validator_commission' } & Pick - )>, delegations: Array<( - { __typename?: 'delegation' } - & Pick - & { delegatorAddress: Delegation['delegator_address'] } )> } )>, slashingParams: Array<( { __typename?: 'slashing_params' } @@ -19397,71 +13995,25 @@ export type ValidatorAddressesQuery = { validator: Array<( export const AccountDocument = gql` - query Account($address: String, $utc: timestamp) { - stakingParams: staking_params(limit: 1) { - params + query Account($address: String!, $validatorAddress: String!) { + commission: action_validator_commission_amount(address: $validatorAddress) { + coins } - account(where: {address: {_eq: $address}}) { + withdrawalAddress: action_delegator_withdraw_address(address: $address) { address - accountBalances: account_balances(limit: 1, order_by: {height: desc}) { - coins - } - delegations { - amount - validator { - validatorInfo: validator_info { - operatorAddress: operator_address - } - validatorCommissions: validator_commissions(limit: 1, order_by: {height: desc}) { - commission - } - validatorStatuses: validator_statuses(limit: 1, order_by: {height: desc}) { - status - jailed - } - validatorSigningInfos: validator_signing_infos( - order_by: {height: desc} - limit: 1 - ) { - tombstoned - } - } - } - unbonding: unbonding_delegations(where: {completion_timestamp: {_gt: $utc}}) { - amount - completionTimestamp: completion_timestamp - validator { - validatorCommissions: validator_commissions(limit: 1, order_by: {height: desc}) { - commission - } - validatorInfo: validator_info { - operatorAddress: operator_address - } - } - } - redelegations(where: {completion_time: {_gt: $utc}}) { - amount - completionTime: completion_time - from: src_validator_address - to: dst_validator_address - } - delegationRewards: delegation_rewards { - amount - withdrawAddress: withdraw_address - validator { - validatorInfo: validator_info { - operatorAddress: operator_address - } - } - } } - validator: validator( - limit: 1 - where: {validator_info: {self_delegate_address: {_eq: $address}}} - ) { - commission: validator_commission_amounts(limit: 1, order_by: {height: desc}) { - amount - } + accountBalances: action_account_balance(address: $address) { + coins + } + delegationBalance: action_delegation_total(address: $address) { + coins + } + unbondingBalance: action_unbonding_delegation_total(address: $address) { + coins + } + delegationRewards: action_delegation_reward(address: $address) { + validatorAddress: validator_address + coins } } `; @@ -19479,11 +14031,11 @@ export const AccountDocument = gql` * const { data, loading, error } = useAccountQuery({ * variables: { * address: // value for 'address' - * utc: // value for 'utc' + * validatorAddress: // value for 'validatorAddress' * }, * }); */ -export function useAccountQuery(baseOptions?: Apollo.QueryHookOptions) { +export function useAccountQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(AccountDocument, options); } @@ -19494,6 +14046,135 @@ export function useAccountLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions; export type AccountLazyQueryHookResult = ReturnType; export type AccountQueryResult = Apollo.QueryResult; +export const AccountDelegationsDocument = gql` + query AccountDelegations($address: String!, $offset: Int = 0, $limit: Int = 10) { + delegations: action_delegation( + address: $address + limit: $limit + offset: $offset + count_total: true + ) { + 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' + * }, + * }); + */ +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) { + redelegations: action_redelegation( + address: $address + limit: $limit + offset: $offset + count_total: true + ) { + 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' + * }, + * }); + */ +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) { + undelegations: action_unbonding_delegation( + address: $address + limit: $limit + offset: $offset + count_total: true + ) { + 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' + * }, + * }); + */ +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}}) { @@ -20496,7 +15177,7 @@ export function useValidatorLastSeenListenerSubscription(baseOptions?: Apollo.Su export type ValidatorLastSeenListenerSubscriptionHookResult = ReturnType; export type ValidatorLastSeenListenerSubscriptionResult = Apollo.SubscriptionResult; export const ValidatorDetailsDocument = gql` - query ValidatorDetails($address: String, $utc: timestamp) { + query ValidatorDetails($address: String) { stakingPool: staking_pool(order_by: {height: desc}, limit: 1, offset: 0) { height bonded: bonded_tokens @@ -20536,29 +15217,6 @@ export const ValidatorDetailsDocument = gql` height votingPower: voting_power } - delegations { - amount - delegatorAddress: delegator_address - } - redelegationsByDstValidatorAddress(where: {completion_time: {_gt: $utc}}) { - amount - completionTime: completion_time - from: src_validator_address - to: dst_validator_address - delegatorAddress: delegator_address - } - redelegationsBySrcValidatorAddress(where: {completion_time: {_gt: $utc}}) { - amount - completionTime: completion_time - from: src_validator_address - to: dst_validator_address - delegatorAddress: delegator_address - } - unbonding: unbonding_delegations(where: {completion_timestamp: {_gt: $utc}}) { - amount - completionTimestamp: completion_timestamp - delegatorAddress: delegator_address - } } slashingParams: slashing_params(order_by: {height: desc}, limit: 1) { params @@ -20579,7 +15237,6 @@ export const ValidatorDetailsDocument = gql` * const { data, loading, error } = useValidatorDetailsQuery({ * variables: { * address: // value for 'address' - * utc: // value for 'utc' * }, * }); */ @@ -20594,6 +15251,135 @@ export function useValidatorDetailsLazyQuery(baseOptions?: Apollo.LazyQueryHookO 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) { + delegations: action_validator_delegations( + address: $validatorAddress + limit: $limit + offset: $offset + count_total: true + ) { + 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' + * }, + * }); + */ +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) { + redelegations: action_validator_redelegations_from( + address: $validatorAddress + limit: $limit + offset: $offset + count_total: true + ) { + 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' + * }, + * }); + */ +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) { + undelegations: action_validator_unbonding_delegations( + address: $validatorAddress + limit: $limit + offset: $offset + count_total: true + ) { + 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' + * }, + * }); + */ +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}) { @@ -20626,10 +15412,6 @@ export const ValidatorsDocument = gql` validatorCommissions: validator_commissions(order_by: {height: desc}, limit: 1) { commission } - delegations { - amount - delegatorAddress: delegator_address - } validatorSigningInfos: validator_signing_infos( order_by: {height: desc} limit: 1 diff --git a/src/graphql/validator_details.graphql b/src/graphql/validator_details.graphql index 42576c8b0e..94b5470c53 100644 --- a/src/graphql/validator_details.graphql +++ b/src/graphql/validator_details.graphql @@ -23,8 +23,7 @@ subscription ValidatorLastSeenListener($address: String) { } } - -query ValidatorDetails($address: String, $utc: timestamp) { +query ValidatorDetails($address: String) { stakingPool: staking_pool(order_by: {height: desc}, limit: 1, offset: 0) { height bonded: bonded_tokens @@ -54,32 +53,29 @@ query ValidatorDetails($address: String, $utc: timestamp) { height votingPower: voting_power } - delegations { - amount - delegatorAddress: delegator_address - } - redelegationsByDstValidatorAddress(where: {completion_time: {_gt: $utc}}) { - amount - completionTime: completion_time - from: src_validator_address - to: dst_validator_address - delegatorAddress: delegator_address - } - redelegationsBySrcValidatorAddress(where: {completion_time: {_gt: $utc}}) { - amount - completionTime: completion_time - from: src_validator_address - to: dst_validator_address - delegatorAddress: delegator_address - } - unbonding: unbonding_delegations(where: {completion_timestamp: {_gt: $utc}}) { - amount - completionTimestamp: completion_timestamp - delegatorAddress: delegator_address - } } slashingParams: slashing_params(order_by: {height: desc}, limit: 1) { params } } +query ValidatorDelegations($validatorAddress: String!, $offset: Int = 0, $limit: Int = 10) { + delegations: action_validator_delegations(address: $validatorAddress, limit: $limit, offset: $offset, count_total: true){ + delegations + pagination + } +} + +query ValidatorRedelegations($validatorAddress: String!, $offset: Int = 0, $limit: Int = 10) { + redelegations: action_validator_redelegations_from(address: $validatorAddress, limit: $limit, offset: $offset, count_total: true){ + redelegations + pagination + } +} + +query ValidatorUndelegations($validatorAddress: String!, $offset: Int = 0, $limit: Int = 10) { + undelegations: action_validator_unbonding_delegations(address: $validatorAddress, limit: $limit, offset: $offset, count_total: true){ + undelegations: unbonding_delegations + pagination + } +} diff --git a/src/graphql/validators.graphql b/src/graphql/validators.graphql index 8ff7c5eefa..20f3b19335 100644 --- a/src/graphql/validators.graphql +++ b/src/graphql/validators.graphql @@ -22,10 +22,6 @@ query Validators { validatorCommissions: validator_commissions(order_by: {height: desc}, limit: 1) { commission } - delegations { - amount - delegatorAddress: delegator_address - } validatorSigningInfos: validator_signing_infos(order_by: {height: desc}, limit: 1) { missedBlocksCounter: missed_blocks_counter } diff --git a/src/screens/account_details/__snapshots__/index.test.tsx.snap b/src/screens/account_details/__snapshots__/index.test.tsx.snap index 35b7096003..e8750651e7 100644 --- a/src/screens/account_details/__snapshots__/index.test.tsx.snap +++ b/src/screens/account_details/__snapshots__/index.test.tsx.snap @@ -30,10 +30,10 @@ exports[`screen: BlockDetails matches snapshot 1`] = ` nickname="" />
diff --git a/src/screens/account_details/components/staking/components/delegations/components/desktop/index.tsx b/src/screens/account_details/components/staking/components/delegations/components/desktop/index.tsx index 606455fae2..83144c7ff5 100644 --- a/src/screens/account_details/components/staking/components/delegations/components/desktop/index.tsx +++ b/src/screens/account_details/components/staking/components/delegations/components/desktop/index.tsx @@ -1,6 +1,5 @@ import React from 'react'; import classnames from 'classnames'; -import numeral from 'numeral'; import useTranslation from 'next-translate/useTranslation'; import { Table, @@ -12,9 +11,7 @@ import { import { AvatarName, } from '@components'; -import { getValidatorStatus } from '@utils/get_validator_status'; import { formatNumber } from '@utils/format_token'; -import { useStyles } from './styles'; import { columns } from './utils'; import { ItemType } from '../../types'; @@ -26,15 +23,9 @@ const Desktop: React.FC<{ items, }) => { const { t } = useTranslation('accounts'); - const classes = useStyles(); const formattedItems = items.map((x) => { const amount = formatNumber(x.amount.value, x.amount.exponent); const reward = formatNumber(x.reward.value, x.reward.exponent); - const statusTheme = getValidatorStatus( - x.validatorStatus.status, - x.validatorStatus.jailed, - x.validatorSigningInfo.tombstoned, - ); return ({ validator: ( ), - status: ( - - {t(`validators:${statusTheme.status}`)} - - ), - commission: `${numeral(x.commission * 100).format('0.00')}%`, amount: `${amount} ${x.amount.displayDenom.toUpperCase()}`, reward: `${reward} ${x.reward.displayDenom.toUpperCase()}`, }); diff --git a/src/screens/account_details/components/staking/components/delegations/components/desktop/styles.ts b/src/screens/account_details/components/staking/components/delegations/components/desktop/styles.ts deleted file mode 100644 index 57ab15488b..0000000000 --- a/src/screens/account_details/components/staking/components/delegations/components/desktop/styles.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { makeStyles } from '@material-ui/core/styles'; - -export const useStyles = () => { - const styles = makeStyles( - (theme) => { - return ({ - status: { - color: theme.palette.custom.fonts.fontTwo, - '&.unknown': { - color: theme.palette.custom.condition.zero, - }, - '&.unbonded': { - color: theme.palette.custom.condition.zero, - }, - '&.active': { - color: theme.palette.custom.condition.one, - }, - '&.jailed': { - color: theme.palette.custom.condition.two, - }, - '&.unbonding': { - color: theme.palette.custom.condition.three, - }, - - }, - }); - }, - )(); - - return styles; -}; diff --git a/src/screens/account_details/components/staking/components/delegations/components/desktop/utils.ts b/src/screens/account_details/components/staking/components/delegations/components/desktop/utils.ts index c1865fb4d4..2c99c5300b 100644 --- a/src/screens/account_details/components/staking/components/delegations/components/desktop/utils.ts +++ b/src/screens/account_details/components/staking/components/delegations/components/desktop/utils.ts @@ -7,15 +7,6 @@ export const columns:{ key: 'validator', width: 25, }, - { - key: 'status', - width: 15, - }, - { - key: 'commission', - width: 10, - align: 'right', - }, { key: 'amount', width: 25, diff --git a/src/screens/account_details/components/staking/components/delegations/components/mobile/index.tsx b/src/screens/account_details/components/staking/components/delegations/components/mobile/index.tsx index 05614f9d54..6b8f677e0f 100644 --- a/src/screens/account_details/components/staking/components/delegations/components/mobile/index.tsx +++ b/src/screens/account_details/components/staking/components/delegations/components/mobile/index.tsx @@ -1,12 +1,10 @@ import React from 'react'; import classnames from 'classnames'; import useTranslation from 'next-translate/useTranslation'; -import numeral from 'numeral'; import { Divider, Typography, } from '@material-ui/core'; -import { getValidatorStatus } from '@utils/get_validator_status'; import { AvatarName } from '@components'; import { formatNumber } from '@utils/format_token'; import { useStyles } from './styles'; @@ -24,11 +22,6 @@ const Mobile: React.FC<{ return (
{items.map((x, i) => { - const statusTheme = getValidatorStatus( - x.validatorStatus.status, - x.validatorStatus.jailed, - x.validatorSigningInfo.tombstoned, - ); return (
@@ -42,42 +35,27 @@ const Mobile: React.FC<{ imageUrl={x.validator.imageUrl} />
-
- - {t('validators:status')} - - - {t(`validators:${statusTheme.status}`)} - -
-
- - {t('commission')} - - - {numeral(x.commission * 100).format('0.00')} - % - -
-
- - {t('amount')} - - - {formatNumber(x.amount.value, x.amount.exponent)} - {' '} - {x.amount.displayDenom.toUpperCase()} - -
-
- - {t('reward')} - - - {formatNumber(x.reward.value, x.reward.exponent)} - {' '} - {x.reward.displayDenom.toUpperCase()} - +
+
+ + {t('amount')} + + + {formatNumber(x.amount.value, x.amount.exponent)} + {' '} + {x.amount.displayDenom.toUpperCase()} + +
+
+ + {t('reward')} + + + {formatNumber(x.reward.value, x.reward.exponent)} + {' '} + {x.reward.displayDenom.toUpperCase()} + +
{i !== items.length - 1 && } diff --git a/src/screens/account_details/components/staking/components/delegations/index.tsx b/src/screens/account_details/components/staking/components/delegations/index.tsx index 3e7f26f8da..5ebe295aba 100644 --- a/src/screens/account_details/components/staking/components/delegations/index.tsx +++ b/src/screens/account_details/components/staking/components/delegations/index.tsx @@ -1,4 +1,5 @@ import React from 'react'; +import * as R from 'ramda'; import classnames from 'classnames'; import dynamic from 'next/dynamic'; import { @@ -6,26 +7,23 @@ import { useScreenSize, } from '@hooks'; import { - Pagination, NoData, + Pagination, + NoData, + Loading, } from '@components'; import { useProfilesRecoil, } from '@recoil/profiles'; import { useStyles } from './styles'; -import { DelegationType } from '../../../../types'; +import { DelegationsType } from '../../types'; const Desktop = dynamic(() => import('./components/desktop')); const Mobile = dynamic(() => import('./components/mobile')); const Delegations: React.FC<{ - className?: string; - data: DelegationType[]; - count: number; -}> = ({ - className, - data, - count, -}) => { + delegations: DelegationsType, + handlePageCallback: (page: number, _rowsPerPage: number) => void; +} & ComponentDefault> = (props) => { const { isDesktop } = useScreenSize(); const classes = useStyles(); const { @@ -33,40 +31,45 @@ const Delegations: React.FC<{ rowsPerPage, handleChangePage, handleChangeRowsPerPage, - sliceItems, - } = usePagination({}); + } = usePagination({ + pageChangeCallback: props.handlePageCallback, + }); + + const pageItems = R.pathOr([], ['delegations', 'data', page], props); + + const dataProfiles = useProfilesRecoil(pageItems.map((x) => x.validator)); - const dataProfiles = useProfilesRecoil(data.map((x) => x.validator)); - const mergedDataWithProfiles = data.map((x, i) => { + const mergedDataWithProfiles = pageItems.map((x, i) => { return ({ ...x, validator: dataProfiles[i], }); }); - const items = sliceItems(mergedDataWithProfiles); + const items = mergedDataWithProfiles; + + let component = null; + + if (props.delegations.loading) { + component = ; + } else if (!items.length) { + component = ; + } else if (isDesktop) { + component = ; + } else { + component = ; + } return ( -
- {items.length ? ( - <> - {isDesktop ? ( - - ) : ( - - )} - - ) : ( - - )} +
+ {component}
); diff --git a/src/screens/account_details/components/staking/components/delegations/types.ts b/src/screens/account_details/components/staking/components/delegations/types.ts index c6aff2eb50..874dc2e48d 100644 --- a/src/screens/account_details/components/staking/components/delegations/types.ts +++ b/src/screens/account_details/components/staking/components/delegations/types.ts @@ -1,3 +1,3 @@ -import { DelegationType } from '../../../../types'; +import { DelegationType } from '../../types'; export type ItemType = Override diff --git a/src/screens/account_details/components/staking/components/redelegations/components/desktop/index.tsx b/src/screens/account_details/components/staking/components/redelegations/components/desktop/index.tsx index 2c155a9a7f..cfdad1f774 100644 --- a/src/screens/account_details/components/staking/components/redelegations/components/desktop/index.tsx +++ b/src/screens/account_details/components/staking/components/redelegations/components/desktop/index.tsx @@ -8,6 +8,7 @@ import { TableRow, TableCell, TableBody, + Typography, } from '@material-ui/core'; import { AvatarName } from '@components'; import { useRecoilValue } from 'recoil'; @@ -15,6 +16,7 @@ import { readDate } from '@recoil/settings'; import { formatNumber } from '@utils/format_token'; import { columns } from './utils'; import { ItemType } from '../../types'; +import { useStyles } from './styles'; const Desktop: React.FC<{ className?: string; @@ -22,10 +24,14 @@ const Desktop: React.FC<{ }> = ({ className, items, }) => { + const classes = useStyles(); const { t } = useTranslation('accounts'); const dateFormat = useRecoilValue(readDate); const formattedItems = items.map((x) => { - const amount = formatNumber(x.amount.value, x.amount.exponent); + const entries = x.entries.map((y) => ({ + amount: `${formatNumber(y.amount.value, y.amount.exponent)} ${y.amount.displayDenom.toUpperCase()}`, + completionTime: formatDayJs(dayjs.utc(y.completionTime), dateFormat), + })); return ({ to: ( ), - linkedUntil: formatDayJs(dayjs.utc(x.linkedUntil), dateFormat), - amount: `${amount} ${x.amount.displayDenom.toUpperCase()}`, + entries, }); }); @@ -68,6 +73,48 @@ const Desktop: React.FC<{ {formattedItems.map((row, i) => ( {columns.map((column) => { + if (column.key === 'amount') { + return ( + + {row.entries.map((y, index) => { + return ( +
+ + {y.amount} + +
+ ); + })} +
+ ); + } + + if (column.key === 'completionTime') { + return ( + + {row.entries.map((y, index) => { + return ( +
+ + {y.completionTime} + +
+ ); + })} +
+ ); + } + return ( { + const styles = makeStyles( + (theme) => { + return ({ + wrapper: { + padding: theme.spacing(1), + }, + item: { + padding: theme.spacing(0.5, 0), + '& .label': { + color: theme.palette.custom.fonts.fontThree, + }, + '& p.value': { + color: theme.palette.custom.fonts.fontTwo, + }, + '& a': { + color: theme.palette.custom.fonts.highlight, + }, + }, + }); + }, + )(); + + return styles; +}; diff --git a/src/screens/account_details/components/staking/components/redelegations/components/desktop/utils.ts b/src/screens/account_details/components/staking/components/redelegations/components/desktop/utils.ts index 42582e91cb..a1308b0f29 100644 --- a/src/screens/account_details/components/staking/components/redelegations/components/desktop/utils.ts +++ b/src/screens/account_details/components/staking/components/redelegations/components/desktop/utils.ts @@ -13,12 +13,12 @@ export const columns:{ }, { key: 'amount', - width: 25, align: 'right', + width: 25, }, { - key: 'linkedUntil', - width: 25, + key: 'completionTime', align: 'right', + width: 25, }, ]; diff --git a/src/screens/account_details/components/staking/components/redelegations/components/mobile/index.tsx b/src/screens/account_details/components/staking/components/redelegations/components/mobile/index.tsx index c0097d8d18..8366e6e095 100644 --- a/src/screens/account_details/components/staking/components/redelegations/components/mobile/index.tsx +++ b/src/screens/account_details/components/staking/components/redelegations/components/mobile/index.tsx @@ -22,7 +22,10 @@ const Mobile: React.FC<{ const { t } = useTranslation('accounts'); const dateFormat = useRecoilValue(readDate); const formattedItems = items.map((x) => { - const amount = formatNumber(x.amount.value, x.amount.exponent); + const entries = x.entries.map((y) => ({ + amount: `${formatNumber(y.amount.value, y.amount.exponent)} ${y.amount.displayDenom.toUpperCase()}`, + completionTime: formatDayJs(dayjs.utc(y.completionTime), dateFormat), + })); return ({ to: ( ), - linkedUntil: formatDayJs(dayjs.utc(x.linkedUntil), dateFormat), - amount: `${amount} ${x.amount.displayDenom.toUpperCase()}`, + entries, }); }); @@ -49,34 +51,34 @@ const Mobile: React.FC<{ return (
-
- - {t('from')} - - {x.from} -
-
- - {t('to')} - - {x.to} -
-
- - {t('amount')} - - - {x.amount} - -
-
- - {t('linkedUntil')} - - - {x.linkedUntil} - +
+
+ + {t('from')} + + {x.from} +
+
+ + {t('to')} + + {x.to} +
+ { + x.entries.map((y, index) => { + return ( +
+ + {y.completionTime} + + + {y.amount} + +
+ ); + }) + }
{i !== items.length - 1 && } diff --git a/src/screens/account_details/components/staking/components/redelegations/index.tsx b/src/screens/account_details/components/staking/components/redelegations/index.tsx index fe3af6ff1f..07a99a36b1 100644 --- a/src/screens/account_details/components/staking/components/redelegations/index.tsx +++ b/src/screens/account_details/components/staking/components/redelegations/index.tsx @@ -1,30 +1,26 @@ import React from 'react'; +import * as R from 'ramda'; import dynamic from 'next/dynamic'; import classnames from 'classnames'; import { usePagination, useScreenSize, } from '@hooks'; import { - NoData, Pagination, + NoData, Pagination, Loading, } from '@components'; import { useProfilesRecoil, } from '@recoil/profiles'; import { useStyles } from './styles'; -import { RedelegationType } from '../../../../types'; +import { RedelegationsType } from '../../types'; const Desktop = dynamic(() => import('./components/desktop')); const Mobile = dynamic(() => import('./components/mobile')); const Redelegations: React.FC<{ - className?: string; - data: RedelegationType[]; - count: number; -}> = ({ - className, - data, - count, -}) => { + redelegations: RedelegationsType, + handlePageCallback: (page: number, _rowsPerPage: number) => void; +} & ComponentDefault> = (props) => { const { isDesktop } = useScreenSize(); const classes = useStyles(); const { @@ -32,38 +28,42 @@ const Redelegations: React.FC<{ rowsPerPage, handleChangePage, handleChangeRowsPerPage, - sliceItems, - } = usePagination({}); - const fromProfiles = useProfilesRecoil(data.map((x) => x.from)); - const toProfiles = useProfilesRecoil(data.map((x) => x.to)); - const mergedDataWithProfiles = data.map((x, i) => { + } = usePagination({ + pageChangeCallback: props.handlePageCallback, + }); + + const pageItems = R.pathOr([], ['redelegations', 'data', page], props); + + const fromProfiles = useProfilesRecoil(pageItems.map((x) => x.from)); + const toProfiles = useProfilesRecoil(pageItems.map((x) => x.to)); + const mergedDataWithProfiles = pageItems.map((x, i) => { return ({ ...x, from: fromProfiles[i], to: toProfiles[i], }); }); - const items = sliceItems(mergedDataWithProfiles); + + const items = mergedDataWithProfiles; + + let component = null; + + if (props.redelegations.loading) { + component = ; + } else if (!items.length) { + component = ; + } else if (isDesktop) { + component = ; + } else { + component = ; + } return ( -
- {items.length ? ( - <> - {isDesktop ? ( - - ) : ( - - )} - - ) : ( - - )} +
+ {component} diff --git a/src/screens/account_details/components/staking/components/unbondings/components/desktop/index.tsx b/src/screens/account_details/components/staking/components/unbondings/components/desktop/index.tsx index 5519330cd1..459717e05d 100644 --- a/src/screens/account_details/components/staking/components/unbondings/components/desktop/index.tsx +++ b/src/screens/account_details/components/staking/components/unbondings/components/desktop/index.tsx @@ -2,13 +2,13 @@ import React from 'react'; import classnames from 'classnames'; import useTranslation from 'next-translate/useTranslation'; import dayjs, { formatDayJs } from '@utils/dayjs'; -import numeral from 'numeral'; import { Table, TableHead, TableRow, TableCell, TableBody, + Typography, } from '@material-ui/core'; import { AvatarName } from '@components'; import { useRecoilValue } from 'recoil'; @@ -16,6 +16,7 @@ import { readDate } from '@recoil/settings'; import { formatNumber } from '@src/utils/format_token'; import { columns } from './utils'; import { ItemType } from '../../types'; +import { useStyles } from './styles'; const Desktop: React.FC<{ className?: string; @@ -23,10 +24,14 @@ const Desktop: React.FC<{ }> = ({ className, items, }) => { + const classes = useStyles(); const { t } = useTranslation('accounts'); const dateFormat = useRecoilValue(readDate); const formattedItems = items.map((x) => { - const amount = formatNumber(x.amount.value, x.amount.exponent); + const entries = x.entries.map((y) => ({ + amount: `${formatNumber(y.amount.value, y.amount.exponent)} ${y.amount.displayDenom.toUpperCase()}`, + completionTime: formatDayJs(dayjs.utc(y.completionTime), dateFormat), + })); return ({ validator: ( ), - commission: `${numeral(x.commission * 100).format('0.00')}%`, - linkedUntil: formatDayJs(dayjs.utc(x.linkedUntil), dateFormat), - amount: `${amount} ${x.amount.displayDenom.toUpperCase()}`, + entries, }); }); @@ -63,13 +66,56 @@ const Desktop: React.FC<{ {formattedItems.map((row, i) => ( {columns.map((column) => { + const selected = row[column.key]; + if (column.key === 'amount') { + return ( + + {row.entries.map((y, index) => { + return ( +
+ + {y.amount} + +
+ ); + })} +
+ ); + } + + if (column.key === 'completionTime') { + return ( + + {row.entries.map((y, index) => { + return ( +
+ + {y.completionTime} + +
+ ); + })} +
+ ); + } + return ( - {row[column.key]} + {selected} ); })} diff --git a/src/screens/account_details/components/staking/components/unbondings/components/desktop/styles.ts b/src/screens/account_details/components/staking/components/unbondings/components/desktop/styles.ts new file mode 100644 index 0000000000..11b11770bd --- /dev/null +++ b/src/screens/account_details/components/staking/components/unbondings/components/desktop/styles.ts @@ -0,0 +1,27 @@ +import { makeStyles } from '@material-ui/core/styles'; + +export const useStyles = () => { + const styles = makeStyles( + (theme) => { + return ({ + wrapper: { + padding: theme.spacing(1), + }, + item: { + padding: theme.spacing(0.5, 0), + '& .label': { + color: theme.palette.custom.fonts.fontThree, + }, + '& p.value': { + color: theme.palette.custom.fonts.fontTwo, + }, + '& a': { + color: theme.palette.custom.fonts.highlight, + }, + }, + }); + }, + )(); + + return styles; +}; diff --git a/src/screens/account_details/components/staking/components/unbondings/components/desktop/utils.ts b/src/screens/account_details/components/staking/components/unbondings/components/desktop/utils.ts index dde0aca084..ca34a114df 100644 --- a/src/screens/account_details/components/staking/components/unbondings/components/desktop/utils.ts +++ b/src/screens/account_details/components/staking/components/unbondings/components/desktop/utils.ts @@ -5,21 +5,16 @@ export const columns:{ }[] = [ { key: 'validator', - width: 25, - }, - { - key: 'commission', - align: 'right', - width: 25, + width: 40, }, { key: 'amount', - width: 25, align: 'right', + width: 30, }, { - key: 'linkedUntil', - width: 25, + key: 'completionTime', align: 'right', + width: 30, }, ]; diff --git a/src/screens/account_details/components/staking/components/unbondings/components/mobile/index.tsx b/src/screens/account_details/components/staking/components/unbondings/components/mobile/index.tsx index 3bf42ef18a..52103a0bbe 100644 --- a/src/screens/account_details/components/staking/components/unbondings/components/mobile/index.tsx +++ b/src/screens/account_details/components/staking/components/unbondings/components/mobile/index.tsx @@ -2,7 +2,6 @@ import React from 'react'; import classnames from 'classnames'; import useTranslation from 'next-translate/useTranslation'; import dayjs, { formatDayJs } from '@utils/dayjs'; -import numeral from 'numeral'; import { Divider, Typography, } from '@material-ui/core'; @@ -23,7 +22,10 @@ const Mobile: React.FC<{ const { t } = useTranslation('accounts'); const dateFormat = useRecoilValue(readDate); const formattedItems = items.map((x) => { - const amount = formatNumber(x.amount.value, x.amount.exponent); + const entries = x.entries.map((y) => ({ + amount: `${formatNumber(y.amount.value, y.amount.exponent)} ${y.amount.displayDenom.toUpperCase()}`, + completionTime: formatDayJs(dayjs.utc(y.completionTime), dateFormat), + })); return ({ validator: ( ), - commission: `${numeral(x.commission * 100).format('0.00')}%`, - linkedUntil: formatDayJs(dayjs.utc(x.linkedUntil), dateFormat), - amount: `${amount} ${x.amount.displayDenom.toUpperCase()}`, + entries, }); }); @@ -50,30 +50,20 @@ const Mobile: React.FC<{ {x.validator}
-
- - {t('commission')} - - - {x.commission} - -
-
- - {t('amount')} - - - {x.amount} - -
-
- - {t('linkedUntil')} - - - {x.linkedUntil} - -
+ { + x.entries.map((y, index) => { + return ( +
+ + {y.completionTime} + + + {y.amount} + +
+ ); + }) + }
{i !== items.length - 1 && } diff --git a/src/screens/account_details/components/staking/components/unbondings/index.tsx b/src/screens/account_details/components/staking/components/unbondings/index.tsx index bd6ee897ad..d858676846 100644 --- a/src/screens/account_details/components/staking/components/unbondings/index.tsx +++ b/src/screens/account_details/components/staking/components/unbondings/index.tsx @@ -1,70 +1,70 @@ import React from 'react'; +import * as R from 'ramda'; import dynamic from 'next/dynamic'; import classnames from 'classnames'; import { usePagination, useScreenSize, } from '@hooks'; import { - Pagination, NoData, + Pagination, NoData, Loading, } from '@components'; import { useProfilesRecoil, } from '@recoil/profiles'; import { useStyles } from './styles'; -import { UnbondingType } from '../../../../types'; +import { UnbondingsType } from '../../types'; const Desktop = dynamic(() => import('./components/desktop')); const Mobile = dynamic(() => import('./components/mobile')); const Unbondings: React.FC<{ - className?: string; - data: UnbondingType[], - count: number; -}> = ({ - className, - data, - count, -}) => { + unbondings: UnbondingsType, + handlePageCallback: (page: number, _rowsPerPage: number) => void; +} & ComponentDefault> = (props) => { const classes = useStyles(); const { page, rowsPerPage, handleChangePage, handleChangeRowsPerPage, - sliceItems, - } = usePagination({}); + } = usePagination({ + pageChangeCallback: props.handlePageCallback, + }); const { isDesktop } = useScreenSize(); - const dataProfiles = useProfilesRecoil(data.map((x) => x.validator)); - const mergedDataWithProfiles = data.map((x, i) => { + + const pageItems = R.pathOr([], ['unbondings', 'data', page], props); + const dataProfiles = useProfilesRecoil(pageItems.map((x) => x.validator)); + const mergedDataWithProfiles = pageItems.map((x, i) => { return ({ ...x, validator: dataProfiles[i], }); }); - const items = sliceItems(mergedDataWithProfiles); + const items = mergedDataWithProfiles; + + let component = null; + + if (props.unbondings.loading) { + component = ; + } else if (!items.length) { + component = ; + } else if (isDesktop) { + component = ; + } else { + component = ; + } return ( -
- {items.length ? ( - <> - {isDesktop ? ( - - ) : ( - - )} - - ) : ( - - )} +
+ {component}
); diff --git a/src/screens/account_details/components/staking/components/unbondings/types.ts b/src/screens/account_details/components/staking/components/unbondings/types.ts index 8fdcefe273..79da6d8d1e 100644 --- a/src/screens/account_details/components/staking/components/unbondings/types.ts +++ b/src/screens/account_details/components/staking/components/unbondings/types.ts @@ -1,3 +1,3 @@ -import { UnbondingType } from '../../../../types'; +import { UnbondingType } from '../../types'; export type ItemType = Override diff --git a/src/screens/account_details/components/staking/hooks.tsx b/src/screens/account_details/components/staking/hooks.tsx index 1fb0c707df..665bdd03bf 100644 --- a/src/screens/account_details/components/staking/hooks.tsx +++ b/src/screens/account_details/components/staking/hooks.tsx @@ -1,10 +1,42 @@ import { useState } from 'react'; +import * as R from 'ramda'; +import { useRouter } from 'next/router'; +import { + useAccountDelegationsQuery, + AccountDelegationsQuery, + useAccountUndelegationsQuery, + AccountUndelegationsQuery, + useAccountRedelegationsQuery, + AccountRedelegationsQuery, +} from '@graphql/types'; +import { + formatToken, +} from '@utils/format_token'; +import { chainConfig } from '@configs'; +import { StakingState } from './types'; +import { RewardsType } from '../../types'; -export const useStaking = () => { - const [state, setState] = useState({ +const stakingDefault = { + data: {}, + count: 0, + loading: true, +}; + +const LIMIT = 10; + +export const useStaking = (rewards: RewardsType) => { + const router = useRouter(); + const [state, setState] = useState({ tab: 0, + delegations: stakingDefault, + redelegations: stakingDefault, + unbondings: stakingDefault, }); + const handleSetState = (stateChange: any) => { + setState((prevState) => R.mergeDeepLeft(stateChange, prevState)); + }; + const handleTabChange = (_event: any, newValue: number) => { setState((prevState) => ({ ...prevState, @@ -12,8 +44,225 @@ export const useStaking = () => { })); }; + // ===================================== + // delegations + // ===================================== + const delegationsQuery = useAccountDelegationsQuery({ + variables: { + address: R.pathOr('', ['query', 'address'], router), + limit: LIMIT, + }, + onCompleted: (data) => { + const formattedData = formatDelegations(data); + handleSetState({ + delegations: { + loading: false, + count: R.pathOr(0, ['delegations', 'pagination', 'total'], data), + data: { + 0: formattedData, + }, + }, + }); + }, + onError: () => { + handleSetState({ + delegations: { + loading: false, + }, + }); + }, + }); + + const formatDelegations = (data: AccountDelegationsQuery) => { + const delegations = R.pathOr([], ['delegations', 'delegations'], data); + return delegations + .map((x) => { + const validator = R.pathOr('', ['validator_address'], x); + return ({ + validator, + amount: formatToken(x.coins.amount, x.coins.denom), + reward: rewards[validator], + }); + }); + }; + + const handleDelegationPageCallback = async (page: number, _rowsPerPage: number) => { + if (!state.delegations.data[page]) { + handleSetState({ + delegations: { + loading: true, + }, + }); + + await delegationsQuery.fetchMore({ + variables: { + offset: page * LIMIT, + limit: LIMIT, + }, + }).then(({ data }) => { + handleSetState({ + delegations: { + loading: false, + data: { + [page]: formatDelegations(data), + }, + }, + }); + }); + } + }; + + // ===================================== + // redelegations + // ===================================== + const redelegationsQuery = useAccountRedelegationsQuery({ + variables: { + address: R.pathOr('', ['query', 'address'], router), + limit: LIMIT, + }, + onCompleted: (data) => { + const formattedData = formatRedelegations(data); + handleSetState({ + redelegations: { + loading: false, + count: R.pathOr(0, ['redelegations', 'pagination', 'total'], data), + data: { + 0: formattedData, + }, + }, + }); + }, + onError: () => { + handleSetState({ + redelegations: { + loading: false, + }, + }); + }, + }); + + const formatRedelegations = (data: AccountRedelegationsQuery) => { + const redelegations = R.pathOr([], ['redelegations', 'redelegations'], data); + return redelegations + .map((x) => { + const from = R.pathOr('', ['validator_src_address'], x); + const to = R.pathOr('', ['validator_dst_address'], x); + const entries = R.pathOr([], ['entries'], x).map((y) => ({ + amount: formatToken(y.balance, chainConfig.primaryTokenUnit), + completionTime: R.pathOr('', ['completion_time'], y), + })); + + return ({ + from, + to, + entries, + }); + }); + }; + + const handleRedelegationPageCallback = async (page: number, _rowsPerPage: number) => { + if (!state.unbondings.data[page]) { + handleSetState({ + redelegations: { + loading: true, + }, + }); + + await redelegationsQuery.fetchMore({ + variables: { + offset: page * LIMIT, + limit: LIMIT, + }, + }).then(({ data }) => { + handleSetState({ + redelegations: { + loading: false, + data: { + [page]: formatRedelegations(data), + }, + }, + }); + }); + } + }; + + // ===================================== + // unbondings + // ===================================== + const unbondingsQuery = useAccountUndelegationsQuery({ + variables: { + address: R.pathOr('', ['query', 'address'], router), + limit: LIMIT, + }, + onCompleted: (data) => { + const formattedData = formatUnbondings(data); + handleSetState({ + unbondings: { + loading: false, + count: R.pathOr(0, ['undelegations', 'pagination', 'total'], data), + data: { + 0: formattedData, + }, + }, + }); + }, + onError: () => { + handleSetState({ + unbondings: { + loading: false, + }, + }); + }, + }); + + const formatUnbondings = (data: AccountUndelegationsQuery) => { + const unbondings = R.pathOr([], ['undelegations', 'undelegations'], data); + return unbondings + .map((x) => { + const validator = R.pathOr('', ['validator_address'], x); + const entries = R.pathOr([], ['entries'], x).map((y) => ({ + amount: formatToken(y.balance, chainConfig.primaryTokenUnit), + completionTime: R.pathOr('', ['completion_time'], y), + })); + + return ({ + validator, + entries, + }); + }); + }; + + const handleUnbondingPageCallback = async (page: number, _rowsPerPage: number) => { + if (!state.unbondings.data[page]) { + handleSetState({ + unbondings: { + loading: true, + }, + }); + + await unbondingsQuery.fetchMore({ + variables: { + offset: page * LIMIT, + limit: LIMIT, + }, + }).then(({ data }) => { + handleSetState({ + unbondings: { + loading: false, + data: { + [page]: formatUnbondings(data), + }, + }, + }); + }); + } + }; + return { state, handleTabChange, + handleDelegationPageCallback, + handleUnbondingPageCallback, + handleRedelegationPageCallback, }; }; diff --git a/src/screens/account_details/components/staking/index.tsx b/src/screens/account_details/components/staking/index.tsx index 73c2bcea1c..6bebaa3964 100644 --- a/src/screens/account_details/components/staking/index.tsx +++ b/src/screens/account_details/components/staking/index.tsx @@ -8,67 +8,56 @@ import { Tabs } from './components'; import { useStaking } from './hooks'; import { useStyles } from './styles'; import { - RedelegationType, UnbondingType, DelegationType, + RewardsType, } from '../../types'; const Delegations = dynamic(() => import('./components/delegations')); const Redelgations = dynamic(() => import('./components/redelegations')); const Unbondings = dynamic(() => import('./components/unbondings')); -const Staking: React.FC<{ - className?: string; - delegations: { - data: DelegationType[]; - count: number; - } - redelegations: { - data: RedelegationType[]; - count: number; - } - unbondings: { - data: UnbondingType[]; - count: number; - } -}> = (props) => { +const Staking: React.FC<{rewards: RewardsType} & ComponentDefault> = (props) => { const classes = useStyles(); const { state, handleTabChange, - } = useStaking(); + handleDelegationPageCallback, + handleUnbondingPageCallback, + handleRedelegationPageCallback, + } = useStaking(props.rewards); + const tabs = [ { id: 0, key: 'delegations', component: ( ), - count: props.delegations.count, + count: state.delegations.count, }, { id: 1, key: 'redelegations', component: ( ), - data: props.redelegations, - count: props.redelegations.count, + count: state.redelegations.count, }, { id: 2, key: 'unbondings', component: ( ), - count: props.unbondings.count, + count: state.unbondings.count, }, ]; diff --git a/src/screens/account_details/components/staking/types.ts b/src/screens/account_details/components/staking/types.ts new file mode 100644 index 0000000000..988a6ad899 --- /dev/null +++ b/src/screens/account_details/components/staking/types.ts @@ -0,0 +1,41 @@ +export type StakingType = { + data: { + [value:number]: g[]; + }; + count: number; + loading: boolean; +} + +export type DelegationType = { + validator: string; + amount: TokenUnit; + reward: TokenUnit; +} + +export type RedelegationType = { + from: string; + to: string; + entries: { + amount: TokenUnit; + completionTime: string; + }[]; +} + +export type UnbondingType = { + validator: string; + entries: { + amount: TokenUnit; + completionTime: string; + }[]; +} + +export type DelegationsType = StakingType; +export type RedelegationsType = StakingType; +export type UnbondingsType = StakingType; + +export type StakingState = { + tab: number; + delegations: DelegationsType; + redelegations: RedelegationsType; + unbondings: UnbondingsType; +} diff --git a/src/screens/account_details/components/staking/utils.tsx b/src/screens/account_details/components/staking/utils.tsx deleted file mode 100644 index 86b0a97eaf..0000000000 --- a/src/screens/account_details/components/staking/utils.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import { - Delegations, - Redelgations, - Unbondings, -} from './components'; -import { - RedelegationType, UnbondingType, DelegationType, -} from '../../types'; - -export const getTabs = (staking: { - delegations: DelegationType[]; - redelegations: RedelegationType[]; - unbondings: UnbondingType[]; -}) => { - return ([ - { - id: 0, - key: 'delegations', - component: Delegations, - count: staking.delegations.length, - }, - { - id: 1, - key: 'redelegations', - component: Redelgations, - count: staking.redelegations.length, - }, - { - id: 2, - key: 'unbondings', - component: Unbondings, - count: staking.unbondings.length, - }, - ]); -}; diff --git a/src/screens/account_details/hooks.ts b/src/screens/account_details/hooks.ts index 465c8bdf8f..dfdb82dc2d 100644 --- a/src/screens/account_details/hooks.ts +++ b/src/screens/account_details/hooks.ts @@ -3,8 +3,6 @@ import { } from 'react'; import * as R from 'ramda'; import Big from 'big.js'; -import numeral from 'numeral'; -import dayjs from '@utils/dayjs'; import { useRouter } from 'next/router'; import { AccountQuery, @@ -13,10 +11,8 @@ import { GetMessagesByAddressQuery, } from '@graphql/types'; import { convertMsgsToModels } from '@msg'; -import { - StakingParams, -} from '@models'; import { getDenom } from '@utils/get_denom'; +import { toValidatorAddress } from '@utils/prefix_convert'; import { formatToken, } from '@utils/format_token'; @@ -51,18 +47,7 @@ const initialState: AccountDetailState = { commission: defaultTokenUnit, total: defaultTokenUnit, }, - delegations: { - data: [], - count: 0, - }, - redelegations: { - data: [], - count: 0, - }, - unbondings: { - data: [], - count: 0, - }, + rewards: {}, transactions: { data: [], hasNextPage: false, @@ -71,8 +56,6 @@ const initialState: AccountDetailState = { }, }; -const UTC_NOW = dayjs.utc().format('YYYY-MM-DDTHH:mm:ss'); - export const useAccountDetails = () => { const router = useRouter(); const [state, setState] = useState(initialState); @@ -100,7 +83,7 @@ export const useAccountDetails = () => { fetchDesmosProfile(R.pathOr('', ['query', 'address'], router)); } }, - [R.pathOr('', ['query', 'address'], router)]); + [router.query.address]); // ========================== // Fetch Data @@ -110,7 +93,7 @@ export const useAccountDetails = () => { useAccountQuery({ variables: { address: R.pathOr('', ['query', 'address'], router), - utc: UTC_NOW, + validatorAddress: toValidatorAddress(router.query.address as string), }, onCompleted: (data) => { handleSetState(formatAccountQuery(data)); @@ -165,7 +148,7 @@ export const useAccountDetails = () => { }; // ========================== - // Format Data + // Format TX // ========================== const formatTransactions = (data: GetMessagesByAddressQuery) => { @@ -194,38 +177,49 @@ export const useAccountDetails = () => { }); }; + // ========================== + // Format Account + // ========================== + const formatAccountQuery = (data: AccountQuery) => { const stateChange: any = { loading: false, }; - if (!data.account.length) { + if (!data.accountBalances.coins.length) { stateChange.exists = false; return stateChange; } - const rewardsDict = {}; - // log all the rewards - data.account[0].delegationRewards.forEach((x) => { - const denomAmount = getDenom(x.amount, chainConfig.primaryTokenUnit); - const denomFormat = formatToken(denomAmount.amount, chainConfig.primaryTokenUnit); - rewardsDict[x.validator.validatorInfo.operatorAddress] = denomFormat; - }); - // set default rewards for delegations without parsed rewards - data.account[0].delegations.forEach((x) => { - const validatorAddress = x.validator.validatorInfo.operatorAddress; - if (!rewardsDict[validatorAddress]) { - rewardsDict[validatorAddress] = formatToken(0, chainConfig.primaryTokenUnit); - } - }); + // ============================ + // rewards + // ============================ + const formatRewards = () => { + const rewardsDict = {}; + // log all the rewards + R.pathOr([], ['delegationRewards'], data).forEach((x) => { + const coins = R.pathOr([], ['coins'], x); + const denomAmount = getDenom(coins, chainConfig.primaryTokenUnit); + const denomFormat = formatToken(denomAmount.amount, chainConfig.primaryTokenUnit); + rewardsDict[x.validatorAddress] = denomFormat; + }); + return rewardsDict; + }; + + stateChange.rewards = formatRewards(); // ============================ // overview // ============================ const formatOverview = () => { + const address = R.pathOr('', ['query', 'address'], router); const overview = { - address: data.account[0].address, - withdrawalAddress: R.pathOr(data.account[0].address, ['account', 0, 'delegationRewards', 0, 'withdrawAddress'], data), + address, + withdrawalAddress: R.pathOr( + address, + ['withdrawalAddress', 'address'], + data, + ), }; return overview; }; @@ -237,41 +231,32 @@ export const useAccountDetails = () => { // ============================ const formatBalance = () => { const available = getDenom( - R.pathOr([], ['account', 0, 'accountBalances', 0, 'coins'], data), + R.pathOr([], ['accountBalances', 'coins'], data), chainConfig.primaryTokenUnit, ); const availableAmount = formatToken(available.amount, chainConfig.primaryTokenUnit); - const stakingParams = StakingParams.fromJson(R.pathOr({}, ['stakingParams', 0, 'params'], data)); - const stakingDenom = stakingParams.bondDenom; - - const delegate = R.pathOr([], ['account', 0, 'delegations'], data).reduce((a, b) => { - return Big(a).plus(b.amount.amount).toPrecision(); - }, 0); - const delegateDenom = stakingDenom; - const delegateAmount = formatToken(delegate, delegateDenom); - - const unbonding = R.pathOr([], ['account', 0, 'unbonding'], data).reduce((a, b) => { - return Big(a).plus(b.amount.amount).toPrecision(); - }, 0); - const unbondingDenom = stakingDenom; - const unbondingAmount = formatToken(unbonding, unbondingDenom); - - const reward = data.account[0].delegations.map((x) => { - const validatorAddress = x.validator.validatorInfo.operatorAddress; - return rewardsDict[validatorAddress]; - }).reduce((a, b) => { - return Big(a).plus(b.value).toPrecision(); - }, 0); - - const rewardAmount: TokenUnit = { - value: reward, - displayDenom: chainConfig.tokenUnits[stakingDenom].display, - baseDenom: stakingDenom, - exponent: chainConfig.tokenUnits[stakingDenom].exponent, - }; + const delegate = getDenom( + R.pathOr([], ['delegationBalance', 'coins'], data), + chainConfig.primaryTokenUnit, + ); + const delegateAmount = formatToken(delegate.amount, chainConfig.primaryTokenUnit); + + const unbonding = getDenom( + R.pathOr([], ['unbondingBalance', 'coins'], data), + chainConfig.primaryTokenUnit, + ); + const unbondingAmount = formatToken(unbonding.amount, chainConfig.primaryTokenUnit); + + const rewards = data.delegationRewards.reduce((a, b) => { + const coins = R.pathOr([], ['coins'], b); + const dsmCoins = getDenom(coins, chainConfig.primaryTokenUnit); + + return Big(a).plus(dsmCoins.amount).toPrecision(); + }, '0'); + const rewardsAmount = formatToken(rewards, chainConfig.primaryTokenUnit); const commission = getDenom( - R.pathOr([], ['validator', 0, 'commission', 0, 'amount'], data), + R.pathOr([], ['commission', 'coins'], data), chainConfig.primaryTokenUnit, ); const commissionAmount = formatToken(commission.amount, chainConfig.primaryTokenUnit); @@ -279,7 +264,7 @@ export const useAccountDetails = () => { const total = Big(availableAmount.value) .plus(delegateAmount.value) .plus(unbondingAmount.value) - .plus(rewardAmount.value) + .plus(rewardsAmount.value) .plus(commissionAmount.value) .toPrecision(); @@ -287,7 +272,7 @@ export const useAccountDetails = () => { available: availableAmount, delegate: delegateAmount, unbonding: unbondingAmount, - reward: rewardAmount, + reward: rewardsAmount, commission: commissionAmount, total: { value: total, @@ -310,23 +295,23 @@ export const useAccountDetails = () => { const otherTokenUnits = new Set(); const otherTokens = []; // available tokens - const available = R.pathOr([], ['account', 0, 'accountBalances', 0, 'coins'], data); + const available = R.pathOr([], ['accountBalances', 'coins'], data); available.forEach((x) => { otherTokenUnits.add(x.denom); }); // rewards tokens - const rewards = R.pathOr([], ['account', 0, 'delegationRewards'], data); + const rewards = R.pathOr([], ['delegationRewards'], data); rewards.forEach((x) => { - x.amount.forEach((y) => { + x.coins?.forEach((y) => { otherTokenUnits.add(y.denom); }); }); // commission tokens - const commission = R.pathOr([], ['validator', 0, 'commission', 0, 'amount'], data); + const commission = R.pathOr([], ['commission', 'coins'], data); commission.forEach((x) => { otherTokenUnits.add(x.denom); @@ -338,14 +323,12 @@ export const useAccountDetails = () => { otherTokenUnits.forEach((x: string) => { const availableRawAmount = getDenom(available, x); const availableAmount = formatToken(availableRawAmount.amount, x); - const rewardsRawAmount = rewards.reduce((a, b) => { - const denom = getDenom(b.amount, x); - // return a + numeral(denom.amount).value(); + const coins = R.pathOr([], ['coins'], b); + const denom = getDenom(coins, x); return Big(a).plus(denom.amount).toPrecision(); }, 0); const rewardAmount = formatToken(rewardsRawAmount, x); - const commissionRawAmount = getDenom(commission, x); const commissionAmount = formatToken(commissionRawAmount.amount, x); @@ -367,83 +350,6 @@ export const useAccountDetails = () => { stateChange.otherTokens = formatOtherTokens(); - // ============================ - // delegations - // ============================ - const formatDelegations = () => { - const delegations = data.account[0].delegations.filter((x) => { - return numeral(x.amount.amount).value() !== 0; - }).map((x) => { - const validatorAddress = x.validator.validatorInfo.operatorAddress; - return ({ - validator: validatorAddress, - validatorStatus: { - status: R.pathOr(3, ['validator', 'validatorStatuses', 0, 'status'], x), - jailed: R.pathOr(false, ['validator', 'validatorStatuses', 0, 'jailed'], x), - }, - validatorSigningInfo: { - tombstoned: R.pathOr(false, ['validator', 'validatorSigningInfos', 0, 'tombstoned'], x), - }, - reward: rewardsDict[validatorAddress], - amount: formatToken(x.amount.amount, x.amount.denom), - commission: R.pathOr(0, ['validator', 'validatorCommissions', 0, 'commission'], x), - }); - }).sort((a, b) => (Big(a.amount.value).lt(b.amount.value) ? 1 : -1)); - - return { - data: delegations, - count: delegations.length, - }; - }; - - stateChange.delegations = formatDelegations(); - - // ============================ - // redelegations - // ============================ - const formatRedelegations = () => { - const redelegations = data.account[0].redelegations.map((x) => { - return ({ - to: x.to, - from: x.from, - linkedUntil: x.completionTime, - amount: formatToken( - R.pathOr(0, ['amount', 'amount'], x), - R.pathOr(0, ['amount', 'denom'], x), - ), - }); - }).sort((a, b) => (Big(a.amount.value).lt(b.amount.value) ? 1 : -1)); - return { - data: redelegations, - count: redelegations.length, - }; - }; - - stateChange.redelegations = formatRedelegations(); - - // ============================ - // unbondings - // ============================ - const formatUnbondings = () => { - const unbondings = data.account[0].unbonding.map((x) => { - const validatorAddress = x.validator.validatorInfo.operatorAddress; - return ({ - validator: validatorAddress, - amount: formatToken( - R.pathOr(0, ['amount', 'amount'], x), - R.pathOr(0, ['amount', 'denom'], x), - ), - linkedUntil: x.completionTimestamp, - commission: R.pathOr(0, ['validator', 'validatorCommissions', 0, 'commission'], x), - }); - }).sort((a, b) => (Big(a.amount.value).lt(b.amount.value) ? 1 : -1)); - return { - data: unbondings, - count: unbondings.length, - }; - }; - - stateChange.unbondings = formatUnbondings(); return stateChange; }; diff --git a/src/screens/account_details/index.test.tsx b/src/screens/account_details/index.test.tsx index 41c71dcee6..fc971ff23a 100644 --- a/src/screens/account_details/index.test.tsx +++ b/src/screens/account_details/index.test.tsx @@ -19,7 +19,7 @@ import AccountDetails from '.'; jest.mock('next/router', () => ({ useRouter: () => ({ query: { - address: 'address', + address: 'desmos1ltpgdupjgtpqzsznltcptmfh6gfu5d8uehxggj', }, }), })); @@ -40,91 +40,57 @@ jest.mock('./components', () => ({ const mockAccount = jest.fn().mockResolvedValue({ data: { - stakingParams: [ - { - params: {}, - }, - ], - account: [ + commission: { + coins: [ + { + amount: '935371507.295045102561007305', + denom: 'udsm', + }, + ], + }, + withdrawalAddress: { + address: 'desmos1ltpgdupjgtpqzsznltcptmfh6gfu5d8uehxggj', + }, + accountBalances: { + coins: [ + { + amount: '116306', + denom: 'udsm', + }, + ], + }, + delegationBalance: { + coins: [ + { + amount: '1530000000', + denom: 'udsm', + }, + ], + }, + unbondingBalance: { + coins: [ + { + amount: '0', + denom: 'udsm', + }, + ], + }, + delegationRewards: [ { - address: 'desmos18kvwy5hzcu3ss08lcfcnx0eajuecg69ujmkwjr', - accountBalances: [ - { - coins: [ - { - denom: 'udaric', - amount: '21280246', - }, - { - denom: 'someotherbalance', - amount: '21280246', - }, - ], - }, - ], - delegations: [ + validatorAddress: 'desmosvaloper1gwr9l765vfxv4l4zz8glsxwkkphj2084xjwc68', + coins: [ { - amount: { - denom: 'udaric', - amount: '1632425218854', - }, - validator: { - validatorInfo: { - operatorAddress: 'desmosvaloper1u0dae8r8hay6r2gvccegg2fz6ryftf2wfnj5ft', - }, - validatorCommissions: [ - { - commission: 0.0999, - }, - ], - validatorStatuses: [ - { - status: 3, - jailed: false, - }, - ], - validatorSigningInfos: [ - { - tombstoned: false, - }, - ], - }, - }, - ], - unbonding: [], - redelegations: [], - delegationRewards: [ - { - amount: [ - { - denom: 'udaric', - amount: '58219061338.275262315000000000', - }, - { - denom: 'ufootoken', - amount: '58219061338', - }, - ], - withdrawAddress: 'desmos18kvwy5hzcu3ss08lcfcnx0eajuecg69ujmkwjr', - validator: { - validatorInfo: { - operatorAddress: 'desmosvaloper1u0dae8r8hay6r2gvccegg2fz6ryftf2wfnj5ft', - }, - }, + amount: '1983411.761512021000000000', + denom: 'udsm', }, ], }, - ], - validator: [ { - commission: [ + validatorAddress: 'desmosvaloper1mqfr567kvp659z0zjvpqudw3wx7hh3s7u9a8g9', + coins: [ { - amount: [ - { - denom: 'udaric', - amount: '725602.207464031936652132', - }, - ], + amount: '1029160.218282986240000000', + denom: 'udsm', }, ], }, diff --git a/src/screens/account_details/index.tsx b/src/screens/account_details/index.tsx index 2f199b533b..577c7fe054 100644 --- a/src/screens/account_details/index.tsx +++ b/src/screens/account_details/index.tsx @@ -68,9 +68,7 @@ const AccountDetails = () => { /> {data.map((entry) => { diff --git a/src/screens/validator_details/components/staking/components/delegations/components/desktop/index.tsx b/src/screens/validator_details/components/staking/components/delegations/components/desktop/index.tsx index 2638782e1f..caa06e767c 100644 --- a/src/screens/validator_details/components/staking/components/delegations/components/desktop/index.tsx +++ b/src/screens/validator_details/components/staking/components/delegations/components/desktop/index.tsx @@ -8,34 +8,31 @@ import { TableCell, TableBody, } from '@material-ui/core'; -import { AvatarName } from '@components'; -import { getMiddleEllipsis } from '@utils/get_middle_ellipsis'; +import { + AvatarName, +} from '@components'; import { formatNumber } from '@utils/format_token'; import { columns } from './utils'; import { ItemType } from '../../types'; const Desktop: React.FC<{ className?: string; - items: ItemType[]; + items?: ItemType[]; }> = ({ className, items, }) => { - const { t } = useTranslation('validators'); - - const formattedData = items.map((x) => { - const amount = formatNumber(x.amount.value, x.amount.exponent); + const { t } = useTranslation('accounts'); + const formattedItems = items.map((x) => { return ({ address: ( 20 ? getMiddleEllipsis(x.delegator.name, { - beginning: 12, ending: 10, - }) : x.delegator.name} + name={x.address.name} + address={x.address.address} + imageUrl={x.address.imageUrl} /> ), - amount: `${amount} ${x.amount.displayDenom.toUpperCase()}`, + amount: `${formatNumber(x.amount.value, x.amount.exponent)} ${x.amount.displayDenom.toUpperCase()}`, }); }); @@ -58,7 +55,7 @@ const Desktop: React.FC<{ - {formattedData.map((row, i) => ( + {formattedItems.map((row, i) => ( {columns.map((column) => { return ( diff --git a/src/screens/validator_details/components/staking/components/delegations/components/desktop/utils.ts b/src/screens/validator_details/components/staking/components/delegations/components/desktop/utils.ts index dd33e3ad23..9ccf9930ca 100644 --- a/src/screens/validator_details/components/staking/components/delegations/components/desktop/utils.ts +++ b/src/screens/validator_details/components/staking/components/delegations/components/desktop/utils.ts @@ -5,11 +5,11 @@ export const columns:{ }[] = [ { key: 'address', - width: 75, + width: 50, }, { key: 'amount', - width: 25, + width: 50, align: 'right', }, ]; diff --git a/src/screens/validator_details/components/staking/components/delegations/components/mobile/index.tsx b/src/screens/validator_details/components/staking/components/delegations/components/mobile/index.tsx index a1580d28fb..51a1dd5e46 100644 --- a/src/screens/validator_details/components/staking/components/delegations/components/mobile/index.tsx +++ b/src/screens/validator_details/components/staking/components/delegations/components/mobile/index.tsx @@ -2,7 +2,8 @@ import React from 'react'; import classnames from 'classnames'; import useTranslation from 'next-translate/useTranslation'; import { - Divider, Typography, + Divider, + Typography, } from '@material-ui/core'; import { AvatarName } from '@components'; import { formatNumber } from '@utils/format_token'; @@ -16,12 +17,11 @@ const Mobile: React.FC<{ className, items, }) => { const classes = useStyles(); - const { t } = useTranslation('validators'); + const { t } = useTranslation('accounts'); return (
{items.map((x, i) => { - const amount = formatNumber(x.amount.value, x.amount.exponent); return (
@@ -30,9 +30,9 @@ const Mobile: React.FC<{ {t('address')}
@@ -40,7 +40,9 @@ const Mobile: React.FC<{ {t('amount')} - {`${amount} ${x.amount.displayDenom.toUpperCase()}`} + {formatNumber(x.amount.value, x.amount.exponent)} + {' '} + {x.amount.displayDenom.toUpperCase()}
diff --git a/src/screens/validator_details/components/staking/components/delegations/components/mobile/styles.ts b/src/screens/validator_details/components/staking/components/delegations/components/mobile/styles.ts index 6cece6efa1..033ec3b23f 100644 --- a/src/screens/validator_details/components/staking/components/delegations/components/mobile/styles.ts +++ b/src/screens/validator_details/components/staking/components/delegations/components/mobile/styles.ts @@ -15,6 +15,21 @@ export const useStyles = () => { }, '& p.value': { color: theme.palette.custom.fonts.fontTwo, + '&.unknown': { + color: theme.palette.custom.condition.zero, + }, + '&.unbonded': { + color: theme.palette.custom.condition.zero, + }, + '&.active': { + color: theme.palette.custom.condition.one, + }, + '&.jailed': { + color: theme.palette.custom.condition.two, + }, + '&.unbonding': { + color: theme.palette.custom.condition.three, + }, }, '& a': { color: theme.palette.custom.fonts.highlight, diff --git a/src/screens/validator_details/components/staking/components/delegations/index.tsx b/src/screens/validator_details/components/staking/components/delegations/index.tsx index 17bf3f348f..0d77616b2d 100644 --- a/src/screens/validator_details/components/staking/components/delegations/index.tsx +++ b/src/screens/validator_details/components/staking/components/delegations/index.tsx @@ -1,4 +1,5 @@ import React from 'react'; +import * as R from 'ramda'; import classnames from 'classnames'; import dynamic from 'next/dynamic'; import { @@ -6,24 +7,23 @@ import { useScreenSize, } from '@hooks'; import { - Pagination, NoData, + Pagination, + NoData, + Loading, } from '@components'; -import { useProfilesRecoil } from '@recoil/profiles'; +import { + useProfilesRecoil, +} from '@recoil/profiles'; import { useStyles } from './styles'; -import { DelegationType } from '../../../../types'; +import { DelegationsType } from '../../types'; const Desktop = dynamic(() => import('./components/desktop')); const Mobile = dynamic(() => import('./components/mobile')); const Delegations: React.FC<{ - className?: string; - data: DelegationType[]; - count: number; -}> = ({ - className, - data, - count, -}) => { + delegations: DelegationsType, + handlePageCallback: (page: number, _rowsPerPage: number) => void; +} & ComponentDefault> = (props) => { const { isDesktop } = useScreenSize(); const classes = useStyles(); const { @@ -31,40 +31,45 @@ const Delegations: React.FC<{ rowsPerPage, handleChangePage, handleChangeRowsPerPage, - sliceItems, - } = usePagination({}); + } = usePagination({ + pageChangeCallback: props.handlePageCallback, + }); + + const pageItems = R.pathOr([], ['delegations', 'data', page], props); - const dataProfiles = useProfilesRecoil(data.map((x) => x.delegator)); - const mergedDataWithProfiles = data.map((x, i) => { + const dataProfiles = useProfilesRecoil(pageItems.map((x) => x.address)); + + const mergedDataWithProfiles = pageItems.map((x, i) => { return ({ ...x, - delegator: dataProfiles[i], + address: dataProfiles[i], }); }); - const items = sliceItems(mergedDataWithProfiles); + const items = mergedDataWithProfiles; + + let component = null; + + if (props.delegations.loading) { + component = ; + } else if (!items.length) { + component = ; + } else if (isDesktop) { + component = ; + } else { + component = ; + } return ( -
- {items.length ? ( - <> - {isDesktop ? ( - - ) : ( - - )} - - ) : ( - - )} +
+ {component}
); diff --git a/src/screens/validator_details/components/staking/components/delegations/types.ts b/src/screens/validator_details/components/staking/components/delegations/types.ts index 6a413e9b77..3cdb0e2be1 100644 --- a/src/screens/validator_details/components/staking/components/delegations/types.ts +++ b/src/screens/validator_details/components/staking/components/delegations/types.ts @@ -1,3 +1,3 @@ -import { DelegationType } from '../../../../types'; +import { DelegationType } from '../../types'; -export type ItemType = Override +export type ItemType = Override diff --git a/src/screens/validator_details/components/staking/components/index.ts b/src/screens/validator_details/components/staking/components/index.ts index b023c781dc..0e2f68a8bf 100644 --- a/src/screens/validator_details/components/staking/components/index.ts +++ b/src/screens/validator_details/components/staking/components/index.ts @@ -1,11 +1,11 @@ import Tabs from './tabs'; -import Undelegations from './undelegations'; +import Unbondings from './unbondings'; import Redelgations from './redelegations'; import Delegations from './delegations'; export { Tabs, - Undelegations, + Unbondings, Redelgations, Delegations, }; diff --git a/src/screens/validator_details/components/staking/components/redelegations/components/desktop/index.tsx b/src/screens/validator_details/components/staking/components/redelegations/components/desktop/index.tsx index 81386981ad..7abadcd537 100644 --- a/src/screens/validator_details/components/staking/components/redelegations/components/desktop/index.tsx +++ b/src/screens/validator_details/components/staking/components/redelegations/components/desktop/index.tsx @@ -8,14 +8,15 @@ import { TableRow, TableCell, TableBody, + Typography, } from '@material-ui/core'; +import { AvatarName } from '@components'; import { useRecoilValue } from 'recoil'; import { readDate } from '@recoil/settings'; -import { AvatarName } from '@components'; -import { getMiddleEllipsis } from '@utils/get_middle_ellipsis'; import { formatNumber } from '@utils/format_token'; import { columns } from './utils'; import { ItemType } from '../../types'; +import { useStyles } from './styles'; const Desktop: React.FC<{ className?: string; @@ -23,19 +24,20 @@ const Desktop: React.FC<{ }> = ({ className, items, }) => { + const classes = useStyles(); + const { t } = useTranslation('accounts'); const dateFormat = useRecoilValue(readDate); - const { t } = useTranslation('validators'); - const formattedItems = items.map((x) => { - const amount = formatNumber(x.amount.value, x.amount.exponent); + const entries = x.entries.map((y) => ({ + amount: `${formatNumber(y.amount.value, y.amount.exponent)} ${y.amount.displayDenom.toUpperCase()}`, + completionTime: formatDayJs(dayjs.utc(y.completionTime), dateFormat), + })); return ({ address: ( 20 ? getMiddleEllipsis(x.delegator.name, { - beginning: 12, ending: 10, - }) : x.delegator.name} + address={x.address.address} + imageUrl={x.address.imageUrl} + name={x.address.name} /> ), to: ( @@ -45,15 +47,7 @@ const Desktop: React.FC<{ name={x.to.name} /> ), - from: ( - - ), - linkedUntil: formatDayJs(dayjs.utc(x.linkedUntil), dateFormat), - amount: `${amount} ${x.amount.displayDenom.toUpperCase()}`, + entries, }); }); @@ -79,6 +73,48 @@ const Desktop: React.FC<{ {formattedItems.map((row, i) => ( {columns.map((column) => { + if (column.key === 'amount') { + return ( + + {row.entries.map((y, index) => { + return ( +
+ + {y.amount} + +
+ ); + })} +
+ ); + } + + if (column.key === 'completionTime') { + return ( + + {row.entries.map((y, index) => { + return ( +
+ + {y.completionTime} + +
+ ); + })} +
+ ); + } + return ( { + const styles = makeStyles( + (theme) => { + return ({ + wrapper: { + padding: theme.spacing(1), + }, + item: { + padding: theme.spacing(0.5, 0), + '& .label': { + color: theme.palette.custom.fonts.fontThree, + }, + '& p.value': { + color: theme.palette.custom.fonts.fontTwo, + }, + '& a': { + color: theme.palette.custom.fonts.highlight, + }, + }, + }); + }, + )(); + + return styles; +}; diff --git a/src/screens/validator_details/components/staking/components/redelegations/components/desktop/utils.ts b/src/screens/validator_details/components/staking/components/redelegations/components/desktop/utils.ts index 8cd95c68ec..c45550a4f3 100644 --- a/src/screens/validator_details/components/staking/components/redelegations/components/desktop/utils.ts +++ b/src/screens/validator_details/components/staking/components/redelegations/components/desktop/utils.ts @@ -5,24 +5,20 @@ export const columns:{ }[] = [ { key: 'address', - width: 20, - }, - { - key: 'from', - width: 20, + width: 25, }, { key: 'to', - width: 20, + width: 25, }, { key: 'amount', - width: 20, align: 'right', + width: 20, }, { - key: 'linkedUntil', - width: 20, + key: 'completionTime', align: 'right', + width: 30, }, ]; diff --git a/src/screens/validator_details/components/staking/components/redelegations/components/mobile/index.tsx b/src/screens/validator_details/components/staking/components/redelegations/components/mobile/index.tsx index 1f25c02974..7221808989 100644 --- a/src/screens/validator_details/components/staking/components/redelegations/components/mobile/index.tsx +++ b/src/screens/validator_details/components/staking/components/redelegations/components/mobile/index.tsx @@ -1,31 +1,53 @@ import React from 'react'; import classnames from 'classnames'; -import dayjs, { formatDayJs } from '@utils/dayjs'; import useTranslation from 'next-translate/useTranslation'; +import dayjs, { formatDayJs } from '@utils/dayjs'; import { Divider, Typography, } from '@material-ui/core'; -import { AvatarName } from '@components'; import { useRecoilValue } from 'recoil'; import { readDate } from '@recoil/settings'; +import { AvatarName } from '@components'; import { formatNumber } from '@utils/format_token'; import { useStyles } from './styles'; import { ItemType } from '../../types'; const Mobile: React.FC<{ className?: string; - items: ItemType[]; + items?: ItemType[]; }> = ({ className, items, }) => { - const dateFormat = useRecoilValue(readDate); const classes = useStyles(); - const { t } = useTranslation('validators'); + const { t } = useTranslation('accounts'); + const dateFormat = useRecoilValue(readDate); + const formattedItems = items.map((x) => { + const entries = x.entries.map((y) => ({ + amount: `${formatNumber(y.amount.value, y.amount.exponent)} ${y.amount.displayDenom.toUpperCase()}`, + completionTime: formatDayJs(dayjs.utc(y.completionTime), dateFormat), + })); + return ({ + address: ( + + ), + to: ( + + ), + entries, + }); + }); return (
- {items.map((x, i) => { - const amount = formatNumber(x.amount.value, x.amount.exponent); + {formattedItems.map((x, i) => { return (
@@ -33,48 +55,28 @@ const Mobile: React.FC<{ {t('address')} - -
-
- - {t('from')} - - + {x.address}
{t('to')} - -
-
- - {t('amount')} - - - {`${amount} ${x.amount.displayDenom.toUpperCase()}`} - -
-
- - {t('linkedUntil')} - - - {formatDayJs(dayjs.utc(x.linkedUntil), dateFormat)} - + {x.to}
+ { + x.entries.map((y, index) => { + return ( +
+ + {y.completionTime} + + + {y.amount} + +
+ ); + }) + }
{i !== items.length - 1 && } diff --git a/src/screens/validator_details/components/staking/components/redelegations/index.tsx b/src/screens/validator_details/components/staking/components/redelegations/index.tsx index 7f0e457d21..e8d6bfcffc 100644 --- a/src/screens/validator_details/components/staking/components/redelegations/index.tsx +++ b/src/screens/validator_details/components/staking/components/redelegations/index.tsx @@ -1,29 +1,26 @@ import React from 'react'; +import * as R from 'ramda'; import dynamic from 'next/dynamic'; import classnames from 'classnames'; import { - usePagination, - useScreenSize, + usePagination, useScreenSize, } from '@hooks'; import { - Pagination, NoData, + NoData, Pagination, Loading, } from '@components'; -import { useProfilesRecoil } from '@recoil/profiles'; +import { + useProfilesRecoil, +} from '@recoil/profiles'; import { useStyles } from './styles'; -import { RedelegationType } from '../../../../types'; +import { RedelegationsType } from '../../types'; const Desktop = dynamic(() => import('./components/desktop')); const Mobile = dynamic(() => import('./components/mobile')); const Redelegations: React.FC<{ - className?: string; - data: RedelegationType[]; - count: number; -}> = ({ - className, - data, - count, -}) => { + redelegations: RedelegationsType, + handlePageCallback: (page: number, _rowsPerPage: number) => void; +} & ComponentDefault> = (props) => { const { isDesktop } = useScreenSize(); const classes = useStyles(); const { @@ -31,38 +28,42 @@ const Redelegations: React.FC<{ rowsPerPage, handleChangePage, handleChangeRowsPerPage, - sliceItems, - } = usePagination({}); + } = usePagination({ + pageChangeCallback: props.handlePageCallback, + }); + + const pageItems = R.pathOr([], ['redelegations', 'data', page], props); - const fromProfiles = useProfilesRecoil(data.map((x) => x.from)); - const toProfiles = useProfilesRecoil(data.map((x) => x.to)); - const delegator = useProfilesRecoil(data.map((x) => x.delegator)); - const mergedDataWithProfiles = data.map((x, i) => { + const toProfiles = useProfilesRecoil(pageItems.map((x) => x.to)); + const addressProfiles = useProfilesRecoil(pageItems.map((x) => x.address)); + const mergedDataWithProfiles = pageItems.map((x, i) => { return ({ ...x, - from: fromProfiles[i], to: toProfiles[i], - delegator: delegator[i], + address: addressProfiles[i], }); }); - const items = sliceItems(mergedDataWithProfiles); + + const items = mergedDataWithProfiles; + + let component = null; + + if (props.redelegations.loading) { + component = ; + } else if (!items.length) { + component = ; + } else if (isDesktop) { + component = ; + } else { + component = ; + } return ( -
- {items.length ? ( - <> - {isDesktop ? ( - - ) : ( - - )} - - ) : ( - - )} +
+ {component} +export type ItemType = Override diff --git a/src/screens/validator_details/components/staking/components/tabs/__snapshots__/index.test.tsx.snap b/src/screens/validator_details/components/staking/components/tabs/__snapshots__/index.test.tsx.snap index f4b8db9257..05a1fe4201 100644 --- a/src/screens/validator_details/components/staking/components/tabs/__snapshots__/index.test.tsx.snap +++ b/src/screens/validator_details/components/staking/components/tabs/__snapshots__/index.test.tsx.snap @@ -59,7 +59,7 @@ exports[`screen: Validators/Tabs matches snapshot 1`] = ` - validators:key + accounts:key { const classes = useStyles(); - const { t } = useTranslation('validators'); + const { t } = useTranslation('accounts'); return (
diff --git a/src/screens/validator_details/components/staking/components/unbondings/components/desktop/index.tsx b/src/screens/validator_details/components/staking/components/unbondings/components/desktop/index.tsx new file mode 100644 index 0000000000..f9576e3ec6 --- /dev/null +++ b/src/screens/validator_details/components/staking/components/unbondings/components/desktop/index.tsx @@ -0,0 +1,131 @@ +import React from 'react'; +import classnames from 'classnames'; +import useTranslation from 'next-translate/useTranslation'; +import dayjs, { formatDayJs } from '@utils/dayjs'; +import { + Table, + TableHead, + TableRow, + TableCell, + TableBody, + Typography, +} from '@material-ui/core'; +import { AvatarName } from '@components'; +import { useRecoilValue } from 'recoil'; +import { readDate } from '@recoil/settings'; +import { formatNumber } from '@src/utils/format_token'; +import { columns } from './utils'; +import { ItemType } from '../../types'; +import { useStyles } from './styles'; + +const Desktop: React.FC<{ + className?: string; + items: ItemType[]; +}> = ({ + className, items, +}) => { + const classes = useStyles(); + const { t } = useTranslation('accounts'); + const dateFormat = useRecoilValue(readDate); + const formattedItems = items.map((x) => { + const entries = x.entries.map((y) => ({ + amount: `${formatNumber(y.amount.value, y.amount.exponent)} ${y.amount.displayDenom.toUpperCase()}`, + completionTime: formatDayJs(dayjs.utc(y.completionTime), dateFormat), + })); + return ({ + address: ( + + ), + entries, + }); + }); + + return ( +
+ + + + {columns.map((column) => { + return ( + + {t(column.key)} + + ); + })} + + + + {formattedItems.map((row, i) => ( + + {columns.map((column) => { + const selected = row[column.key]; + if (column.key === 'amount') { + return ( + + {row.entries.map((y, index) => { + return ( +
+ + {y.amount} + +
+ ); + })} +
+ ); + } + + if (column.key === 'completionTime') { + return ( + + {row.entries.map((y, index) => { + return ( +
+ + {y.completionTime} + +
+ ); + })} +
+ ); + } + + return ( + + {selected} + + ); + })} +
+ ))} +
+
+
+ + ); +}; + +export default Desktop; diff --git a/src/screens/validator_details/components/staking/components/unbondings/components/desktop/styles.ts b/src/screens/validator_details/components/staking/components/unbondings/components/desktop/styles.ts new file mode 100644 index 0000000000..11b11770bd --- /dev/null +++ b/src/screens/validator_details/components/staking/components/unbondings/components/desktop/styles.ts @@ -0,0 +1,27 @@ +import { makeStyles } from '@material-ui/core/styles'; + +export const useStyles = () => { + const styles = makeStyles( + (theme) => { + return ({ + wrapper: { + padding: theme.spacing(1), + }, + item: { + padding: theme.spacing(0.5, 0), + '& .label': { + color: theme.palette.custom.fonts.fontThree, + }, + '& p.value': { + color: theme.palette.custom.fonts.fontTwo, + }, + '& a': { + color: theme.palette.custom.fonts.highlight, + }, + }, + }); + }, + )(); + + return styles; +}; diff --git a/src/screens/validator_details/components/staking/components/undelegations/components/desktop/utils.ts b/src/screens/validator_details/components/staking/components/unbondings/components/desktop/utils.ts similarity index 76% rename from src/screens/validator_details/components/staking/components/undelegations/components/desktop/utils.ts rename to src/screens/validator_details/components/staking/components/unbondings/components/desktop/utils.ts index da227ce3cb..539317e104 100644 --- a/src/screens/validator_details/components/staking/components/undelegations/components/desktop/utils.ts +++ b/src/screens/validator_details/components/staking/components/unbondings/components/desktop/utils.ts @@ -5,16 +5,16 @@ export const columns:{ }[] = [ { key: 'address', - width: 34, + width: 40, }, { key: 'amount', - width: 33, align: 'right', + width: 30, }, { - key: 'linkedUntil', - width: 33, + key: 'completionTime', align: 'right', + width: 30, }, ]; diff --git a/src/screens/validator_details/components/staking/components/undelegations/components/index.ts b/src/screens/validator_details/components/staking/components/unbondings/components/index.ts similarity index 100% rename from src/screens/validator_details/components/staking/components/undelegations/components/index.ts rename to src/screens/validator_details/components/staking/components/unbondings/components/index.ts diff --git a/src/screens/validator_details/components/staking/components/undelegations/components/mobile/index.tsx b/src/screens/validator_details/components/staking/components/unbondings/components/mobile/index.tsx similarity index 50% rename from src/screens/validator_details/components/staking/components/undelegations/components/mobile/index.tsx rename to src/screens/validator_details/components/staking/components/unbondings/components/mobile/index.tsx index 3484e0e166..a108ac551b 100644 --- a/src/screens/validator_details/components/staking/components/undelegations/components/mobile/index.tsx +++ b/src/screens/validator_details/components/staking/components/unbondings/components/mobile/index.tsx @@ -1,14 +1,14 @@ import React from 'react'; import classnames from 'classnames'; -import dayjs, { formatDayJs } from '@utils/dayjs'; import useTranslation from 'next-translate/useTranslation'; -import { AvatarName } from '@components'; -import { formatNumber } from '@utils/format_token'; -import { useRecoilValue } from 'recoil'; -import { readDate } from '@recoil/settings'; +import dayjs, { formatDayJs } from '@utils/dayjs'; import { Divider, Typography, } from '@material-ui/core'; +import { AvatarName } from '@components'; +import { useRecoilValue } from 'recoil'; +import { readDate } from '@recoil/settings'; +import { formatNumber } from '@utils/format_token'; import { useStyles } from './styles'; import { ItemType } from '../../types'; @@ -19,12 +19,28 @@ const Mobile: React.FC<{ className, items, }) => { const classes = useStyles(); - const { t } = useTranslation('validators'); + const { t } = useTranslation('accounts'); const dateFormat = useRecoilValue(readDate); + const formattedItems = items.map((x) => { + const entries = x.entries.map((y) => ({ + amount: `${formatNumber(y.amount.value, y.amount.exponent)} ${y.amount.displayDenom.toUpperCase()}`, + completionTime: formatDayJs(dayjs.utc(y.completionTime), dateFormat), + })); + return ({ + address: ( + + ), + entries, + }); + }); + return (
- {items.map((x, i) => { - const amount = formatNumber(x.amount.value, x.amount.exponent); + {formattedItems.map((x, i) => { return (
@@ -32,28 +48,22 @@ const Mobile: React.FC<{ {t('address')} - -
-
- - {t('amount')} - - - {`${amount} ${x.amount.displayDenom.toUpperCase()}`} - -
-
- - {t('linkedUntil')} - - - {formatDayJs(dayjs.utc(x.linkedUntil), dateFormat)} - + {x.address}
+ { + x.entries.map((y, index) => { + return ( +
+ + {y.completionTime} + + + {y.amount} + +
+ ); + }) + }
{i !== items.length - 1 && } diff --git a/src/screens/validator_details/components/staking/components/undelegations/components/mobile/styles.ts b/src/screens/validator_details/components/staking/components/unbondings/components/mobile/styles.ts similarity index 100% rename from src/screens/validator_details/components/staking/components/undelegations/components/mobile/styles.ts rename to src/screens/validator_details/components/staking/components/unbondings/components/mobile/styles.ts diff --git a/src/screens/validator_details/components/staking/components/unbondings/index.tsx b/src/screens/validator_details/components/staking/components/unbondings/index.tsx new file mode 100644 index 0000000000..44c0f0323e --- /dev/null +++ b/src/screens/validator_details/components/staking/components/unbondings/index.tsx @@ -0,0 +1,73 @@ +import React from 'react'; +import * as R from 'ramda'; +import dynamic from 'next/dynamic'; +import classnames from 'classnames'; +import { + usePagination, useScreenSize, +} from '@hooks'; +import { + Pagination, NoData, Loading, +} from '@components'; +import { + useProfilesRecoil, +} from '@recoil/profiles'; +import { useStyles } from './styles'; +import { UnbondingsType } from '../../types'; + +const Desktop = dynamic(() => import('./components/desktop')); +const Mobile = dynamic(() => import('./components/mobile')); + +const Unbondings: React.FC<{ + unbondings: UnbondingsType, + handlePageCallback: (page: number, _rowsPerPage: number) => void; +} & ComponentDefault> = (props) => { + const classes = useStyles(); + const { + page, + rowsPerPage, + handleChangePage, + handleChangeRowsPerPage, + } = usePagination({ + pageChangeCallback: props.handlePageCallback, + }); + const { isDesktop } = useScreenSize(); + + const pageItems = R.pathOr([], ['unbondings', 'data', page], props); + const dataProfiles = useProfilesRecoil(pageItems.map((x) => x.address)); + const mergedDataWithProfiles = pageItems.map((x, i) => { + return ({ + ...x, + address: dataProfiles[i], + }); + }); + + const items = mergedDataWithProfiles; + + let component = null; + + if (props.unbondings.loading) { + component = ; + } else if (!items.length) { + component = ; + } else if (isDesktop) { + component = ; + } else { + component = ; + } + + return ( +
+ {component} + +
+ ); +}; + +export default Unbondings; diff --git a/src/screens/validator_details/components/staking/components/undelegations/styles.tsx b/src/screens/validator_details/components/staking/components/unbondings/styles.tsx similarity index 100% rename from src/screens/validator_details/components/staking/components/undelegations/styles.tsx rename to src/screens/validator_details/components/staking/components/unbondings/styles.tsx diff --git a/src/screens/validator_details/components/staking/components/unbondings/types.ts b/src/screens/validator_details/components/staking/components/unbondings/types.ts new file mode 100644 index 0000000000..c634c6fadb --- /dev/null +++ b/src/screens/validator_details/components/staking/components/unbondings/types.ts @@ -0,0 +1,3 @@ +import { UnbondingType } from '../../types'; + +export type ItemType = Override diff --git a/src/screens/validator_details/components/staking/components/undelegations/components/desktop/index.tsx b/src/screens/validator_details/components/staking/components/undelegations/components/desktop/index.tsx deleted file mode 100644 index 807c781aa4..0000000000 --- a/src/screens/validator_details/components/staking/components/undelegations/components/desktop/index.tsx +++ /dev/null @@ -1,86 +0,0 @@ -import React from 'react'; -import classnames from 'classnames'; -import dayjs, { formatDayJs } from '@utils/dayjs'; -import { formatNumber } from '@utils/format_token'; -import useTranslation from 'next-translate/useTranslation'; -import { - Table, - TableHead, - TableRow, - TableCell, - TableBody, -} from '@material-ui/core'; -import { AvatarName } from '@components'; -import { useRecoilValue } from 'recoil'; -import { readDate } from '@recoil/settings'; -import { getMiddleEllipsis } from '@utils/get_middle_ellipsis'; -import { columns } from './utils'; -import { ItemType } from '../../types'; - -const Desktop: React.FC<{ - className?: string; - items: ItemType[]; -}> = ({ - className, items, -}) => { - const { t } = useTranslation('validators'); - const dateFormat = useRecoilValue(readDate); - const formattedItems = items.map((x) => { - const amount = formatNumber(x.amount.value, x.amount.exponent); - return ({ - address: ( - 20 ? getMiddleEllipsis(x.delegator.name, { - beginning: 12, ending: 10, - }) : x.delegator.name} - /> - ), - linkedUntil: formatDayJs(dayjs.utc(x.linkedUntil), dateFormat), - amount: `${amount} ${x.amount.displayDenom.toUpperCase()}`, - }); - }); - - return ( -
- - - - {columns.map((column) => { - return ( - - {t(column.key)} - - ); - })} - - - - {formattedItems.map((row, i) => ( - - {columns.map((column) => { - return ( - - {row[column.key]} - - ); - })} - - ))} - -
-
- - ); -}; - -export default Desktop; diff --git a/src/screens/validator_details/components/staking/components/undelegations/index.tsx b/src/screens/validator_details/components/staking/components/undelegations/index.tsx deleted file mode 100644 index 648aea9c8b..0000000000 --- a/src/screens/validator_details/components/staking/components/undelegations/index.tsx +++ /dev/null @@ -1,73 +0,0 @@ -import React from 'react'; -import dynamic from 'next/dynamic'; -import classnames from 'classnames'; -import { - usePagination, - useScreenSize, -} from '@hooks'; -import { - Pagination, NoData, -} from '@components'; -import { useProfilesRecoil } from '@recoil/profiles'; -import { useStyles } from './styles'; -import { UndelegationType } from '../../../../types'; - -const Desktop = dynamic(() => import('./components/desktop')); -const Mobile = dynamic(() => import('./components/mobile')); - -const Undelegations: React.FC<{ - className?: string; - data: UndelegationType[]; - count: number; -}> = ({ - className, - data, - count, -}) => { - const { isDesktop } = useScreenSize(); - const classes = useStyles(); - const { - page, - rowsPerPage, - handleChangePage, - handleChangeRowsPerPage, - sliceItems, - } = usePagination({}); - - const dataProfiles = useProfilesRecoil(data.map((x) => x.delegator)); - const mergedDataWithProfiles = data.map((x, i) => { - return ({ - ...x, - delegator: dataProfiles[i], - }); - }); - - const items = sliceItems(mergedDataWithProfiles); - - return ( -
- {items.length ? ( - <> - {isDesktop ? ( - - ) : ( - - )} - - ) : ( - - )} - -
- ); -}; - -export default Undelegations; diff --git a/src/screens/validator_details/components/staking/components/undelegations/types.ts b/src/screens/validator_details/components/staking/components/undelegations/types.ts deleted file mode 100644 index 80962dc352..0000000000 --- a/src/screens/validator_details/components/staking/components/undelegations/types.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { UndelegationType } from '../../../../types'; - -export type ItemType = Override diff --git a/src/screens/validator_details/components/staking/hooks.tsx b/src/screens/validator_details/components/staking/hooks.tsx index 1fb0c707df..8be60244eb 100644 --- a/src/screens/validator_details/components/staking/hooks.tsx +++ b/src/screens/validator_details/components/staking/hooks.tsx @@ -1,10 +1,41 @@ import { useState } from 'react'; +import * as R from 'ramda'; +import { useRouter } from 'next/router'; +import { + useValidatorDelegationsQuery, + ValidatorDelegationsQuery, + useValidatorRedelegationsQuery, + ValidatorRedelegationsQuery, + useValidatorUndelegationsQuery, + ValidatorUndelegationsQuery, +} from '@graphql/types'; +import { + formatToken, +} from '@utils/format_token'; +import { chainConfig } from '@configs'; +import { StakingState } from './types'; + +const stakingDefault = { + data: {}, + count: 0, + loading: true, +}; + +const LIMIT = 10; export const useStaking = () => { - const [state, setState] = useState({ + const router = useRouter(); + const [state, setState] = useState({ tab: 0, + delegations: stakingDefault, + redelegations: stakingDefault, + unbondings: stakingDefault, }); + const handleSetState = (stateChange: any) => { + setState((prevState) => R.mergeDeepLeft(stateChange, prevState)); + }; + const handleTabChange = (_event: any, newValue: number) => { setState((prevState) => ({ ...prevState, @@ -12,8 +43,224 @@ export const useStaking = () => { })); }; + // ===================================== + // delegations + // ===================================== + const delegationsQuery = useValidatorDelegationsQuery({ + variables: { + validatorAddress: R.pathOr('', ['query', 'address'], router), + limit: LIMIT, + }, + onCompleted: (data) => { + const formattedData = formatDelegations(data); + handleSetState({ + delegations: { + loading: false, + count: R.pathOr(0, ['delegations', 'pagination', 'total'], data), + data: { + 0: formattedData, + }, + }, + }); + }, + onError: () => { + handleSetState({ + delegations: { + loading: false, + }, + }); + }, + }); + + const formatDelegations = (data: ValidatorDelegationsQuery) => { + const delegations = R.pathOr([], ['delegations', 'delegations'], data); + return delegations + .map((x) => { + const address = R.pathOr('', ['delegator_address'], x); + return ({ + address, + amount: formatToken(x.coins.amount, x.coins.denom), + }); + }); + }; + + const handleDelegationPageCallback = async (page: number, _rowsPerPage: number) => { + if (!state.delegations.data[page]) { + handleSetState({ + delegations: { + loading: true, + }, + }); + + await delegationsQuery.fetchMore({ + variables: { + offset: page * LIMIT, + limit: LIMIT, + }, + }).then(({ data }) => { + handleSetState({ + delegations: { + loading: false, + data: { + [page]: formatDelegations(data), + }, + }, + }); + }); + } + }; + + // ===================================== + // redelegations + // ===================================== + const redelegationsQuery = useValidatorRedelegationsQuery({ + variables: { + validatorAddress: R.pathOr('', ['query', 'address'], router), + limit: LIMIT, + }, + onCompleted: (data) => { + const formattedData = formatRedelegations(data); + handleSetState({ + redelegations: { + loading: false, + count: R.pathOr(0, ['redelegations', 'pagination', 'total'], data), + data: { + 0: formattedData, + }, + }, + }); + }, + onError: () => { + handleSetState({ + redelegations: { + loading: false, + }, + }); + }, + }); + + const formatRedelegations = (data: ValidatorRedelegationsQuery) => { + const redelegations = R.pathOr([], ['redelegations', 'redelegations'], data); + return redelegations + .map((x) => { + const to = R.pathOr('', ['validator_dst_address'], x); + const address = R.pathOr('', ['delegator_address'], x); + const entries = R.pathOr([], ['entries'], x).map((y) => ({ + amount: formatToken(y.balance, chainConfig.primaryTokenUnit), + completionTime: R.pathOr('', ['completion_time'], y), + })); + + return ({ + address, + to, + entries, + }); + }); + }; + + const handleRedelegationPageCallback = async (page: number, _rowsPerPage: number) => { + if (!state.unbondings.data[page]) { + handleSetState({ + redelegations: { + loading: true, + }, + }); + + await redelegationsQuery.fetchMore({ + variables: { + offset: page * LIMIT, + limit: LIMIT, + }, + }).then(({ data }) => { + handleSetState({ + redelegations: { + loading: false, + data: { + [page]: formatRedelegations(data), + }, + }, + }); + }); + } + }; + + // ===================================== + // unbondings + // ===================================== + const unbondingsQuery = useValidatorUndelegationsQuery({ + variables: { + validatorAddress: R.pathOr('', ['query', 'address'], router), + limit: LIMIT, + }, + onCompleted: (data) => { + const formattedData = formatUnbondings(data); + handleSetState({ + unbondings: { + loading: false, + count: R.pathOr(0, ['undelegations', 'pagination', 'total'], data), + data: { + 0: formattedData, + }, + }, + }); + }, + onError: () => { + handleSetState({ + unbondings: { + loading: false, + }, + }); + }, + }); + + const formatUnbondings = (data: ValidatorUndelegationsQuery) => { + const unbondings = R.pathOr([], ['undelegations', 'undelegations'], data); + return unbondings + .map((x) => { + const address = R.pathOr('', ['delegator_address'], x); + const entries = R.pathOr([], ['entries'], x).map((y) => ({ + amount: formatToken(y.balance, chainConfig.primaryTokenUnit), + completionTime: R.pathOr('', ['completion_time'], y), + })); + + return ({ + address, + entries, + }); + }); + }; + + const handleUnbondingPageCallback = async (page: number, _rowsPerPage: number) => { + if (!state.unbondings.data[page]) { + handleSetState({ + unbondings: { + loading: true, + }, + }); + + await unbondingsQuery.fetchMore({ + variables: { + offset: page * LIMIT, + limit: LIMIT, + }, + }).then(({ data }) => { + handleSetState({ + unbondings: { + loading: false, + data: { + [page]: formatUnbondings(data), + }, + }, + }); + }); + } + }; + return { state, handleTabChange, + handleDelegationPageCallback, + handleUnbondingPageCallback, + handleRedelegationPageCallback, }; }; diff --git a/src/screens/validator_details/components/staking/index.tsx b/src/screens/validator_details/components/staking/index.tsx index b09b73365e..f22a8f65e9 100644 --- a/src/screens/validator_details/components/staking/index.tsx +++ b/src/screens/validator_details/components/staking/index.tsx @@ -7,33 +7,19 @@ import { import { Tabs } from './components'; import { useStaking } from './hooks'; import { useStyles } from './styles'; -import { - RedelegationType, UndelegationType, DelegationType, -} from '../../types'; const Delegations = dynamic(() => import('./components/delegations')); const Redelgations = dynamic(() => import('./components/redelegations')); -const Undelegations = dynamic(() => import('./components/undelegations')); +const Unbondings = dynamic(() => import('./components/unbondings')); -const Staking: React.FC<{ - className?: string; - delegations: { - data: DelegationType[]; - count: number; - } - redelegations: { - data: RedelegationType[]; - count: number; - } - undelegations: { - data: UndelegationType[]; - count: number; - } -}> = (props) => { +const Staking: React.FC = (props) => { const classes = useStyles(); const { state, handleTabChange, + handleDelegationPageCallback, + handleUnbondingPageCallback, + handleRedelegationPageCallback, } = useStaking(); const tabs = [ @@ -42,34 +28,33 @@ const Staking: React.FC<{ key: 'delegations', component: ( ), - count: props.delegations.count, + count: state.delegations.count, }, { id: 1, key: 'redelegations', component: ( ), - data: props.redelegations, - count: props.redelegations.count, + count: state.redelegations.count, }, { id: 2, - key: 'undelegations', + key: 'unbondings', component: ( - ), - count: props.undelegations.count, + count: state.unbondings.count, }, ]; diff --git a/src/screens/validator_details/components/staking/types.ts b/src/screens/validator_details/components/staking/types.ts new file mode 100644 index 0000000000..ed0cc49147 --- /dev/null +++ b/src/screens/validator_details/components/staking/types.ts @@ -0,0 +1,40 @@ +export type StakingType = { + data: { + [value:number]: g[]; + }; + count: number; + loading: boolean; +} + +export type DelegationType = { + address: string; + amount: TokenUnit; +} + +export type RedelegationType = { + address: string; + to: string; + entries: { + amount: TokenUnit; + completionTime: string; + }[]; +} + +export type UnbondingType = { + address: string; + entries: { + amount: TokenUnit; + completionTime: string; + }[]; +} + +export type DelegationsType = StakingType; +export type RedelegationsType = StakingType; +export type UnbondingsType = StakingType; + +export type StakingState = { + tab: number; + delegations: DelegationsType; + redelegations: RedelegationsType; + unbondings: UnbondingsType; +} diff --git a/src/screens/validator_details/components/staking/utils.tsx b/src/screens/validator_details/components/staking/utils.tsx deleted file mode 100644 index 358d368acc..0000000000 --- a/src/screens/validator_details/components/staking/utils.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import { - Delegations, - Redelgations, - Undelegations, -} from './components'; -import { - RedelegationType, UndelegationType, DelegationType, -} from '../../types'; - -export const getTabs = (staking: { - delegations: DelegationType[]; - redelegations: RedelegationType[]; - undelegations: UndelegationType[]; -}) => { - return ([ - { - id: 0, - key: 'delegations', - component: Delegations, - count: staking.delegations.length, - }, - { - id: 1, - key: 'redelegations', - component: Redelgations, - count: staking.redelegations.length, - }, - { - id: 2, - key: 'undelegations', - component: Undelegations, - count: staking.undelegations.length, - }, - ]); -}; diff --git a/src/screens/validator_details/components/voting_power/index.tsx b/src/screens/validator_details/components/voting_power/index.tsx index f57485698d..769fcdccf2 100644 --- a/src/screens/validator_details/components/voting_power/index.tsx +++ b/src/screens/validator_details/components/voting_power/index.tsx @@ -27,8 +27,6 @@ const VotingPower: React.FC<{ const classes = useStyles(votingPowerPercent.format(0, Math.floor)); const votingPower = status === 3 ? numeral(data.self).format('0,0') : '0'; - const selfDelegatedAmount = status === 3 ? numeral(data.selfDelegate.value).format('0,0') : '0'; - const selfDelegatePercent = status === 3 ? `${numeral(data.selfDelegatePercent).format('0.[00]')}%` : '0%'; return ( @@ -70,14 +68,10 @@ const VotingPower: React.FC<{
- {t('selfDelegatedTokens')} + {t('votingPowerPercent')} - {selfDelegatedAmount} - {' '} - ( - {selfDelegatePercent} - ) + {`${votingPowerPercent.format('0,0.00')}%`}
diff --git a/src/screens/validator_details/hooks.ts b/src/screens/validator_details/hooks.ts index 1051f79a24..f622465aec 100644 --- a/src/screens/validator_details/hooks.ts +++ b/src/screens/validator_details/hooks.ts @@ -1,12 +1,9 @@ import { useState, useEffect, } from 'react'; -import Big from 'big.js'; import * as R from 'ramda'; import { useRouter } from 'next/router'; import { formatToken } from '@utils/format_token'; -import numeral from 'numeral'; -import dayjs from '@utils/dayjs'; import { convertMsgsToModels } from '@msg'; import { useValidatorDetailsQuery, @@ -57,20 +54,6 @@ const initialState: ValidatorDetailsState = { height: 0, overall: initialTokenDenom, self: 0, - selfDelegatePercent: 0, - selfDelegate: initialTokenDenom, - }, - delegations: { - count: 0, - data: [], - }, - redelegations: { - count: 0, - data: [], - }, - undelegations: { - count: 0, - data: [], }, transactions: { data: [], @@ -80,8 +63,6 @@ const initialState: ValidatorDetailsState = { }, }; -const UTC_NOW = dayjs.utc().format('YYYY-MM-DDTHH:mm:ss'); - export const useValidatorDetails = () => { const router = useRouter(); const [state, setState] = useState(initialState); @@ -120,7 +101,6 @@ export const useValidatorDetails = () => { useValidatorDetailsQuery({ variables: { address: R.pathOr('', ['query', 'address'], router), - utc: UTC_NOW, }, onCompleted: (data) => { handleSetState(formatAccountQuery(data)); @@ -281,25 +261,10 @@ export const useValidatorDetails = () => { // votingPower // ============================ const formatVotingPower = () => { - const self = R.pathOr(0, ['validatorVotingPowers', 0, 'votingPower'], data.validator[0]); - - const totalDelegations = data.validator[0].delegations.reduce((a, b) => { - return a + numeral(R.pathOr(0, ['amount', 'amount'], b)).value(); - }, 0); - - const [selfDelegate] = data.validator[0].delegations.filter( - (x) => x.delegatorAddress === data.validator[0].validatorInfo.selfDelegateAddress, - ); - const selfDelegateAmount = formatToken( - numeral(R.pathOr(0, ['amount', 'amount'], selfDelegate)).value(), - R.pathOr(0, ['amount', 'denom'], selfDelegate), - ); - const selfDelegatePercent = (numeral(R.pathOr(0, ['amount', 'amount'], selfDelegate)).value() / totalDelegations) * 100; + const selfVotingPower = R.pathOr(0, ['validatorVotingPowers', 0, 'votingPower'], data.validator[0]); const votingPower = { - self, - selfDelegate: selfDelegateAmount, - selfDelegatePercent, + self: selfVotingPower, overall: formatToken( R.pathOr(0, ['stakingPool', 0, 'bonded'], data), chainConfig.votingPowerTokenUnit, @@ -311,76 +276,6 @@ export const useValidatorDetails = () => { }; stateChange.votingPower = formatVotingPower(); - // ============================ - // delegations - // ============================ - const formatDelegations = () => { - const delegations = data.validator[0].delegations.map((x) => { - return ({ - amount: formatToken(x.amount.amount, x.amount.denom), - delegator: x.delegatorAddress, - }); - }).sort((a, b) => (Big(a.amount.value).lt(b.amount.value) ? 1 : -1)); - return { - data: delegations, - count: delegations.length, - }; - }; - stateChange.delegations = formatDelegations(); - - // ============================ - // redelegations - // ============================ - const formatRedelegations = () => { - const redelegations = [ - ...data.validator[0].redelegationsByDstValidatorAddress.map((x) => { - return ({ - to: x.to, - from: x.from, - linkedUntil: x.completionTime, - amount: formatToken(x.amount.amount, x.amount.denom), - delegator: x.delegatorAddress, - }); - }), - ...data.validator[0].redelegationsBySrcValidatorAddress.map((x) => { - return ({ - to: x.to, - from: x.from, - linkedUntil: x.completionTime, - amount: formatToken(x.amount.amount, x.amount.denom), - delegator: x.delegatorAddress, - }); - }), - ].sort((a, b) => (Big(a.amount.value).lt(b.amount.value) ? 1 : -1)); - - return { - data: redelegations, - count: redelegations.length, - }; - }; - state.redelegations = formatRedelegations(); - - // ============================ - // unbondings - // ============================ - const formatUndelegations = () => { - const undelegations = data.validator[0].unbonding.map((x) => { - return ({ - delegator: x.delegatorAddress, - amount: formatToken(x.amount.amount, x.amount.denom), - linkedUntil: x.completionTimestamp, - commission: R.pathOr(0, ['validator', 'validatorCommissions', 0, 'commission'], x), - }); - }).sort((a, b) => (Big(a.amount.value).lt(b.amount.value) ? 1 : -1)); - - return { - data: undelegations, - count: undelegations.length, - }; - }; - - state.undelegations = formatUndelegations(); - return stateChange; }; diff --git a/src/screens/validator_details/index.tsx b/src/screens/validator_details/index.tsx index 99372e4ca1..46d8a25f0b 100644 --- a/src/screens/validator_details/index.tsx +++ b/src/screens/validator_details/index.tsx @@ -26,9 +26,6 @@ const ValidatorDetails = () => { } = useValidatorDetails(); const { overview, - delegations, - redelegations, - undelegations, desmosProfile, status, } = state; @@ -88,9 +85,6 @@ const ValidatorDetails = () => { ), commission: `${numeral(x.commission).format('0.[00]')}%`, - self: `${numeral(x.selfPercent).format('0.[00]')}%`, condition: ( ), diff --git a/src/screens/validators/components/list/components/desktop/utils.tsx b/src/screens/validators/components/list/components/desktop/utils.tsx index 9a17576077..92bfbf216a 100644 --- a/src/screens/validators/components/list/components/desktop/utils.tsx +++ b/src/screens/validators/components/list/components/desktop/utils.tsx @@ -22,40 +22,26 @@ export const fetchColumns = (t): { { key: 'validator', sortKey: 'validator.name', - width: 19, + width: 25, sort: true, }, { key: 'votingPower', sortKey: 'votingPower', - width: 19, + width: 30, sort: true, }, { key: 'commission', sortKey: 'commission', align: 'right', - width: 11, - sort: true, - }, - { - key: 'self', - sortKey: 'selfPercent', - align: 'right', - width: 11, - sort: true, - }, - { - key: 'delegators', - sortKey: 'delegators', - align: 'right', - width: 11, + width: 15, sort: true, }, { key: 'condition', align: 'center', - width: 14, + width: 15, component: ( {t('condition')} diff --git a/src/screens/validators/components/list/components/mobile/component/single_validator/index.tsx b/src/screens/validators/components/list/components/mobile/component/single_validator/index.tsx index 885a3a8ed7..d5a5377d77 100644 --- a/src/screens/validators/components/list/components/mobile/component/single_validator/index.tsx +++ b/src/screens/validators/components/list/components/mobile/component/single_validator/index.tsx @@ -11,7 +11,6 @@ const SingleValidator: React.FC<{ idx: string; validator: React.ReactNode; commission: string; - self: string; votingPower: React.ReactNode; status: { status: string; @@ -20,34 +19,14 @@ const SingleValidator: React.FC<{ }> = ({ className, validator, - self, commission, votingPower, - idx, status, }) => { const { t } = useTranslation('validators'); const classes = useStyles(); return (
-
-
- - {t('idx')} - - - {idx} - -
-
- - {t('status')} - - - {t(status.status)} - -
-
{t('validator')} @@ -63,10 +42,10 @@ const SingleValidator: React.FC<{
- {t('self')} + {t('status')} - - {self} + + {t(status.status)}
diff --git a/src/screens/validators/components/list/components/mobile/index.tsx b/src/screens/validators/components/list/components/mobile/index.tsx index aeed250d9d..3db6afcfa3 100644 --- a/src/screens/validators/components/list/components/mobile/index.tsx +++ b/src/screens/validators/components/list/components/mobile/index.tsx @@ -36,7 +36,6 @@ const Mobile: React.FC<{ const votingPower = numeral(x.votingPower).format('0,0'); return ({ idx: `#${i + 1}`, - delegators: numeral(x.delegators).format('0,0'), validator: ( ), commission: `${numeral(x.commission).format('0.[00]')}%`, - self: `${numeral(x.selfPercent).format('0.[00]')}%`, condition: ( ), diff --git a/src/screens/validators/components/list/hooks.ts b/src/screens/validators/components/list/hooks.ts index cab106c336..c59690ffd7 100644 --- a/src/screens/validators/components/list/hooks.ts +++ b/src/screens/validators/components/list/hooks.ts @@ -59,17 +59,6 @@ export const useValidators = () => { let formattedItems: ValidatorType[] = data.validator.filter((x) => x.validatorInfo).map((x) => { const votingPower = R.pathOr(0, ['validatorVotingPowers', 0, 'votingPower'], x); const votingPowerPercent = numeral((votingPower / votingPowerOverall) * 100).value(); - const totalDelegations = x.delegations.reduce((a, b) => { - return a + numeral(R.pathOr(0, ['amount', 'amount'], b)).value(); - }, 0); - - const [selfDelegation] = x.delegations.filter( - (y) => { - return y.delegatorAddress === x.validatorInfo.selfDelegateAddress; - }, - ); - const self = numeral(R.pathOr(0, ['amount', 'amount'], selfDelegation)).value(); - const selfPercent = (self / (totalDelegations || 1)) * 100; const missedBlockCounter = R.pathOr(0, ['validatorSigningInfos', 0, 'missedBlocksCounter'], x); const condition = getValidatorCondition(signedBlockWindow, missedBlockCounter); @@ -79,13 +68,10 @@ export const useValidators = () => { votingPower, votingPowerPercent, commission: R.pathOr(0, ['validatorCommissions', 0, 'commission'], x) * 100, - self, - selfPercent, condition, status: R.pathOr(0, ['validatorStatuses', 0, 'status'], x), jailed: R.pathOr(false, ['validatorStatuses', 0, 'jailed'], x), tombstoned: R.pathOr(false, ['validatorSigningInfos', 0, 'tombstoned'], x), - delegators: x.delegations.length, }); }); diff --git a/src/screens/validators/components/list/types.ts b/src/screens/validators/components/list/types.ts index 39ca35a491..71cd637066 100644 --- a/src/screens/validators/components/list/types.ts +++ b/src/screens/validators/components/list/types.ts @@ -3,12 +3,10 @@ export type ValidatorType = { votingPower: number; votingPowerPercent: number; commission: number; - selfPercent: number; condition: number; status: number; jailed: boolean; tombstoned: boolean; - delegators: number; topVotingPower?: boolean; // top 34% VP } diff --git a/src/utils/get_denom.ts b/src/utils/get_denom.ts index fc787bab56..36db5d816b 100644 --- a/src/utils/get_denom.ts +++ b/src/utils/get_denom.ts @@ -6,7 +6,7 @@ import { chainConfig } from '@configs'; * @param value The value in base denom value */ export const getDenom = ( - list: {denom: string, amount: string | number}[], + list: {denom: string, amount: string | number}[] = [], denom = chainConfig.primaryTokenUnit, ): { denom: string; diff --git a/src/utils/prefix_convert.ts b/src/utils/prefix_convert.ts new file mode 100644 index 0000000000..899e3d7a17 --- /dev/null +++ b/src/utils/prefix_convert.ts @@ -0,0 +1,10 @@ +import { bech32 } from 'bech32'; +import { chainConfig } from '@configs'; + +export const toValidatorAddress = (address: string) => { + if (!address) { + return ''; + } + const decode = bech32.decode(address).words; + return bech32.encode(chainConfig.prefix.validator, decode); +}; From e09a40ba0cf729f32f98b03622a4c5ac203d2c20 Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Mon, 14 Feb 2022 11:34:56 +0800 Subject: [PATCH 10/54] update logic (#704) --- CHANGELOG.md | 7 ++++++- src/components/nav/components/title_bar/utils.ts | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d4d82e36b..ca6e37eafa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ -# base-v2.0.0 - 2021-02-07 +# Unreleased + +## Changes +- Updated market cap display ([\#698](https://github.com/forbole/big-dipper-2.0-cosmos/issues/698)) + +# base-v2.0.0-rc1 - 2021-02-07 ## Changes - Updated Hasura Actions diff --git a/src/components/nav/components/title_bar/utils.ts b/src/components/nav/components/title_bar/utils.ts index 955d50ab74..f6b4cfa740 100644 --- a/src/components/nav/components/title_bar/utils.ts +++ b/src/components/nav/components/title_bar/utils.ts @@ -8,7 +8,8 @@ export const formatMarket = (data: { inflation: number; apr: number; }) => { - const marketCap = data.marketCap !== null ? `$${formatNumber(data.marketCap.toString(), 2)}` : 'N/A'; + const exludedItems = [null, 0]; + const marketCap = exludedItems.includes(data.marketCap) ? 'N/A' : `$${formatNumber(data.marketCap.toString(), 2)}`; return ([ { From 00a31d69ceb115f45336af5256987e5aa52b2b7d Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Wed, 16 Feb 2022 11:22:04 +0800 Subject: [PATCH 11/54] Update/dependencies 1 (#710) --- next-env.d.ts | 1 - package-lock.json | 3060 +++++++++++++++------------------------------ package.json | 4 +- 3 files changed, 1042 insertions(+), 2023 deletions(-) diff --git a/next-env.d.ts b/next-env.d.ts index 9bc3dd46b9..4f11a03dc6 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,5 +1,4 @@ /// -/// /// // NOTE: This file should not be edited diff --git a/package-lock.json b/package-lock.json index 152868dae3..ad51b448c9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41,16 +41,11 @@ } } }, - "@ardatan/fetch-event-source": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@ardatan/fetch-event-source/-/fetch-event-source-2.0.2.tgz", - "integrity": "sha512-mcpz/wJ7s50PJIVz4OQ1Yim3w/AAchtYtIg0QMWiMR2cZZoI9t23hRyqeumtD5EmyJu0fxtjmQ5WY8GI86V4rQ==", - "dev": true - }, "@babel/code-frame": { "version": "7.12.11", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", + "dev": true, "requires": { "@babel/highlight": "^7.10.4" } @@ -818,7 +813,8 @@ "@babel/helper-validator-identifier": { "version": "7.12.11", "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz", - "integrity": "sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==" + "integrity": "sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==", + "dev": true }, "@babel/helper-validator-option": { "version": "7.12.17", @@ -971,6 +967,7 @@ "version": "7.13.10", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.13.10.tgz", "integrity": "sha512-5aPpe5XQPzflQrFwL1/QoeHkP2MsA4JCntcXHRhEsdsfPVkvPi2w7Qix4iV7t5S/oC9OodGrggd8aco1g3SZFg==", + "dev": true, "requires": { "@babel/helper-validator-identifier": "^7.12.11", "chalk": "^2.0.0", @@ -2065,23 +2062,23 @@ } }, "@graphql-codegen/cli": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@graphql-codegen/cli/-/cli-2.0.1.tgz", - "integrity": "sha512-ExCS7w0INpeKvIuPq2y1xfb0L6X2p4bP8Ai+CAsMpW7Yp7F2U/oe/2YBJkCi82oXyOkohW9Z04s/TI1f8xzNLQ==", - "dev": true, - "requires": { - "@graphql-codegen/core": "2.0.0", - "@graphql-codegen/plugin-helpers": "^2.0.0", - "@graphql-tools/apollo-engine-loader": "^7.0.1", - "@graphql-tools/code-file-loader": "^7.0.1", - "@graphql-tools/git-loader": "^7.0.1", - "@graphql-tools/github-loader": "^7.0.1", - "@graphql-tools/graphql-file-loader": "^7.0.1", - "@graphql-tools/json-file-loader": "^7.0.1", - "@graphql-tools/load": "^7.1.0", - "@graphql-tools/prisma-loader": "^7.0.1", - "@graphql-tools/url-loader": "^7.0.3", - "@graphql-tools/utils": "^8.0.1", + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/@graphql-codegen/cli/-/cli-2.6.1.tgz", + "integrity": "sha512-bIpnujBEg/WRv0wl4W309hNUDK+glnSOkKQiuT2LpSN0nvJNsJsi1k4NCA4SGWs5ZbyLkWflfOXxEVkv5fVWZA==", + "dev": true, + "requires": { + "@graphql-codegen/core": "2.5.1", + "@graphql-codegen/plugin-helpers": "^2.4.1", + "@graphql-tools/apollo-engine-loader": "^7.0.5", + "@graphql-tools/code-file-loader": "^7.0.6", + "@graphql-tools/git-loader": "^7.0.5", + "@graphql-tools/github-loader": "^7.0.5", + "@graphql-tools/graphql-file-loader": "^7.0.5", + "@graphql-tools/json-file-loader": "^7.1.2", + "@graphql-tools/load": "^7.3.0", + "@graphql-tools/prisma-loader": "^7.0.6", + "@graphql-tools/url-loader": "^7.0.11", + "@graphql-tools/utils": "^8.1.1", "ansi-escapes": "^4.3.1", "chalk": "^4.1.0", "change-case-all": "1.0.14", @@ -2093,8 +2090,8 @@ "detect-indent": "^6.0.0", "glob": "^7.1.6", "globby": "^11.0.4", - "graphql-config": "^4.0.1", - "inquirer": "^7.3.3", + "graphql-config": "^4.1.0", + "inquirer": "^8.0.0", "is-glob": "^4.0.1", "json-to-pretty-yaml": "^1.2.2", "latest-version": "5.1.0", @@ -2113,22 +2110,31 @@ }, "dependencies": { "@graphql-codegen/plugin-helpers": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-2.0.0.tgz", - "integrity": "sha512-SkJeDIpSZbQA+t86t7y5yHn7uN6W/lDxiOi/JWxZRPW5Y5pZY+SP1GMOQgKUkwcS9jF3+ISSxBcE+KDVqluqCg==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-2.4.1.tgz", + "integrity": "sha512-OPMma7aUnES3Dh+M0BfiNBnJLmYuH60EnbULAhufxFDn/Y2OA0Ht/LQok9beX6VN4ASZEMCOAGItJezGJr5DJw==", "dev": true, "requires": { - "@graphql-tools/utils": "^8.0.1", - "common-tags": "1.8.0", + "@graphql-tools/utils": "^8.5.2", + "change-case-all": "1.0.14", + "common-tags": "1.8.2", "import-from": "4.0.0", "lodash": "~4.17.0", "tslib": "~2.3.0" + }, + "dependencies": { + "common-tags": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", + "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==", + "dev": true + } } }, "@graphql-tools/utils": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.1.0.tgz", - "integrity": "sha512-V5a7xAxZ6DHzrYYticmsLgWim+vGnC6ztbiOXrO5cGtOOk5NSK657SZXsyVOR7hNvdWiHSW0dlBZb6zkkfOnHA==", + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.6.1.tgz", + "integrity": "sha512-uxcfHCocp4ENoIiovPxUWZEHOnbXqj3ekWc0rm7fUhW93a1xheARNHcNKhwMTR+UKXVJbTFQdGI1Rl5XdyvDBg==", "dev": true, "requires": { "tslib": "~2.3.0" @@ -2182,9 +2188,9 @@ } }, "chokidar": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.2.tgz", - "integrity": "sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==", + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", "dev": true, "requires": { "anymatch": "~3.1.2", @@ -2212,17 +2218,30 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, + "fast-glob": { + "version": "3.2.11", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", + "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + } + }, "globby": { - "version": "11.0.4", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz", - "integrity": "sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==", + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "dev": true, "requires": { "array-union": "^2.1.0", "dir-glob": "^3.0.1", - "fast-glob": "^3.1.1", - "ignore": "^5.1.4", - "merge2": "^1.3.0", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", "slash": "^3.0.0" } }, @@ -2232,12 +2251,36 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, + "ignore": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", + "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "dev": true + }, "import-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/import-from/-/import-from-4.0.0.tgz", "integrity": "sha512-P9J71vT5nLlDeV8FHs5nNxaLbrpfAV5cF5srvbZfpwpcJoM/xZR3hiv+q+SAnuSmuGbXMWud063iIMx/V/EWZQ==", "dev": true }, + "micromatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", + "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", + "dev": true, + "requires": { + "braces": "^3.0.1", + "picomatch": "^2.2.3" + }, + "dependencies": { + "picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true + } + } + }, "readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", @@ -2265,39 +2308,64 @@ } }, "@graphql-codegen/core": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@graphql-codegen/core/-/core-2.0.0.tgz", - "integrity": "sha512-58NwI1WiJLElrsLGAryb/A9G+G61vYv97xDNm9P0XI8sDSbp/JcFkfrSk18HgdWpxxZYCFdPp7qr/DMWKqt0xQ==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@graphql-codegen/core/-/core-2.5.1.tgz", + "integrity": "sha512-alctBVl2hMnBXDLwkgmnFPrZVIiBDsWJSmxJcM4GKg1PB23+xuov35GE47YAyAhQItE1B1fbYnbb1PtGiDZ4LA==", "dev": true, "requires": { - "@graphql-codegen/plugin-helpers": "^2.0.0", - "@graphql-tools/merge": "^6.2.16", - "@graphql-tools/utils": "^8.0.1", + "@graphql-codegen/plugin-helpers": "^2.4.1", + "@graphql-tools/schema": "^8.1.2", + "@graphql-tools/utils": "^8.1.1", "tslib": "~2.3.0" }, "dependencies": { "@graphql-codegen/plugin-helpers": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-2.0.0.tgz", - "integrity": "sha512-SkJeDIpSZbQA+t86t7y5yHn7uN6W/lDxiOi/JWxZRPW5Y5pZY+SP1GMOQgKUkwcS9jF3+ISSxBcE+KDVqluqCg==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-2.4.1.tgz", + "integrity": "sha512-OPMma7aUnES3Dh+M0BfiNBnJLmYuH60EnbULAhufxFDn/Y2OA0Ht/LQok9beX6VN4ASZEMCOAGItJezGJr5DJw==", "dev": true, "requires": { - "@graphql-tools/utils": "^8.0.1", - "common-tags": "1.8.0", + "@graphql-tools/utils": "^8.5.2", + "change-case-all": "1.0.14", + "common-tags": "1.8.2", "import-from": "4.0.0", "lodash": "~4.17.0", "tslib": "~2.3.0" } }, "@graphql-tools/utils": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.1.0.tgz", - "integrity": "sha512-V5a7xAxZ6DHzrYYticmsLgWim+vGnC6ztbiOXrO5cGtOOk5NSK657SZXsyVOR7hNvdWiHSW0dlBZb6zkkfOnHA==", + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.6.1.tgz", + "integrity": "sha512-uxcfHCocp4ENoIiovPxUWZEHOnbXqj3ekWc0rm7fUhW93a1xheARNHcNKhwMTR+UKXVJbTFQdGI1Rl5XdyvDBg==", "dev": true, "requires": { "tslib": "~2.3.0" } }, + "change-case-all": { + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.14.tgz", + "integrity": "sha512-CWVm2uT7dmSHdO/z1CXT/n47mWonyypzBbuCy5tN7uMg22BsfkhwT6oHmFCAk+gL1LOOxhdbB9SZz3J1KTY3gA==", + "dev": true, + "requires": { + "change-case": "^4.1.2", + "is-lower-case": "^2.0.2", + "is-upper-case": "^2.0.2", + "lower-case": "^2.0.2", + "lower-case-first": "^2.0.2", + "sponge-case": "^1.0.1", + "swap-case": "^2.0.2", + "title-case": "^3.0.3", + "upper-case": "^2.0.2", + "upper-case-first": "^2.0.2" + } + }, + "common-tags": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", + "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==", + "dev": true + }, "import-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/import-from/-/import-from-4.0.0.tgz", @@ -2554,26 +2622,6 @@ "tslib": "~2.3.0" } }, - "buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "requires": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "sync-fetch": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/sync-fetch/-/sync-fetch-0.3.1.tgz", - "integrity": "sha512-xj5qiCDap/03kpci5a+qc5wSJjc8ZSixgG2EUmH1B8Ea2sfWclQA7eH40hiHPCtkCn6MCk4Wb+dqcXdCy2PP3g==", - "dev": true, - "requires": { - "buffer": "^5.7.0", - "node-fetch": "^2.6.1" - } - }, "tslib": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", @@ -2583,21 +2631,21 @@ } }, "@graphql-tools/batch-execute": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/batch-execute/-/batch-execute-8.0.3.tgz", - "integrity": "sha512-YdWA+7nJxZUw65wYcG7AldPM/9RWTPsAEOp0rrLpacV7scy6fLXTwX1gExTB2KUn2zqcmZT6kte8VuQ4l/hVZQ==", + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/batch-execute/-/batch-execute-8.3.1.tgz", + "integrity": "sha512-63kHY8ZdoO5FoeDXYHnAak1R3ysMViMPwWC2XUblFckuVLMUPmB2ONje8rjr2CvzWBHAW8c1Zsex+U3xhKtGIA==", "dev": true, "requires": { - "@graphql-tools/utils": "8.1.0", + "@graphql-tools/utils": "^8.5.1", "dataloader": "2.0.0", "tslib": "~2.3.0", - "value-or-promise": "1.0.10" + "value-or-promise": "1.0.11" }, "dependencies": { "@graphql-tools/utils": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.1.0.tgz", - "integrity": "sha512-V5a7xAxZ6DHzrYYticmsLgWim+vGnC6ztbiOXrO5cGtOOk5NSK657SZXsyVOR7hNvdWiHSW0dlBZb6zkkfOnHA==", + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.6.1.tgz", + "integrity": "sha512-uxcfHCocp4ENoIiovPxUWZEHOnbXqj3ekWc0rm7fUhW93a1xheARNHcNKhwMTR+UKXVJbTFQdGI1Rl5XdyvDBg==", "dev": true, "requires": { "tslib": "~2.3.0" @@ -2612,41 +2660,76 @@ } }, "@graphql-tools/code-file-loader": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/code-file-loader/-/code-file-loader-7.0.3.tgz", - "integrity": "sha512-Q+eF2Va4/hQGqkr+rLqH7iBLrvbMYmdEpdSnnytqLVz6cNtwftAKeSGtvtCkmL0AphJMrCSKQM/vxRHNmJb8bg==", + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/@graphql-tools/code-file-loader/-/code-file-loader-7.2.3.tgz", + "integrity": "sha512-aNVG3/VG5cUpS389rpCum+z7RY98qvPwOzd+J4LVr+f5hWQbDREnSFM+5RVTDfULujrsi7edKaGxGKp68pGmAA==", "dev": true, "requires": { - "@graphql-tools/graphql-tag-pluck": "^7.0.3", - "@graphql-tools/utils": "8.1.0", + "@graphql-tools/graphql-tag-pluck": "^7.1.3", + "@graphql-tools/utils": "^8.5.1", "globby": "^11.0.3", "tslib": "~2.3.0", "unixify": "^1.0.0" }, "dependencies": { "@graphql-tools/utils": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.1.0.tgz", - "integrity": "sha512-V5a7xAxZ6DHzrYYticmsLgWim+vGnC6ztbiOXrO5cGtOOk5NSK657SZXsyVOR7hNvdWiHSW0dlBZb6zkkfOnHA==", + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.6.1.tgz", + "integrity": "sha512-uxcfHCocp4ENoIiovPxUWZEHOnbXqj3ekWc0rm7fUhW93a1xheARNHcNKhwMTR+UKXVJbTFQdGI1Rl5XdyvDBg==", "dev": true, "requires": { "tslib": "~2.3.0" } }, + "fast-glob": { + "version": "3.2.11", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", + "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + } + }, "globby": { - "version": "11.0.4", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz", - "integrity": "sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==", + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "dev": true, "requires": { "array-union": "^2.1.0", "dir-glob": "^3.0.1", - "fast-glob": "^3.1.1", - "ignore": "^5.1.4", - "merge2": "^1.3.0", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", "slash": "^3.0.0" } }, + "ignore": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", + "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "dev": true + }, + "micromatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", + "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", + "dev": true, + "requires": { + "braces": "^3.0.1", + "picomatch": "^2.2.3" + } + }, + "picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true + }, "tslib": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", @@ -2656,23 +2739,23 @@ } }, "@graphql-tools/delegate": { - "version": "8.0.8", - "resolved": "https://registry.npmjs.org/@graphql-tools/delegate/-/delegate-8.0.8.tgz", - "integrity": "sha512-cmX+JkGt72eGQanbZFV8aPmUn9Ze/5/c/91aXbBlVt1Hdk1jRR25e9J74YsCcyv5LyTlMk0enKneq41l6KsUTg==", + "version": "8.4.3", + "resolved": "https://registry.npmjs.org/@graphql-tools/delegate/-/delegate-8.4.3.tgz", + "integrity": "sha512-hKTJdJXJnKL0+2vpU+Kt7OHQTIXZ9mBmNBwHsYiG5WNArz/vNI7910r6TC2XMf/e7zhyyK+mXxMDBmDQkkJagA==", "dev": true, "requires": { - "@graphql-tools/batch-execute": "^8.0.3", - "@graphql-tools/schema": "^8.1.0", - "@graphql-tools/utils": "8.1.0", + "@graphql-tools/batch-execute": "^8.3.1", + "@graphql-tools/schema": "^8.3.1", + "@graphql-tools/utils": "^8.5.4", "dataloader": "2.0.0", "tslib": "~2.3.0", - "value-or-promise": "1.0.10" + "value-or-promise": "1.0.11" }, "dependencies": { "@graphql-tools/utils": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.1.0.tgz", - "integrity": "sha512-V5a7xAxZ6DHzrYYticmsLgWim+vGnC6ztbiOXrO5cGtOOk5NSK657SZXsyVOR7hNvdWiHSW0dlBZb6zkkfOnHA==", + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.6.1.tgz", + "integrity": "sha512-uxcfHCocp4ENoIiovPxUWZEHOnbXqj3ekWc0rm7fUhW93a1xheARNHcNKhwMTR+UKXVJbTFQdGI1Rl5XdyvDBg==", "dev": true, "requires": { "tslib": "~2.3.0" @@ -2687,28 +2770,37 @@ } }, "@graphql-tools/git-loader": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/git-loader/-/git-loader-7.0.3.tgz", - "integrity": "sha512-2hBWj8cObwzoj+FFH9gzkCiJY1fTqGjWXmKJECQWIyZFn1gbj841f/QseKHlc+L7u5mnInqdShmFb+4hYy6U7A==", + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/@graphql-tools/git-loader/-/git-loader-7.1.2.tgz", + "integrity": "sha512-vIMrISQPKQgHS893b8K/pEE1InPV+7etzFhHoyQRhYkVHXP2RBkfI64Wq9bNPezF8Ss/dwIjI/keLaPp9EQDmA==", "dev": true, "requires": { - "@graphql-tools/graphql-tag-pluck": "^7.0.3", - "@graphql-tools/utils": "8.1.0", - "is-glob": "4.0.1", + "@graphql-tools/graphql-tag-pluck": "^7.1.3", + "@graphql-tools/utils": "^8.5.1", + "is-glob": "4.0.3", "micromatch": "^4.0.4", "tslib": "~2.3.0", "unixify": "^1.0.0" }, "dependencies": { "@graphql-tools/utils": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.1.0.tgz", - "integrity": "sha512-V5a7xAxZ6DHzrYYticmsLgWim+vGnC6ztbiOXrO5cGtOOk5NSK657SZXsyVOR7hNvdWiHSW0dlBZb6zkkfOnHA==", + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.6.1.tgz", + "integrity": "sha512-uxcfHCocp4ENoIiovPxUWZEHOnbXqj3ekWc0rm7fUhW93a1xheARNHcNKhwMTR+UKXVJbTFQdGI1Rl5XdyvDBg==", "dev": true, "requires": { "tslib": "~2.3.0" } }, + "is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "requires": { + "is-extglob": "^2.1.1" + } + }, "micromatch": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", @@ -2720,9 +2812,9 @@ } }, "picomatch": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", - "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true }, "tslib": { @@ -2734,32 +2826,27 @@ } }, "@graphql-tools/github-loader": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/github-loader/-/github-loader-7.0.3.tgz", - "integrity": "sha512-7ZVR5TLN2xZLFulhMXk6pMtDSTCN+7a70qCU4+ZYO/GAynJG6W17GwWQ/8Iqg1ICDXxIlqjjEOV7faAIaXbdUA==", + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/@graphql-tools/github-loader/-/github-loader-7.2.3.tgz", + "integrity": "sha512-enbMT5lWtKaLGw0PB9RL9Xg/oc9y89e6ihuxD/ZnnNXo60J1JVNtTy3+gRgXvGOX9WtJgy3UDVudDefrOHsqaA==", "dev": true, "requires": { - "@graphql-tools/graphql-tag-pluck": "^7.0.3", - "@graphql-tools/utils": "8.1.0", - "cross-fetch": "3.1.4", + "@graphql-tools/graphql-tag-pluck": "^7.1.3", + "@graphql-tools/utils": "^8.5.1", + "cross-undici-fetch": "^0.1.19", + "sync-fetch": "0.3.1", "tslib": "~2.3.0" }, "dependencies": { "@graphql-tools/utils": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.1.0.tgz", - "integrity": "sha512-V5a7xAxZ6DHzrYYticmsLgWim+vGnC6ztbiOXrO5cGtOOk5NSK657SZXsyVOR7hNvdWiHSW0dlBZb6zkkfOnHA==", + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.6.1.tgz", + "integrity": "sha512-uxcfHCocp4ENoIiovPxUWZEHOnbXqj3ekWc0rm7fUhW93a1xheARNHcNKhwMTR+UKXVJbTFQdGI1Rl5XdyvDBg==", "dev": true, "requires": { "tslib": "~2.3.0" } }, - "cross-fetch": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.4.tgz", - "integrity": "sha512-1eAtFWdIubi6T4XPy6ei9iUFoKpUkIF971QLN8lIvvvwueI65+Nw5haMNKUwfJxabqlIIDODJKGrQ66gxC0PbQ==", - "dev": true - }, "tslib": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", @@ -2769,41 +2856,76 @@ } }, "@graphql-tools/graphql-file-loader": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/graphql-file-loader/-/graphql-file-loader-7.0.3.tgz", - "integrity": "sha512-++eBR9i+xwqe43FLaRWJnD0zSBVjP6Iw5cwIBkoEaYmCl8VLFnQHuECKpC1OzOxEWUtbrE34nHMUWlP8CPFTVQ==", + "version": "7.3.3", + "resolved": "https://registry.npmjs.org/@graphql-tools/graphql-file-loader/-/graphql-file-loader-7.3.3.tgz", + "integrity": "sha512-6kUJZiNpYKVhum9E5wfl5PyLLupEDYdH7c8l6oMrk6c7EPEVs6iSUyB7yQoWrtJccJLULBW2CRQ5IHp5JYK0mA==", "dev": true, "requires": { - "@graphql-tools/import": "^6.2.6", - "@graphql-tools/utils": "8.1.0", + "@graphql-tools/import": "^6.5.7", + "@graphql-tools/utils": "^8.5.1", "globby": "^11.0.3", "tslib": "~2.3.0", "unixify": "^1.0.0" }, "dependencies": { "@graphql-tools/utils": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.1.0.tgz", - "integrity": "sha512-V5a7xAxZ6DHzrYYticmsLgWim+vGnC6ztbiOXrO5cGtOOk5NSK657SZXsyVOR7hNvdWiHSW0dlBZb6zkkfOnHA==", + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.6.1.tgz", + "integrity": "sha512-uxcfHCocp4ENoIiovPxUWZEHOnbXqj3ekWc0rm7fUhW93a1xheARNHcNKhwMTR+UKXVJbTFQdGI1Rl5XdyvDBg==", "dev": true, "requires": { "tslib": "~2.3.0" } }, + "fast-glob": { + "version": "3.2.11", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", + "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + } + }, "globby": { - "version": "11.0.4", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz", - "integrity": "sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==", + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "dev": true, "requires": { "array-union": "^2.1.0", "dir-glob": "^3.0.1", - "fast-glob": "^3.1.1", - "ignore": "^5.1.4", - "merge2": "^1.3.0", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", "slash": "^3.0.0" } }, + "ignore": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", + "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "dev": true + }, + "micromatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", + "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", + "dev": true, + "requires": { + "braces": "^3.0.1", + "picomatch": "^2.2.3" + } + }, + "picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true + }, "tslib": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", @@ -2813,150 +2935,151 @@ } }, "@graphql-tools/graphql-tag-pluck": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/@graphql-tools/graphql-tag-pluck/-/graphql-tag-pluck-7.0.3.tgz", - "integrity": "sha512-5vHVpLlRTvLArmxpm0RQXbauhEfNvDyg91A40aiTq9sI4p4MO3V2EqwEFd0eu70UAMJp+OyszG0gnI2H5Qs9Yg==", + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/@graphql-tools/graphql-tag-pluck/-/graphql-tag-pluck-7.1.5.tgz", + "integrity": "sha512-NKbFcjlg7cbK+scLXc6eVxXIhX4k8QL6lZ/y5Ju7yrpIN18k2vA78dI6W3Qb5qdftxbDNuC+kDmScZfzzxVPjQ==", "dev": true, "requires": { - "@babel/parser": "7.15.3", - "@babel/traverse": "7.15.0", - "@babel/types": "7.15.0", - "@graphql-tools/utils": "8.1.0", + "@babel/parser": "^7.16.8", + "@babel/traverse": "^7.16.8", + "@babel/types": "^7.16.8", + "@graphql-tools/utils": "^8.5.1", "tslib": "~2.3.0" }, "dependencies": { "@babel/code-frame": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.14.5.tgz", - "integrity": "sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw==", + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", + "integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==", "dev": true, "requires": { - "@babel/highlight": "^7.14.5" + "@babel/highlight": "^7.16.7" } }, "@babel/generator": { - "version": "7.15.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.15.0.tgz", - "integrity": "sha512-eKl4XdMrbpYvuB505KTta4AV9g+wWzmVBW69tX0H2NwKVKd2YJbKgyK6M8j/rgLbmHOYJn6rUklV677nOyJrEQ==", + "version": "7.17.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.3.tgz", + "integrity": "sha512-+R6Dctil/MgUsZsZAkYgK+ADNSZzJRRy0TvY65T71z/CR854xHQ1EweBYXdfT+HNeN7w0cSJJEzgxZMv40pxsg==", "dev": true, "requires": { - "@babel/types": "^7.15.0", + "@babel/types": "^7.17.0", "jsesc": "^2.5.1", "source-map": "^0.5.0" } }, "@babel/helper-function-name": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.14.5.tgz", - "integrity": "sha512-Gjna0AsXWfFvrAuX+VKcN/aNNWonizBj39yGwUzVDVTlMYJMK2Wp6xdpy72mfArFq5uK+NOuexfzZlzI1z9+AQ==", + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.16.7.tgz", + "integrity": "sha512-QfDfEnIUyyBSR3HtrtGECuZ6DAyCkYFp7GHl75vFtTnn6pjKeK0T1DB5lLkFvBea8MdaiUABx3osbgLyInoejA==", "dev": true, "requires": { - "@babel/helper-get-function-arity": "^7.14.5", - "@babel/template": "^7.14.5", - "@babel/types": "^7.14.5" + "@babel/helper-get-function-arity": "^7.16.7", + "@babel/template": "^7.16.7", + "@babel/types": "^7.16.7" } }, "@babel/helper-get-function-arity": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.14.5.tgz", - "integrity": "sha512-I1Db4Shst5lewOM4V+ZKJzQ0JGGaZ6VY1jYvMghRjqs6DWgxLCIyFt30GlnKkfUeFLpJt2vzbMVEXVSXlIFYUg==", + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.16.7.tgz", + "integrity": "sha512-flc+RLSOBXzNzVhcLu6ujeHUrD6tANAOU5ojrRx/as+tbzf8+stUCj7+IfRRoAbEZqj/ahXEMsjhOhgeZsrnTw==", "dev": true, "requires": { - "@babel/types": "^7.14.5" + "@babel/types": "^7.16.7" } }, "@babel/helper-hoist-variables": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.14.5.tgz", - "integrity": "sha512-R1PXiz31Uc0Vxy4OEOm07x0oSjKAdPPCh3tPivn/Eo8cvz6gveAeuyUUPB21Hoiif0uoPQSSdhIPS3352nvdyQ==", + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz", + "integrity": "sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg==", "dev": true, "requires": { - "@babel/types": "^7.14.5" + "@babel/types": "^7.16.7" } }, "@babel/helper-split-export-declaration": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.14.5.tgz", - "integrity": "sha512-hprxVPu6e5Kdp2puZUmvOGjaLv9TCe58E/Fl6hRq4YiVQxIcNvuq6uTM2r1mT/oPskuS9CgR+I94sqAYv0NGKA==", + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz", + "integrity": "sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw==", "dev": true, "requires": { - "@babel/types": "^7.14.5" + "@babel/types": "^7.16.7" } }, "@babel/helper-validator-identifier": { - "version": "7.14.9", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.9.tgz", - "integrity": "sha512-pQYxPY0UP6IHISRitNe8bsijHex4TWZXi2HwKVsjPiltzlhse2znVcm9Ace510VT1kxIHjGJCZZQBX2gJDbo0g==", + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz", + "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==", "dev": true }, "@babel/highlight": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", - "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", + "version": "7.16.10", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.16.10.tgz", + "integrity": "sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfTBFxdw==", "dev": true, "requires": { - "@babel/helper-validator-identifier": "^7.14.5", + "@babel/helper-validator-identifier": "^7.16.7", "chalk": "^2.0.0", "js-tokens": "^4.0.0" } }, "@babel/parser": { - "version": "7.15.3", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.15.3.tgz", - "integrity": "sha512-O0L6v/HvqbdJawj0iBEfVQMc3/6WP+AeOsovsIgBFyJaG+W2w7eqvZB7puddATmWuARlm1SX7DwxJ/JJUnDpEA==", + "version": "7.17.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.17.3.tgz", + "integrity": "sha512-7yJPvPV+ESz2IUTPbOL+YkIGyCqOyNIzdguKQuJGnH7bg1WTIifuM21YqokFt/THWh1AkCRn9IgoykTRCBVpzA==", "dev": true }, "@babel/template": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.14.5.tgz", - "integrity": "sha512-6Z3Po85sfxRGachLULUhOmvAaOo7xCvqGQtxINai2mEGPFm6pQ4z5QInFnUrRpfoSV60BnjyF5F3c+15fxFV1g==", + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz", + "integrity": "sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==", "dev": true, "requires": { - "@babel/code-frame": "^7.14.5", - "@babel/parser": "^7.14.5", - "@babel/types": "^7.14.5" + "@babel/code-frame": "^7.16.7", + "@babel/parser": "^7.16.7", + "@babel/types": "^7.16.7" } }, "@babel/traverse": { - "version": "7.15.0", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.15.0.tgz", - "integrity": "sha512-392d8BN0C9eVxVWd8H6x9WfipgVH5IaIoLp23334Sc1vbKKWINnvwRpb4us0xtPaCumlwbTtIYNA0Dv/32sVFw==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.14.5", - "@babel/generator": "^7.15.0", - "@babel/helper-function-name": "^7.14.5", - "@babel/helper-hoist-variables": "^7.14.5", - "@babel/helper-split-export-declaration": "^7.14.5", - "@babel/parser": "^7.15.0", - "@babel/types": "^7.15.0", + "version": "7.17.3", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.17.3.tgz", + "integrity": "sha512-5irClVky7TxRWIRtxlh2WPUUOLhcPN06AGgaQSB8AEwuyEBgJVuJ5imdHm5zxk8w0QS5T+tDfnDxAlhWjpb7cw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.16.7", + "@babel/generator": "^7.17.3", + "@babel/helper-environment-visitor": "^7.16.7", + "@babel/helper-function-name": "^7.16.7", + "@babel/helper-hoist-variables": "^7.16.7", + "@babel/helper-split-export-declaration": "^7.16.7", + "@babel/parser": "^7.17.3", + "@babel/types": "^7.17.0", "debug": "^4.1.0", "globals": "^11.1.0" } }, "@babel/types": { - "version": "7.15.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.0.tgz", - "integrity": "sha512-OBvfqnllOIdX4ojTHpwZbpvz4j3EWyjkZEdmjH0/cgsd6QOdSgU8rLSk6ard/pcW7rlmjdVSX/AWOaORR1uNOQ==", + "version": "7.17.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz", + "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==", "dev": true, "requires": { - "@babel/helper-validator-identifier": "^7.14.9", + "@babel/helper-validator-identifier": "^7.16.7", "to-fast-properties": "^2.0.0" } }, "@graphql-tools/utils": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.1.0.tgz", - "integrity": "sha512-V5a7xAxZ6DHzrYYticmsLgWim+vGnC6ztbiOXrO5cGtOOk5NSK657SZXsyVOR7hNvdWiHSW0dlBZb6zkkfOnHA==", + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.6.1.tgz", + "integrity": "sha512-uxcfHCocp4ENoIiovPxUWZEHOnbXqj3ekWc0rm7fUhW93a1xheARNHcNKhwMTR+UKXVJbTFQdGI1Rl5XdyvDBg==", "dev": true, "requires": { "tslib": "~2.3.0" } }, "debug": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", - "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", + "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", "dev": true, "requires": { "ms": "2.1.2" @@ -2968,12 +3091,6 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, "tslib": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", @@ -2983,58 +3100,103 @@ } }, "@graphql-tools/import": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/import/-/import-6.3.1.tgz", - "integrity": "sha512-1szR19JI6WPibjYurMLdadHKZoG9C//8I/FZ0Dt4vJSbrMdVNp8WFxg4QnZrDeMG4MzZc90etsyF5ofKjcC+jw==", + "version": "6.6.5", + "resolved": "https://registry.npmjs.org/@graphql-tools/import/-/import-6.6.5.tgz", + "integrity": "sha512-w0/cYuhrr2apn+iGoTToCqt65x2NN2iHQyqRNk/Zw1NJ+e8/C3eKVw0jmW4pYQvSocuPxL4UCSI56SdKO7m3+Q==", "dev": true, "requires": { + "@graphql-tools/utils": "8.6.1", "resolve-from": "5.0.0", - "tslib": "~2.2.0" + "tslib": "~2.3.0" }, "dependencies": { + "@graphql-tools/utils": { + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.6.1.tgz", + "integrity": "sha512-uxcfHCocp4ENoIiovPxUWZEHOnbXqj3ekWc0rm7fUhW93a1xheARNHcNKhwMTR+UKXVJbTFQdGI1Rl5XdyvDBg==", + "dev": true, + "requires": { + "tslib": "~2.3.0" + } + }, "tslib": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.2.0.tgz", - "integrity": "sha512-gS9GVHRU+RGn5KQM2rllAlR3dU6m7AcpJKdtH8gFvQiC4Otgk98XnmMU+nZenHt/+VhnBPWwgrJsyrdcw6i23w==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", "dev": true } } }, "@graphql-tools/json-file-loader": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/json-file-loader/-/json-file-loader-7.1.0.tgz", - "integrity": "sha512-anM5mnn3ayrc77StoBN+sinQXJoiYmtV3V4Bl52hybmRMwkdqPdJLQkGgZoYlEAxlqwk7BPwumfJCMTaiVSpzA==", + "version": "7.3.3", + "resolved": "https://registry.npmjs.org/@graphql-tools/json-file-loader/-/json-file-loader-7.3.3.tgz", + "integrity": "sha512-CN2Qk9rt+Gepa3rb3X/mpxYA5MIYLwZBPj2Njw6lbZ6AaxG+O1ArDCL5ACoiWiBimn1FCOM778uhRM9znd0b3Q==", "dev": true, "requires": { - "@graphql-tools/utils": "8.1.0", + "@graphql-tools/utils": "^8.5.1", "globby": "^11.0.3", "tslib": "~2.3.0", "unixify": "^1.0.0" }, "dependencies": { "@graphql-tools/utils": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.1.0.tgz", - "integrity": "sha512-V5a7xAxZ6DHzrYYticmsLgWim+vGnC6ztbiOXrO5cGtOOk5NSK657SZXsyVOR7hNvdWiHSW0dlBZb6zkkfOnHA==", + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.6.1.tgz", + "integrity": "sha512-uxcfHCocp4ENoIiovPxUWZEHOnbXqj3ekWc0rm7fUhW93a1xheARNHcNKhwMTR+UKXVJbTFQdGI1Rl5XdyvDBg==", "dev": true, "requires": { "tslib": "~2.3.0" } }, + "fast-glob": { + "version": "3.2.11", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", + "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + } + }, "globby": { - "version": "11.0.4", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz", - "integrity": "sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==", + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "dev": true, "requires": { "array-union": "^2.1.0", "dir-glob": "^3.0.1", - "fast-glob": "^3.1.1", - "ignore": "^5.1.4", - "merge2": "^1.3.0", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", "slash": "^3.0.0" } }, + "ignore": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", + "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "dev": true + }, + "micromatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", + "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", + "dev": true, + "requires": { + "braces": "^3.0.1", + "picomatch": "^2.2.3" + } + }, + "picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true + }, "tslib": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", @@ -3044,21 +3206,21 @@ } }, "@graphql-tools/load": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/@graphql-tools/load/-/load-7.1.5.tgz", - "integrity": "sha512-Vhac0zD74Klzai0VX2T1/l9qgOlmUgKyiCqEJGnNZcIfhDOBxIOtM/2fJRaEbvqvbWKaMeT5wNaAO4vEjDBdoQ==", + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/load/-/load-7.5.1.tgz", + "integrity": "sha512-j9XcLYZPZdl/TzzqA83qveJmwcCxgGizt5L1+C1/Z68brTEmQHLdQCOR3Ma3ewESJt6DU05kSTu2raKaunkjRg==", "dev": true, "requires": { - "@graphql-tools/schema": "8.1.0", - "@graphql-tools/utils": "8.1.0", + "@graphql-tools/schema": "8.3.1", + "@graphql-tools/utils": "^8.6.0", "p-limit": "3.1.0", "tslib": "~2.3.0" }, "dependencies": { "@graphql-tools/utils": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.1.0.tgz", - "integrity": "sha512-V5a7xAxZ6DHzrYYticmsLgWim+vGnC6ztbiOXrO5cGtOOk5NSK657SZXsyVOR7hNvdWiHSW0dlBZb6zkkfOnHA==", + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.6.1.tgz", + "integrity": "sha512-uxcfHCocp4ENoIiovPxUWZEHOnbXqj3ekWc0rm7fUhW93a1xheARNHcNKhwMTR+UKXVJbTFQdGI1Rl5XdyvDBg==", "dev": true, "requires": { "tslib": "~2.3.0" @@ -3073,20 +3235,19 @@ } }, "@graphql-tools/merge": { - "version": "6.2.17", - "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-6.2.17.tgz", - "integrity": "sha512-G5YrOew39fZf16VIrc49q3c8dBqQDD0ax5LYPiNja00xsXDi0T9zsEWVt06ApjtSdSF6HDddlu5S12QjeN8Tow==", + "version": "8.2.2", + "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-8.2.2.tgz", + "integrity": "sha512-2DyqhIOMUMKbCPqo8p6xSdll2OBcBxGdOrxlJJlFQvinsSaYqp/ct3dhAxNtzaIcvSVgXvttQqfD7O2ziFtE7Q==", "dev": true, "requires": { - "@graphql-tools/schema": "^8.0.2", - "@graphql-tools/utils": "8.0.2", + "@graphql-tools/utils": "^8.5.1", "tslib": "~2.3.0" }, "dependencies": { "@graphql-tools/utils": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.0.2.tgz", - "integrity": "sha512-gzkavMOgbhnwkHJYg32Adv6f+LxjbQmmbdD5Hty0+CWxvaiuJq+nU6tzb/7VSU4cwhbNLx/lGu2jbCPEW1McZQ==", + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.6.1.tgz", + "integrity": "sha512-uxcfHCocp4ENoIiovPxUWZEHOnbXqj3ekWc0rm7fUhW93a1xheARNHcNKhwMTR+UKXVJbTFQdGI1Rl5XdyvDBg==", "dev": true, "requires": { "tslib": "~2.3.0" @@ -3118,13 +3279,13 @@ } }, "@graphql-tools/prisma-loader": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/@graphql-tools/prisma-loader/-/prisma-loader-7.0.4.tgz", - "integrity": "sha512-bzOxWLQpHU7B+d9sGltZj3IpDhzCYPO2Rb0lsAKe0M37/noPZwnV0fcEC6UX29GuSVWKcDJX2yL4xJSC4pD8yw==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/prisma-loader/-/prisma-loader-7.1.1.tgz", + "integrity": "sha512-9hVpG3BNsXAYMLPlZhSHubk6qBmiHLo/UlU0ldL100sMpqI46iBaHNhTNXZCSdd81hT+4HNqaDXNFqyKJ22OGQ==", "dev": true, "requires": { - "@graphql-tools/url-loader": "^7.0.8", - "@graphql-tools/utils": "8.1.0", + "@graphql-tools/url-loader": "^7.4.2", + "@graphql-tools/utils": "^8.5.1", "@types/js-yaml": "^4.0.0", "@types/json-stable-stringify": "^1.0.32", "@types/jsonwebtoken": "^8.5.0", @@ -3132,7 +3293,7 @@ "debug": "^4.3.1", "dotenv": "^10.0.0", "graphql-request": "^3.3.0", - "http-proxy-agent": "^4.0.1", + "http-proxy-agent": "^5.0.0", "https-proxy-agent": "^5.0.0", "isomorphic-fetch": "^3.0.0", "js-yaml": "^4.0.0", @@ -3146,14 +3307,20 @@ }, "dependencies": { "@graphql-tools/utils": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.1.0.tgz", - "integrity": "sha512-V5a7xAxZ6DHzrYYticmsLgWim+vGnC6ztbiOXrO5cGtOOk5NSK657SZXsyVOR7hNvdWiHSW0dlBZb6zkkfOnHA==", + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.6.1.tgz", + "integrity": "sha512-uxcfHCocp4ENoIiovPxUWZEHOnbXqj3ekWc0rm7fUhW93a1xheARNHcNKhwMTR+UKXVJbTFQdGI1Rl5XdyvDBg==", "dev": true, "requires": { "tslib": "~2.3.0" } }, + "@tootallnate/once": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", + "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", + "dev": true + }, "ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -3189,9 +3356,9 @@ "dev": true }, "debug": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", - "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", + "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", "dev": true, "requires": { "ms": "2.1.2" @@ -3209,6 +3376,17 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, + "http-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", + "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", + "dev": true, + "requires": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + } + }, "ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", @@ -3261,31 +3439,21 @@ } }, "@graphql-tools/schema": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-8.1.0.tgz", - "integrity": "sha512-k6M877jFTKjlRU2f2YYjWx+FKXlhuQlCQQ8IdG5API4UL1qk57zYoNnYlT+CJfWxEfcMvEd6AlJ8wvmapzr53A==", + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-8.3.1.tgz", + "integrity": "sha512-3R0AJFe715p4GwF067G5i0KCr/XIdvSfDLvTLEiTDQ8V/hwbOHEKHKWlEBHGRQwkG5lwFQlW1aOn7VnlPERnWQ==", "dev": true, "requires": { - "@graphql-tools/merge": "8.0.0", - "@graphql-tools/utils": "8.1.0", + "@graphql-tools/merge": "^8.2.1", + "@graphql-tools/utils": "^8.5.1", "tslib": "~2.3.0", - "value-or-promise": "1.0.10" + "value-or-promise": "1.0.11" }, "dependencies": { - "@graphql-tools/merge": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-8.0.0.tgz", - "integrity": "sha512-Hdhp3qwDeRwPGUVUkmRwTg5KX/bp1MNkplhI6szgQHeDPaC2l9a1iS6LznVP6xQjsyb8oRPqlVPKfiXemodwFw==", - "dev": true, - "requires": { - "@graphql-tools/utils": "8.1.0", - "tslib": "~2.3.0" - } - }, "@graphql-tools/utils": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.1.0.tgz", - "integrity": "sha512-V5a7xAxZ6DHzrYYticmsLgWim+vGnC6ztbiOXrO5cGtOOk5NSK657SZXsyVOR7hNvdWiHSW0dlBZb6zkkfOnHA==", + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.6.1.tgz", + "integrity": "sha512-uxcfHCocp4ENoIiovPxUWZEHOnbXqj3ekWc0rm7fUhW93a1xheARNHcNKhwMTR+UKXVJbTFQdGI1Rl5XdyvDBg==", "dev": true, "requires": { "tslib": "~2.3.0" @@ -3300,47 +3468,72 @@ } }, "@graphql-tools/url-loader": { - "version": "7.0.8", - "resolved": "https://registry.npmjs.org/@graphql-tools/url-loader/-/url-loader-7.0.8.tgz", - "integrity": "sha512-f0Ku9sxGP3ETEId16rANduI+CLbkbOnNefUo7DU7st7AEwQ5MWLhfn9byQfDd10G4p4SYu4StgszTb2wwtWN2w==", - "dev": true, - "requires": { - "@ardatan/fetch-event-source": "2.0.2", - "@graphql-tools/delegate": "8.0.8", - "@graphql-tools/utils": "8.1.0", - "@graphql-tools/wrap": "^8.0.10", - "@n1ru4l/graphql-live-query": "0.7.1", - "@types/websocket": "1.0.4", - "abort-controller": "3.0.0", - "cross-fetch": "3.1.4", - "extract-files": "11.0.0", - "form-data": "4.0.0", - "graphql-ws": "^5.0.0", - "is-promise": "4.0.0", - "isomorphic-ws": "4.0.1", - "lodash": "4.17.21", - "meros": "1.1.4", - "subscriptions-transport-ws": "^0.10.0", - "sync-fetch": "0.3.0", - "tslib": "~2.3.0", - "valid-url": "1.0.9", - "value-or-promise": "1.0.10", - "ws": "8.1.0" + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/url-loader/-/url-loader-7.7.1.tgz", + "integrity": "sha512-K/5amdeHtKYI976HVd/AXdSNvLL7vx5QVjMlwN0OHeYyxSgC+UOH+KkS7cshYgL13SekGu0Mxbg9ABfgQ34ECA==", + "dev": true, + "requires": { + "@graphql-tools/delegate": "^8.4.1", + "@graphql-tools/utils": "^8.5.1", + "@graphql-tools/wrap": "^8.3.1", + "@n1ru4l/graphql-live-query": "^0.9.0", + "@types/websocket": "^1.0.4", + "@types/ws": "^8.0.0", + "cross-undici-fetch": "^0.1.19", + "dset": "^3.1.0", + "extract-files": "^11.0.0", + "graphql-sse": "^1.0.1", + "graphql-ws": "^5.4.1", + "isomorphic-ws": "^4.0.1", + "meros": "^1.1.4", + "subscriptions-transport-ws": "^0.11.0", + "sync-fetch": "^0.3.1", + "tslib": "^2.3.0", + "valid-url": "^1.0.9", + "value-or-promise": "^1.0.11", + "ws": "^8.3.0" }, "dependencies": { "@graphql-tools/utils": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.1.0.tgz", - "integrity": "sha512-V5a7xAxZ6DHzrYYticmsLgWim+vGnC6ztbiOXrO5cGtOOk5NSK657SZXsyVOR7hNvdWiHSW0dlBZb6zkkfOnHA==", + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.6.1.tgz", + "integrity": "sha512-uxcfHCocp4ENoIiovPxUWZEHOnbXqj3ekWc0rm7fUhW93a1xheARNHcNKhwMTR+UKXVJbTFQdGI1Rl5XdyvDBg==", "dev": true, "requires": { "tslib": "~2.3.0" } }, - "cross-fetch": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.4.tgz", - "integrity": "sha512-1eAtFWdIubi6T4XPy6ei9iUFoKpUkIF971QLN8lIvvvwueI65+Nw5haMNKUwfJxabqlIIDODJKGrQ66gxC0PbQ==", + "eventemitter3": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-3.1.2.tgz", + "integrity": "sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q==", + "dev": true + }, + "subscriptions-transport-ws": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/subscriptions-transport-ws/-/subscriptions-transport-ws-0.11.0.tgz", + "integrity": "sha512-8D4C6DIH5tGiAIpp5I0wD/xRlNiZAPGHygzCe7VzyzUoxHtawzjNAY9SUTXU05/EY2NMY9/9GF0ycizkXr1CWQ==", + "dev": true, + "requires": { + "backo2": "^1.0.2", + "eventemitter3": "^3.1.0", + "iterall": "^1.2.1", + "symbol-observable": "^1.0.4", + "ws": "^5.2.0 || ^6.0.0 || ^7.0.0" + }, + "dependencies": { + "ws": { + "version": "7.5.7", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.7.tgz", + "integrity": "sha512-KMvVuFzpKBuiIXW3E4u3mySRO2/mCHSyZDJQM5NQ9Q9KHWHWh0NHgfbRMLLrceUK5qAL4ytALJbpRMjixFZh8A==", + "dev": true + } + } + }, + "symbol-observable": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.2.0.tgz", + "integrity": "sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ==", "dev": true }, "tslib": { @@ -3350,9 +3543,9 @@ "dev": true }, "ws": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.1.0.tgz", - "integrity": "sha512-0UWlCD2s3RSclw8FN+D0zDTUyMO+1kHwJQQJzkgUh16S8d3NYON0AKCEQPffE0ez4JyRFu76QDA9KR5bOG/7jw==", + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.5.0.tgz", + "integrity": "sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==", "dev": true } } @@ -3377,22 +3570,22 @@ } }, "@graphql-tools/wrap": { - "version": "8.0.10", - "resolved": "https://registry.npmjs.org/@graphql-tools/wrap/-/wrap-8.0.10.tgz", - "integrity": "sha512-mdlUefP85JzYDemj0wpZT01DbuOJiITm/oR2ruyTg3Ulk4qFPF+FobHXCM6enYy8gOAhjafP5A0M8UYeIzkJPA==", + "version": "8.3.3", + "resolved": "https://registry.npmjs.org/@graphql-tools/wrap/-/wrap-8.3.3.tgz", + "integrity": "sha512-TpXN1S4Cv+oMA1Zsg9Nu4N9yrFxLuJkX+CTtSRrrdfETGHIxqfyDkm5slPDCckxP+RILA00g8ny2jzsYyNvX1w==", "dev": true, "requires": { - "@graphql-tools/delegate": "8.0.8", - "@graphql-tools/schema": "^8.1.0", - "@graphql-tools/utils": "8.1.0", + "@graphql-tools/delegate": "^8.4.2", + "@graphql-tools/schema": "^8.3.1", + "@graphql-tools/utils": "^8.5.3", "tslib": "~2.3.0", - "value-or-promise": "1.0.10" + "value-or-promise": "1.0.11" }, "dependencies": { "@graphql-tools/utils": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.1.0.tgz", - "integrity": "sha512-V5a7xAxZ6DHzrYYticmsLgWim+vGnC6ztbiOXrO5cGtOOk5NSK657SZXsyVOR7hNvdWiHSW0dlBZb6zkkfOnHA==", + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.6.1.tgz", + "integrity": "sha512-uxcfHCocp4ENoIiovPxUWZEHOnbXqj3ekWc0rm7fUhW93a1xheARNHcNKhwMTR+UKXVJbTFQdGI1Rl5XdyvDBg==", "dev": true, "requires": { "tslib": "~2.3.0" @@ -3411,28 +3604,6 @@ "resolved": "https://registry.npmjs.org/@graphql-typed-document-node/core/-/core-3.1.0.tgz", "integrity": "sha512-wYn6r8zVZyQJ6rQaALBEln5B1pzxb9shV5Ef97kTvn6yVGrqyXVnDqnU24MXnFubR+rZjBY9NWuxX3FB2sTsjg==" }, - "@hapi/accept": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/@hapi/accept/-/accept-5.0.2.tgz", - "integrity": "sha512-CmzBx/bXUR8451fnZRuZAJRlzgm0Jgu5dltTX/bszmR2lheb9BpyN47Q1RbaGTsvFzn0PXAEs+lXDKfshccYZw==", - "requires": { - "@hapi/boom": "9.x.x", - "@hapi/hoek": "9.x.x" - } - }, - "@hapi/boom": { - "version": "9.1.4", - "resolved": "https://registry.npmjs.org/@hapi/boom/-/boom-9.1.4.tgz", - "integrity": "sha512-Ls1oH8jaN1vNsqcaHVYJrKmgMcKsC1wcp8bujvXrHaAqD2iDYq3HoOwsxwo09Cuda5R5nC0o0IxlrlTuvPuzSw==", - "requires": { - "@hapi/hoek": "9.x.x" - } - }, - "@hapi/hoek": { - "version": "9.2.1", - "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.2.1.tgz", - "integrity": "sha512-gfta+H8aziZsm8pZa0vj04KO6biEiisppNgA1kbJvFrrWu9Vm7eaUEy76DIxsuTaWvti5fkJVhllWc6ZTE+Mdw==" - }, "@iarna/toml": { "version": "2.2.5", "resolved": "https://registry.npmjs.org/@iarna/toml/-/toml-2.2.5.tgz", @@ -5171,125 +5342,81 @@ } }, "@n1ru4l/graphql-live-query": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/@n1ru4l/graphql-live-query/-/graphql-live-query-0.7.1.tgz", - "integrity": "sha512-5kJPe2FkPNsCGu9tocKIzUSNO986qAqdnbk8hIFqWlpVPBAmEAOYb1mr6PA18FYAlu7ojWm9Hm13k29aj2GGlQ==", + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@n1ru4l/graphql-live-query/-/graphql-live-query-0.9.0.tgz", + "integrity": "sha512-BTpWy1e+FxN82RnLz4x1+JcEewVdfmUhV1C6/XYD5AjS7PQp9QFF7K8bCD6gzPTr2l+prvqOyVueQhFJxB1vfg==", "dev": true }, - "@napi-rs/triples": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@napi-rs/triples/-/triples-1.1.0.tgz", - "integrity": "sha512-XQr74QaLeMiqhStEhLn1im9EOMnkypp7MZOwQhGzqp2Weu5eQJbpPxWxixxlYRKWPOmJjsk6qYfYH9kq43yc2w==" - }, "@next/env": { - "version": "11.1.3", - "resolved": "https://registry.npmjs.org/@next/env/-/env-11.1.3.tgz", - "integrity": "sha512-5+vaeooJuWmICSlmVaAC8KG3O8hwKasACVfkHj58xQuCB5SW0TKW3hWxgxkBuefMBn1nM0yEVPKokXCsYjBtng==" + "version": "12.0.10", + "resolved": "https://registry.npmjs.org/@next/env/-/env-12.0.10.tgz", + "integrity": "sha512-mQVj0K6wQ5WEk/sL9SZ+mJXJUaG7el8CpZ6io1uFe9GgNTSC7EgUyNGqM6IQovIFc5ukF4O/hqsdh3S/DCgT2g==" + }, + "@next/swc-android-arm64": { + "version": "12.0.10", + "resolved": "https://registry.npmjs.org/@next/swc-android-arm64/-/swc-android-arm64-12.0.10.tgz", + "integrity": "sha512-xYwXGkNhzZZsM5MD7KRwF5ZNiC8OLPtVMUiagpPnwENg8Hb0GSQo/NbYWXM8YrawEwp9LaZ7OXiuRKPh2JyBdA==", + "optional": true }, - "@next/polyfill-module": { - "version": "11.1.3", - "resolved": "https://registry.npmjs.org/@next/polyfill-module/-/polyfill-module-11.1.3.tgz", - "integrity": "sha512-7yr9cr4a0SrBoVE8psxXWK1wTFc8UzsY8Wc2cWGL7qA0hgtqACHaXC47M1ByJB410hFZenGrpE+KFaT1unQMyw==" + "@next/swc-darwin-arm64": { + "version": "12.0.10", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-12.0.10.tgz", + "integrity": "sha512-f2zngulkpIJKWHckhRi7X8GZ+J/tNgFF7lYIh7Qx15JH0OTBsjkqxORlkzy+VZyHJ5sWTCaI6HYYd3ow6qkEEg==", + "optional": true }, - "@next/react-dev-overlay": { - "version": "11.1.3", - "resolved": "https://registry.npmjs.org/@next/react-dev-overlay/-/react-dev-overlay-11.1.3.tgz", - "integrity": "sha512-zIwtMliSUR+IKl917ToFNB+0fD7bI5kYMdjHU/UEKpfIXAZPnXRHHISCvPDsczlr+bRsbjlUFW1CsNiuFedeuQ==", - "requires": { - "@babel/code-frame": "7.12.11", - "anser": "1.4.9", - "chalk": "4.0.0", - "classnames": "2.2.6", - "css.escape": "1.5.1", - "data-uri-to-buffer": "3.0.1", - "platform": "1.3.6", - "shell-quote": "1.7.2", - "source-map": "0.8.0-beta.0", - "stacktrace-parser": "0.1.10", - "strip-ansi": "6.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.0.0.tgz", - "integrity": "sha512-N9oWFcegS0sFr9oh1oz2d7Npos6vNoWW9HvtCg5N1KRFpUhaAhvTv5Y58g880fZaEYSNm3qDz8SU1UrGvp+n7A==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } + "@next/swc-darwin-x64": { + "version": "12.0.10", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-12.0.10.tgz", + "integrity": "sha512-Qykcu/gVC5oTvOQoRBhyuS5GYm5SbcgrFTsaLFkGBmEkg9eMQRiaCswk4IafpDXVzITkVFurzSM28q3tLW2qUw==", + "optional": true }, - "@next/react-refresh-utils": { - "version": "11.1.3", - "resolved": "https://registry.npmjs.org/@next/react-refresh-utils/-/react-refresh-utils-11.1.3.tgz", - "integrity": "sha512-144kD8q2nChw67V3AJJlPQ6NUJVFczyn10bhTynn9o2rY5DEnkzuBipcyMuQl2DqfxMkV7sn+yOCOYbrLCk9zg==" + "@next/swc-linux-arm-gnueabihf": { + "version": "12.0.10", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.0.10.tgz", + "integrity": "sha512-EhqrTFsIXAXN9B/fiiW/QKUK/lSLCXRsLalkUp58KDfMqVLLlj1ORbESAcswiNQOChLuHQSldGEEtOBPQZcd9A==", + "optional": true }, - "@next/swc-darwin-arm64": { - "version": "11.1.3", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-11.1.3.tgz", - "integrity": "sha512-TwP4krjhs+uU9pesDYCShEXZrLSbJr78p12e7XnLBBaNf20SgWLlVmQUT9gX9KbWan5V0sUbJfmcS8MRNHgYuA==", + "@next/swc-linux-arm64-gnu": { + "version": "12.0.10", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.0.10.tgz", + "integrity": "sha512-kqGtC72g3+JYXZbY2ca6digXR5U6AQ6Dzv4eAxYluMePLHjI/Xye1mf9dwVsgmeXfrD/IRDp5K/3A6UNvBm4oQ==", "optional": true }, - "@next/swc-darwin-x64": { - "version": "11.1.3", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-11.1.3.tgz", - "integrity": "sha512-ZSWmkg/PxccHFNUSeBdrfaH8KwSkoeUtewXKvuYYt7Ph0yRsbqSyNIvhUezDua96lApiXXq6EL2d1THfeWomvw==", + "@next/swc-linux-arm64-musl": { + "version": "12.0.10", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.0.10.tgz", + "integrity": "sha512-bG9zTSNwnSgc1Un/7oz1ZVN4UeXsTWrsQhAGWU78lLLCn4Zj9HQoUCRCGLt0OVs2DBZ+WC8CzzFliQ1SKipVbg==", "optional": true }, "@next/swc-linux-x64-gnu": { - "version": "11.1.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-11.1.3.tgz", - "integrity": "sha512-PrTBN0iZudAuj4jSbtXcdBdmfpaDCPIneG4Oms4zcs93KwMgLhivYW082Mvlgx9QVEiRm7+RkFpIVtG/i7JitA==", + "version": "12.0.10", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.0.10.tgz", + "integrity": "sha512-c79PcfWtyThiYRa1+3KVfDq0zXaI8o1d6dQWNVqDrtLz5HKM/rbjLdvoNuxDwUeZhxI/d9CtyH6GbuKPw5l/5A==", "optional": true }, - "@next/swc-win32-x64-msvc": { - "version": "11.1.3", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-11.1.3.tgz", - "integrity": "sha512-mRwbscVjRoHk+tDY7XbkT5d9FCwujFIQJpGp0XNb1i5OHCSDO8WW/C9cLEWS4LxKRbIZlTLYg1MTXqLQkvva8w==", + "@next/swc-linux-x64-musl": { + "version": "12.0.10", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.0.10.tgz", + "integrity": "sha512-g/scgn+21/MLfizOCZOZt+MxNj2/8Tdlwjvy+QZcSUPZRUI2Y5o3HwBvI1f/bSci+NGRU+bUAO0NFtRJ9MzH5w==", "optional": true }, - "@node-rs/helper": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@node-rs/helper/-/helper-1.2.1.tgz", - "integrity": "sha512-R5wEmm8nbuQU0YGGmYVjEc0OHtYsuXdpRG+Ut/3wZ9XAvQWyThN08bTh2cBJgoZxHQUPtvRfeQuxcAgLuiBISg==", - "requires": { - "@napi-rs/triples": "^1.0.3" - } + "@next/swc-win32-arm64-msvc": { + "version": "12.0.10", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.0.10.tgz", + "integrity": "sha512-gl6B/ravwMeY5Nv4Il2/ARYJQ6u+KPRwGMjS1ZrNudIKlNn4YBeXh5A4cIVm+dHaff6/O/lGOa5/SUYDMZpkww==", + "optional": true + }, + "@next/swc-win32-ia32-msvc": { + "version": "12.0.10", + "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.0.10.tgz", + "integrity": "sha512-7RVpZ3tSThC6j+iZB0CUYmFiA3kXmN+pE7QcfyAxFaflKlaZoWNMKHIEZDuxSJc6YmQ6kyxsjqxVay2F5+/YCg==", + "optional": true + }, + "@next/swc-win32-x64-msvc": { + "version": "12.0.10", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.0.10.tgz", + "integrity": "sha512-oUIWRKd24jFLRWUYO1CZmML5+32BcpVfqhimGaaZIXcOkfQW+iqiAzdqsv688zaGtyKGeB9ZtiK3NDf+Q0v+Vw==", + "optional": true }, "@nodelib/fs.scandir": { "version": "2.1.4", @@ -5851,9 +5978,9 @@ } }, "@types/js-yaml": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.2.tgz", - "integrity": "sha512-KbeHS/Y4R+k+5sWXEYzAZKuB1yQlZtEghuhRxrVRLaqhtoG5+26JwQsa4HyS3AWX8v1Uwukma5HheduUDskasA==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.5.tgz", + "integrity": "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==", "dev": true }, "@types/json-schema": { @@ -5875,9 +6002,9 @@ "dev": true }, "@types/jsonwebtoken": { - "version": "8.5.4", - "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-8.5.4.tgz", - "integrity": "sha512-4L8msWK31oXwdtC81RmRBAULd0ShnAHjBuKT9MRQpjP0piNrZdXyTRcKY9/UIfhGeKIT4PvF5amOOUbbT/9Wpg==", + "version": "8.5.8", + "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-8.5.8.tgz", + "integrity": "sha512-zm6xBQpFDIDM6o9r6HSgDeIcLy82TKWctCXEPbJJcXb5AKmi5BNNdLXneixK4lplX3PqIVcwLBCGE/kAGnlD4A==", "dev": true, "requires": { "@types/node": "*" @@ -6008,9 +6135,18 @@ } }, "@types/websocket": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@types/websocket/-/websocket-1.0.4.tgz", - "integrity": "sha512-qn1LkcFEKK8RPp459jkjzsfpbsx36BBt3oC3pITYtkoBw/aVX+EZFa5j3ThCRTNpLFvIMr5dSTD4RaMdilIOpA==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/websocket/-/websocket-1.0.5.tgz", + "integrity": "sha512-NbsqiNX9CnEfC1Z0Vf4mE1SgAJ07JnRYcNex7AJ9zAVzmiGHmjKFEk7O4TJIsgv2B1sLEb6owKFZrACwdYngsQ==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/ws": { + "version": "8.2.2", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.2.2.tgz", + "integrity": "sha512-NOn5eIcgWLOo6qW8AcuLZ7G8PycXu0xTxxkS6Q18VWFxgPUSOwV0pBj2a/4viNZVu25i7RIB7GttdkAIUUXOOg==", "dev": true, "requires": { "@types/node": "*" @@ -6329,11 +6465,6 @@ "uri-js": "^4.2.2" } }, - "anser": { - "version": "1.4.9", - "resolved": "https://registry.npmjs.org/anser/-/anser-1.4.9.tgz", - "integrity": "sha512-AI+BjTeGt2+WFk4eWcqbQ7snZpDBt8SaLlj0RT2h5xfdWaiy51OjYvqwMrNzJLGy8iOAL6nKDITWO+rd4MkYEA==" - }, "ansi-align": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz", @@ -6369,12 +6500,14 @@ "ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -6389,6 +6522,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", + "dev": true, "requires": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -6469,40 +6603,6 @@ "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=", "dev": true }, - "asn1.js": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", - "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", - "requires": { - "bn.js": "^4.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0", - "safer-buffer": "^2.1.0" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - } - } - }, - "assert": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/assert/-/assert-2.0.0.tgz", - "integrity": "sha512-se5Cd+js9dXJnu6Ag2JFc00t+HmHOen+8Q+L7O9zI0PqQXr20uk2J0XQqMxZEeo5U50o8Nvmmx7dZrl+Ufr35A==", - "requires": { - "es6-object-assign": "^1.1.0", - "is-nan": "^1.2.1", - "object-is": "^1.0.1", - "util": "^0.12.0" - } - }, - "ast-types": { - "version": "0.13.2", - "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.2.tgz", - "integrity": "sha512-uWMHxJxtfj/1oZClOxDEV1sQ1HCDkA4MG8Gr69KKeBjEVH0R84WlejZ0y2DcwyBlpAEMltmVYkVgqfLFb2oyiA==" - }, "ast-types-flow": { "version": "0.0.7", "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", @@ -6533,11 +6633,6 @@ "integrity": "sha512-Hdw8qdNiqdJ8LqT0iK0sVzkFbzg6fhnQqqfWhBDxcHZvU75+B+ayzTy8x+k5Ix0Y92XOhOUlx74ps+bA6BeYMQ==", "dev": true }, - "available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==" - }, "axe-core": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.1.3.tgz", @@ -6814,7 +6909,8 @@ "base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "dev": true }, "bech32": { "version": "2.0.0", @@ -6829,12 +6925,27 @@ "binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==" + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true }, - "bn.js": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz", - "integrity": "sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw==" + "bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "dev": true, + "requires": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + }, + "dependencies": { + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + } + } }, "body-parser": { "version": "1.19.0", @@ -6946,100 +7057,17 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, "requires": { "fill-range": "^7.0.1" } }, - "brorand": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=" - }, "browser-process-hrtime": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", "dev": true }, - "browserify-aes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", - "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", - "requires": { - "buffer-xor": "^1.0.3", - "cipher-base": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.3", - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "browserify-cipher": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", - "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", - "requires": { - "browserify-aes": "^1.0.4", - "browserify-des": "^1.0.0", - "evp_bytestokey": "^1.0.0" - } - }, - "browserify-des": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", - "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", - "requires": { - "cipher-base": "^1.0.1", - "des.js": "^1.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "browserify-rsa": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.0.tgz", - "integrity": "sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog==", - "requires": { - "bn.js": "^5.0.0", - "randombytes": "^2.0.1" - } - }, - "browserify-sign": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.1.tgz", - "integrity": "sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==", - "requires": { - "bn.js": "^5.1.1", - "browserify-rsa": "^4.0.1", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "elliptic": "^6.5.3", - "inherits": "^2.0.4", - "parse-asn1": "^5.1.5", - "readable-stream": "^3.6.0", - "safe-buffer": "^5.2.0" - }, - "dependencies": { - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" - } - } - }, - "browserify-zlib": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", - "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", - "requires": { - "pako": "~1.0.5" - } - }, "browserslist": { "version": "4.16.7", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.16.7.tgz", @@ -7092,12 +7120,13 @@ } }, "buffer": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.6.0.tgz", - "integrity": "sha512-/gDYp/UtU0eA1ys8bOs9J6a+E/KWIY+DZ+Q2WESNUA0jFRsJOc0SNUO6xJ5SGA1xueg3NL65W6s+NY5l9cunuw==", + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, "requires": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4" + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" } }, "buffer-equal-constant-time": { @@ -7112,16 +7141,6 @@ "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", "dev": true }, - "buffer-xor": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", - "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=" - }, - "builtin-status-codes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", - "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=" - }, "bytes": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", @@ -7163,6 +7182,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dev": true, "requires": { "function-bind": "^1.1.1", "get-intrinsic": "^1.0.2" @@ -7199,9 +7219,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001285", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001285.tgz", - "integrity": "sha512-KAOkuUtcQ901MtmvxfKD+ODHH9YVDYnBt+TGYSz2KIfnq22CiArbUxXPN9067gNbgMlnNYRSwho8OPXZPALB9Q==" + "version": "1.0.30001312", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001312.tgz", + "integrity": "sha512-Wiz1Psk2MEK0pX3rUzWaunLTZzqS2JYZFzNKqAiJGiuxIjRPLgV6+VDPOg6lQOUxmDwhTlh198JsTTi8Hzw6aQ==" }, "canvas-renderer": { "version": "2.2.0", @@ -7234,6 +7254,7 @@ "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -7302,6 +7323,7 @@ "version": "3.5.1", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.1.tgz", "integrity": "sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw==", + "dev": true, "requires": { "anymatch": "~3.1.1", "braces": "~3.0.2", @@ -7319,15 +7341,6 @@ "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", "dev": true }, - "cipher-base": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", - "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, "cjs-module-lexer": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz", @@ -7354,6 +7367,12 @@ "restore-cursor": "^3.1.0" } }, + "cli-spinners": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.6.1.tgz", + "integrity": "sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g==", + "dev": true + }, "cli-truncate": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-0.2.1.tgz", @@ -7418,6 +7437,12 @@ "wrap-ansi": "^7.0.0" } }, + "clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", + "dev": true + }, "clone-response": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", @@ -7495,7 +7520,8 @@ "colorette": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.2.2.tgz", - "integrity": "sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==" + "integrity": "sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==", + "dev": true }, "combined-stream": { "version": "1.0.8", @@ -7512,11 +7538,6 @@ "integrity": "sha512-6P6g0uetGpW/sdyUy/iQQCbFF0kWVMSIVSyYz7Zgjcgh8mgw8PQzDNZeyZ5DQ2gM7LBoZPHmnjz8rUthkBG5tw==", "dev": true }, - "commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=" - }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -7543,11 +7564,6 @@ "integrity": "sha512-gNld/3lySHwuhaVluJUKLePYirM3QNCKzVxqAdhJII9/WXKVX5PURzMVJspS1jTslSqjeuG4KMVTSouit5YPHA==", "dev": true }, - "console-browserify": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", - "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==" - }, "constant-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/constant-case/-/constant-case-3.0.4.tgz", @@ -7567,11 +7583,6 @@ } } }, - "constants-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", - "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=" - }, "contains-path": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/contains-path/-/contains-path-0.1.0.tgz", @@ -7595,6 +7606,7 @@ "version": "1.7.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", + "dev": true, "requires": { "safe-buffer": "~5.1.1" } @@ -7674,11 +7686,6 @@ "integrity": "sha512-CC582enhrFZStO4F8lGI7QL3SYx7/AIRc+IdSi3btrQGrVsTawo5K/crmKbRrQ+MOMhNX4v+PATn0k2NN6wI7A==", "dev": true }, - "core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" - }, "cors": { "version": "2.8.5", "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", @@ -7710,47 +7717,6 @@ "@iarna/toml": "^2.2.5" } }, - "create-ecdh": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz", - "integrity": "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==", - "requires": { - "bn.js": "^4.1.0", - "elliptic": "^6.5.3" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - } - } - }, - "create-hash": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", - "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", - "requires": { - "cipher-base": "^1.0.1", - "inherits": "^2.0.1", - "md5.js": "^1.3.4", - "ripemd160": "^2.0.1", - "sha.js": "^2.4.0" - } - }, - "create-hmac": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", - "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", - "requires": { - "cipher-base": "^1.0.3", - "create-hash": "^1.1.0", - "inherits": "^2.0.1", - "ripemd160": "^2.0.0", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, "create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", @@ -7758,20 +7724,12 @@ "dev": true }, "cross-fetch": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.0.6.tgz", - "integrity": "sha512-KBPUbqgFjzWlVcURG+Svp9TlhA5uliYtiNx/0r8nv0pdypeQCRJ9IaSIc3q/x3q8t3F75cHuwxVql1HFGHCNJQ==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", + "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", "dev": true, "requires": { - "node-fetch": "2.6.1" - }, - "dependencies": { - "node-fetch": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", - "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==", - "dev": true - } + "node-fetch": "2.6.7" } }, "cross-spawn": { @@ -7786,9 +7744,9 @@ } }, "cross-undici-fetch": { - "version": "0.1.19", - "resolved": "https://registry.npmjs.org/cross-undici-fetch/-/cross-undici-fetch-0.1.19.tgz", - "integrity": "sha512-bNBuesVn09Iy15mAM/hpt97fLWSexblVYpUYa5FjbtLHA7om9w3g1uRGGwrEnmVxy3wouNvZyJwQzAPHXgOrxQ==", + "version": "0.1.24", + "resolved": "https://registry.npmjs.org/cross-undici-fetch/-/cross-undici-fetch-0.1.24.tgz", + "integrity": "sha512-83KDV6+8pYCn51zSM2cFAwqQ5UQtDaPm89RkUwHxEMDq/cdqYgqo1q+2eM/Xhmd8HeAsGTtecsC4crrQkCn0zg==", "dev": true, "requires": { "abort-controller": "^3.0.0", @@ -7799,24 +7757,6 @@ "web-streams-polyfill": "^3.2.0" } }, - "crypto-browserify": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", - "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", - "requires": { - "browserify-cipher": "^1.0.0", - "browserify-sign": "^4.0.0", - "create-ecdh": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.0", - "diffie-hellman": "^5.0.0", - "inherits": "^2.0.1", - "pbkdf2": "^3.0.3", - "public-encrypt": "^4.0.0", - "randombytes": "^2.0.0", - "randomfill": "^1.0.3" - } - }, "crypto-random-string": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", @@ -7907,23 +7847,8 @@ "css.escape": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz", - "integrity": "sha1-QuJ9T6BK4y+TGktNQZH6nN3ul8s=" - }, - "cssnano-preset-simple": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssnano-preset-simple/-/cssnano-preset-simple-3.0.0.tgz", - "integrity": "sha512-vxQPeoMRqUT3c/9f0vWeVa2nKQIHFpogtoBvFdW4GQ3IvEJ6uauCP6p3Y5zQDLFcI7/+40FTgX12o7XUL0Ko+w==", - "requires": { - "caniuse-lite": "^1.0.30001202" - } - }, - "cssnano-simple": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssnano-simple/-/cssnano-simple-3.0.0.tgz", - "integrity": "sha512-oU3ueli5Dtwgh0DyeohcIEE00QVfbPR3HzyXdAl89SfnQG3y0/qcpfLVW+jPIh3/rgMZGwuW96rejZGaYE9eUg==", - "requires": { - "cssnano-preset-simple": "^3.0.0" - } + "integrity": "sha1-QuJ9T6BK4y+TGktNQZH6nN3ul8s=", + "dev": true }, "csso": { "version": "4.2.0", @@ -8056,11 +7981,6 @@ "integrity": "sha512-JVrozIeElnj3QzfUIt8tB8YMluBJom4Vw9qTPpjGYQ9fYlB3D/rb6OordUxf3xeFB35LKWs0xqcO5U6ySvBtug==", "dev": true }, - "data-uri-to-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-3.0.1.tgz", - "integrity": "sha512-WboRycPNsVw3B3TL559F7kuBUM4d8CgMEvk6xEJlOp7OBPjt6G7z8WMWlD2rOFZLk6OYfFIUGsCOWzcQH9K2og==" - }, "data-urls": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", @@ -8187,6 +8107,15 @@ "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", "dev": true }, + "defaults": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz", + "integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=", + "dev": true, + "requires": { + "clone": "^1.0.2" + } + }, "defer-to-connect": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", @@ -8197,6 +8126,7 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "dev": true, "requires": { "object-keys": "^1.0.12" } @@ -8218,15 +8148,6 @@ "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", "dev": true }, - "des.js": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.1.tgz", - "integrity": "sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==", - "requires": { - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } - }, "destroy": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", @@ -8256,23 +8177,6 @@ "integrity": "sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q==", "dev": true }, - "diffie-hellman": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", - "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", - "requires": { - "bn.js": "^4.1.0", - "miller-rabin": "^4.0.0", - "randombytes": "^2.0.0" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - } - } - }, "dir-glob": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", @@ -8331,11 +8235,6 @@ } } }, - "domain-browser": { - "version": "4.19.0", - "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-4.19.0.tgz", - "integrity": "sha512-fRA+BaAWOR/yr/t7T9E9GJztHPeFjj8U35ajyAjCDtAAnTn1Rc1f6W6VGPJrO1tkQv9zWu+JRof7z6oQtiYVFQ==" - }, "domelementtype": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", @@ -8406,6 +8305,12 @@ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz", "integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==" }, + "dset": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/dset/-/dset-3.1.1.tgz", + "integrity": "sha512-hYf+jZNNqJBD2GiMYb+5mqOIX4R4RRHXU3qWMWYN+rqcR2/YpRL2bUHr8C8fU+5DNvqYjJ8YvMGSLuVPWU1cNg==", + "dev": true + }, "duplexer3": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", @@ -8426,43 +8331,12 @@ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" }, - "electron-to-chromium": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.14.tgz", - "integrity": "sha512-RsGkAN9JEAYMObS72kzUsPPcPGMqX1rBqGuXi9aa4TBKLzICoLf+DAAtd0fVFzrniJqYzpby47gthCUoObfs0Q==" - }, "elegant-spinner": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/elegant-spinner/-/elegant-spinner-1.0.1.tgz", "integrity": "sha1-2wQ1IcldfjA/2PNFvtwzSc+wcp4=", "dev": true }, - "elliptic": { - "version": "6.5.4", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", - "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", - "requires": { - "bn.js": "^4.11.9", - "brorand": "^1.1.0", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.1", - "inherits": "^2.0.4", - "minimalistic-assert": "^1.0.1", - "minimalistic-crypto-utils": "^1.0.1" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - } - } - }, "emittery": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", @@ -8475,34 +8349,11 @@ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, - "emojis-list": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz", - "integrity": "sha1-TapNnbAPmBmIDHn6RXrlsJof04k=" - }, "encodeurl": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" }, - "encoding": { - "version": "0.1.13", - "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", - "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", - "requires": { - "iconv-lite": "^0.6.2" - }, - "dependencies": { - "iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "requires": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - } - } - } - }, "end-of-stream": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", @@ -8582,21 +8433,18 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, "requires": { "is-callable": "^1.1.4", "is-date-object": "^1.0.1", "is-symbol": "^1.0.2" } }, - "es6-object-assign": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/es6-object-assign/-/es6-object-assign-1.1.0.tgz", - "integrity": "sha1-wsNYJlYkfDnqEHyx5mUrb58kUjw=" - }, "escalade": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true }, "escape-goat": { "version": "2.1.1", @@ -8612,7 +8460,8 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true }, "escodegen": { "version": "2.0.0", @@ -9247,20 +9096,6 @@ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" }, - "events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==" - }, - "evp_bytestokey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", - "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", - "requires": { - "md5.js": "^1.3.4", - "safe-buffer": "^5.1.1" - } - }, "execa": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", @@ -9643,18 +9478,29 @@ } }, "fbjs": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-3.0.2.tgz", - "integrity": "sha512-qv+boqYndjElAJHNN3NoM8XuwQZ1j2m3kEvTgdle8IDjr6oUbkEpvABWtj/rQl3vq4ew7dnElBxL4YJAwTVqQQ==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-3.0.4.tgz", + "integrity": "sha512-ucV0tDODnGV3JCnnkmoszb5lf4bNpzjv80K41wd4k798Etq+UYD0y0TIfalLjZoKgjive6/adkRnszwapiDgBQ==", "dev": true, "requires": { - "cross-fetch": "^3.0.4", + "cross-fetch": "^3.1.5", "fbjs-css-vars": "^1.0.0", "loose-envify": "^1.0.0", "object-assign": "^4.1.0", "promise": "^7.1.1", "setimmediate": "^1.0.5", "ua-parser-js": "^0.7.30" + }, + "dependencies": { + "cross-fetch": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", + "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", + "dev": true, + "requires": { + "node-fetch": "2.6.7" + } + } } }, "fbjs-css-vars": { @@ -9685,6 +9531,7 @@ "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, "requires": { "to-regex-range": "^5.0.1" } @@ -9703,20 +9550,11 @@ "unpipe": "~1.0.0" } }, - "find-cache-dir": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.1.tgz", - "integrity": "sha512-t2GDMt3oGC/v+BMwzmllWDuJF/xcDtE5j/fCGbqDD7OLuJkj0cfh1YSA5VKPvwMeLFLNDBkwOKZ2X85jGLVftQ==", - "requires": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - } - }, "find-up": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, "requires": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -9739,19 +9577,14 @@ "dev": true }, "follow-redirects": { - "version": "1.14.7", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.7.tgz", - "integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==" - }, - "foreach": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz", - "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k=" + "version": "1.14.8", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.8.tgz", + "integrity": "sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA==" }, "form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", "dev": true, "requires": { "asynckit": "^0.4.0", @@ -9803,12 +9636,14 @@ "version": "2.3.2", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, "optional": true }, "function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true }, "functional-red-black-tree": { "version": "1.0.1", @@ -9832,20 +9667,13 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==", + "dev": true, "requires": { "function-bind": "^1.1.1", "has": "^1.0.3", "has-symbols": "^1.0.1" } }, - "get-orientation": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/get-orientation/-/get-orientation-1.1.2.tgz", - "integrity": "sha512-/pViTfifW+gBbh/RnlFYHINvELT9Znt+SYyDKAUL6uV6By019AK/s+i9XP4jSwq7lwP38Fd8HVeTxym3+hkwmQ==", - "requires": { - "stream-parser": "^0.3.1" - } - }, "get-package-type": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", @@ -9861,15 +9689,6 @@ "pump": "^3.0.0" } }, - "get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - } - }, "glob": { "version": "7.1.6", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", @@ -9888,15 +9707,11 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, "requires": { "is-glob": "^4.0.1" } }, - "glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" - }, "global-dirs": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.1.0.tgz", @@ -9956,7 +9771,8 @@ "graceful-fs": { "version": "4.2.6", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz", - "integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==" + "integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==", + "dev": true }, "graphql": { "version": "15.5.0", @@ -9964,33 +9780,46 @@ "integrity": "sha512-OmaM7y0kaK31NKG31q4YbD2beNYa6jBBKtMFT6gLYJljHLJr42IqJ8KX08u3Li/0ifzTU5HjmoOOrwa5BRLeDA==" }, "graphql-config": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/graphql-config/-/graphql-config-4.0.1.tgz", - "integrity": "sha512-JdXxFzBwjujJMGLHUZom9SrmP/M4gF57iTDa3fJVm3Q85+Xw2kj9jZIygaaSLpDKhaPnMQZqfJ5Hmc6afKxS9w==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/graphql-config/-/graphql-config-4.1.0.tgz", + "integrity": "sha512-Myqay6pmdcmX3KqoH+bMbeKZ1cTODpHS2CxF1ZzNnfTE+YUpGTcp01bOw6LpzamRb0T/WTYtGFbZeXGo9Hab2Q==", "dev": true, "requires": { "@endemolshinegroup/cosmiconfig-typescript-loader": "3.0.2", - "@graphql-tools/graphql-file-loader": "^7.0.1", - "@graphql-tools/json-file-loader": "^7.0.1", - "@graphql-tools/load": "^7.1.0", - "@graphql-tools/merge": "^6.2.16", - "@graphql-tools/url-loader": "^7.0.3", - "@graphql-tools/utils": "^8.0.1", - "cosmiconfig": "7.0.0", + "@graphql-tools/graphql-file-loader": "^7.3.2", + "@graphql-tools/json-file-loader": "^7.3.2", + "@graphql-tools/load": "^7.4.1", + "@graphql-tools/merge": "^8.2.1", + "@graphql-tools/url-loader": "^7.4.2", + "@graphql-tools/utils": "^8.5.1", + "cosmiconfig": "7.0.1", "cosmiconfig-toml-loader": "1.0.0", "minimatch": "3.0.4", "string-env-interpolation": "1.0.1" }, "dependencies": { "@graphql-tools/utils": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.1.0.tgz", - "integrity": "sha512-V5a7xAxZ6DHzrYYticmsLgWim+vGnC6ztbiOXrO5cGtOOk5NSK657SZXsyVOR7hNvdWiHSW0dlBZb6zkkfOnHA==", + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-8.6.1.tgz", + "integrity": "sha512-uxcfHCocp4ENoIiovPxUWZEHOnbXqj3ekWc0rm7fUhW93a1xheARNHcNKhwMTR+UKXVJbTFQdGI1Rl5XdyvDBg==", "dev": true, "requires": { "tslib": "~2.3.0" } }, + "cosmiconfig": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz", + "integrity": "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==", + "dev": true, + "requires": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + } + }, "tslib": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", @@ -10000,9 +9829,9 @@ } }, "graphql-request": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/graphql-request/-/graphql-request-3.5.0.tgz", - "integrity": "sha512-Io89QpfU4rqiMbqM/KwMBzKaDLOppi8FU8sEccCE4JqCgz95W9Q8bvxQ4NfPALLSMvg9nafgg8AkYRmgKSlukA==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/graphql-request/-/graphql-request-3.7.0.tgz", + "integrity": "sha512-dw5PxHCgBneN2DDNqpWu8QkbbJ07oOziy8z+bK/TAXufsOLaETuVO4GkXrbs0WjhdKhBMN3BkpN/RIvUHkmNUQ==", "dev": true, "requires": { "cross-fetch": "^3.0.6", @@ -10015,20 +9844,15 @@ "resolved": "https://registry.npmjs.org/extract-files/-/extract-files-9.0.0.tgz", "integrity": "sha512-CvdFfHkC95B4bBBk36hcEmvdR2awOdhhVUYH6S/zrVj3477zven/fJMYg7121h4T1xHZC+tetUpubpAhxwI7hQ==", "dev": true - }, - "form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "dev": true, - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - } } } }, + "graphql-sse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/graphql-sse/-/graphql-sse-1.0.6.tgz", + "integrity": "sha512-y2mVBN2KwNrzxX2KBncQ6kzc6JWvecxuBernrl0j65hsr6MAS3+Yn8PTFSOgRmtolxugepxveyZVQEuaNEbw3w==", + "dev": true + }, "graphql-tag": { "version": "2.12.3", "resolved": "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.12.3.tgz", @@ -10045,9 +9869,9 @@ } }, "graphql-ws": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/graphql-ws/-/graphql-ws-5.3.0.tgz", - "integrity": "sha512-53MbSTOmgx5i6hf3DHVD5PrXix1drDmt2ja8MW7NG+aTpKGzkXVLyNcyNpxme4SK8jVtIV6ZIHkiwirqN0efpw==", + "version": "5.5.5", + "resolved": "https://registry.npmjs.org/graphql-ws/-/graphql-ws-5.5.5.tgz", + "integrity": "sha512-hvyIS71vs4Tu/yUYHPvGXsTgo0t3arU820+lT5VjZS2go0ewp2LqyCgxEN56CzOG7Iys52eRhHBiD1gGRdiQtw==", "dev": true }, "hamt_plus": { @@ -10059,6 +9883,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, "requires": { "function-bind": "^1.1.1" } @@ -10083,25 +9908,20 @@ "has-bigints": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.1.tgz", - "integrity": "sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA==" + "integrity": "sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA==", + "dev": true }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true }, "has-symbols": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz", - "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==" - }, - "has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "requires": { - "has-symbols": "^1.0.2" - } + "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==", + "dev": true }, "has-yarn": { "version": "2.1.0", @@ -10109,42 +9929,6 @@ "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==", "dev": true }, - "hash-base": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz", - "integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==", - "requires": { - "inherits": "^2.0.4", - "readable-stream": "^3.6.0", - "safe-buffer": "^5.2.0" - }, - "dependencies": { - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" - } - } - }, - "hash.js": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", - "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", - "requires": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.1" - } - }, - "he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==" - }, "header-case": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/header-case/-/header-case-2.0.4.tgz", @@ -10168,16 +9952,6 @@ "resolved": "https://registry.npmjs.org/helmet/-/helmet-4.6.0.tgz", "integrity": "sha512-HVqALKZlR95ROkrnesdhbbZJFi/rIVSoNq6f3jA/9u6MIbTsPh3xZwihjeI5+DO/2sOV6HMHooXcEOuwskHpTg==" }, - "hmac-drbg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", - "requires": { - "hash.js": "^1.0.3", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.1" - } - }, "hoist-non-react-statics": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", @@ -10253,11 +10027,6 @@ } } }, - "https-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", - "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=" - }, "https-proxy-agent": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", @@ -10307,7 +10076,8 @@ "ieee754": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "dev": true }, "ignore": { "version": "5.1.8", @@ -10321,14 +10091,6 @@ "integrity": "sha1-SMptcvbGo68Aqa1K5odr44ieKwk=", "dev": true }, - "image-size": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/image-size/-/image-size-1.0.0.tgz", - "integrity": "sha512-JLJ6OwBfO1KcA+TvJT+v8gbE6iWbj24LyDNFgFEN0lzegn6cC6a/p3NIDaepMsJjQjlUWqIC7wJv8lBFxPNjcw==", - "requires": { - "queue": "6.0.2" - } - }, "immutable": { "version": "3.7.6", "resolved": "https://registry.npmjs.org/immutable/-/immutable-3.7.6.tgz", @@ -10427,21 +10189,22 @@ "dev": true }, "inquirer": { - "version": "7.3.3", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.3.3.tgz", - "integrity": "sha512-JG3eIAj5V9CwcGvuOmoo6LB9kbAYT8HXffUl6memuszlwDC/qvFAJw49XJ5NROSFNPxp3iQg1GqkFhaY/CR0IA==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.0.tgz", + "integrity": "sha512-0crLweprevJ02tTuA6ThpoAERAGyVILC4sS74uib58Xf/zSr1/ZWtmm7D5CI+bSQEaA04f0K7idaHpQbSWgiVQ==", "dev": true, "requires": { "ansi-escapes": "^4.2.1", - "chalk": "^4.1.0", + "chalk": "^4.1.1", "cli-cursor": "^3.1.0", "cli-width": "^3.0.0", "external-editor": "^3.0.3", "figures": "^3.0.0", - "lodash": "^4.17.19", + "lodash": "^4.17.21", "mute-stream": "0.0.8", + "ora": "^5.4.1", "run-async": "^2.4.0", - "rxjs": "^6.6.0", + "rxjs": "^7.2.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0", "through": "^2.3.6" @@ -10502,6 +10265,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", + "dev": true, "requires": { "get-intrinsic": "^1.1.0", "has": "^1.0.3", @@ -10537,15 +10301,6 @@ "is-windows": "^1.0.1" } }, - "is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, "is-arrayish": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", @@ -10554,12 +10309,14 @@ "is-bigint": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.1.tgz", - "integrity": "sha512-J0ELF4yHFxHy0cmSxZuheDOz2luOdVvqjwmEcj8H/L1JHeuEDSDbeRP+Dk9kFVk5RTFzbucJ2Kb9F7ixY2QaCg==" + "integrity": "sha512-J0ELF4yHFxHy0cmSxZuheDOz2luOdVvqjwmEcj8H/L1JHeuEDSDbeRP+Dk9kFVk5RTFzbucJ2Kb9F7ixY2QaCg==", + "dev": true }, "is-binary-path": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, "requires": { "binary-extensions": "^2.0.0" } @@ -10568,6 +10325,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.0.tgz", "integrity": "sha512-a7Uprx8UtD+HWdyYwnD1+ExtTgqQtD2k/1yJgtXP6wnMm8byhkoTZRl+95LLThpzNZJ5aEvi46cdH+ayMFRwmA==", + "dev": true, "requires": { "call-bind": "^1.0.0" } @@ -10575,7 +10333,8 @@ "is-callable": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.3.tgz", - "integrity": "sha512-J1DcMe8UYTBSrKezuIUTUwjXsho29693unXM2YhJUTR2txK/eG47bvNa/wipPFmZFgr/N6f1GA66dv0mEyTIyQ==" + "integrity": "sha512-J1DcMe8UYTBSrKezuIUTUwjXsho29693unXM2YhJUTR2txK/eG47bvNa/wipPFmZFgr/N6f1GA66dv0mEyTIyQ==", + "dev": true }, "is-ci": { "version": "2.0.0", @@ -10598,12 +10357,14 @@ "is-date-object": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz", - "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==" + "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==", + "dev": true }, "is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true }, "is-fullwidth-code-point": { "version": "3.0.0", @@ -10617,18 +10378,11 @@ "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", "dev": true }, - "is-generator-function": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", - "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", - "requires": { - "has-tostringtag": "^1.0.0" - } - }, "is-glob": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", + "dev": true, "requires": { "is-extglob": "^2.1.1" } @@ -10648,6 +10402,12 @@ "is-path-inside": "^3.0.1" } }, + "is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "dev": true + }, "is-lower-case": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-lower-case/-/is-lower-case-2.0.2.tgz", @@ -10665,19 +10425,11 @@ } } }, - "is-nan": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/is-nan/-/is-nan-1.3.2.tgz", - "integrity": "sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==", - "requires": { - "call-bind": "^1.0.0", - "define-properties": "^1.1.3" - } - }, "is-negative-zero": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.1.tgz", - "integrity": "sha512-2z6JzQvZRa9A2Y7xC6dQQm4FSTSTNWjKIYYTt4246eMTJmIo0Q+ZyOsU66X8lxK1AbB92dFeglPLrhwpeRKO6w==" + "integrity": "sha512-2z6JzQvZRa9A2Y7xC6dQQm4FSTSTNWjKIYYTt4246eMTJmIo0Q+ZyOsU66X8lxK1AbB92dFeglPLrhwpeRKO6w==", + "dev": true }, "is-npm": { "version": "4.0.0", @@ -10688,12 +10440,14 @@ "is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true }, "is-number-object": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.4.tgz", - "integrity": "sha512-zohwelOAur+5uXtk8O3GPQ1eAcu4ZX3UwxQhUlfFFMNpUd83gXgjbhJh6HmB6LUNV/ieOLQuDwJO3dWJosUeMw==" + "integrity": "sha512-zohwelOAur+5uXtk8O3GPQ1eAcu4ZX3UwxQhUlfFFMNpUd83gXgjbhJh6HmB6LUNV/ieOLQuDwJO3dWJosUeMw==", + "dev": true }, "is-obj": { "version": "2.0.0", @@ -10731,9 +10485,9 @@ "dev": true }, "is-promise": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", - "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz", + "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==", "dev": true }, "is-regex": { @@ -10755,11 +10509,6 @@ "is-unc-path": "^1.0.0" } }, - "is-shared-array-buffer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.1.tgz", - "integrity": "sha512-IU0NmyknYZN0rChcKhRO1X8LYz5Isj/Fsqh8NJOSf+N/hCOTwy29F32Ik7a+QszE63IdvmwdTPDd6cZ5pg4cwA==" - }, "is-stream": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", @@ -10769,84 +10518,18 @@ "is-string": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.5.tgz", - "integrity": "sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ==" + "integrity": "sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ==", + "dev": true }, "is-symbol": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==", + "dev": true, "requires": { "has-symbols": "^1.0.1" } }, - "is-typed-array": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.8.tgz", - "integrity": "sha512-HqH41TNZq2fgtGT8WHVFVJhBVGuY3AnP3Q36K8JKXUxSxRgk/d+7NjmwG2vo2mYmXK8UYZKu0qH8bVP5gEisjA==", - "requires": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "es-abstract": "^1.18.5", - "foreach": "^2.0.5", - "has-tostringtag": "^1.0.0" - }, - "dependencies": { - "es-abstract": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.19.1.tgz", - "integrity": "sha512-2vJ6tjA/UfqLm2MPs7jxVybLoB8i1t1Jd9R3kISld20sIxPcTbLuggQOUxeWeAvIUkduv/CfMjuh4WmiXr2v9w==", - "requires": { - "call-bind": "^1.0.2", - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "get-intrinsic": "^1.1.1", - "get-symbol-description": "^1.0.0", - "has": "^1.0.3", - "has-symbols": "^1.0.2", - "internal-slot": "^1.0.3", - "is-callable": "^1.2.4", - "is-negative-zero": "^2.0.1", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.1", - "is-string": "^1.0.7", - "is-weakref": "^1.0.1", - "object-inspect": "^1.11.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.2", - "string.prototype.trimend": "^1.0.4", - "string.prototype.trimstart": "^1.0.4", - "unbox-primitive": "^1.0.1" - } - }, - "is-callable": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz", - "integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==" - }, - "is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "object-inspect": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.11.1.tgz", - "integrity": "sha512-If7BjFlpkzzBeV1cqgT3OSWT3azyoxDGajR+iGnFBfVV2EWyDyWaZZW2ERDjUaY2QM8i5jI3Sj7mhsM4DDAqWA==" - } - } - }, "is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", @@ -10885,14 +10568,6 @@ } } }, - "is-weakref": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.1.tgz", - "integrity": "sha512-b2jKc2pQZjaeFYWEf7ScFj+Be1I+PXmlu572Q8coTXZ+LD/QQZ7ShPMst8h16riVgyXTQwUsFEl74mDvc/3MHQ==", - "requires": { - "call-bind": "^1.0.0" - } - }, "is-windows": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", @@ -10908,7 +10583,8 @@ "isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true }, "isexe": { "version": "2.0.0", @@ -14652,31 +14328,6 @@ } } }, - "jest-worker": { - "version": "27.0.0-next.5", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.0.0-next.5.tgz", - "integrity": "sha512-mk0umAQ5lT+CaOJ+Qp01N6kz48sJG2kr2n1rX0koqKf6FIygQV0qLOdN9SCYID4IVeSigDOcPeGLozdMLYfb5g==", - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -14824,6 +14475,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "dev": true, "requires": { "minimist": "^1.2.0" } @@ -15069,11 +14721,14 @@ "rxjs": "^6.3.3" }, "dependencies": { - "is-promise": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz", - "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==", - "dev": true + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + } } } }, @@ -15246,27 +14901,11 @@ } } }, - "loader-utils": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.2.3.tgz", - "integrity": "sha512-fkpz8ejdnEMG3s37wGL07iSBDg99O9D5yflE9RGNH3hRdx9SOwYfnGYdZOUIZitN8E+E2vkq3MUMYMvPYl5ZZA==", - "requires": { - "big.js": "^5.2.2", - "emojis-list": "^2.0.0", - "json5": "^1.0.1" - }, - "dependencies": { - "big.js": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==" - } - } - }, "locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, "requires": { "p-locate": "^4.1.0" } @@ -15347,11 +14986,6 @@ "integrity": "sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=", "dev": true }, - "lodash.sortby": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", - "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=" - }, "lodash.throttle": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz", @@ -15585,6 +15219,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, "requires": { "semver": "^6.0.0" } @@ -15615,16 +15250,6 @@ "resolved": "https://registry.npmjs.org/markdown-to-jsx/-/markdown-to-jsx-7.1.2.tgz", "integrity": "sha512-O8DMCl32V34RrD+ZHxcAPc2+kYytuDIoQYjY36RVdsLK7uHjgNVvFec4yv0X6LgB4YEZgSvK5QtFi5YVqEpoMA==" }, - "md5.js": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", - "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, "mdn-data": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.4.tgz", @@ -15649,7 +15274,8 @@ "merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true }, "merge2": { "version": "1.4.1", @@ -15678,22 +15304,6 @@ "picomatch": "^2.0.5" } }, - "miller-rabin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", - "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", - "requires": { - "bn.js": "^4.0.0", - "brorand": "^1.0.1" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - } - } - }, "mime": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", @@ -15730,16 +15340,6 @@ "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", "dev": true }, - "minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" - }, - "minimalistic-crypto-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=" - }, "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", @@ -15752,7 +15352,8 @@ "minimist": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true }, "mkdirp": { "version": "1.0.4", @@ -15777,17 +15378,9 @@ "dev": true }, "nanoid": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.2.0.tgz", - "integrity": "sha512-fmsZYa9lpn69Ad5eDn7FMcnnSR+8R34W9qJEijxYhTbfOWzr22n1QxCMzXLK+ODyW2973V3Fux959iQoUxzUIA==" - }, - "native-url": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/native-url/-/native-url-0.3.4.tgz", - "integrity": "sha512-6iM8R99ze45ivyH8vybJ7X0yekIcPf5GgLV5K0ENCbmRcaRIDoj37BC8iLEmaaBfqqb8enuZ5p0uhY+lVAbAcA==", - "requires": { - "querystring": "^0.2.0" - } + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.0.tgz", + "integrity": "sha512-JzxqqT5u/x+/KOFSd7JP15DOo9nOoHpx6DYatqIHUW2+flybkm+mdcraotSQR5WcnZr+qhGVh8Ted0KdfSMxlg==" }, "natural-compare": { "version": "1.4.0", @@ -15801,124 +15394,26 @@ "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" }, "next": { - "version": "11.1.3", - "resolved": "https://registry.npmjs.org/next/-/next-11.1.3.tgz", - "integrity": "sha512-ud/gKmnKQ8wtHC+pd1ZiqPRa7DdgulPkAk94MbpsspfNliwZkYs9SIYWhlLSyg+c661LzdUI2nZshvrtggSYWA==", - "requires": { - "@babel/runtime": "7.15.3", - "@hapi/accept": "5.0.2", - "@next/env": "11.1.3", - "@next/polyfill-module": "11.1.3", - "@next/react-dev-overlay": "11.1.3", - "@next/react-refresh-utils": "11.1.3", - "@next/swc-darwin-arm64": "11.1.3", - "@next/swc-darwin-x64": "11.1.3", - "@next/swc-linux-x64-gnu": "11.1.3", - "@next/swc-win32-x64-msvc": "11.1.3", - "@node-rs/helper": "1.2.1", - "assert": "2.0.0", - "ast-types": "0.13.2", - "browserify-zlib": "0.2.0", - "browserslist": "4.16.6", - "buffer": "5.6.0", - "caniuse-lite": "^1.0.30001228", - "chalk": "2.4.2", - "chokidar": "3.5.1", - "constants-browserify": "1.0.0", - "crypto-browserify": "3.12.0", - "cssnano-simple": "3.0.0", - "domain-browser": "4.19.0", - "encoding": "0.1.13", - "etag": "1.8.1", - "find-cache-dir": "3.3.1", - "get-orientation": "1.1.2", - "https-browserify": "1.0.0", - "image-size": "1.0.0", - "jest-worker": "27.0.0-next.5", - "native-url": "0.3.4", - "node-fetch": "2.6.1", - "node-html-parser": "1.4.9", - "node-libs-browser": "^2.2.1", - "os-browserify": "0.3.0", - "p-limit": "3.1.0", - "path-browserify": "1.0.1", - "pnp-webpack-plugin": "1.6.4", - "postcss": "8.2.15", - "process": "0.11.10", - "querystring-es3": "0.2.1", - "raw-body": "2.4.1", - "react-is": "17.0.2", - "react-refresh": "0.8.3", - "stream-browserify": "3.0.0", - "stream-http": "3.1.1", - "string_decoder": "1.3.0", - "styled-jsx": "4.0.1", - "timers-browserify": "2.0.12", - "tty-browserify": "0.0.1", - "use-subscription": "1.5.1", - "util": "0.12.4", - "vm-browserify": "1.1.2", - "watchpack": "2.1.1" - }, - "dependencies": { - "@babel/runtime": { - "version": "7.15.3", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.15.3.tgz", - "integrity": "sha512-OvwMLqNXkCXSz1kSm58sEsNuhqOx/fKpnUnKnFB5v8uDda5bLNEHNgKPvhDN6IU0LDcnHQ90LlJ0Q6jnyBSIBA==", - "requires": { - "regenerator-runtime": "^0.13.4" - } - }, - "browserslist": { - "version": "4.16.6", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.16.6.tgz", - "integrity": "sha512-Wspk/PqO+4W9qp5iUTJsa1B/QrYn1keNCcEP5OvP7WBwT4KaDly0uONYmC6Xa3Z5IqnUgS0KcgLYu1l74x0ZXQ==", - "requires": { - "caniuse-lite": "^1.0.30001219", - "colorette": "^1.2.2", - "electron-to-chromium": "^1.3.723", - "escalade": "^3.1.1", - "node-releases": "^1.1.71" - } - }, - "http-errors": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.3.tgz", - "integrity": "sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw==", - "requires": { - "depd": "~1.1.2", - "inherits": "2.0.4", - "setprototypeof": "1.1.1", - "statuses": ">= 1.5.0 < 2", - "toidentifier": "1.0.0" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "node-fetch": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", - "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" - }, - "raw-body": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.1.tgz", - "integrity": "sha512-9WmIKF6mkvA0SLmA2Knm9+qj89e+j1zqgyn8aXGd7+nAduPoqgI9lO57SAZNn/Byzo5P7JhXTyg9PzaJbH73bA==", - "requires": { - "bytes": "3.1.0", - "http-errors": "1.7.3", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - } - }, - "react-is": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" - } + "version": "12.0.10", + "resolved": "https://registry.npmjs.org/next/-/next-12.0.10.tgz", + "integrity": "sha512-1y3PpGzpb/EZzz1jgne+JfZXKAVJUjYXwxzrADf/LWN+8yi9o79vMLXpW3mevvCHkEF2sBnIdjzNn16TJrINUw==", + "requires": { + "@next/env": "12.0.10", + "@next/swc-android-arm64": "12.0.10", + "@next/swc-darwin-arm64": "12.0.10", + "@next/swc-darwin-x64": "12.0.10", + "@next/swc-linux-arm-gnueabihf": "12.0.10", + "@next/swc-linux-arm64-gnu": "12.0.10", + "@next/swc-linux-arm64-musl": "12.0.10", + "@next/swc-linux-x64-gnu": "12.0.10", + "@next/swc-linux-x64-musl": "12.0.10", + "@next/swc-win32-arm64-msvc": "12.0.10", + "@next/swc-win32-ia32-msvc": "12.0.10", + "@next/swc-win32-x64-msvc": "12.0.10", + "caniuse-lite": "^1.0.30001283", + "postcss": "8.4.5", + "styled-jsx": "5.0.0", + "use-subscription": "1.5.1" } }, "next-seo": { @@ -15988,182 +15483,18 @@ } } }, - "node-html-parser": { - "version": "1.4.9", - "resolved": "https://registry.npmjs.org/node-html-parser/-/node-html-parser-1.4.9.tgz", - "integrity": "sha512-UVcirFD1Bn0O+TSmloHeHqZZCxHjvtIeGdVdGMhyZ8/PWlEiZaZ5iJzR189yKZr8p0FXN58BUeC7RHRkf/KYGw==", - "requires": { - "he": "1.2.0" - } - }, "node-int64": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=", "dev": true }, - "node-libs-browser": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.2.1.tgz", - "integrity": "sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==", - "requires": { - "assert": "^1.1.1", - "browserify-zlib": "^0.2.0", - "buffer": "^4.3.0", - "console-browserify": "^1.1.0", - "constants-browserify": "^1.0.0", - "crypto-browserify": "^3.11.0", - "domain-browser": "^1.1.1", - "events": "^3.0.0", - "https-browserify": "^1.0.0", - "os-browserify": "^0.3.0", - "path-browserify": "0.0.1", - "process": "^0.11.10", - "punycode": "^1.2.4", - "querystring-es3": "^0.2.0", - "readable-stream": "^2.3.3", - "stream-browserify": "^2.0.1", - "stream-http": "^2.7.2", - "string_decoder": "^1.0.0", - "timers-browserify": "^2.0.4", - "tty-browserify": "0.0.0", - "url": "^0.11.0", - "util": "^0.11.0", - "vm-browserify": "^1.0.1" - }, - "dependencies": { - "assert": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/assert/-/assert-1.5.0.tgz", - "integrity": "sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==", - "requires": { - "object-assign": "^4.1.1", - "util": "0.10.3" - }, - "dependencies": { - "util": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", - "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", - "requires": { - "inherits": "2.0.1" - } - } - } - }, - "buffer": { - "version": "4.9.2", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", - "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", - "requires": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4", - "isarray": "^1.0.0" - } - }, - "domain-browser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", - "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==" - }, - "inherits": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", - "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=" - }, - "path-browserify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", - "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==" - }, - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" - }, - "readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - }, - "dependencies": { - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "stream-browserify": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", - "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", - "requires": { - "inherits": "~2.0.1", - "readable-stream": "^2.0.2" - } - }, - "stream-http": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.3.tgz", - "integrity": "sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==", - "requires": { - "builtin-status-codes": "^3.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.3.6", - "to-arraybuffer": "^1.0.0", - "xtend": "^4.0.0" - } - }, - "tty-browserify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", - "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=" - }, - "util": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/util/-/util-0.11.1.tgz", - "integrity": "sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==", - "requires": { - "inherits": "2.0.3" - }, - "dependencies": { - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" - } - } - } - } - }, "node-modules-regexp": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz", "integrity": "sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA=", "dev": true }, - "node-releases": { - "version": "1.1.77", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.77.tgz", - "integrity": "sha512-rB1DUFUNAN4Gn9keO2K1efO35IDK7yKHCdCaIMvFO7yUYmmZYeDjnGKle26G4rwj+LKRQpjyUUvMkPglwGCYNQ==" - }, "nodemon": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.7.tgz", @@ -16237,7 +15568,8 @@ "normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true }, "normalize-url": { "version": "4.5.1", @@ -16294,26 +15626,20 @@ "object-inspect": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.9.0.tgz", - "integrity": "sha512-i3Bp9iTqwhaLZBxGkRfo5ZbE07BQRT7MGu8+nNgwW9ItGp1TzCTw2DLEoWwjClxBjOFI/hWljTAmYGCEwmtnOw==" - }, - "object-is": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", - "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" - } + "integrity": "sha512-i3Bp9iTqwhaLZBxGkRfo5ZbE07BQRT7MGu8+nNgwW9ItGp1TzCTw2DLEoWwjClxBjOFI/hWljTAmYGCEwmtnOw==", + "dev": true }, "object-keys": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true }, "object.assign": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.2.tgz", "integrity": "sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==", + "dev": true, "requires": { "call-bind": "^1.0.0", "define-properties": "^1.1.3", @@ -16417,11 +15743,74 @@ "word-wrap": "^1.2.3" } }, - "os-browserify": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", - "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=" - }, + "ora": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", + "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", + "dev": true, + "requires": { + "bl": "^4.1.0", + "chalk": "^4.1.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.5.0", + "is-interactive": "^1.0.0", + "is-unicode-supported": "^0.1.0", + "log-symbols": "^4.1.0", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, "os-tmpdir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", @@ -16438,6 +15827,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, "requires": { "yocto-queue": "^0.1.0" } @@ -16446,6 +15836,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, "requires": { "p-limit": "^2.2.0" }, @@ -16454,6 +15845,7 @@ "version": "2.3.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, "requires": { "p-try": "^2.0.0" } @@ -16469,7 +15861,8 @@ "p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true }, "package-json": { "version": "6.5.0", @@ -16483,11 +15876,6 @@ "semver": "^6.2.0" } }, - "pako": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", - "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==" - }, "param-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", @@ -16515,18 +15903,6 @@ "callsites": "^3.0.0" } }, - "parse-asn1": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.6.tgz", - "integrity": "sha512-RnZRo1EPU6JBnra2vGHj0yhp6ebyjBZpmUCLHWiFhxlzvBCCpAuZ7elsBp1PVAbQN0/04VD/19rfzlBSwLstMw==", - "requires": { - "asn1.js": "^5.2.0", - "browserify-aes": "^1.0.0", - "evp_bytestokey": "^1.0.0", - "pbkdf2": "^3.0.3", - "safe-buffer": "^5.1.1" - } - }, "parse-filepath": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.2.tgz", @@ -16579,11 +15955,6 @@ } } }, - "path-browserify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", - "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==" - }, "path-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/path-case/-/path-case-3.0.4.tgz", @@ -16605,7 +15976,8 @@ "path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true }, "path-is-absolute": { "version": "1.0.1", @@ -16651,18 +16023,6 @@ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true }, - "pbkdf2": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.2.tgz", - "integrity": "sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA==", - "requires": { - "create-hash": "^1.1.2", - "create-hmac": "^1.1.4", - "ripemd160": "^2.0.1", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, "performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", @@ -16671,13 +16031,13 @@ "picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" }, "picomatch": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", - "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==" + "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", + "dev": true }, "pify": { "version": "2.3.0", @@ -16698,43 +16058,24 @@ "version": "4.2.0", "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, "requires": { "find-up": "^4.0.0" } }, - "platform": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/platform/-/platform-1.3.6.tgz", - "integrity": "sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg==" - }, - "pnp-webpack-plugin": { - "version": "1.6.4", - "resolved": "https://registry.npmjs.org/pnp-webpack-plugin/-/pnp-webpack-plugin-1.6.4.tgz", - "integrity": "sha512-7Wjy+9E3WwLOEL30D+m8TSTF7qJJUJLONBnwQp0518siuMxUQUbgZwssaFX+QKlZkjHZcw/IpZCt/H0srrntSg==", - "requires": { - "ts-pnp": "^1.1.6" - } - }, "popper.js": { "version": "1.16.1-lts", "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.16.1-lts.tgz", "integrity": "sha512-Kjw8nKRl1m+VrSFCoVGPph93W/qrSO7ZkqPpTf7F4bk/sqcfWK019dWBUpE/fBOsOQY1dks/Bmcbfn1heM/IsA==" }, "postcss": { - "version": "8.2.15", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.2.15.tgz", - "integrity": "sha512-2zO3b26eJD/8rb106Qu2o7Qgg52ND5HPjcyQiK2B98O388h43A448LCslC0dI2P97wCAQRJsFvwTRcXxTKds+Q==", + "version": "8.4.5", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.5.tgz", + "integrity": "sha512-jBDboWM8qpaqwkMwItqTQTiFikhs/67OYVvblFFTM7MrZjt6yMKd6r2kgXizEbTTljacm4NldIlZnhbjr84QYg==", "requires": { - "colorette": "^1.2.2", - "nanoid": "^3.1.23", - "source-map": "^0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - } + "nanoid": "^3.1.30", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.1" } }, "postcss-value-parser": { @@ -16798,16 +16139,6 @@ } } }, - "process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=" - }, - "process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" - }, "progress": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", @@ -16864,26 +16195,6 @@ "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", "dev": true }, - "public-encrypt": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", - "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", - "requires": { - "bn.js": "^4.1.0", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "parse-asn1": "^5.0.0", - "randombytes": "^2.0.1", - "safe-buffer": "^5.1.2" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - } - } - }, "pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", @@ -16897,7 +16208,8 @@ "punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true }, "pupa": { "version": "2.1.1", @@ -16934,24 +16246,6 @@ "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" }, - "querystring": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.1.tgz", - "integrity": "sha512-wkvS7mL/JMugcup3/rMitHmd9ecIGd2lhFhK9N3UUQ450h66d1r3Y9nvXzQAW1Lq+wyx61k/1pfKS5KuKiyEbg==" - }, - "querystring-es3": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", - "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=" - }, - "queue": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/queue/-/queue-6.0.2.tgz", - "integrity": "sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==", - "requires": { - "inherits": "~2.0.3" - } - }, "queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -16971,23 +16265,6 @@ "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.27.1.tgz", "integrity": "sha512-PgIdVpn5y5Yns8vqb8FzBUEYn98V3xcPgawAkkgj0YJ0qDsnHCiNmZYfOGMgOvoB0eWFLpYbhxUR3mxfDIMvpw==" }, - "randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "requires": { - "safe-buffer": "^5.1.0" - } - }, - "randomfill": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", - "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", - "requires": { - "randombytes": "^2.0.5", - "safe-buffer": "^5.1.0" - } - }, "range-parser": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", @@ -17045,11 +16322,6 @@ "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz", "integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==" }, - "react-refresh": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.8.3.tgz", - "integrity": "sha512-X8jZHc7nCMjaCqoU+V2I0cOhNW+QMBwSUkeXnTi8IPe6zaRWfn60ZzvFDZqWPfmSJfjub7dDW1SP0jaHWLu/hg==" - }, "react-resize-detector": { "version": "6.6.4", "resolved": "https://registry.npmjs.org/react-resize-detector/-/react-resize-detector-6.6.4.tgz", @@ -17266,6 +16538,7 @@ "version": "3.6.0", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, "requires": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -17276,6 +16549,7 @@ "version": "3.5.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.5.0.tgz", "integrity": "sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==", + "dev": true, "requires": { "picomatch": "^2.2.1" } @@ -18131,15 +17405,6 @@ "glob": "^7.1.3" } }, - "ripemd160": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", - "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1" - } - }, "run-async": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", @@ -18156,12 +17421,20 @@ } }, "rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.4.tgz", + "integrity": "sha512-h5M3Hk78r6wAheJF0a5YahB1yRQKCsZ4MsGdZ5O9ETbVtjPcScGfrMmoOq7EBsCRzd4BDkvDJ7ogP8Sz5tTFiQ==", "dev": true, "requires": { - "tslib": "^1.9.0" + "tslib": "^2.1.0" + }, + "dependencies": { + "tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", + "dev": true + } } }, "safe-buffer": { @@ -18207,7 +17480,8 @@ "semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true }, "semver-diff": { "version": "3.1.1", @@ -18284,22 +17558,14 @@ "setimmediate": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=" + "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", + "dev": true }, "setprototypeof": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" }, - "sha.js": { - "version": "2.4.11", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", - "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, "shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -18315,15 +17581,11 @@ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true }, - "shell-quote": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.2.tgz", - "integrity": "sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg==" - }, "side-channel": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dev": true, "requires": { "call-bind": "^1.0.0", "get-intrinsic": "^1.0.2", @@ -18387,12 +17649,15 @@ } }, "source-map": { - "version": "0.8.0-beta.0", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", - "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==", - "requires": { - "whatwg-url": "^7.0.0" - } + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + }, + "source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==" }, "source-map-resolve": { "version": "0.6.0", @@ -18500,72 +17765,17 @@ } } }, - "stacktrace-parser": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/stacktrace-parser/-/stacktrace-parser-0.1.10.tgz", - "integrity": "sha512-KJP1OCML99+8fhOHxwwzyWrlUuVX5GQ0ZpJTd1DFXhdkrvg1szxfHhawXUZ3g9TkXORQd4/WG68jMlQZ2p8wlg==", - "requires": { - "type-fest": "^0.7.1" - } - }, "statuses": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" }, - "stream-browserify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-3.0.0.tgz", - "integrity": "sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA==", - "requires": { - "inherits": "~2.0.4", - "readable-stream": "^3.5.0" - }, - "dependencies": { - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - } - } - }, - "stream-http": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-3.1.1.tgz", - "integrity": "sha512-S7OqaYu0EkFpgeGFb/NPOoPLxFko7TPqtEeFg5DXPB4v/KETHG0Ln6fRFrNezoelpaDKmycEmmZ81cC9DAwgYg==", - "requires": { - "builtin-status-codes": "^3.0.0", - "inherits": "^2.0.4", - "readable-stream": "^3.6.0", - "xtend": "^4.0.2" - }, - "dependencies": { - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - } - } - }, - "stream-parser": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/stream-parser/-/stream-parser-0.3.1.tgz", - "integrity": "sha1-FhhUhpRCACGhGC/wrxkRwSl2F3M=", - "requires": { - "debug": "2" - } - }, "string-env-interpolation": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/string-env-interpolation/-/string-env-interpolation-1.0.1.tgz", "integrity": "sha512-78lwMoCcn0nNu8LszbP1UA7g55OeE4v7rCeWnM5B453rnNr4aq+5it3FEYtZrSEiMvHZOZ9Jlqb0OD0M2VInqg==", "dev": true }, - "string-hash": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/string-hash/-/string-hash-1.1.3.tgz", - "integrity": "sha1-6Kr8CsGFW0Zmkp7X3RJ1311sgRs=" - }, "string-length": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", @@ -18606,6 +17816,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz", "integrity": "sha512-y9xCjw1P23Awk8EvTpcyL2NIr1j7wJ39f+k6lvRnSMz+mz9CGz9NYPelDk42kOz6+ql8xjfK8oYzy3jAP5QU5A==", + "dev": true, "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.3" @@ -18615,6 +17826,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.4.tgz", "integrity": "sha512-jh6e984OBfvxS50tdY2nRZnoC5/mLFKOREQfw8t5yytkoUsJRNxvI/E39qu1sD0OtWI3OC0XgKSmcWwziwYuZw==", + "dev": true, "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.3" @@ -18624,6 +17836,7 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, "requires": { "safe-buffer": "~5.2.0" }, @@ -18631,7 +17844,8 @@ "safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true } } }, @@ -18639,6 +17853,7 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "dev": true, "requires": { "ansi-regex": "^5.0.0" } @@ -18671,63 +17886,9 @@ "dev": true }, "styled-jsx": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-4.0.1.tgz", - "integrity": "sha512-Gcb49/dRB1k8B4hdK8vhW27Rlb2zujCk1fISrizCcToIs+55B4vmUM0N9Gi4nnVfFZWe55jRdWpAqH1ldAKWvQ==", - "requires": { - "@babel/plugin-syntax-jsx": "7.14.5", - "@babel/types": "7.15.0", - "convert-source-map": "1.7.0", - "loader-utils": "1.2.3", - "source-map": "0.7.3", - "string-hash": "1.1.3", - "stylis": "3.5.4", - "stylis-rule-sheet": "0.0.10" - }, - "dependencies": { - "@babel/helper-plugin-utils": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.14.5.tgz", - "integrity": "sha512-/37qQCE3K0vvZKwoK4XU/irIJQdIfCJuhU5eKnNxpFDsOkgFaUAwbv+RYw6eYgsC0E4hS7r5KqGULUogqui0fQ==" - }, - "@babel/helper-validator-identifier": { - "version": "7.15.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", - "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==" - }, - "@babel/plugin-syntax-jsx": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.14.5.tgz", - "integrity": "sha512-ohuFIsOMXJnbOMRfX7/w7LocdR6R7whhuRD4ax8IipLcLPlZGJKkBxgHp++U4N/vKyU16/YDQr2f5seajD3jIw==", - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/types": { - "version": "7.15.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.0.tgz", - "integrity": "sha512-OBvfqnllOIdX4ojTHpwZbpvz4j3EWyjkZEdmjH0/cgsd6QOdSgU8rLSk6ard/pcW7rlmjdVSX/AWOaORR1uNOQ==", - "requires": { - "@babel/helper-validator-identifier": "^7.14.9", - "to-fast-properties": "^2.0.0" - } - }, - "source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==" - } - } - }, - "stylis": { - "version": "3.5.4", - "resolved": "https://registry.npmjs.org/stylis/-/stylis-3.5.4.tgz", - "integrity": "sha512-8/3pSmthWM7lsPBKv7NXkzn2Uc9W7NotcwGNpJaa3k7WMM1XDCA4MgT5k/8BIexd5ydZdboXtU90XH9Ec4Bv/Q==" - }, - "stylis-rule-sheet": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/stylis-rule-sheet/-/stylis-rule-sheet-0.0.10.tgz", - "integrity": "sha512-nTbZoaqoBnmK+ptANthb10ZRZOGC+EmTLLUxeYIuHNkEKcmKgXX1XWKkUBT2Ac4es3NybooPe0SmvKdhKJZAuw==" + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.0.0.tgz", + "integrity": "sha512-qUqsWoBquEdERe10EW8vLp3jT25s/ssG1/qX5gZ4wu15OZpmSMFI2v+fWlRhLfykA5rFtlJ1ME8A8pm/peV4WA==" }, "subscriptions-transport-ws": { "version": "0.10.0", @@ -18757,6 +17918,7 @@ "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -18874,25 +18036,13 @@ "dev": true }, "sync-fetch": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/sync-fetch/-/sync-fetch-0.3.0.tgz", - "integrity": "sha512-dJp4qg+x4JwSEW1HibAuMi0IIrBI3wuQr2GimmqB7OXR50wmwzfdusG+p39R9w3R6aFtZ2mzvxvWKQ3Bd/vx3g==", + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/sync-fetch/-/sync-fetch-0.3.1.tgz", + "integrity": "sha512-xj5qiCDap/03kpci5a+qc5wSJjc8ZSixgG2EUmH1B8Ea2sfWclQA7eH40hiHPCtkCn6MCk4Wb+dqcXdCy2PP3g==", "dev": true, "requires": { "buffer": "^5.7.0", "node-fetch": "^2.6.1" - }, - "dependencies": { - "buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "requires": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - } } }, "table": { @@ -19018,14 +18168,6 @@ "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", "dev": true }, - "timers-browserify": { - "version": "2.0.12", - "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.12.tgz", - "integrity": "sha512-9phl76Cqm6FhSX9Xe1ZUAMLtm1BLkKj2Qd5ApyWkXzsMRaA7dgr81kf4wJmQf/hAvg8EEyJxDo3du/0KlhPiKQ==", - "requires": { - "setimmediate": "^1.0.4" - } - }, "tiny-warning": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz", @@ -19063,15 +18205,11 @@ "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", "dev": true }, - "to-arraybuffer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", - "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=" - }, "to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=" + "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", + "dev": true }, "to-readable-stream": { "version": "1.0.0", @@ -19083,6 +18221,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, "requires": { "is-number": "^7.0.0" } @@ -19117,14 +18256,6 @@ "universalify": "^0.1.2" } }, - "tr46": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", - "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=", - "requires": { - "punycode": "^2.1.0" - } - }, "ts-invariant": { "version": "0.7.3", "resolved": "https://registry.npmjs.org/ts-invariant/-/ts-invariant-0.7.3.tgz", @@ -19346,9 +18477,9 @@ } }, "ts-log": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/ts-log/-/ts-log-2.2.3.tgz", - "integrity": "sha512-XvB+OdKSJ708Dmf9ore4Uf/q62AYDTzFcAdxc8KNML1mmAWywRFVt/dn1KYJH8Agt5UJNujfM3znU5PxgAzA2w==", + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/ts-log/-/ts-log-2.2.4.tgz", + "integrity": "sha512-DEQrfv6l7IvN2jlzc/VTdZJYsWUnQNCsueYjMkC/iXoEoi5fNan6MjeDqkvhfzbmHgdz9UxDUluX3V5HdjTydQ==", "dev": true }, "ts-node": { @@ -19385,11 +18516,6 @@ } } }, - "ts-pnp": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/ts-pnp/-/ts-pnp-1.2.0.tgz", - "integrity": "sha512-csd+vJOb/gkzvcCHgTGSChYpy5f1/XKNsmvBGO4JXS+z1v2HobugDz4s1IeFXM3wZB44uczs+eazB5Q/ccdhQw==" - }, "tsconfig-paths": { "version": "3.9.0", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz", @@ -19416,11 +18542,6 @@ "tslib": "^1.8.1" } }, - "tty-browserify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.1.tgz", - "integrity": "sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw==" - }, "type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -19436,11 +18557,6 @@ "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true }, - "type-fest": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.7.1.tgz", - "integrity": "sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg==" - }, "type-is": { "version": "1.6.18", "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", @@ -19475,6 +18591,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.1.tgz", "integrity": "sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw==", + "dev": true, "requires": { "function-bind": "^1.1.1", "has-bigints": "^1.0.1", @@ -19498,9 +18615,9 @@ } }, "undici": { - "version": "4.12.2", - "resolved": "https://registry.npmjs.org/undici/-/undici-4.12.2.tgz", - "integrity": "sha512-RZj6SbkQFs5O/pJCboGEo6l5DTCe3Zg4r/8Z/0/2qnIv08+s6zL4akohOPMYWKc3mzwv15WTvsfMWaafZcvYoQ==", + "version": "4.14.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-4.14.1.tgz", + "integrity": "sha512-WJ+g+XqiZcATcBaUeluCajqy4pEDcQfK1vy+Fo+bC4/mqXI9IIQD/XWHLS70fkGUT6P52Drm7IFslO651OdLPQ==", "dev": true }, "unicode-canonical-property-names-ecmascript": { @@ -19692,27 +18809,6 @@ "punycode": "^2.1.0" } }, - "url": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", - "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", - "requires": { - "punycode": "1.3.2", - "querystring": "0.2.0" - }, - "dependencies": { - "punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=" - }, - "querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=" - } - } - }, "url-parse-lax": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", @@ -19730,23 +18826,11 @@ "object-assign": "^4.1.1" } }, - "util": { - "version": "0.12.4", - "resolved": "https://registry.npmjs.org/util/-/util-0.12.4.tgz", - "integrity": "sha512-bxZ9qtSlGUWSOy9Qa9Xgk11kSslpuZwaxCg4sNIDj6FLucDab2JxnHwyNTCpHMtK1MjoQiWQ6DiUMZYbSrO+Sw==", - "requires": { - "inherits": "^2.0.3", - "is-arguments": "^1.0.4", - "is-generator-function": "^1.0.7", - "is-typed-array": "^1.1.3", - "safe-buffer": "^5.1.2", - "which-typed-array": "^1.1.2" - } - }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "dev": true }, "util.promisify": { "version": "1.0.1", @@ -19807,9 +18891,9 @@ } }, "value-or-promise": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.10.tgz", - "integrity": "sha512-1OwTzvcfXkAfabk60UVr5NdjtjJ0Fg0T5+B1bhxtrOEwSH2fe8y4DnLgoksfCyd8yZCOQQHB0qLMQnwgCjbXLQ==", + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.11.tgz", + "integrity": "sha512-41BrgH+dIbCFXClcSapVs5M6GkENd3gQOJpEfPDNa71LsUGMXDL0jMWpI/Rh7WhX+Aalfz2TTS3Zt5pUsbnhLg==", "dev": true }, "vary": { @@ -19817,11 +18901,6 @@ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" }, - "vm-browserify": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", - "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==" - }, "w3c-hr-time": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", @@ -19849,13 +18928,13 @@ "makeerror": "1.0.x" } }, - "watchpack": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.1.1.tgz", - "integrity": "sha512-Oo7LXCmc1eE1AjyuSBmtC3+Wy4HcV8PxWh2kP6fOl8yTlNS7r0K9l1ao2lrrUza7V39Y3D/BbJgY8VeSlc5JKw==", + "wcwidth": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", + "integrity": "sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g=", + "dev": true, "requires": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" + "defaults": "^1.0.3" } }, "web-streams-polyfill": { @@ -19864,11 +18943,6 @@ "integrity": "sha512-EqPmREeOzttaLRm5HS7io98goBgZ7IVz79aDvqjD0kYXLtFZTc0T/U6wHTPKyIjb+MdN7DFIIX6hgdBEpWmfPA==", "dev": true }, - "webidl-conversions": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", - "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==" - }, "whatwg-encoding": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", @@ -19890,16 +18964,6 @@ "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", "dev": true }, - "whatwg-url": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", - "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", - "requires": { - "lodash.sortby": "^4.7.0", - "tr46": "^1.0.1", - "webidl-conversions": "^4.0.2" - } - }, "which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -19913,6 +18977,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, "requires": { "is-bigint": "^1.0.1", "is-boolean-object": "^1.1.0", @@ -19927,75 +18992,6 @@ "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", "dev": true }, - "which-typed-array": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.7.tgz", - "integrity": "sha512-vjxaB4nfDqwKI0ws7wZpxIlde1XrLX5uB0ZjpfshgmapJMD7jJWhZI+yToJTqaFByF0eNBcYxbjmCzoRP7CfEw==", - "requires": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "es-abstract": "^1.18.5", - "foreach": "^2.0.5", - "has-tostringtag": "^1.0.0", - "is-typed-array": "^1.1.7" - }, - "dependencies": { - "es-abstract": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.19.1.tgz", - "integrity": "sha512-2vJ6tjA/UfqLm2MPs7jxVybLoB8i1t1Jd9R3kISld20sIxPcTbLuggQOUxeWeAvIUkduv/CfMjuh4WmiXr2v9w==", - "requires": { - "call-bind": "^1.0.2", - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "get-intrinsic": "^1.1.1", - "get-symbol-description": "^1.0.0", - "has": "^1.0.3", - "has-symbols": "^1.0.2", - "internal-slot": "^1.0.3", - "is-callable": "^1.2.4", - "is-negative-zero": "^2.0.1", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.1", - "is-string": "^1.0.7", - "is-weakref": "^1.0.1", - "object-inspect": "^1.11.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.2", - "string.prototype.trimend": "^1.0.4", - "string.prototype.trimstart": "^1.0.4", - "unbox-primitive": "^1.0.1" - } - }, - "is-callable": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz", - "integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==" - }, - "is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "object-inspect": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.11.1.tgz", - "integrity": "sha512-If7BjFlpkzzBeV1cqgT3OSWT3azyoxDGajR+iGnFBfVV2EWyDyWaZZW2ERDjUaY2QM8i5jI3Sj7mhsM4DDAqWA==" - } - } - }, "widest-line": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", @@ -20089,11 +19085,6 @@ "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", "dev": true }, - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" - }, "y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", @@ -20119,18 +19110,46 @@ "dev": true }, "yargs": { - "version": "17.1.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.1.0.tgz", - "integrity": "sha512-SQr7qqmQ2sNijjJGHL4u7t8vyDZdZ3Ahkmo4sc1w5xI9TBX0QDdG/g4SFnxtWOsGLjwHQue57eFALfwFCnixgg==", + "version": "17.3.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.3.1.tgz", + "integrity": "sha512-WUANQeVgjLbNsEmGk20f+nlHgOqzRFpiGWVaBrYGYIGANIIu3lWjoyi0fNlFmJkvfhCZ6BXINe7/W2O2bV4iaA==", "dev": true, "requires": { "cliui": "^7.0.2", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", - "string-width": "^4.2.0", + "string-width": "^4.2.3", "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" + "yargs-parser": "^21.0.0" + }, + "dependencies": { + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + }, + "yargs-parser": { + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.0.0.tgz", + "integrity": "sha512-z9kApYUOCwoeZ78rfRYYWdiU/iNL6mwwYlkkZfJoyMR1xps+NEBX5X7XmRpxkZHhXJ6+Ey00IwKxBBSW9FIjyA==", + "dev": true + } } }, "yargs-parser": { @@ -20148,7 +19167,8 @@ "yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==" + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true }, "zen-observable": { "version": "0.8.15", diff --git a/package.json b/package.json index 43834ab3cb..7a8ea197c7 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "jdenticon": "^3.1.0", "markdown-to-jsx": "^7.1.2", "mock-apollo-client": "^1.1.0", - "next": "^11.1.3", + "next": "^12.0.10", "next-seo": "^4.26.0", "next-translate": "^1.0.3", "numeral": "2.0.4", @@ -55,7 +55,7 @@ "subscriptions-transport-ws": "^0.10.0" }, "devDependencies": { - "@graphql-codegen/cli": "^2.0.1", + "@graphql-codegen/cli": "^2.6.1", "@graphql-codegen/fragment-matcher": "^2.0.1", "@graphql-codegen/typescript": "^1.21.0", "@graphql-codegen/typescript-operations": "^1.17.14", From 74ab648eb20bc10da24972b357e5f6b1ffc88f23 Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Thu, 17 Feb 2022 10:37:14 +0800 Subject: [PATCH 12/54] Debug/polling (#711) --- .github/workflows/docker_production.yml | 1 - CHANGELOG.md | 1 + codegen.yml | 4 +- next-env.d.ts | 1 + public/locales/en/validators.json | 3 +- src/graphql/desmos_profile.ts | 263 -- src/graphql/types.tsx | 2327 +---------------- src/graphql/validator_details.graphql | 1 + .../__snapshots__/index.test.tsx.snap | 54 - .../__snapshots__/index.test.tsx.snap | 41 - .../components/transactions/hooks.ts | 99 + .../components/transactions/index.test.tsx | 59 - .../components/transactions/index.tsx | 43 +- .../components/transactions/types.ts | 6 + src/screens/account_details/hooks.ts | 91 +- src/screens/account_details/index.tsx | 5 - src/screens/account_details/types.ts | 6 - .../components/profile/index.test.tsx | 14 +- .../components/profile/index.tsx | 24 +- .../__snapshots__/index.test.tsx.snap | 41 - .../components/transactions/hooks.ts | 99 + .../components/transactions/index.test.tsx | 59 - .../components/transactions/index.tsx | 37 +- .../components/transactions/types.ts | 6 + .../components/validator_overview/index.tsx | 296 ++- src/screens/validator_details/hooks.ts | 123 +- src/screens/validator_details/index.tsx | 31 +- src/screens/validator_details/types.ts | 8 +- 28 files changed, 528 insertions(+), 3215 deletions(-) delete mode 100644 src/screens/account_details/components/transactions/__snapshots__/index.test.tsx.snap create mode 100644 src/screens/account_details/components/transactions/hooks.ts delete mode 100644 src/screens/account_details/components/transactions/index.test.tsx create mode 100644 src/screens/account_details/components/transactions/types.ts delete mode 100644 src/screens/validator_details/components/transactions/__snapshots__/index.test.tsx.snap create mode 100644 src/screens/validator_details/components/transactions/hooks.ts delete mode 100644 src/screens/validator_details/components/transactions/index.test.tsx create mode 100644 src/screens/validator_details/components/transactions/types.ts diff --git a/.github/workflows/docker_production.yml b/.github/workflows/docker_production.yml index 734172af9a..9348cbe9a3 100644 --- a/.github/workflows/docker_production.yml +++ b/.github/workflows/docker_production.yml @@ -77,7 +77,6 @@ jobs: - name: Deploy to Akash 🌐 env: DESMOS_AKASH_WEBHOOK_URL: ${{ secrets.DESMOS_AKASH_WEBHOOK_URL }} - DESMOS_AKASH_WEBHOOK_SECRET: ${{ secrets.DESMOS_AKASH_WEBHOOK_SECRET }} AKASH_WEBHOOK_SECRET: ${{ secrets.AKASH_WEBHOOK_SECRET }} run: | BRANCH=${GITHUB_REF} diff --git a/CHANGELOG.md b/CHANGELOG.md index ca6e37eafa..2215570d65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Changes - Updated market cap display ([\#698](https://github.com/forbole/big-dipper-2.0-cosmos/issues/698)) +- Optimised validator details and account details to prevent random polling behavior ([\#703](https://github.com/forbole/big-dipper-2.0-cosmos/issues/703)) # base-v2.0.0-rc1 - 2021-02-07 diff --git a/codegen.yml b/codegen.yml index 9a2706576a..539697cda9 100644 --- a/codegen.yml +++ b/codegen.yml @@ -7,13 +7,13 @@ generates: documents: - './src/**/*.graphql' - '!./src/**/desmos_profile.graphql' - schema: https://gql.mainnet.desmos.network/v1/graphql + schema: https://gql.desmos.forbole.com/v1/graphql plugins: - "typescript" - "typescript-operations" - "typescript-react-apollo" # To generate custom hooks per query ./src/graphql/desmos_profile.ts: - schema: https://gql.morpheus.desmos.network/v1/graphql + schema: https://gql.mainnet.desmos.network/v1/graphql documents: - 'src/graphql/desmos_profile_graphql.ts' plugins: diff --git a/next-env.d.ts b/next-env.d.ts index 4f11a03dc6..9bc3dd46b9 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,4 +1,5 @@ /// +/// /// // NOTE: This file should not be edited diff --git a/public/locales/en/validators.json b/public/locales/en/validators.json index aa29a0a883..6d002ebe20 100644 --- a/public/locales/en/validators.json +++ b/public/locales/en/validators.json @@ -57,5 +57,6 @@ "status": "Status", "votingPowerExplanation": "As the top 34% voting power can easily <0>decrease network security and <0>halt the network they will be highlighted differently in order to educate and encourage decentralization", "tombstoned": "Tombstoned", - "votingPowerPercent": "Voting Power %" + "votingPowerPercent": "Voting Power %", + "maxRate": "Max Commission Rate" } diff --git a/src/graphql/desmos_profile.ts b/src/graphql/desmos_profile.ts index dde2a11fa1..01d585ff6b 100644 --- a/src/graphql/desmos_profile.ts +++ b/src/graphql/desmos_profile.ts @@ -143,10 +143,6 @@ export type Account = { /** An aggregate relationship */ delegations_aggregate: Delegation_Aggregate; /** An array relationship */ - delegators_to_refreshes: Array; - /** An aggregate relationship */ - delegators_to_refreshes_aggregate: Delegators_To_Refresh_Aggregate; - /** An array relationship */ feeGrantAllowancesByGranterAddress: Array; /** An aggregate relationship */ feeGrantAllowancesByGranterAddress_aggregate: Fee_Grant_Allowance_Aggregate; @@ -267,26 +263,6 @@ export type AccountDelegations_AggregateArgs = { }; -/** columns and relationships of "account" */ -export type AccountDelegators_To_RefreshesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountDelegators_To_Refreshes_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - /** columns and relationships of "account" */ export type AccountFeeGrantAllowancesByGranterAddressArgs = { distinct_on?: Maybe>; @@ -843,7 +819,6 @@ export type Account_Bool_Exp = { address?: Maybe; delegation_rewards?: Maybe; delegations?: Maybe; - delegators_to_refreshes?: Maybe; feeGrantAllowancesByGranterAddress?: Maybe; fee_grant_allowances?: Maybe; proposal_deposits?: Maybe; @@ -875,7 +850,6 @@ export type Account_Order_By = { address?: Maybe; delegation_rewards_aggregate?: Maybe; delegations_aggregate?: Maybe; - delegators_to_refreshes_aggregate?: Maybe; feeGrantAllowancesByGranterAddress_aggregate?: Maybe; fee_grant_allowances_aggregate?: Maybe; proposal_deposits_aggregate?: Maybe; @@ -3734,199 +3708,6 @@ export type Delegation_Variance_Order_By = { id?: Maybe; }; -/** columns and relationships of "delegators_to_refresh" */ -export type Delegators_To_Refresh = { - __typename?: 'delegators_to_refresh'; - /** An object relationship */ - account: Account; - address: Scalars['String']; - height: Scalars['bigint']; -}; - -/** aggregated selection of "delegators_to_refresh" */ -export type Delegators_To_Refresh_Aggregate = { - __typename?: 'delegators_to_refresh_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "delegators_to_refresh" */ -export type Delegators_To_Refresh_Aggregate_Fields = { - __typename?: 'delegators_to_refresh_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 "delegators_to_refresh" */ -export type Delegators_To_Refresh_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "delegators_to_refresh" */ -export type Delegators_To_Refresh_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Delegators_To_Refresh_Avg_Fields = { - __typename?: 'delegators_to_refresh_avg_fields'; - height?: Maybe; -}; - -/** order by avg() on columns of table "delegators_to_refresh" */ -export type Delegators_To_Refresh_Avg_Order_By = { - height?: Maybe; -}; - -/** Boolean expression to filter rows from the table "delegators_to_refresh". All fields are combined with a logical 'AND'. */ -export type Delegators_To_Refresh_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account?: Maybe; - address?: Maybe; - height?: Maybe; -}; - -/** aggregate max on columns */ -export type Delegators_To_Refresh_Max_Fields = { - __typename?: 'delegators_to_refresh_max_fields'; - address?: Maybe; - height?: Maybe; -}; - -/** order by max() on columns of table "delegators_to_refresh" */ -export type Delegators_To_Refresh_Max_Order_By = { - address?: Maybe; - height?: Maybe; -}; - -/** aggregate min on columns */ -export type Delegators_To_Refresh_Min_Fields = { - __typename?: 'delegators_to_refresh_min_fields'; - address?: Maybe; - height?: Maybe; -}; - -/** order by min() on columns of table "delegators_to_refresh" */ -export type Delegators_To_Refresh_Min_Order_By = { - address?: Maybe; - height?: Maybe; -}; - -/** Ordering options when selecting data from "delegators_to_refresh". */ -export type Delegators_To_Refresh_Order_By = { - account?: Maybe; - address?: Maybe; - height?: Maybe; -}; - -/** select columns of table "delegators_to_refresh" */ -export enum Delegators_To_Refresh_Select_Column { - /** column name */ - Address = 'address', - /** column name */ - Height = 'height' -} - -/** aggregate stddev on columns */ -export type Delegators_To_Refresh_Stddev_Fields = { - __typename?: 'delegators_to_refresh_stddev_fields'; - height?: Maybe; -}; - -/** order by stddev() on columns of table "delegators_to_refresh" */ -export type Delegators_To_Refresh_Stddev_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Delegators_To_Refresh_Stddev_Pop_Fields = { - __typename?: 'delegators_to_refresh_stddev_pop_fields'; - height?: Maybe; -}; - -/** order by stddev_pop() on columns of table "delegators_to_refresh" */ -export type Delegators_To_Refresh_Stddev_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Delegators_To_Refresh_Stddev_Samp_Fields = { - __typename?: 'delegators_to_refresh_stddev_samp_fields'; - height?: Maybe; -}; - -/** order by stddev_samp() on columns of table "delegators_to_refresh" */ -export type Delegators_To_Refresh_Stddev_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Delegators_To_Refresh_Sum_Fields = { - __typename?: 'delegators_to_refresh_sum_fields'; - height?: Maybe; -}; - -/** order by sum() on columns of table "delegators_to_refresh" */ -export type Delegators_To_Refresh_Sum_Order_By = { - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Delegators_To_Refresh_Var_Pop_Fields = { - __typename?: 'delegators_to_refresh_var_pop_fields'; - height?: Maybe; -}; - -/** order by var_pop() on columns of table "delegators_to_refresh" */ -export type Delegators_To_Refresh_Var_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Delegators_To_Refresh_Var_Samp_Fields = { - __typename?: 'delegators_to_refresh_var_samp_fields'; - height?: Maybe; -}; - -/** order by var_samp() on columns of table "delegators_to_refresh" */ -export type Delegators_To_Refresh_Var_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Delegators_To_Refresh_Variance_Fields = { - __typename?: 'delegators_to_refresh_variance_fields'; - height?: Maybe; -}; - -/** order by variance() on columns of table "delegators_to_refresh" */ -export type Delegators_To_Refresh_Variance_Order_By = { - height?: Maybe; -}; - /** columns and relationships of "distribution_params" */ export type Distribution_Params = { __typename?: 'distribution_params'; @@ -10487,10 +10268,6 @@ export type Query_Root = { delegation_reward: Array; /** fetch aggregated fields from the table: "delegation_reward" */ delegation_reward_aggregate: Delegation_Reward_Aggregate; - /** fetch data from the table: "delegators_to_refresh" */ - delegators_to_refresh: Array; - /** fetch aggregated fields from the table: "delegators_to_refresh" */ - delegators_to_refresh_aggregate: Delegators_To_Refresh_Aggregate; /** fetch data from the table: "distribution_params" */ distribution_params: Array; /** fetch aggregated fields from the table: "distribution_params" */ @@ -11110,24 +10887,6 @@ export type Query_RootDelegation_Reward_AggregateArgs = { }; -export type Query_RootDelegators_To_RefreshArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDelegators_To_Refresh_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - export type Query_RootDistribution_ParamsArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -13195,10 +12954,6 @@ export type Subscription_Root = { delegation_reward: Array; /** fetch aggregated fields from the table: "delegation_reward" */ delegation_reward_aggregate: Delegation_Reward_Aggregate; - /** fetch data from the table: "delegators_to_refresh" */ - delegators_to_refresh: Array; - /** fetch aggregated fields from the table: "delegators_to_refresh" */ - delegators_to_refresh_aggregate: Delegators_To_Refresh_Aggregate; /** fetch data from the table: "distribution_params" */ distribution_params: Array; /** fetch aggregated fields from the table: "distribution_params" */ @@ -13818,24 +13573,6 @@ export type Subscription_RootDelegation_Reward_AggregateArgs = { }; -export type Subscription_RootDelegators_To_RefreshArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootDelegators_To_Refresh_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - export type Subscription_RootDistribution_ParamsArgs = { distinct_on?: Maybe>; limit?: Maybe; diff --git a/src/graphql/types.tsx b/src/graphql/types.tsx index b8560e3f3a..4423ab6b31 100644 --- a/src/graphql/types.tsx +++ b/src/graphql/types.tsx @@ -21,7 +21,6 @@ export type Scalars = { _dec_coin: any; _text: any; bigint: any; - coin: any; jsonb: any; numeric: any; smallint: any; @@ -177,24 +176,8 @@ export type _Text_Comparison_Exp = { /** columns and relationships of "account" */ export type Account = { __typename?: 'account'; - /** An array relationship */ - account_balance_histories: Array; - /** An aggregate relationship */ - account_balance_histories_aggregate: Account_Balance_History_Aggregate; - /** An array relationship */ - account_balances: Array; - /** An aggregate relationship */ - account_balances_aggregate: Account_Balance_Aggregate; address: Scalars['String']; /** An array relationship */ - delegation_rewards: Array; - /** An aggregate relationship */ - delegation_rewards_aggregate: Delegation_Reward_Aggregate; - /** An array relationship */ - delegations: Array; - /** An aggregate relationship */ - delegations_aggregate: Delegation_Aggregate; - /** An array relationship */ proposal_deposits: Array; /** An aggregate relationship */ proposal_deposits_aggregate: Proposal_Deposit_Aggregate; @@ -207,14 +190,6 @@ export type Account = { /** An aggregate relationship */ proposals_aggregate: Proposal_Aggregate; /** An array relationship */ - redelegations: Array; - /** An aggregate relationship */ - redelegations_aggregate: Redelegation_Aggregate; - /** An array relationship */ - unbonding_delegations: Array; - /** An aggregate relationship */ - unbonding_delegations_aggregate: Unbonding_Delegation_Aggregate; - /** An array relationship */ validator_infos: Array; /** An aggregate relationship */ validator_infos_aggregate: Validator_Info_Aggregate; @@ -223,86 +198,6 @@ export type Account = { }; -/** columns and relationships of "account" */ -export type AccountAccount_Balance_HistoriesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountAccount_Balance_Histories_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountAccount_BalancesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountAccount_Balances_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountDelegation_RewardsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountDelegation_Rewards_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountDelegationsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountDelegations_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - /** columns and relationships of "account" */ export type AccountProposal_DepositsArgs = { distinct_on?: Maybe>; @@ -363,46 +258,6 @@ export type AccountProposals_AggregateArgs = { }; -/** columns and relationships of "account" */ -export type AccountRedelegationsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountRedelegations_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountUnbonding_DelegationsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountUnbonding_Delegations_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - /** columns and relationships of "account" */ export type AccountValidator_InfosArgs = { distinct_on?: Maybe>; @@ -430,367 +285,18 @@ export type Account_Aggregate = { }; /** aggregate fields of "account" */ -export type Account_Aggregate_Fields = { - __typename?: 'account_aggregate_fields'; - count: Scalars['Int']; - max?: Maybe; - min?: Maybe; -}; - - -/** aggregate fields of "account" */ -export type Account_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** columns and relationships of "account_balance" */ -export type Account_Balance = { - __typename?: 'account_balance'; - /** An object relationship */ - account: Account; - address: Scalars['String']; - /** An object relationship */ - block?: Maybe; - coins: Scalars['_coin']; - height: Scalars['bigint']; - /** A computed field, executes function "account_balance_tokens_prices" */ - tokens_prices?: Maybe>; -}; - - -/** columns and relationships of "account_balance" */ -export type Account_BalanceTokens_PricesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - -/** aggregated selection of "account_balance" */ -export type Account_Balance_Aggregate = { - __typename?: 'account_balance_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "account_balance" */ -export type Account_Balance_Aggregate_Fields = { - __typename?: 'account_balance_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 "account_balance" */ -export type Account_Balance_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "account_balance" */ -export type Account_Balance_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Account_Balance_Avg_Fields = { - __typename?: 'account_balance_avg_fields'; - height?: Maybe; -}; - -/** order by avg() on columns of table "account_balance" */ -export type Account_Balance_Avg_Order_By = { - height?: Maybe; -}; - -/** Boolean expression to filter rows from the table "account_balance". All fields are combined with a logical 'AND'. */ -export type Account_Balance_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account?: Maybe; - address?: Maybe; - block?: Maybe; - coins?: Maybe<_Coin_Comparison_Exp>; - height?: Maybe; - tokens_prices?: Maybe; -}; - -/** columns and relationships of "account_balance_history" */ -export type Account_Balance_History = { - __typename?: 'account_balance_history'; - /** An object relationship */ - account: Account; - address: Scalars['String']; - balance: Scalars['_coin']; - commission: Scalars['_dec_coin']; - delegated: Scalars['_coin']; - redelegating: Scalars['_coin']; - reward: Scalars['_dec_coin']; - timestamp?: Maybe; - /** A computed field, executes function "account_balance_history_tokens_prices" */ - token_prices_history?: Maybe>; - unbonding: Scalars['_coin']; -}; - - -/** columns and relationships of "account_balance_history" */ -export type Account_Balance_HistoryToken_Prices_HistoryArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - -/** aggregated selection of "account_balance_history" */ -export type Account_Balance_History_Aggregate = { - __typename?: 'account_balance_history_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "account_balance_history" */ -export type Account_Balance_History_Aggregate_Fields = { - __typename?: 'account_balance_history_aggregate_fields'; - count: Scalars['Int']; - max?: Maybe; - min?: Maybe; -}; - - -/** aggregate fields of "account_balance_history" */ -export type Account_Balance_History_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "account_balance_history" */ -export type Account_Balance_History_Aggregate_Order_By = { - count?: Maybe; - max?: Maybe; - min?: Maybe; -}; - -/** Boolean expression to filter rows from the table "account_balance_history". All fields are combined with a logical 'AND'. */ -export type Account_Balance_History_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account?: Maybe; - address?: Maybe; - balance?: Maybe<_Coin_Comparison_Exp>; - commission?: Maybe<_Dec_Coin_Comparison_Exp>; - delegated?: Maybe<_Coin_Comparison_Exp>; - redelegating?: Maybe<_Coin_Comparison_Exp>; - reward?: Maybe<_Dec_Coin_Comparison_Exp>; - timestamp?: Maybe; - token_prices_history?: Maybe; - unbonding?: Maybe<_Coin_Comparison_Exp>; -}; - -/** aggregate max on columns */ -export type Account_Balance_History_Max_Fields = { - __typename?: 'account_balance_history_max_fields'; - address?: Maybe; - timestamp?: Maybe; -}; - -/** order by max() on columns of table "account_balance_history" */ -export type Account_Balance_History_Max_Order_By = { - address?: Maybe; - timestamp?: Maybe; -}; - -/** aggregate min on columns */ -export type Account_Balance_History_Min_Fields = { - __typename?: 'account_balance_history_min_fields'; - address?: Maybe; - timestamp?: Maybe; -}; - -/** order by min() on columns of table "account_balance_history" */ -export type Account_Balance_History_Min_Order_By = { - address?: Maybe; - timestamp?: Maybe; -}; - -/** Ordering options when selecting data from "account_balance_history". */ -export type Account_Balance_History_Order_By = { - account?: Maybe; - address?: Maybe; - balance?: Maybe; - commission?: Maybe; - delegated?: Maybe; - redelegating?: Maybe; - reward?: Maybe; - timestamp?: Maybe; - token_prices_history_aggregate?: Maybe; - unbonding?: Maybe; -}; - -/** select columns of table "account_balance_history" */ -export enum Account_Balance_History_Select_Column { - /** column name */ - Address = 'address', - /** column name */ - Balance = 'balance', - /** column name */ - Commission = 'commission', - /** column name */ - Delegated = 'delegated', - /** column name */ - Redelegating = 'redelegating', - /** column name */ - Reward = 'reward', - /** column name */ - Timestamp = 'timestamp', - /** column name */ - Unbonding = 'unbonding' -} - -/** aggregate max on columns */ -export type Account_Balance_Max_Fields = { - __typename?: 'account_balance_max_fields'; - address?: Maybe; - height?: Maybe; -}; - -/** order by max() on columns of table "account_balance" */ -export type Account_Balance_Max_Order_By = { - address?: Maybe; - height?: Maybe; -}; - -/** aggregate min on columns */ -export type Account_Balance_Min_Fields = { - __typename?: 'account_balance_min_fields'; - address?: Maybe; - height?: Maybe; -}; - -/** order by min() on columns of table "account_balance" */ -export type Account_Balance_Min_Order_By = { - address?: Maybe; - height?: Maybe; -}; - -/** Ordering options when selecting data from "account_balance". */ -export type Account_Balance_Order_By = { - account?: Maybe; - address?: Maybe; - block?: Maybe; - coins?: Maybe; - height?: Maybe; - tokens_prices_aggregate?: Maybe; -}; - -/** select columns of table "account_balance" */ -export enum Account_Balance_Select_Column { - /** column name */ - Address = 'address', - /** column name */ - Coins = 'coins', - /** column name */ - Height = 'height' -} - -/** aggregate stddev on columns */ -export type Account_Balance_Stddev_Fields = { - __typename?: 'account_balance_stddev_fields'; - height?: Maybe; -}; - -/** order by stddev() on columns of table "account_balance" */ -export type Account_Balance_Stddev_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Account_Balance_Stddev_Pop_Fields = { - __typename?: 'account_balance_stddev_pop_fields'; - height?: Maybe; -}; - -/** order by stddev_pop() on columns of table "account_balance" */ -export type Account_Balance_Stddev_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Account_Balance_Stddev_Samp_Fields = { - __typename?: 'account_balance_stddev_samp_fields'; - height?: Maybe; -}; - -/** order by stddev_samp() on columns of table "account_balance" */ -export type Account_Balance_Stddev_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Account_Balance_Sum_Fields = { - __typename?: 'account_balance_sum_fields'; - height?: Maybe; -}; - -/** order by sum() on columns of table "account_balance" */ -export type Account_Balance_Sum_Order_By = { - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Account_Balance_Var_Pop_Fields = { - __typename?: 'account_balance_var_pop_fields'; - height?: Maybe; -}; - -/** order by var_pop() on columns of table "account_balance" */ -export type Account_Balance_Var_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Account_Balance_Var_Samp_Fields = { - __typename?: 'account_balance_var_samp_fields'; - height?: Maybe; -}; - -/** order by var_samp() on columns of table "account_balance" */ -export type Account_Balance_Var_Samp_Order_By = { - height?: Maybe; +export type Account_Aggregate_Fields = { + __typename?: 'account_aggregate_fields'; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; }; -/** aggregate variance on columns */ -export type Account_Balance_Variance_Fields = { - __typename?: 'account_balance_variance_fields'; - height?: Maybe; -}; -/** order by variance() on columns of table "account_balance" */ -export type Account_Balance_Variance_Order_By = { - height?: Maybe; +/** aggregate fields of "account" */ +export type Account_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; /** Boolean expression to filter rows from the table "account". All fields are combined with a logical 'AND'. */ @@ -798,16 +304,10 @@ export type Account_Bool_Exp = { _and?: Maybe>; _not?: Maybe; _or?: Maybe>; - account_balance_histories?: Maybe; - account_balances?: Maybe; address?: Maybe; - delegation_rewards?: Maybe; - delegations?: Maybe; proposal_deposits?: Maybe; proposal_votes?: Maybe; proposals?: Maybe; - redelegations?: Maybe; - unbonding_delegations?: Maybe; validator_infos?: Maybe; vesting_account?: Maybe; }; @@ -826,16 +326,10 @@ export type Account_Min_Fields = { /** Ordering options when selecting data from "account". */ export type Account_Order_By = { - account_balance_histories_aggregate?: Maybe; - account_balances_aggregate?: Maybe; address?: Maybe; - delegation_rewards_aggregate?: Maybe; - delegations_aggregate?: Maybe; proposal_deposits_aggregate?: Maybe; proposal_votes_aggregate?: Maybe; proposals_aggregate?: Maybe; - redelegations_aggregate?: Maybe; - unbonding_delegations_aggregate?: Maybe; validator_infos_aggregate?: Maybe; vesting_account?: Maybe; }; @@ -1719,20 +1213,6 @@ export type Block_Variance_Order_By = { total_gas?: Maybe; }; - -/** Boolean expression to compare columns of type "coin". All fields are combined with logical 'AND'. */ -export type Coin_Comparison_Exp = { - _eq?: Maybe; - _gt?: Maybe; - _gte?: Maybe; - _in?: Maybe>; - _is_null?: Maybe; - _lt?: Maybe; - _lte?: Maybe; - _neq?: Maybe; - _nin?: Maybe>; -}; - /** columns and relationships of "community_pool" */ export type Community_Pool = { __typename?: 'community_pool'; @@ -1803,514 +1283,54 @@ export type Community_Pool_Order_By = { height?: Maybe; }; -/** select columns of table "community_pool" */ -export enum Community_Pool_Select_Column { - /** column name */ - Coins = 'coins', - /** column name */ - Height = 'height' -} - -/** aggregate stddev on columns */ -export type Community_Pool_Stddev_Fields = { - __typename?: 'community_pool_stddev_fields'; - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Community_Pool_Stddev_Pop_Fields = { - __typename?: 'community_pool_stddev_pop_fields'; - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Community_Pool_Stddev_Samp_Fields = { - __typename?: 'community_pool_stddev_samp_fields'; - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Community_Pool_Sum_Fields = { - __typename?: 'community_pool_sum_fields'; - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Community_Pool_Var_Pop_Fields = { - __typename?: 'community_pool_var_pop_fields'; - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Community_Pool_Var_Samp_Fields = { - __typename?: 'community_pool_var_samp_fields'; - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Community_Pool_Variance_Fields = { - __typename?: 'community_pool_variance_fields'; - height?: Maybe; -}; - -/** columns and relationships of "delegation" */ -export type Delegation = { - __typename?: 'delegation'; - /** An object relationship */ - account: Account; - amount: Scalars['coin']; - delegator_address: Scalars['String']; - height: Scalars['bigint']; - id: Scalars['Int']; - /** A computed field, executes function "is_delegation_self_delegate" */ - is_self_delegate?: Maybe; - /** An object relationship */ - validator: Validator; - validator_address: Scalars['String']; -}; - -/** aggregated selection of "delegation" */ -export type Delegation_Aggregate = { - __typename?: 'delegation_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "delegation" */ -export type Delegation_Aggregate_Fields = { - __typename?: 'delegation_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 "delegation" */ -export type Delegation_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "delegation" */ -export type Delegation_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Delegation_Avg_Fields = { - __typename?: 'delegation_avg_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** order by avg() on columns of table "delegation" */ -export type Delegation_Avg_Order_By = { - height?: Maybe; - id?: Maybe; -}; - -/** Boolean expression to filter rows from the table "delegation". All fields are combined with a logical 'AND'. */ -export type Delegation_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account?: Maybe; - amount?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - id?: Maybe; - is_self_delegate?: Maybe; - validator?: Maybe; - validator_address?: Maybe; -}; - -/** aggregate max on columns */ -export type Delegation_Max_Fields = { - __typename?: 'delegation_max_fields'; - delegator_address?: Maybe; - height?: Maybe; - id?: Maybe; - validator_address?: Maybe; -}; - -/** order by max() on columns of table "delegation" */ -export type Delegation_Max_Order_By = { - delegator_address?: Maybe; - height?: Maybe; - id?: Maybe; - validator_address?: Maybe; -}; - -/** aggregate min on columns */ -export type Delegation_Min_Fields = { - __typename?: 'delegation_min_fields'; - delegator_address?: Maybe; - height?: Maybe; - id?: Maybe; - validator_address?: Maybe; -}; - -/** order by min() on columns of table "delegation" */ -export type Delegation_Min_Order_By = { - delegator_address?: Maybe; - height?: Maybe; - id?: Maybe; - validator_address?: Maybe; -}; - -/** Ordering options when selecting data from "delegation". */ -export type Delegation_Order_By = { - account?: Maybe; - amount?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - id?: Maybe; - is_self_delegate?: Maybe; - validator?: Maybe; - validator_address?: Maybe; -}; - -/** columns and relationships of "delegation_reward" */ -export type Delegation_Reward = { - __typename?: 'delegation_reward'; - /** An object relationship */ - account: Account; - amount: Scalars['_dec_coin']; - delegator_address: Scalars['String']; - height: Scalars['bigint']; - /** An object relationship */ - validator: Validator; - validator_address: Scalars['String']; - withdraw_address: Scalars['String']; -}; - -/** aggregated selection of "delegation_reward" */ -export type Delegation_Reward_Aggregate = { - __typename?: 'delegation_reward_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "delegation_reward" */ -export type Delegation_Reward_Aggregate_Fields = { - __typename?: 'delegation_reward_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 "delegation_reward" */ -export type Delegation_Reward_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "delegation_reward" */ -export type Delegation_Reward_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Delegation_Reward_Avg_Fields = { - __typename?: 'delegation_reward_avg_fields'; - height?: Maybe; -}; - -/** order by avg() on columns of table "delegation_reward" */ -export type Delegation_Reward_Avg_Order_By = { - height?: Maybe; -}; - -/** Boolean expression to filter rows from the table "delegation_reward". All fields are combined with a logical 'AND'. */ -export type Delegation_Reward_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account?: Maybe; - amount?: Maybe<_Dec_Coin_Comparison_Exp>; - delegator_address?: Maybe; - height?: Maybe; - validator?: Maybe; - validator_address?: Maybe; - withdraw_address?: Maybe; -}; - -/** aggregate max on columns */ -export type Delegation_Reward_Max_Fields = { - __typename?: 'delegation_reward_max_fields'; - delegator_address?: Maybe; - height?: Maybe; - validator_address?: Maybe; - withdraw_address?: Maybe; -}; - -/** order by max() on columns of table "delegation_reward" */ -export type Delegation_Reward_Max_Order_By = { - delegator_address?: Maybe; - height?: Maybe; - validator_address?: Maybe; - withdraw_address?: Maybe; -}; - -/** aggregate min on columns */ -export type Delegation_Reward_Min_Fields = { - __typename?: 'delegation_reward_min_fields'; - delegator_address?: Maybe; - height?: Maybe; - validator_address?: Maybe; - withdraw_address?: Maybe; -}; - -/** order by min() on columns of table "delegation_reward" */ -export type Delegation_Reward_Min_Order_By = { - delegator_address?: Maybe; - height?: Maybe; - validator_address?: Maybe; - withdraw_address?: Maybe; -}; - -/** Ordering options when selecting data from "delegation_reward". */ -export type Delegation_Reward_Order_By = { - account?: Maybe; - amount?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - validator?: Maybe; - validator_address?: Maybe; - withdraw_address?: Maybe; -}; - -/** select columns of table "delegation_reward" */ -export enum Delegation_Reward_Select_Column { - /** column name */ - Amount = 'amount', - /** column name */ - DelegatorAddress = 'delegator_address', - /** column name */ - Height = 'height', - /** column name */ - ValidatorAddress = 'validator_address', - /** column name */ - WithdrawAddress = 'withdraw_address' -} - -/** aggregate stddev on columns */ -export type Delegation_Reward_Stddev_Fields = { - __typename?: 'delegation_reward_stddev_fields'; - height?: Maybe; -}; - -/** order by stddev() on columns of table "delegation_reward" */ -export type Delegation_Reward_Stddev_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Delegation_Reward_Stddev_Pop_Fields = { - __typename?: 'delegation_reward_stddev_pop_fields'; - height?: Maybe; -}; - -/** order by stddev_pop() on columns of table "delegation_reward" */ -export type Delegation_Reward_Stddev_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Delegation_Reward_Stddev_Samp_Fields = { - __typename?: 'delegation_reward_stddev_samp_fields'; - height?: Maybe; -}; - -/** order by stddev_samp() on columns of table "delegation_reward" */ -export type Delegation_Reward_Stddev_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Delegation_Reward_Sum_Fields = { - __typename?: 'delegation_reward_sum_fields'; - height?: Maybe; -}; - -/** order by sum() on columns of table "delegation_reward" */ -export type Delegation_Reward_Sum_Order_By = { - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Delegation_Reward_Var_Pop_Fields = { - __typename?: 'delegation_reward_var_pop_fields'; - height?: Maybe; -}; - -/** order by var_pop() on columns of table "delegation_reward" */ -export type Delegation_Reward_Var_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Delegation_Reward_Var_Samp_Fields = { - __typename?: 'delegation_reward_var_samp_fields'; - height?: Maybe; -}; - -/** order by var_samp() on columns of table "delegation_reward" */ -export type Delegation_Reward_Var_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Delegation_Reward_Variance_Fields = { - __typename?: 'delegation_reward_variance_fields'; - height?: Maybe; -}; - -/** order by variance() on columns of table "delegation_reward" */ -export type Delegation_Reward_Variance_Order_By = { - height?: Maybe; -}; - -/** select columns of table "delegation" */ -export enum Delegation_Select_Column { - /** column name */ - Amount = 'amount', - /** column name */ - DelegatorAddress = 'delegator_address', - /** column name */ - Height = 'height', +/** select columns of table "community_pool" */ +export enum Community_Pool_Select_Column { /** column name */ - Id = 'id', + Coins = 'coins', /** column name */ - ValidatorAddress = 'validator_address' + Height = 'height' } /** aggregate stddev on columns */ -export type Delegation_Stddev_Fields = { - __typename?: 'delegation_stddev_fields'; +export type Community_Pool_Stddev_Fields = { + __typename?: 'community_pool_stddev_fields'; height?: Maybe; - id?: Maybe; -}; - -/** order by stddev() on columns of table "delegation" */ -export type Delegation_Stddev_Order_By = { - height?: Maybe; - id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Delegation_Stddev_Pop_Fields = { - __typename?: 'delegation_stddev_pop_fields'; +export type Community_Pool_Stddev_Pop_Fields = { + __typename?: 'community_pool_stddev_pop_fields'; height?: Maybe; - id?: Maybe; -}; - -/** order by stddev_pop() on columns of table "delegation" */ -export type Delegation_Stddev_Pop_Order_By = { - height?: Maybe; - id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Delegation_Stddev_Samp_Fields = { - __typename?: 'delegation_stddev_samp_fields'; +export type Community_Pool_Stddev_Samp_Fields = { + __typename?: 'community_pool_stddev_samp_fields'; height?: Maybe; - id?: Maybe; -}; - -/** order by stddev_samp() on columns of table "delegation" */ -export type Delegation_Stddev_Samp_Order_By = { - height?: Maybe; - id?: Maybe; }; /** aggregate sum on columns */ -export type Delegation_Sum_Fields = { - __typename?: 'delegation_sum_fields'; +export type Community_Pool_Sum_Fields = { + __typename?: 'community_pool_sum_fields'; height?: Maybe; - id?: Maybe; -}; - -/** order by sum() on columns of table "delegation" */ -export type Delegation_Sum_Order_By = { - height?: Maybe; - id?: Maybe; }; /** aggregate var_pop on columns */ -export type Delegation_Var_Pop_Fields = { - __typename?: 'delegation_var_pop_fields'; +export type Community_Pool_Var_Pop_Fields = { + __typename?: 'community_pool_var_pop_fields'; height?: Maybe; - id?: Maybe; -}; - -/** order by var_pop() on columns of table "delegation" */ -export type Delegation_Var_Pop_Order_By = { - height?: Maybe; - id?: Maybe; }; /** aggregate var_samp on columns */ -export type Delegation_Var_Samp_Fields = { - __typename?: 'delegation_var_samp_fields'; +export type Community_Pool_Var_Samp_Fields = { + __typename?: 'community_pool_var_samp_fields'; height?: Maybe; - id?: Maybe; -}; - -/** order by var_samp() on columns of table "delegation" */ -export type Delegation_Var_Samp_Order_By = { - height?: Maybe; - id?: Maybe; }; /** aggregate variance on columns */ -export type Delegation_Variance_Fields = { - __typename?: 'delegation_variance_fields'; +export type Community_Pool_Variance_Fields = { + __typename?: 'community_pool_variance_fields'; height?: Maybe; - id?: Maybe; -}; - -/** order by variance() on columns of table "delegation" */ -export type Delegation_Variance_Order_By = { - height?: Maybe; - id?: Maybe; }; /** columns and relationships of "distribution_params" */ @@ -6048,16 +5068,6 @@ export type Query_Root = { account: Array; /** fetch aggregated fields from the table: "account" */ account_aggregate: Account_Aggregate; - /** fetch data from the table: "account_balance" */ - account_balance: Array; - /** fetch aggregated fields from the table: "account_balance" */ - account_balance_aggregate: Account_Balance_Aggregate; - /** fetch data from the table: "account_balance" using primary key columns */ - account_balance_by_pk?: Maybe; - /** fetch data from the table: "account_balance_history" */ - account_balance_history: Array; - /** fetch aggregated fields from the table: "account_balance_history" */ - account_balance_history_aggregate: Account_Balance_History_Aggregate; /** fetch data from the table: "account" using primary key columns */ account_by_pk?: Maybe; action_account_balance?: Maybe; @@ -6098,16 +5108,6 @@ export type Query_Root = { community_pool: Array; /** fetch aggregated fields from the table: "community_pool" */ community_pool_aggregate: Community_Pool_Aggregate; - /** fetch data from the table: "delegation" */ - delegation: Array; - /** fetch aggregated fields from the table: "delegation" */ - delegation_aggregate: Delegation_Aggregate; - /** fetch data from the table: "delegation" using primary key columns */ - delegation_by_pk?: Maybe; - /** fetch data from the table: "delegation_reward" */ - delegation_reward: Array; - /** fetch aggregated fields from the table: "delegation_reward" */ - delegation_reward_aggregate: Delegation_Reward_Aggregate; /** fetch data from the table: "distribution_params" */ distribution_params: Array; /** fetch aggregated fields from the table: "distribution_params" */ @@ -6206,10 +5206,6 @@ export type Query_Root = { proposal_vote: Array; /** fetch aggregated fields from the table: "proposal_vote" */ proposal_vote_aggregate: Proposal_Vote_Aggregate; - /** fetch data from the table: "redelegation" */ - redelegation: Array; - /** fetch aggregated fields from the table: "redelegation" */ - redelegation_aggregate: Redelegation_Aggregate; /** fetch data from the table: "slashing_params" */ slashing_params: Array; /** fetch aggregated fields from the table: "slashing_params" */ @@ -6254,10 +5250,6 @@ export type Query_Root = { transaction_aggregate: Transaction_Aggregate; /** fetch data from the table: "transaction" using primary key columns */ transaction_by_pk?: Maybe; - /** fetch data from the table: "unbonding_delegation" */ - unbonding_delegation: Array; - /** fetch aggregated fields from the table: "unbonding_delegation" */ - unbonding_delegation_aggregate: Unbonding_Delegation_Aggregate; /** fetch data from the table: "validator" */ validator: Array; /** fetch aggregated fields from the table: "validator" */ @@ -6268,12 +5260,6 @@ export type Query_Root = { validator_commission: Array; /** fetch aggregated fields from the table: "validator_commission" */ validator_commission_aggregate: Validator_Commission_Aggregate; - /** fetch data from the table: "validator_commission_amount" */ - validator_commission_amount: Array; - /** fetch aggregated fields from the table: "validator_commission_amount" */ - validator_commission_amount_aggregate: Validator_Commission_Amount_Aggregate; - /** fetch data from the table: "validator_commission_amount" using primary key columns */ - validator_commission_amount_by_pk?: Maybe; /** fetch data from the table: "validator_commission" using primary key columns */ validator_commission_by_pk?: Maybe; /** fetch data from the table: "validator_description" */ @@ -6337,47 +5323,6 @@ export type Query_RootAccount_AggregateArgs = { }; -export type Query_RootAccount_BalanceArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAccount_Balance_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAccount_Balance_By_PkArgs = { - address: Scalars['String']; -}; - - -export type Query_RootAccount_Balance_HistoryArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAccount_Balance_History_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - export type Query_RootAccount_By_PkArgs = { address: Scalars['String']; }; @@ -6392,6 +5337,7 @@ export type Query_RootAction_Account_BalanceArgs = { export type Query_RootAction_DelegationArgs = { address: Scalars['String']; count_total?: Maybe; + height?: Maybe; limit?: Maybe; offset?: Maybe; }; @@ -6399,6 +5345,7 @@ export type Query_RootAction_DelegationArgs = { export type Query_RootAction_Delegation_RewardArgs = { address: Scalars['String']; + height?: Maybe; }; @@ -6416,6 +5363,7 @@ export type Query_RootAction_Delegator_Withdraw_AddressArgs = { export type Query_RootAction_RedelegationArgs = { address: Scalars['String']; count_total?: Maybe; + height?: Maybe; limit?: Maybe; offset?: Maybe; }; @@ -6424,6 +5372,7 @@ export type Query_RootAction_RedelegationArgs = { export type Query_RootAction_Unbonding_DelegationArgs = { address: Scalars['String']; count_total?: Maybe; + height?: Maybe; limit?: Maybe; offset?: Maybe; }; @@ -6451,6 +5400,7 @@ export type Query_RootAction_Validator_DelegationsArgs = { export type Query_RootAction_Validator_Redelegations_FromArgs = { address: Scalars['String']; count_total?: Maybe; + height?: Maybe; limit?: Maybe; offset?: Maybe; }; @@ -6577,47 +5527,6 @@ export type Query_RootCommunity_Pool_AggregateArgs = { }; -export type Query_RootDelegationArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDelegation_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDelegation_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootDelegation_RewardArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDelegation_Reward_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - export type Query_RootDistribution_ParamsArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -7017,24 +5926,6 @@ export type Query_RootProposal_Vote_AggregateArgs = { }; -export type Query_RootRedelegationArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootRedelegation_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - export type Query_RootSlashing_ParamsArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -7217,24 +6108,6 @@ export type Query_RootTransaction_By_PkArgs = { }; -export type Query_RootUnbonding_DelegationArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootUnbonding_Delegation_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - export type Query_RootValidatorArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -7276,29 +6149,6 @@ export type Query_RootValidator_Commission_AggregateArgs = { }; -export type Query_RootValidator_Commission_AmountArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Commission_Amount_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Commission_Amount_By_PkArgs = { - validator_address: Scalars['String']; -}; - - export type Query_RootValidator_Commission_By_PkArgs = { validator_address: Scalars['String']; }; @@ -7454,242 +6304,9 @@ export type Query_RootVesting_PeriodArgs = { export type Query_RootVesting_Period_AggregateArgs = { distinct_on?: Maybe>; limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - -/** columns and relationships of "redelegation" */ -export type Redelegation = { - __typename?: 'redelegation'; - /** An object relationship */ - account: Account; - amount: Scalars['coin']; - completion_time: Scalars['timestamp']; - delegator_address: Scalars['String']; - dst_validator_address: Scalars['String']; - height: Scalars['bigint']; - src_validator_address: Scalars['String']; - /** An object relationship */ - validator: Validator; - /** An object relationship */ - validatorByDstValidatorAddress: Validator; -}; - -/** aggregated selection of "redelegation" */ -export type Redelegation_Aggregate = { - __typename?: 'redelegation_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "redelegation" */ -export type Redelegation_Aggregate_Fields = { - __typename?: 'redelegation_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 "redelegation" */ -export type Redelegation_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "redelegation" */ -export type Redelegation_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Redelegation_Avg_Fields = { - __typename?: 'redelegation_avg_fields'; - height?: Maybe; -}; - -/** order by avg() on columns of table "redelegation" */ -export type Redelegation_Avg_Order_By = { - height?: Maybe; -}; - -/** Boolean expression to filter rows from the table "redelegation". All fields are combined with a logical 'AND'. */ -export type Redelegation_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account?: Maybe; - amount?: Maybe; - completion_time?: Maybe; - delegator_address?: Maybe; - dst_validator_address?: Maybe; - height?: Maybe; - src_validator_address?: Maybe; - validator?: Maybe; - validatorByDstValidatorAddress?: Maybe; -}; - -/** aggregate max on columns */ -export type Redelegation_Max_Fields = { - __typename?: 'redelegation_max_fields'; - completion_time?: Maybe; - delegator_address?: Maybe; - dst_validator_address?: Maybe; - height?: Maybe; - src_validator_address?: Maybe; -}; - -/** order by max() on columns of table "redelegation" */ -export type Redelegation_Max_Order_By = { - completion_time?: Maybe; - delegator_address?: Maybe; - dst_validator_address?: Maybe; - height?: Maybe; - src_validator_address?: Maybe; -}; - -/** aggregate min on columns */ -export type Redelegation_Min_Fields = { - __typename?: 'redelegation_min_fields'; - completion_time?: Maybe; - delegator_address?: Maybe; - dst_validator_address?: Maybe; - height?: Maybe; - src_validator_address?: Maybe; -}; - -/** order by min() on columns of table "redelegation" */ -export type Redelegation_Min_Order_By = { - completion_time?: Maybe; - delegator_address?: Maybe; - dst_validator_address?: Maybe; - height?: Maybe; - src_validator_address?: Maybe; -}; - -/** Ordering options when selecting data from "redelegation". */ -export type Redelegation_Order_By = { - account?: Maybe; - amount?: Maybe; - completion_time?: Maybe; - delegator_address?: Maybe; - dst_validator_address?: Maybe; - height?: Maybe; - src_validator_address?: Maybe; - validator?: Maybe; - validatorByDstValidatorAddress?: Maybe; -}; - -/** select columns of table "redelegation" */ -export enum Redelegation_Select_Column { - /** column name */ - Amount = 'amount', - /** column name */ - CompletionTime = 'completion_time', - /** column name */ - DelegatorAddress = 'delegator_address', - /** column name */ - DstValidatorAddress = 'dst_validator_address', - /** column name */ - Height = 'height', - /** column name */ - SrcValidatorAddress = 'src_validator_address' -} - -/** aggregate stddev on columns */ -export type Redelegation_Stddev_Fields = { - __typename?: 'redelegation_stddev_fields'; - height?: Maybe; -}; - -/** order by stddev() on columns of table "redelegation" */ -export type Redelegation_Stddev_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Redelegation_Stddev_Pop_Fields = { - __typename?: 'redelegation_stddev_pop_fields'; - height?: Maybe; -}; - -/** order by stddev_pop() on columns of table "redelegation" */ -export type Redelegation_Stddev_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Redelegation_Stddev_Samp_Fields = { - __typename?: 'redelegation_stddev_samp_fields'; - height?: Maybe; -}; - -/** order by stddev_samp() on columns of table "redelegation" */ -export type Redelegation_Stddev_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Redelegation_Sum_Fields = { - __typename?: 'redelegation_sum_fields'; - height?: Maybe; -}; - -/** order by sum() on columns of table "redelegation" */ -export type Redelegation_Sum_Order_By = { - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Redelegation_Var_Pop_Fields = { - __typename?: 'redelegation_var_pop_fields'; - height?: Maybe; -}; - -/** order by var_pop() on columns of table "redelegation" */ -export type Redelegation_Var_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Redelegation_Var_Samp_Fields = { - __typename?: 'redelegation_var_samp_fields'; - height?: Maybe; -}; - -/** order by var_samp() on columns of table "redelegation" */ -export type Redelegation_Var_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Redelegation_Variance_Fields = { - __typename?: 'redelegation_variance_fields'; - height?: Maybe; -}; - -/** order by variance() on columns of table "redelegation" */ -export type Redelegation_Variance_Order_By = { - height?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; /** columns and relationships of "slashing_params" */ @@ -8119,16 +6736,6 @@ export type Subscription_Root = { account: Array; /** fetch aggregated fields from the table: "account" */ account_aggregate: Account_Aggregate; - /** fetch data from the table: "account_balance" */ - account_balance: Array; - /** fetch aggregated fields from the table: "account_balance" */ - account_balance_aggregate: Account_Balance_Aggregate; - /** fetch data from the table: "account_balance" using primary key columns */ - account_balance_by_pk?: Maybe; - /** fetch data from the table: "account_balance_history" */ - account_balance_history: Array; - /** fetch aggregated fields from the table: "account_balance_history" */ - account_balance_history_aggregate: Account_Balance_History_Aggregate; /** fetch data from the table: "account" using primary key columns */ account_by_pk?: Maybe; /** fetch data from the table: "average_block_time_from_genesis" */ @@ -8157,16 +6764,6 @@ export type Subscription_Root = { community_pool: Array; /** fetch aggregated fields from the table: "community_pool" */ community_pool_aggregate: Community_Pool_Aggregate; - /** fetch data from the table: "delegation" */ - delegation: Array; - /** fetch aggregated fields from the table: "delegation" */ - delegation_aggregate: Delegation_Aggregate; - /** fetch data from the table: "delegation" using primary key columns */ - delegation_by_pk?: Maybe; - /** fetch data from the table: "delegation_reward" */ - delegation_reward: Array; - /** fetch aggregated fields from the table: "delegation_reward" */ - delegation_reward_aggregate: Delegation_Reward_Aggregate; /** fetch data from the table: "distribution_params" */ distribution_params: Array; /** fetch aggregated fields from the table: "distribution_params" */ @@ -8265,10 +6862,6 @@ export type Subscription_Root = { proposal_vote: Array; /** fetch aggregated fields from the table: "proposal_vote" */ proposal_vote_aggregate: Proposal_Vote_Aggregate; - /** fetch data from the table: "redelegation" */ - redelegation: Array; - /** fetch aggregated fields from the table: "redelegation" */ - redelegation_aggregate: Redelegation_Aggregate; /** fetch data from the table: "slashing_params" */ slashing_params: Array; /** fetch aggregated fields from the table: "slashing_params" */ @@ -8313,10 +6906,6 @@ export type Subscription_Root = { transaction_aggregate: Transaction_Aggregate; /** fetch data from the table: "transaction" using primary key columns */ transaction_by_pk?: Maybe; - /** fetch data from the table: "unbonding_delegation" */ - unbonding_delegation: Array; - /** fetch aggregated fields from the table: "unbonding_delegation" */ - unbonding_delegation_aggregate: Unbonding_Delegation_Aggregate; /** fetch data from the table: "validator" */ validator: Array; /** fetch aggregated fields from the table: "validator" */ @@ -8327,12 +6916,6 @@ export type Subscription_Root = { validator_commission: Array; /** fetch aggregated fields from the table: "validator_commission" */ validator_commission_aggregate: Validator_Commission_Aggregate; - /** fetch data from the table: "validator_commission_amount" */ - validator_commission_amount: Array; - /** fetch aggregated fields from the table: "validator_commission_amount" */ - validator_commission_amount_aggregate: Validator_Commission_Amount_Aggregate; - /** fetch data from the table: "validator_commission_amount" using primary key columns */ - validator_commission_amount_by_pk?: Maybe; /** fetch data from the table: "validator_commission" using primary key columns */ validator_commission_by_pk?: Maybe; /** fetch data from the table: "validator_description" */ @@ -8396,47 +6979,6 @@ export type Subscription_RootAccount_AggregateArgs = { }; -export type Subscription_RootAccount_BalanceArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootAccount_Balance_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootAccount_Balance_By_PkArgs = { - address: Scalars['String']; -}; - - -export type Subscription_RootAccount_Balance_HistoryArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootAccount_Balance_History_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - export type Subscription_RootAccount_By_PkArgs = { address: Scalars['String']; }; @@ -8555,47 +7097,6 @@ export type Subscription_RootCommunity_Pool_AggregateArgs = { }; -export type Subscription_RootDelegationArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootDelegation_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootDelegation_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Subscription_RootDelegation_RewardArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootDelegation_Reward_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - export type Subscription_RootDistribution_ParamsArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -8995,24 +7496,6 @@ export type Subscription_RootProposal_Vote_AggregateArgs = { }; -export type Subscription_RootRedelegationArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootRedelegation_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - export type Subscription_RootSlashing_ParamsArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -9195,24 +7678,6 @@ export type Subscription_RootTransaction_By_PkArgs = { }; -export type Subscription_RootUnbonding_DelegationArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootUnbonding_Delegation_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - export type Subscription_RootValidatorArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -9254,29 +7719,6 @@ export type Subscription_RootValidator_Commission_AggregateArgs = { }; -export type Subscription_RootValidator_Commission_AmountArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootValidator_Commission_Amount_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootValidator_Commission_Amount_By_PkArgs = { - validator_address: Scalars['String']; -}; - - export type Subscription_RootValidator_Commission_By_PkArgs = { validator_address: Scalars['String']; }; @@ -10646,325 +9088,105 @@ export enum Transaction_Select_Column { /** aggregate stddev on columns */ export type Transaction_Stddev_Fields = { __typename?: 'transaction_stddev_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; -}; - -/** order by stddev() on columns of table "transaction" */ -export type Transaction_Stddev_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Transaction_Stddev_Pop_Fields = { - __typename?: 'transaction_stddev_pop_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; -}; - -/** order by stddev_pop() on columns of table "transaction" */ -export type Transaction_Stddev_Pop_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Transaction_Stddev_Samp_Fields = { - __typename?: 'transaction_stddev_samp_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; -}; - -/** order by stddev_samp() on columns of table "transaction" */ -export type Transaction_Stddev_Samp_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Transaction_Sum_Fields = { - __typename?: 'transaction_sum_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; -}; - -/** order by sum() on columns of table "transaction" */ -export type Transaction_Sum_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Transaction_Var_Pop_Fields = { - __typename?: 'transaction_var_pop_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; -}; - -/** order by var_pop() on columns of table "transaction" */ -export type Transaction_Var_Pop_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Transaction_Var_Samp_Fields = { - __typename?: 'transaction_var_samp_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; -}; - -/** order by var_samp() on columns of table "transaction" */ -export type Transaction_Var_Samp_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Transaction_Variance_Fields = { - __typename?: 'transaction_variance_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; -}; - -/** order by variance() on columns of table "transaction" */ -export type Transaction_Variance_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; -}; - -/** columns and relationships of "unbonding_delegation" */ -export type Unbonding_Delegation = { - __typename?: 'unbonding_delegation'; - /** An object relationship */ - account: Account; - amount: Scalars['coin']; - completion_timestamp: Scalars['timestamp']; - delegator_address: Scalars['String']; - height: Scalars['bigint']; - /** An object relationship */ - validator: Validator; - validator_address: Scalars['String']; -}; - -/** aggregated selection of "unbonding_delegation" */ -export type Unbonding_Delegation_Aggregate = { - __typename?: 'unbonding_delegation_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "unbonding_delegation" */ -export type Unbonding_Delegation_Aggregate_Fields = { - __typename?: 'unbonding_delegation_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 "unbonding_delegation" */ -export type Unbonding_Delegation_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "unbonding_delegation" */ -export type Unbonding_Delegation_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Unbonding_Delegation_Avg_Fields = { - __typename?: 'unbonding_delegation_avg_fields'; - height?: Maybe; -}; - -/** order by avg() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Avg_Order_By = { - height?: Maybe; -}; - -/** Boolean expression to filter rows from the table "unbonding_delegation". All fields are combined with a logical 'AND'. */ -export type Unbonding_Delegation_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account?: Maybe; - amount?: Maybe; - completion_timestamp?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - validator?: Maybe; - validator_address?: Maybe; -}; - -/** aggregate max on columns */ -export type Unbonding_Delegation_Max_Fields = { - __typename?: 'unbonding_delegation_max_fields'; - completion_timestamp?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - validator_address?: Maybe; -}; - -/** order by max() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Max_Order_By = { - completion_timestamp?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - validator_address?: Maybe; -}; - -/** aggregate min on columns */ -export type Unbonding_Delegation_Min_Fields = { - __typename?: 'unbonding_delegation_min_fields'; - completion_timestamp?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - validator_address?: Maybe; -}; - -/** order by min() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Min_Order_By = { - completion_timestamp?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - validator_address?: Maybe; -}; - -/** Ordering options when selecting data from "unbonding_delegation". */ -export type Unbonding_Delegation_Order_By = { - account?: Maybe; - amount?: Maybe; - completion_timestamp?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - validator?: Maybe; - validator_address?: Maybe; -}; - -/** select columns of table "unbonding_delegation" */ -export enum Unbonding_Delegation_Select_Column { - /** column name */ - Amount = 'amount', - /** column name */ - CompletionTimestamp = 'completion_timestamp', - /** column name */ - DelegatorAddress = 'delegator_address', - /** column name */ - Height = 'height', - /** column name */ - ValidatorAddress = 'validator_address' -} - -/** aggregate stddev on columns */ -export type Unbonding_Delegation_Stddev_Fields = { - __typename?: 'unbonding_delegation_stddev_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; -/** order by stddev() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Stddev_Order_By = { +/** order by stddev() on columns of table "transaction" */ +export type Transaction_Stddev_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Unbonding_Delegation_Stddev_Pop_Fields = { - __typename?: 'unbonding_delegation_stddev_pop_fields'; +export type Transaction_Stddev_Pop_Fields = { + __typename?: 'transaction_stddev_pop_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; -/** order by stddev_pop() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Stddev_Pop_Order_By = { +/** order by stddev_pop() on columns of table "transaction" */ +export type Transaction_Stddev_Pop_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Unbonding_Delegation_Stddev_Samp_Fields = { - __typename?: 'unbonding_delegation_stddev_samp_fields'; +export type Transaction_Stddev_Samp_Fields = { + __typename?: 'transaction_stddev_samp_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; -/** order by stddev_samp() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Stddev_Samp_Order_By = { +/** order by stddev_samp() on columns of table "transaction" */ +export type Transaction_Stddev_Samp_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; /** aggregate sum on columns */ -export type Unbonding_Delegation_Sum_Fields = { - __typename?: 'unbonding_delegation_sum_fields'; +export type Transaction_Sum_Fields = { + __typename?: 'transaction_sum_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; -/** order by sum() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Sum_Order_By = { +/** order by sum() on columns of table "transaction" */ +export type Transaction_Sum_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; /** aggregate var_pop on columns */ -export type Unbonding_Delegation_Var_Pop_Fields = { - __typename?: 'unbonding_delegation_var_pop_fields'; +export type Transaction_Var_Pop_Fields = { + __typename?: 'transaction_var_pop_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; -/** order by var_pop() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Var_Pop_Order_By = { +/** order by var_pop() on columns of table "transaction" */ +export type Transaction_Var_Pop_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; /** aggregate var_samp on columns */ -export type Unbonding_Delegation_Var_Samp_Fields = { - __typename?: 'unbonding_delegation_var_samp_fields'; +export type Transaction_Var_Samp_Fields = { + __typename?: 'transaction_var_samp_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; -/** order by var_samp() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Var_Samp_Order_By = { +/** order by var_samp() on columns of table "transaction" */ +export type Transaction_Var_Samp_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; /** aggregate variance on columns */ -export type Unbonding_Delegation_Variance_Fields = { - __typename?: 'unbonding_delegation_variance_fields'; +export type Transaction_Variance_Fields = { + __typename?: 'transaction_variance_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; -/** order by variance() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Variance_Order_By = { +/** order by variance() on columns of table "transaction" */ +export type Transaction_Variance_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; }; @@ -10978,14 +9200,6 @@ export type Validator = { consensus_address: Scalars['String']; consensus_pubkey: Scalars['String']; /** An array relationship */ - delegation_rewards: Array; - /** An aggregate relationship */ - delegation_rewards_aggregate: Delegation_Reward_Aggregate; - /** An array relationship */ - delegations: Array; - /** An aggregate relationship */ - delegations_aggregate: Delegation_Aggregate; - /** An array relationship */ double_sign_votes: Array; /** An aggregate relationship */ double_sign_votes_aggregate: Double_Sign_Vote_Aggregate; @@ -10994,24 +9208,6 @@ export type Validator = { /** An aggregate relationship */ pre_commits_aggregate: Pre_Commit_Aggregate; /** An array relationship */ - redelegationsByDstValidatorAddress: Array; - /** An aggregate relationship */ - redelegationsByDstValidatorAddress_aggregate: Redelegation_Aggregate; - /** An array relationship */ - redelegationsBySrcValidatorAddress: Array; - /** An aggregate relationship */ - redelegationsBySrcValidatorAddress_aggregate: Redelegation_Aggregate; - /** A computed field, executes function "self_delegations" */ - self_delegations?: Maybe>; - /** An array relationship */ - unbonding_delegations: Array; - /** An aggregate relationship */ - unbonding_delegations_aggregate: Unbonding_Delegation_Aggregate; - /** An array relationship */ - validator_commission_amounts: Array; - /** An aggregate relationship */ - validator_commission_amounts_aggregate: Validator_Commission_Amount_Aggregate; - /** An array relationship */ validator_commissions: Array; /** An aggregate relationship */ validator_commissions_aggregate: Validator_Commission_Aggregate; @@ -11060,46 +9256,6 @@ export type ValidatorBlocks_AggregateArgs = { }; -/** columns and relationships of "validator" */ -export type ValidatorDelegation_RewardsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorDelegation_Rewards_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorDelegationsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorDelegations_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - /** columns and relationships of "validator" */ export type ValidatorDouble_Sign_VotesArgs = { distinct_on?: Maybe>; @@ -11140,96 +9296,6 @@ export type ValidatorPre_Commits_AggregateArgs = { }; -/** columns and relationships of "validator" */ -export type ValidatorRedelegationsByDstValidatorAddressArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorRedelegationsByDstValidatorAddress_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorRedelegationsBySrcValidatorAddressArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorRedelegationsBySrcValidatorAddress_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorSelf_DelegationsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorUnbonding_DelegationsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorUnbonding_Delegations_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorValidator_Commission_AmountsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorValidator_Commission_Amounts_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - /** columns and relationships of "validator" */ export type ValidatorValidator_CommissionsArgs = { distinct_on?: Maybe>; @@ -11379,15 +9445,8 @@ export type Validator_Bool_Exp = { blocks?: Maybe; consensus_address?: Maybe; consensus_pubkey?: Maybe; - delegation_rewards?: Maybe; - delegations?: Maybe; double_sign_votes?: Maybe; pre_commits?: Maybe; - redelegationsByDstValidatorAddress?: Maybe; - redelegationsBySrcValidatorAddress?: Maybe; - self_delegations?: Maybe; - unbonding_delegations?: Maybe; - validator_commission_amounts?: Maybe; validator_commissions?: Maybe; validator_descriptions?: Maybe; validator_info?: Maybe; @@ -11453,204 +9512,6 @@ export type Validator_Commission_Aggregate_Order_By = { variance?: Maybe; }; -/** columns and relationships of "validator_commission_amount" */ -export type Validator_Commission_Amount = { - __typename?: 'validator_commission_amount'; - amount: Scalars['_dec_coin']; - height: Scalars['bigint']; - /** An object relationship */ - validator: Validator; - validator_address: Scalars['String']; -}; - -/** aggregated selection of "validator_commission_amount" */ -export type Validator_Commission_Amount_Aggregate = { - __typename?: 'validator_commission_amount_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "validator_commission_amount" */ -export type Validator_Commission_Amount_Aggregate_Fields = { - __typename?: 'validator_commission_amount_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_commission_amount" */ -export type Validator_Commission_Amount_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Validator_Commission_Amount_Avg_Fields = { - __typename?: 'validator_commission_amount_avg_fields'; - height?: Maybe; -}; - -/** order by avg() on columns of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Avg_Order_By = { - height?: Maybe; -}; - -/** Boolean expression to filter rows from the table "validator_commission_amount". All fields are combined with a logical 'AND'. */ -export type Validator_Commission_Amount_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - amount?: Maybe<_Dec_Coin_Comparison_Exp>; - height?: Maybe; - validator?: Maybe; - validator_address?: Maybe; -}; - -/** aggregate max on columns */ -export type Validator_Commission_Amount_Max_Fields = { - __typename?: 'validator_commission_amount_max_fields'; - height?: Maybe; - validator_address?: Maybe; -}; - -/** order by max() on columns of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Max_Order_By = { - height?: Maybe; - validator_address?: Maybe; -}; - -/** aggregate min on columns */ -export type Validator_Commission_Amount_Min_Fields = { - __typename?: 'validator_commission_amount_min_fields'; - height?: Maybe; - validator_address?: Maybe; -}; - -/** order by min() on columns of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Min_Order_By = { - height?: Maybe; - validator_address?: Maybe; -}; - -/** Ordering options when selecting data from "validator_commission_amount". */ -export type Validator_Commission_Amount_Order_By = { - amount?: Maybe; - height?: Maybe; - validator?: Maybe; - validator_address?: Maybe; -}; - -/** select columns of table "validator_commission_amount" */ -export enum Validator_Commission_Amount_Select_Column { - /** column name */ - Amount = 'amount', - /** column name */ - Height = 'height', - /** column name */ - ValidatorAddress = 'validator_address' -} - -/** aggregate stddev on columns */ -export type Validator_Commission_Amount_Stddev_Fields = { - __typename?: 'validator_commission_amount_stddev_fields'; - height?: Maybe; -}; - -/** order by stddev() on columns of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Stddev_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Validator_Commission_Amount_Stddev_Pop_Fields = { - __typename?: 'validator_commission_amount_stddev_pop_fields'; - height?: Maybe; -}; - -/** order by stddev_pop() on columns of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Stddev_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Validator_Commission_Amount_Stddev_Samp_Fields = { - __typename?: 'validator_commission_amount_stddev_samp_fields'; - height?: Maybe; -}; - -/** order by stddev_samp() on columns of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Stddev_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Validator_Commission_Amount_Sum_Fields = { - __typename?: 'validator_commission_amount_sum_fields'; - height?: Maybe; -}; - -/** order by sum() on columns of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Sum_Order_By = { - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Validator_Commission_Amount_Var_Pop_Fields = { - __typename?: 'validator_commission_amount_var_pop_fields'; - height?: Maybe; -}; - -/** order by var_pop() on columns of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Var_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Validator_Commission_Amount_Var_Samp_Fields = { - __typename?: 'validator_commission_amount_var_samp_fields'; - height?: Maybe; -}; - -/** order by var_samp() on columns of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Var_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Validator_Commission_Amount_Variance_Fields = { - __typename?: 'validator_commission_amount_variance_fields'; - height?: Maybe; -}; - -/** order by variance() on columns of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Variance_Order_By = { - height?: Maybe; -}; - /** aggregate avg on columns */ export type Validator_Commission_Avg_Fields = { __typename?: 'validator_commission_avg_fields'; @@ -12224,15 +10085,8 @@ export type Validator_Order_By = { blocks_aggregate?: Maybe; consensus_address?: Maybe; consensus_pubkey?: Maybe; - delegation_rewards_aggregate?: Maybe; - delegations_aggregate?: Maybe; double_sign_votes_aggregate?: Maybe; pre_commits_aggregate?: Maybe; - redelegationsByDstValidatorAddress_aggregate?: Maybe; - redelegationsBySrcValidatorAddress_aggregate?: Maybe; - self_delegations_aggregate?: Maybe; - unbonding_delegations_aggregate?: Maybe; - validator_commission_amounts_aggregate?: Maybe; validator_commissions_aggregate?: Maybe; validator_descriptions_aggregate?: Maybe; validator_info?: Maybe; @@ -13882,7 +11736,7 @@ export type ValidatorDetailsQuery = { stakingPool: Array<( & { missedBlocksCounter: Validator_Signing_Info['missed_blocks_counter'] } )>, validatorInfo?: Maybe<( { __typename?: 'validator_info' } - & { operatorAddress: Validator_Info['operator_address'], selfDelegateAddress: Validator_Info['self_delegate_address'] } + & { operatorAddress: Validator_Info['operator_address'], selfDelegateAddress: Validator_Info['self_delegate_address'], maxRate: Validator_Info['max_rate'] } )>, validatorCommissions: Array<( { __typename?: 'validator_commission' } & Pick @@ -15205,6 +13059,7 @@ export const ValidatorDetailsDocument = gql` validatorInfo: validator_info { operatorAddress: operator_address selfDelegateAddress: self_delegate_address + maxRate: max_rate } validatorCommissions: validator_commissions(order_by: {height: desc}, limit: 1) { commission diff --git a/src/graphql/validator_details.graphql b/src/graphql/validator_details.graphql index 94b5470c53..24183e2e79 100644 --- a/src/graphql/validator_details.graphql +++ b/src/graphql/validator_details.graphql @@ -45,6 +45,7 @@ query ValidatorDetails($address: String) { validatorInfo: validator_info { operatorAddress: operator_address selfDelegateAddress: self_delegate_address + maxRate: max_rate } validatorCommissions: validator_commissions(order_by: {height: desc}, limit: 1) { commission diff --git a/src/screens/account_details/__snapshots__/index.test.tsx.snap b/src/screens/account_details/__snapshots__/index.test.tsx.snap index e8750651e7..6285bf252b 100644 --- a/src/screens/account_details/__snapshots__/index.test.tsx.snap +++ b/src/screens/account_details/__snapshots__/index.test.tsx.snap @@ -141,61 +141,7 @@ exports[`screen: BlockDetails matches snapshot 1`] = ` />
diff --git a/src/screens/account_details/components/transactions/__snapshots__/index.test.tsx.snap b/src/screens/account_details/components/transactions/__snapshots__/index.test.tsx.snap deleted file mode 100644 index 73314ea4af..0000000000 --- a/src/screens/account_details/components/transactions/__snapshots__/index.test.tsx.snap +++ /dev/null @@ -1,41 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`screen: Transactions/List matches snapshot 1`] = ` -
-

- accounts:transactions -

-
-
-
-
-`; diff --git a/src/screens/account_details/components/transactions/hooks.ts b/src/screens/account_details/components/transactions/hooks.ts new file mode 100644 index 0000000000..3f7b0173bf --- /dev/null +++ b/src/screens/account_details/components/transactions/hooks.ts @@ -0,0 +1,99 @@ +import { useState } from 'react'; +import { useRouter } from 'next/router'; +import { convertMsgsToModels } from '@msg'; +import * as R from 'ramda'; +import { + useGetMessagesByAddressQuery, + GetMessagesByAddressQuery, +} from '@graphql/types'; +import { TransactionState } from './types'; + +const LIMIT = 50; + +export const useTransactions = () => { + const router = useRouter(); + const [state, setState] = useState({ + data: [], + hasNextPage: false, + isNextPageLoading: false, + offsetCount: 0, + }); + + const handleSetState = (stateChange: any) => { + setState((prevState) => R.mergeDeepLeft(stateChange, prevState)); + }; + + const transactionQuery = useGetMessagesByAddressQuery({ + variables: { + limit: LIMIT + 1, // to check if more exist + offset: 0, + address: `{${R.pathOr('', ['query', 'address'], router)}}`, + }, + onCompleted: (data) => { + const itemsLength = data.messagesByAddress.length; + const newItems = R.uniq([...state.data, ...formatTransactions(data)]); + const stateChange = { + data: newItems, + hasNextPage: itemsLength === 51, + isNextPageLoading: false, + offsetCount: state.offsetCount + LIMIT, + }; + + handleSetState(stateChange); + }, + }); + + const loadNextPage = async () => { + handleSetState({ + isNextPageLoading: true, + }); + // refetch query + await transactionQuery.fetchMore({ + variables: { + offset: state.offsetCount, + limit: LIMIT + 1, + }, + }).then(({ data }) => { + const itemsLength = data.messagesByAddress.length; + const newItems = R.uniq([...state.data, ...formatTransactions(data)]); + const stateChange = { + data: newItems, + hasNextPage: itemsLength === 51, + isNextPageLoading: false, + offsetCount: state.offsetCount + LIMIT, + }; + handleSetState(stateChange); + }); + }; + + const formatTransactions = (data: GetMessagesByAddressQuery) => { + let formattedData = data.messagesByAddress; + if (data.messagesByAddress.length === 51) { + formattedData = data.messagesByAddress.slice(0, 51); + } + return formattedData.map((x) => { + const { transaction } = x; + + // ============================= + // messages + // ============================= + const messages = convertMsgsToModels(transaction); + + return ({ + height: transaction.height, + hash: transaction.hash, + messages: { + count: messages.length, + items: messages, + }, + success: transaction.success, + timestamp: transaction.block.timestamp, + }); + }); + }; + + return ({ + state, + loadNextPage, + }); +}; diff --git a/src/screens/account_details/components/transactions/index.test.tsx b/src/screens/account_details/components/transactions/index.test.tsx deleted file mode 100644 index 04fce1161d..0000000000 --- a/src/screens/account_details/components/transactions/index.test.tsx +++ /dev/null @@ -1,59 +0,0 @@ -import React from 'react'; -import { RecoilRoot } from 'recoil'; -import renderer from 'react-test-renderer'; -import { - MockTheme, wait, -} from '@tests/utils'; -import Transactions from '.'; - -// ================================== -// mocks -// ================================== -jest.mock('@components', () => ({ - Box: (props) =>
, - TransactionListDetails: (props) =>
, - TransactionsList: (props) =>
, -})); - -// ================================== -// unit tests -// ================================== -describe('screen: Transactions/List', () => { - it('matches snapshot', async () => { - let component; - - renderer.act(() => { - component = renderer.create( - - - - - , - ); - }); - await wait(); - - const tree = component.toJSON(); - expect(tree).toMatchSnapshot(); - }); - - afterEach(() => { - jest.clearAllMocks(); - }); -}); diff --git a/src/screens/account_details/components/transactions/index.tsx b/src/screens/account_details/components/transactions/index.tsx index 5135d306fb..d11d0db22e 100644 --- a/src/screens/account_details/components/transactions/index.tsx +++ b/src/screens/account_details/components/transactions/index.tsx @@ -2,28 +2,29 @@ import React from 'react'; import classnames from 'classnames'; import { Typography } from '@material-ui/core'; import useTranslation from 'next-translate/useTranslation'; -import { useRecoilValue } from 'recoil'; -import { readTx } from '@recoil/settings'; import { TransactionListDetails, TransactionsList, Box, } from '@components'; +import { useRecoilValue } from 'recoil'; +import { readTx } from '@recoil/settings'; import { useStyles } from './styles'; +import { useTransactions } from './hooks'; -const Transactions: React.FC<{ - className?: string; - data: Transactions[]; - loadNextPage: () => void; - hasNextPage: boolean; - isNextPageLoading: boolean; -}> = (props) => { +const Transactions: React.FC = (props) => { const txListFormat = useRecoilValue(readTx); const classes = useStyles(); - const { t } = useTranslation('accounts'); - const loadMoreItems = props.isNextPageLoading ? () => null : props.loadNextPage; - const isItemLoaded = (index) => !props.hasNextPage || index < props.data.length; - const itemCount = props.hasNextPage ? props.data.length + 1 : props.data.length; + const { t } = useTranslation('validators'); + + const { + state, + loadNextPage, + } = useTransactions(); + + const loadMoreItems = state.isNextPageLoading ? () => null : loadNextPage; + const isItemLoaded = (index) => !state.hasNextPage || index < state.data.length; + const itemCount = state.hasNextPage ? state.data.length + 1 : state.data.length; return ( @@ -33,21 +34,21 @@ const Transactions: React.FC<{
{txListFormat === 'compact' ? ( ) : ( diff --git a/src/screens/account_details/components/transactions/types.ts b/src/screens/account_details/components/transactions/types.ts new file mode 100644 index 0000000000..e19a91e798 --- /dev/null +++ b/src/screens/account_details/components/transactions/types.ts @@ -0,0 +1,6 @@ +export type TransactionState = { + hasNextPage: boolean; + isNextPageLoading: boolean; + offsetCount: number; + data: Transactions[]; +} diff --git a/src/screens/account_details/hooks.ts b/src/screens/account_details/hooks.ts index dfdb82dc2d..09d8276c10 100644 --- a/src/screens/account_details/hooks.ts +++ b/src/screens/account_details/hooks.ts @@ -7,10 +7,7 @@ import { useRouter } from 'next/router'; import { AccountQuery, useAccountQuery, - useGetMessagesByAddressQuery, - GetMessagesByAddressQuery, } from '@graphql/types'; -import { convertMsgsToModels } from '@msg'; import { getDenom } from '@utils/get_denom'; import { toValidatorAddress } from '@utils/prefix_convert'; import { @@ -48,12 +45,6 @@ const initialState: AccountDetailState = { total: defaultTokenUnit, }, rewards: {}, - transactions: { - data: [], - hasNextPage: false, - isNextPageLoading: false, - offsetCount: 0, - }, }; export const useAccountDetails = () => { @@ -80,7 +71,7 @@ export const useAccountDetails = () => { useEffect(() => { handleSetState(initialState); if (chainConfig.extra.profile) { - fetchDesmosProfile(R.pathOr('', ['query', 'address'], router)); + fetchDesmosProfile(router.query.address as string); } }, [router.query.address]); @@ -88,8 +79,6 @@ export const useAccountDetails = () => { // ========================== // Fetch Data // ========================== - const LIMIT = 50; - useAccountQuery({ variables: { address: R.pathOr('', ['query', 'address'], router), @@ -100,83 +89,6 @@ export const useAccountDetails = () => { }, }); - const transactionQuery = useGetMessagesByAddressQuery({ - variables: { - limit: LIMIT + 1, // to check if more exist - offset: 0, - address: `{${R.pathOr('', ['query', 'address'], router)}}`, - }, - onCompleted: (data) => { - const itemsLength = data.messagesByAddress.length; - const newItems = R.uniq([...state.transactions.data, ...formatTransactions(data)]); - const stateChange = { - transactions: { - data: newItems, - hasNextPage: itemsLength === 51, - isNextPageLoading: false, - offsetCount: state.transactions.offsetCount + LIMIT, - }, - }; - - handleSetState(stateChange); - }, - }); - - const loadNextPage = async () => { - handleSetState({ - isNextPageLoading: true, - }); - // refetch query - await transactionQuery.fetchMore({ - variables: { - offset: state.transactions.offsetCount, - limit: LIMIT + 1, - }, - }).then(({ data }) => { - const itemsLength = data.messagesByAddress.length; - const newItems = R.uniq([...state.transactions.data, ...formatTransactions(data)]); - const stateChange = { - transactions: { - data: newItems, - hasNextPage: itemsLength === 51, - isNextPageLoading: false, - offsetCount: state.transactions.offsetCount + LIMIT, - }, - }; - handleSetState(stateChange); - }); - }; - - // ========================== - // Format TX - // ========================== - - const formatTransactions = (data: GetMessagesByAddressQuery) => { - let formattedData = data.messagesByAddress; - if (data.messagesByAddress.length === 51) { - formattedData = data.messagesByAddress.slice(0, 51); - } - return formattedData.map((x) => { - const { transaction } = x; - - // ============================= - // messages - // ============================= - const messages = convertMsgsToModels(transaction); - - return ({ - height: transaction.height, - hash: transaction.hash, - messages: { - count: messages.length, - items: messages, - }, - success: transaction.success, - timestamp: transaction.block.timestamp, - }); - }); - }; - // ========================== // Format Account // ========================== @@ -355,6 +267,5 @@ export const useAccountDetails = () => { return { state, - loadNextPage, }; }; diff --git a/src/screens/account_details/index.tsx b/src/screens/account_details/index.tsx index 577c7fe054..8b27d728ba 100644 --- a/src/screens/account_details/index.tsx +++ b/src/screens/account_details/index.tsx @@ -21,7 +21,6 @@ const AccountDetails = () => { const classes = useStyles(); const { state, - loadNextPage, } = useAccountDetails(); return ( @@ -72,10 +71,6 @@ const AccountDetails = () => { /> diff --git a/src/screens/account_details/types.ts b/src/screens/account_details/types.ts index 9b629892bf..c0f72a49a8 100644 --- a/src/screens/account_details/types.ts +++ b/src/screens/account_details/types.ts @@ -34,10 +34,4 @@ export type AccountDetailState = { count: number; }; rewards: RewardsType; - transactions: { - hasNextPage: boolean; - isNextPageLoading: boolean; - offsetCount: number; - data: Transactions[]; - }; } diff --git a/src/screens/validator_details/components/profile/index.test.tsx b/src/screens/validator_details/components/profile/index.test.tsx index 6404dc8e65..a79041002c 100644 --- a/src/screens/validator_details/components/profile/index.test.tsx +++ b/src/screens/validator_details/components/profile/index.test.tsx @@ -25,11 +25,15 @@ describe('screen: ValidatorDetails/Profile', () => { , diff --git a/src/screens/validator_details/components/profile/index.tsx b/src/screens/validator_details/components/profile/index.tsx index d18498429d..98ac633c1f 100644 --- a/src/screens/validator_details/components/profile/index.tsx +++ b/src/screens/validator_details/components/profile/index.tsx @@ -14,20 +14,18 @@ import { useProfileRecoil } from '@recoil/profiles'; import { useStyles } from './styles'; import { OverviewType } from '../../types'; -const Profile: React.FC = ({ - className, ...data +const Profile: React.FC<{profile: OverviewType} & ComponentDefault> = ({ + className, profile, }) => { const classes = useStyles(); const { t } = useTranslation('validators'); - const validator = useProfileRecoil(data.validator); + const validator = useProfileRecoil(profile.validator); const pattern = /^((http|https|ftp):\/\/)/; - let { website } = data; + let { website } = profile; - if (!pattern.test(data.website)) { - website = `//${data.website}`; + if (!pattern.test(profile.website)) { + website = `//${profile.website}`; } const formattedItem = { @@ -40,7 +38,7 @@ const Profile: React.FC - {data.website} + {profile.website} ), }; @@ -49,7 +47,7 @@ const Profile: React.FC
@@ -60,7 +58,7 @@ const Profile: React.FC @@ -74,9 +72,9 @@ const Profile: React.FC - +
)}
diff --git a/src/screens/validator_details/components/transactions/__snapshots__/index.test.tsx.snap b/src/screens/validator_details/components/transactions/__snapshots__/index.test.tsx.snap deleted file mode 100644 index 9c4620aa3e..0000000000 --- a/src/screens/validator_details/components/transactions/__snapshots__/index.test.tsx.snap +++ /dev/null @@ -1,41 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`screen: Transactions/List matches snapshot 1`] = ` -
-

- validators:transactions -

-
-
-
-
-`; diff --git a/src/screens/validator_details/components/transactions/hooks.ts b/src/screens/validator_details/components/transactions/hooks.ts new file mode 100644 index 0000000000..3f7b0173bf --- /dev/null +++ b/src/screens/validator_details/components/transactions/hooks.ts @@ -0,0 +1,99 @@ +import { useState } from 'react'; +import { useRouter } from 'next/router'; +import { convertMsgsToModels } from '@msg'; +import * as R from 'ramda'; +import { + useGetMessagesByAddressQuery, + GetMessagesByAddressQuery, +} from '@graphql/types'; +import { TransactionState } from './types'; + +const LIMIT = 50; + +export const useTransactions = () => { + const router = useRouter(); + const [state, setState] = useState({ + data: [], + hasNextPage: false, + isNextPageLoading: false, + offsetCount: 0, + }); + + const handleSetState = (stateChange: any) => { + setState((prevState) => R.mergeDeepLeft(stateChange, prevState)); + }; + + const transactionQuery = useGetMessagesByAddressQuery({ + variables: { + limit: LIMIT + 1, // to check if more exist + offset: 0, + address: `{${R.pathOr('', ['query', 'address'], router)}}`, + }, + onCompleted: (data) => { + const itemsLength = data.messagesByAddress.length; + const newItems = R.uniq([...state.data, ...formatTransactions(data)]); + const stateChange = { + data: newItems, + hasNextPage: itemsLength === 51, + isNextPageLoading: false, + offsetCount: state.offsetCount + LIMIT, + }; + + handleSetState(stateChange); + }, + }); + + const loadNextPage = async () => { + handleSetState({ + isNextPageLoading: true, + }); + // refetch query + await transactionQuery.fetchMore({ + variables: { + offset: state.offsetCount, + limit: LIMIT + 1, + }, + }).then(({ data }) => { + const itemsLength = data.messagesByAddress.length; + const newItems = R.uniq([...state.data, ...formatTransactions(data)]); + const stateChange = { + data: newItems, + hasNextPage: itemsLength === 51, + isNextPageLoading: false, + offsetCount: state.offsetCount + LIMIT, + }; + handleSetState(stateChange); + }); + }; + + const formatTransactions = (data: GetMessagesByAddressQuery) => { + let formattedData = data.messagesByAddress; + if (data.messagesByAddress.length === 51) { + formattedData = data.messagesByAddress.slice(0, 51); + } + return formattedData.map((x) => { + const { transaction } = x; + + // ============================= + // messages + // ============================= + const messages = convertMsgsToModels(transaction); + + return ({ + height: transaction.height, + hash: transaction.hash, + messages: { + count: messages.length, + items: messages, + }, + success: transaction.success, + timestamp: transaction.block.timestamp, + }); + }); + }; + + return ({ + state, + loadNextPage, + }); +}; diff --git a/src/screens/validator_details/components/transactions/index.test.tsx b/src/screens/validator_details/components/transactions/index.test.tsx deleted file mode 100644 index 67b99c5541..0000000000 --- a/src/screens/validator_details/components/transactions/index.test.tsx +++ /dev/null @@ -1,59 +0,0 @@ -import React from 'react'; -import { RecoilRoot } from 'recoil'; -import renderer from 'react-test-renderer'; -import { - MockTheme, wait, -} from '@tests/utils'; -import Transactions from '.'; - -// ================================== -// mocks -// ================================== -jest.mock('@components', () => ({ - Box: (props) =>
, - TransactionsList: (props) =>
, - TransactionListDetails: (props) =>
, -})); - -// ================================== -// unit tests -// ================================== -describe('screen: Transactions/List', () => { - it('matches snapshot', async () => { - let component; - - renderer.act(() => { - component = renderer.create( - - - - - , - ); - }); - await wait(); - - const tree = component.toJSON(); - expect(tree).toMatchSnapshot(); - }); - - afterEach(() => { - jest.clearAllMocks(); - }); -}); diff --git a/src/screens/validator_details/components/transactions/index.tsx b/src/screens/validator_details/components/transactions/index.tsx index 25b29f3ed3..d11d0db22e 100644 --- a/src/screens/validator_details/components/transactions/index.tsx +++ b/src/screens/validator_details/components/transactions/index.tsx @@ -10,20 +10,21 @@ import { import { useRecoilValue } from 'recoil'; import { readTx } from '@recoil/settings'; import { useStyles } from './styles'; +import { useTransactions } from './hooks'; -const Transactions: React.FC<{ - className?: string; - data: Transactions[]; - loadNextPage: () => void; - hasNextPage: boolean; - isNextPageLoading: boolean; -}> = (props) => { +const Transactions: React.FC = (props) => { const txListFormat = useRecoilValue(readTx); const classes = useStyles(); const { t } = useTranslation('validators'); - const loadMoreItems = props.isNextPageLoading ? () => null : props.loadNextPage; - const isItemLoaded = (index) => !props.hasNextPage || index < props.data.length; - const itemCount = props.hasNextPage ? props.data.length + 1 : props.data.length; + + const { + state, + loadNextPage, + } = useTransactions(); + + const loadMoreItems = state.isNextPageLoading ? () => null : loadNextPage; + const isItemLoaded = (index) => !state.hasNextPage || index < state.data.length; + const itemCount = state.hasNextPage ? state.data.length + 1 : state.data.length; return ( @@ -33,21 +34,21 @@ const Transactions: React.FC<{
{txListFormat === 'compact' ? ( ) : ( diff --git a/src/screens/validator_details/components/transactions/types.ts b/src/screens/validator_details/components/transactions/types.ts new file mode 100644 index 0000000000..e19a91e798 --- /dev/null +++ b/src/screens/validator_details/components/transactions/types.ts @@ -0,0 +1,6 @@ +export type TransactionState = { + hasNextPage: boolean; + isNextPageLoading: boolean; + offsetCount: number; + data: Transactions[]; +} diff --git a/src/screens/validator_details/components/validator_overview/index.tsx b/src/screens/validator_details/components/validator_overview/index.tsx index 914e4b6799..04219160b5 100644 --- a/src/screens/validator_details/components/validator_overview/index.tsx +++ b/src/screens/validator_details/components/validator_overview/index.tsx @@ -1,8 +1,8 @@ import React from 'react'; import classnames from 'classnames'; import useTranslation from 'next-translate/useTranslation'; +import Big from 'big.js'; import numeral from 'numeral'; -import dayjs, { formatDayJs } from '@utils/dayjs'; import { Divider, Typography, } from '@material-ui/core'; @@ -17,182 +17,178 @@ import { } from '@components'; import Link from 'next/link'; import { ACCOUNT_DETAILS } from '@utils/go_to_page'; -import { useRecoilValue } from 'recoil'; -import { readDate } from '@recoil/settings'; import { getValidatorStatus } from '@utils/get_validator_status'; import { useStyles } from './styles'; import { getCondition } from './utils'; -import { StatusType } from '../../types'; +import { + StatusType, OverviewType, +} from '../../types'; import { useAddress } from './hooks'; -const ValidatorOverview: React.FC = ({ - className, - operatorAddress, - selfDelegateAddress, - ...data -}) => { - const { isDesktop } = useScreenSize(); - const classes = useStyles(); - const { t } = useTranslation('validators'); - const { handleCopyToClipboard } = useAddress(t); +const ValidatorOverview: React.FC<{ + status: StatusType, overview: OverviewType } & ComponentDefault> = ({ + status, + overview, + className, + }) => { + const { isDesktop } = useScreenSize(); + const classes = useStyles(); + const { t } = useTranslation('validators'); + const { handleCopyToClipboard } = useAddress(t); - const dateFormat = useRecoilValue(readDate); - const statusTheme = getValidatorStatus(data.status, data.jailed, data.tombstoned); - const condition = getCondition(data.condition, data.status); + const statusTheme = getValidatorStatus(status.status, status.jailed, status.tombstoned); + const condition = getCondition(status.condition, status.status); - const statusItems = [ - { - key: ( - - {t('status')} - - ), - value: ( - - ), - }, - { - key: ( - - {t('commission')} - - ), - value: ( - - {`${numeral(data.commission * 100).format('0.00')}%`} - - ), - }, - { - key: ( - - {t('condition')} - } + const statusItems = [ + { + key: ( + + {t('status')} + + ), + value: ( + - - ), - value: ( - data.status === 3 ? ( -
+ ), + }, + { + key: ( + + {t('commission')} + + ), + value: ( + + {`${numeral(status.commission * 100).format('0.00')}%`} + + ), + }, + { + key: ( + + {t('condition')} - - {t('missedBlockCounter', { - amount: numeral(data.missedBlockCounter).format('0,0'), - })} - - - {t('signedBlockWindow', { - amount: numeral(data.signedBlockWindow).format('0,0'), - })} - - + content={} + /> + + ), + value: ( + status.status === 3 ? ( +
+ + + {t('missedBlockCounter', { + amount: numeral(status.missedBlockCounter).format('0,0'), + })} + + + {t('signedBlockWindow', { + amount: numeral(status.signedBlockWindow).format('0,0'), + })} + + )} - display={( - - {t(condition)} - + display={( + + {t(condition)} + )} - /> -
- ) : ( + /> +
+ ) : ( + + {t(condition)} + + ) + ), + }, + { + key: ( + + {t('maxRate')} + + ), + value: ( - {t(condition)} + {Big(status.maxRate).times(100).toFixed(2)} + % - ) - ), - }, - { - key: ( - - {t('lastSeen')} - - ), - value: ( - - {data.lastSeen ? formatDayJs(dayjs.utc(data.lastSeen), dateFormat) : t('na')} - - ), - }, - ]; + ), + }, + ]; - return ( - <> - -
-
- - {t('operatorAddress')} - -
- handleCopyToClipboard(operatorAddress)} - className={classes.actionIcons} - /> - - { + return ( + <> + +
+
+ + {t('operatorAddress')} + +
+ handleCopyToClipboard(overview.operatorAddress)} + className={classes.actionIcons} + /> + + { !isDesktop ? ( - getMiddleEllipsis(operatorAddress, { + getMiddleEllipsis(overview.operatorAddress, { beginning: 15, ending: 5, }) ) : ( - operatorAddress + overview.operatorAddress ) } - + +
-
-
- - {t('selfDelegateAddress')} - -
- handleCopyToClipboard(selfDelegateAddress)} - /> - - - { +
+ + {t('selfDelegateAddress')} + +
+ handleCopyToClipboard(overview.selfDelegateAddress)} + /> + + + { !isDesktop ? ( - getMiddleEllipsis(selfDelegateAddress, { + getMiddleEllipsis(overview.selfDelegateAddress, { beginning: 15, ending: 5, }) ) : ( - selfDelegateAddress + overview.selfDelegateAddress ) } - - + + +
-
- -
- { + +
+ { statusItems.map((x, i) => { return (
@@ -202,10 +198,10 @@ const ValidatorOverview: React.FC - - - ); -}; +
+ + + ); + }; export default ValidatorOverview; diff --git a/src/screens/validator_details/hooks.ts b/src/screens/validator_details/hooks.ts index f622465aec..cf488de1e6 100644 --- a/src/screens/validator_details/hooks.ts +++ b/src/screens/validator_details/hooks.ts @@ -4,14 +4,9 @@ import { import * as R from 'ramda'; import { useRouter } from 'next/router'; import { formatToken } from '@utils/format_token'; -import { convertMsgsToModels } from '@msg'; import { useValidatorDetailsQuery, ValidatorDetailsQuery, - useGetMessagesByAddressQuery, - GetMessagesByAddressQuery, - useValidatorLastSeenListenerSubscription, - ValidatorLastSeenListenerSubscription, } from '@graphql/types'; import { useDesmosProfile } from '@hooks'; import { validatorToDelegatorAddress } from '@recoil/profiles'; @@ -48,19 +43,13 @@ const initialState: ValidatorDetailsState = { commission: 0, missedBlockCounter: 0, signedBlockWindow: 0, - lastSeen: '', + maxRate: '0', }, votingPower: { height: 0, overall: initialTokenDenom, self: 0, }, - transactions: { - data: [], - hasNextPage: false, - isNextPageLoading: false, - offsetCount: 0, - }, }; export const useValidatorDetails = () => { @@ -85,126 +74,28 @@ export const useValidatorDetails = () => { }); useEffect(() => { + // ryuash + // why did i do this again handleSetState(initialState); if (chainConfig.extra.profile) { - const address = validatorToDelegatorAddress(R.pathOr('', ['query', 'address'], router)); + const address = validatorToDelegatorAddress(router.query.address as string); fetchDesmosProfile(address); } - }, [R.pathOr('', ['query', 'address'], router)]); + }, [router.query.address]); // ========================== // Fetch Data // ========================== - const LIMIT = 50; - useValidatorDetailsQuery({ variables: { - address: R.pathOr('', ['query', 'address'], router), + address: router.query.address as string, }, onCompleted: (data) => { handleSetState(formatAccountQuery(data)); }, }); - useValidatorLastSeenListenerSubscription({ - variables: { - address: R.pathOr('', ['query', 'address'], router), - }, - onSubscriptionData: (data) => { - handleSetState({ - status: formatLastSeen(data.subscriptionData.data), - }); - }, - }); - - const transactionQuery = useGetMessagesByAddressQuery({ - variables: { - limit: LIMIT + 1, // to check if more exist - offset: 0, - address: `{${R.pathOr('', ['query', 'address'], router)}}`, - }, - onCompleted: (data) => { - const itemsLength = data.messagesByAddress.length; - const newItems = R.uniq([...state.transactions.data, ...formatTransactions(data)]); - const stateChange = { - transactions: { - data: newItems, - hasNextPage: itemsLength === 51, - isNextPageLoading: false, - offsetCount: state.transactions.offsetCount + LIMIT, - }, - }; - - handleSetState(stateChange); - }, - }); - - const loadNextPage = async () => { - handleSetState({ - isNextPageLoading: true, - }); - // refetch query - await transactionQuery.fetchMore({ - variables: { - offset: state.transactions.offsetCount, - limit: LIMIT + 1, - }, - }).then(({ data }) => { - const itemsLength = data.messagesByAddress.length; - const newItems = R.uniq([...state.transactions.data, ...formatTransactions(data)]); - const stateChange = { - transactions: { - data: newItems, - hasNextPage: itemsLength === 51, - isNextPageLoading: false, - offsetCount: state.transactions.offsetCount + LIMIT, - }, - }; - handleSetState(stateChange); - }); - }; - - // ========================== - // Parse Data - // ========================== - const formatTransactions = (data: GetMessagesByAddressQuery) => { - let formattedData = data.messagesByAddress; - if (data.messagesByAddress.length === 51) { - formattedData = data.messagesByAddress.slice(0, 51); - } - return formattedData.map((x) => { - const { transaction } = x; - - // ============================= - // messages - // ============================= - const messages = convertMsgsToModels(transaction); - - return ({ - height: transaction.height, - hash: transaction.hash, - messages: { - count: messages.length, - items: messages, - }, - success: transaction.success, - timestamp: transaction.block.timestamp, - }); - }); - }; - - const formatLastSeen = (data: ValidatorLastSeenListenerSubscription) => { - if (data.preCommit.length) { - const preCommit = data.preCommit[0]; - return ({ - lastSeen: preCommit.timestamp, - }); - } - - return {}; - }; - const formatAccountQuery = (data: ValidatorDetailsQuery) => { const stateChange: any = { loading: false, @@ -251,6 +142,7 @@ export const useValidatorDetails = () => { condition, missedBlockCounter, signedBlockWindow, + maxRate: R.pathOr('0', ['validator', 0, 'validatorInfo', 'maxRate'], data), }; return profile; @@ -281,6 +173,5 @@ export const useValidatorDetails = () => { return { state, - loadNextPage, }; }; diff --git a/src/screens/validator_details/index.tsx b/src/screens/validator_details/index.tsx index 46d8a25f0b..eb00b181dc 100644 --- a/src/screens/validator_details/index.tsx +++ b/src/screens/validator_details/index.tsx @@ -22,10 +22,8 @@ const ValidatorDetails = () => { const classes = useStyles(); const { state, - loadNextPage, } = useValidatorDetails(); const { - overview, desmosProfile, status, } = state; @@ -47,35 +45,18 @@ const ValidatorDetails = () => { {desmosProfile ? ( ) : ( )} { /> diff --git a/src/screens/validator_details/types.ts b/src/screens/validator_details/types.ts index 6c7385374c..2d18b713e1 100644 --- a/src/screens/validator_details/types.ts +++ b/src/screens/validator_details/types.ts @@ -14,7 +14,7 @@ export type StatusType = { commission: number; signedBlockWindow: number; missedBlockCounter: number; - lastSeen: string; + maxRate: string; } export type VotingPowerType = { @@ -30,10 +30,4 @@ export type ValidatorDetailsState = { overview: OverviewType; status: StatusType; votingPower: VotingPowerType; - transactions: { - hasNextPage: boolean; - isNextPageLoading: boolean; - offsetCount: number; - data: Transactions[]; - }; } From 3035b14754b6814870ed68f47298ba8ba7a6895a Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Thu, 17 Feb 2022 14:54:39 +0800 Subject: [PATCH 13/54] 713/handle action errors (#714) --- CHANGELOG.md | 2 + codegen.yml | 1 + src/configs/general_config.json | 2 +- .../{account.graphql => account_actions.ts} | 36 +- src/graphql/desmos_profile.ts | 386 ++-- src/graphql/types.tsx | 1552 +++++++++++------ .../__snapshots__/index.test.tsx.snap | 149 -- src/screens/account_details/hooks.ts | 91 +- src/screens/account_details/index.test.tsx | 184 -- src/screens/account_details/utils.ts | 123 ++ 10 files changed, 1346 insertions(+), 1180 deletions(-) rename src/graphql/{account.graphql => account_actions.ts} (59%) delete mode 100644 src/screens/account_details/__snapshots__/index.test.tsx.snap delete mode 100644 src/screens/account_details/index.test.tsx create mode 100644 src/screens/account_details/utils.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 2215570d65..1c31c769d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ ## Changes - Updated market cap display ([\#698](https://github.com/forbole/big-dipper-2.0-cosmos/issues/698)) - Optimised validator details and account details to prevent random polling behavior ([\#703](https://github.com/forbole/big-dipper-2.0-cosmos/issues/703)) +- Add hasura actions error handling in account details ([\#713](https://github.com/forbole/big-dipper-2.0-cosmos/issues/713)) +- Display accounts even if balance is 0 and does not exist ([\#692](https://github.com/forbole/big-dipper-2.0-cosmos/issues/692)) # base-v2.0.0-rc1 - 2021-02-07 diff --git a/codegen.yml b/codegen.yml index 539697cda9..165f808a00 100644 --- a/codegen.yml +++ b/codegen.yml @@ -6,6 +6,7 @@ generates: ./src/graphql/types.tsx: documents: - './src/**/*.graphql' + - './src/**/*_actions.ts' - '!./src/**/desmos_profile.graphql' schema: https://gql.desmos.forbole.com/v1/graphql plugins: diff --git a/src/configs/general_config.json b/src/configs/general_config.json index dddaf30618..0306db42ab 100644 --- a/src/configs/general_config.json +++ b/src/configs/general_config.json @@ -6,5 +6,5 @@ "github": { "reportIssue": "https://github.com/forbole/big-dipper-2.0-cosmos/issues" }, - "version": "base-v2.0.0" + "version": "base-v2.0.0-rc1" } diff --git a/src/graphql/account.graphql b/src/graphql/account_actions.ts similarity index 59% rename from src/graphql/account.graphql rename to src/graphql/account_actions.ts index b5538001c7..98da697093 100644 --- a/src/graphql/account.graphql +++ b/src/graphql/account_actions.ts @@ -1,43 +1,75 @@ - -query Account($address: String!, $validatorAddress: String!) { +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) { delegations: action_delegation(address: $address, limit: $limit, offset: $offset, count_total: true){ delegations pagination } } +`; +export const AccountRedelegationsDocument = /* GraphQL */` query AccountRedelegations($address: String!, $offset: Int = 0, $limit: Int = 10) { redelegations: action_redelegation(address: $address, limit: $limit, offset: $offset, count_total: true){ redelegations pagination } } +`; +export const AccountUndelegationsDocument = /* GraphQL */` query AccountUndelegations($address: String!, $offset: Int = 0, $limit: Int = 10) { undelegations: action_unbonding_delegation(address: $address, limit: $limit, offset: $offset, count_total: true){ undelegations: unbonding_delegations pagination } } +`; diff --git a/src/graphql/desmos_profile.ts b/src/graphql/desmos_profile.ts index 01d585ff6b..fdf0fb25a6 100644 --- a/src/graphql/desmos_profile.ts +++ b/src/graphql/desmos_profile.ts @@ -554,6 +554,7 @@ export type Account_Balance_Bool_Exp = { block?: Maybe; coins?: Maybe<_Coin_Comparison_Exp>; height?: Maybe; + tokens_prices?: Maybe; }; /** columns and relationships of "account_balance_history" */ @@ -625,6 +626,7 @@ export type Account_Balance_History_Bool_Exp = { redelegating?: Maybe<_Coin_Comparison_Exp>; reward?: Maybe<_Dec_Coin_Comparison_Exp>; timestamp?: Maybe; + token_prices_history?: Maybe; unbonding?: Maybe<_Coin_Comparison_Exp>; }; @@ -2007,14 +2009,6 @@ export type Block = { pre_commits: Array; /** An aggregate relationship */ pre_commits_aggregate: Pre_Commit_Aggregate; - /** An array relationship */ - proposal_deposits: Array; - /** An aggregate relationship */ - proposal_deposits_aggregate: Proposal_Deposit_Aggregate; - /** An array relationship */ - proposal_votes: Array; - /** An aggregate relationship */ - proposal_votes_aggregate: Proposal_Vote_Aggregate; proposer_address?: Maybe; timestamp: Scalars['timestamp']; total_gas?: Maybe; @@ -2051,46 +2045,6 @@ export type BlockPre_Commits_AggregateArgs = { }; -/** columns and relationships of "block" */ -export type BlockProposal_DepositsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "block" */ -export type BlockProposal_Deposits_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "block" */ -export type BlockProposal_VotesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "block" */ -export type BlockProposal_Votes_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - /** columns and relationships of "block" */ export type BlockTransactionsArgs = { distinct_on?: Maybe>; @@ -2199,8 +2153,6 @@ export type Block_Bool_Exp = { height?: Maybe; num_txs?: Maybe; pre_commits?: Maybe; - proposal_deposits?: Maybe; - proposal_votes?: Maybe; proposer_address?: Maybe; timestamp?: Maybe; total_gas?: Maybe; @@ -2257,8 +2209,6 @@ export type Block_Order_By = { height?: Maybe; num_txs?: Maybe; pre_commits_aggregate?: Maybe; - proposal_deposits_aggregate?: Maybe; - proposal_votes_aggregate?: Maybe; proposer_address?: Maybe; timestamp?: Maybe; total_gas?: Maybe; @@ -2394,6 +2344,10 @@ export type Chain_Link = { /** An object relationship */ chain_config: Chain_Link_Chain_Config; chain_config_id: Scalars['bigint']; + /** An array relationship */ + chain_link_proofs: Array; + /** An aggregate relationship */ + chain_link_proofs_aggregate: Chain_Link_Proof_Aggregate; creation_time: Scalars['timestamp']; external_address: Scalars['String']; height: Scalars['bigint']; @@ -2405,6 +2359,26 @@ export type Chain_Link = { user_address: Scalars['String']; }; + +/** columns and relationships of "chain_link" */ +export type Chain_LinkChain_Link_ProofsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "chain_link" */ +export type Chain_LinkChain_Link_Proofs_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + /** aggregated selection of "chain_link" */ export type Chain_Link_Aggregate = { __typename?: 'chain_link_aggregate'; @@ -2472,6 +2446,7 @@ export type Chain_Link_Bool_Exp = { _or?: Maybe>; chain_config?: Maybe; chain_config_id?: Maybe; + chain_link_proofs?: Maybe; creation_time?: Maybe; external_address?: Maybe; height?: Maybe; @@ -2675,6 +2650,7 @@ export type Chain_Link_Min_Order_By = { export type Chain_Link_Order_By = { chain_config?: Maybe; chain_config_id?: Maybe; + chain_link_proofs_aggregate?: Maybe; creation_time?: Maybe; external_address?: Maybe; height?: Maybe; @@ -2733,6 +2709,21 @@ export type Chain_Link_Proof_Aggregate_FieldsCountArgs = { distinct?: Maybe; }; +/** order by aggregate values of table "chain_link_proof" */ +export type Chain_Link_Proof_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + /** aggregate avg on columns */ export type Chain_Link_Proof_Avg_Fields = { __typename?: 'chain_link_proof_avg_fields'; @@ -2741,6 +2732,13 @@ export type Chain_Link_Proof_Avg_Fields = { id?: Maybe; }; +/** order by avg() on columns of table "chain_link_proof" */ +export type Chain_Link_Proof_Avg_Order_By = { + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + /** Boolean expression to filter rows from the table "chain_link_proof". All fields are combined with a logical 'AND'. */ export type Chain_Link_Proof_Bool_Exp = { _and?: Maybe>; @@ -2765,6 +2763,15 @@ export type Chain_Link_Proof_Max_Fields = { signature?: Maybe; }; +/** order by max() on columns of table "chain_link_proof" */ +export type Chain_Link_Proof_Max_Order_By = { + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; + plain_text?: Maybe; + signature?: Maybe; +}; + /** aggregate min on columns */ export type Chain_Link_Proof_Min_Fields = { __typename?: 'chain_link_proof_min_fields'; @@ -2775,6 +2782,15 @@ export type Chain_Link_Proof_Min_Fields = { signature?: Maybe; }; +/** order by min() on columns of table "chain_link_proof" */ +export type Chain_Link_Proof_Min_Order_By = { + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; + plain_text?: Maybe; + signature?: Maybe; +}; + /** Ordering options when selecting data from "chain_link_proof". */ export type Chain_Link_Proof_Order_By = { chain_link?: Maybe; @@ -2810,6 +2826,13 @@ export type Chain_Link_Proof_Stddev_Fields = { id?: Maybe; }; +/** order by stddev() on columns of table "chain_link_proof" */ +export type Chain_Link_Proof_Stddev_Order_By = { + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + /** aggregate stddev_pop on columns */ export type Chain_Link_Proof_Stddev_Pop_Fields = { __typename?: 'chain_link_proof_stddev_pop_fields'; @@ -2818,6 +2841,13 @@ export type Chain_Link_Proof_Stddev_Pop_Fields = { id?: Maybe; }; +/** order by stddev_pop() on columns of table "chain_link_proof" */ +export type Chain_Link_Proof_Stddev_Pop_Order_By = { + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + /** aggregate stddev_samp on columns */ export type Chain_Link_Proof_Stddev_Samp_Fields = { __typename?: 'chain_link_proof_stddev_samp_fields'; @@ -2826,6 +2856,13 @@ export type Chain_Link_Proof_Stddev_Samp_Fields = { id?: Maybe; }; +/** order by stddev_samp() on columns of table "chain_link_proof" */ +export type Chain_Link_Proof_Stddev_Samp_Order_By = { + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + /** aggregate sum on columns */ export type Chain_Link_Proof_Sum_Fields = { __typename?: 'chain_link_proof_sum_fields'; @@ -2834,6 +2871,13 @@ export type Chain_Link_Proof_Sum_Fields = { id?: Maybe; }; +/** order by sum() on columns of table "chain_link_proof" */ +export type Chain_Link_Proof_Sum_Order_By = { + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + /** aggregate var_pop on columns */ export type Chain_Link_Proof_Var_Pop_Fields = { __typename?: 'chain_link_proof_var_pop_fields'; @@ -2842,6 +2886,13 @@ export type Chain_Link_Proof_Var_Pop_Fields = { id?: Maybe; }; +/** order by var_pop() on columns of table "chain_link_proof" */ +export type Chain_Link_Proof_Var_Pop_Order_By = { + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + /** aggregate var_samp on columns */ export type Chain_Link_Proof_Var_Samp_Fields = { __typename?: 'chain_link_proof_var_samp_fields'; @@ -2850,6 +2901,13 @@ export type Chain_Link_Proof_Var_Samp_Fields = { id?: Maybe; }; +/** order by var_samp() on columns of table "chain_link_proof" */ +export type Chain_Link_Proof_Var_Samp_Order_By = { + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + /** aggregate variance on columns */ export type Chain_Link_Proof_Variance_Fields = { __typename?: 'chain_link_proof_variance_fields'; @@ -2858,6 +2916,13 @@ export type Chain_Link_Proof_Variance_Fields = { id?: Maybe; }; +/** order by variance() on columns of table "chain_link_proof" */ +export type Chain_Link_Proof_Variance_Order_By = { + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + /** select columns of table "chain_link" */ export enum Chain_Link_Select_Column { /** column name */ @@ -3113,143 +3178,6 @@ export type Community_Pool_Variance_Fields = { height?: Maybe; }; -/** columns and relationships of "consensus" */ -export type Consensus = { - __typename?: 'consensus'; - height: Scalars['bigint']; - round: Scalars['Int']; - step: Scalars['String']; -}; - -/** aggregated selection of "consensus" */ -export type Consensus_Aggregate = { - __typename?: 'consensus_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "consensus" */ -export type Consensus_Aggregate_Fields = { - __typename?: 'consensus_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 "consensus" */ -export type Consensus_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** aggregate avg on columns */ -export type Consensus_Avg_Fields = { - __typename?: 'consensus_avg_fields'; - height?: Maybe; - round?: Maybe; -}; - -/** Boolean expression to filter rows from the table "consensus". All fields are combined with a logical 'AND'. */ -export type Consensus_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - round?: Maybe; - step?: Maybe; -}; - -/** aggregate max on columns */ -export type Consensus_Max_Fields = { - __typename?: 'consensus_max_fields'; - height?: Maybe; - round?: Maybe; - step?: Maybe; -}; - -/** aggregate min on columns */ -export type Consensus_Min_Fields = { - __typename?: 'consensus_min_fields'; - height?: Maybe; - round?: Maybe; - step?: Maybe; -}; - -/** Ordering options when selecting data from "consensus". */ -export type Consensus_Order_By = { - height?: Maybe; - round?: Maybe; - step?: Maybe; -}; - -/** select columns of table "consensus" */ -export enum Consensus_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - Round = 'round', - /** column name */ - Step = 'step' -} - -/** aggregate stddev on columns */ -export type Consensus_Stddev_Fields = { - __typename?: 'consensus_stddev_fields'; - height?: Maybe; - round?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Consensus_Stddev_Pop_Fields = { - __typename?: 'consensus_stddev_pop_fields'; - height?: Maybe; - round?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Consensus_Stddev_Samp_Fields = { - __typename?: 'consensus_stddev_samp_fields'; - height?: Maybe; - round?: Maybe; -}; - -/** aggregate sum on columns */ -export type Consensus_Sum_Fields = { - __typename?: 'consensus_sum_fields'; - height?: Maybe; - round?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Consensus_Var_Pop_Fields = { - __typename?: 'consensus_var_pop_fields'; - height?: Maybe; - round?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Consensus_Var_Samp_Fields = { - __typename?: 'consensus_var_samp_fields'; - height?: Maybe; - round?: Maybe; -}; - -/** aggregate variance on columns */ -export type Consensus_Variance_Fields = { - __typename?: 'consensus_variance_fields'; - height?: Maybe; - round?: Maybe; -}; - /** columns and relationships of "delegation" */ export type Delegation = { __typename?: 'delegation'; @@ -3334,6 +3262,7 @@ export type Delegation_Bool_Exp = { delegator_address?: Maybe; height?: Maybe; id?: Maybe; + is_self_delegate?: Maybe; validator?: Maybe; validator_address?: Maybe; }; @@ -8822,9 +8751,9 @@ export type Proposal_Deposit = { /** An object relationship */ block?: Maybe; /** An object relationship */ - depositor: Account; - depositor_address: Scalars['String']; - height: Scalars['bigint']; + depositor?: Maybe; + depositor_address?: Maybe; + height?: Maybe; /** An object relationship */ proposal: Proposal; proposal_id: Scalars['Int']; @@ -9952,8 +9881,6 @@ export type Proposal_Vote = { __typename?: 'proposal_vote'; /** An object relationship */ account: Account; - /** An object relationship */ - block: Block; height: Scalars['bigint']; option: Scalars['String']; /** An object relationship */ @@ -10026,7 +9953,6 @@ export type Proposal_Vote_Bool_Exp = { _not?: Maybe; _or?: Maybe>; account?: Maybe; - block?: Maybe; height?: Maybe; option?: Maybe; proposal?: Maybe; @@ -10071,7 +9997,6 @@ export type Proposal_Vote_Min_Order_By = { /** Ordering options when selecting data from "proposal_vote". */ export type Proposal_Vote_Order_By = { account?: Maybe; - block?: Maybe; height?: Maybe; option?: Maybe; proposal?: Maybe; @@ -10254,10 +10179,6 @@ export type Query_Root = { community_pool: Array; /** fetch aggregated fields from the table: "community_pool" */ community_pool_aggregate: Community_Pool_Aggregate; - /** fetch data from the table: "consensus" */ - consensus: Array; - /** fetch aggregated fields from the table: "consensus" */ - consensus_aggregate: Consensus_Aggregate; /** fetch data from the table: "delegation" */ delegation: Array; /** fetch aggregated fields from the table: "delegation" */ @@ -10392,8 +10313,6 @@ export type Query_Root = { proposal_deposit: Array; /** fetch aggregated fields from the table: "proposal_deposit" */ proposal_deposit_aggregate: Proposal_Deposit_Aggregate; - /** fetch data from the table: "proposal_deposit" using primary key columns */ - proposal_deposit_by_pk?: Maybe; /** fetch data from the table: "proposal_staking_pool_snapshot" */ proposal_staking_pool_snapshot: Array; /** fetch aggregated fields from the table: "proposal_staking_pool_snapshot" */ @@ -10828,24 +10747,6 @@ export type Query_RootCommunity_Pool_AggregateArgs = { }; -export type Query_RootConsensusArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootConsensus_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - export type Query_RootDelegationArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -11403,13 +11304,6 @@ export type Query_RootProposal_Deposit_AggregateArgs = { }; -export type Query_RootProposal_Deposit_By_PkArgs = { - depositor_address: Scalars['String']; - height: Scalars['bigint']; - proposal_id: Scalars['Int']; -}; - - export type Query_RootProposal_Staking_Pool_SnapshotArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -11452,7 +11346,6 @@ export type Query_RootProposal_Tally_Result_AggregateArgs = { export type Query_RootProposal_Tally_Result_By_PkArgs = { - height: Scalars['bigint']; proposal_id: Scalars['Int']; }; @@ -12940,10 +12833,6 @@ export type Subscription_Root = { community_pool: Array; /** fetch aggregated fields from the table: "community_pool" */ community_pool_aggregate: Community_Pool_Aggregate; - /** fetch data from the table: "consensus" */ - consensus: Array; - /** fetch aggregated fields from the table: "consensus" */ - consensus_aggregate: Consensus_Aggregate; /** fetch data from the table: "delegation" */ delegation: Array; /** fetch aggregated fields from the table: "delegation" */ @@ -13078,8 +12967,6 @@ export type Subscription_Root = { proposal_deposit: Array; /** fetch aggregated fields from the table: "proposal_deposit" */ proposal_deposit_aggregate: Proposal_Deposit_Aggregate; - /** fetch data from the table: "proposal_deposit" using primary key columns */ - proposal_deposit_by_pk?: Maybe; /** fetch data from the table: "proposal_staking_pool_snapshot" */ proposal_staking_pool_snapshot: Array; /** fetch aggregated fields from the table: "proposal_staking_pool_snapshot" */ @@ -13514,24 +13401,6 @@ export type Subscription_RootCommunity_Pool_AggregateArgs = { }; -export type Subscription_RootConsensusArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootConsensus_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - export type Subscription_RootDelegationArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -14089,13 +13958,6 @@ export type Subscription_RootProposal_Deposit_AggregateArgs = { }; -export type Subscription_RootProposal_Deposit_By_PkArgs = { - depositor_address: Scalars['String']; - height: Scalars['bigint']; - proposal_id: Scalars['Int']; -}; - - export type Subscription_RootProposal_Staking_Pool_SnapshotArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -14138,7 +14000,6 @@ export type Subscription_RootProposal_Tally_Result_AggregateArgs = { export type Subscription_RootProposal_Tally_Result_By_PkArgs = { - height: Scalars['bigint']; proposal_id: Scalars['Int']; }; @@ -17124,6 +16985,7 @@ export type Validator_Bool_Exp = { proposal_validator_status_snapshots?: Maybe; redelegationsByDstValidatorAddress?: Maybe; redelegationsBySrcValidatorAddress?: Maybe; + self_delegations?: Maybe; unbonding_delegations?: Maybe; validator_commission_amounts?: Maybe; validator_commissions?: Maybe; @@ -18610,6 +18472,8 @@ export type Validator_Status_Variance_Order_By = { /** 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; @@ -18680,6 +18544,7 @@ export type Validator_Voting_Power_Bool_Exp = { _and?: Maybe>; _not?: Maybe; _or?: Maybe>; + block?: Maybe; height?: Maybe; validator?: Maybe; validator_address?: Maybe; @@ -18718,6 +18583,7 @@ export type Validator_Voting_Power_Min_Order_By = { /** Ordering options when selecting data from "validator_voting_power". */ export type Validator_Voting_Power_Order_By = { + block?: Maybe; height?: Maybe; validator?: Maybe; validator_address?: Maybe; diff --git a/src/graphql/types.tsx b/src/graphql/types.tsx index 4423ab6b31..0f52aa6ab2 100644 --- a/src/graphql/types.tsx +++ b/src/graphql/types.tsx @@ -195,6 +195,10 @@ export type Account = { validator_infos_aggregate: Validator_Info_Aggregate; /** An object relationship */ vesting_account?: Maybe; + /** An array relationship */ + vesting_accounts: Array; + /** An aggregate relationship */ + vesting_accounts_aggregate: Vesting_Account_Aggregate; }; @@ -277,6 +281,26 @@ export type AccountValidator_Infos_AggregateArgs = { where?: Maybe; }; + +/** columns and relationships of "account" */ +export type AccountVesting_AccountsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountVesting_Accounts_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + /** aggregated selection of "account" */ export type Account_Aggregate = { __typename?: 'account_aggregate'; @@ -310,6 +334,7 @@ export type Account_Bool_Exp = { proposals?: Maybe; validator_infos?: Maybe; vesting_account?: Maybe; + vesting_accounts?: Maybe; }; /** aggregate max on columns */ @@ -332,6 +357,7 @@ export type Account_Order_By = { proposals_aggregate?: Maybe; validator_infos_aggregate?: Maybe; vesting_account?: Maybe; + vesting_accounts_aggregate?: Maybe; }; /** select columns of table "account" */ @@ -2065,169 +2091,6 @@ export type Double_Sign_Vote_Variance_Order_By = { validator_index?: Maybe; }; -/** 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']; - id: Scalars['Int']; -}; - - -/** columns and relationships of "fee_grant_allowance" */ -export type Fee_Grant_AllowanceAllowanceArgs = { - path?: Maybe; -}; - -/** aggregated selection of "fee_grant_allowance" */ -export type Fee_Grant_Allowance_Aggregate = { - __typename?: 'fee_grant_allowance_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "fee_grant_allowance" */ -export type Fee_Grant_Allowance_Aggregate_Fields = { - __typename?: 'fee_grant_allowance_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 "fee_grant_allowance" */ -export type Fee_Grant_Allowance_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** aggregate avg on columns */ -export type Fee_Grant_Allowance_Avg_Fields = { - __typename?: 'fee_grant_allowance_avg_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - allowance?: Maybe; - grantee?: Maybe; - grantee_address?: Maybe; - granter?: Maybe; - granter_address?: Maybe; - height?: Maybe; - id?: Maybe; -}; - -/** aggregate max on columns */ -export type Fee_Grant_Allowance_Max_Fields = { - __typename?: 'fee_grant_allowance_max_fields'; - grantee_address?: Maybe; - granter_address?: Maybe; - height?: Maybe; - id?: Maybe; -}; - -/** aggregate min on columns */ -export type Fee_Grant_Allowance_Min_Fields = { - __typename?: 'fee_grant_allowance_min_fields'; - grantee_address?: Maybe; - granter_address?: Maybe; - height?: Maybe; - id?: Maybe; -}; - -/** Ordering options when selecting data from "fee_grant_allowance". */ -export type Fee_Grant_Allowance_Order_By = { - allowance?: Maybe; - grantee?: Maybe; - grantee_address?: Maybe; - granter?: Maybe; - granter_address?: Maybe; - height?: Maybe; - id?: Maybe; -}; - -/** 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', - /** column name */ - Id = 'id' -} - -/** aggregate stddev on columns */ -export type Fee_Grant_Allowance_Stddev_Fields = { - __typename?: 'fee_grant_allowance_stddev_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Fee_Grant_Allowance_Stddev_Pop_Fields = { - __typename?: 'fee_grant_allowance_stddev_pop_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Fee_Grant_Allowance_Stddev_Samp_Fields = { - __typename?: 'fee_grant_allowance_stddev_samp_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** aggregate sum on columns */ -export type Fee_Grant_Allowance_Sum_Fields = { - __typename?: 'fee_grant_allowance_sum_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Fee_Grant_Allowance_Var_Pop_Fields = { - __typename?: 'fee_grant_allowance_var_pop_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Fee_Grant_Allowance_Var_Samp_Fields = { - __typename?: 'fee_grant_allowance_var_samp_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** aggregate variance on columns */ -export type Fee_Grant_Allowance_Variance_Fields = { - __typename?: 'fee_grant_allowance_variance_fields'; - height?: Maybe; - id?: Maybe; -}; - /** columns and relationships of "genesis" */ export type Genesis = { __typename?: 'genesis'; @@ -2668,9 +2531,10 @@ export type Jsonb_Comparison_Exp = { export type Message = { __typename?: 'message'; index: Scalars['bigint']; - involved_accounts_addresses?: Maybe; + involved_accounts_addresses: Scalars['_text']; + partition_id?: Maybe; /** An object relationship */ - transaction: Transaction; + transaction?: Maybe; transaction_hash: Scalars['String']; type: Scalars['String']; value: Scalars['jsonb']; @@ -2731,11 +2595,13 @@ export type Message_Aggregate_Order_By = { export type Message_Avg_Fields = { __typename?: 'message_avg_fields'; index?: Maybe; + partition_id?: Maybe; }; /** order by avg() on columns of table "message" */ export type Message_Avg_Order_By = { index?: Maybe; + partition_id?: Maybe; }; /** Boolean expression to filter rows from the table "message". All fields are combined with a logical 'AND'. */ @@ -2745,6 +2611,7 @@ export type Message_Bool_Exp = { _or?: Maybe>; index?: Maybe; involved_accounts_addresses?: Maybe<_Text_Comparison_Exp>; + partition_id?: Maybe; transaction?: Maybe; transaction_hash?: Maybe; type?: Maybe; @@ -2755,6 +2622,7 @@ export type Message_Bool_Exp = { export type Message_Max_Fields = { __typename?: 'message_max_fields'; index?: Maybe; + partition_id?: Maybe; transaction_hash?: Maybe; type?: Maybe; }; @@ -2762,6 +2630,7 @@ export type Message_Max_Fields = { /** order by max() on columns of table "message" */ export type Message_Max_Order_By = { index?: Maybe; + partition_id?: Maybe; transaction_hash?: Maybe; type?: Maybe; }; @@ -2770,6 +2639,7 @@ export type Message_Max_Order_By = { export type Message_Min_Fields = { __typename?: 'message_min_fields'; index?: Maybe; + partition_id?: Maybe; transaction_hash?: Maybe; type?: Maybe; }; @@ -2777,14 +2647,191 @@ export type Message_Min_Fields = { /** order by min() on columns of table "message" */ export type Message_Min_Order_By = { index?: Maybe; + partition_id?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; +}; + +/** columns and relationships of "message_new" */ +export type Message_New = { + __typename?: 'message_new'; + height: Scalars['bigint']; + index: Scalars['bigint']; + involved_accounts_addresses: Scalars['_text']; + partition_id: Scalars['bigint']; + transaction_hash: Scalars['String']; + type: Scalars['String']; + value: Scalars['jsonb']; +}; + + +/** columns and relationships of "message_new" */ +export type Message_NewValueArgs = { + path?: Maybe; +}; + +/** aggregated selection of "message_new" */ +export type Message_New_Aggregate = { + __typename?: 'message_new_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "message_new" */ +export type Message_New_Aggregate_Fields = { + __typename?: 'message_new_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 "message_new" */ +export type Message_New_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Message_New_Avg_Fields = { + __typename?: 'message_new_avg_fields'; + height?: Maybe; + index?: Maybe; + partition_id?: Maybe; +}; + +/** Boolean expression to filter rows from the table "message_new". All fields are combined with a logical 'AND'. */ +export type Message_New_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + height?: Maybe; + index?: Maybe; + involved_accounts_addresses?: Maybe<_Text_Comparison_Exp>; + partition_id?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; + value?: Maybe; +}; + +/** aggregate max on columns */ +export type Message_New_Max_Fields = { + __typename?: 'message_new_max_fields'; + height?: Maybe; + index?: Maybe; + partition_id?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; +}; + +/** aggregate min on columns */ +export type Message_New_Min_Fields = { + __typename?: 'message_new_min_fields'; + height?: Maybe; + index?: Maybe; + partition_id?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; +}; + +/** Ordering options when selecting data from "message_new". */ +export type Message_New_Order_By = { + height?: Maybe; + index?: Maybe; + involved_accounts_addresses?: Maybe; + partition_id?: Maybe; transaction_hash?: Maybe; type?: Maybe; + value?: Maybe; +}; + +/** select columns of table "message_new" */ +export enum Message_New_Select_Column { + /** column name */ + Height = 'height', + /** column name */ + Index = 'index', + /** column name */ + InvolvedAccountsAddresses = 'involved_accounts_addresses', + /** column name */ + PartitionId = 'partition_id', + /** column name */ + TransactionHash = 'transaction_hash', + /** column name */ + Type = 'type', + /** column name */ + Value = 'value' +} + +/** aggregate stddev on columns */ +export type Message_New_Stddev_Fields = { + __typename?: 'message_new_stddev_fields'; + height?: Maybe; + index?: Maybe; + partition_id?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Message_New_Stddev_Pop_Fields = { + __typename?: 'message_new_stddev_pop_fields'; + height?: Maybe; + index?: Maybe; + partition_id?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Message_New_Stddev_Samp_Fields = { + __typename?: 'message_new_stddev_samp_fields'; + height?: Maybe; + index?: Maybe; + partition_id?: Maybe; +}; + +/** aggregate sum on columns */ +export type Message_New_Sum_Fields = { + __typename?: 'message_new_sum_fields'; + height?: Maybe; + index?: Maybe; + partition_id?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Message_New_Var_Pop_Fields = { + __typename?: 'message_new_var_pop_fields'; + height?: Maybe; + index?: Maybe; + partition_id?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Message_New_Var_Samp_Fields = { + __typename?: 'message_new_var_samp_fields'; + height?: Maybe; + index?: Maybe; + partition_id?: Maybe; +}; + +/** aggregate variance on columns */ +export type Message_New_Variance_Fields = { + __typename?: 'message_new_variance_fields'; + height?: Maybe; + index?: Maybe; + partition_id?: Maybe; }; /** Ordering options when selecting data from "message". */ export type Message_Order_By = { index?: Maybe; involved_accounts_addresses?: Maybe; + partition_id?: Maybe; transaction?: Maybe; transaction_hash?: Maybe; type?: Maybe; @@ -2798,6 +2845,8 @@ export enum Message_Select_Column { /** column name */ InvolvedAccountsAddresses = 'involved_accounts_addresses', /** column name */ + PartitionId = 'partition_id', + /** column name */ TransactionHash = 'transaction_hash', /** column name */ Type = 'type', @@ -2809,77 +2858,91 @@ export enum Message_Select_Column { export type Message_Stddev_Fields = { __typename?: 'message_stddev_fields'; index?: Maybe; + partition_id?: Maybe; }; /** order by stddev() on columns of table "message" */ export type Message_Stddev_Order_By = { index?: Maybe; + partition_id?: Maybe; }; /** aggregate stddev_pop on columns */ export type Message_Stddev_Pop_Fields = { __typename?: 'message_stddev_pop_fields'; index?: Maybe; + partition_id?: Maybe; }; /** order by stddev_pop() on columns of table "message" */ export type Message_Stddev_Pop_Order_By = { index?: Maybe; + partition_id?: Maybe; }; /** aggregate stddev_samp on columns */ export type Message_Stddev_Samp_Fields = { __typename?: 'message_stddev_samp_fields'; index?: Maybe; + partition_id?: Maybe; }; /** order by stddev_samp() on columns of table "message" */ export type Message_Stddev_Samp_Order_By = { index?: Maybe; + partition_id?: Maybe; }; /** aggregate sum on columns */ export type Message_Sum_Fields = { __typename?: 'message_sum_fields'; index?: Maybe; + partition_id?: Maybe; }; /** order by sum() on columns of table "message" */ export type Message_Sum_Order_By = { index?: Maybe; + partition_id?: Maybe; }; /** aggregate var_pop on columns */ export type Message_Var_Pop_Fields = { __typename?: 'message_var_pop_fields'; index?: Maybe; + partition_id?: Maybe; }; /** order by var_pop() on columns of table "message" */ export type Message_Var_Pop_Order_By = { index?: Maybe; + partition_id?: Maybe; }; /** aggregate var_samp on columns */ export type Message_Var_Samp_Fields = { __typename?: 'message_var_samp_fields'; index?: Maybe; + partition_id?: Maybe; }; /** order by var_samp() on columns of table "message" */ export type Message_Var_Samp_Order_By = { index?: Maybe; + partition_id?: Maybe; }; /** aggregate variance on columns */ export type Message_Variance_Fields = { __typename?: 'message_variance_fields'; index?: Maybe; + partition_id?: Maybe; }; /** order by variance() on columns of table "message" */ export type Message_Variance_Order_By = { index?: Maybe; + partition_id?: Maybe; }; export type Messages_By_Address_Args = { @@ -3361,179 +3424,48 @@ export type Pre_Commit_Variance_Order_By = { voting_power?: Maybe; }; -/** columns and relationships of "profiles_params" */ -export type Profiles_Params = { - __typename?: 'profiles_params'; - height: Scalars['bigint']; - one_row_id: Scalars['Boolean']; - params: Scalars['jsonb']; +/** columns and relationships of "proposal" */ +export type Proposal = { + __typename?: 'proposal'; + content: Scalars['jsonb']; + deposit_end_time?: Maybe; + description: Scalars['String']; + id: Scalars['Int']; + /** An array relationship */ + proposal_deposits: Array; + /** An aggregate relationship */ + proposal_deposits_aggregate: Proposal_Deposit_Aggregate; + proposal_route: Scalars['String']; + /** An object relationship */ + proposal_tally_result?: Maybe; + /** An array relationship */ + proposal_tally_results: Array; + /** An aggregate relationship */ + proposal_tally_results_aggregate: Proposal_Tally_Result_Aggregate; + proposal_type: Scalars['String']; + /** An array relationship */ + proposal_votes: Array; + /** An aggregate relationship */ + proposal_votes_aggregate: Proposal_Vote_Aggregate; + /** 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; + /** An aggregate relationship */ + validator_status_snapshots_aggregate: Proposal_Validator_Status_Snapshot_Aggregate; + voting_end_time?: Maybe; + voting_start_time?: Maybe; }; -/** columns and relationships of "profiles_params" */ -export type Profiles_ParamsParamsArgs = { - path?: Maybe; -}; - -/** aggregated selection of "profiles_params" */ -export type Profiles_Params_Aggregate = { - __typename?: 'profiles_params_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "profiles_params" */ -export type Profiles_Params_Aggregate_Fields = { - __typename?: 'profiles_params_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 "profiles_params" */ -export type Profiles_Params_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** aggregate avg on columns */ -export type Profiles_Params_Avg_Fields = { - __typename?: 'profiles_params_avg_fields'; - height?: Maybe; -}; - -/** Boolean expression to filter rows from the table "profiles_params". All fields are combined with a logical 'AND'. */ -export type Profiles_Params_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; -}; - -/** aggregate max on columns */ -export type Profiles_Params_Max_Fields = { - __typename?: 'profiles_params_max_fields'; - height?: Maybe; -}; - -/** aggregate min on columns */ -export type Profiles_Params_Min_Fields = { - __typename?: 'profiles_params_min_fields'; - height?: Maybe; -}; - -/** Ordering options when selecting data from "profiles_params". */ -export type Profiles_Params_Order_By = { - height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; -}; - -/** select columns of table "profiles_params" */ -export enum Profiles_Params_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - OneRowId = 'one_row_id', - /** column name */ - Params = 'params' -} - -/** aggregate stddev on columns */ -export type Profiles_Params_Stddev_Fields = { - __typename?: 'profiles_params_stddev_fields'; - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Profiles_Params_Stddev_Pop_Fields = { - __typename?: 'profiles_params_stddev_pop_fields'; - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Profiles_Params_Stddev_Samp_Fields = { - __typename?: 'profiles_params_stddev_samp_fields'; - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Profiles_Params_Sum_Fields = { - __typename?: 'profiles_params_sum_fields'; - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Profiles_Params_Var_Pop_Fields = { - __typename?: 'profiles_params_var_pop_fields'; - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Profiles_Params_Var_Samp_Fields = { - __typename?: 'profiles_params_var_samp_fields'; - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Profiles_Params_Variance_Fields = { - __typename?: 'profiles_params_variance_fields'; - height?: Maybe; -}; - -/** columns and relationships of "proposal" */ -export type Proposal = { - __typename?: 'proposal'; - content: Scalars['jsonb']; - deposit_end_time?: Maybe; - description: Scalars['String']; - id: Scalars['Int']; - /** An array relationship */ - proposal_deposits: Array; - /** An aggregate relationship */ - proposal_deposits_aggregate: Proposal_Deposit_Aggregate; - proposal_route: Scalars['String']; - /** An object relationship */ - proposal_tally_result?: Maybe; - /** An array relationship */ - proposal_tally_results: Array; - /** An aggregate relationship */ - proposal_tally_results_aggregate: Proposal_Tally_Result_Aggregate; - proposal_type: Scalars['String']; - /** An array relationship */ - proposal_votes: Array; - /** An aggregate relationship */ - proposal_votes_aggregate: Proposal_Vote_Aggregate; - /** 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; - /** An aggregate relationship */ - validator_status_snapshots_aggregate: Proposal_Validator_Status_Snapshot_Aggregate; - voting_end_time?: Maybe; - voting_start_time?: Maybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalContentArgs = { +/** columns and relationships of "proposal" */ +export type ProposalContentArgs = { path?: Maybe; }; @@ -4046,9 +3978,9 @@ export enum Proposal_Select_Column { /** columns and relationships of "proposal_staking_pool_snapshot" */ export type Proposal_Staking_Pool_Snapshot = { __typename?: 'proposal_staking_pool_snapshot'; - bonded_tokens: Scalars['bigint']; + bonded_tokens: Scalars['String']; height: Scalars['bigint']; - not_bonded_tokens: Scalars['bigint']; + not_bonded_tokens: Scalars['String']; /** An object relationship */ proposal: Proposal; proposal_id: Scalars['Int']; @@ -4087,9 +4019,7 @@ export type Proposal_Staking_Pool_Snapshot_Aggregate_FieldsCountArgs = { /** aggregate avg on columns */ export type Proposal_Staking_Pool_Snapshot_Avg_Fields = { __typename?: 'proposal_staking_pool_snapshot_avg_fields'; - bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; proposal_id?: Maybe; }; @@ -4098,9 +4028,9 @@ export type Proposal_Staking_Pool_Snapshot_Bool_Exp = { _and?: Maybe>; _not?: Maybe; _or?: Maybe>; - bonded_tokens?: Maybe; + bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; + not_bonded_tokens?: Maybe; proposal?: Maybe; proposal_id?: Maybe; }; @@ -4108,18 +4038,18 @@ export type Proposal_Staking_Pool_Snapshot_Bool_Exp = { /** aggregate max on columns */ export type Proposal_Staking_Pool_Snapshot_Max_Fields = { __typename?: 'proposal_staking_pool_snapshot_max_fields'; - bonded_tokens?: Maybe; + bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; + not_bonded_tokens?: Maybe; proposal_id?: Maybe; }; /** aggregate min on columns */ export type Proposal_Staking_Pool_Snapshot_Min_Fields = { __typename?: 'proposal_staking_pool_snapshot_min_fields'; - bonded_tokens?: Maybe; + bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; + not_bonded_tokens?: Maybe; proposal_id?: Maybe; }; @@ -4147,63 +4077,49 @@ export enum Proposal_Staking_Pool_Snapshot_Select_Column { /** aggregate stddev on columns */ export type Proposal_Staking_Pool_Snapshot_Stddev_Fields = { __typename?: 'proposal_staking_pool_snapshot_stddev_fields'; - bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; proposal_id?: Maybe; }; /** aggregate stddev_pop on columns */ export type Proposal_Staking_Pool_Snapshot_Stddev_Pop_Fields = { __typename?: 'proposal_staking_pool_snapshot_stddev_pop_fields'; - bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; proposal_id?: Maybe; }; /** aggregate stddev_samp on columns */ export type Proposal_Staking_Pool_Snapshot_Stddev_Samp_Fields = { __typename?: 'proposal_staking_pool_snapshot_stddev_samp_fields'; - bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; proposal_id?: Maybe; }; /** aggregate sum on columns */ export type Proposal_Staking_Pool_Snapshot_Sum_Fields = { __typename?: 'proposal_staking_pool_snapshot_sum_fields'; - bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; proposal_id?: Maybe; }; /** aggregate var_pop on columns */ export type Proposal_Staking_Pool_Snapshot_Var_Pop_Fields = { __typename?: 'proposal_staking_pool_snapshot_var_pop_fields'; - bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; proposal_id?: Maybe; }; /** aggregate var_samp on columns */ export type Proposal_Staking_Pool_Snapshot_Var_Samp_Fields = { __typename?: 'proposal_staking_pool_snapshot_var_samp_fields'; - bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; proposal_id?: Maybe; }; /** aggregate variance on columns */ export type Proposal_Staking_Pool_Snapshot_Variance_Fields = { __typename?: 'proposal_staking_pool_snapshot_variance_fields'; - bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; proposal_id?: Maybe; }; @@ -5124,12 +5040,6 @@ export type Query_Root = { double_sign_vote_aggregate: Double_Sign_Vote_Aggregate; /** fetch data from the table: "double_sign_vote" using primary key columns */ double_sign_vote_by_pk?: Maybe; - /** fetch data from the table: "fee_grant_allowance" */ - fee_grant_allowance: Array; - /** fetch aggregated fields from the table: "fee_grant_allowance" */ - fee_grant_allowance_aggregate: Fee_Grant_Allowance_Aggregate; - /** fetch data from the table: "fee_grant_allowance" using primary key columns */ - fee_grant_allowance_by_pk?: Maybe; /** fetch data from the table: "genesis" */ genesis: Array; /** fetch aggregated fields from the table: "genesis" */ @@ -5148,6 +5058,12 @@ export type Query_Root = { message: Array; /** fetch aggregated fields from the table: "message" */ message_aggregate: Message_Aggregate; + /** fetch data from the table: "message_new" */ + message_new: Array; + /** fetch aggregated fields from the table: "message_new" */ + message_new_aggregate: Message_New_Aggregate; + /** fetch data from the table: "message_new" using primary key columns */ + message_new_by_pk?: Maybe; /** execute function "messages_by_address" which returns "message" */ messages_by_address: Array; /** execute function "messages_by_address" and query aggregates on result of table type "message" */ @@ -5168,12 +5084,6 @@ export type Query_Root = { pre_commit: Array; /** fetch aggregated fields from the table: "pre_commit" */ pre_commit_aggregate: Pre_Commit_Aggregate; - /** fetch data from the table: "profiles_params" */ - profiles_params: Array; - /** fetch aggregated fields from the table: "profiles_params" */ - profiles_params_aggregate: Profiles_Params_Aggregate; - /** fetch data from the table: "profiles_params" using primary key columns */ - profiles_params_by_pk?: Maybe; /** fetch data from the table: "proposal" */ proposal: Array; /** fetch aggregated fields from the table: "proposal" */ @@ -5250,6 +5160,12 @@ export type Query_Root = { transaction_aggregate: Transaction_Aggregate; /** fetch data from the table: "transaction" using primary key columns */ transaction_by_pk?: Maybe; + /** fetch data from the table: "transaction_new" */ + transaction_new: Array; + /** fetch aggregated fields from the table: "transaction_new" */ + transaction_new_aggregate: Transaction_New_Aggregate; + /** fetch data from the table: "transaction_new" using primary key columns */ + transaction_new_by_pk?: Maybe; /** fetch data from the table: "validator" */ validator: Array; /** fetch aggregated fields from the table: "validator" */ @@ -5591,29 +5507,6 @@ export type Query_RootDouble_Sign_Vote_By_PkArgs = { }; -export type Query_RootFee_Grant_AllowanceArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootFee_Grant_Allowance_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootFee_Grant_Allowance_By_PkArgs = { - id: Scalars['Int']; -}; - - export type Query_RootGenesisArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -5691,6 +5584,32 @@ export type Query_RootMessage_AggregateArgs = { }; +export type Query_RootMessage_NewArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootMessage_New_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootMessage_New_By_PkArgs = { + height: Scalars['bigint']; + index: Scalars['bigint']; + partition_id: Scalars['bigint']; + transaction_hash: Scalars['String']; +}; + + export type Query_RootMessages_By_AddressArgs = { args: Messages_By_Address_Args; distinct_on?: Maybe>; @@ -5775,29 +5694,6 @@ export type Query_RootPre_Commit_AggregateArgs = { }; -export type Query_RootProfiles_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProfiles_Params_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProfiles_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - export type Query_RootProposalArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -6104,7 +6000,31 @@ export type Query_RootTransaction_AggregateArgs = { export type Query_RootTransaction_By_PkArgs = { + partition_id: Scalars['bigint']; +}; + + +export type Query_RootTransaction_NewArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootTransaction_New_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootTransaction_New_By_PkArgs = { hash: Scalars['String']; + partition_id: Scalars['bigint']; }; @@ -6588,9 +6508,9 @@ export type Staking_Params_Variance_Fields = { /** columns and relationships of "staking_pool" */ export type Staking_Pool = { __typename?: 'staking_pool'; - bonded_tokens: Scalars['bigint']; + bonded_tokens: Scalars['String']; height: Scalars['bigint']; - not_bonded_tokens: Scalars['bigint']; + not_bonded_tokens: Scalars['String']; }; /** aggregated selection of "staking_pool" */ @@ -6626,9 +6546,7 @@ export type Staking_Pool_Aggregate_FieldsCountArgs = { /** aggregate avg on columns */ export type Staking_Pool_Avg_Fields = { __typename?: 'staking_pool_avg_fields'; - bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; }; /** Boolean expression to filter rows from the table "staking_pool". All fields are combined with a logical 'AND'. */ @@ -6636,25 +6554,25 @@ export type Staking_Pool_Bool_Exp = { _and?: Maybe>; _not?: Maybe; _or?: Maybe>; - bonded_tokens?: Maybe; + bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; + not_bonded_tokens?: Maybe; }; /** aggregate max on columns */ export type Staking_Pool_Max_Fields = { __typename?: 'staking_pool_max_fields'; - bonded_tokens?: Maybe; + bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; + not_bonded_tokens?: Maybe; }; /** aggregate min on columns */ export type Staking_Pool_Min_Fields = { __typename?: 'staking_pool_min_fields'; - bonded_tokens?: Maybe; + bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; + not_bonded_tokens?: Maybe; }; /** Ordering options when selecting data from "staking_pool". */ @@ -6677,57 +6595,43 @@ export enum Staking_Pool_Select_Column { /** aggregate stddev on columns */ export type Staking_Pool_Stddev_Fields = { __typename?: 'staking_pool_stddev_fields'; - bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; }; /** aggregate stddev_pop on columns */ export type Staking_Pool_Stddev_Pop_Fields = { __typename?: 'staking_pool_stddev_pop_fields'; - bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; }; /** aggregate stddev_samp on columns */ export type Staking_Pool_Stddev_Samp_Fields = { __typename?: 'staking_pool_stddev_samp_fields'; - bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; }; /** aggregate sum on columns */ export type Staking_Pool_Sum_Fields = { __typename?: 'staking_pool_sum_fields'; - bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; }; /** aggregate var_pop on columns */ export type Staking_Pool_Var_Pop_Fields = { __typename?: 'staking_pool_var_pop_fields'; - bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; }; /** aggregate var_samp on columns */ export type Staking_Pool_Var_Samp_Fields = { __typename?: 'staking_pool_var_samp_fields'; - bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; }; /** aggregate variance on columns */ export type Staking_Pool_Variance_Fields = { __typename?: 'staking_pool_variance_fields'; - bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; }; export type Subscription_Root = { @@ -6780,12 +6684,6 @@ export type Subscription_Root = { double_sign_vote_aggregate: Double_Sign_Vote_Aggregate; /** fetch data from the table: "double_sign_vote" using primary key columns */ double_sign_vote_by_pk?: Maybe; - /** fetch data from the table: "fee_grant_allowance" */ - fee_grant_allowance: Array; - /** fetch aggregated fields from the table: "fee_grant_allowance" */ - fee_grant_allowance_aggregate: Fee_Grant_Allowance_Aggregate; - /** fetch data from the table: "fee_grant_allowance" using primary key columns */ - fee_grant_allowance_by_pk?: Maybe; /** fetch data from the table: "genesis" */ genesis: Array; /** fetch aggregated fields from the table: "genesis" */ @@ -6804,6 +6702,12 @@ export type Subscription_Root = { message: Array; /** fetch aggregated fields from the table: "message" */ message_aggregate: Message_Aggregate; + /** fetch data from the table: "message_new" */ + message_new: Array; + /** fetch aggregated fields from the table: "message_new" */ + message_new_aggregate: Message_New_Aggregate; + /** fetch data from the table: "message_new" using primary key columns */ + message_new_by_pk?: Maybe; /** execute function "messages_by_address" which returns "message" */ messages_by_address: Array; /** execute function "messages_by_address" and query aggregates on result of table type "message" */ @@ -6824,12 +6728,6 @@ export type Subscription_Root = { pre_commit: Array; /** fetch aggregated fields from the table: "pre_commit" */ pre_commit_aggregate: Pre_Commit_Aggregate; - /** fetch data from the table: "profiles_params" */ - profiles_params: Array; - /** fetch aggregated fields from the table: "profiles_params" */ - profiles_params_aggregate: Profiles_Params_Aggregate; - /** fetch data from the table: "profiles_params" using primary key columns */ - profiles_params_by_pk?: Maybe; /** fetch data from the table: "proposal" */ proposal: Array; /** fetch aggregated fields from the table: "proposal" */ @@ -6906,6 +6804,12 @@ export type Subscription_Root = { transaction_aggregate: Transaction_Aggregate; /** fetch data from the table: "transaction" using primary key columns */ transaction_by_pk?: Maybe; + /** fetch data from the table: "transaction_new" */ + transaction_new: Array; + /** fetch aggregated fields from the table: "transaction_new" */ + transaction_new_aggregate: Transaction_New_Aggregate; + /** fetch data from the table: "transaction_new" using primary key columns */ + transaction_new_by_pk?: Maybe; /** fetch data from the table: "validator" */ validator: Array; /** fetch aggregated fields from the table: "validator" */ @@ -7161,29 +7065,6 @@ export type Subscription_RootDouble_Sign_Vote_By_PkArgs = { }; -export type Subscription_RootFee_Grant_AllowanceArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootFee_Grant_Allowance_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootFee_Grant_Allowance_By_PkArgs = { - id: Scalars['Int']; -}; - - export type Subscription_RootGenesisArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -7261,6 +7142,32 @@ export type Subscription_RootMessage_AggregateArgs = { }; +export type Subscription_RootMessage_NewArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootMessage_New_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootMessage_New_By_PkArgs = { + height: Scalars['bigint']; + index: Scalars['bigint']; + partition_id: Scalars['bigint']; + transaction_hash: Scalars['String']; +}; + + export type Subscription_RootMessages_By_AddressArgs = { args: Messages_By_Address_Args; distinct_on?: Maybe>; @@ -7345,29 +7252,6 @@ export type Subscription_RootPre_Commit_AggregateArgs = { }; -export type Subscription_RootProfiles_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProfiles_Params_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProfiles_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - export type Subscription_RootProposalArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -7674,7 +7558,31 @@ export type Subscription_RootTransaction_AggregateArgs = { export type Subscription_RootTransaction_By_PkArgs = { + partition_id: Scalars['bigint']; +}; + + +export type Subscription_RootTransaction_NewArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootTransaction_New_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootTransaction_New_By_PkArgs = { hash: Scalars['String']; + partition_id: Scalars['bigint']; }; @@ -8866,6 +8774,7 @@ export type Transaction = { messagesByTransactionHash: Array; /** An aggregate relationship */ messagesByTransactionHash_aggregate: Message_Aggregate; + partition_id: Scalars['bigint']; raw_log?: Maybe; signatures: Scalars['_text']; signer_infos: Scalars['jsonb']; @@ -8967,6 +8876,7 @@ export type Transaction_Avg_Fields = { gas_used?: Maybe; gas_wanted?: Maybe; height?: Maybe; + partition_id?: Maybe; }; /** order by avg() on columns of table "transaction" */ @@ -8974,6 +8884,7 @@ export type Transaction_Avg_Order_By = { gas_used?: Maybe; gas_wanted?: Maybe; height?: Maybe; + partition_id?: Maybe; }; /** Boolean expression to filter rows from the table "transaction". All fields are combined with a logical 'AND'. */ @@ -8991,6 +8902,7 @@ export type Transaction_Bool_Exp = { memo?: Maybe; messages?: Maybe; messagesByTransactionHash?: Maybe; + partition_id?: Maybe; raw_log?: Maybe; signatures?: Maybe<_Text_Comparison_Exp>; signer_infos?: Maybe; @@ -9005,6 +8917,7 @@ export type Transaction_Max_Fields = { hash?: Maybe; height?: Maybe; memo?: Maybe; + partition_id?: Maybe; raw_log?: Maybe; }; @@ -9015,6 +8928,7 @@ export type Transaction_Max_Order_By = { hash?: Maybe; height?: Maybe; memo?: Maybe; + partition_id?: Maybe; raw_log?: Maybe; }; @@ -9026,6 +8940,7 @@ export type Transaction_Min_Fields = { hash?: Maybe; height?: Maybe; memo?: Maybe; + partition_id?: Maybe; raw_log?: Maybe; }; @@ -9036,32 +8951,269 @@ export type Transaction_Min_Order_By = { hash?: Maybe; height?: Maybe; memo?: Maybe; + partition_id?: Maybe; raw_log?: Maybe; }; -/** Ordering options when selecting data from "transaction". */ -export type Transaction_Order_By = { - block?: Maybe; - fee?: Maybe; - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; - height?: Maybe; - logs?: Maybe; - memo?: Maybe; - messages?: Maybe; - messagesByTransactionHash_aggregate?: Maybe; - raw_log?: Maybe; - signatures?: Maybe; - signer_infos?: Maybe; - success?: Maybe; +/** columns and relationships of "transaction_new" */ +export type Transaction_New = { + __typename?: 'transaction_new'; + fee: Scalars['jsonb']; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash: Scalars['String']; + height: Scalars['bigint']; + logs?: Maybe; + memo?: Maybe; + messages: Scalars['jsonb']; + partition_id: Scalars['bigint']; + raw_log?: Maybe; + signatures: Scalars['_text']; + signer_infos: Scalars['jsonb']; + success: Scalars['Boolean']; }; -/** select columns of table "transaction" */ -export enum Transaction_Select_Column { - /** column name */ - Fee = 'fee', - /** column name */ + +/** columns and relationships of "transaction_new" */ +export type Transaction_NewFeeArgs = { + path?: Maybe; +}; + + +/** columns and relationships of "transaction_new" */ +export type Transaction_NewLogsArgs = { + path?: Maybe; +}; + + +/** columns and relationships of "transaction_new" */ +export type Transaction_NewMessagesArgs = { + path?: Maybe; +}; + + +/** columns and relationships of "transaction_new" */ +export type Transaction_NewSigner_InfosArgs = { + path?: Maybe; +}; + +/** aggregated selection of "transaction_new" */ +export type Transaction_New_Aggregate = { + __typename?: 'transaction_new_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "transaction_new" */ +export type Transaction_New_Aggregate_Fields = { + __typename?: 'transaction_new_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 "transaction_new" */ +export type Transaction_New_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Transaction_New_Avg_Fields = { + __typename?: 'transaction_new_avg_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + partition_id?: Maybe; +}; + +/** Boolean expression to filter rows from the table "transaction_new". All fields are combined with a logical 'AND'. */ +export type Transaction_New_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + fee?: Maybe; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + logs?: Maybe; + memo?: Maybe; + messages?: Maybe; + partition_id?: Maybe; + raw_log?: Maybe; + signatures?: Maybe<_Text_Comparison_Exp>; + signer_infos?: Maybe; + success?: Maybe; +}; + +/** aggregate max on columns */ +export type Transaction_New_Max_Fields = { + __typename?: 'transaction_new_max_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + memo?: Maybe; + partition_id?: Maybe; + raw_log?: Maybe; +}; + +/** aggregate min on columns */ +export type Transaction_New_Min_Fields = { + __typename?: 'transaction_new_min_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + memo?: Maybe; + partition_id?: Maybe; + raw_log?: Maybe; +}; + +/** Ordering options when selecting data from "transaction_new". */ +export type Transaction_New_Order_By = { + fee?: Maybe; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + logs?: Maybe; + memo?: Maybe; + messages?: Maybe; + partition_id?: Maybe; + raw_log?: Maybe; + signatures?: Maybe; + signer_infos?: Maybe; + success?: Maybe; +}; + +/** select columns of table "transaction_new" */ +export enum Transaction_New_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 */ + PartitionId = 'partition_id', + /** column name */ + RawLog = 'raw_log', + /** column name */ + Signatures = 'signatures', + /** column name */ + SignerInfos = 'signer_infos', + /** column name */ + Success = 'success' +} + +/** aggregate stddev on columns */ +export type Transaction_New_Stddev_Fields = { + __typename?: 'transaction_new_stddev_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + partition_id?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Transaction_New_Stddev_Pop_Fields = { + __typename?: 'transaction_new_stddev_pop_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + partition_id?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Transaction_New_Stddev_Samp_Fields = { + __typename?: 'transaction_new_stddev_samp_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + partition_id?: Maybe; +}; + +/** aggregate sum on columns */ +export type Transaction_New_Sum_Fields = { + __typename?: 'transaction_new_sum_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + partition_id?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Transaction_New_Var_Pop_Fields = { + __typename?: 'transaction_new_var_pop_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + partition_id?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Transaction_New_Var_Samp_Fields = { + __typename?: 'transaction_new_var_samp_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + partition_id?: Maybe; +}; + +/** aggregate variance on columns */ +export type Transaction_New_Variance_Fields = { + __typename?: 'transaction_new_variance_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + partition_id?: Maybe; +}; + +/** Ordering options when selecting data from "transaction". */ +export type Transaction_Order_By = { + block?: Maybe; + fee?: Maybe; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + logs?: Maybe; + memo?: Maybe; + messages?: Maybe; + messagesByTransactionHash_aggregate?: Maybe; + partition_id?: Maybe; + raw_log?: Maybe; + signatures?: Maybe; + signer_infos?: Maybe; + success?: Maybe; +}; + +/** select columns of table "transaction" */ +export enum Transaction_Select_Column { + /** column name */ + Fee = 'fee', + /** column name */ GasUsed = 'gas_used', /** column name */ GasWanted = 'gas_wanted', @@ -9076,6 +9228,8 @@ export enum Transaction_Select_Column { /** column name */ Messages = 'messages', /** column name */ + PartitionId = 'partition_id', + /** column name */ RawLog = 'raw_log', /** column name */ Signatures = 'signatures', @@ -9091,6 +9245,7 @@ export type Transaction_Stddev_Fields = { gas_used?: Maybe; gas_wanted?: Maybe; height?: Maybe; + partition_id?: Maybe; }; /** order by stddev() on columns of table "transaction" */ @@ -9098,6 +9253,7 @@ export type Transaction_Stddev_Order_By = { gas_used?: Maybe; gas_wanted?: Maybe; height?: Maybe; + partition_id?: Maybe; }; /** aggregate stddev_pop on columns */ @@ -9106,6 +9262,7 @@ export type Transaction_Stddev_Pop_Fields = { gas_used?: Maybe; gas_wanted?: Maybe; height?: Maybe; + partition_id?: Maybe; }; /** order by stddev_pop() on columns of table "transaction" */ @@ -9113,6 +9270,7 @@ export type Transaction_Stddev_Pop_Order_By = { gas_used?: Maybe; gas_wanted?: Maybe; height?: Maybe; + partition_id?: Maybe; }; /** aggregate stddev_samp on columns */ @@ -9121,6 +9279,7 @@ export type Transaction_Stddev_Samp_Fields = { gas_used?: Maybe; gas_wanted?: Maybe; height?: Maybe; + partition_id?: Maybe; }; /** order by stddev_samp() on columns of table "transaction" */ @@ -9128,6 +9287,7 @@ export type Transaction_Stddev_Samp_Order_By = { gas_used?: Maybe; gas_wanted?: Maybe; height?: Maybe; + partition_id?: Maybe; }; /** aggregate sum on columns */ @@ -9136,6 +9296,7 @@ export type Transaction_Sum_Fields = { gas_used?: Maybe; gas_wanted?: Maybe; height?: Maybe; + partition_id?: Maybe; }; /** order by sum() on columns of table "transaction" */ @@ -9143,6 +9304,7 @@ export type Transaction_Sum_Order_By = { gas_used?: Maybe; gas_wanted?: Maybe; height?: Maybe; + partition_id?: Maybe; }; /** aggregate var_pop on columns */ @@ -9151,6 +9313,7 @@ export type Transaction_Var_Pop_Fields = { gas_used?: Maybe; gas_wanted?: Maybe; height?: Maybe; + partition_id?: Maybe; }; /** order by var_pop() on columns of table "transaction" */ @@ -9158,6 +9321,7 @@ export type Transaction_Var_Pop_Order_By = { gas_used?: Maybe; gas_wanted?: Maybe; height?: Maybe; + partition_id?: Maybe; }; /** aggregate var_samp on columns */ @@ -9166,6 +9330,7 @@ export type Transaction_Var_Samp_Fields = { gas_used?: Maybe; gas_wanted?: Maybe; height?: Maybe; + partition_id?: Maybe; }; /** order by var_samp() on columns of table "transaction" */ @@ -9173,6 +9338,7 @@ export type Transaction_Var_Samp_Order_By = { gas_used?: Maybe; gas_wanted?: Maybe; height?: Maybe; + partition_id?: Maybe; }; /** aggregate variance on columns */ @@ -9181,6 +9347,7 @@ export type Transaction_Variance_Fields = { gas_used?: Maybe; gas_wanted?: Maybe; height?: Maybe; + partition_id?: Maybe; }; /** order by variance() on columns of table "transaction" */ @@ -9188,6 +9355,7 @@ export type Transaction_Variance_Order_By = { gas_used?: Maybe; gas_wanted?: Maybe; height?: Maybe; + partition_id?: Maybe; }; /** columns and relationships of "validator" */ @@ -9208,6 +9376,10 @@ export type Validator = { /** An aggregate relationship */ pre_commits_aggregate: Pre_Commit_Aggregate; /** An array relationship */ + proposal_validator_status_snapshots: Array; + /** An aggregate relationship */ + proposal_validator_status_snapshots_aggregate: Proposal_Validator_Status_Snapshot_Aggregate; + /** An array relationship */ validator_commissions: Array; /** An aggregate relationship */ validator_commissions_aggregate: Validator_Commission_Aggregate; @@ -9296,6 +9468,26 @@ export type ValidatorPre_Commits_AggregateArgs = { }; +/** columns and relationships of "validator" */ +export type ValidatorProposal_Validator_Status_SnapshotsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorProposal_Validator_Status_Snapshots_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + /** columns and relationships of "validator" */ export type ValidatorValidator_CommissionsArgs = { distinct_on?: Maybe>; @@ -9447,6 +9639,7 @@ export type Validator_Bool_Exp = { consensus_pubkey?: Maybe; double_sign_votes?: Maybe; pre_commits?: Maybe; + proposal_validator_status_snapshots?: Maybe; validator_commissions?: Maybe; validator_descriptions?: Maybe; validator_info?: Maybe; @@ -10087,6 +10280,7 @@ export type Validator_Order_By = { consensus_pubkey?: Maybe; double_sign_votes_aggregate?: Maybe; pre_commits_aggregate?: Maybe; + proposal_validator_status_snapshots_aggregate?: Maybe; validator_commissions_aggregate?: Maybe; validator_descriptions_aggregate?: Maybe; validator_info?: Maybe; @@ -10613,6 +10807,8 @@ export type Validator_Status_Variance_Order_By = { /** 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; @@ -10683,6 +10879,7 @@ export type Validator_Voting_Power_Bool_Exp = { _and?: Maybe>; _not?: Maybe; _or?: Maybe>; + block?: Maybe; height?: Maybe; validator?: Maybe; validator_address?: Maybe; @@ -10721,6 +10918,7 @@ export type Validator_Voting_Power_Min_Order_By = { /** Ordering options when selecting data from "validator_voting_power". */ export type Validator_Voting_Power_Order_By = { + block?: Maybe; height?: Maybe; validator?: Maybe; validator_address?: Maybe; @@ -10895,12 +11093,32 @@ export type Vesting_Account_Aggregate_FieldsCountArgs = { distinct?: Maybe; }; +/** order by aggregate values of table "vesting_account" */ +export type Vesting_Account_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + /** aggregate avg on columns */ export type Vesting_Account_Avg_Fields = { __typename?: 'vesting_account_avg_fields'; id?: Maybe; }; +/** order by avg() on columns of table "vesting_account" */ +export type Vesting_Account_Avg_Order_By = { + id?: Maybe; +}; + /** 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?: Maybe>; @@ -10926,6 +11144,15 @@ export type Vesting_Account_Max_Fields = { type?: Maybe; }; +/** order by max() on columns of table "vesting_account" */ +export type Vesting_Account_Max_Order_By = { + address?: Maybe; + end_time?: Maybe; + id?: Maybe; + start_time?: Maybe; + type?: Maybe; +}; + /** aggregate min on columns */ export type Vesting_Account_Min_Fields = { __typename?: 'vesting_account_min_fields'; @@ -10936,6 +11163,15 @@ export type Vesting_Account_Min_Fields = { type?: Maybe; }; +/** order by min() on columns of table "vesting_account" */ +export type Vesting_Account_Min_Order_By = { + address?: Maybe; + end_time?: Maybe; + id?: Maybe; + start_time?: Maybe; + type?: Maybe; +}; + /** Ordering options when selecting data from "vesting_account". */ export type Vesting_Account_Order_By = { account?: Maybe; @@ -10970,42 +11206,77 @@ export type Vesting_Account_Stddev_Fields = { id?: Maybe; }; +/** order by stddev() on columns of table "vesting_account" */ +export type Vesting_Account_Stddev_Order_By = { + id?: Maybe; +}; + /** aggregate stddev_pop on columns */ export type Vesting_Account_Stddev_Pop_Fields = { __typename?: 'vesting_account_stddev_pop_fields'; id?: Maybe; }; +/** order by stddev_pop() on columns of table "vesting_account" */ +export type Vesting_Account_Stddev_Pop_Order_By = { + id?: Maybe; +}; + /** aggregate stddev_samp on columns */ export type Vesting_Account_Stddev_Samp_Fields = { __typename?: 'vesting_account_stddev_samp_fields'; id?: Maybe; }; +/** order by stddev_samp() on columns of table "vesting_account" */ +export type Vesting_Account_Stddev_Samp_Order_By = { + id?: Maybe; +}; + /** aggregate sum on columns */ export type Vesting_Account_Sum_Fields = { __typename?: 'vesting_account_sum_fields'; id?: Maybe; }; +/** order by sum() on columns of table "vesting_account" */ +export type Vesting_Account_Sum_Order_By = { + id?: Maybe; +}; + /** aggregate var_pop on columns */ export type Vesting_Account_Var_Pop_Fields = { __typename?: 'vesting_account_var_pop_fields'; id?: Maybe; }; +/** order by var_pop() on columns of table "vesting_account" */ +export type Vesting_Account_Var_Pop_Order_By = { + id?: Maybe; +}; + /** aggregate var_samp on columns */ export type Vesting_Account_Var_Samp_Fields = { __typename?: 'vesting_account_var_samp_fields'; id?: Maybe; }; +/** order by var_samp() on columns of table "vesting_account" */ +export type Vesting_Account_Var_Samp_Order_By = { + id?: Maybe; +}; + /** aggregate variance on columns */ export type Vesting_Account_Variance_Fields = { __typename?: 'vesting_account_variance_fields'; id?: Maybe; }; +/** order by variance() on columns of table "vesting_account" */ +export type Vesting_Account_Variance_Order_By = { + id?: Maybe; +}; + /** columns and relationships of "vesting_period" */ export type Vesting_Period = { __typename?: 'vesting_period'; @@ -11245,28 +11516,62 @@ export type Vesting_Period_Variance_Order_By = { vesting_account_id?: Maybe; }; -export type AccountQueryVariables = Exact<{ - address: Scalars['String']; +export type AccountCommissionQueryVariables = Exact<{ validatorAddress: Scalars['String']; }>; -export type AccountQuery = { commission?: Maybe<( +export type AccountCommissionQuery = { commission?: Maybe<( { __typename?: 'ActionValidatorCommissionAmount' } & Pick - )>, withdrawalAddress: ( + )> }; + +export type AccountWithdrawalAddressQueryVariables = Exact<{ + address: Scalars['String']; +}>; + + +export type AccountWithdrawalAddressQuery = { withdrawalAddress: ( { __typename?: 'ActionAddress' } & Pick - ), accountBalances?: Maybe<( + ) }; + +export type AccountBalancesQueryVariables = Exact<{ + address: Scalars['String']; +}>; + + +export type AccountBalancesQuery = { accountBalances?: Maybe<( { __typename?: 'ActionBalance' } & Pick - )>, delegationBalance?: Maybe<( + )> }; + +export type AccountDelegationBalanceQueryVariables = Exact<{ + address: Scalars['String']; +}>; + + +export type AccountDelegationBalanceQuery = { delegationBalance?: Maybe<( { __typename?: 'ActionBalance' } & Pick - )>, unbondingBalance?: Maybe<( + )> }; + +export type AccountUnbondingBalanceQueryVariables = Exact<{ + address: Scalars['String']; +}>; + + +export type AccountUnbondingBalanceQuery = { unbondingBalance?: Maybe<( { __typename?: 'ActionBalance' } & Pick - )>, delegationRewards?: Maybe }; + +export type AccountDelegationRewardsQueryVariables = Exact<{ + address: Scalars['String']; +}>; + + +export type AccountDelegationRewardsQuery = { delegationRewards?: Maybe & { validatorAddress: ActionDelegationReward['validator_address'] } @@ -11484,14 +11789,14 @@ export type GetMessagesByAddressQueryVariables = Exact<{ export type GetMessagesByAddressQuery = { messagesByAddress: Array<( { __typename?: 'message' } - & { transaction: ( + & { transaction?: Maybe<( { __typename?: 'transaction' } & Pick & { block: ( { __typename?: 'block' } & Pick ) } - ) } + )> } )> }; export type OnlineVotingPowerListenerSubscriptionVariables = Exact<{ [key: string]: never; }>; @@ -11848,23 +12153,183 @@ export type ValidatorAddressesQuery = { validator: Array<( )> }; -export const AccountDocument = gql` - query Account($address: String!, $validatorAddress: String!) { +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 @@ -11873,33 +12338,32 @@ export const AccountDocument = gql` `; /** - * __useAccountQuery__ + * __useAccountDelegationRewardsQuery__ * - * To run a query within a React component, call `useAccountQuery` and pass it any options that fit your needs. - * When your component renders, `useAccountQuery` returns an object from Apollo Client that contains loading, error, and data properties + * 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 } = useAccountQuery({ + * const { data, loading, error } = useAccountDelegationRewardsQuery({ * variables: { * address: // value for 'address' - * validatorAddress: // value for 'validatorAddress' * }, * }); */ -export function useAccountQuery(baseOptions: Apollo.QueryHookOptions) { +export function useAccountDelegationRewardsQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AccountDocument, options); + return Apollo.useQuery(AccountDelegationRewardsDocument, options); } -export function useAccountLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { +export function useAccountDelegationRewardsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AccountDocument, options); + return Apollo.useLazyQuery(AccountDelegationRewardsDocument, options); } -export type AccountQueryHookResult = ReturnType; -export type AccountLazyQueryHookResult = ReturnType; -export type AccountQueryResult = Apollo.QueryResult; +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) { delegations: action_delegation( diff --git a/src/screens/account_details/__snapshots__/index.test.tsx.snap b/src/screens/account_details/__snapshots__/index.test.tsx.snap deleted file mode 100644 index 6285bf252b..0000000000 --- a/src/screens/account_details/__snapshots__/index.test.tsx.snap +++ /dev/null @@ -1,149 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`screen: BlockDetails matches snapshot 1`] = ` -
-
- -
-
-
-
-
-
- -
-
-`; diff --git a/src/screens/account_details/hooks.ts b/src/screens/account_details/hooks.ts index 09d8276c10..ac4f8ea7a3 100644 --- a/src/screens/account_details/hooks.ts +++ b/src/screens/account_details/hooks.ts @@ -4,18 +4,21 @@ import { import * as R from 'ramda'; import Big from 'big.js'; import { useRouter } from 'next/router'; -import { - AccountQuery, - useAccountQuery, -} from '@graphql/types'; import { getDenom } from '@utils/get_denom'; -import { toValidatorAddress } from '@utils/prefix_convert'; import { formatToken, } from '@utils/format_token'; import { chainConfig } from '@src/configs'; import { useDesmosProfile } from '@hooks'; import { AccountDetailState } from './types'; +import { + fetchAccountWithdrawalAddress, + fetchAvailableBalances, + fetchCommission, + fetchDelegationBalance, + fetchRewards, + fetchUnbondingBalance, +} from './utils'; const defaultTokenUnit: TokenUnit = { value: '0', @@ -76,33 +79,59 @@ export const useAccountDetails = () => { }, [router.query.address]); + useEffect(() => { + fetchWithdrawalAddress(); + fetchBalance(); + }, [router.query.address]); + // ========================== // Fetch Data // ========================== - useAccountQuery({ - variables: { - address: R.pathOr('', ['query', 'address'], router), - validatorAddress: toValidatorAddress(router.query.address as string), - }, - onCompleted: (data) => { - handleSetState(formatAccountQuery(data)); - }, - }); + const fetchWithdrawalAddress = async () => { + const data = await fetchAccountWithdrawalAddress(router.query.address as string); + handleSetState({ + overview: { + address: router.query.address, + withdrawalAddress: R.pathOr('', ['withdrawalAddress', 'address'], data), + }, + }); + }; + + const fetchBalance = async () => { + const address = router.query.address as string; + const promises = [ + fetchCommission(address), + fetchAvailableBalances(address), + fetchDelegationBalance(address), + fetchUnbondingBalance(address), + fetchRewards(address), + ]; + const [ + commission, + available, + delegation, + unbonding, + rewards, + ] = await Promise.allSettled(promises); + + const formattedRawData: any = {}; + formattedRawData.commission = R.pathOr([], ['value', 'commission'], commission); + formattedRawData.accountBalances = R.pathOr([], ['value', 'accountBalances'], available); + formattedRawData.delegationBalance = R.pathOr([], ['value', 'delegationBalance'], delegation); + formattedRawData.unbondingBalance = R.pathOr([], ['value', 'unbondingBalance'], unbonding); + formattedRawData.delegationRewards = R.pathOr([], ['value', 'delegationRewards'], rewards); + + handleSetState(formatAllBalance(formattedRawData)); + }; // ========================== - // Format Account + // Format Data // ========================== - - const formatAccountQuery = (data: AccountQuery) => { + const formatAllBalance = (data: any) => { const stateChange: any = { loading: false, }; - if (!data.accountBalances.coins.length) { - stateChange.exists = false; - return stateChange; - } - // ============================ // rewards // ============================ @@ -120,24 +149,6 @@ export const useAccountDetails = () => { stateChange.rewards = formatRewards(); - // ============================ - // overview - // ============================ - const formatOverview = () => { - const address = R.pathOr('', ['query', 'address'], router); - const overview = { - address, - withdrawalAddress: R.pathOr( - address, - ['withdrawalAddress', 'address'], - data, - ), - }; - return overview; - }; - - stateChange.overview = formatOverview(); - // ============================ // balance // ============================ diff --git a/src/screens/account_details/index.test.tsx b/src/screens/account_details/index.test.tsx deleted file mode 100644 index fc971ff23a..0000000000 --- a/src/screens/account_details/index.test.tsx +++ /dev/null @@ -1,184 +0,0 @@ -import React from 'react'; -import axios from 'axios'; -import MockAdapter from 'axios-mock-adapter'; -import { createMockClient } from 'mock-apollo-client'; -import { ApolloProvider } from '@apollo/client'; -import renderer from 'react-test-renderer'; -import { - MockTheme, wait, -} from '@tests/utils'; -import { - AccountDocument, - GetMessagesByAddressDocument, -} from '@graphql/types'; -import AccountDetails from '.'; - -// ================================== -// mocks -// ================================== -jest.mock('next/router', () => ({ - useRouter: () => ({ - query: { - address: 'desmos1ltpgdupjgtpqzsznltcptmfh6gfu5d8uehxggj', - }, - }), -})); - -jest.mock('@components', () => ({ - Layout: (props) =>
, - LoadAndExist: (props) =>
, - DesmosProfile: (props) =>
, -})); - -jest.mock('./components', () => ({ - Overview: (props) =>
, - Balance: (props) =>
, - Staking: (props) =>
, - Transactions: (props) =>
, - OtherTokens: (props) =>
, -})); - -const mockAccount = jest.fn().mockResolvedValue({ - data: { - commission: { - coins: [ - { - amount: '935371507.295045102561007305', - denom: 'udsm', - }, - ], - }, - withdrawalAddress: { - address: 'desmos1ltpgdupjgtpqzsznltcptmfh6gfu5d8uehxggj', - }, - accountBalances: { - coins: [ - { - amount: '116306', - denom: 'udsm', - }, - ], - }, - delegationBalance: { - coins: [ - { - amount: '1530000000', - denom: 'udsm', - }, - ], - }, - unbondingBalance: { - coins: [ - { - amount: '0', - denom: 'udsm', - }, - ], - }, - delegationRewards: [ - { - validatorAddress: 'desmosvaloper1gwr9l765vfxv4l4zz8glsxwkkphj2084xjwc68', - coins: [ - { - amount: '1983411.761512021000000000', - denom: 'udsm', - }, - ], - }, - { - validatorAddress: 'desmosvaloper1mqfr567kvp659z0zjvpqudw3wx7hh3s7u9a8g9', - coins: [ - { - amount: '1029160.218282986240000000', - denom: 'udsm', - }, - ], - }, - ], - }, -}); - -const mockAccountMessages = jest.fn().mockResolvedValue({ - data: { - messagesByAddress: [ - { - transaction: { - height: 793314, - hash: '6BC372069E41B5493B785002FD795746384A07C3F373FF6E2CAD6ABDE29860BA', - success: true, - logs: [], - messages: [ - { - '@type': '/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward', - delegator_address: 'desmos18kvwy5hzcu3ss08lcfcnx0eajuecg69ujmkwjr', - validator_address: 'desmosvaloper18kvwy5hzcu3ss08lcfcnx0eajuecg69uvk76c3', - }, - { - '@type': '/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission', - validator_address: 'desmosvaloper18kvwy5hzcu3ss08lcfcnx0eajuecg69uvk76c3', - }, - ], - block: { - height: 793314, - timestamp: '2021-06-22T03:40:33.804715', - }, - }, - }, - ], - }, -}); - -// ================================== -// unit tests -// ================================== -describe('screen: BlockDetails', () => { - it('matches snapshot', async () => { - const mockAxios = new MockAdapter(axios); - mockAxios.onPost('https://gql.mainnet.desmos.network/v1/graphql').reply(200, { - data: { - profile: [ - { - address: 'desmos1kmw9et4e99ascgdw0mmkt63mggjuu0xuqjx30w', - bio: '', - dtag: 'RiccardoMontagnin', - nickname: '', - profilePic: '', - chainLinks: [], - applicationLinks: [], - creationTime: '2021-10-06T00:10:45.761731', - }, - ], - }, - }); - - const mockClient = createMockClient(); - mockClient.setRequestHandler( - AccountDocument, - mockAccount, - ); - - mockClient.setRequestHandler( - GetMessagesByAddressDocument, - mockAccountMessages, - ); - - let component; - renderer.act(() => { - component = renderer.create( - - - - - , - ); - }); - await wait(); - - const tree = component.toJSON(); - expect(tree).toMatchSnapshot(); - }); - - afterEach(() => { - jest.clearAllMocks(); - }); -}); diff --git a/src/screens/account_details/utils.ts b/src/screens/account_details/utils.ts new file mode 100644 index 0000000000..c822220aa4 --- /dev/null +++ b/src/screens/account_details/utils.ts @@ -0,0 +1,123 @@ +import axios from 'axios'; +import * as R from 'ramda'; +import { toValidatorAddress } from '@utils/prefix_convert'; +import { + AccountCommissionDocument, + AccountWithdrawalAddressDocument, + AccountBalancesDocument, + AccountDelegationBalanceDocument, + AccountUnbondingBalanceDocument, + AccountDelegationRewardsDocument, +} from '@graphql/account_actions'; + +export const fetchCommission = async (address: string) => { + const defaultReturnValue = { + commission: { + coins: null, + }, + }; + try { + const { data } = await axios.post(process.env.NEXT_PUBLIC_GRAPHQL_URL, { + variables: { + validatorAddress: toValidatorAddress(address), + }, + query: AccountCommissionDocument, + }); + return R.pathOr(defaultReturnValue, ['data'], data); + } catch (error) { + return defaultReturnValue; + } +}; + +export const fetchAccountWithdrawalAddress = async (address: string) => { + const defaultReturnValue = { + withdrawalAddress: { + address, + }, + }; + try { + const { data } = await axios.post(process.env.NEXT_PUBLIC_GRAPHQL_URL, { + variables: { + address, + }, + query: AccountWithdrawalAddressDocument, + }); + return R.pathOr(defaultReturnValue, ['data'], data); + } catch (error) { + return defaultReturnValue; + } +}; + +export const fetchAvailableBalances = async (address: string) => { + const defaultReturnValue = { + accountBalances: { + coins: [], + }, + }; + try { + const { data } = await axios.post(process.env.NEXT_PUBLIC_GRAPHQL_URL, { + variables: { + address, + }, + query: AccountBalancesDocument, + }); + return R.pathOr(defaultReturnValue, ['data'], data); + } catch (error) { + return defaultReturnValue; + } +}; + +export const fetchDelegationBalance = async (address: string) => { + const defaultReturnValue = { + delegationBalance: { + coins: [], + }, + }; + try { + const { data } = await axios.post(process.env.NEXT_PUBLIC_GRAPHQL_URL, { + variables: { + address, + }, + query: AccountDelegationBalanceDocument, + }); + return R.pathOr(defaultReturnValue, ['data'], data); + } catch (error) { + return defaultReturnValue; + } +}; + +export const fetchUnbondingBalance = async (address: string) => { + const defaultReturnValue = { + unbondingBalance: { + coins: [], + }, + }; + try { + const { data } = await axios.post(process.env.NEXT_PUBLIC_GRAPHQL_URL, { + variables: { + address, + }, + query: AccountUnbondingBalanceDocument, + }); + return R.pathOr(defaultReturnValue, ['data'], data); + } catch (error) { + return defaultReturnValue; + } +}; + +export const fetchRewards = async (address: string) => { + const defaultReturnValue = { + delegationRewards: [], + }; + try { + const { data } = await axios.post(process.env.NEXT_PUBLIC_GRAPHQL_URL, { + variables: { + address, + }, + query: AccountDelegationRewardsDocument, + }); + return R.pathOr(defaultReturnValue, ['data'], data); + } catch (error) { + return defaultReturnValue; + } +}; From 502ce8514e5732efa66afc339ed0983334957fec Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Thu, 17 Feb 2022 17:21:46 +0800 Subject: [PATCH 14/54] 724/fix format token (#726) --- CHANGELOG.md | 1 + .../proposal_details/__snapshots__/index.test.tsx.snap | 2 +- .../transaction_details/__snapshots__/index.test.tsx.snap | 2 +- src/screens/transactions/__snapshots__/index.test.tsx.snap | 4 ++-- src/utils/format_token.ts | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c31c769d0..d4c2fe2c11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Optimised validator details and account details to prevent random polling behavior ([\#703](https://github.com/forbole/big-dipper-2.0-cosmos/issues/703)) - Add hasura actions error handling in account details ([\#713](https://github.com/forbole/big-dipper-2.0-cosmos/issues/713)) - Display accounts even if balance is 0 and does not exist ([\#692](https://github.com/forbole/big-dipper-2.0-cosmos/issues/692)) +- Update handling of 18 decimal places denoms ([\#724](https://github.com/forbole/big-dipper-2.0-cosmos/issues/724)) # base-v2.0.0-rc1 - 2021-02-07 diff --git a/src/screens/proposal_details/__snapshots__/index.test.tsx.snap b/src/screens/proposal_details/__snapshots__/index.test.tsx.snap index ca06627de9..1e031da64c 100644 --- a/src/screens/proposal_details/__snapshots__/index.test.tsx.snap +++ b/src/screens/proposal_details/__snapshots__/index.test.tsx.snap @@ -91,7 +91,7 @@ exports[`screen: ProposalDetails matches snapshot 1`] = ` "baseDenom": "udaric", "displayDenom": "daric", "exponent": 6, - "value": "100", + "value": "100.000000", }, "user": "desmos1kmw9et4e99ascgdw0mmkt63mggjuu0xuqjx30w", }, diff --git a/src/screens/transaction_details/__snapshots__/index.test.tsx.snap b/src/screens/transaction_details/__snapshots__/index.test.tsx.snap index 829a3093dd..8e0a5b3ce5 100644 --- a/src/screens/transaction_details/__snapshots__/index.test.tsx.snap +++ b/src/screens/transaction_details/__snapshots__/index.test.tsx.snap @@ -21,7 +21,7 @@ exports[`screen: Blocks/List matches snapshot 1`] = ` "baseDenom": "udaric", "displayDenom": "daric", "exponent": 6, - "value": "0.00005", + "value": "0.000050", }, "gasUsed": 149488, "gasWanted": 200000, diff --git a/src/screens/transactions/__snapshots__/index.test.tsx.snap b/src/screens/transactions/__snapshots__/index.test.tsx.snap index ad00158e8b..72ac608d81 100644 --- a/src/screens/transactions/__snapshots__/index.test.tsx.snap +++ b/src/screens/transactions/__snapshots__/index.test.tsx.snap @@ -37,7 +37,7 @@ exports[`screen: Transactions matches snapshot 1`] = ` "baseDenom": "udaric", "displayDenom": "daric", "exponent": 6, - "value": "0", + "value": "0.000000", }, ], "category": "distribution", @@ -56,7 +56,7 @@ exports[`screen: Transactions matches snapshot 1`] = ` "baseDenom": "udaric", "displayDenom": "daric", "exponent": 6, - "value": "0", + "value": "0.000000", }, ], "category": "distribution", diff --git a/src/utils/format_token.ts b/src/utils/format_token.ts index bfa12b3ba4..7807fe27fd 100644 --- a/src/utils/format_token.ts +++ b/src/utils/format_token.ts @@ -33,7 +33,7 @@ export const formatToken = (value: number | string, denom = ''): TokenUnit => { } const ratio = 10 ** selectedDenom.exponent; - results.value = Big(value).div(ratio).toPrecision(); + results.value = Big(value).div(ratio).toFixed(selectedDenom.exponent); results.displayDenom = selectedDenom.display; return results; }; From d576b91e569d4e3b2217f9080793188dda8f1954 Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Tue, 22 Feb 2022 15:56:00 +0800 Subject: [PATCH 15/54] add: extra conversion utils (#729) --- src/screens/account_details/hooks.ts | 2 +- src/utils/format_token.ts | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/src/screens/account_details/hooks.ts b/src/screens/account_details/hooks.ts index ac4f8ea7a3..3d24330d82 100644 --- a/src/screens/account_details/hooks.ts +++ b/src/screens/account_details/hooks.ts @@ -189,7 +189,7 @@ export const useAccountDetails = () => { .plus(unbondingAmount.value) .plus(rewardsAmount.value) .plus(commissionAmount.value) - .toPrecision(); + .toFixed(chainConfig.tokenUnits[chainConfig.primaryTokenUnit].exponent); const balance = { available: availableAmount, diff --git a/src/utils/format_token.ts b/src/utils/format_token.ts index 7807fe27fd..5845bf8ce4 100644 --- a/src/utils/format_token.ts +++ b/src/utils/format_token.ts @@ -38,6 +38,27 @@ export const formatToken = (value: number | string, denom = ''): TokenUnit => { return results; }; +/** + * Util to help me correctly transform a base denom amount + * in to a display denom amount + * @param value the current amount + * @param exponent the exponent to div by + * @returns string value of formatted + */ +export const formatTokenByExponent = (value: number | string, exponent = 0): string => { + if (typeof value !== 'string' && typeof value !== 'number') { + value = '0'; + } + + if (typeof value === 'number') { + value = `${value}`; + } + + const ratio = 10 ** exponent; + const results = Big(value).div(ratio).toFixed(exponent); + return results; +}; + /** * Mostly used for formatting tokens as javascript being javascript, * cannot handle tokens with 18 decimal places From 640e2a0f5e71e2dad8d654e914946d6c54ca7741 Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Tue, 22 Feb 2022 16:31:09 +0800 Subject: [PATCH 16/54] fix: dependencies (#731) --- package-lock.json | 110 +++++++++++++++++++++++----------------------- package.json | 2 +- 2 files changed, 56 insertions(+), 56 deletions(-) diff --git a/package-lock.json b/package-lock.json index ad51b448c9..90d225feb8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5348,74 +5348,74 @@ "dev": true }, "@next/env": { - "version": "12.0.10", - "resolved": "https://registry.npmjs.org/@next/env/-/env-12.0.10.tgz", - "integrity": "sha512-mQVj0K6wQ5WEk/sL9SZ+mJXJUaG7el8CpZ6io1uFe9GgNTSC7EgUyNGqM6IQovIFc5ukF4O/hqsdh3S/DCgT2g==" + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/@next/env/-/env-12.1.0.tgz", + "integrity": "sha512-nrIgY6t17FQ9xxwH3jj0a6EOiQ/WDHUos35Hghtr+SWN/ntHIQ7UpuvSi0vaLzZVHQWaDupKI+liO5vANcDeTQ==" }, "@next/swc-android-arm64": { - "version": "12.0.10", - "resolved": "https://registry.npmjs.org/@next/swc-android-arm64/-/swc-android-arm64-12.0.10.tgz", - "integrity": "sha512-xYwXGkNhzZZsM5MD7KRwF5ZNiC8OLPtVMUiagpPnwENg8Hb0GSQo/NbYWXM8YrawEwp9LaZ7OXiuRKPh2JyBdA==", + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/@next/swc-android-arm64/-/swc-android-arm64-12.1.0.tgz", + "integrity": "sha512-/280MLdZe0W03stA69iL+v6I+J1ascrQ6FrXBlXGCsGzrfMaGr7fskMa0T5AhQIVQD4nA/46QQWxG//DYuFBcA==", "optional": true }, "@next/swc-darwin-arm64": { - "version": "12.0.10", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-12.0.10.tgz", - "integrity": "sha512-f2zngulkpIJKWHckhRi7X8GZ+J/tNgFF7lYIh7Qx15JH0OTBsjkqxORlkzy+VZyHJ5sWTCaI6HYYd3ow6qkEEg==", + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-12.1.0.tgz", + "integrity": "sha512-R8vcXE2/iONJ1Unf5Ptqjk6LRW3bggH+8drNkkzH4FLEQkHtELhvcmJwkXcuipyQCsIakldAXhRbZmm3YN1vXg==", "optional": true }, "@next/swc-darwin-x64": { - "version": "12.0.10", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-12.0.10.tgz", - "integrity": "sha512-Qykcu/gVC5oTvOQoRBhyuS5GYm5SbcgrFTsaLFkGBmEkg9eMQRiaCswk4IafpDXVzITkVFurzSM28q3tLW2qUw==", + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-12.1.0.tgz", + "integrity": "sha512-ieAz0/J0PhmbZBB8+EA/JGdhRHBogF8BWaeqR7hwveb6SYEIJaDNQy0I+ZN8gF8hLj63bEDxJAs/cEhdnTq+ug==", "optional": true }, "@next/swc-linux-arm-gnueabihf": { - "version": "12.0.10", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.0.10.tgz", - "integrity": "sha512-EhqrTFsIXAXN9B/fiiW/QKUK/lSLCXRsLalkUp58KDfMqVLLlj1ORbESAcswiNQOChLuHQSldGEEtOBPQZcd9A==", + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.1.0.tgz", + "integrity": "sha512-njUd9hpl6o6A5d08dC0cKAgXKCzm5fFtgGe6i0eko8IAdtAPbtHxtpre3VeSxdZvuGFh+hb0REySQP9T1ttkog==", "optional": true }, "@next/swc-linux-arm64-gnu": { - "version": "12.0.10", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.0.10.tgz", - "integrity": "sha512-kqGtC72g3+JYXZbY2ca6digXR5U6AQ6Dzv4eAxYluMePLHjI/Xye1mf9dwVsgmeXfrD/IRDp5K/3A6UNvBm4oQ==", + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.1.0.tgz", + "integrity": "sha512-OqangJLkRxVxMhDtcb7Qn1xjzFA3s50EIxY7mljbSCLybU+sByPaWAHY4px97ieOlr2y4S0xdPKkQ3BCAwyo6Q==", "optional": true }, "@next/swc-linux-arm64-musl": { - "version": "12.0.10", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.0.10.tgz", - "integrity": "sha512-bG9zTSNwnSgc1Un/7oz1ZVN4UeXsTWrsQhAGWU78lLLCn4Zj9HQoUCRCGLt0OVs2DBZ+WC8CzzFliQ1SKipVbg==", + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.1.0.tgz", + "integrity": "sha512-hB8cLSt4GdmOpcwRe2UzI5UWn6HHO/vLkr5OTuNvCJ5xGDwpPXelVkYW/0+C3g5axbDW2Tym4S+MQCkkH9QfWA==", "optional": true }, "@next/swc-linux-x64-gnu": { - "version": "12.0.10", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.0.10.tgz", - "integrity": "sha512-c79PcfWtyThiYRa1+3KVfDq0zXaI8o1d6dQWNVqDrtLz5HKM/rbjLdvoNuxDwUeZhxI/d9CtyH6GbuKPw5l/5A==", + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.1.0.tgz", + "integrity": "sha512-OKO4R/digvrVuweSw/uBM4nSdyzsBV5EwkUeeG4KVpkIZEe64ZwRpnFB65bC6hGwxIBnTv5NMSnJ+0K/WmG78A==", "optional": true }, "@next/swc-linux-x64-musl": { - "version": "12.0.10", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.0.10.tgz", - "integrity": "sha512-g/scgn+21/MLfizOCZOZt+MxNj2/8Tdlwjvy+QZcSUPZRUI2Y5o3HwBvI1f/bSci+NGRU+bUAO0NFtRJ9MzH5w==", + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.1.0.tgz", + "integrity": "sha512-JohhgAHZvOD3rQY7tlp7NlmvtvYHBYgY0x5ZCecUT6eCCcl9lv6iV3nfu82ErkxNk1H893fqH0FUpznZ/H3pSw==", "optional": true }, "@next/swc-win32-arm64-msvc": { - "version": "12.0.10", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.0.10.tgz", - "integrity": "sha512-gl6B/ravwMeY5Nv4Il2/ARYJQ6u+KPRwGMjS1ZrNudIKlNn4YBeXh5A4cIVm+dHaff6/O/lGOa5/SUYDMZpkww==", + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.1.0.tgz", + "integrity": "sha512-T/3gIE6QEfKIJ4dmJk75v9hhNiYZhQYAoYm4iVo1TgcsuaKLFa+zMPh4056AHiG6n9tn2UQ1CFE8EoybEsqsSw==", "optional": true }, "@next/swc-win32-ia32-msvc": { - "version": "12.0.10", - "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.0.10.tgz", - "integrity": "sha512-7RVpZ3tSThC6j+iZB0CUYmFiA3kXmN+pE7QcfyAxFaflKlaZoWNMKHIEZDuxSJc6YmQ6kyxsjqxVay2F5+/YCg==", + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.1.0.tgz", + "integrity": "sha512-iwnKgHJdqhIW19H9PRPM9j55V6RdcOo6rX+5imx832BCWzkDbyomWnlzBfr6ByUYfhohb8QuH4hSGEikpPqI0Q==", "optional": true }, "@next/swc-win32-x64-msvc": { - "version": "12.0.10", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.0.10.tgz", - "integrity": "sha512-oUIWRKd24jFLRWUYO1CZmML5+32BcpVfqhimGaaZIXcOkfQW+iqiAzdqsv688zaGtyKGeB9ZtiK3NDf+Q0v+Vw==", + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.1.0.tgz", + "integrity": "sha512-aBvcbMwuanDH4EMrL2TthNJy+4nP59Bimn8egqv6GHMVj0a44cU6Au4PjOhLNqEh9l+IpRGBqMTzec94UdC5xg==", "optional": true }, "@nodelib/fs.scandir": { @@ -15378,9 +15378,9 @@ "dev": true }, "nanoid": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.0.tgz", - "integrity": "sha512-JzxqqT5u/x+/KOFSd7JP15DOo9nOoHpx6DYatqIHUW2+flybkm+mdcraotSQR5WcnZr+qhGVh8Ted0KdfSMxlg==" + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.1.tgz", + "integrity": "sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==" }, "natural-compare": { "version": "1.4.0", @@ -15394,22 +15394,22 @@ "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" }, "next": { - "version": "12.0.10", - "resolved": "https://registry.npmjs.org/next/-/next-12.0.10.tgz", - "integrity": "sha512-1y3PpGzpb/EZzz1jgne+JfZXKAVJUjYXwxzrADf/LWN+8yi9o79vMLXpW3mevvCHkEF2sBnIdjzNn16TJrINUw==", - "requires": { - "@next/env": "12.0.10", - "@next/swc-android-arm64": "12.0.10", - "@next/swc-darwin-arm64": "12.0.10", - "@next/swc-darwin-x64": "12.0.10", - "@next/swc-linux-arm-gnueabihf": "12.0.10", - "@next/swc-linux-arm64-gnu": "12.0.10", - "@next/swc-linux-arm64-musl": "12.0.10", - "@next/swc-linux-x64-gnu": "12.0.10", - "@next/swc-linux-x64-musl": "12.0.10", - "@next/swc-win32-arm64-msvc": "12.0.10", - "@next/swc-win32-ia32-msvc": "12.0.10", - "@next/swc-win32-x64-msvc": "12.0.10", + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/next/-/next-12.1.0.tgz", + "integrity": "sha512-s885kWvnIlxsUFHq9UGyIyLiuD0G3BUC/xrH0CEnH5lHEWkwQcHOORgbDF0hbrW9vr/7am4ETfX4A7M6DjrE7Q==", + "requires": { + "@next/env": "12.1.0", + "@next/swc-android-arm64": "12.1.0", + "@next/swc-darwin-arm64": "12.1.0", + "@next/swc-darwin-x64": "12.1.0", + "@next/swc-linux-arm-gnueabihf": "12.1.0", + "@next/swc-linux-arm64-gnu": "12.1.0", + "@next/swc-linux-arm64-musl": "12.1.0", + "@next/swc-linux-x64-gnu": "12.1.0", + "@next/swc-linux-x64-musl": "12.1.0", + "@next/swc-win32-arm64-msvc": "12.1.0", + "@next/swc-win32-ia32-msvc": "12.1.0", + "@next/swc-win32-x64-msvc": "12.1.0", "caniuse-lite": "^1.0.30001283", "postcss": "8.4.5", "styled-jsx": "5.0.0", diff --git a/package.json b/package.json index 7a8ea197c7..f65608c54b 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "jdenticon": "^3.1.0", "markdown-to-jsx": "^7.1.2", "mock-apollo-client": "^1.1.0", - "next": "^12.0.10", + "next": "^12.1.0", "next-seo": "^4.26.0", "next-translate": "^1.0.3", "numeral": "2.0.4", From 448bc452e1a5b4a30bab7a2d484d30b4d7d1efd3 Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Thu, 24 Feb 2022 10:54:02 +0800 Subject: [PATCH 17/54] hotfix: my trust issues with actions (#738) --- CHANGELOG.md | 3 +++ next-env.d.ts | 1 - src/utils/get_denom.ts | 6 +++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4c2fe2c11..af65a54939 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ - Display accounts even if balance is 0 and does not exist ([\#692](https://github.com/forbole/big-dipper-2.0-cosmos/issues/692)) - Update handling of 18 decimal places denoms ([\#724](https://github.com/forbole/big-dipper-2.0-cosmos/issues/724)) +## Bug fixes +- Add better handling of get denom return types ([\#735](https://github.com/forbole/big-dipper-2.0-cosmos/issues/735)) + # base-v2.0.0-rc1 - 2021-02-07 ## Changes diff --git a/next-env.d.ts b/next-env.d.ts index 9bc3dd46b9..4f11a03dc6 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,5 +1,4 @@ /// -/// /// // NOTE: This file should not be edited diff --git a/src/utils/get_denom.ts b/src/utils/get_denom.ts index 36db5d816b..751a0651f4 100644 --- a/src/utils/get_denom.ts +++ b/src/utils/get_denom.ts @@ -1,3 +1,4 @@ +import * as R from 'ramda'; import { chainConfig } from '@configs'; /** @@ -21,7 +22,10 @@ export const getDenom = ( amount: '0', }; if (selectedDenom) { - results = selectedDenom; + results = { + denom: R.pathOr('', ['denom'], selectedDenom), + amount: R.pathOr('0', ['amount'], selectedDenom), + }; } return results; }; From 4ad45c3c9187df63f92a555e379a7ea90901d1a5 Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Thu, 24 Feb 2022 14:57:01 +0800 Subject: [PATCH 18/54] update: hasura action return types (#742) --- CHANGELOG.md | 3 ++- src/configs/general_config.json | 2 +- src/screens/account_details/components/staking/hooks.tsx | 8 ++++---- .../validator_details/components/staking/hooks.tsx | 8 ++++---- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af65a54939..4d776a34fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# Unreleased +# base-v2.0.0-rc2 - 2021-02-24 ## Changes - Updated market cap display ([\#698](https://github.com/forbole/big-dipper-2.0-cosmos/issues/698)) @@ -9,6 +9,7 @@ ## Bug fixes - Add better handling of get denom return types ([\#735](https://github.com/forbole/big-dipper-2.0-cosmos/issues/735)) +- Update ui to match the improved hasura actions return types # base-v2.0.0-rc1 - 2021-02-07 diff --git a/src/configs/general_config.json b/src/configs/general_config.json index 0306db42ab..1a754c4111 100644 --- a/src/configs/general_config.json +++ b/src/configs/general_config.json @@ -6,5 +6,5 @@ "github": { "reportIssue": "https://github.com/forbole/big-dipper-2.0-cosmos/issues" }, - "version": "base-v2.0.0-rc1" + "version": "base-v2.0.0-rc2" } diff --git a/src/screens/account_details/components/staking/hooks.tsx b/src/screens/account_details/components/staking/hooks.tsx index 665bdd03bf..4b4a8bbcee 100644 --- a/src/screens/account_details/components/staking/hooks.tsx +++ b/src/screens/account_details/components/staking/hooks.tsx @@ -9,9 +9,8 @@ import { useAccountRedelegationsQuery, AccountRedelegationsQuery, } from '@graphql/types'; -import { - formatToken, -} from '@utils/format_token'; +import { formatToken } from '@utils/format_token'; +import { getDenom } from '@utils/get_denom'; import { chainConfig } from '@configs'; import { StakingState } from './types'; import { RewardsType } from '../../types'; @@ -78,9 +77,10 @@ export const useStaking = (rewards: RewardsType) => { return delegations .map((x) => { const validator = R.pathOr('', ['validator_address'], x); + const delegation = getDenom(x.coins, chainConfig.primaryTokenUnit); return ({ validator, - amount: formatToken(x.coins.amount, x.coins.denom), + amount: formatToken(delegation.amount, delegation.denom), reward: rewards[validator], }); }); diff --git a/src/screens/validator_details/components/staking/hooks.tsx b/src/screens/validator_details/components/staking/hooks.tsx index 8be60244eb..8fd5396cb6 100644 --- a/src/screens/validator_details/components/staking/hooks.tsx +++ b/src/screens/validator_details/components/staking/hooks.tsx @@ -9,9 +9,8 @@ import { useValidatorUndelegationsQuery, ValidatorUndelegationsQuery, } from '@graphql/types'; -import { - formatToken, -} from '@utils/format_token'; +import { formatToken } from '@utils/format_token'; +import { getDenom } from '@utils/get_denom'; import { chainConfig } from '@configs'; import { StakingState } from './types'; @@ -77,9 +76,10 @@ export const useStaking = () => { return delegations .map((x) => { const address = R.pathOr('', ['delegator_address'], x); + const delegation = getDenom(x.coins, chainConfig.primaryTokenUnit); return ({ address, - amount: formatToken(x.coins.amount, x.coins.denom), + amount: formatToken(delegation.amount, delegation.denom), }); }); }; From f1c9080171d03c2483de035e95a90e1539df26e1 Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Fri, 25 Feb 2022 11:25:06 +0800 Subject: [PATCH 19/54] update: env variables to make sense (#746) --- .env.sample | 14 +++++++------- .github/workflows/docker_production.yml | 16 ++++++++-------- .github/workflows/docker_staging.yml | 12 ++++++------ CHANGELOG.md | 10 ++++++++++ Dockerfile | 4 ++++ src/configs/general_config.json | 2 +- src/configs/index.ts | 3 ++- src/screens/home/components/consensus/hooks.tsx | 5 ++++- 8 files changed, 42 insertions(+), 24 deletions(-) diff --git a/.env.sample b/.env.sample index 64ecd56f60..dbb987ca30 100644 --- a/.env.sample +++ b/.env.sample @@ -6,10 +6,10 @@ # See the README for full descriptions of each of the # available configurations. -NEXT_PUBLIC_GRAPHQL_URL= -NEXT_PUBLIC_GRAPHQL_WS= -xNODE_ENV=development -xPORT=3000 -NEXT_PUBLIC_URL= -NEXT_PUBLIC_WS_CHAIN_URL= -NEXT_PUBLIC_CHAIN_STATUS= +NEXT_PUBLIC_GRAPHQL_URL=http://localhost:8080/v1/graphql +NEXT_PUBLIC_GRAPHQL_WS=ws://localhost:8080/v1/graphql +NODE_ENV=development +PORT=3000 +NEXT_PUBLIC_URL=http://localhost:3000 +NEXT_PUBLIC_RPC_WEBSOCKET=http://localhost:26657/websocket +NEXT_PUBLIC_CHAIN_TYPE=testnet diff --git a/.github/workflows/docker_production.yml b/.github/workflows/docker_production.yml index 9348cbe9a3..fcafdb8568 100644 --- a/.github/workflows/docker_production.yml +++ b/.github/workflows/docker_production.yml @@ -29,22 +29,22 @@ jobs: NEXT_PUBLIC_GRAPHQL_URL= NEXT_PUBLIC_GRAPHQL_WS= NEXT_PUBLIC_URL= - NEXT_PUBLIC_WS_CHAIN_URL= - NEXT_PUBLIC_CHAIN_STATUS= + NEXT_PUBLIC_RPC_WEBSOCKET= + NEXT_PUBLIC_CHAIN_TYPE= NODE_ENV="production" PORT=3000 if [[ $GITHUB_REF == refs/tags/desmos-morpheus-apollo-1* ]]; then NEXT_PUBLIC_GRAPHQL_URL="https://gql.morpheus.desmos.network/v1/graphql" NEXT_PUBLIC_GRAPHQL_WS="wss://gql.morpheus.desmos.network/v1/graphql" NEXT_PUBLIC_URL="https://morpheus.desmos.network" - NEXT_PUBLIC_WS_CHAIN_URL="wss://rpc.morpheus.desmos.network/websocket" - NEXT_PUBLIC_CHAIN_STATUS="testnet" + NEXT_PUBLIC_RPC_WEBSOCKET="wss://rpc.morpheus.desmos.network/websocket" + NEXT_PUBLIC_CHAIN_TYPE="testnet" fi echo ::set-output name=NEXT_PUBLIC_GRAPHQL_URL::${NEXT_PUBLIC_GRAPHQL_URL} echo ::set-output name=NEXT_PUBLIC_GRAPHQL_WS::${NEXT_PUBLIC_GRAPHQL_WS} echo ::set-output name=NEXT_PUBLIC_URL::${NEXT_PUBLIC_URL} - echo ::set-output name=NEXT_PUBLIC_WS_CHAIN_URL::${NEXT_PUBLIC_WS_CHAIN_URL} - echo ::set-output name=NEXT_PUBLIC_CHAIN_STATUS::${NEXT_PUBLIC_CHAIN_STATUS} + echo ::set-output name=NEXT_PUBLIC_RPC_WEBSOCKET::${NEXT_PUBLIC_RPC_WEBSOCKET} + echo ::set-output name=NEXT_PUBLIC_CHAIN_TYPE::${NEXT_PUBLIC_CHAIN_TYPE} echo ::set-output name=NODE_ENV::${NODE_ENV} echo ::set-output name=PORT::${PORT} - name: Set up Docker Buildx @@ -66,8 +66,8 @@ jobs: "NEXT_PUBLIC_GRAPHQL_URL=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_GRAPHQL_URL }}" "NEXT_PUBLIC_GRAPHQL_WS=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_GRAPHQL_WS }}" "NEXT_PUBLIC_URL=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_URL }}" - "NEXT_PUBLIC_WS_CHAIN_URL=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_WS_CHAIN_URL }}" - "NEXT_PUBLIC_CHAIN_STATUS=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_CHAIN_STATUS }}" + "NEXT_PUBLIC_RPC_WEBSOCKET=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_RPC_WEBSOCKET }}" + "NEXT_PUBLIC_CHAIN_TYPE=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_CHAIN_TYPE }}" "NODE_ENV=${{ steps.dockerPrep.outputs.NODE_ENV }}" "PORT=${{ steps.dockerPrep.outputs.PORT }}" labels: | diff --git a/.github/workflows/docker_staging.yml b/.github/workflows/docker_staging.yml index e3590590dc..c635441100 100644 --- a/.github/workflows/docker_staging.yml +++ b/.github/workflows/docker_staging.yml @@ -29,15 +29,15 @@ jobs: NEXT_PUBLIC_GRAPHQL_URL="https://gql.morpheus.desmos.network/v1/graphql" NEXT_PUBLIC_GRAPHQL_WS="wss://gql.morpheus.desmos.network/v1/graphql" NEXT_PUBLIC_URL="https://morpheus.desmos.network" - NEXT_PUBLIC_WS_CHAIN_URL="wss://rpc.morpheus.desmos.network/websocket" - NEXT_PUBLIC_CHAIN_STATUS="mainnet" + NEXT_PUBLIC_RPC_WEBSOCKET="wss://rpc.morpheus.desmos.network/websocket" + NEXT_PUBLIC_CHAIN_TYPE="mainnet" NODE_ENV="production" PORT=3000 echo ::set-output name=NEXT_PUBLIC_GRAPHQL_URL::${NEXT_PUBLIC_GRAPHQL_URL} echo ::set-output name=NEXT_PUBLIC_GRAPHQL_WS::${NEXT_PUBLIC_GRAPHQL_WS} echo ::set-output name=NEXT_PUBLIC_URL::${NEXT_PUBLIC_URL} - echo ::set-output name=NEXT_PUBLIC_WS_CHAIN_URL::${NEXT_PUBLIC_WS_CHAIN_URL} - echo ::set-output name=NEXT_PUBLIC_CHAIN_STATUS::${NEXT_PUBLIC_CHAIN_STATUS} + echo ::set-output name=NEXT_PUBLIC_RPC_WEBSOCKET::${NEXT_PUBLIC_RPC_WEBSOCKET} + echo ::set-output name=NEXT_PUBLIC_CHAIN_TYPE::${NEXT_PUBLIC_CHAIN_TYPE} echo ::set-output name=NODE_ENV::${NODE_ENV} echo ::set-output name=PORT::${PORT} - name: Set up Docker Buildx @@ -58,8 +58,8 @@ jobs: "NEXT_PUBLIC_GRAPHQL_URL=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_GRAPHQL_URL }}" "NEXT_PUBLIC_GRAPHQL_WS=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_GRAPHQL_WS }}" "NEXT_PUBLIC_URL=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_URL }}" - "NEXT_PUBLIC_WS_CHAIN_URL=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_WS_CHAIN_URL }}" - "NEXT_PUBLIC_CHAIN_STATUS=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_CHAIN_STATUS }}" + "NEXT_PUBLIC_RPC_WEBSOCKET=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_RPC_WEBSOCKET }}" + "NEXT_PUBLIC_CHAIN_TYPE=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_CHAIN_TYPE }}" "NODE_ENV=${{ steps.dockerPrep.outputs.NODE_ENV }}" "PORT=${{ steps.dockerPrep.outputs.PORT }}" tags: "forbole/big-dipper-2.0-cosmos:${{ steps.prep.outputs.branch }}-staging" diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d776a34fa..8131cf98c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +# base-v2.0.0-rc3 - 2021-02-25 + +## Changes +- Changed `NEXT_PUBLIC_WS_CHAIN_URL` to `NEXT_PUBLIC_RPC_WEBSOCKET` for clarification +- Changed `NEXT_PUBLIC_CHAIN_STATUS` to `NEXT_PUBLIC_CHAIN_TYPE` for clarification + +## Migration +- Change env `NEXT_PUBLIC_WS_CHAIN_URL` to `NEXT_PUBLIC_RPC_WEBSOCKET` or don't. It's backwards compatible +- Change env `NEXT_PUBLIC_CHAIN_STATUS` to `NEXT_PUBLIC_CHAIN_TYPE` or don't. It's backwards compatible + # base-v2.0.0-rc2 - 2021-02-24 ## Changes diff --git a/Dockerfile b/Dockerfile index b10d17f5a2..a11a918218 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,9 @@ ARG NEXT_PUBLIC_GRAPHQL_URL ARG NEXT_PUBLIC_GRAPHQL_WS ARG NEXT_PUBLIC_URL ARG NEXT_PUBLIC_WS_CHAIN_URL +ARG NEXT_PUBLIC_RPC_WEBSOCKET ARG NEXT_PUBLIC_CHAIN_STATUS +ARG NEXT_PUBLIC_CHAIN_TYPE ARG NODE_ENV ARG PORT @@ -32,7 +34,9 @@ ENV NEXT_PUBLIC_GRAPHQL_URL ${NEXT_PUBLIC_GRAPHQL_URL} ENV NEXT_PUBLIC_GRAPHQL_WS ${NEXT_PUBLIC_GRAPHQL_WS} ENV NEXT_PUBLIC_URL ${NEXT_PUBLIC_URL} ENV NEXT_PUBLIC_WS_CHAIN_URL ${NEXT_PUBLIC_WS_CHAIN_URL} +ENV NEXT_PUBLIC_RPC_WEBSOCKET ${NEXT_PUBLIC_RPC_WEBSOCKET} ENV NEXT_PUBLIC_CHAIN_STATUS ${NEXT_PUBLIC_CHAIN_STATUS} +ENV NEXT_PUBLIC_CHAIN_TYPE ${NEXT_PUBLIC_CHAIN_TYPE} ENV NODE_ENV ${NODE_ENV} ENV PORT ${PORT} diff --git a/src/configs/general_config.json b/src/configs/general_config.json index 1a754c4111..0de71b0194 100644 --- a/src/configs/general_config.json +++ b/src/configs/general_config.json @@ -6,5 +6,5 @@ "github": { "reportIssue": "https://github.com/forbole/big-dipper-2.0-cosmos/issues" }, - "version": "base-v2.0.0-rc2" + "version": "base-v2.0.0-rc3" } diff --git a/src/configs/index.ts b/src/configs/index.ts index 463a1ade9e..2d0842ed3f 100644 --- a/src/configs/index.ts +++ b/src/configs/index.ts @@ -7,7 +7,8 @@ import generalConfig from './general_config.json'; * @returns config */ const getChainConfig = () => { - if (process.env.NEXT_PUBLIC_CHAIN_STATUS === 'mainnet') { + const chainType = process.env.NEXT_PUBLIC_CHAIN_TYPE || process.env.NEXT_PUBLIC_CHAIN_STATUS; + if (chainType === 'mainnet') { return chainConfigMainnet; } return chainConfigTestnet; diff --git a/src/screens/home/components/consensus/hooks.tsx b/src/screens/home/components/consensus/hooks.tsx index 0dfafe6450..c4cc1a11b3 100644 --- a/src/screens/home/components/consensus/hooks.tsx +++ b/src/screens/home/components/consensus/hooks.tsx @@ -24,8 +24,11 @@ export const useConsensus = () => { proposer: '', }); + const websocketUrl = ( + process.env.NEXT_PUBLIC_RPC_WEBSOCKET || process.env.NEXT_PUBLIC_WS_CHAIN_URL); + useEffect(() => { - const client = new WebSocket(process.env.NEXT_PUBLIC_WS_CHAIN_URL); + const client = new WebSocket(websocketUrl); const stepHeader = { jsonrpc: '2.0', method: 'subscribe', From 9edd49d6ebbbcf4b7fd0fa913c1cc49ef4dd02df Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Tue, 1 Mar 2022 10:48:31 +0800 Subject: [PATCH 20/54] fix: apr error if bonded tokens is 0 (#760) --- CHANGELOG.md | 5 +++++ src/recoil/market/hooks.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8131cf98c0..6479fd2aaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# Unreleased + +## Bug fixes +- Fixed Apr error if bonded tokens is 0 ([\#758](https://github.com/forbole/big-dipper-2.0-cosmos/issues/758)) + # base-v2.0.0-rc3 - 2021-02-25 ## Changes diff --git a/src/recoil/market/hooks.ts b/src/recoil/market/hooks.ts index a810c0935a..5ffe6b7b40 100644 --- a/src/recoil/market/hooks.ts +++ b/src/recoil/market/hooks.ts @@ -60,7 +60,7 @@ export const useMarketRecoil = () => { communityPool = formatToken(communityPoolCoin.amount, communityPoolCoin.denom); } - const bondedTokens = R.pathOr(0, ['bondedTokens', 0, 'bonded_tokens'], data); + const bondedTokens = R.pathOr(1, ['bondedTokens', 0, 'bonded_tokens'], data); const apr = Big(rawSupplyAmount).times(inflation).div(bondedTokens).toNumber(); From 95e8b4233a223bfa73285902378a2de8293cd3fb Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Fri, 4 Mar 2022 21:15:14 +0800 Subject: [PATCH 21/54] update: online voting power logic (#769) --- CHANGELOG.md | 2 + next-env.d.ts | 1 + public/locales/en/home.json | 3 +- src/graphql/desmos_profile.ts | 309 + src/graphql/online_voting_power.graphql | 24 +- src/graphql/types.tsx | 13421 ++++++++++++---- .../__snapshots__/index.test.tsx.snap | 38 +- .../components/online_voting_power/hooks.tsx | 68 +- .../online_voting_power/index.test.tsx | 74 +- .../components/online_voting_power/index.tsx | 12 +- 10 files changed, 11064 insertions(+), 2888 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6479fd2aaf..a97fb514aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Unreleased +## Changes +- Changed online voting power to be a query instead of a subscription ([\#638](https://github.com/forbole/big-dipper-2.0-cosmos/issues/638)) ## Bug fixes - Fixed Apr error if bonded tokens is 0 ([\#758](https://github.com/forbole/big-dipper-2.0-cosmos/issues/758)) diff --git a/next-env.d.ts b/next-env.d.ts index 4f11a03dc6..9bc3dd46b9 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,4 +1,5 @@ /// +/// /// // NOTE: This file should not be edited diff --git a/public/locales/en/home.json b/public/locales/en/home.json index 8fa78b55e2..fd5cb15d90 100644 --- a/public/locales/en/home.json +++ b/public/locales/en/home.json @@ -28,5 +28,6 @@ "votingPower": "Voting Power", "totalVotingPower": "Total Voting Power", "lastVotingPowerChange": "Last Voting Power Change", - "powerChange": "<0>{{change}} at block " + "powerChange": "<0>{{change}} at block ", + "validators": "Validators" } diff --git a/src/graphql/desmos_profile.ts b/src/graphql/desmos_profile.ts index fdf0fb25a6..e0fb21981e 100644 --- a/src/graphql/desmos_profile.ts +++ b/src/graphql/desmos_profile.ts @@ -9,18 +9,70 @@ export type Scalars = { Boolean: boolean; Int: number; Float: number; + ActionCoin: any; + ActionDelegation: any; + ActionPagination: any; + ActionRedelegation: any; + ActionUnbondingDelegation: any; _coin: any; _dec_coin: any; _text: any; + account_balance_history_scalar: any; + account_balance_scalar: any; bigint: any; coin: any; jsonb: any; numeric: any; smallint: any; timestamp: any; + validator_scalar: 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>>; +}; + /** Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'. */ export type Boolean_Comparison_Exp = { _eq?: Maybe; @@ -669,6 +721,7 @@ export type Account_Balance_History_Order_By = { unbonding?: Maybe; }; + /** select columns of table "account_balance_history" */ export enum Account_Balance_History_Select_Column { /** column name */ @@ -689,6 +742,10 @@ export enum Account_Balance_History_Select_Column { Unbonding = 'unbonding' } +export type Account_Balance_History_Tokens_Prices_Args = { + balance_row?: Maybe; +}; + /** aggregate max on columns */ export type Account_Balance_Max_Fields = { __typename?: 'account_balance_max_fields'; @@ -724,6 +781,7 @@ export type Account_Balance_Order_By = { height?: Maybe; }; + /** select columns of table "account_balance" */ export enum Account_Balance_Select_Column { /** column name */ @@ -778,6 +836,10 @@ export type Account_Balance_Sum_Order_By = { height?: Maybe; }; +export type Account_Balance_Tokens_Prices_Args = { + account_balance_row?: Maybe; +}; + /** aggregate var_pop on columns */ export type Account_Balance_Var_Pop_Fields = { __typename?: 'account_balance_var_pop_fields'; @@ -10123,8 +10185,28 @@ export type Query_Root = { account_balance_history: Array; /** fetch aggregated fields from the table: "account_balance_history" */ account_balance_history_aggregate: Account_Balance_History_Aggregate; + /** execute function "account_balance_history_tokens_prices" which returns "token_price_history" */ + account_balance_history_tokens_prices: Array; + /** execute function "account_balance_history_tokens_prices" and query aggregates on result of table type "token_price_history" */ + account_balance_history_tokens_prices_aggregate: Token_Price_History_Aggregate; + /** execute function "account_balance_tokens_prices" which returns "token_price" */ + account_balance_tokens_prices: Array; + /** execute function "account_balance_tokens_prices" and query aggregates on result of table type "token_price" */ + account_balance_tokens_prices_aggregate: Token_Price_Aggregate; /** 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: "application_link" */ application_link: Array; /** fetch aggregated fields from the table: "application_link" */ @@ -10343,6 +10425,10 @@ export type Query_Root = { registered_reactions: Array; /** An aggregate relationship */ registered_reactions_aggregate: Registered_Reactions_Aggregate; + /** execute function "self_delegations" which returns "delegation" */ + self_delegations: Array; + /** execute function "self_delegations" and query aggregates on result of table type "delegation" */ + self_delegations_aggregate: Delegation_Aggregate; /** fetch data from the table: "slashing_params" */ slashing_params: Array; /** fetch aggregated fields from the table: "slashing_params" */ @@ -10519,11 +10605,137 @@ export type Query_RootAccount_Balance_History_AggregateArgs = { }; +export type Query_RootAccount_Balance_History_Tokens_PricesArgs = { + args: Account_Balance_History_Tokens_Prices_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAccount_Balance_History_Tokens_Prices_AggregateArgs = { + args: Account_Balance_History_Tokens_Prices_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAccount_Balance_Tokens_PricesArgs = { + args: Account_Balance_Tokens_Prices_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAccount_Balance_Tokens_Prices_AggregateArgs = { + args: Account_Balance_Tokens_Prices_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Query_RootAccount_By_PkArgs = { address: Scalars['String']; }; +export type Query_RootAction_Account_BalanceArgs = { + address: Scalars['String']; + height?: Maybe; +}; + + +export type Query_RootAction_DelegationArgs = { + address: Scalars['String']; + count_total?: Maybe; + height?: Maybe; + limit?: Maybe; + offset?: Maybe; +}; + + +export type Query_RootAction_Delegation_RewardArgs = { + address: Scalars['String']; + height?: Maybe; +}; + + +export type Query_RootAction_Delegation_TotalArgs = { + address: Scalars['String']; + height?: Maybe; +}; + + +export type Query_RootAction_Delegator_Withdraw_AddressArgs = { + address: Scalars['String']; +}; + + +export type Query_RootAction_RedelegationArgs = { + address: Scalars['String']; + count_total?: Maybe; + height?: Maybe; + limit?: Maybe; + offset?: Maybe; +}; + + +export type Query_RootAction_Unbonding_DelegationArgs = { + address: Scalars['String']; + count_total?: Maybe; + height?: Maybe; + limit?: Maybe; + offset?: Maybe; +}; + + +export type Query_RootAction_Unbonding_Delegation_TotalArgs = { + address: Scalars['String']; + height?: Maybe; +}; + + +export type Query_RootAction_Validator_Commission_AmountArgs = { + address: Scalars['String']; +}; + + +export type Query_RootAction_Validator_DelegationsArgs = { + address: Scalars['String']; + count_total?: Maybe; + limit?: Maybe; + offset?: Maybe; +}; + + +export type Query_RootAction_Validator_Redelegations_FromArgs = { + address: Scalars['String']; + count_total?: Maybe; + height?: Maybe; + limit?: Maybe; + offset?: Maybe; +}; + + +export type Query_RootAction_Validator_Unbonding_DelegationsArgs = { + address: Scalars['String']; + count_total?: Maybe; + limit?: Maybe; + offset?: Maybe; +}; + + export type Query_RootApplication_LinkArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -11427,6 +11639,26 @@ export type Query_RootRegistered_Reactions_AggregateArgs = { }; +export type Query_RootSelf_DelegationsArgs = { + args: Self_Delegations_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootSelf_Delegations_AggregateArgs = { + args: Self_Delegations_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Query_RootSlashing_ParamsArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -12340,6 +12572,10 @@ export type Registered_Reactions_Variance_Order_By = { height?: Maybe; }; +export type Self_Delegations_Args = { + validator_row?: Maybe; +}; + /** columns and relationships of "slashing_params" */ export type Slashing_Params = { __typename?: 'slashing_params'; @@ -12777,6 +13013,14 @@ export type Subscription_Root = { account_balance_history: Array; /** fetch aggregated fields from the table: "account_balance_history" */ account_balance_history_aggregate: Account_Balance_History_Aggregate; + /** execute function "account_balance_history_tokens_prices" which returns "token_price_history" */ + account_balance_history_tokens_prices: Array; + /** execute function "account_balance_history_tokens_prices" and query aggregates on result of table type "token_price_history" */ + account_balance_history_tokens_prices_aggregate: Token_Price_History_Aggregate; + /** execute function "account_balance_tokens_prices" which returns "token_price" */ + account_balance_tokens_prices: Array; + /** execute function "account_balance_tokens_prices" and query aggregates on result of table type "token_price" */ + account_balance_tokens_prices_aggregate: Token_Price_Aggregate; /** fetch data from the table: "account" using primary key columns */ account_by_pk?: Maybe; /** fetch data from the table: "application_link" */ @@ -12997,6 +13241,10 @@ export type Subscription_Root = { registered_reactions: Array; /** An aggregate relationship */ registered_reactions_aggregate: Registered_Reactions_Aggregate; + /** execute function "self_delegations" which returns "delegation" */ + self_delegations: Array; + /** execute function "self_delegations" and query aggregates on result of table type "delegation" */ + self_delegations_aggregate: Delegation_Aggregate; /** fetch data from the table: "slashing_params" */ slashing_params: Array; /** fetch aggregated fields from the table: "slashing_params" */ @@ -13173,6 +13421,46 @@ export type Subscription_RootAccount_Balance_History_AggregateArgs = { }; +export type Subscription_RootAccount_Balance_History_Tokens_PricesArgs = { + args: Account_Balance_History_Tokens_Prices_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootAccount_Balance_History_Tokens_Prices_AggregateArgs = { + args: Account_Balance_History_Tokens_Prices_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootAccount_Balance_Tokens_PricesArgs = { + args: Account_Balance_Tokens_Prices_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootAccount_Balance_Tokens_Prices_AggregateArgs = { + args: Account_Balance_Tokens_Prices_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Subscription_RootAccount_By_PkArgs = { address: Scalars['String']; }; @@ -14081,6 +14369,26 @@ export type Subscription_RootRegistered_Reactions_AggregateArgs = { }; +export type Subscription_RootSelf_DelegationsArgs = { + args: Self_Delegations_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootSelf_Delegations_AggregateArgs = { + args: Self_Delegations_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Subscription_RootSlashing_ParamsArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -17955,6 +18263,7 @@ export type Validator_Order_By = { validator_voting_powers_aggregate?: Maybe; }; + /** select columns of table "validator" */ export enum Validator_Select_Column { /** column name */ diff --git a/src/graphql/online_voting_power.graphql b/src/graphql/online_voting_power.graphql index 70b922c161..b53f8890ab 100644 --- a/src/graphql/online_voting_power.graphql +++ b/src/graphql/online_voting_power.graphql @@ -1,23 +1,19 @@ -subscription OnlineVotingPowerListener { - block(offset: 0, limit: 1, order_by: {height: desc}) { - height - validatorVotingPowersAggregate: validator_voting_powers_aggregate { - aggregate { - sum { - votingPower: voting_power - } +query OnlineVotingPower { + activeTotal: validator_status_aggregate(where: {status: {_eq: 3}}) { + aggregate { + count + } + } + validatorVotingPowerAggregate: validator_voting_power_aggregate { + aggregate { + sum { + votingPower: voting_power } } } -} - -subscription TotalVotingPowerListener { stakingPool: staking_pool(order_by: {height: desc}, limit: 1) { bonded: bonded_tokens } -} - -query StakingParams { stakingParams: staking_params(limit: 1) { params } diff --git a/src/graphql/types.tsx b/src/graphql/types.tsx index 0f52aa6ab2..e7c09b6c59 100644 --- a/src/graphql/types.tsx +++ b/src/graphql/types.tsx @@ -20,11 +20,15 @@ export type Scalars = { _coin: any; _dec_coin: any; _text: any; + account_balance_history_scalar: any; + account_balance_scalar: any; bigint: any; + coin: any; jsonb: any; numeric: any; smallint: any; timestamp: any; + validator_scalar: any; }; @@ -176,8 +180,32 @@ export type _Text_Comparison_Exp = { /** columns and relationships of "account" */ export type Account = { __typename?: 'account'; + /** An array relationship */ + account_balance_histories: Array; + /** An aggregate relationship */ + account_balance_histories_aggregate: Account_Balance_History_Aggregate; + /** An array relationship */ + account_balances: Array; + /** An aggregate relationship */ + account_balances_aggregate: Account_Balance_Aggregate; address: Scalars['String']; /** An array relationship */ + delegation_rewards: Array; + /** An aggregate relationship */ + delegation_rewards_aggregate: Delegation_Reward_Aggregate; + /** An array relationship */ + delegations: Array; + /** An aggregate relationship */ + delegations_aggregate: Delegation_Aggregate; + /** An array relationship */ + feeGrantAllowancesByGranterAddress: Array; + /** An aggregate relationship */ + feeGrantAllowancesByGranterAddress_aggregate: Fee_Grant_Allowance_Aggregate; + /** An array relationship */ + fee_grant_allowances: Array; + /** An aggregate relationship */ + fee_grant_allowances_aggregate: Fee_Grant_Allowance_Aggregate; + /** An array relationship */ proposal_deposits: Array; /** An aggregate relationship */ proposal_deposits_aggregate: Proposal_Deposit_Aggregate; @@ -190,6 +218,14 @@ export type Account = { /** An aggregate relationship */ proposals_aggregate: Proposal_Aggregate; /** An array relationship */ + redelegations: Array; + /** An aggregate relationship */ + redelegations_aggregate: Redelegation_Aggregate; + /** An array relationship */ + unbonding_delegations: Array; + /** An aggregate relationship */ + unbonding_delegations_aggregate: Unbonding_Delegation_Aggregate; + /** An array relationship */ validator_infos: Array; /** An aggregate relationship */ validator_infos_aggregate: Validator_Info_Aggregate; @@ -202,6 +238,126 @@ export type Account = { }; +/** columns and relationships of "account" */ +export type AccountAccount_Balance_HistoriesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountAccount_Balance_Histories_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountAccount_BalancesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountAccount_Balances_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountDelegation_RewardsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountDelegation_Rewards_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountDelegationsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountDelegations_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountFeeGrantAllowancesByGranterAddressArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountFeeGrantAllowancesByGranterAddress_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountFee_Grant_AllowancesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountFee_Grant_Allowances_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + /** columns and relationships of "account" */ export type AccountProposal_DepositsArgs = { distinct_on?: Maybe>; @@ -262,6 +418,46 @@ export type AccountProposals_AggregateArgs = { }; +/** columns and relationships of "account" */ +export type AccountRedelegationsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountRedelegations_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountUnbonding_DelegationsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "account" */ +export type AccountUnbonding_Delegations_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + /** columns and relationships of "account" */ export type AccountValidator_InfosArgs = { distinct_on?: Maybe>; @@ -323,3107 +519,8089 @@ export type Account_Aggregate_FieldsCountArgs = { distinct?: Maybe; }; -/** Boolean expression to filter rows from the table "account". All fields are combined with a logical 'AND'. */ -export type Account_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - address?: Maybe; - proposal_deposits?: Maybe; - proposal_votes?: Maybe; - proposals?: Maybe; - validator_infos?: Maybe; - vesting_account?: Maybe; - vesting_accounts?: Maybe; -}; - -/** aggregate max on columns */ -export type Account_Max_Fields = { - __typename?: 'account_max_fields'; - address?: Maybe; -}; - -/** aggregate min on columns */ -export type Account_Min_Fields = { - __typename?: 'account_min_fields'; - address?: Maybe; -}; - -/** Ordering options when selecting data from "account". */ -export type Account_Order_By = { - address?: Maybe; - proposal_deposits_aggregate?: Maybe; - proposal_votes_aggregate?: Maybe; - proposals_aggregate?: Maybe; - validator_infos_aggregate?: Maybe; - vesting_account?: Maybe; - vesting_accounts_aggregate?: Maybe; +/** columns and relationships of "account_balance" */ +export type Account_Balance = { + __typename?: 'account_balance'; + /** An object relationship */ + account: Account; + address: Scalars['String']; + /** An object relationship */ + block?: Maybe; + coins: Scalars['_coin']; + height: Scalars['bigint']; + /** A computed field, executes function "account_balance_tokens_prices" */ + tokens_prices?: Maybe>; }; -/** 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']; +/** columns and relationships of "account_balance" */ +export type Account_BalanceTokens_PricesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregated selection of "average_block_time_from_genesis" */ -export type Average_Block_Time_From_Genesis_Aggregate = { - __typename?: 'average_block_time_from_genesis_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "account_balance" */ +export type Account_Balance_Aggregate = { + __typename?: 'account_balance_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "average_block_time_from_genesis" */ -export type Average_Block_Time_From_Genesis_Aggregate_Fields = { - __typename?: 'average_block_time_from_genesis_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "account_balance" */ +export type Account_Balance_Aggregate_Fields = { + __typename?: 'account_balance_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; + 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 "average_block_time_from_genesis" */ -export type Average_Block_Time_From_Genesis_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "account_balance" */ +export type Account_Balance_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; +/** order by aggregate values of table "account_balance" */ +export type Account_Balance_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + /** aggregate avg on columns */ -export type Average_Block_Time_From_Genesis_Avg_Fields = { - __typename?: 'average_block_time_from_genesis_avg_fields'; - average_time?: Maybe; +export type Account_Balance_Avg_Fields = { + __typename?: 'account_balance_avg_fields'; height?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - average_time?: Maybe; +/** order by avg() on columns of table "account_balance" */ +export type Account_Balance_Avg_Order_By = { + height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "account_balance". All fields are combined with a logical 'AND'. */ +export type Account_Balance_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + account?: Maybe; + address?: Maybe; + block?: Maybe; + coins?: Maybe<_Coin_Comparison_Exp>; height?: Maybe; + tokens_prices?: Maybe; }; -/** aggregate max on columns */ -export type Average_Block_Time_From_Genesis_Max_Fields = { - __typename?: 'average_block_time_from_genesis_max_fields'; - average_time?: Maybe; - height?: Maybe; +/** columns and relationships of "account_balance_history" */ +export type Account_Balance_History = { + __typename?: 'account_balance_history'; + /** An object relationship */ + account: Account; + address: Scalars['String']; + balance: Scalars['_coin']; + commission: Scalars['_dec_coin']; + delegated: Scalars['_coin']; + redelegating: Scalars['_coin']; + reward: Scalars['_dec_coin']; + timestamp?: Maybe; + /** A computed field, executes function "account_balance_history_tokens_prices" */ + token_prices_history?: Maybe>; + unbonding: Scalars['_coin']; }; -/** aggregate min on columns */ -export type Average_Block_Time_From_Genesis_Min_Fields = { - __typename?: 'average_block_time_from_genesis_min_fields'; - average_time?: Maybe; - height?: Maybe; + +/** columns and relationships of "account_balance_history" */ +export type Account_Balance_HistoryToken_Prices_HistoryArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** Ordering options when selecting data from "average_block_time_from_genesis". */ -export type Average_Block_Time_From_Genesis_Order_By = { - average_time?: Maybe; - height?: Maybe; +/** aggregated selection of "account_balance_history" */ +export type Account_Balance_History_Aggregate = { + __typename?: 'account_balance_history_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** 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' -} +/** aggregate fields of "account_balance_history" */ +export type Account_Balance_History_Aggregate_Fields = { + __typename?: 'account_balance_history_aggregate_fields'; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; +}; -/** aggregate stddev on columns */ -export type Average_Block_Time_From_Genesis_Stddev_Fields = { - __typename?: 'average_block_time_from_genesis_stddev_fields'; - average_time?: Maybe; - height?: Maybe; + +/** aggregate fields of "account_balance_history" */ +export type Account_Balance_History_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Average_Block_Time_From_Genesis_Stddev_Pop_Fields = { - __typename?: 'average_block_time_from_genesis_stddev_pop_fields'; - average_time?: Maybe; - height?: Maybe; +/** order by aggregate values of table "account_balance_history" */ +export type Account_Balance_History_Aggregate_Order_By = { + count?: Maybe; + max?: Maybe; + min?: Maybe; }; -/** aggregate stddev_samp on columns */ -export type Average_Block_Time_From_Genesis_Stddev_Samp_Fields = { - __typename?: 'average_block_time_from_genesis_stddev_samp_fields'; - average_time?: Maybe; - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Average_Block_Time_From_Genesis_Sum_Fields = { - __typename?: 'average_block_time_from_genesis_sum_fields'; - average_time?: Maybe; - height?: Maybe; +/** Boolean expression to filter rows from the table "account_balance_history". All fields are combined with a logical 'AND'. */ +export type Account_Balance_History_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + account?: Maybe; + address?: Maybe; + balance?: Maybe<_Coin_Comparison_Exp>; + commission?: Maybe<_Dec_Coin_Comparison_Exp>; + delegated?: Maybe<_Coin_Comparison_Exp>; + redelegating?: Maybe<_Coin_Comparison_Exp>; + reward?: Maybe<_Dec_Coin_Comparison_Exp>; + timestamp?: Maybe; + token_prices_history?: Maybe; + unbonding?: Maybe<_Coin_Comparison_Exp>; }; -/** aggregate var_pop on columns */ -export type Average_Block_Time_From_Genesis_Var_Pop_Fields = { - __typename?: 'average_block_time_from_genesis_var_pop_fields'; - average_time?: Maybe; - height?: Maybe; +/** aggregate max on columns */ +export type Account_Balance_History_Max_Fields = { + __typename?: 'account_balance_history_max_fields'; + address?: Maybe; + timestamp?: Maybe; }; -/** aggregate var_samp on columns */ -export type Average_Block_Time_From_Genesis_Var_Samp_Fields = { - __typename?: 'average_block_time_from_genesis_var_samp_fields'; - average_time?: Maybe; - height?: Maybe; +/** order by max() on columns of table "account_balance_history" */ +export type Account_Balance_History_Max_Order_By = { + address?: Maybe; + timestamp?: Maybe; }; -/** aggregate variance on columns */ -export type Average_Block_Time_From_Genesis_Variance_Fields = { - __typename?: 'average_block_time_from_genesis_variance_fields'; - average_time?: Maybe; - height?: Maybe; +/** aggregate min on columns */ +export type Account_Balance_History_Min_Fields = { + __typename?: 'account_balance_history_min_fields'; + address?: Maybe; + timestamp?: Maybe; }; -/** 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']; +/** order by min() on columns of table "account_balance_history" */ +export type Account_Balance_History_Min_Order_By = { + address?: Maybe; + timestamp?: Maybe; }; -/** aggregated selection of "average_block_time_per_day" */ -export type Average_Block_Time_Per_Day_Aggregate = { - __typename?: 'average_block_time_per_day_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** Ordering options when selecting data from "account_balance_history". */ +export type Account_Balance_History_Order_By = { + account?: Maybe; + address?: Maybe; + balance?: Maybe; + commission?: Maybe; + delegated?: Maybe; + redelegating?: Maybe; + reward?: Maybe; + timestamp?: Maybe; + unbonding?: Maybe; }; -/** aggregate fields of "average_block_time_per_day" */ -export type Average_Block_Time_Per_Day_Aggregate_Fields = { - __typename?: 'average_block_time_per_day_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; -}; +/** select columns of table "account_balance_history" */ +export enum Account_Balance_History_Select_Column { + /** column name */ + Address = 'address', + /** column name */ + Balance = 'balance', + /** column name */ + Commission = 'commission', + /** column name */ + Delegated = 'delegated', + /** column name */ + Redelegating = 'redelegating', + /** column name */ + Reward = 'reward', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + Unbonding = 'unbonding' +} -/** aggregate fields of "average_block_time_per_day" */ -export type Average_Block_Time_Per_Day_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +export type Account_Balance_History_Tokens_Prices_Args = { + balance_row?: Maybe; }; -/** aggregate avg on columns */ -export type Average_Block_Time_Per_Day_Avg_Fields = { - __typename?: 'average_block_time_per_day_avg_fields'; - average_time?: Maybe; - height?: Maybe; +/** aggregate max on columns */ +export type Account_Balance_Max_Fields = { + __typename?: 'account_balance_max_fields'; + address?: Maybe; + height?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - average_time?: Maybe; - height?: Maybe; +/** order by max() on columns of table "account_balance" */ +export type Account_Balance_Max_Order_By = { + address?: Maybe; + height?: Maybe; }; -/** aggregate max on columns */ -export type Average_Block_Time_Per_Day_Max_Fields = { - __typename?: 'average_block_time_per_day_max_fields'; - average_time?: Maybe; +/** aggregate min on columns */ +export type Account_Balance_Min_Fields = { + __typename?: 'account_balance_min_fields'; + address?: Maybe; height?: Maybe; }; -/** aggregate min on columns */ -export type Average_Block_Time_Per_Day_Min_Fields = { - __typename?: 'average_block_time_per_day_min_fields'; - average_time?: Maybe; - height?: Maybe; +/** order by min() on columns of table "account_balance" */ +export type Account_Balance_Min_Order_By = { + address?: Maybe; + height?: Maybe; }; -/** Ordering options when selecting data from "average_block_time_per_day". */ -export type Average_Block_Time_Per_Day_Order_By = { - average_time?: Maybe; +/** Ordering options when selecting data from "account_balance". */ +export type Account_Balance_Order_By = { + account?: Maybe; + address?: Maybe; + block?: Maybe; + coins?: Maybe; height?: Maybe; }; -/** select columns of table "average_block_time_per_day" */ -export enum Average_Block_Time_Per_Day_Select_Column { + +/** select columns of table "account_balance" */ +export enum Account_Balance_Select_Column { /** column name */ - AverageTime = 'average_time', + Address = 'address', + /** column name */ + Coins = 'coins', /** column name */ Height = 'height' } /** aggregate stddev on columns */ -export type Average_Block_Time_Per_Day_Stddev_Fields = { - __typename?: 'average_block_time_per_day_stddev_fields'; - average_time?: Maybe; +export type Account_Balance_Stddev_Fields = { + __typename?: 'account_balance_stddev_fields'; height?: Maybe; }; +/** order by stddev() on columns of table "account_balance" */ +export type Account_Balance_Stddev_Order_By = { + height?: Maybe; +}; + /** aggregate stddev_pop on columns */ -export type Average_Block_Time_Per_Day_Stddev_Pop_Fields = { - __typename?: 'average_block_time_per_day_stddev_pop_fields'; - average_time?: Maybe; +export type Account_Balance_Stddev_Pop_Fields = { + __typename?: 'account_balance_stddev_pop_fields'; height?: Maybe; }; +/** order by stddev_pop() on columns of table "account_balance" */ +export type Account_Balance_Stddev_Pop_Order_By = { + height?: Maybe; +}; + /** aggregate stddev_samp on columns */ -export type Average_Block_Time_Per_Day_Stddev_Samp_Fields = { - __typename?: 'average_block_time_per_day_stddev_samp_fields'; - average_time?: Maybe; +export type Account_Balance_Stddev_Samp_Fields = { + __typename?: 'account_balance_stddev_samp_fields'; height?: Maybe; }; +/** order by stddev_samp() on columns of table "account_balance" */ +export type Account_Balance_Stddev_Samp_Order_By = { + height?: Maybe; +}; + /** aggregate sum on columns */ -export type Average_Block_Time_Per_Day_Sum_Fields = { - __typename?: 'average_block_time_per_day_sum_fields'; - average_time?: Maybe; +export type Account_Balance_Sum_Fields = { + __typename?: 'account_balance_sum_fields'; height?: Maybe; }; -/** aggregate var_pop on columns */ -export type Average_Block_Time_Per_Day_Var_Pop_Fields = { - __typename?: 'average_block_time_per_day_var_pop_fields'; - average_time?: Maybe; - height?: Maybe; +/** order by sum() on columns of table "account_balance" */ +export type Account_Balance_Sum_Order_By = { + height?: Maybe; }; -/** aggregate var_samp on columns */ -export type Average_Block_Time_Per_Day_Var_Samp_Fields = { - __typename?: 'average_block_time_per_day_var_samp_fields'; - average_time?: Maybe; - height?: Maybe; +export type Account_Balance_Tokens_Prices_Args = { + account_balance_row?: Maybe; }; -/** aggregate variance on columns */ -export type Average_Block_Time_Per_Day_Variance_Fields = { - __typename?: 'average_block_time_per_day_variance_fields'; - average_time?: Maybe; +/** aggregate var_pop on columns */ +export type Account_Balance_Var_Pop_Fields = { + __typename?: 'account_balance_var_pop_fields'; height?: Maybe; }; -/** 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']; +/** order by var_pop() on columns of table "account_balance" */ +export type Account_Balance_Var_Pop_Order_By = { + height?: Maybe; }; -/** aggregated selection of "average_block_time_per_hour" */ -export type Average_Block_Time_Per_Hour_Aggregate = { - __typename?: 'average_block_time_per_hour_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregate var_samp on columns */ +export type Account_Balance_Var_Samp_Fields = { + __typename?: 'account_balance_var_samp_fields'; + height?: Maybe; }; -/** aggregate fields of "average_block_time_per_hour" */ -export type Average_Block_Time_Per_Hour_Aggregate_Fields = { - __typename?: 'average_block_time_per_hour_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; +/** order by var_samp() on columns of table "account_balance" */ +export type Account_Balance_Var_Samp_Order_By = { + height?: Maybe; }; - -/** aggregate fields of "average_block_time_per_hour" */ -export type Average_Block_Time_Per_Hour_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** aggregate variance on columns */ +export type Account_Balance_Variance_Fields = { + __typename?: 'account_balance_variance_fields'; + height?: Maybe; }; -/** aggregate avg on columns */ -export type Average_Block_Time_Per_Hour_Avg_Fields = { - __typename?: 'average_block_time_per_hour_avg_fields'; - average_time?: Maybe; - height?: Maybe; +/** order by variance() on columns of table "account_balance" */ +export type Account_Balance_Variance_Order_By = { + height?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - average_time?: Maybe; - height?: Maybe; +/** Boolean expression to filter rows from the table "account". All fields are combined with a logical 'AND'. */ +export type Account_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + account_balance_histories?: Maybe; + account_balances?: Maybe; + address?: Maybe; + delegation_rewards?: Maybe; + delegations?: Maybe; + feeGrantAllowancesByGranterAddress?: Maybe; + fee_grant_allowances?: Maybe; + proposal_deposits?: Maybe; + proposal_votes?: Maybe; + proposals?: Maybe; + redelegations?: Maybe; + unbonding_delegations?: Maybe; + validator_infos?: Maybe; + vesting_account?: Maybe; + vesting_accounts?: Maybe; }; /** aggregate max on columns */ -export type Average_Block_Time_Per_Hour_Max_Fields = { - __typename?: 'average_block_time_per_hour_max_fields'; - average_time?: Maybe; - height?: Maybe; +export type Account_Max_Fields = { + __typename?: 'account_max_fields'; + address?: Maybe; }; /** aggregate min on columns */ -export type Average_Block_Time_Per_Hour_Min_Fields = { - __typename?: 'average_block_time_per_hour_min_fields'; - average_time?: Maybe; - height?: Maybe; +export type Account_Min_Fields = { + __typename?: 'account_min_fields'; + address?: Maybe; }; -/** Ordering options when selecting data from "average_block_time_per_hour". */ -export type Average_Block_Time_Per_Hour_Order_By = { - average_time?: Maybe; - height?: Maybe; +/** Ordering options when selecting data from "account". */ +export type Account_Order_By = { + account_balance_histories_aggregate?: Maybe; + account_balances_aggregate?: Maybe; + address?: Maybe; + delegation_rewards_aggregate?: Maybe; + delegations_aggregate?: Maybe; + feeGrantAllowancesByGranterAddress_aggregate?: Maybe; + fee_grant_allowances_aggregate?: Maybe; + proposal_deposits_aggregate?: Maybe; + proposal_votes_aggregate?: Maybe; + proposals_aggregate?: Maybe; + redelegations_aggregate?: Maybe; + unbonding_delegations_aggregate?: Maybe; + validator_infos_aggregate?: Maybe; + vesting_account?: Maybe; + vesting_accounts_aggregate?: Maybe; }; -/** select columns of table "average_block_time_per_hour" */ -export enum Average_Block_Time_Per_Hour_Select_Column { +/** select columns of table "account" */ +export enum Account_Select_Column { /** column name */ - AverageTime = 'average_time', - /** column name */ - Height = 'height' + Address = 'address' } -/** aggregate stddev on columns */ -export type Average_Block_Time_Per_Hour_Stddev_Fields = { - __typename?: 'average_block_time_per_hour_stddev_fields'; - average_time?: Maybe; - height?: Maybe; +/** columns and relationships of "application_link" */ +export type Application_Link = { + __typename?: 'application_link'; + application: Scalars['String']; + /** An array relationship */ + application_link_oracle_requests: Array; + /** An aggregate relationship */ + application_link_oracle_requests_aggregate: Application_Link_Oracle_Request_Aggregate; + creation_time: Scalars['timestamp']; + height: Scalars['bigint']; + id: Scalars['Int']; + /** An object relationship */ + profile: Profile; + result?: Maybe; + state: Scalars['String']; + user_address: Scalars['String']; + username: Scalars['String']; }; -/** aggregate stddev_pop on columns */ -export type Average_Block_Time_Per_Hour_Stddev_Pop_Fields = { - __typename?: 'average_block_time_per_hour_stddev_pop_fields'; - average_time?: Maybe; - height?: Maybe; + +/** columns and relationships of "application_link" */ +export type Application_LinkApplication_Link_Oracle_RequestsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate stddev_samp on columns */ -export type Average_Block_Time_Per_Hour_Stddev_Samp_Fields = { - __typename?: 'average_block_time_per_hour_stddev_samp_fields'; - average_time?: Maybe; + +/** columns and relationships of "application_link" */ +export type Application_LinkApplication_Link_Oracle_Requests_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "application_link" */ +export type Application_LinkResultArgs = { + path?: Maybe; +}; + +/** aggregated selection of "application_link" */ +export type Application_Link_Aggregate = { + __typename?: 'application_link_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "application_link" */ +export type Application_Link_Aggregate_Fields = { + __typename?: 'application_link_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 "application_link" */ +export type Application_Link_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "application_link" */ +export type Application_Link_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Application_Link_Avg_Fields = { + __typename?: 'application_link_avg_fields'; height?: Maybe; + id?: Maybe; }; -/** aggregate sum on columns */ -export type Average_Block_Time_Per_Hour_Sum_Fields = { - __typename?: 'average_block_time_per_hour_sum_fields'; - average_time?: Maybe; +/** order by avg() on columns of table "application_link" */ +export type Application_Link_Avg_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** Boolean expression to filter rows from the table "application_link". All fields are combined with a logical 'AND'. */ +export type Application_Link_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + application?: Maybe; + application_link_oracle_requests?: Maybe; + creation_time?: Maybe; + height?: Maybe; + id?: Maybe; + profile?: Maybe; + result?: Maybe; + state?: Maybe; + user_address?: Maybe; + username?: Maybe; +}; + +/** aggregate max on columns */ +export type Application_Link_Max_Fields = { + __typename?: 'application_link_max_fields'; + application?: Maybe; + creation_time?: Maybe; height?: Maybe; + id?: Maybe; + state?: Maybe; + user_address?: Maybe; + username?: Maybe; }; -/** aggregate var_pop on columns */ -export type Average_Block_Time_Per_Hour_Var_Pop_Fields = { - __typename?: 'average_block_time_per_hour_var_pop_fields'; - average_time?: Maybe; - height?: Maybe; +/** order by max() on columns of table "application_link" */ +export type Application_Link_Max_Order_By = { + application?: Maybe; + creation_time?: Maybe; + height?: Maybe; + id?: Maybe; + state?: Maybe; + user_address?: Maybe; + username?: Maybe; }; -/** aggregate var_samp on columns */ -export type Average_Block_Time_Per_Hour_Var_Samp_Fields = { - __typename?: 'average_block_time_per_hour_var_samp_fields'; - average_time?: Maybe; - height?: Maybe; +/** aggregate min on columns */ +export type Application_Link_Min_Fields = { + __typename?: 'application_link_min_fields'; + application?: Maybe; + creation_time?: Maybe; + height?: Maybe; + id?: Maybe; + state?: Maybe; + user_address?: Maybe; + username?: Maybe; }; -/** aggregate variance on columns */ -export type Average_Block_Time_Per_Hour_Variance_Fields = { - __typename?: 'average_block_time_per_hour_variance_fields'; - average_time?: Maybe; - height?: Maybe; +/** order by min() on columns of table "application_link" */ +export type Application_Link_Min_Order_By = { + application?: Maybe; + creation_time?: Maybe; + height?: Maybe; + id?: Maybe; + state?: Maybe; + user_address?: Maybe; + username?: Maybe; }; -/** 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']; +/** columns and relationships of "application_link_oracle_request" */ +export type Application_Link_Oracle_Request = { + __typename?: 'application_link_oracle_request'; + /** An object relationship */ + application_link: Application_Link; + application_link_id: Scalars['bigint']; + call_data: Scalars['jsonb']; + client_id: Scalars['String']; height: Scalars['bigint']; + id: Scalars['Int']; + request_id: Scalars['bigint']; + script_id: Scalars['bigint']; }; -/** aggregated selection of "average_block_time_per_minute" */ -export type Average_Block_Time_Per_Minute_Aggregate = { - __typename?: 'average_block_time_per_minute_aggregate'; - aggregate?: Maybe; - nodes: Array; + +/** columns and relationships of "application_link_oracle_request" */ +export type Application_Link_Oracle_RequestCall_DataArgs = { + path?: Maybe; }; -/** aggregate fields of "average_block_time_per_minute" */ -export type Average_Block_Time_Per_Minute_Aggregate_Fields = { - __typename?: 'average_block_time_per_minute_aggregate_fields'; - avg?: Maybe; +/** aggregated selection of "application_link_oracle_request" */ +export type Application_Link_Oracle_Request_Aggregate = { + __typename?: 'application_link_oracle_request_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "application_link_oracle_request" */ +export type Application_Link_Oracle_Request_Aggregate_Fields = { + __typename?: 'application_link_oracle_request_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; + 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 "average_block_time_per_minute" */ -export type Average_Block_Time_Per_Minute_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "application_link_oracle_request" */ +export type Application_Link_Oracle_Request_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; +/** order by aggregate values of table "application_link_oracle_request" */ +export type Application_Link_Oracle_Request_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + /** aggregate avg on columns */ -export type Average_Block_Time_Per_Minute_Avg_Fields = { - __typename?: 'average_block_time_per_minute_avg_fields'; - average_time?: Maybe; +export type Application_Link_Oracle_Request_Avg_Fields = { + __typename?: 'application_link_oracle_request_avg_fields'; + application_link_id?: Maybe; height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - average_time?: Maybe; +/** order by avg() on columns of table "application_link_oracle_request" */ +export type Application_Link_Oracle_Request_Avg_Order_By = { + application_link_id?: Maybe; + height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; +}; + +/** Boolean expression to filter rows from the table "application_link_oracle_request". All fields are combined with a logical 'AND'. */ +export type Application_Link_Oracle_Request_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + application_link?: Maybe; + application_link_id?: Maybe; + call_data?: Maybe; + client_id?: Maybe; height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; }; /** aggregate max on columns */ -export type Average_Block_Time_Per_Minute_Max_Fields = { - __typename?: 'average_block_time_per_minute_max_fields'; - average_time?: Maybe; +export type Application_Link_Oracle_Request_Max_Fields = { + __typename?: 'application_link_oracle_request_max_fields'; + application_link_id?: Maybe; + client_id?: Maybe; height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; +}; + +/** order by max() on columns of table "application_link_oracle_request" */ +export type Application_Link_Oracle_Request_Max_Order_By = { + application_link_id?: Maybe; + client_id?: Maybe; + height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; }; /** aggregate min on columns */ -export type Average_Block_Time_Per_Minute_Min_Fields = { - __typename?: 'average_block_time_per_minute_min_fields'; - average_time?: Maybe; +export type Application_Link_Oracle_Request_Min_Fields = { + __typename?: 'application_link_oracle_request_min_fields'; + application_link_id?: Maybe; + client_id?: Maybe; height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; }; -/** Ordering options when selecting data from "average_block_time_per_minute". */ -export type Average_Block_Time_Per_Minute_Order_By = { - average_time?: Maybe; +/** order by min() on columns of table "application_link_oracle_request" */ +export type Application_Link_Oracle_Request_Min_Order_By = { + application_link_id?: Maybe; + client_id?: Maybe; height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; }; -/** select columns of table "average_block_time_per_minute" */ -export enum Average_Block_Time_Per_Minute_Select_Column { +/** Ordering options when selecting data from "application_link_oracle_request". */ +export type Application_Link_Oracle_Request_Order_By = { + application_link?: Maybe; + application_link_id?: Maybe; + call_data?: Maybe; + client_id?: Maybe; + height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; +}; + +/** select columns of table "application_link_oracle_request" */ +export enum Application_Link_Oracle_Request_Select_Column { /** column name */ - AverageTime = 'average_time', + ApplicationLinkId = 'application_link_id', /** column name */ - Height = 'height' + CallData = 'call_data', + /** column name */ + ClientId = 'client_id', + /** column name */ + Height = 'height', + /** column name */ + Id = 'id', + /** column name */ + RequestId = 'request_id', + /** column name */ + ScriptId = 'script_id' } /** aggregate stddev on columns */ -export type Average_Block_Time_Per_Minute_Stddev_Fields = { - __typename?: 'average_block_time_per_minute_stddev_fields'; - average_time?: Maybe; +export type Application_Link_Oracle_Request_Stddev_Fields = { + __typename?: 'application_link_oracle_request_stddev_fields'; + application_link_id?: Maybe; height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; +}; + +/** order by stddev() on columns of table "application_link_oracle_request" */ +export type Application_Link_Oracle_Request_Stddev_Order_By = { + application_link_id?: Maybe; + height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Average_Block_Time_Per_Minute_Stddev_Pop_Fields = { - __typename?: 'average_block_time_per_minute_stddev_pop_fields'; - average_time?: Maybe; +export type Application_Link_Oracle_Request_Stddev_Pop_Fields = { + __typename?: 'application_link_oracle_request_stddev_pop_fields'; + application_link_id?: Maybe; height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; +}; + +/** order by stddev_pop() on columns of table "application_link_oracle_request" */ +export type Application_Link_Oracle_Request_Stddev_Pop_Order_By = { + application_link_id?: Maybe; + height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Average_Block_Time_Per_Minute_Stddev_Samp_Fields = { - __typename?: 'average_block_time_per_minute_stddev_samp_fields'; - average_time?: Maybe; +export type Application_Link_Oracle_Request_Stddev_Samp_Fields = { + __typename?: 'application_link_oracle_request_stddev_samp_fields'; + application_link_id?: Maybe; height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; +}; + +/** order by stddev_samp() on columns of table "application_link_oracle_request" */ +export type Application_Link_Oracle_Request_Stddev_Samp_Order_By = { + application_link_id?: Maybe; + height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; }; /** aggregate sum on columns */ -export type Average_Block_Time_Per_Minute_Sum_Fields = { - __typename?: 'average_block_time_per_minute_sum_fields'; - average_time?: Maybe; +export type Application_Link_Oracle_Request_Sum_Fields = { + __typename?: 'application_link_oracle_request_sum_fields'; + application_link_id?: Maybe; height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; +}; + +/** order by sum() on columns of table "application_link_oracle_request" */ +export type Application_Link_Oracle_Request_Sum_Order_By = { + application_link_id?: Maybe; + height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; }; /** aggregate var_pop on columns */ -export type Average_Block_Time_Per_Minute_Var_Pop_Fields = { - __typename?: 'average_block_time_per_minute_var_pop_fields'; - average_time?: Maybe; +export type Application_Link_Oracle_Request_Var_Pop_Fields = { + __typename?: 'application_link_oracle_request_var_pop_fields'; + application_link_id?: Maybe; height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; +}; + +/** order by var_pop() on columns of table "application_link_oracle_request" */ +export type Application_Link_Oracle_Request_Var_Pop_Order_By = { + application_link_id?: Maybe; + height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; }; /** aggregate var_samp on columns */ -export type Average_Block_Time_Per_Minute_Var_Samp_Fields = { - __typename?: 'average_block_time_per_minute_var_samp_fields'; - average_time?: Maybe; +export type Application_Link_Oracle_Request_Var_Samp_Fields = { + __typename?: 'application_link_oracle_request_var_samp_fields'; + application_link_id?: Maybe; height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; +}; + +/** order by var_samp() on columns of table "application_link_oracle_request" */ +export type Application_Link_Oracle_Request_Var_Samp_Order_By = { + application_link_id?: Maybe; + height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; }; /** aggregate variance on columns */ -export type Average_Block_Time_Per_Minute_Variance_Fields = { - __typename?: 'average_block_time_per_minute_variance_fields'; - average_time?: Maybe; +export type Application_Link_Oracle_Request_Variance_Fields = { + __typename?: 'application_link_oracle_request_variance_fields'; + application_link_id?: Maybe; height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; }; - -/** Boolean expression to compare columns of type "bigint". All fields are combined with logical 'AND'. */ -export type Bigint_Comparison_Exp = { - _eq?: Maybe; - _gt?: Maybe; - _gte?: Maybe; - _in?: Maybe>; - _is_null?: Maybe; - _lt?: Maybe; - _lte?: Maybe; - _neq?: Maybe; - _nin?: Maybe>; +/** order by variance() on columns of table "application_link_oracle_request" */ +export type Application_Link_Oracle_Request_Variance_Order_By = { + application_link_id?: Maybe; + height?: Maybe; + id?: Maybe; + request_id?: Maybe; + script_id?: Maybe; }; -/** 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; - proposer_address?: Maybe; - timestamp: Scalars['timestamp']; - total_gas?: Maybe; - /** An array relationship */ - transactions: Array; - /** An aggregate relationship */ - transactions_aggregate: Transaction_Aggregate; - /** An object relationship */ - validator?: Maybe; - /** An array relationship */ - validator_voting_powers: Array; - /** An aggregate relationship */ - validator_voting_powers_aggregate: Validator_Voting_Power_Aggregate; +/** Ordering options when selecting data from "application_link". */ +export type Application_Link_Order_By = { + application?: Maybe; + application_link_oracle_requests_aggregate?: Maybe; + creation_time?: Maybe; + height?: Maybe; + id?: Maybe; + profile?: Maybe; + result?: Maybe; + state?: Maybe; + user_address?: Maybe; + username?: Maybe; }; - -/** columns and relationships of "block" */ +/** select columns of table "application_link" */ +export enum Application_Link_Select_Column { + /** column name */ + Application = 'application', + /** column name */ + CreationTime = 'creation_time', + /** column name */ + Height = 'height', + /** column name */ + Id = 'id', + /** column name */ + Result = 'result', + /** column name */ + State = 'state', + /** column name */ + UserAddress = 'user_address', + /** column name */ + Username = 'username' +} + +/** aggregate stddev on columns */ +export type Application_Link_Stddev_Fields = { + __typename?: 'application_link_stddev_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev() on columns of table "application_link" */ +export type Application_Link_Stddev_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Application_Link_Stddev_Pop_Fields = { + __typename?: 'application_link_stddev_pop_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_pop() on columns of table "application_link" */ +export type Application_Link_Stddev_Pop_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Application_Link_Stddev_Samp_Fields = { + __typename?: 'application_link_stddev_samp_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_samp() on columns of table "application_link" */ +export type Application_Link_Stddev_Samp_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** aggregate sum on columns */ +export type Application_Link_Sum_Fields = { + __typename?: 'application_link_sum_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by sum() on columns of table "application_link" */ +export type Application_Link_Sum_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Application_Link_Var_Pop_Fields = { + __typename?: 'application_link_var_pop_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_pop() on columns of table "application_link" */ +export type Application_Link_Var_Pop_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Application_Link_Var_Samp_Fields = { + __typename?: 'application_link_var_samp_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_samp() on columns of table "application_link" */ +export type Application_Link_Var_Samp_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** aggregate variance on columns */ +export type Application_Link_Variance_Fields = { + __typename?: 'application_link_variance_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by variance() on columns of table "application_link" */ +export type Application_Link_Variance_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** 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']; +}; + +/** aggregated selection of "average_block_time_from_genesis" */ +export type Average_Block_Time_From_Genesis_Aggregate = { + __typename?: 'average_block_time_from_genesis_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "average_block_time_from_genesis" */ +export type Average_Block_Time_From_Genesis_Aggregate_Fields = { + __typename?: 'average_block_time_from_genesis_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 "average_block_time_from_genesis" */ +export type Average_Block_Time_From_Genesis_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Average_Block_Time_From_Genesis_Avg_Fields = { + __typename?: 'average_block_time_from_genesis_avg_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate max on columns */ +export type Average_Block_Time_From_Genesis_Max_Fields = { + __typename?: 'average_block_time_from_genesis_max_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate min on columns */ +export type Average_Block_Time_From_Genesis_Min_Fields = { + __typename?: 'average_block_time_from_genesis_min_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** Ordering options when selecting data from "average_block_time_from_genesis". */ +export type Average_Block_Time_From_Genesis_Order_By = { + average_time?: Maybe; + height?: Maybe; +}; + +/** 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' +} + +/** aggregate stddev on columns */ +export type Average_Block_Time_From_Genesis_Stddev_Fields = { + __typename?: 'average_block_time_from_genesis_stddev_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Average_Block_Time_From_Genesis_Stddev_Pop_Fields = { + __typename?: 'average_block_time_from_genesis_stddev_pop_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Average_Block_Time_From_Genesis_Stddev_Samp_Fields = { + __typename?: 'average_block_time_from_genesis_stddev_samp_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Average_Block_Time_From_Genesis_Sum_Fields = { + __typename?: 'average_block_time_from_genesis_sum_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Average_Block_Time_From_Genesis_Var_Pop_Fields = { + __typename?: 'average_block_time_from_genesis_var_pop_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Average_Block_Time_From_Genesis_Var_Samp_Fields = { + __typename?: 'average_block_time_from_genesis_var_samp_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Average_Block_Time_From_Genesis_Variance_Fields = { + __typename?: 'average_block_time_from_genesis_variance_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** 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']; +}; + +/** aggregated selection of "average_block_time_per_day" */ +export type Average_Block_Time_Per_Day_Aggregate = { + __typename?: 'average_block_time_per_day_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "average_block_time_per_day" */ +export type Average_Block_Time_Per_Day_Aggregate_Fields = { + __typename?: 'average_block_time_per_day_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 "average_block_time_per_day" */ +export type Average_Block_Time_Per_Day_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Average_Block_Time_Per_Day_Avg_Fields = { + __typename?: 'average_block_time_per_day_avg_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate max on columns */ +export type Average_Block_Time_Per_Day_Max_Fields = { + __typename?: 'average_block_time_per_day_max_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate min on columns */ +export type Average_Block_Time_Per_Day_Min_Fields = { + __typename?: 'average_block_time_per_day_min_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** Ordering options when selecting data from "average_block_time_per_day". */ +export type Average_Block_Time_Per_Day_Order_By = { + average_time?: Maybe; + height?: Maybe; +}; + +/** 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' +} + +/** aggregate stddev on columns */ +export type Average_Block_Time_Per_Day_Stddev_Fields = { + __typename?: 'average_block_time_per_day_stddev_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Average_Block_Time_Per_Day_Stddev_Pop_Fields = { + __typename?: 'average_block_time_per_day_stddev_pop_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Average_Block_Time_Per_Day_Stddev_Samp_Fields = { + __typename?: 'average_block_time_per_day_stddev_samp_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Average_Block_Time_Per_Day_Sum_Fields = { + __typename?: 'average_block_time_per_day_sum_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Average_Block_Time_Per_Day_Var_Pop_Fields = { + __typename?: 'average_block_time_per_day_var_pop_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Average_Block_Time_Per_Day_Var_Samp_Fields = { + __typename?: 'average_block_time_per_day_var_samp_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Average_Block_Time_Per_Day_Variance_Fields = { + __typename?: 'average_block_time_per_day_variance_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** 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']; +}; + +/** aggregated selection of "average_block_time_per_hour" */ +export type Average_Block_Time_Per_Hour_Aggregate = { + __typename?: 'average_block_time_per_hour_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "average_block_time_per_hour" */ +export type Average_Block_Time_Per_Hour_Aggregate_Fields = { + __typename?: 'average_block_time_per_hour_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 "average_block_time_per_hour" */ +export type Average_Block_Time_Per_Hour_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Average_Block_Time_Per_Hour_Avg_Fields = { + __typename?: 'average_block_time_per_hour_avg_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate max on columns */ +export type Average_Block_Time_Per_Hour_Max_Fields = { + __typename?: 'average_block_time_per_hour_max_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate min on columns */ +export type Average_Block_Time_Per_Hour_Min_Fields = { + __typename?: 'average_block_time_per_hour_min_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** Ordering options when selecting data from "average_block_time_per_hour". */ +export type Average_Block_Time_Per_Hour_Order_By = { + average_time?: Maybe; + height?: Maybe; +}; + +/** 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' +} + +/** aggregate stddev on columns */ +export type Average_Block_Time_Per_Hour_Stddev_Fields = { + __typename?: 'average_block_time_per_hour_stddev_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Average_Block_Time_Per_Hour_Stddev_Pop_Fields = { + __typename?: 'average_block_time_per_hour_stddev_pop_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Average_Block_Time_Per_Hour_Stddev_Samp_Fields = { + __typename?: 'average_block_time_per_hour_stddev_samp_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Average_Block_Time_Per_Hour_Sum_Fields = { + __typename?: 'average_block_time_per_hour_sum_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Average_Block_Time_Per_Hour_Var_Pop_Fields = { + __typename?: 'average_block_time_per_hour_var_pop_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Average_Block_Time_Per_Hour_Var_Samp_Fields = { + __typename?: 'average_block_time_per_hour_var_samp_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Average_Block_Time_Per_Hour_Variance_Fields = { + __typename?: 'average_block_time_per_hour_variance_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** 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']; +}; + +/** aggregated selection of "average_block_time_per_minute" */ +export type Average_Block_Time_Per_Minute_Aggregate = { + __typename?: 'average_block_time_per_minute_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "average_block_time_per_minute" */ +export type Average_Block_Time_Per_Minute_Aggregate_Fields = { + __typename?: 'average_block_time_per_minute_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 "average_block_time_per_minute" */ +export type Average_Block_Time_Per_Minute_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Average_Block_Time_Per_Minute_Avg_Fields = { + __typename?: 'average_block_time_per_minute_avg_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate max on columns */ +export type Average_Block_Time_Per_Minute_Max_Fields = { + __typename?: 'average_block_time_per_minute_max_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate min on columns */ +export type Average_Block_Time_Per_Minute_Min_Fields = { + __typename?: 'average_block_time_per_minute_min_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** Ordering options when selecting data from "average_block_time_per_minute". */ +export type Average_Block_Time_Per_Minute_Order_By = { + average_time?: Maybe; + height?: Maybe; +}; + +/** 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' +} + +/** aggregate stddev on columns */ +export type Average_Block_Time_Per_Minute_Stddev_Fields = { + __typename?: 'average_block_time_per_minute_stddev_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Average_Block_Time_Per_Minute_Stddev_Pop_Fields = { + __typename?: 'average_block_time_per_minute_stddev_pop_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Average_Block_Time_Per_Minute_Stddev_Samp_Fields = { + __typename?: 'average_block_time_per_minute_stddev_samp_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Average_Block_Time_Per_Minute_Sum_Fields = { + __typename?: 'average_block_time_per_minute_sum_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Average_Block_Time_Per_Minute_Var_Pop_Fields = { + __typename?: 'average_block_time_per_minute_var_pop_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Average_Block_Time_Per_Minute_Var_Samp_Fields = { + __typename?: 'average_block_time_per_minute_var_samp_fields'; + average_time?: Maybe; + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Average_Block_Time_Per_Minute_Variance_Fields = { + __typename?: 'average_block_time_per_minute_variance_fields'; + average_time?: Maybe; + height?: Maybe; +}; + + +/** Boolean expression to compare columns of type "bigint". All fields are combined with logical 'AND'. */ +export type Bigint_Comparison_Exp = { + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; +}; + +/** 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; + proposer_address?: Maybe; + timestamp: Scalars['timestamp']; + total_gas?: Maybe; + /** An array relationship */ + transactions: Array; + /** An aggregate relationship */ + transactions_aggregate: Transaction_Aggregate; + /** 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?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "block" */ +export type BlockPre_Commits_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "block" */ +export type BlockTransactionsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "block" */ +export type BlockTransactions_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "block" */ +export type BlockValidator_Voting_PowersArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "block" */ +export type BlockValidator_Voting_Powers_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + +/** aggregated selection of "block" */ +export type Block_Aggregate = { + __typename?: 'block_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "block" */ +export type Block_Aggregate_Fields = { + __typename?: 'block_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 "block" */ +export type Block_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "block" */ +export type Block_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Block_Avg_Fields = { + __typename?: 'block_avg_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by avg() on columns of table "block" */ +export type Block_Avg_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** Boolean expression to filter rows from the table "block". All fields are combined with a logical 'AND'. */ +export type Block_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + hash?: Maybe; + height?: Maybe; + num_txs?: Maybe; + pre_commits?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; + transactions?: Maybe; + validator?: Maybe; + validator_voting_powers?: Maybe; +}; + +/** aggregate max on columns */ +export type Block_Max_Fields = { + __typename?: 'block_max_fields'; + hash?: Maybe; + height?: Maybe; + num_txs?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; +}; + +/** order by max() on columns of table "block" */ +export type Block_Max_Order_By = { + hash?: Maybe; + height?: Maybe; + num_txs?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; +}; + +/** aggregate min on columns */ +export type Block_Min_Fields = { + __typename?: 'block_min_fields'; + hash?: Maybe; + height?: Maybe; + num_txs?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; +}; + +/** order by min() on columns of table "block" */ +export type Block_Min_Order_By = { + hash?: Maybe; + height?: Maybe; + num_txs?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; +}; + +/** Ordering options when selecting data from "block". */ +export type Block_Order_By = { + hash?: Maybe; + height?: Maybe; + num_txs?: Maybe; + pre_commits_aggregate?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; + transactions_aggregate?: Maybe; + validator?: Maybe; + validator_voting_powers_aggregate?: Maybe; +}; + +/** 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' +} + +/** aggregate stddev on columns */ +export type Block_Stddev_Fields = { + __typename?: 'block_stddev_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by stddev() on columns of table "block" */ +export type Block_Stddev_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Block_Stddev_Pop_Fields = { + __typename?: 'block_stddev_pop_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by stddev_pop() on columns of table "block" */ +export type Block_Stddev_Pop_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Block_Stddev_Samp_Fields = { + __typename?: 'block_stddev_samp_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by stddev_samp() on columns of table "block" */ +export type Block_Stddev_Samp_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** aggregate sum on columns */ +export type Block_Sum_Fields = { + __typename?: 'block_sum_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by sum() on columns of table "block" */ +export type Block_Sum_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Block_Var_Pop_Fields = { + __typename?: 'block_var_pop_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by var_pop() on columns of table "block" */ +export type Block_Var_Pop_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Block_Var_Samp_Fields = { + __typename?: 'block_var_samp_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by var_samp() on columns of table "block" */ +export type Block_Var_Samp_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** aggregate variance on columns */ +export type Block_Variance_Fields = { + __typename?: 'block_variance_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by variance() on columns of table "block" */ +export type Block_Variance_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** columns and relationships of "chain_link" */ +export type Chain_Link = { + __typename?: 'chain_link'; + /** An object relationship */ + chain_config: Chain_Link_Chain_Config; + chain_config_id: Scalars['bigint']; + /** An array relationship */ + chain_link_proofs: Array; + /** An aggregate relationship */ + chain_link_proofs_aggregate: Chain_Link_Proof_Aggregate; + creation_time: Scalars['timestamp']; + external_address: Scalars['String']; + height: Scalars['bigint']; + id: Scalars['Int']; + /** An object relationship */ + profile: Profile; + /** An object relationship */ + proof?: Maybe; + user_address: Scalars['String']; +}; + + +/** columns and relationships of "chain_link" */ +export type Chain_LinkChain_Link_ProofsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "chain_link" */ +export type Chain_LinkChain_Link_Proofs_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + +/** aggregated selection of "chain_link" */ +export type Chain_Link_Aggregate = { + __typename?: 'chain_link_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "chain_link" */ +export type Chain_Link_Aggregate_Fields = { + __typename?: 'chain_link_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 "chain_link" */ +export type Chain_Link_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "chain_link" */ +export type Chain_Link_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Chain_Link_Avg_Fields = { + __typename?: 'chain_link_avg_fields'; + chain_config_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** order by avg() on columns of table "chain_link" */ +export type Chain_Link_Avg_Order_By = { + chain_config_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** Boolean expression to filter rows from the table "chain_link". All fields are combined with a logical 'AND'. */ +export type Chain_Link_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + chain_config?: Maybe; + chain_config_id?: Maybe; + chain_link_proofs?: Maybe; + creation_time?: Maybe; + external_address?: Maybe; + height?: Maybe; + id?: Maybe; + profile?: Maybe; + proof?: Maybe; + user_address?: Maybe; +}; + +/** columns and relationships of "chain_link_chain_config" */ +export type Chain_Link_Chain_Config = { + __typename?: 'chain_link_chain_config'; + /** An array relationship */ + chain_links: Array; + /** An aggregate relationship */ + chain_links_aggregate: Chain_Link_Aggregate; + id: Scalars['Int']; + name: Scalars['String']; +}; + + +/** columns and relationships of "chain_link_chain_config" */ +export type Chain_Link_Chain_ConfigChain_LinksArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "chain_link_chain_config" */ +export type Chain_Link_Chain_ConfigChain_Links_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + +/** aggregated selection of "chain_link_chain_config" */ +export type Chain_Link_Chain_Config_Aggregate = { + __typename?: 'chain_link_chain_config_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "chain_link_chain_config" */ +export type Chain_Link_Chain_Config_Aggregate_Fields = { + __typename?: 'chain_link_chain_config_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 "chain_link_chain_config" */ +export type Chain_Link_Chain_Config_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Chain_Link_Chain_Config_Avg_Fields = { + __typename?: 'chain_link_chain_config_avg_fields'; + id?: Maybe; +}; + +/** Boolean expression to filter rows from the table "chain_link_chain_config". All fields are combined with a logical 'AND'. */ +export type Chain_Link_Chain_Config_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + chain_links?: Maybe; + id?: Maybe; + name?: Maybe; +}; + +/** aggregate max on columns */ +export type Chain_Link_Chain_Config_Max_Fields = { + __typename?: 'chain_link_chain_config_max_fields'; + id?: Maybe; + name?: Maybe; +}; + +/** aggregate min on columns */ +export type Chain_Link_Chain_Config_Min_Fields = { + __typename?: 'chain_link_chain_config_min_fields'; + id?: Maybe; + name?: Maybe; +}; + +/** Ordering options when selecting data from "chain_link_chain_config". */ +export type Chain_Link_Chain_Config_Order_By = { + chain_links_aggregate?: Maybe; + id?: Maybe; + name?: Maybe; +}; + +/** select columns of table "chain_link_chain_config" */ +export enum Chain_Link_Chain_Config_Select_Column { + /** column name */ + Id = 'id', + /** column name */ + Name = 'name' +} + +/** aggregate stddev on columns */ +export type Chain_Link_Chain_Config_Stddev_Fields = { + __typename?: 'chain_link_chain_config_stddev_fields'; + id?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Chain_Link_Chain_Config_Stddev_Pop_Fields = { + __typename?: 'chain_link_chain_config_stddev_pop_fields'; + id?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Chain_Link_Chain_Config_Stddev_Samp_Fields = { + __typename?: 'chain_link_chain_config_stddev_samp_fields'; + id?: Maybe; +}; + +/** aggregate sum on columns */ +export type Chain_Link_Chain_Config_Sum_Fields = { + __typename?: 'chain_link_chain_config_sum_fields'; + id?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Chain_Link_Chain_Config_Var_Pop_Fields = { + __typename?: 'chain_link_chain_config_var_pop_fields'; + id?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Chain_Link_Chain_Config_Var_Samp_Fields = { + __typename?: 'chain_link_chain_config_var_samp_fields'; + id?: Maybe; +}; + +/** aggregate variance on columns */ +export type Chain_Link_Chain_Config_Variance_Fields = { + __typename?: 'chain_link_chain_config_variance_fields'; + id?: Maybe; +}; + +/** aggregate max on columns */ +export type Chain_Link_Max_Fields = { + __typename?: 'chain_link_max_fields'; + chain_config_id?: Maybe; + creation_time?: Maybe; + external_address?: Maybe; + height?: Maybe; + id?: Maybe; + user_address?: Maybe; +}; + +/** order by max() on columns of table "chain_link" */ +export type Chain_Link_Max_Order_By = { + chain_config_id?: Maybe; + creation_time?: Maybe; + external_address?: Maybe; + height?: Maybe; + id?: Maybe; + user_address?: Maybe; +}; + +/** aggregate min on columns */ +export type Chain_Link_Min_Fields = { + __typename?: 'chain_link_min_fields'; + chain_config_id?: Maybe; + creation_time?: Maybe; + external_address?: Maybe; + height?: Maybe; + id?: Maybe; + user_address?: Maybe; +}; + +/** order by min() on columns of table "chain_link" */ +export type Chain_Link_Min_Order_By = { + chain_config_id?: Maybe; + creation_time?: Maybe; + external_address?: Maybe; + height?: Maybe; + id?: Maybe; + user_address?: Maybe; +}; + +/** Ordering options when selecting data from "chain_link". */ +export type Chain_Link_Order_By = { + chain_config?: Maybe; + chain_config_id?: Maybe; + chain_link_proofs_aggregate?: Maybe; + creation_time?: Maybe; + external_address?: Maybe; + height?: Maybe; + id?: Maybe; + profile?: Maybe; + proof?: Maybe; + user_address?: Maybe; +}; + +/** columns and relationships of "chain_link_proof" */ +export type Chain_Link_Proof = { + __typename?: 'chain_link_proof'; + /** An object relationship */ + chain_link: Chain_Link; + chain_link_id: Scalars['bigint']; + height: Scalars['bigint']; + id: Scalars['Int']; + plain_text: Scalars['String']; + public_key: Scalars['jsonb']; + signature: Scalars['String']; +}; + + +/** columns and relationships of "chain_link_proof" */ +export type Chain_Link_ProofPublic_KeyArgs = { + path?: Maybe; +}; + +/** aggregated selection of "chain_link_proof" */ +export type Chain_Link_Proof_Aggregate = { + __typename?: 'chain_link_proof_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "chain_link_proof" */ +export type Chain_Link_Proof_Aggregate_Fields = { + __typename?: 'chain_link_proof_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 "chain_link_proof" */ +export type Chain_Link_Proof_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "chain_link_proof" */ +export type Chain_Link_Proof_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Chain_Link_Proof_Avg_Fields = { + __typename?: 'chain_link_proof_avg_fields'; + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** order by avg() on columns of table "chain_link_proof" */ +export type Chain_Link_Proof_Avg_Order_By = { + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** Boolean expression to filter rows from the table "chain_link_proof". All fields are combined with a logical 'AND'. */ +export type Chain_Link_Proof_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + chain_link?: Maybe; + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; + plain_text?: Maybe; + public_key?: Maybe; + signature?: Maybe; +}; + +/** aggregate max on columns */ +export type Chain_Link_Proof_Max_Fields = { + __typename?: 'chain_link_proof_max_fields'; + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; + plain_text?: Maybe; + signature?: Maybe; +}; + +/** order by max() on columns of table "chain_link_proof" */ +export type Chain_Link_Proof_Max_Order_By = { + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; + plain_text?: Maybe; + signature?: Maybe; +}; + +/** aggregate min on columns */ +export type Chain_Link_Proof_Min_Fields = { + __typename?: 'chain_link_proof_min_fields'; + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; + plain_text?: Maybe; + signature?: Maybe; +}; + +/** order by min() on columns of table "chain_link_proof" */ +export type Chain_Link_Proof_Min_Order_By = { + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; + plain_text?: Maybe; + signature?: Maybe; +}; + +/** Ordering options when selecting data from "chain_link_proof". */ +export type Chain_Link_Proof_Order_By = { + chain_link?: Maybe; + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; + plain_text?: Maybe; + public_key?: Maybe; + signature?: Maybe; +}; + +/** select columns of table "chain_link_proof" */ +export enum Chain_Link_Proof_Select_Column { + /** column name */ + ChainLinkId = 'chain_link_id', + /** column name */ + Height = 'height', + /** column name */ + Id = 'id', + /** column name */ + PlainText = 'plain_text', + /** column name */ + PublicKey = 'public_key', + /** column name */ + Signature = 'signature' +} + +/** aggregate stddev on columns */ +export type Chain_Link_Proof_Stddev_Fields = { + __typename?: 'chain_link_proof_stddev_fields'; + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev() on columns of table "chain_link_proof" */ +export type Chain_Link_Proof_Stddev_Order_By = { + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Chain_Link_Proof_Stddev_Pop_Fields = { + __typename?: 'chain_link_proof_stddev_pop_fields'; + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_pop() on columns of table "chain_link_proof" */ +export type Chain_Link_Proof_Stddev_Pop_Order_By = { + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Chain_Link_Proof_Stddev_Samp_Fields = { + __typename?: 'chain_link_proof_stddev_samp_fields'; + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_samp() on columns of table "chain_link_proof" */ +export type Chain_Link_Proof_Stddev_Samp_Order_By = { + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate sum on columns */ +export type Chain_Link_Proof_Sum_Fields = { + __typename?: 'chain_link_proof_sum_fields'; + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** order by sum() on columns of table "chain_link_proof" */ +export type Chain_Link_Proof_Sum_Order_By = { + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Chain_Link_Proof_Var_Pop_Fields = { + __typename?: 'chain_link_proof_var_pop_fields'; + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_pop() on columns of table "chain_link_proof" */ +export type Chain_Link_Proof_Var_Pop_Order_By = { + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Chain_Link_Proof_Var_Samp_Fields = { + __typename?: 'chain_link_proof_var_samp_fields'; + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_samp() on columns of table "chain_link_proof" */ +export type Chain_Link_Proof_Var_Samp_Order_By = { + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate variance on columns */ +export type Chain_Link_Proof_Variance_Fields = { + __typename?: 'chain_link_proof_variance_fields'; + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** order by variance() on columns of table "chain_link_proof" */ +export type Chain_Link_Proof_Variance_Order_By = { + chain_link_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** select columns of table "chain_link" */ +export enum Chain_Link_Select_Column { + /** column name */ + ChainConfigId = 'chain_config_id', + /** column name */ + CreationTime = 'creation_time', + /** column name */ + ExternalAddress = 'external_address', + /** column name */ + Height = 'height', + /** column name */ + Id = 'id', + /** column name */ + UserAddress = 'user_address' +} + +/** aggregate stddev on columns */ +export type Chain_Link_Stddev_Fields = { + __typename?: 'chain_link_stddev_fields'; + chain_config_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev() on columns of table "chain_link" */ +export type Chain_Link_Stddev_Order_By = { + chain_config_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Chain_Link_Stddev_Pop_Fields = { + __typename?: 'chain_link_stddev_pop_fields'; + chain_config_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_pop() on columns of table "chain_link" */ +export type Chain_Link_Stddev_Pop_Order_By = { + chain_config_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Chain_Link_Stddev_Samp_Fields = { + __typename?: 'chain_link_stddev_samp_fields'; + chain_config_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_samp() on columns of table "chain_link" */ +export type Chain_Link_Stddev_Samp_Order_By = { + chain_config_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate sum on columns */ +export type Chain_Link_Sum_Fields = { + __typename?: 'chain_link_sum_fields'; + chain_config_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** order by sum() on columns of table "chain_link" */ +export type Chain_Link_Sum_Order_By = { + chain_config_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Chain_Link_Var_Pop_Fields = { + __typename?: 'chain_link_var_pop_fields'; + chain_config_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_pop() on columns of table "chain_link" */ +export type Chain_Link_Var_Pop_Order_By = { + chain_config_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Chain_Link_Var_Samp_Fields = { + __typename?: 'chain_link_var_samp_fields'; + chain_config_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_samp() on columns of table "chain_link" */ +export type Chain_Link_Var_Samp_Order_By = { + chain_config_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate variance on columns */ +export type Chain_Link_Variance_Fields = { + __typename?: 'chain_link_variance_fields'; + chain_config_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** order by variance() on columns of table "chain_link" */ +export type Chain_Link_Variance_Order_By = { + chain_config_id?: Maybe; + height?: Maybe; + id?: Maybe; +}; + + +/** Boolean expression to compare columns of type "coin". All fields are combined with logical 'AND'. */ +export type Coin_Comparison_Exp = { + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; +}; + +/** columns and relationships of "community_pool" */ +export type Community_Pool = { + __typename?: 'community_pool'; + coins: Scalars['_dec_coin']; + height: Scalars['bigint']; +}; + +/** aggregated selection of "community_pool" */ +export type Community_Pool_Aggregate = { + __typename?: 'community_pool_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "community_pool" */ +export type Community_Pool_Aggregate_Fields = { + __typename?: 'community_pool_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 "community_pool" */ +export type Community_Pool_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Community_Pool_Avg_Fields = { + __typename?: 'community_pool_avg_fields'; + height?: Maybe; +}; + +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + coins?: Maybe<_Dec_Coin_Comparison_Exp>; + height?: Maybe; +}; + +/** aggregate max on columns */ +export type Community_Pool_Max_Fields = { + __typename?: 'community_pool_max_fields'; + height?: Maybe; +}; + +/** aggregate min on columns */ +export type Community_Pool_Min_Fields = { + __typename?: 'community_pool_min_fields'; + height?: Maybe; +}; + +/** Ordering options when selecting data from "community_pool". */ +export type Community_Pool_Order_By = { + coins?: Maybe; + height?: Maybe; +}; + +/** select columns of table "community_pool" */ +export enum Community_Pool_Select_Column { + /** column name */ + Coins = 'coins', + /** column name */ + Height = 'height' +} + +/** aggregate stddev on columns */ +export type Community_Pool_Stddev_Fields = { + __typename?: 'community_pool_stddev_fields'; + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Community_Pool_Stddev_Pop_Fields = { + __typename?: 'community_pool_stddev_pop_fields'; + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Community_Pool_Stddev_Samp_Fields = { + __typename?: 'community_pool_stddev_samp_fields'; + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Community_Pool_Sum_Fields = { + __typename?: 'community_pool_sum_fields'; + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Community_Pool_Var_Pop_Fields = { + __typename?: 'community_pool_var_pop_fields'; + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Community_Pool_Var_Samp_Fields = { + __typename?: 'community_pool_var_samp_fields'; + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Community_Pool_Variance_Fields = { + __typename?: 'community_pool_variance_fields'; + height?: Maybe; +}; + +/** columns and relationships of "delegation" */ +export type Delegation = { + __typename?: 'delegation'; + /** An object relationship */ + account: Account; + amount: Scalars['coin']; + delegator_address: Scalars['String']; + height: Scalars['bigint']; + id: Scalars['Int']; + /** A computed field, executes function "is_delegation_self_delegate" */ + is_self_delegate?: Maybe; + /** An object relationship */ + validator: Validator; + validator_address: Scalars['String']; +}; + +/** aggregated selection of "delegation" */ +export type Delegation_Aggregate = { + __typename?: 'delegation_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "delegation" */ +export type Delegation_Aggregate_Fields = { + __typename?: 'delegation_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 "delegation" */ +export type Delegation_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "delegation" */ +export type Delegation_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Delegation_Avg_Fields = { + __typename?: 'delegation_avg_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by avg() on columns of table "delegation" */ +export type Delegation_Avg_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** Boolean expression to filter rows from the table "delegation". All fields are combined with a logical 'AND'. */ +export type Delegation_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + account?: Maybe; + amount?: Maybe; + delegator_address?: Maybe; + height?: Maybe; + id?: Maybe; + is_self_delegate?: Maybe; + validator?: Maybe; + validator_address?: Maybe; +}; + +/** aggregate max on columns */ +export type Delegation_Max_Fields = { + __typename?: 'delegation_max_fields'; + delegator_address?: Maybe; + height?: Maybe; + id?: Maybe; + validator_address?: Maybe; +}; + +/** order by max() on columns of table "delegation" */ +export type Delegation_Max_Order_By = { + delegator_address?: Maybe; + height?: Maybe; + id?: Maybe; + validator_address?: Maybe; +}; + +/** aggregate min on columns */ +export type Delegation_Min_Fields = { + __typename?: 'delegation_min_fields'; + delegator_address?: Maybe; + height?: Maybe; + id?: Maybe; + validator_address?: Maybe; +}; + +/** order by min() on columns of table "delegation" */ +export type Delegation_Min_Order_By = { + delegator_address?: Maybe; + height?: Maybe; + id?: Maybe; + validator_address?: Maybe; +}; + +/** Ordering options when selecting data from "delegation". */ +export type Delegation_Order_By = { + account?: Maybe; + amount?: Maybe; + delegator_address?: Maybe; + height?: Maybe; + id?: Maybe; + validator?: Maybe; + validator_address?: Maybe; +}; + +/** columns and relationships of "delegation_reward" */ +export type Delegation_Reward = { + __typename?: 'delegation_reward'; + /** An object relationship */ + account: Account; + amount: Scalars['_dec_coin']; + delegator_address: Scalars['String']; + height: Scalars['bigint']; + /** An object relationship */ + validator: Validator; + validator_address: Scalars['String']; + withdraw_address: Scalars['String']; +}; + +/** aggregated selection of "delegation_reward" */ +export type Delegation_Reward_Aggregate = { + __typename?: 'delegation_reward_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "delegation_reward" */ +export type Delegation_Reward_Aggregate_Fields = { + __typename?: 'delegation_reward_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 "delegation_reward" */ +export type Delegation_Reward_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "delegation_reward" */ +export type Delegation_Reward_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Delegation_Reward_Avg_Fields = { + __typename?: 'delegation_reward_avg_fields'; + height?: Maybe; +}; + +/** order by avg() on columns of table "delegation_reward" */ +export type Delegation_Reward_Avg_Order_By = { + height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "delegation_reward". All fields are combined with a logical 'AND'. */ +export type Delegation_Reward_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + account?: Maybe; + amount?: Maybe<_Dec_Coin_Comparison_Exp>; + delegator_address?: Maybe; + height?: Maybe; + validator?: Maybe; + validator_address?: Maybe; + withdraw_address?: Maybe; +}; + +/** aggregate max on columns */ +export type Delegation_Reward_Max_Fields = { + __typename?: 'delegation_reward_max_fields'; + delegator_address?: Maybe; + height?: Maybe; + validator_address?: Maybe; + withdraw_address?: Maybe; +}; + +/** order by max() on columns of table "delegation_reward" */ +export type Delegation_Reward_Max_Order_By = { + delegator_address?: Maybe; + height?: Maybe; + validator_address?: Maybe; + withdraw_address?: Maybe; +}; + +/** aggregate min on columns */ +export type Delegation_Reward_Min_Fields = { + __typename?: 'delegation_reward_min_fields'; + delegator_address?: Maybe; + height?: Maybe; + validator_address?: Maybe; + withdraw_address?: Maybe; +}; + +/** order by min() on columns of table "delegation_reward" */ +export type Delegation_Reward_Min_Order_By = { + delegator_address?: Maybe; + height?: Maybe; + validator_address?: Maybe; + withdraw_address?: Maybe; +}; + +/** Ordering options when selecting data from "delegation_reward". */ +export type Delegation_Reward_Order_By = { + account?: Maybe; + amount?: Maybe; + delegator_address?: Maybe; + height?: Maybe; + validator?: Maybe; + validator_address?: Maybe; + withdraw_address?: Maybe; +}; + +/** select columns of table "delegation_reward" */ +export enum Delegation_Reward_Select_Column { + /** column name */ + Amount = 'amount', + /** column name */ + DelegatorAddress = 'delegator_address', + /** column name */ + Height = 'height', + /** column name */ + ValidatorAddress = 'validator_address', + /** column name */ + WithdrawAddress = 'withdraw_address' +} + +/** aggregate stddev on columns */ +export type Delegation_Reward_Stddev_Fields = { + __typename?: 'delegation_reward_stddev_fields'; + height?: Maybe; +}; + +/** order by stddev() on columns of table "delegation_reward" */ +export type Delegation_Reward_Stddev_Order_By = { + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Delegation_Reward_Stddev_Pop_Fields = { + __typename?: 'delegation_reward_stddev_pop_fields'; + height?: Maybe; +}; + +/** order by stddev_pop() on columns of table "delegation_reward" */ +export type Delegation_Reward_Stddev_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Delegation_Reward_Stddev_Samp_Fields = { + __typename?: 'delegation_reward_stddev_samp_fields'; + height?: Maybe; +}; + +/** order by stddev_samp() on columns of table "delegation_reward" */ +export type Delegation_Reward_Stddev_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Delegation_Reward_Sum_Fields = { + __typename?: 'delegation_reward_sum_fields'; + height?: Maybe; +}; + +/** order by sum() on columns of table "delegation_reward" */ +export type Delegation_Reward_Sum_Order_By = { + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Delegation_Reward_Var_Pop_Fields = { + __typename?: 'delegation_reward_var_pop_fields'; + height?: Maybe; +}; + +/** order by var_pop() on columns of table "delegation_reward" */ +export type Delegation_Reward_Var_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Delegation_Reward_Var_Samp_Fields = { + __typename?: 'delegation_reward_var_samp_fields'; + height?: Maybe; +}; + +/** order by var_samp() on columns of table "delegation_reward" */ +export type Delegation_Reward_Var_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Delegation_Reward_Variance_Fields = { + __typename?: 'delegation_reward_variance_fields'; + height?: Maybe; +}; + +/** order by variance() on columns of table "delegation_reward" */ +export type Delegation_Reward_Variance_Order_By = { + height?: Maybe; +}; + +/** select columns of table "delegation" */ +export enum Delegation_Select_Column { + /** column name */ + Amount = 'amount', + /** column name */ + DelegatorAddress = 'delegator_address', + /** column name */ + Height = 'height', + /** column name */ + Id = 'id', + /** column name */ + ValidatorAddress = 'validator_address' +} + +/** aggregate stddev on columns */ +export type Delegation_Stddev_Fields = { + __typename?: 'delegation_stddev_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev() on columns of table "delegation" */ +export type Delegation_Stddev_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Delegation_Stddev_Pop_Fields = { + __typename?: 'delegation_stddev_pop_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_pop() on columns of table "delegation" */ +export type Delegation_Stddev_Pop_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Delegation_Stddev_Samp_Fields = { + __typename?: 'delegation_stddev_samp_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_samp() on columns of table "delegation" */ +export type Delegation_Stddev_Samp_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** aggregate sum on columns */ +export type Delegation_Sum_Fields = { + __typename?: 'delegation_sum_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by sum() on columns of table "delegation" */ +export type Delegation_Sum_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Delegation_Var_Pop_Fields = { + __typename?: 'delegation_var_pop_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_pop() on columns of table "delegation" */ +export type Delegation_Var_Pop_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Delegation_Var_Samp_Fields = { + __typename?: 'delegation_var_samp_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_samp() on columns of table "delegation" */ +export type Delegation_Var_Samp_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** aggregate variance on columns */ +export type Delegation_Variance_Fields = { + __typename?: 'delegation_variance_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by variance() on columns of table "delegation" */ +export type Delegation_Variance_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** columns and relationships of "distribution_params" */ +export type Distribution_Params = { + __typename?: 'distribution_params'; + height: Scalars['bigint']; + one_row_id: Scalars['Boolean']; + params: Scalars['jsonb']; +}; + + +/** columns and relationships of "distribution_params" */ +export type Distribution_ParamsParamsArgs = { + path?: Maybe; +}; + +/** aggregated selection of "distribution_params" */ +export type Distribution_Params_Aggregate = { + __typename?: 'distribution_params_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "distribution_params" */ +export type Distribution_Params_Aggregate_Fields = { + __typename?: 'distribution_params_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 "distribution_params" */ +export type Distribution_Params_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Distribution_Params_Avg_Fields = { + __typename?: 'distribution_params_avg_fields'; + height?: Maybe; +}; + +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + height?: Maybe; + one_row_id?: Maybe; + params?: Maybe; +}; + +/** aggregate max on columns */ +export type Distribution_Params_Max_Fields = { + __typename?: 'distribution_params_max_fields'; + height?: Maybe; +}; + +/** aggregate min on columns */ +export type Distribution_Params_Min_Fields = { + __typename?: 'distribution_params_min_fields'; + height?: Maybe; +}; + +/** Ordering options when selecting data from "distribution_params". */ +export type Distribution_Params_Order_By = { + height?: Maybe; + one_row_id?: Maybe; + params?: Maybe; +}; + +/** select columns of table "distribution_params" */ +export enum Distribution_Params_Select_Column { + /** column name */ + Height = 'height', + /** column name */ + OneRowId = 'one_row_id', + /** column name */ + Params = 'params' +} + +/** aggregate stddev on columns */ +export type Distribution_Params_Stddev_Fields = { + __typename?: 'distribution_params_stddev_fields'; + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Distribution_Params_Stddev_Pop_Fields = { + __typename?: 'distribution_params_stddev_pop_fields'; + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Distribution_Params_Stddev_Samp_Fields = { + __typename?: 'distribution_params_stddev_samp_fields'; + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Distribution_Params_Sum_Fields = { + __typename?: 'distribution_params_sum_fields'; + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Distribution_Params_Var_Pop_Fields = { + __typename?: 'distribution_params_var_pop_fields'; + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Distribution_Params_Var_Samp_Fields = { + __typename?: 'distribution_params_var_samp_fields'; + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Distribution_Params_Variance_Fields = { + __typename?: 'distribution_params_variance_fields'; + height?: Maybe; +}; + +/** 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']; +}; + +/** aggregated selection of "double_sign_evidence" */ +export type Double_Sign_Evidence_Aggregate = { + __typename?: 'double_sign_evidence_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "double_sign_evidence" */ +export type Double_Sign_Evidence_Aggregate_Fields = { + __typename?: 'double_sign_evidence_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 "double_sign_evidence" */ +export type Double_Sign_Evidence_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Double_Sign_Evidence_Avg_Fields = { + __typename?: 'double_sign_evidence_avg_fields'; + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** order by avg() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Avg_Order_By = { + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + doubleSignVoteByVoteAId?: Maybe; + double_sign_vote?: Maybe; + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** aggregate max on columns */ +export type Double_Sign_Evidence_Max_Fields = { + __typename?: 'double_sign_evidence_max_fields'; + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** order by max() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Max_Order_By = { + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** aggregate min on columns */ +export type Double_Sign_Evidence_Min_Fields = { + __typename?: 'double_sign_evidence_min_fields'; + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** order by min() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Min_Order_By = { + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** Ordering options when selecting data from "double_sign_evidence". */ +export type Double_Sign_Evidence_Order_By = { + doubleSignVoteByVoteAId?: Maybe; + double_sign_vote?: Maybe; + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** 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' +} + +/** aggregate stddev on columns */ +export type Double_Sign_Evidence_Stddev_Fields = { + __typename?: 'double_sign_evidence_stddev_fields'; + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** order by stddev() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Stddev_Order_By = { + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Double_Sign_Evidence_Stddev_Pop_Fields = { + __typename?: 'double_sign_evidence_stddev_pop_fields'; + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** order by stddev_pop() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Stddev_Pop_Order_By = { + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Double_Sign_Evidence_Stddev_Samp_Fields = { + __typename?: 'double_sign_evidence_stddev_samp_fields'; + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** order by stddev_samp() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Stddev_Samp_Order_By = { + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** aggregate sum on columns */ +export type Double_Sign_Evidence_Sum_Fields = { + __typename?: 'double_sign_evidence_sum_fields'; + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** order by sum() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Sum_Order_By = { + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Double_Sign_Evidence_Var_Pop_Fields = { + __typename?: 'double_sign_evidence_var_pop_fields'; + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** order by var_pop() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Var_Pop_Order_By = { + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Double_Sign_Evidence_Var_Samp_Fields = { + __typename?: 'double_sign_evidence_var_samp_fields'; + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** order by var_samp() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Var_Samp_Order_By = { + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** aggregate variance on columns */ +export type Double_Sign_Evidence_Variance_Fields = { + __typename?: 'double_sign_evidence_variance_fields'; + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** order by variance() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Variance_Order_By = { + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; +}; + +/** 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 aggregate relationship */ + doubleSignEvidencesByVoteBId_aggregate: Double_Sign_Evidence_Aggregate; + /** An array relationship */ + double_sign_evidences: Array; + /** An aggregate relationship */ + double_sign_evidences_aggregate: Double_Sign_Evidence_Aggregate; + height: Scalars['bigint']; + id: Scalars['Int']; + 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?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "double_sign_vote" */ +export type Double_Sign_VoteDoubleSignEvidencesByVoteBId_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "double_sign_vote" */ +export type Double_Sign_VoteDouble_Sign_EvidencesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "double_sign_vote" */ +export type Double_Sign_VoteDouble_Sign_Evidences_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + +/** aggregated selection of "double_sign_vote" */ +export type Double_Sign_Vote_Aggregate = { + __typename?: 'double_sign_vote_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "double_sign_vote" */ +export type Double_Sign_Vote_Aggregate_Fields = { + __typename?: 'double_sign_vote_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 "double_sign_vote" */ +export type Double_Sign_Vote_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "double_sign_vote" */ +export type Double_Sign_Vote_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Double_Sign_Vote_Avg_Fields = { + __typename?: 'double_sign_vote_avg_fields'; + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** order by avg() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Avg_Order_By = { + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + block_id?: Maybe; + doubleSignEvidencesByVoteBId?: Maybe; + double_sign_evidences?: Maybe; + height?: Maybe; + id?: Maybe; + round?: Maybe; + signature?: Maybe; + type?: Maybe; + validator?: Maybe; + validator_address?: Maybe; + validator_index?: Maybe; +}; + +/** aggregate max on columns */ +export type Double_Sign_Vote_Max_Fields = { + __typename?: 'double_sign_vote_max_fields'; + block_id?: Maybe; + height?: Maybe; + id?: Maybe; + round?: Maybe; + signature?: Maybe; + type?: Maybe; + validator_address?: Maybe; + validator_index?: Maybe; +}; + +/** order by max() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Max_Order_By = { + block_id?: Maybe; + height?: Maybe; + id?: Maybe; + round?: Maybe; + signature?: Maybe; + type?: Maybe; + validator_address?: Maybe; + validator_index?: Maybe; +}; + +/** aggregate min on columns */ +export type Double_Sign_Vote_Min_Fields = { + __typename?: 'double_sign_vote_min_fields'; + block_id?: Maybe; + height?: Maybe; + id?: Maybe; + round?: Maybe; + signature?: Maybe; + type?: Maybe; + validator_address?: Maybe; + validator_index?: Maybe; +}; + +/** order by min() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Min_Order_By = { + block_id?: Maybe; + height?: Maybe; + id?: Maybe; + round?: Maybe; + signature?: Maybe; + type?: Maybe; + validator_address?: Maybe; + validator_index?: Maybe; +}; + +/** Ordering options when selecting data from "double_sign_vote". */ +export type Double_Sign_Vote_Order_By = { + block_id?: Maybe; + doubleSignEvidencesByVoteBId_aggregate?: Maybe; + double_sign_evidences_aggregate?: Maybe; + height?: Maybe; + id?: Maybe; + round?: Maybe; + signature?: Maybe; + type?: Maybe; + validator?: Maybe; + validator_address?: Maybe; + validator_index?: Maybe; +}; + +/** 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 */ + Id = 'id', + /** column name */ + Round = 'round', + /** column name */ + Signature = 'signature', + /** column name */ + Type = 'type', + /** column name */ + ValidatorAddress = 'validator_address', + /** column name */ + ValidatorIndex = 'validator_index' +} + +/** aggregate stddev on columns */ +export type Double_Sign_Vote_Stddev_Fields = { + __typename?: 'double_sign_vote_stddev_fields'; + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** order by stddev() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Stddev_Order_By = { + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Double_Sign_Vote_Stddev_Pop_Fields = { + __typename?: 'double_sign_vote_stddev_pop_fields'; + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** order by stddev_pop() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Stddev_Pop_Order_By = { + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Double_Sign_Vote_Stddev_Samp_Fields = { + __typename?: 'double_sign_vote_stddev_samp_fields'; + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** order by stddev_samp() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Stddev_Samp_Order_By = { + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** aggregate sum on columns */ +export type Double_Sign_Vote_Sum_Fields = { + __typename?: 'double_sign_vote_sum_fields'; + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** order by sum() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Sum_Order_By = { + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Double_Sign_Vote_Var_Pop_Fields = { + __typename?: 'double_sign_vote_var_pop_fields'; + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** order by var_pop() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Var_Pop_Order_By = { + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Double_Sign_Vote_Var_Samp_Fields = { + __typename?: 'double_sign_vote_var_samp_fields'; + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** order by var_samp() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Var_Samp_Order_By = { + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** aggregate variance on columns */ +export type Double_Sign_Vote_Variance_Fields = { + __typename?: 'double_sign_vote_variance_fields'; + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** order by variance() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Variance_Order_By = { + height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** columns and relationships of "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests = { + __typename?: 'dtag_transfer_requests'; + height: Scalars['bigint']; + /** An object relationship */ + profile: Profile; + /** An object relationship */ + profileBySenderAddress: Profile; + receiver_address: Scalars['String']; + sender_address: Scalars['String']; +}; + +/** aggregated selection of "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Aggregate = { + __typename?: 'dtag_transfer_requests_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Aggregate_Fields = { + __typename?: 'dtag_transfer_requests_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 "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Dtag_Transfer_Requests_Avg_Fields = { + __typename?: 'dtag_transfer_requests_avg_fields'; + height?: Maybe; +}; + +/** order by avg() on columns of table "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Avg_Order_By = { + height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "dtag_transfer_requests". All fields are combined with a logical 'AND'. */ +export type Dtag_Transfer_Requests_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + height?: Maybe; + profile?: Maybe; + profileBySenderAddress?: Maybe; + receiver_address?: Maybe; + sender_address?: Maybe; +}; + +/** aggregate max on columns */ +export type Dtag_Transfer_Requests_Max_Fields = { + __typename?: 'dtag_transfer_requests_max_fields'; + height?: Maybe; + receiver_address?: Maybe; + sender_address?: Maybe; +}; + +/** order by max() on columns of table "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Max_Order_By = { + height?: Maybe; + receiver_address?: Maybe; + sender_address?: Maybe; +}; + +/** aggregate min on columns */ +export type Dtag_Transfer_Requests_Min_Fields = { + __typename?: 'dtag_transfer_requests_min_fields'; + height?: Maybe; + receiver_address?: Maybe; + sender_address?: Maybe; +}; + +/** order by min() on columns of table "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Min_Order_By = { + height?: Maybe; + receiver_address?: Maybe; + sender_address?: Maybe; +}; + +/** Ordering options when selecting data from "dtag_transfer_requests". */ +export type Dtag_Transfer_Requests_Order_By = { + height?: Maybe; + profile?: Maybe; + profileBySenderAddress?: Maybe; + receiver_address?: Maybe; + sender_address?: Maybe; +}; + +/** select columns of table "dtag_transfer_requests" */ +export enum Dtag_Transfer_Requests_Select_Column { + /** column name */ + Height = 'height', + /** column name */ + ReceiverAddress = 'receiver_address', + /** column name */ + SenderAddress = 'sender_address' +} + +/** aggregate stddev on columns */ +export type Dtag_Transfer_Requests_Stddev_Fields = { + __typename?: 'dtag_transfer_requests_stddev_fields'; + height?: Maybe; +}; + +/** order by stddev() on columns of table "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Stddev_Order_By = { + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Dtag_Transfer_Requests_Stddev_Pop_Fields = { + __typename?: 'dtag_transfer_requests_stddev_pop_fields'; + height?: Maybe; +}; + +/** order by stddev_pop() on columns of table "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Stddev_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Dtag_Transfer_Requests_Stddev_Samp_Fields = { + __typename?: 'dtag_transfer_requests_stddev_samp_fields'; + height?: Maybe; +}; + +/** order by stddev_samp() on columns of table "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Stddev_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Dtag_Transfer_Requests_Sum_Fields = { + __typename?: 'dtag_transfer_requests_sum_fields'; + height?: Maybe; +}; + +/** order by sum() on columns of table "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Sum_Order_By = { + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Dtag_Transfer_Requests_Var_Pop_Fields = { + __typename?: 'dtag_transfer_requests_var_pop_fields'; + height?: Maybe; +}; + +/** order by var_pop() on columns of table "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Var_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Dtag_Transfer_Requests_Var_Samp_Fields = { + __typename?: 'dtag_transfer_requests_var_samp_fields'; + height?: Maybe; +}; + +/** order by var_samp() on columns of table "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Var_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Dtag_Transfer_Requests_Variance_Fields = { + __typename?: 'dtag_transfer_requests_variance_fields'; + height?: Maybe; +}; + +/** order by variance() on columns of table "dtag_transfer_requests" */ +export type Dtag_Transfer_Requests_Variance_Order_By = { + height?: Maybe; +}; + +/** columns and relationships of "fee_grant_allowance" */ +export type Fee_Grant_Allowance = { + __typename?: 'fee_grant_allowance'; + /** An object relationship */ + account: Account; + /** An object relationship */ + accountByGranterAddress: Account; + allowance: Scalars['jsonb']; + grantee_address: Scalars['String']; + granter_address: Scalars['String']; + height: Scalars['bigint']; + id: Scalars['Int']; +}; + + +/** columns and relationships of "fee_grant_allowance" */ +export type Fee_Grant_AllowanceAllowanceArgs = { + path?: Maybe; +}; + +/** aggregated selection of "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Aggregate = { + __typename?: 'fee_grant_allowance_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Aggregate_Fields = { + __typename?: 'fee_grant_allowance_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 "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Fee_Grant_Allowance_Avg_Fields = { + __typename?: 'fee_grant_allowance_avg_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by avg() on columns of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Avg_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + account?: Maybe; + accountByGranterAddress?: Maybe; + allowance?: Maybe; + grantee_address?: Maybe; + granter_address?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate max on columns */ +export type Fee_Grant_Allowance_Max_Fields = { + __typename?: 'fee_grant_allowance_max_fields'; + grantee_address?: Maybe; + granter_address?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** order by max() on columns of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Max_Order_By = { + grantee_address?: Maybe; + granter_address?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** aggregate min on columns */ +export type Fee_Grant_Allowance_Min_Fields = { + __typename?: 'fee_grant_allowance_min_fields'; + grantee_address?: Maybe; + granter_address?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** order by min() on columns of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Min_Order_By = { + grantee_address?: Maybe; + granter_address?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** Ordering options when selecting data from "fee_grant_allowance". */ +export type Fee_Grant_Allowance_Order_By = { + account?: Maybe; + accountByGranterAddress?: Maybe; + allowance?: Maybe; + grantee_address?: Maybe; + granter_address?: Maybe; + height?: Maybe; + id?: Maybe; +}; + +/** 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', + /** column name */ + Id = 'id' +} + +/** aggregate stddev on columns */ +export type Fee_Grant_Allowance_Stddev_Fields = { + __typename?: 'fee_grant_allowance_stddev_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev() on columns of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Stddev_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Fee_Grant_Allowance_Stddev_Pop_Fields = { + __typename?: 'fee_grant_allowance_stddev_pop_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_pop() on columns of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Stddev_Pop_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Fee_Grant_Allowance_Stddev_Samp_Fields = { + __typename?: 'fee_grant_allowance_stddev_samp_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_samp() on columns of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Stddev_Samp_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** aggregate sum on columns */ +export type Fee_Grant_Allowance_Sum_Fields = { + __typename?: 'fee_grant_allowance_sum_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by sum() on columns of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Sum_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Fee_Grant_Allowance_Var_Pop_Fields = { + __typename?: 'fee_grant_allowance_var_pop_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_pop() on columns of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Var_Pop_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Fee_Grant_Allowance_Var_Samp_Fields = { + __typename?: 'fee_grant_allowance_var_samp_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_samp() on columns of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Var_Samp_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** aggregate variance on columns */ +export type Fee_Grant_Allowance_Variance_Fields = { + __typename?: 'fee_grant_allowance_variance_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by variance() on columns of table "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Variance_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** columns and relationships of "genesis" */ +export type Genesis = { + __typename?: 'genesis'; + chain_id: Scalars['String']; + initial_height: Scalars['bigint']; + time: Scalars['timestamp']; +}; + +/** aggregated selection of "genesis" */ +export type Genesis_Aggregate = { + __typename?: 'genesis_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "genesis" */ +export type Genesis_Aggregate_Fields = { + __typename?: 'genesis_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 "genesis" */ +export type Genesis_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Genesis_Avg_Fields = { + __typename?: 'genesis_avg_fields'; + initial_height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "genesis". All fields are combined with a logical 'AND'. */ +export type Genesis_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + chain_id?: Maybe; + initial_height?: Maybe; + time?: Maybe; +}; + +/** aggregate max on columns */ +export type Genesis_Max_Fields = { + __typename?: 'genesis_max_fields'; + chain_id?: Maybe; + initial_height?: Maybe; + time?: Maybe; +}; + +/** aggregate min on columns */ +export type Genesis_Min_Fields = { + __typename?: 'genesis_min_fields'; + chain_id?: Maybe; + initial_height?: Maybe; + time?: Maybe; +}; + +/** Ordering options when selecting data from "genesis". */ +export type Genesis_Order_By = { + chain_id?: Maybe; + initial_height?: Maybe; + time?: Maybe; +}; + +/** select columns of table "genesis" */ +export enum Genesis_Select_Column { + /** column name */ + ChainId = 'chain_id', + /** column name */ + InitialHeight = 'initial_height', + /** column name */ + Time = 'time' +} + +/** aggregate stddev on columns */ +export type Genesis_Stddev_Fields = { + __typename?: 'genesis_stddev_fields'; + initial_height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Genesis_Stddev_Pop_Fields = { + __typename?: 'genesis_stddev_pop_fields'; + initial_height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Genesis_Stddev_Samp_Fields = { + __typename?: 'genesis_stddev_samp_fields'; + initial_height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Genesis_Sum_Fields = { + __typename?: 'genesis_sum_fields'; + initial_height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Genesis_Var_Pop_Fields = { + __typename?: 'genesis_var_pop_fields'; + initial_height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Genesis_Var_Samp_Fields = { + __typename?: 'genesis_var_samp_fields'; + initial_height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Genesis_Variance_Fields = { + __typename?: 'genesis_variance_fields'; + initial_height?: Maybe; +}; + +/** columns and relationships of "gov_params" */ +export type Gov_Params = { + __typename?: 'gov_params'; + deposit_params: Scalars['jsonb']; + height: Scalars['bigint']; + one_row_id: Scalars['Boolean']; + tally_params: Scalars['jsonb']; + voting_params: Scalars['jsonb']; +}; + + +/** columns and relationships of "gov_params" */ +export type Gov_ParamsDeposit_ParamsArgs = { + path?: Maybe; +}; + + +/** columns and relationships of "gov_params" */ +export type Gov_ParamsTally_ParamsArgs = { + path?: Maybe; +}; + + +/** columns and relationships of "gov_params" */ +export type Gov_ParamsVoting_ParamsArgs = { + path?: Maybe; +}; + +/** aggregated selection of "gov_params" */ +export type Gov_Params_Aggregate = { + __typename?: 'gov_params_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "gov_params" */ +export type Gov_Params_Aggregate_Fields = { + __typename?: 'gov_params_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 "gov_params" */ +export type Gov_Params_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Gov_Params_Avg_Fields = { + __typename?: 'gov_params_avg_fields'; + height?: Maybe; +}; + +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + deposit_params?: Maybe; + height?: Maybe; + one_row_id?: Maybe; + tally_params?: Maybe; + voting_params?: Maybe; +}; + +/** aggregate max on columns */ +export type Gov_Params_Max_Fields = { + __typename?: 'gov_params_max_fields'; + height?: Maybe; +}; + +/** aggregate min on columns */ +export type Gov_Params_Min_Fields = { + __typename?: 'gov_params_min_fields'; + height?: Maybe; +}; + +/** Ordering options when selecting data from "gov_params". */ +export type Gov_Params_Order_By = { + deposit_params?: Maybe; + height?: Maybe; + one_row_id?: Maybe; + tally_params?: Maybe; + voting_params?: Maybe; +}; + +/** select columns of table "gov_params" */ +export enum Gov_Params_Select_Column { + /** column name */ + DepositParams = 'deposit_params', + /** column name */ + Height = 'height', + /** column name */ + OneRowId = 'one_row_id', + /** column name */ + TallyParams = 'tally_params', + /** column name */ + VotingParams = 'voting_params' +} + +/** aggregate stddev on columns */ +export type Gov_Params_Stddev_Fields = { + __typename?: 'gov_params_stddev_fields'; + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Gov_Params_Stddev_Pop_Fields = { + __typename?: 'gov_params_stddev_pop_fields'; + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Gov_Params_Stddev_Samp_Fields = { + __typename?: 'gov_params_stddev_samp_fields'; + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Gov_Params_Sum_Fields = { + __typename?: 'gov_params_sum_fields'; + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Gov_Params_Var_Pop_Fields = { + __typename?: 'gov_params_var_pop_fields'; + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Gov_Params_Var_Samp_Fields = { + __typename?: 'gov_params_var_samp_fields'; + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Gov_Params_Variance_Fields = { + __typename?: 'gov_params_variance_fields'; + height?: Maybe; +}; + +/** columns and relationships of "inflation" */ +export type Inflation = { + __typename?: 'inflation'; + height: Scalars['bigint']; + value: Scalars['numeric']; +}; + +/** aggregated selection of "inflation" */ +export type Inflation_Aggregate = { + __typename?: 'inflation_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "inflation" */ +export type Inflation_Aggregate_Fields = { + __typename?: 'inflation_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 "inflation" */ +export type Inflation_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Inflation_Avg_Fields = { + __typename?: 'inflation_avg_fields'; + height?: Maybe; + value?: Maybe; +}; + +/** Boolean expression to filter rows from the table "inflation". All fields are combined with a logical 'AND'. */ +export type Inflation_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + height?: Maybe; + value?: Maybe; }; +/** aggregate max on columns */ +export type Inflation_Max_Fields = { + __typename?: 'inflation_max_fields'; + height?: Maybe; + value?: Maybe; +}; -/** columns and relationships of "block" */ -export type BlockPre_Commits_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate min on columns */ +export type Inflation_Min_Fields = { + __typename?: 'inflation_min_fields'; + height?: Maybe; + value?: Maybe; }; +/** Ordering options when selecting data from "inflation". */ +export type Inflation_Order_By = { + height?: Maybe; + value?: Maybe; +}; -/** columns and relationships of "block" */ -export type BlockTransactionsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** select columns of table "inflation" */ +export enum Inflation_Select_Column { + /** column name */ + Height = 'height', + /** column name */ + Value = 'value' +} + +/** aggregate stddev on columns */ +export type Inflation_Stddev_Fields = { + __typename?: 'inflation_stddev_fields'; + height?: Maybe; + value?: Maybe; }; +/** aggregate stddev_pop on columns */ +export type Inflation_Stddev_Pop_Fields = { + __typename?: 'inflation_stddev_pop_fields'; + height?: Maybe; + value?: Maybe; +}; -/** columns and relationships of "block" */ -export type BlockTransactions_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate stddev_samp on columns */ +export type Inflation_Stddev_Samp_Fields = { + __typename?: 'inflation_stddev_samp_fields'; + height?: Maybe; + value?: Maybe; }; +/** aggregate sum on columns */ +export type Inflation_Sum_Fields = { + __typename?: 'inflation_sum_fields'; + height?: Maybe; + value?: Maybe; +}; -/** columns and relationships of "block" */ -export type BlockValidator_Voting_PowersArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate var_pop on columns */ +export type Inflation_Var_Pop_Fields = { + __typename?: 'inflation_var_pop_fields'; + height?: Maybe; + value?: Maybe; }; +/** aggregate var_samp on columns */ +export type Inflation_Var_Samp_Fields = { + __typename?: 'inflation_var_samp_fields'; + height?: Maybe; + value?: Maybe; +}; -/** columns and relationships of "block" */ -export type BlockValidator_Voting_Powers_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate variance on columns */ +export type Inflation_Variance_Fields = { + __typename?: 'inflation_variance_fields'; + height?: Maybe; + value?: Maybe; }; -/** aggregated selection of "block" */ -export type Block_Aggregate = { - __typename?: 'block_aggregate'; - aggregate?: Maybe; - nodes: Array; + +/** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */ +export type Jsonb_Comparison_Exp = { + /** is the column contained in the given json value */ + _contained_in?: Maybe; + /** does the column contain the given json value at the top level */ + _contains?: Maybe; + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + /** does the string exist as a top-level key in the column */ + _has_key?: Maybe; + /** do all of these strings exist as top-level keys in the column */ + _has_keys_all?: Maybe>; + /** do any of these strings exist as top-level keys in the column */ + _has_keys_any?: Maybe>; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; }; -/** aggregate fields of "block" */ -export type Block_Aggregate_Fields = { - __typename?: 'block_aggregate_fields'; - avg?: Maybe; +/** columns and relationships of "message" */ +export type Message = { + __typename?: 'message'; + index: Scalars['bigint']; + involved_accounts_addresses?: Maybe; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']; + type: Scalars['String']; + value: Scalars['jsonb']; +}; + + +/** columns and relationships of "message" */ +export type MessageValueArgs = { + path?: Maybe; +}; + +/** aggregated selection of "message" */ +export type Message_Aggregate = { + __typename?: 'message_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "message" */ +export type Message_Aggregate_Fields = { + __typename?: 'message_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; + 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 "block" */ -export type Block_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "message" */ +export type Message_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "block" */ -export type Block_Aggregate_Order_By = { - avg?: Maybe; +/** order by aggregate values of table "message" */ +export type Message_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate avg on columns */ -export type Block_Avg_Fields = { - __typename?: 'block_avg_fields'; - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +export type Message_Avg_Fields = { + __typename?: 'message_avg_fields'; + index?: Maybe; }; -/** order by avg() on columns of table "block" */ -export type Block_Avg_Order_By = { - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +/** order by avg() on columns of table "message" */ +export type Message_Avg_Order_By = { + index?: Maybe; }; -/** Boolean expression to filter rows from the table "block". All fields are combined with a logical 'AND'. */ -export type Block_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - hash?: Maybe; - height?: Maybe; - num_txs?: Maybe; - pre_commits?: Maybe; - proposer_address?: Maybe; - timestamp?: Maybe; - total_gas?: Maybe; - transactions?: Maybe; - validator?: Maybe; - validator_voting_powers?: Maybe; +/** Boolean expression to filter rows from the table "message". All fields are combined with a logical 'AND'. */ +export type Message_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + index?: Maybe; + involved_accounts_addresses?: Maybe<_Text_Comparison_Exp>; + transaction?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; + value?: Maybe; }; /** aggregate max on columns */ -export type Block_Max_Fields = { - __typename?: 'block_max_fields'; - hash?: Maybe; - height?: Maybe; - num_txs?: Maybe; - proposer_address?: Maybe; - timestamp?: Maybe; - total_gas?: Maybe; +export type Message_Max_Fields = { + __typename?: 'message_max_fields'; + index?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; }; -/** order by max() on columns of table "block" */ -export type Block_Max_Order_By = { - hash?: Maybe; - height?: Maybe; - num_txs?: Maybe; - proposer_address?: Maybe; - timestamp?: Maybe; - total_gas?: Maybe; +/** order by max() on columns of table "message" */ +export type Message_Max_Order_By = { + index?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; }; /** aggregate min on columns */ -export type Block_Min_Fields = { - __typename?: 'block_min_fields'; - hash?: Maybe; - height?: Maybe; - num_txs?: Maybe; - proposer_address?: Maybe; - timestamp?: Maybe; - total_gas?: Maybe; +export type Message_Min_Fields = { + __typename?: 'message_min_fields'; + index?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; }; -/** order by min() on columns of table "block" */ -export type Block_Min_Order_By = { - hash?: Maybe; - height?: Maybe; - num_txs?: Maybe; - proposer_address?: Maybe; - timestamp?: Maybe; - total_gas?: Maybe; +/** order by min() on columns of table "message" */ +export type Message_Min_Order_By = { + index?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; }; -/** Ordering options when selecting data from "block". */ -export type Block_Order_By = { - hash?: Maybe; - height?: Maybe; - num_txs?: Maybe; - pre_commits_aggregate?: Maybe; - proposer_address?: Maybe; - timestamp?: Maybe; - total_gas?: Maybe; - transactions_aggregate?: Maybe; - validator?: Maybe; - validator_voting_powers_aggregate?: Maybe; +/** Ordering options when selecting data from "message". */ +export type Message_Order_By = { + index?: Maybe; + involved_accounts_addresses?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; + value?: Maybe; }; -/** select columns of table "block" */ -export enum Block_Select_Column { - /** column name */ - Hash = 'hash', +/** select columns of table "message" */ +export enum Message_Select_Column { /** column name */ - Height = 'height', + Index = 'index', /** column name */ - NumTxs = 'num_txs', + InvolvedAccountsAddresses = 'involved_accounts_addresses', /** column name */ - ProposerAddress = 'proposer_address', + TransactionHash = 'transaction_hash', /** column name */ - Timestamp = 'timestamp', + Type = 'type', /** column name */ - TotalGas = 'total_gas' + Value = 'value' } /** aggregate stddev on columns */ -export type Block_Stddev_Fields = { - __typename?: 'block_stddev_fields'; - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +export type Message_Stddev_Fields = { + __typename?: 'message_stddev_fields'; + index?: Maybe; }; -/** order by stddev() on columns of table "block" */ -export type Block_Stddev_Order_By = { - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +/** order by stddev() on columns of table "message" */ +export type Message_Stddev_Order_By = { + index?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Block_Stddev_Pop_Fields = { - __typename?: 'block_stddev_pop_fields'; - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +export type Message_Stddev_Pop_Fields = { + __typename?: 'message_stddev_pop_fields'; + index?: Maybe; }; -/** order by stddev_pop() on columns of table "block" */ -export type Block_Stddev_Pop_Order_By = { - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +/** order by stddev_pop() on columns of table "message" */ +export type Message_Stddev_Pop_Order_By = { + index?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Block_Stddev_Samp_Fields = { - __typename?: 'block_stddev_samp_fields'; - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +export type Message_Stddev_Samp_Fields = { + __typename?: 'message_stddev_samp_fields'; + index?: Maybe; }; -/** order by stddev_samp() on columns of table "block" */ -export type Block_Stddev_Samp_Order_By = { - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +/** order by stddev_samp() on columns of table "message" */ +export type Message_Stddev_Samp_Order_By = { + index?: Maybe; }; /** aggregate sum on columns */ -export type Block_Sum_Fields = { - __typename?: 'block_sum_fields'; - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +export type Message_Sum_Fields = { + __typename?: 'message_sum_fields'; + index?: Maybe; }; -/** order by sum() on columns of table "block" */ -export type Block_Sum_Order_By = { - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +/** order by sum() on columns of table "message" */ +export type Message_Sum_Order_By = { + index?: Maybe; }; /** aggregate var_pop on columns */ -export type Block_Var_Pop_Fields = { - __typename?: 'block_var_pop_fields'; - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +export type Message_Var_Pop_Fields = { + __typename?: 'message_var_pop_fields'; + index?: Maybe; }; -/** order by var_pop() on columns of table "block" */ -export type Block_Var_Pop_Order_By = { - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +/** order by var_pop() on columns of table "message" */ +export type Message_Var_Pop_Order_By = { + index?: Maybe; }; /** aggregate var_samp on columns */ -export type Block_Var_Samp_Fields = { - __typename?: 'block_var_samp_fields'; - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +export type Message_Var_Samp_Fields = { + __typename?: 'message_var_samp_fields'; + index?: Maybe; }; -/** order by var_samp() on columns of table "block" */ -export type Block_Var_Samp_Order_By = { - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +/** order by var_samp() on columns of table "message" */ +export type Message_Var_Samp_Order_By = { + index?: Maybe; }; /** aggregate variance on columns */ -export type Block_Variance_Fields = { - __typename?: 'block_variance_fields'; - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +export type Message_Variance_Fields = { + __typename?: 'message_variance_fields'; + index?: Maybe; }; -/** order by variance() on columns of table "block" */ -export type Block_Variance_Order_By = { - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +/** order by variance() on columns of table "message" */ +export type Message_Variance_Order_By = { + index?: Maybe; }; -/** columns and relationships of "community_pool" */ -export type Community_Pool = { - __typename?: 'community_pool'; - coins: Scalars['_dec_coin']; +export type Messages_By_Address_Args = { + addresses?: Maybe; + limit?: Maybe; + offset?: Maybe; + types?: Maybe; +}; + +/** columns and relationships of "mint_params" */ +export type Mint_Params = { + __typename?: 'mint_params'; height: Scalars['bigint']; + one_row_id: Scalars['Boolean']; + params: Scalars['jsonb']; }; -/** aggregated selection of "community_pool" */ -export type Community_Pool_Aggregate = { - __typename?: 'community_pool_aggregate'; - aggregate?: Maybe; - nodes: Array; + +/** columns and relationships of "mint_params" */ +export type Mint_ParamsParamsArgs = { + path?: Maybe; }; -/** aggregate fields of "community_pool" */ -export type Community_Pool_Aggregate_Fields = { - __typename?: 'community_pool_aggregate_fields'; - avg?: Maybe; +/** aggregated selection of "mint_params" */ +export type Mint_Params_Aggregate = { + __typename?: 'mint_params_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "mint_params" */ +export type Mint_Params_Aggregate_Fields = { + __typename?: 'mint_params_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; + 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 "community_pool" */ -export type Community_Pool_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "mint_params" */ +export type Mint_Params_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** aggregate avg on columns */ -export type Community_Pool_Avg_Fields = { - __typename?: 'community_pool_avg_fields'; +/** aggregate avg on columns */ +export type Mint_Params_Avg_Fields = { + __typename?: 'mint_params_avg_fields'; height?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - coins?: Maybe<_Dec_Coin_Comparison_Exp>; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; height?: Maybe; + one_row_id?: Maybe; + params?: Maybe; }; /** aggregate max on columns */ -export type Community_Pool_Max_Fields = { - __typename?: 'community_pool_max_fields'; +export type Mint_Params_Max_Fields = { + __typename?: 'mint_params_max_fields'; height?: Maybe; }; /** aggregate min on columns */ -export type Community_Pool_Min_Fields = { - __typename?: 'community_pool_min_fields'; +export type Mint_Params_Min_Fields = { + __typename?: 'mint_params_min_fields'; height?: Maybe; }; -/** Ordering options when selecting data from "community_pool". */ -export type Community_Pool_Order_By = { - coins?: Maybe; +/** Ordering options when selecting data from "mint_params". */ +export type Mint_Params_Order_By = { height?: Maybe; + one_row_id?: Maybe; + params?: Maybe; }; -/** select columns of table "community_pool" */ -export enum Community_Pool_Select_Column { +/** select columns of table "mint_params" */ +export enum Mint_Params_Select_Column { /** column name */ - Coins = 'coins', + Height = 'height', /** column name */ - Height = 'height' + OneRowId = 'one_row_id', + /** column name */ + Params = 'params' } /** aggregate stddev on columns */ -export type Community_Pool_Stddev_Fields = { - __typename?: 'community_pool_stddev_fields'; +export type Mint_Params_Stddev_Fields = { + __typename?: 'mint_params_stddev_fields'; height?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Community_Pool_Stddev_Pop_Fields = { - __typename?: 'community_pool_stddev_pop_fields'; +export type Mint_Params_Stddev_Pop_Fields = { + __typename?: 'mint_params_stddev_pop_fields'; height?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Community_Pool_Stddev_Samp_Fields = { - __typename?: 'community_pool_stddev_samp_fields'; +export type Mint_Params_Stddev_Samp_Fields = { + __typename?: 'mint_params_stddev_samp_fields'; height?: Maybe; }; /** aggregate sum on columns */ -export type Community_Pool_Sum_Fields = { - __typename?: 'community_pool_sum_fields'; +export type Mint_Params_Sum_Fields = { + __typename?: 'mint_params_sum_fields'; height?: Maybe; }; /** aggregate var_pop on columns */ -export type Community_Pool_Var_Pop_Fields = { - __typename?: 'community_pool_var_pop_fields'; +export type Mint_Params_Var_Pop_Fields = { + __typename?: 'mint_params_var_pop_fields'; height?: Maybe; }; /** aggregate var_samp on columns */ -export type Community_Pool_Var_Samp_Fields = { - __typename?: 'community_pool_var_samp_fields'; +export type Mint_Params_Var_Samp_Fields = { + __typename?: 'mint_params_var_samp_fields'; height?: Maybe; }; /** aggregate variance on columns */ -export type Community_Pool_Variance_Fields = { - __typename?: 'community_pool_variance_fields'; +export type Mint_Params_Variance_Fields = { + __typename?: 'mint_params_variance_fields'; height?: Maybe; }; -/** columns and relationships of "distribution_params" */ -export type Distribution_Params = { - __typename?: 'distribution_params'; - height: Scalars['bigint']; - one_row_id: Scalars['Boolean']; - params: Scalars['jsonb']; +/** columns and relationships of "modules" */ +export type Modules = { + __typename?: 'modules'; + module_name: Scalars['String']; }; +/** aggregated selection of "modules" */ +export type Modules_Aggregate = { + __typename?: 'modules_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; -/** columns and relationships of "distribution_params" */ -export type Distribution_ParamsParamsArgs = { - path?: Maybe; +/** aggregate fields of "modules" */ +export type Modules_Aggregate_Fields = { + __typename?: 'modules_aggregate_fields'; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; }; -/** aggregated selection of "distribution_params" */ -export type Distribution_Params_Aggregate = { - __typename?: 'distribution_params_aggregate'; - aggregate?: Maybe; - nodes: Array; + +/** aggregate fields of "modules" */ +export type Modules_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; -/** aggregate fields of "distribution_params" */ -export type Distribution_Params_Aggregate_Fields = { - __typename?: 'distribution_params_aggregate_fields'; - avg?: Maybe; +/** Boolean expression to filter rows from the table "modules". All fields are combined with a logical 'AND'. */ +export type Modules_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + module_name?: Maybe; +}; + +/** aggregate max on columns */ +export type Modules_Max_Fields = { + __typename?: 'modules_max_fields'; + module_name?: Maybe; +}; + +/** aggregate min on columns */ +export type Modules_Min_Fields = { + __typename?: 'modules_min_fields'; + module_name?: Maybe; +}; + +/** Ordering options when selecting data from "modules". */ +export type Modules_Order_By = { + module_name?: Maybe; +}; + +/** select columns of table "modules" */ +export enum Modules_Select_Column { + /** column name */ + ModuleName = 'module_name' +} + + +/** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ +export type Numeric_Comparison_Exp = { + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; +}; + +/** 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 "poll" */ +export type Poll = { + __typename?: 'poll'; + allows_answer_edits: Scalars['Boolean']; + allows_multiple_answers: Scalars['Boolean']; + end_date: Scalars['timestamp']; + id: Scalars['Int']; + /** An array relationship */ + poll_answers: Array; + /** An aggregate relationship */ + poll_answers_aggregate: Poll_Answer_Aggregate; + /** An object relationship */ + post: Post; + post_id: Scalars['String']; + question: Scalars['String']; + /** An array relationship */ + user_poll_answers: Array; + /** An aggregate relationship */ + user_poll_answers_aggregate: User_Poll_Answer_Aggregate; +}; + + +/** columns and relationships of "poll" */ +export type PollPoll_AnswersArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "poll" */ +export type PollPoll_Answers_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "poll" */ +export type PollUser_Poll_AnswersArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "poll" */ +export type PollUser_Poll_Answers_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + +/** aggregated selection of "poll" */ +export type Poll_Aggregate = { + __typename?: 'poll_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "poll" */ +export type Poll_Aggregate_Fields = { + __typename?: 'poll_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; + 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 "distribution_params" */ -export type Distribution_Params_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "poll" */ +export type Poll_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** columns and relationships of "poll_answer" */ +export type Poll_Answer = { + __typename?: 'poll_answer'; + answer_id: Scalars['String']; + answer_text: Scalars['String']; + /** An object relationship */ + poll: Poll; + poll_id: Scalars['Int']; +}; + +/** aggregated selection of "poll_answer" */ +export type Poll_Answer_Aggregate = { + __typename?: 'poll_answer_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "poll_answer" */ +export type Poll_Answer_Aggregate_Fields = { + __typename?: 'poll_answer_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 "poll_answer" */ +export type Poll_Answer_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; +/** order by aggregate values of table "poll_answer" */ +export type Poll_Answer_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + /** aggregate avg on columns */ -export type Distribution_Params_Avg_Fields = { - __typename?: 'distribution_params_avg_fields'; - height?: Maybe; +export type Poll_Answer_Avg_Fields = { + __typename?: 'poll_answer_avg_fields'; + poll_id?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; +/** order by avg() on columns of table "poll_answer" */ +export type Poll_Answer_Avg_Order_By = { + poll_id?: Maybe; +}; + +/** Boolean expression to filter rows from the table "poll_answer". All fields are combined with a logical 'AND'. */ +export type Poll_Answer_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + answer_id?: Maybe; + answer_text?: Maybe; + poll?: Maybe; + poll_id?: Maybe; }; /** aggregate max on columns */ -export type Distribution_Params_Max_Fields = { - __typename?: 'distribution_params_max_fields'; - height?: Maybe; +export type Poll_Answer_Max_Fields = { + __typename?: 'poll_answer_max_fields'; + answer_id?: Maybe; + answer_text?: Maybe; + poll_id?: Maybe; +}; + +/** order by max() on columns of table "poll_answer" */ +export type Poll_Answer_Max_Order_By = { + answer_id?: Maybe; + answer_text?: Maybe; + poll_id?: Maybe; }; /** aggregate min on columns */ -export type Distribution_Params_Min_Fields = { - __typename?: 'distribution_params_min_fields'; - height?: Maybe; +export type Poll_Answer_Min_Fields = { + __typename?: 'poll_answer_min_fields'; + answer_id?: Maybe; + answer_text?: Maybe; + poll_id?: Maybe; }; -/** Ordering options when selecting data from "distribution_params". */ -export type Distribution_Params_Order_By = { - height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; +/** order by min() on columns of table "poll_answer" */ +export type Poll_Answer_Min_Order_By = { + answer_id?: Maybe; + answer_text?: Maybe; + poll_id?: Maybe; }; -/** select columns of table "distribution_params" */ -export enum Distribution_Params_Select_Column { +/** Ordering options when selecting data from "poll_answer". */ +export type Poll_Answer_Order_By = { + answer_id?: Maybe; + answer_text?: Maybe; + poll?: Maybe; + poll_id?: Maybe; +}; + +/** select columns of table "poll_answer" */ +export enum Poll_Answer_Select_Column { /** column name */ - Height = 'height', + AnswerId = 'answer_id', /** column name */ - OneRowId = 'one_row_id', + AnswerText = 'answer_text', /** column name */ - Params = 'params' + PollId = 'poll_id' } /** aggregate stddev on columns */ -export type Distribution_Params_Stddev_Fields = { - __typename?: 'distribution_params_stddev_fields'; - height?: Maybe; +export type Poll_Answer_Stddev_Fields = { + __typename?: 'poll_answer_stddev_fields'; + poll_id?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Distribution_Params_Stddev_Pop_Fields = { - __typename?: 'distribution_params_stddev_pop_fields'; - height?: Maybe; +/** order by stddev() on columns of table "poll_answer" */ +export type Poll_Answer_Stddev_Order_By = { + poll_id?: Maybe; }; -/** aggregate stddev_samp on columns */ -export type Distribution_Params_Stddev_Samp_Fields = { - __typename?: 'distribution_params_stddev_samp_fields'; - height?: Maybe; +/** aggregate stddev_pop on columns */ +export type Poll_Answer_Stddev_Pop_Fields = { + __typename?: 'poll_answer_stddev_pop_fields'; + poll_id?: Maybe; }; -/** aggregate sum on columns */ -export type Distribution_Params_Sum_Fields = { - __typename?: 'distribution_params_sum_fields'; - height?: Maybe; +/** order by stddev_pop() on columns of table "poll_answer" */ +export type Poll_Answer_Stddev_Pop_Order_By = { + poll_id?: Maybe; }; -/** aggregate var_pop on columns */ -export type Distribution_Params_Var_Pop_Fields = { - __typename?: 'distribution_params_var_pop_fields'; - height?: Maybe; +/** aggregate stddev_samp on columns */ +export type Poll_Answer_Stddev_Samp_Fields = { + __typename?: 'poll_answer_stddev_samp_fields'; + poll_id?: Maybe; }; -/** aggregate var_samp on columns */ -export type Distribution_Params_Var_Samp_Fields = { - __typename?: 'distribution_params_var_samp_fields'; - height?: Maybe; +/** order by stddev_samp() on columns of table "poll_answer" */ +export type Poll_Answer_Stddev_Samp_Order_By = { + poll_id?: Maybe; }; -/** aggregate variance on columns */ -export type Distribution_Params_Variance_Fields = { - __typename?: 'distribution_params_variance_fields'; - height?: Maybe; +/** aggregate sum on columns */ +export type Poll_Answer_Sum_Fields = { + __typename?: 'poll_answer_sum_fields'; + poll_id?: Maybe; }; -/** 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 sum() on columns of table "poll_answer" */ +export type Poll_Answer_Sum_Order_By = { + poll_id?: Maybe; }; -/** aggregated selection of "double_sign_evidence" */ -export type Double_Sign_Evidence_Aggregate = { - __typename?: 'double_sign_evidence_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregate var_pop on columns */ +export type Poll_Answer_Var_Pop_Fields = { + __typename?: 'poll_answer_var_pop_fields'; + poll_id?: Maybe; }; -/** aggregate fields of "double_sign_evidence" */ -export type Double_Sign_Evidence_Aggregate_Fields = { - __typename?: 'double_sign_evidence_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; +/** order by var_pop() on columns of table "poll_answer" */ +export type Poll_Answer_Var_Pop_Order_By = { + poll_id?: Maybe; }; - -/** aggregate fields of "double_sign_evidence" */ -export type Double_Sign_Evidence_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** aggregate var_samp on columns */ +export type Poll_Answer_Var_Samp_Fields = { + __typename?: 'poll_answer_var_samp_fields'; + poll_id?: Maybe; }; -/** order by aggregate values of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; +/** order by var_samp() on columns of table "poll_answer" */ +export type Poll_Answer_Var_Samp_Order_By = { + poll_id?: Maybe; }; -/** aggregate avg on columns */ -export type Double_Sign_Evidence_Avg_Fields = { - __typename?: 'double_sign_evidence_avg_fields'; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +/** aggregate variance on columns */ +export type Poll_Answer_Variance_Fields = { + __typename?: 'poll_answer_variance_fields'; + poll_id?: Maybe; }; -/** order by avg() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Avg_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +/** order by variance() on columns of table "poll_answer" */ +export type Poll_Answer_Variance_Order_By = { + poll_id?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - doubleSignVoteByVoteAId?: Maybe; - double_sign_vote?: Maybe; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +/** aggregate avg on columns */ +export type Poll_Avg_Fields = { + __typename?: 'poll_avg_fields'; + id?: Maybe; }; -/** aggregate max on columns */ -export type Double_Sign_Evidence_Max_Fields = { - __typename?: 'double_sign_evidence_max_fields'; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +/** Boolean expression to filter rows from the table "poll". All fields are combined with a logical 'AND'. */ +export type Poll_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + allows_answer_edits?: Maybe; + allows_multiple_answers?: Maybe; + end_date?: Maybe; + id?: Maybe; + poll_answers?: Maybe; + post?: Maybe; + post_id?: Maybe; + question?: Maybe; + user_poll_answers?: Maybe; }; -/** order by max() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Max_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +/** aggregate max on columns */ +export type Poll_Max_Fields = { + __typename?: 'poll_max_fields'; + end_date?: Maybe; + id?: Maybe; + post_id?: Maybe; + question?: Maybe; }; /** aggregate min on columns */ -export type Double_Sign_Evidence_Min_Fields = { - __typename?: 'double_sign_evidence_min_fields'; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** order by min() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Min_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +export type Poll_Min_Fields = { + __typename?: 'poll_min_fields'; + end_date?: Maybe; + id?: Maybe; + post_id?: Maybe; + question?: Maybe; }; -/** Ordering options when selecting data from "double_sign_evidence". */ -export type Double_Sign_Evidence_Order_By = { - doubleSignVoteByVoteAId?: Maybe; - double_sign_vote?: Maybe; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +/** Ordering options when selecting data from "poll". */ +export type Poll_Order_By = { + allows_answer_edits?: Maybe; + allows_multiple_answers?: Maybe; + end_date?: Maybe; + id?: Maybe; + poll_answers_aggregate?: Maybe; + post?: Maybe; + post_id?: Maybe; + question?: Maybe; + user_poll_answers_aggregate?: Maybe; }; -/** select columns of table "double_sign_evidence" */ -export enum Double_Sign_Evidence_Select_Column { +/** select columns of table "poll" */ +export enum Poll_Select_Column { /** column name */ - Height = 'height', + AllowsAnswerEdits = 'allows_answer_edits', /** column name */ - VoteAId = 'vote_a_id', + AllowsMultipleAnswers = 'allows_multiple_answers', /** column name */ - VoteBId = 'vote_b_id' + EndDate = 'end_date', + /** column name */ + Id = 'id', + /** column name */ + PostId = 'post_id', + /** column name */ + Question = 'question' } /** aggregate stddev on columns */ -export type Double_Sign_Evidence_Stddev_Fields = { - __typename?: 'double_sign_evidence_stddev_fields'; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +export type Poll_Stddev_Fields = { + __typename?: 'poll_stddev_fields'; + id?: Maybe; }; -/** order by stddev() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Stddev_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +/** aggregate stddev_pop on columns */ +export type Poll_Stddev_Pop_Fields = { + __typename?: 'poll_stddev_pop_fields'; + id?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Double_Sign_Evidence_Stddev_Pop_Fields = { - __typename?: 'double_sign_evidence_stddev_pop_fields'; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +/** aggregate stddev_samp on columns */ +export type Poll_Stddev_Samp_Fields = { + __typename?: 'poll_stddev_samp_fields'; + id?: Maybe; }; -/** order by stddev_pop() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Stddev_Pop_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +/** aggregate sum on columns */ +export type Poll_Sum_Fields = { + __typename?: 'poll_sum_fields'; + id?: Maybe; }; -/** aggregate stddev_samp on columns */ -export type Double_Sign_Evidence_Stddev_Samp_Fields = { - __typename?: 'double_sign_evidence_stddev_samp_fields'; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +/** aggregate var_pop on columns */ +export type Poll_Var_Pop_Fields = { + __typename?: 'poll_var_pop_fields'; + id?: Maybe; }; -/** order by stddev_samp() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Stddev_Samp_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +/** aggregate var_samp on columns */ +export type Poll_Var_Samp_Fields = { + __typename?: 'poll_var_samp_fields'; + id?: Maybe; }; -/** aggregate sum on columns */ -export type Double_Sign_Evidence_Sum_Fields = { - __typename?: 'double_sign_evidence_sum_fields'; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +/** aggregate variance on columns */ +export type Poll_Variance_Fields = { + __typename?: 'poll_variance_fields'; + id?: Maybe; }; -/** order by sum() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Sum_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +/** columns and relationships of "post" */ +export type Post = { + __typename?: 'post'; + comments_state: Scalars['String']; + created: Scalars['timestamp']; + creator_address: Scalars['String']; + height: Scalars['bigint']; + hidden: Scalars['Boolean']; + id: Scalars['String']; + last_edited: Scalars['timestamp']; + message: Scalars['String']; + parent_id?: Maybe; + /** An object relationship */ + poll: Poll; + /** An object relationship */ + post?: Maybe; + /** An array relationship */ + post_attachments: Array; + /** An aggregate relationship */ + post_attachments_aggregate: Post_Attachment_Aggregate; + /** An array relationship */ + post_attributes: Array; + /** An aggregate relationship */ + post_attributes_aggregate: Post_Attribute_Aggregate; + /** An array relationship */ + post_reactions: Array; + /** An aggregate relationship */ + post_reactions_aggregate: Post_Reaction_Aggregate; + /** An array relationship */ + post_reports: Array; + /** An aggregate relationship */ + post_reports_aggregate: Post_Report_Aggregate; + /** An array relationship */ + posts: Array; + /** An aggregate relationship */ + posts_aggregate: Post_Aggregate; + /** An object relationship */ + profile: Profile; + subspace: Scalars['String']; }; -/** aggregate var_pop on columns */ -export type Double_Sign_Evidence_Var_Pop_Fields = { - __typename?: 'double_sign_evidence_var_pop_fields'; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; + +/** columns and relationships of "post" */ +export type PostPost_AttachmentsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by var_pop() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Var_Pop_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; + +/** columns and relationships of "post" */ +export type PostPost_Attachments_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate var_samp on columns */ -export type Double_Sign_Evidence_Var_Samp_Fields = { - __typename?: 'double_sign_evidence_var_samp_fields'; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; + +/** columns and relationships of "post" */ +export type PostPost_AttributesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by var_samp() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Var_Samp_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; + +/** columns and relationships of "post" */ +export type PostPost_Attributes_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "post" */ +export type PostPost_ReactionsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate variance on columns */ -export type Double_Sign_Evidence_Variance_Fields = { - __typename?: 'double_sign_evidence_variance_fields'; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; + +/** columns and relationships of "post" */ +export type PostPost_Reactions_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by variance() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Variance_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; + +/** columns and relationships of "post" */ +export type PostPost_ReportsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** 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 aggregate relationship */ - doubleSignEvidencesByVoteBId_aggregate: Double_Sign_Evidence_Aggregate; - /** An array relationship */ - double_sign_evidences: Array; - /** An aggregate relationship */ - double_sign_evidences_aggregate: Double_Sign_Evidence_Aggregate; - height: Scalars['bigint']; - id: Scalars['Int']; - 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 "post" */ +export type PostPost_Reports_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** columns and relationships of "double_sign_vote" */ -export type Double_Sign_VoteDoubleSignEvidencesByVoteBIdArgs = { - distinct_on?: Maybe>; +/** columns and relationships of "post" */ +export type PostPostsArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** columns and relationships of "double_sign_vote" */ -export type Double_Sign_VoteDoubleSignEvidencesByVoteBId_AggregateArgs = { - distinct_on?: Maybe>; +/** columns and relationships of "post" */ +export type PostPosts_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; +/** aggregated selection of "post" */ +export type Post_Aggregate = { + __typename?: 'post_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; -/** columns and relationships of "double_sign_vote" */ -export type Double_Sign_VoteDouble_Sign_EvidencesArgs = { - distinct_on?: Maybe>; +/** aggregate fields of "post" */ +export type Post_Aggregate_Fields = { + __typename?: 'post_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 "post" */ +export type Post_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "post" */ +export type Post_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** columns and relationships of "post_attachment" */ +export type Post_Attachment = { + __typename?: 'post_attachment'; + id: Scalars['Int']; + mime_type: Scalars['String']; + /** An object relationship */ + post: Post; + /** An array relationship */ + post_attachment_tags: Array; + /** An aggregate relationship */ + post_attachment_tags_aggregate: Post_Attachment_Tag_Aggregate; + post_id: Scalars['String']; + uri: Scalars['String']; +}; + + +/** columns and relationships of "post_attachment" */ +export type Post_AttachmentPost_Attachment_TagsArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** columns and relationships of "double_sign_vote" */ -export type Double_Sign_VoteDouble_Sign_Evidences_AggregateArgs = { - distinct_on?: Maybe>; +/** columns and relationships of "post_attachment" */ +export type Post_AttachmentPost_Attachment_Tags_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregated selection of "double_sign_vote" */ -export type Double_Sign_Vote_Aggregate = { - __typename?: 'double_sign_vote_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "post_attachment" */ +export type Post_Attachment_Aggregate = { + __typename?: 'post_attachment_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "double_sign_vote" */ -export type Double_Sign_Vote_Aggregate_Fields = { - __typename?: 'double_sign_vote_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "post_attachment" */ +export type Post_Attachment_Aggregate_Fields = { + __typename?: 'post_attachment_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; + 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 "double_sign_vote" */ -export type Double_Sign_Vote_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "post_attachment" */ +export type Post_Attachment_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "double_sign_vote" */ -export type Double_Sign_Vote_Aggregate_Order_By = { - avg?: Maybe; +/** order by aggregate values of table "post_attachment" */ +export type Post_Attachment_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate avg on columns */ -export type Double_Sign_Vote_Avg_Fields = { - __typename?: 'double_sign_vote_avg_fields'; - height?: Maybe; +export type Post_Attachment_Avg_Fields = { + __typename?: 'post_attachment_avg_fields'; id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; }; -/** order by avg() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Avg_Order_By = { - height?: Maybe; +/** order by avg() on columns of table "post_attachment" */ +export type Post_Attachment_Avg_Order_By = { id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - block_id?: Maybe; - doubleSignEvidencesByVoteBId?: Maybe; - double_sign_evidences?: Maybe; - height?: Maybe; +/** Boolean expression to filter rows from the table "post_attachment". All fields are combined with a logical 'AND'. */ +export type Post_Attachment_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; id?: Maybe; - round?: Maybe; - signature?: Maybe; - type?: Maybe; - validator?: Maybe; - validator_address?: Maybe; - validator_index?: Maybe; + mime_type?: Maybe; + post?: Maybe; + post_attachment_tags?: Maybe; + post_id?: Maybe; + uri?: Maybe; }; /** aggregate max on columns */ -export type Double_Sign_Vote_Max_Fields = { - __typename?: 'double_sign_vote_max_fields'; - block_id?: Maybe; - height?: Maybe; +export type Post_Attachment_Max_Fields = { + __typename?: 'post_attachment_max_fields'; id?: Maybe; - round?: Maybe; - signature?: Maybe; - type?: Maybe; - validator_address?: Maybe; - validator_index?: Maybe; + mime_type?: Maybe; + post_id?: Maybe; + uri?: Maybe; }; -/** order by max() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Max_Order_By = { - block_id?: Maybe; - height?: Maybe; +/** order by max() on columns of table "post_attachment" */ +export type Post_Attachment_Max_Order_By = { id?: Maybe; - round?: Maybe; - signature?: Maybe; - type?: Maybe; - validator_address?: Maybe; - validator_index?: Maybe; + mime_type?: Maybe; + post_id?: Maybe; + uri?: Maybe; }; /** aggregate min on columns */ -export type Double_Sign_Vote_Min_Fields = { - __typename?: 'double_sign_vote_min_fields'; - block_id?: Maybe; - height?: Maybe; +export type Post_Attachment_Min_Fields = { + __typename?: 'post_attachment_min_fields'; id?: Maybe; - round?: Maybe; - signature?: Maybe; - type?: Maybe; - validator_address?: Maybe; - validator_index?: Maybe; + mime_type?: Maybe; + post_id?: Maybe; + uri?: Maybe; }; -/** order by min() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Min_Order_By = { - block_id?: Maybe; - height?: Maybe; +/** order by min() on columns of table "post_attachment" */ +export type Post_Attachment_Min_Order_By = { id?: Maybe; - round?: Maybe; - signature?: Maybe; - type?: Maybe; - validator_address?: Maybe; - validator_index?: Maybe; + mime_type?: Maybe; + post_id?: Maybe; + uri?: Maybe; }; -/** Ordering options when selecting data from "double_sign_vote". */ -export type Double_Sign_Vote_Order_By = { - block_id?: Maybe; - doubleSignEvidencesByVoteBId_aggregate?: Maybe; - double_sign_evidences_aggregate?: Maybe; - height?: Maybe; +/** Ordering options when selecting data from "post_attachment". */ +export type Post_Attachment_Order_By = { id?: Maybe; - round?: Maybe; - signature?: Maybe; - type?: Maybe; - validator?: Maybe; - validator_address?: Maybe; - validator_index?: Maybe; + mime_type?: Maybe; + post?: Maybe; + post_attachment_tags_aggregate?: Maybe; + post_id?: Maybe; + uri?: Maybe; }; -/** select columns of table "double_sign_vote" */ -export enum Double_Sign_Vote_Select_Column { - /** column name */ - BlockId = 'block_id', - /** column name */ - Height = 'height', +/** select columns of table "post_attachment" */ +export enum Post_Attachment_Select_Column { /** column name */ Id = 'id', /** column name */ - Round = 'round', + MimeType = 'mime_type', /** column name */ - Signature = 'signature', + PostId = 'post_id', /** column name */ - Type = 'type', + Uri = 'uri' +} + +/** aggregate stddev on columns */ +export type Post_Attachment_Stddev_Fields = { + __typename?: 'post_attachment_stddev_fields'; + id?: Maybe; +}; + +/** order by stddev() on columns of table "post_attachment" */ +export type Post_Attachment_Stddev_Order_By = { + id?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Post_Attachment_Stddev_Pop_Fields = { + __typename?: 'post_attachment_stddev_pop_fields'; + id?: Maybe; +}; + +/** order by stddev_pop() on columns of table "post_attachment" */ +export type Post_Attachment_Stddev_Pop_Order_By = { + id?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Post_Attachment_Stddev_Samp_Fields = { + __typename?: 'post_attachment_stddev_samp_fields'; + id?: Maybe; +}; + +/** order by stddev_samp() on columns of table "post_attachment" */ +export type Post_Attachment_Stddev_Samp_Order_By = { + id?: Maybe; +}; + +/** aggregate sum on columns */ +export type Post_Attachment_Sum_Fields = { + __typename?: 'post_attachment_sum_fields'; + id?: Maybe; +}; + +/** order by sum() on columns of table "post_attachment" */ +export type Post_Attachment_Sum_Order_By = { + id?: Maybe; +}; + +/** columns and relationships of "post_attachment_tag" */ +export type Post_Attachment_Tag = { + __typename?: 'post_attachment_tag'; + attachment_id: Scalars['Int']; + /** An object relationship */ + post_attachment: Post_Attachment; + /** An object relationship */ + profile: Profile; + tag_address: Scalars['String']; +}; + +/** aggregated selection of "post_attachment_tag" */ +export type Post_Attachment_Tag_Aggregate = { + __typename?: 'post_attachment_tag_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "post_attachment_tag" */ +export type Post_Attachment_Tag_Aggregate_Fields = { + __typename?: 'post_attachment_tag_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 "post_attachment_tag" */ +export type Post_Attachment_Tag_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "post_attachment_tag" */ +export type Post_Attachment_Tag_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Post_Attachment_Tag_Avg_Fields = { + __typename?: 'post_attachment_tag_avg_fields'; + attachment_id?: Maybe; +}; + +/** order by avg() on columns of table "post_attachment_tag" */ +export type Post_Attachment_Tag_Avg_Order_By = { + attachment_id?: Maybe; +}; + +/** Boolean expression to filter rows from the table "post_attachment_tag". All fields are combined with a logical 'AND'. */ +export type Post_Attachment_Tag_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + attachment_id?: Maybe; + post_attachment?: Maybe; + profile?: Maybe; + tag_address?: Maybe; +}; + +/** aggregate max on columns */ +export type Post_Attachment_Tag_Max_Fields = { + __typename?: 'post_attachment_tag_max_fields'; + attachment_id?: Maybe; + tag_address?: Maybe; +}; + +/** order by max() on columns of table "post_attachment_tag" */ +export type Post_Attachment_Tag_Max_Order_By = { + attachment_id?: Maybe; + tag_address?: Maybe; +}; + +/** aggregate min on columns */ +export type Post_Attachment_Tag_Min_Fields = { + __typename?: 'post_attachment_tag_min_fields'; + attachment_id?: Maybe; + tag_address?: Maybe; +}; + +/** order by min() on columns of table "post_attachment_tag" */ +export type Post_Attachment_Tag_Min_Order_By = { + attachment_id?: Maybe; + tag_address?: Maybe; +}; + +/** Ordering options when selecting data from "post_attachment_tag". */ +export type Post_Attachment_Tag_Order_By = { + attachment_id?: Maybe; + post_attachment?: Maybe; + profile?: Maybe; + tag_address?: Maybe; +}; + +/** select columns of table "post_attachment_tag" */ +export enum Post_Attachment_Tag_Select_Column { /** column name */ - ValidatorAddress = 'validator_address', + AttachmentId = 'attachment_id', /** column name */ - ValidatorIndex = 'validator_index' + TagAddress = 'tag_address' } /** aggregate stddev on columns */ -export type Double_Sign_Vote_Stddev_Fields = { - __typename?: 'double_sign_vote_stddev_fields'; - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +export type Post_Attachment_Tag_Stddev_Fields = { + __typename?: 'post_attachment_tag_stddev_fields'; + attachment_id?: Maybe; }; -/** order by stddev() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Stddev_Order_By = { - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +/** order by stddev() on columns of table "post_attachment_tag" */ +export type Post_Attachment_Tag_Stddev_Order_By = { + attachment_id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Double_Sign_Vote_Stddev_Pop_Fields = { - __typename?: 'double_sign_vote_stddev_pop_fields'; - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +export type Post_Attachment_Tag_Stddev_Pop_Fields = { + __typename?: 'post_attachment_tag_stddev_pop_fields'; + attachment_id?: Maybe; }; -/** order by stddev_pop() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Stddev_Pop_Order_By = { - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +/** order by stddev_pop() on columns of table "post_attachment_tag" */ +export type Post_Attachment_Tag_Stddev_Pop_Order_By = { + attachment_id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Double_Sign_Vote_Stddev_Samp_Fields = { - __typename?: 'double_sign_vote_stddev_samp_fields'; - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +export type Post_Attachment_Tag_Stddev_Samp_Fields = { + __typename?: 'post_attachment_tag_stddev_samp_fields'; + attachment_id?: Maybe; }; -/** order by stddev_samp() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Stddev_Samp_Order_By = { - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +/** order by stddev_samp() on columns of table "post_attachment_tag" */ +export type Post_Attachment_Tag_Stddev_Samp_Order_By = { + attachment_id?: Maybe; }; /** aggregate sum on columns */ -export type Double_Sign_Vote_Sum_Fields = { - __typename?: 'double_sign_vote_sum_fields'; - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +export type Post_Attachment_Tag_Sum_Fields = { + __typename?: 'post_attachment_tag_sum_fields'; + attachment_id?: Maybe; }; -/** order by sum() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Sum_Order_By = { - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +/** order by sum() on columns of table "post_attachment_tag" */ +export type Post_Attachment_Tag_Sum_Order_By = { + attachment_id?: Maybe; }; /** aggregate var_pop on columns */ -export type Double_Sign_Vote_Var_Pop_Fields = { - __typename?: 'double_sign_vote_var_pop_fields'; - height?: Maybe; +export type Post_Attachment_Tag_Var_Pop_Fields = { + __typename?: 'post_attachment_tag_var_pop_fields'; + attachment_id?: Maybe; +}; + +/** order by var_pop() on columns of table "post_attachment_tag" */ +export type Post_Attachment_Tag_Var_Pop_Order_By = { + attachment_id?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Post_Attachment_Tag_Var_Samp_Fields = { + __typename?: 'post_attachment_tag_var_samp_fields'; + attachment_id?: Maybe; +}; + +/** order by var_samp() on columns of table "post_attachment_tag" */ +export type Post_Attachment_Tag_Var_Samp_Order_By = { + attachment_id?: Maybe; +}; + +/** aggregate variance on columns */ +export type Post_Attachment_Tag_Variance_Fields = { + __typename?: 'post_attachment_tag_variance_fields'; + attachment_id?: Maybe; +}; + +/** order by variance() on columns of table "post_attachment_tag" */ +export type Post_Attachment_Tag_Variance_Order_By = { + attachment_id?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Post_Attachment_Var_Pop_Fields = { + __typename?: 'post_attachment_var_pop_fields'; id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; }; -/** order by var_pop() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Var_Pop_Order_By = { - height?: Maybe; +/** order by var_pop() on columns of table "post_attachment" */ +export type Post_Attachment_Var_Pop_Order_By = { id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; }; /** aggregate var_samp on columns */ -export type Double_Sign_Vote_Var_Samp_Fields = { - __typename?: 'double_sign_vote_var_samp_fields'; - height?: Maybe; +export type Post_Attachment_Var_Samp_Fields = { + __typename?: 'post_attachment_var_samp_fields'; id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; }; -/** order by var_samp() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Var_Samp_Order_By = { - height?: Maybe; +/** order by var_samp() on columns of table "post_attachment" */ +export type Post_Attachment_Var_Samp_Order_By = { id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; }; /** aggregate variance on columns */ -export type Double_Sign_Vote_Variance_Fields = { - __typename?: 'double_sign_vote_variance_fields'; - height?: Maybe; +export type Post_Attachment_Variance_Fields = { + __typename?: 'post_attachment_variance_fields'; id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; }; -/** order by variance() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Variance_Order_By = { - height?: Maybe; +/** order by variance() on columns of table "post_attachment" */ +export type Post_Attachment_Variance_Order_By = { id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; }; -/** columns and relationships of "genesis" */ -export type Genesis = { - __typename?: 'genesis'; - chain_id: Scalars['String']; - initial_height: Scalars['bigint']; - time: Scalars['timestamp']; +/** columns and relationships of "post_attribute" */ +export type Post_Attribute = { + __typename?: 'post_attribute'; + key: Scalars['String']; + /** An object relationship */ + post: Post; + post_id: Scalars['String']; + value: Scalars['String']; }; -/** aggregated selection of "genesis" */ -export type Genesis_Aggregate = { - __typename?: 'genesis_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "post_attribute" */ +export type Post_Attribute_Aggregate = { + __typename?: 'post_attribute_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "genesis" */ -export type Genesis_Aggregate_Fields = { - __typename?: 'genesis_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "post_attribute" */ +export type Post_Attribute_Aggregate_Fields = { + __typename?: 'post_attribute_aggregate_fields'; 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; + max?: Maybe; + min?: Maybe; }; -/** aggregate fields of "genesis" */ -export type Genesis_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "post_attribute" */ +export type Post_Attribute_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** aggregate avg on columns */ -export type Genesis_Avg_Fields = { - __typename?: 'genesis_avg_fields'; - initial_height?: Maybe; +/** order by aggregate values of table "post_attribute" */ +export type Post_Attribute_Aggregate_Order_By = { + count?: Maybe; + max?: Maybe; + min?: Maybe; }; -/** Boolean expression to filter rows from the table "genesis". All fields are combined with a logical 'AND'. */ -export type Genesis_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - chain_id?: Maybe; - initial_height?: Maybe; - time?: Maybe; +/** Boolean expression to filter rows from the table "post_attribute". All fields are combined with a logical 'AND'. */ +export type Post_Attribute_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + key?: Maybe; + post?: Maybe; + post_id?: Maybe; + value?: Maybe; }; /** aggregate max on columns */ -export type Genesis_Max_Fields = { - __typename?: 'genesis_max_fields'; - chain_id?: Maybe; - initial_height?: Maybe; - time?: Maybe; +export type Post_Attribute_Max_Fields = { + __typename?: 'post_attribute_max_fields'; + key?: Maybe; + post_id?: Maybe; + value?: Maybe; +}; + +/** order by max() on columns of table "post_attribute" */ +export type Post_Attribute_Max_Order_By = { + key?: Maybe; + post_id?: Maybe; + value?: Maybe; }; /** aggregate min on columns */ -export type Genesis_Min_Fields = { - __typename?: 'genesis_min_fields'; - chain_id?: Maybe; - initial_height?: Maybe; - time?: Maybe; +export type Post_Attribute_Min_Fields = { + __typename?: 'post_attribute_min_fields'; + key?: Maybe; + post_id?: Maybe; + value?: Maybe; }; -/** Ordering options when selecting data from "genesis". */ -export type Genesis_Order_By = { - chain_id?: Maybe; - initial_height?: Maybe; - time?: Maybe; +/** order by min() on columns of table "post_attribute" */ +export type Post_Attribute_Min_Order_By = { + key?: Maybe; + post_id?: Maybe; + value?: Maybe; }; -/** select columns of table "genesis" */ -export enum Genesis_Select_Column { +/** Ordering options when selecting data from "post_attribute". */ +export type Post_Attribute_Order_By = { + key?: Maybe; + post?: Maybe; + post_id?: Maybe; + value?: Maybe; +}; + +/** select columns of table "post_attribute" */ +export enum Post_Attribute_Select_Column { /** column name */ - ChainId = 'chain_id', + Key = 'key', /** column name */ - InitialHeight = 'initial_height', + PostId = 'post_id', /** column name */ - Time = 'time' + Value = 'value' } -/** aggregate stddev on columns */ -export type Genesis_Stddev_Fields = { - __typename?: 'genesis_stddev_fields'; - initial_height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Genesis_Stddev_Pop_Fields = { - __typename?: 'genesis_stddev_pop_fields'; - initial_height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Genesis_Stddev_Samp_Fields = { - __typename?: 'genesis_stddev_samp_fields'; - initial_height?: Maybe; +/** aggregate avg on columns */ +export type Post_Avg_Fields = { + __typename?: 'post_avg_fields'; + height?: Maybe; }; -/** aggregate sum on columns */ -export type Genesis_Sum_Fields = { - __typename?: 'genesis_sum_fields'; - initial_height?: Maybe; +/** order by avg() on columns of table "post" */ +export type Post_Avg_Order_By = { + height?: Maybe; }; -/** aggregate var_pop on columns */ -export type Genesis_Var_Pop_Fields = { - __typename?: 'genesis_var_pop_fields'; - initial_height?: Maybe; +/** Boolean expression to filter rows from the table "post". All fields are combined with a logical 'AND'. */ +export type Post_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + comments_state?: Maybe; + created?: Maybe; + creator_address?: Maybe; + height?: Maybe; + hidden?: Maybe; + id?: Maybe; + last_edited?: Maybe; + message?: Maybe; + parent_id?: Maybe; + poll?: Maybe; + post?: Maybe; + post_attachments?: Maybe; + post_attributes?: Maybe; + post_reactions?: Maybe; + post_reports?: Maybe; + posts?: Maybe; + profile?: Maybe; + subspace?: Maybe; }; -/** aggregate var_samp on columns */ -export type Genesis_Var_Samp_Fields = { - __typename?: 'genesis_var_samp_fields'; - initial_height?: Maybe; +/** aggregate max on columns */ +export type Post_Max_Fields = { + __typename?: 'post_max_fields'; + comments_state?: Maybe; + created?: Maybe; + creator_address?: Maybe; + height?: Maybe; + id?: Maybe; + last_edited?: Maybe; + message?: Maybe; + parent_id?: Maybe; + subspace?: Maybe; +}; + +/** order by max() on columns of table "post" */ +export type Post_Max_Order_By = { + comments_state?: Maybe; + created?: Maybe; + creator_address?: Maybe; + height?: Maybe; + id?: Maybe; + last_edited?: Maybe; + message?: Maybe; + parent_id?: Maybe; + subspace?: Maybe; }; -/** aggregate variance on columns */ -export type Genesis_Variance_Fields = { - __typename?: 'genesis_variance_fields'; - initial_height?: Maybe; +/** aggregate min on columns */ +export type Post_Min_Fields = { + __typename?: 'post_min_fields'; + comments_state?: Maybe; + created?: Maybe; + creator_address?: Maybe; + height?: Maybe; + id?: Maybe; + last_edited?: Maybe; + message?: Maybe; + parent_id?: Maybe; + subspace?: Maybe; +}; + +/** order by min() on columns of table "post" */ +export type Post_Min_Order_By = { + comments_state?: Maybe; + created?: Maybe; + creator_address?: Maybe; + height?: Maybe; + id?: Maybe; + last_edited?: Maybe; + message?: Maybe; + parent_id?: Maybe; + subspace?: Maybe; }; -/** columns and relationships of "gov_params" */ -export type Gov_Params = { - __typename?: 'gov_params'; - deposit_params: Scalars['jsonb']; +/** Ordering options when selecting data from "post". */ +export type Post_Order_By = { + comments_state?: Maybe; + created?: Maybe; + creator_address?: Maybe; + height?: Maybe; + hidden?: Maybe; + id?: Maybe; + last_edited?: Maybe; + message?: Maybe; + parent_id?: Maybe; + poll?: Maybe; + post?: Maybe; + post_attachments_aggregate?: Maybe; + post_attributes_aggregate?: Maybe; + post_reactions_aggregate?: Maybe; + post_reports_aggregate?: Maybe; + posts_aggregate?: Maybe; + profile?: Maybe; + subspace?: Maybe; +}; + +/** columns and relationships of "post_reaction" */ +export type Post_Reaction = { + __typename?: 'post_reaction'; height: Scalars['bigint']; - one_row_id: Scalars['Boolean']; - tally_params: Scalars['jsonb']; - voting_params: Scalars['jsonb']; -}; - - -/** columns and relationships of "gov_params" */ -export type Gov_ParamsDeposit_ParamsArgs = { - path?: Maybe; -}; - - -/** columns and relationships of "gov_params" */ -export type Gov_ParamsTally_ParamsArgs = { - path?: Maybe; -}; - - -/** columns and relationships of "gov_params" */ -export type Gov_ParamsVoting_ParamsArgs = { - path?: Maybe; + owner_address: Scalars['String']; + /** An object relationship */ + post: Post; + post_id: Scalars['String']; + /** An object relationship */ + profile: Profile; + short_code: Scalars['String']; + value: Scalars['String']; }; -/** aggregated selection of "gov_params" */ -export type Gov_Params_Aggregate = { - __typename?: 'gov_params_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "post_reaction" */ +export type Post_Reaction_Aggregate = { + __typename?: 'post_reaction_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "gov_params" */ -export type Gov_Params_Aggregate_Fields = { - __typename?: 'gov_params_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "post_reaction" */ +export type Post_Reaction_Aggregate_Fields = { + __typename?: 'post_reaction_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; + 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 "gov_params" */ -export type Gov_Params_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "post_reaction" */ +export type Post_Reaction_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; +/** order by aggregate values of table "post_reaction" */ +export type Post_Reaction_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + /** aggregate avg on columns */ -export type Gov_Params_Avg_Fields = { - __typename?: 'gov_params_avg_fields'; +export type Post_Reaction_Avg_Fields = { + __typename?: 'post_reaction_avg_fields'; height?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - deposit_params?: Maybe; +/** order by avg() on columns of table "post_reaction" */ +export type Post_Reaction_Avg_Order_By = { + height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "post_reaction". All fields are combined with a logical 'AND'. */ +export type Post_Reaction_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; height?: Maybe; - one_row_id?: Maybe; - tally_params?: Maybe; - voting_params?: Maybe; + owner_address?: Maybe; + post?: Maybe; + post_id?: Maybe; + profile?: Maybe; + short_code?: Maybe; + value?: Maybe; }; /** aggregate max on columns */ -export type Gov_Params_Max_Fields = { - __typename?: 'gov_params_max_fields'; +export type Post_Reaction_Max_Fields = { + __typename?: 'post_reaction_max_fields'; height?: Maybe; + owner_address?: Maybe; + post_id?: Maybe; + short_code?: Maybe; + value?: Maybe; +}; + +/** order by max() on columns of table "post_reaction" */ +export type Post_Reaction_Max_Order_By = { + height?: Maybe; + owner_address?: Maybe; + post_id?: Maybe; + short_code?: Maybe; + value?: Maybe; }; /** aggregate min on columns */ -export type Gov_Params_Min_Fields = { - __typename?: 'gov_params_min_fields'; +export type Post_Reaction_Min_Fields = { + __typename?: 'post_reaction_min_fields'; height?: Maybe; + owner_address?: Maybe; + post_id?: Maybe; + short_code?: Maybe; + value?: Maybe; }; -/** Ordering options when selecting data from "gov_params". */ -export type Gov_Params_Order_By = { - deposit_params?: Maybe; +/** order by min() on columns of table "post_reaction" */ +export type Post_Reaction_Min_Order_By = { height?: Maybe; - one_row_id?: Maybe; - tally_params?: Maybe; - voting_params?: Maybe; + owner_address?: Maybe; + post_id?: Maybe; + short_code?: Maybe; + value?: Maybe; }; -/** select columns of table "gov_params" */ -export enum Gov_Params_Select_Column { - /** column name */ - DepositParams = 'deposit_params', +/** Ordering options when selecting data from "post_reaction". */ +export type Post_Reaction_Order_By = { + height?: Maybe; + owner_address?: Maybe; + post?: Maybe; + post_id?: Maybe; + profile?: Maybe; + short_code?: Maybe; + value?: Maybe; +}; + +/** select columns of table "post_reaction" */ +export enum Post_Reaction_Select_Column { /** column name */ Height = 'height', /** column name */ - OneRowId = 'one_row_id', + OwnerAddress = 'owner_address', /** column name */ - TallyParams = 'tally_params', + PostId = 'post_id', /** column name */ - VotingParams = 'voting_params' + ShortCode = 'short_code', + /** column name */ + Value = 'value' } /** aggregate stddev on columns */ -export type Gov_Params_Stddev_Fields = { - __typename?: 'gov_params_stddev_fields'; +export type Post_Reaction_Stddev_Fields = { + __typename?: 'post_reaction_stddev_fields'; height?: Maybe; }; +/** order by stddev() on columns of table "post_reaction" */ +export type Post_Reaction_Stddev_Order_By = { + height?: Maybe; +}; + /** aggregate stddev_pop on columns */ -export type Gov_Params_Stddev_Pop_Fields = { - __typename?: 'gov_params_stddev_pop_fields'; +export type Post_Reaction_Stddev_Pop_Fields = { + __typename?: 'post_reaction_stddev_pop_fields'; height?: Maybe; }; +/** order by stddev_pop() on columns of table "post_reaction" */ +export type Post_Reaction_Stddev_Pop_Order_By = { + height?: Maybe; +}; + /** aggregate stddev_samp on columns */ -export type Gov_Params_Stddev_Samp_Fields = { - __typename?: 'gov_params_stddev_samp_fields'; +export type Post_Reaction_Stddev_Samp_Fields = { + __typename?: 'post_reaction_stddev_samp_fields'; height?: Maybe; }; +/** order by stddev_samp() on columns of table "post_reaction" */ +export type Post_Reaction_Stddev_Samp_Order_By = { + height?: Maybe; +}; + /** aggregate sum on columns */ -export type Gov_Params_Sum_Fields = { - __typename?: 'gov_params_sum_fields'; +export type Post_Reaction_Sum_Fields = { + __typename?: 'post_reaction_sum_fields'; height?: Maybe; }; +/** order by sum() on columns of table "post_reaction" */ +export type Post_Reaction_Sum_Order_By = { + height?: Maybe; +}; + /** aggregate var_pop on columns */ -export type Gov_Params_Var_Pop_Fields = { - __typename?: 'gov_params_var_pop_fields'; +export type Post_Reaction_Var_Pop_Fields = { + __typename?: 'post_reaction_var_pop_fields'; height?: Maybe; }; +/** order by var_pop() on columns of table "post_reaction" */ +export type Post_Reaction_Var_Pop_Order_By = { + height?: Maybe; +}; + /** aggregate var_samp on columns */ -export type Gov_Params_Var_Samp_Fields = { - __typename?: 'gov_params_var_samp_fields'; +export type Post_Reaction_Var_Samp_Fields = { + __typename?: 'post_reaction_var_samp_fields'; height?: Maybe; }; +/** order by var_samp() on columns of table "post_reaction" */ +export type Post_Reaction_Var_Samp_Order_By = { + height?: Maybe; +}; + /** aggregate variance on columns */ -export type Gov_Params_Variance_Fields = { - __typename?: 'gov_params_variance_fields'; +export type Post_Reaction_Variance_Fields = { + __typename?: 'post_reaction_variance_fields'; height?: Maybe; }; -/** columns and relationships of "inflation" */ -export type Inflation = { - __typename?: 'inflation'; +/** order by variance() on columns of table "post_reaction" */ +export type Post_Reaction_Variance_Order_By = { + height?: Maybe; +}; + +/** columns and relationships of "post_report" */ +export type Post_Report = { + __typename?: 'post_report'; height: Scalars['bigint']; - value: Scalars['numeric']; + id: Scalars['Int']; + message?: Maybe; + /** An object relationship */ + post: Post; + post_id: Scalars['String']; + /** An object relationship */ + profile: Profile; + reporter_address: Scalars['String']; + type: Scalars['String']; }; -/** aggregated selection of "inflation" */ -export type Inflation_Aggregate = { - __typename?: 'inflation_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "post_report" */ +export type Post_Report_Aggregate = { + __typename?: 'post_report_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "inflation" */ -export type Inflation_Aggregate_Fields = { - __typename?: 'inflation_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "post_report" */ +export type Post_Report_Aggregate_Fields = { + __typename?: 'post_report_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; + 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 "inflation" */ -export type Inflation_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "post_report" */ +export type Post_Report_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; +/** order by aggregate values of table "post_report" */ +export type Post_Report_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + /** aggregate avg on columns */ -export type Inflation_Avg_Fields = { - __typename?: 'inflation_avg_fields'; +export type Post_Report_Avg_Fields = { + __typename?: 'post_report_avg_fields'; height?: Maybe; - value?: Maybe; + id?: Maybe; }; -/** Boolean expression to filter rows from the table "inflation". All fields are combined with a logical 'AND'. */ -export type Inflation_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; +/** order by avg() on columns of table "post_report" */ +export type Post_Report_Avg_Order_By = { + height?: Maybe; + id?: Maybe; +}; + +/** Boolean expression to filter rows from the table "post_report". All fields are combined with a logical 'AND'. */ +export type Post_Report_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; height?: Maybe; - value?: Maybe; + id?: Maybe; + message?: Maybe; + post?: Maybe; + post_id?: Maybe; + profile?: Maybe; + reporter_address?: Maybe; + type?: Maybe; }; /** aggregate max on columns */ -export type Inflation_Max_Fields = { - __typename?: 'inflation_max_fields'; +export type Post_Report_Max_Fields = { + __typename?: 'post_report_max_fields'; height?: Maybe; - value?: Maybe; + id?: Maybe; + message?: Maybe; + post_id?: Maybe; + reporter_address?: Maybe; + type?: Maybe; +}; + +/** order by max() on columns of table "post_report" */ +export type Post_Report_Max_Order_By = { + height?: Maybe; + id?: Maybe; + message?: Maybe; + post_id?: Maybe; + reporter_address?: Maybe; + type?: Maybe; }; /** aggregate min on columns */ -export type Inflation_Min_Fields = { - __typename?: 'inflation_min_fields'; +export type Post_Report_Min_Fields = { + __typename?: 'post_report_min_fields'; height?: Maybe; - value?: Maybe; + id?: Maybe; + message?: Maybe; + post_id?: Maybe; + reporter_address?: Maybe; + type?: Maybe; }; -/** Ordering options when selecting data from "inflation". */ -export type Inflation_Order_By = { +/** order by min() on columns of table "post_report" */ +export type Post_Report_Min_Order_By = { height?: Maybe; - value?: Maybe; + id?: Maybe; + message?: Maybe; + post_id?: Maybe; + reporter_address?: Maybe; + type?: Maybe; }; -/** select columns of table "inflation" */ -export enum Inflation_Select_Column { +/** Ordering options when selecting data from "post_report". */ +export type Post_Report_Order_By = { + height?: Maybe; + id?: Maybe; + message?: Maybe; + post?: Maybe; + post_id?: Maybe; + profile?: Maybe; + reporter_address?: Maybe; + type?: Maybe; +}; + +/** select columns of table "post_report" */ +export enum Post_Report_Select_Column { /** column name */ Height = 'height', /** column name */ - Value = 'value' + Id = 'id', + /** column name */ + Message = 'message', + /** column name */ + PostId = 'post_id', + /** column name */ + ReporterAddress = 'reporter_address', + /** column name */ + Type = 'type' } /** aggregate stddev on columns */ -export type Inflation_Stddev_Fields = { - __typename?: 'inflation_stddev_fields'; +export type Post_Report_Stddev_Fields = { + __typename?: 'post_report_stddev_fields'; height?: Maybe; - value?: Maybe; + id?: Maybe; +}; + +/** order by stddev() on columns of table "post_report" */ +export type Post_Report_Stddev_Order_By = { + height?: Maybe; + id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Inflation_Stddev_Pop_Fields = { - __typename?: 'inflation_stddev_pop_fields'; +export type Post_Report_Stddev_Pop_Fields = { + __typename?: 'post_report_stddev_pop_fields'; height?: Maybe; - value?: Maybe; + id?: Maybe; +}; + +/** order by stddev_pop() on columns of table "post_report" */ +export type Post_Report_Stddev_Pop_Order_By = { + height?: Maybe; + id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Inflation_Stddev_Samp_Fields = { - __typename?: 'inflation_stddev_samp_fields'; +export type Post_Report_Stddev_Samp_Fields = { + __typename?: 'post_report_stddev_samp_fields'; height?: Maybe; - value?: Maybe; + id?: Maybe; }; -/** aggregate sum on columns */ -export type Inflation_Sum_Fields = { - __typename?: 'inflation_sum_fields'; - height?: Maybe; - value?: Maybe; +/** order by stddev_samp() on columns of table "post_report" */ +export type Post_Report_Stddev_Samp_Order_By = { + height?: Maybe; + id?: Maybe; }; -/** aggregate var_pop on columns */ -export type Inflation_Var_Pop_Fields = { - __typename?: 'inflation_var_pop_fields'; - height?: Maybe; - value?: Maybe; +/** aggregate sum on columns */ +export type Post_Report_Sum_Fields = { + __typename?: 'post_report_sum_fields'; + height?: Maybe; + id?: Maybe; }; -/** aggregate var_samp on columns */ -export type Inflation_Var_Samp_Fields = { - __typename?: 'inflation_var_samp_fields'; - height?: Maybe; - value?: Maybe; +/** order by sum() on columns of table "post_report" */ +export type Post_Report_Sum_Order_By = { + height?: Maybe; + id?: Maybe; }; -/** aggregate variance on columns */ -export type Inflation_Variance_Fields = { - __typename?: 'inflation_variance_fields'; +/** aggregate var_pop on columns */ +export type Post_Report_Var_Pop_Fields = { + __typename?: 'post_report_var_pop_fields'; height?: Maybe; - value?: Maybe; + id?: Maybe; }; - -/** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */ -export type Jsonb_Comparison_Exp = { - /** is the column contained in the given json value */ - _contained_in?: Maybe; - /** does the column contain the given json value at the top level */ - _contains?: Maybe; - _eq?: Maybe; - _gt?: Maybe; - _gte?: Maybe; - /** does the string exist as a top-level key in the column */ - _has_key?: Maybe; - /** do all of these strings exist as top-level keys in the column */ - _has_keys_all?: Maybe>; - /** do any of these strings exist as top-level keys in the column */ - _has_keys_any?: Maybe>; - _in?: Maybe>; - _is_null?: Maybe; - _lt?: Maybe; - _lte?: Maybe; - _neq?: Maybe; - _nin?: Maybe>; +/** order by var_pop() on columns of table "post_report" */ +export type Post_Report_Var_Pop_Order_By = { + height?: Maybe; + id?: Maybe; }; -/** columns and relationships of "message" */ -export type Message = { - __typename?: 'message'; - index: Scalars['bigint']; - involved_accounts_addresses: Scalars['_text']; - partition_id?: Maybe; - /** An object relationship */ - transaction?: Maybe; - transaction_hash: Scalars['String']; - type: Scalars['String']; - value: Scalars['jsonb']; +/** aggregate var_samp on columns */ +export type Post_Report_Var_Samp_Fields = { + __typename?: 'post_report_var_samp_fields'; + height?: Maybe; + id?: Maybe; }; +/** order by var_samp() on columns of table "post_report" */ +export type Post_Report_Var_Samp_Order_By = { + height?: Maybe; + id?: Maybe; +}; -/** columns and relationships of "message" */ -export type MessageValueArgs = { - path?: Maybe; +/** aggregate variance on columns */ +export type Post_Report_Variance_Fields = { + __typename?: 'post_report_variance_fields'; + height?: Maybe; + id?: Maybe; }; -/** aggregated selection of "message" */ -export type Message_Aggregate = { - __typename?: 'message_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** order by variance() on columns of table "post_report" */ +export type Post_Report_Variance_Order_By = { + height?: Maybe; + id?: Maybe; }; -/** aggregate fields of "message" */ -export type Message_Aggregate_Fields = { - __typename?: 'message_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; +/** select columns of table "post" */ +export enum Post_Select_Column { + /** column name */ + CommentsState = 'comments_state', + /** column name */ + Created = 'created', + /** column name */ + CreatorAddress = 'creator_address', + /** column name */ + Height = 'height', + /** column name */ + Hidden = 'hidden', + /** column name */ + Id = 'id', + /** column name */ + LastEdited = 'last_edited', + /** column name */ + Message = 'message', + /** column name */ + ParentId = 'parent_id', + /** column name */ + Subspace = 'subspace' +} + +/** aggregate stddev on columns */ +export type Post_Stddev_Fields = { + __typename?: 'post_stddev_fields'; + height?: Maybe; }; +/** order by stddev() on columns of table "post" */ +export type Post_Stddev_Order_By = { + height?: Maybe; +}; -/** aggregate fields of "message" */ -export type Message_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** aggregate stddev_pop on columns */ +export type Post_Stddev_Pop_Fields = { + __typename?: 'post_stddev_pop_fields'; + height?: Maybe; }; -/** order by aggregate values of table "message" */ -export type Message_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; +/** order by stddev_pop() on columns of table "post" */ +export type Post_Stddev_Pop_Order_By = { + height?: Maybe; }; -/** aggregate avg on columns */ -export type Message_Avg_Fields = { - __typename?: 'message_avg_fields'; - index?: Maybe; - partition_id?: Maybe; +/** aggregate stddev_samp on columns */ +export type Post_Stddev_Samp_Fields = { + __typename?: 'post_stddev_samp_fields'; + height?: Maybe; }; -/** order by avg() on columns of table "message" */ -export type Message_Avg_Order_By = { - index?: Maybe; - partition_id?: Maybe; +/** order by stddev_samp() on columns of table "post" */ +export type Post_Stddev_Samp_Order_By = { + height?: Maybe; }; -/** Boolean expression to filter rows from the table "message". All fields are combined with a logical 'AND'. */ -export type Message_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - index?: Maybe; - involved_accounts_addresses?: Maybe<_Text_Comparison_Exp>; - partition_id?: Maybe; - transaction?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; - value?: Maybe; +/** aggregate sum on columns */ +export type Post_Sum_Fields = { + __typename?: 'post_sum_fields'; + height?: Maybe; }; -/** aggregate max on columns */ -export type Message_Max_Fields = { - __typename?: 'message_max_fields'; - index?: Maybe; - partition_id?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; +/** order by sum() on columns of table "post" */ +export type Post_Sum_Order_By = { + height?: Maybe; }; -/** order by max() on columns of table "message" */ -export type Message_Max_Order_By = { - index?: Maybe; - partition_id?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; +/** aggregate var_pop on columns */ +export type Post_Var_Pop_Fields = { + __typename?: 'post_var_pop_fields'; + height?: Maybe; }; -/** aggregate min on columns */ -export type Message_Min_Fields = { - __typename?: 'message_min_fields'; - index?: Maybe; - partition_id?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; +/** order by var_pop() on columns of table "post" */ +export type Post_Var_Pop_Order_By = { + height?: Maybe; }; -/** order by min() on columns of table "message" */ -export type Message_Min_Order_By = { - index?: Maybe; - partition_id?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; +/** aggregate var_samp on columns */ +export type Post_Var_Samp_Fields = { + __typename?: 'post_var_samp_fields'; + height?: Maybe; }; -/** columns and relationships of "message_new" */ -export type Message_New = { - __typename?: 'message_new'; - height: Scalars['bigint']; - index: Scalars['bigint']; - involved_accounts_addresses: Scalars['_text']; - partition_id: Scalars['bigint']; - transaction_hash: Scalars['String']; - type: Scalars['String']; - value: Scalars['jsonb']; +/** order by var_samp() on columns of table "post" */ +export type Post_Var_Samp_Order_By = { + height?: Maybe; }; +/** aggregate variance on columns */ +export type Post_Variance_Fields = { + __typename?: 'post_variance_fields'; + height?: Maybe; +}; -/** columns and relationships of "message_new" */ -export type Message_NewValueArgs = { - path?: Maybe; +/** order by variance() on columns of table "post" */ +export type Post_Variance_Order_By = { + height?: Maybe; +}; + +/** 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 "message_new" */ -export type Message_New_Aggregate = { - __typename?: 'message_new_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "pre_commit" */ +export type Pre_Commit_Aggregate = { + __typename?: 'pre_commit_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "message_new" */ -export type Message_New_Aggregate_Fields = { - __typename?: 'message_new_aggregate_fields'; - avg?: Maybe; +/** 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; + 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 "message_new" */ -export type Message_New_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "pre_commit" */ +export type Pre_Commit_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; +/** order by aggregate values of table "pre_commit" */ +export type Pre_Commit_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + /** aggregate avg on columns */ -export type Message_New_Avg_Fields = { - __typename?: 'message_new_avg_fields'; +export type Pre_Commit_Avg_Fields = { + __typename?: 'pre_commit_avg_fields'; height?: Maybe; - index?: Maybe; - partition_id?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by avg() on columns of table "pre_commit" */ +export type Pre_Commit_Avg_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; -/** Boolean expression to filter rows from the table "message_new". All fields are combined with a logical 'AND'. */ -export type Message_New_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; height?: Maybe; - index?: Maybe; - involved_accounts_addresses?: Maybe<_Text_Comparison_Exp>; - partition_id?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; - value?: Maybe; + proposer_priority?: Maybe; + timestamp?: Maybe; + validator?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; /** aggregate max on columns */ -export type Message_New_Max_Fields = { - __typename?: 'message_new_max_fields'; +export type Pre_Commit_Max_Fields = { + __typename?: 'pre_commit_max_fields'; height?: Maybe; - index?: Maybe; - partition_id?: Maybe; - transaction_hash?: Maybe; - type?: 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?: Maybe; + proposer_priority?: Maybe; + timestamp?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; /** aggregate min on columns */ -export type Message_New_Min_Fields = { - __typename?: 'message_new_min_fields'; +export type Pre_Commit_Min_Fields = { + __typename?: 'pre_commit_min_fields'; height?: Maybe; - index?: Maybe; - partition_id?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; + proposer_priority?: Maybe; + timestamp?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; -/** Ordering options when selecting data from "message_new". */ -export type Message_New_Order_By = { +/** order by min() on columns of table "pre_commit" */ +export type Pre_Commit_Min_Order_By = { height?: Maybe; - index?: Maybe; - involved_accounts_addresses?: Maybe; - partition_id?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; - value?: Maybe; + proposer_priority?: Maybe; + timestamp?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; +}; + +/** Ordering options when selecting data from "pre_commit". */ +export type Pre_Commit_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + timestamp?: Maybe; + validator?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; -/** select columns of table "message_new" */ -export enum Message_New_Select_Column { +/** select columns of table "pre_commit" */ +export enum Pre_Commit_Select_Column { /** column name */ Height = 'height', /** column name */ - Index = 'index', - /** column name */ - InvolvedAccountsAddresses = 'involved_accounts_addresses', - /** column name */ - PartitionId = 'partition_id', + ProposerPriority = 'proposer_priority', /** column name */ - TransactionHash = 'transaction_hash', + Timestamp = 'timestamp', /** column name */ - Type = 'type', + ValidatorAddress = 'validator_address', /** column name */ - Value = 'value' + VotingPower = 'voting_power' } /** aggregate stddev on columns */ -export type Message_New_Stddev_Fields = { - __typename?: 'message_new_stddev_fields'; +export type Pre_Commit_Stddev_Fields = { + __typename?: 'pre_commit_stddev_fields'; height?: Maybe; - index?: Maybe; - partition_id?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by stddev() on columns of table "pre_commit" */ +export type Pre_Commit_Stddev_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Message_New_Stddev_Pop_Fields = { - __typename?: 'message_new_stddev_pop_fields'; +export type Pre_Commit_Stddev_Pop_Fields = { + __typename?: 'pre_commit_stddev_pop_fields'; height?: Maybe; - index?: Maybe; - partition_id?: 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?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Message_New_Stddev_Samp_Fields = { - __typename?: 'message_new_stddev_samp_fields'; +export type Pre_Commit_Stddev_Samp_Fields = { + __typename?: 'pre_commit_stddev_samp_fields'; height?: Maybe; - index?: Maybe; - partition_id?: 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?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; /** aggregate sum on columns */ -export type Message_New_Sum_Fields = { - __typename?: 'message_new_sum_fields'; +export type Pre_Commit_Sum_Fields = { + __typename?: 'pre_commit_sum_fields'; height?: Maybe; - index?: Maybe; - partition_id?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by sum() on columns of table "pre_commit" */ +export type Pre_Commit_Sum_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; /** aggregate var_pop on columns */ -export type Message_New_Var_Pop_Fields = { - __typename?: 'message_new_var_pop_fields'; +export type Pre_Commit_Var_Pop_Fields = { + __typename?: 'pre_commit_var_pop_fields'; height?: Maybe; - index?: Maybe; - partition_id?: 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?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; /** aggregate var_samp on columns */ -export type Message_New_Var_Samp_Fields = { - __typename?: 'message_new_var_samp_fields'; +export type Pre_Commit_Var_Samp_Fields = { + __typename?: 'pre_commit_var_samp_fields'; height?: Maybe; - index?: Maybe; - partition_id?: 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?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; /** aggregate variance on columns */ -export type Message_New_Variance_Fields = { - __typename?: 'message_new_variance_fields'; +export type Pre_Commit_Variance_Fields = { + __typename?: 'pre_commit_variance_fields'; height?: Maybe; - index?: Maybe; - partition_id?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; -/** Ordering options when selecting data from "message". */ -export type Message_Order_By = { - index?: Maybe; - involved_accounts_addresses?: Maybe; - partition_id?: Maybe; - transaction?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; - value?: Maybe; +/** order by variance() on columns of table "pre_commit" */ +export type Pre_Commit_Variance_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; -/** select columns of table "message" */ -export enum Message_Select_Column { - /** column name */ - Index = 'index', - /** column name */ - InvolvedAccountsAddresses = 'involved_accounts_addresses', - /** column name */ - PartitionId = 'partition_id', - /** column name */ - TransactionHash = 'transaction_hash', - /** column name */ - Type = 'type', - /** column name */ - Value = 'value' -} - -/** aggregate stddev on columns */ -export type Message_Stddev_Fields = { - __typename?: 'message_stddev_fields'; - index?: Maybe; - partition_id?: Maybe; +/** columns and relationships of "profile" */ +export type Profile = { + __typename?: 'profile'; + address: Scalars['String']; + /** An array relationship */ + application_links: Array; + /** An aggregate relationship */ + application_links_aggregate: Application_Link_Aggregate; + bio: Scalars['String']; + /** An array relationship */ + chain_links: Array; + /** An aggregate relationship */ + chain_links_aggregate: Chain_Link_Aggregate; + cover_pic: Scalars['String']; + creation_time: Scalars['timestamp']; + dtag: Scalars['String']; + /** An array relationship */ + dtagTransferRequestsBySenderAddress: Array; + /** An aggregate relationship */ + dtagTransferRequestsBySenderAddress_aggregate: Dtag_Transfer_Requests_Aggregate; + /** An array relationship */ + dtag_transfer_requests: Array; + /** An aggregate relationship */ + dtag_transfer_requests_aggregate: Dtag_Transfer_Requests_Aggregate; + height: Scalars['bigint']; + nickname: Scalars['String']; + /** An array relationship */ + post_attachment_tags: Array; + /** An aggregate relationship */ + post_attachment_tags_aggregate: Post_Attachment_Tag_Aggregate; + /** An array relationship */ + post_reactions: Array; + /** An aggregate relationship */ + post_reactions_aggregate: Post_Reaction_Aggregate; + /** An array relationship */ + post_reports: Array; + /** An aggregate relationship */ + post_reports_aggregate: Post_Report_Aggregate; + /** An array relationship */ + posts: Array; + /** An aggregate relationship */ + posts_aggregate: Post_Aggregate; + /** An array relationship */ + profileRelationshipsBySenderAddress: Array; + /** An aggregate relationship */ + profileRelationshipsBySenderAddress_aggregate: Profile_Relationship_Aggregate; + profile_pic: Scalars['String']; + /** An array relationship */ + profile_relationships: Array; + /** An aggregate relationship */ + profile_relationships_aggregate: Profile_Relationship_Aggregate; + /** An array relationship */ + registered_reactions: Array; + /** An aggregate relationship */ + registered_reactions_aggregate: Registered_Reactions_Aggregate; + /** An array relationship */ + userBlocksByBlockerAddress: Array; + /** An aggregate relationship */ + userBlocksByBlockerAddress_aggregate: User_Block_Aggregate; + /** An array relationship */ + user_blocks: Array; + /** An aggregate relationship */ + user_blocks_aggregate: User_Block_Aggregate; + /** An array relationship */ + user_poll_answers: Array; + /** An aggregate relationship */ + user_poll_answers_aggregate: User_Poll_Answer_Aggregate; }; -/** order by stddev() on columns of table "message" */ -export type Message_Stddev_Order_By = { - index?: Maybe; - partition_id?: Maybe; -}; -/** aggregate stddev_pop on columns */ -export type Message_Stddev_Pop_Fields = { - __typename?: 'message_stddev_pop_fields'; - index?: Maybe; - partition_id?: Maybe; +/** columns and relationships of "profile" */ +export type ProfileApplication_LinksArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by stddev_pop() on columns of table "message" */ -export type Message_Stddev_Pop_Order_By = { - index?: Maybe; - partition_id?: Maybe; + +/** columns and relationships of "profile" */ +export type ProfileApplication_Links_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate stddev_samp on columns */ -export type Message_Stddev_Samp_Fields = { - __typename?: 'message_stddev_samp_fields'; - index?: Maybe; - partition_id?: Maybe; + +/** columns and relationships of "profile" */ +export type ProfileChain_LinksArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by stddev_samp() on columns of table "message" */ -export type Message_Stddev_Samp_Order_By = { - index?: Maybe; - partition_id?: Maybe; + +/** columns and relationships of "profile" */ +export type ProfileChain_Links_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate sum on columns */ -export type Message_Sum_Fields = { - __typename?: 'message_sum_fields'; - index?: Maybe; - partition_id?: Maybe; + +/** columns and relationships of "profile" */ +export type ProfileDtagTransferRequestsBySenderAddressArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by sum() on columns of table "message" */ -export type Message_Sum_Order_By = { - index?: Maybe; - partition_id?: Maybe; + +/** columns and relationships of "profile" */ +export type ProfileDtagTransferRequestsBySenderAddress_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate var_pop on columns */ -export type Message_Var_Pop_Fields = { - __typename?: 'message_var_pop_fields'; - index?: Maybe; - partition_id?: Maybe; + +/** columns and relationships of "profile" */ +export type ProfileDtag_Transfer_RequestsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by var_pop() on columns of table "message" */ -export type Message_Var_Pop_Order_By = { - index?: Maybe; - partition_id?: Maybe; + +/** columns and relationships of "profile" */ +export type ProfileDtag_Transfer_Requests_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate var_samp on columns */ -export type Message_Var_Samp_Fields = { - __typename?: 'message_var_samp_fields'; - index?: Maybe; - partition_id?: Maybe; + +/** columns and relationships of "profile" */ +export type ProfilePost_Attachment_TagsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by var_samp() on columns of table "message" */ -export type Message_Var_Samp_Order_By = { - index?: Maybe; - partition_id?: Maybe; + +/** columns and relationships of "profile" */ +export type ProfilePost_Attachment_Tags_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate variance on columns */ -export type Message_Variance_Fields = { - __typename?: 'message_variance_fields'; - index?: Maybe; - partition_id?: Maybe; + +/** columns and relationships of "profile" */ +export type ProfilePost_ReactionsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by variance() on columns of table "message" */ -export type Message_Variance_Order_By = { - index?: Maybe; - partition_id?: Maybe; + +/** columns and relationships of "profile" */ +export type ProfilePost_Reactions_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Messages_By_Address_Args = { - addresses?: Maybe; - limit?: Maybe; - offset?: Maybe; - types?: Maybe; + +/** columns and relationships of "profile" */ +export type ProfilePost_ReportsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** columns and relationships of "mint_params" */ -export type Mint_Params = { - __typename?: 'mint_params'; - height: Scalars['bigint']; - one_row_id: Scalars['Boolean']; - params: Scalars['jsonb']; + +/** columns and relationships of "profile" */ +export type ProfilePost_Reports_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** columns and relationships of "mint_params" */ -export type Mint_ParamsParamsArgs = { - path?: Maybe; +/** columns and relationships of "profile" */ +export type ProfilePostsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregated selection of "mint_params" */ -export type Mint_Params_Aggregate = { - __typename?: 'mint_params_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; -/** aggregate fields of "mint_params" */ -export type Mint_Params_Aggregate_Fields = { - __typename?: 'mint_params_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; +/** columns and relationships of "profile" */ +export type ProfilePosts_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate fields of "mint_params" */ -export type Mint_Params_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** columns and relationships of "profile" */ +export type ProfileProfileRelationshipsBySenderAddressArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate avg on columns */ -export type Mint_Params_Avg_Fields = { - __typename?: 'mint_params_avg_fields'; - height?: Maybe; -}; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; +/** columns and relationships of "profile" */ +export type ProfileProfileRelationshipsBySenderAddress_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate max on columns */ -export type Mint_Params_Max_Fields = { - __typename?: 'mint_params_max_fields'; - height?: Maybe; -}; -/** aggregate min on columns */ -export type Mint_Params_Min_Fields = { - __typename?: 'mint_params_min_fields'; - height?: Maybe; +/** columns and relationships of "profile" */ +export type ProfileProfile_RelationshipsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** Ordering options when selecting data from "mint_params". */ -export type Mint_Params_Order_By = { - height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; + +/** columns and relationships of "profile" */ +export type ProfileProfile_Relationships_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** select columns of table "mint_params" */ -export enum Mint_Params_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - OneRowId = 'one_row_id', - /** column name */ - Params = 'params' -} -/** aggregate stddev on columns */ -export type Mint_Params_Stddev_Fields = { - __typename?: 'mint_params_stddev_fields'; - height?: Maybe; +/** columns and relationships of "profile" */ +export type ProfileRegistered_ReactionsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Mint_Params_Stddev_Pop_Fields = { - __typename?: 'mint_params_stddev_pop_fields'; - height?: Maybe; + +/** columns and relationships of "profile" */ +export type ProfileRegistered_Reactions_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate stddev_samp on columns */ -export type Mint_Params_Stddev_Samp_Fields = { - __typename?: 'mint_params_stddev_samp_fields'; - height?: Maybe; + +/** columns and relationships of "profile" */ +export type ProfileUserBlocksByBlockerAddressArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate sum on columns */ -export type Mint_Params_Sum_Fields = { - __typename?: 'mint_params_sum_fields'; - height?: Maybe; + +/** columns and relationships of "profile" */ +export type ProfileUserBlocksByBlockerAddress_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate var_pop on columns */ -export type Mint_Params_Var_Pop_Fields = { - __typename?: 'mint_params_var_pop_fields'; - height?: Maybe; + +/** columns and relationships of "profile" */ +export type ProfileUser_BlocksArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate var_samp on columns */ -export type Mint_Params_Var_Samp_Fields = { - __typename?: 'mint_params_var_samp_fields'; - height?: Maybe; + +/** columns and relationships of "profile" */ +export type ProfileUser_Blocks_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate variance on columns */ -export type Mint_Params_Variance_Fields = { - __typename?: 'mint_params_variance_fields'; - height?: Maybe; + +/** columns and relationships of "profile" */ +export type ProfileUser_Poll_AnswersArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** columns and relationships of "modules" */ -export type Modules = { - __typename?: 'modules'; - module_name: Scalars['String']; + +/** columns and relationships of "profile" */ +export type ProfileUser_Poll_Answers_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregated selection of "modules" */ -export type Modules_Aggregate = { - __typename?: 'modules_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "profile" */ +export type Profile_Aggregate = { + __typename?: 'profile_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "modules" */ -export type Modules_Aggregate_Fields = { - __typename?: 'modules_aggregate_fields'; +/** aggregate fields of "profile" */ +export type Profile_Aggregate_Fields = { + __typename?: 'profile_aggregate_fields'; + avg?: Maybe; count: Scalars['Int']; - max?: Maybe; - min?: Maybe; + 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 "modules" */ -export type Modules_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "profile" */ +export type Profile_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** Boolean expression to filter rows from the table "modules". All fields are combined with a logical 'AND'. */ -export type Modules_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - module_name?: Maybe; -}; - -/** aggregate max on columns */ -export type Modules_Max_Fields = { - __typename?: 'modules_max_fields'; - module_name?: Maybe; +/** aggregate avg on columns */ +export type Profile_Avg_Fields = { + __typename?: 'profile_avg_fields'; + height?: Maybe; }; -/** aggregate min on columns */ -export type Modules_Min_Fields = { - __typename?: 'modules_min_fields'; - module_name?: Maybe; +/** Boolean expression to filter rows from the table "profile". All fields are combined with a logical 'AND'. */ +export type Profile_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + address?: Maybe; + application_links?: Maybe; + bio?: Maybe; + chain_links?: Maybe; + cover_pic?: Maybe; + creation_time?: Maybe; + dtag?: Maybe; + dtagTransferRequestsBySenderAddress?: Maybe; + dtag_transfer_requests?: Maybe; + height?: Maybe; + nickname?: Maybe; + post_attachment_tags?: Maybe; + post_reactions?: Maybe; + post_reports?: Maybe; + posts?: Maybe; + profileRelationshipsBySenderAddress?: Maybe; + profile_pic?: Maybe; + profile_relationships?: Maybe; + registered_reactions?: Maybe; + userBlocksByBlockerAddress?: Maybe; + user_blocks?: Maybe; + user_poll_answers?: Maybe; }; -/** Ordering options when selecting data from "modules". */ -export type Modules_Order_By = { - module_name?: Maybe; +/** aggregate max on columns */ +export type Profile_Max_Fields = { + __typename?: 'profile_max_fields'; + address?: Maybe; + bio?: Maybe; + cover_pic?: Maybe; + creation_time?: Maybe; + dtag?: Maybe; + height?: Maybe; + nickname?: Maybe; + profile_pic?: Maybe; }; -/** select columns of table "modules" */ -export enum Modules_Select_Column { - /** column name */ - ModuleName = 'module_name' -} - - -/** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ -export type Numeric_Comparison_Exp = { - _eq?: Maybe; - _gt?: Maybe; - _gte?: Maybe; - _in?: Maybe>; - _is_null?: Maybe; - _lt?: Maybe; - _lte?: Maybe; - _neq?: Maybe; - _nin?: Maybe>; +/** aggregate min on columns */ +export type Profile_Min_Fields = { + __typename?: 'profile_min_fields'; + address?: Maybe; + bio?: Maybe; + cover_pic?: Maybe; + creation_time?: Maybe; + dtag?: Maybe; + height?: Maybe; + nickname?: Maybe; + profile_pic?: Maybe; }; -/** 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'; +/** Ordering options when selecting data from "profile". */ +export type Profile_Order_By = { + address?: Maybe; + application_links_aggregate?: Maybe; + bio?: Maybe; + chain_links_aggregate?: Maybe; + cover_pic?: Maybe; + creation_time?: Maybe; + dtag?: Maybe; + dtagTransferRequestsBySenderAddress_aggregate?: Maybe; + dtag_transfer_requests_aggregate?: Maybe; + height?: Maybe; + nickname?: Maybe; + post_attachment_tags_aggregate?: Maybe; + post_reactions_aggregate?: Maybe; + post_reports_aggregate?: Maybe; + posts_aggregate?: Maybe; + profileRelationshipsBySenderAddress_aggregate?: Maybe; + profile_pic?: Maybe; + profile_relationships_aggregate?: Maybe; + registered_reactions_aggregate?: Maybe; + userBlocksByBlockerAddress_aggregate?: Maybe; + user_blocks_aggregate?: Maybe; + user_poll_answers_aggregate?: Maybe; +}; + +/** columns and relationships of "profile_relationship" */ +export type Profile_Relationship = { + __typename?: 'profile_relationship'; height: Scalars['bigint']; - proposer_priority: Scalars['bigint']; - timestamp: Scalars['timestamp']; /** An object relationship */ - validator: Validator; - validator_address: Scalars['String']; - voting_power: Scalars['bigint']; + profile: Profile; + /** An object relationship */ + profileBySenderAddress: Profile; + receiver_address: Scalars['String']; + sender_address: Scalars['String']; + subspace: Scalars['String']; }; -/** aggregated selection of "pre_commit" */ -export type Pre_Commit_Aggregate = { - __typename?: 'pre_commit_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "profile_relationship" */ +export type Profile_Relationship_Aggregate = { + __typename?: 'profile_relationship_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "pre_commit" */ -export type Pre_Commit_Aggregate_Fields = { - __typename?: 'pre_commit_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "profile_relationship" */ +export type Profile_Relationship_Aggregate_Fields = { + __typename?: 'profile_relationship_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; + 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?: Maybe>; +/** aggregate fields of "profile_relationship" */ +export type Profile_Relationship_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "pre_commit" */ -export type Pre_Commit_Aggregate_Order_By = { - avg?: Maybe; +/** order by aggregate values of table "profile_relationship" */ +export type Profile_Relationship_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; -/** aggregate avg on columns */ -export type Pre_Commit_Avg_Fields = { - __typename?: 'pre_commit_avg_fields'; +/** aggregate avg on columns */ +export type Profile_Relationship_Avg_Fields = { + __typename?: 'profile_relationship_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 = { +/** order by avg() on columns of table "profile_relationship" */ +export type Profile_Relationship_Avg_Order_By = { height?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; +/** Boolean expression to filter rows from the table "profile_relationship". All fields are combined with a logical 'AND'. */ +export type Profile_Relationship_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; height?: Maybe; - proposer_priority?: Maybe; - timestamp?: Maybe; - validator?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; + profile?: Maybe; + profileBySenderAddress?: Maybe; + receiver_address?: Maybe; + sender_address?: Maybe; + subspace?: Maybe; }; /** aggregate max on columns */ -export type Pre_Commit_Max_Fields = { - __typename?: 'pre_commit_max_fields'; +export type Profile_Relationship_Max_Fields = { + __typename?: 'profile_relationship_max_fields'; height?: Maybe; - proposer_priority?: Maybe; - timestamp?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; + receiver_address?: Maybe; + sender_address?: Maybe; + subspace?: Maybe; }; -/** order by max() on columns of table "pre_commit" */ -export type Pre_Commit_Max_Order_By = { +/** order by max() on columns of table "profile_relationship" */ +export type Profile_Relationship_Max_Order_By = { height?: Maybe; - proposer_priority?: Maybe; - timestamp?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; + receiver_address?: Maybe; + sender_address?: Maybe; + subspace?: Maybe; }; /** aggregate min on columns */ -export type Pre_Commit_Min_Fields = { - __typename?: 'pre_commit_min_fields'; +export type Profile_Relationship_Min_Fields = { + __typename?: 'profile_relationship_min_fields'; height?: Maybe; - proposer_priority?: Maybe; - timestamp?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; + receiver_address?: Maybe; + sender_address?: Maybe; + subspace?: Maybe; }; -/** order by min() on columns of table "pre_commit" */ -export type Pre_Commit_Min_Order_By = { +/** order by min() on columns of table "profile_relationship" */ +export type Profile_Relationship_Min_Order_By = { height?: Maybe; - proposer_priority?: Maybe; - timestamp?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; + receiver_address?: Maybe; + sender_address?: Maybe; + subspace?: Maybe; }; -/** Ordering options when selecting data from "pre_commit". */ -export type Pre_Commit_Order_By = { +/** Ordering options when selecting data from "profile_relationship". */ +export type Profile_Relationship_Order_By = { height?: Maybe; - proposer_priority?: Maybe; - timestamp?: Maybe; - validator?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; + profile?: Maybe; + profileBySenderAddress?: Maybe; + receiver_address?: Maybe; + sender_address?: Maybe; + subspace?: Maybe; }; -/** select columns of table "pre_commit" */ -export enum Pre_Commit_Select_Column { +/** select columns of table "profile_relationship" */ +export enum Profile_Relationship_Select_Column { /** column name */ Height = 'height', /** column name */ - ProposerPriority = 'proposer_priority', - /** column name */ - Timestamp = 'timestamp', + ReceiverAddress = 'receiver_address', /** column name */ - ValidatorAddress = 'validator_address', + SenderAddress = 'sender_address', /** column name */ - VotingPower = 'voting_power' + Subspace = 'subspace' } /** aggregate stddev on columns */ -export type Pre_Commit_Stddev_Fields = { - __typename?: 'pre_commit_stddev_fields'; +export type Profile_Relationship_Stddev_Fields = { + __typename?: 'profile_relationship_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 = { +/** order by stddev() on columns of table "profile_relationship" */ +export type Profile_Relationship_Stddev_Order_By = { height?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Pre_Commit_Stddev_Pop_Fields = { - __typename?: 'pre_commit_stddev_pop_fields'; +export type Profile_Relationship_Stddev_Pop_Fields = { + __typename?: 'profile_relationship_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 = { +/** order by stddev_pop() on columns of table "profile_relationship" */ +export type Profile_Relationship_Stddev_Pop_Order_By = { height?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Pre_Commit_Stddev_Samp_Fields = { - __typename?: 'pre_commit_stddev_samp_fields'; +export type Profile_Relationship_Stddev_Samp_Fields = { + __typename?: 'profile_relationship_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 = { +/** order by stddev_samp() on columns of table "profile_relationship" */ +export type Profile_Relationship_Stddev_Samp_Order_By = { height?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; }; /** aggregate sum on columns */ -export type Pre_Commit_Sum_Fields = { - __typename?: 'pre_commit_sum_fields'; +export type Profile_Relationship_Sum_Fields = { + __typename?: 'profile_relationship_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 = { +/** order by sum() on columns of table "profile_relationship" */ +export type Profile_Relationship_Sum_Order_By = { height?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; }; /** aggregate var_pop on columns */ -export type Pre_Commit_Var_Pop_Fields = { - __typename?: 'pre_commit_var_pop_fields'; +export type Profile_Relationship_Var_Pop_Fields = { + __typename?: 'profile_relationship_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 = { +/** order by var_pop() on columns of table "profile_relationship" */ +export type Profile_Relationship_Var_Pop_Order_By = { height?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; }; /** aggregate var_samp on columns */ -export type Pre_Commit_Var_Samp_Fields = { - __typename?: 'pre_commit_var_samp_fields'; +export type Profile_Relationship_Var_Samp_Fields = { + __typename?: 'profile_relationship_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 = { +/** order by var_samp() on columns of table "profile_relationship" */ +export type Profile_Relationship_Var_Samp_Order_By = { height?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; }; /** aggregate variance on columns */ -export type Pre_Commit_Variance_Fields = { - __typename?: 'pre_commit_variance_fields'; +export type Profile_Relationship_Variance_Fields = { + __typename?: 'profile_relationship_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 = { +/** order by variance() on columns of table "profile_relationship" */ +export type Profile_Relationship_Variance_Order_By = { height?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; }; +/** select columns of table "profile" */ +export enum Profile_Select_Column { + /** column name */ + Address = 'address', + /** column name */ + Bio = 'bio', + /** column name */ + CoverPic = 'cover_pic', + /** column name */ + CreationTime = 'creation_time', + /** column name */ + Dtag = 'dtag', + /** column name */ + Height = 'height', + /** column name */ + Nickname = 'nickname', + /** column name */ + ProfilePic = 'profile_pic' +} + +/** aggregate stddev on columns */ +export type Profile_Stddev_Fields = { + __typename?: 'profile_stddev_fields'; + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Profile_Stddev_Pop_Fields = { + __typename?: 'profile_stddev_pop_fields'; + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Profile_Stddev_Samp_Fields = { + __typename?: 'profile_stddev_samp_fields'; + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Profile_Sum_Fields = { + __typename?: 'profile_sum_fields'; + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Profile_Var_Pop_Fields = { + __typename?: 'profile_var_pop_fields'; + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Profile_Var_Samp_Fields = { + __typename?: 'profile_var_samp_fields'; + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Profile_Variance_Fields = { + __typename?: 'profile_variance_fields'; + height?: Maybe; +}; + +/** columns and relationships of "profiles_params" */ +export type Profiles_Params = { + __typename?: 'profiles_params'; + height: Scalars['bigint']; + params: Scalars['jsonb']; +}; + + +/** columns and relationships of "profiles_params" */ +export type Profiles_ParamsParamsArgs = { + path?: Maybe; +}; + +/** Boolean expression to filter rows from the table "profiles_params". All fields are combined with a logical 'AND'. */ +export type Profiles_Params_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + height?: Maybe; + params?: Maybe; +}; + +/** Ordering options when selecting data from "profiles_params". */ +export type Profiles_Params_Order_By = { + height?: Maybe; + params?: Maybe; +}; + +/** select columns of table "profiles_params" */ +export enum Profiles_Params_Select_Column { + /** column name */ + Height = 'height', + /** column name */ + Params = 'params' +} + /** columns and relationships of "proposal" */ export type Proposal = { __typename?: 'proposal'; @@ -3978,9 +9156,9 @@ export enum Proposal_Select_Column { /** columns and relationships of "proposal_staking_pool_snapshot" */ export type Proposal_Staking_Pool_Snapshot = { __typename?: 'proposal_staking_pool_snapshot'; - bonded_tokens: Scalars['String']; + bonded_tokens: Scalars['bigint']; height: Scalars['bigint']; - not_bonded_tokens: Scalars['String']; + not_bonded_tokens: Scalars['bigint']; /** An object relationship */ proposal: Proposal; proposal_id: Scalars['Int']; @@ -4019,7 +9197,9 @@ export type Proposal_Staking_Pool_Snapshot_Aggregate_FieldsCountArgs = { /** aggregate avg on columns */ export type Proposal_Staking_Pool_Snapshot_Avg_Fields = { __typename?: 'proposal_staking_pool_snapshot_avg_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; proposal_id?: Maybe; }; @@ -4028,9 +9208,9 @@ export type Proposal_Staking_Pool_Snapshot_Bool_Exp = { _and?: Maybe>; _not?: Maybe; _or?: Maybe>; - bonded_tokens?: Maybe; + bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; + not_bonded_tokens?: Maybe; proposal?: Maybe; proposal_id?: Maybe; }; @@ -4038,18 +9218,18 @@ export type Proposal_Staking_Pool_Snapshot_Bool_Exp = { /** aggregate max on columns */ export type Proposal_Staking_Pool_Snapshot_Max_Fields = { __typename?: 'proposal_staking_pool_snapshot_max_fields'; - bonded_tokens?: Maybe; + bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; + not_bonded_tokens?: Maybe; proposal_id?: Maybe; }; /** aggregate min on columns */ export type Proposal_Staking_Pool_Snapshot_Min_Fields = { __typename?: 'proposal_staking_pool_snapshot_min_fields'; - bonded_tokens?: Maybe; + bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; + not_bonded_tokens?: Maybe; proposal_id?: Maybe; }; @@ -4077,49 +9257,63 @@ export enum Proposal_Staking_Pool_Snapshot_Select_Column { /** aggregate stddev on columns */ export type Proposal_Staking_Pool_Snapshot_Stddev_Fields = { __typename?: 'proposal_staking_pool_snapshot_stddev_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; proposal_id?: Maybe; }; /** aggregate stddev_pop on columns */ export type Proposal_Staking_Pool_Snapshot_Stddev_Pop_Fields = { __typename?: 'proposal_staking_pool_snapshot_stddev_pop_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; proposal_id?: Maybe; }; /** aggregate stddev_samp on columns */ export type Proposal_Staking_Pool_Snapshot_Stddev_Samp_Fields = { __typename?: 'proposal_staking_pool_snapshot_stddev_samp_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; proposal_id?: Maybe; }; /** aggregate sum on columns */ export type Proposal_Staking_Pool_Snapshot_Sum_Fields = { __typename?: 'proposal_staking_pool_snapshot_sum_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; proposal_id?: Maybe; }; /** aggregate var_pop on columns */ export type Proposal_Staking_Pool_Snapshot_Var_Pop_Fields = { __typename?: 'proposal_staking_pool_snapshot_var_pop_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; proposal_id?: Maybe; }; /** aggregate var_samp on columns */ export type Proposal_Staking_Pool_Snapshot_Var_Samp_Fields = { __typename?: 'proposal_staking_pool_snapshot_var_samp_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; proposal_id?: Maybe; }; /** aggregate variance on columns */ export type Proposal_Staking_Pool_Snapshot_Variance_Fields = { __typename?: 'proposal_staking_pool_snapshot_variance_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; proposal_id?: Maybe; }; @@ -4984,6 +10178,24 @@ export type Query_Root = { account: Array; /** fetch aggregated fields from the table: "account" */ account_aggregate: Account_Aggregate; + /** fetch data from the table: "account_balance" */ + account_balance: Array; + /** fetch aggregated fields from the table: "account_balance" */ + account_balance_aggregate: Account_Balance_Aggregate; + /** fetch data from the table: "account_balance" using primary key columns */ + account_balance_by_pk?: Maybe; + /** fetch data from the table: "account_balance_history" */ + account_balance_history: Array; + /** fetch aggregated fields from the table: "account_balance_history" */ + account_balance_history_aggregate: Account_Balance_History_Aggregate; + /** execute function "account_balance_history_tokens_prices" which returns "token_price_history" */ + account_balance_history_tokens_prices: Array; + /** execute function "account_balance_history_tokens_prices" and query aggregates on result of table type "token_price_history" */ + account_balance_history_tokens_prices_aggregate: Token_Price_History_Aggregate; + /** execute function "account_balance_tokens_prices" which returns "token_price" */ + account_balance_tokens_prices: Array; + /** execute function "account_balance_tokens_prices" and query aggregates on result of table type "token_price" */ + account_balance_tokens_prices_aggregate: Token_Price_Aggregate; /** fetch data from the table: "account" using primary key columns */ account_by_pk?: Maybe; action_account_balance?: Maybe; @@ -4998,6 +10210,18 @@ export type Query_Root = { action_validator_delegations?: Maybe; action_validator_redelegations_from?: Maybe; action_validator_unbonding_delegations?: Maybe; + /** fetch data from the table: "application_link" */ + application_link: Array; + /** fetch aggregated fields from the table: "application_link" */ + application_link_aggregate: Application_Link_Aggregate; + /** fetch data from the table: "application_link" using primary key columns */ + application_link_by_pk?: Maybe; + /** fetch data from the table: "application_link_oracle_request" */ + application_link_oracle_request: Array; + /** fetch aggregated fields from the table: "application_link_oracle_request" */ + application_link_oracle_request_aggregate: Application_Link_Oracle_Request_Aggregate; + /** fetch data from the table: "application_link_oracle_request" using primary key columns */ + application_link_oracle_request_by_pk?: Maybe; /** fetch data from the table: "average_block_time_from_genesis" */ average_block_time_from_genesis: Array; /** fetch aggregated fields from the table: "average_block_time_from_genesis" */ @@ -5020,10 +10244,36 @@ export type Query_Root = { block_aggregate: Block_Aggregate; /** fetch data from the table: "block" using primary key columns */ block_by_pk?: Maybe; + /** fetch data from the table: "chain_link" */ + chain_link: Array; + /** fetch aggregated fields from the table: "chain_link" */ + chain_link_aggregate: Chain_Link_Aggregate; + /** fetch data from the table: "chain_link" using primary key columns */ + chain_link_by_pk?: Maybe; + /** fetch data from the table: "chain_link_chain_config" */ + chain_link_chain_config: Array; + /** fetch aggregated fields from the table: "chain_link_chain_config" */ + chain_link_chain_config_aggregate: Chain_Link_Chain_Config_Aggregate; + /** fetch data from the table: "chain_link_chain_config" using primary key columns */ + chain_link_chain_config_by_pk?: Maybe; + /** fetch data from the table: "chain_link_proof" */ + chain_link_proof: Array; + /** fetch aggregated fields from the table: "chain_link_proof" */ + chain_link_proof_aggregate: Chain_Link_Proof_Aggregate; /** fetch data from the table: "community_pool" */ community_pool: Array; /** fetch aggregated fields from the table: "community_pool" */ community_pool_aggregate: Community_Pool_Aggregate; + /** fetch data from the table: "delegation" */ + delegation: Array; + /** fetch aggregated fields from the table: "delegation" */ + delegation_aggregate: Delegation_Aggregate; + /** fetch data from the table: "delegation" using primary key columns */ + delegation_by_pk?: Maybe; + /** fetch data from the table: "delegation_reward" */ + delegation_reward: Array; + /** fetch aggregated fields from the table: "delegation_reward" */ + delegation_reward_aggregate: Delegation_Reward_Aggregate; /** fetch data from the table: "distribution_params" */ distribution_params: Array; /** fetch aggregated fields from the table: "distribution_params" */ @@ -5040,6 +10290,16 @@ export type Query_Root = { double_sign_vote_aggregate: Double_Sign_Vote_Aggregate; /** fetch data from the table: "double_sign_vote" using primary key columns */ double_sign_vote_by_pk?: Maybe; + /** An array relationship */ + dtag_transfer_requests: Array; + /** An aggregate relationship */ + dtag_transfer_requests_aggregate: Dtag_Transfer_Requests_Aggregate; + /** fetch data from the table: "fee_grant_allowance" */ + fee_grant_allowance: Array; + /** fetch aggregated fields from the table: "fee_grant_allowance" */ + fee_grant_allowance_aggregate: Fee_Grant_Allowance_Aggregate; + /** fetch data from the table: "fee_grant_allowance" using primary key columns */ + fee_grant_allowance_by_pk?: Maybe; /** fetch data from the table: "genesis" */ genesis: Array; /** fetch aggregated fields from the table: "genesis" */ @@ -5058,12 +10318,6 @@ export type Query_Root = { message: Array; /** fetch aggregated fields from the table: "message" */ message_aggregate: Message_Aggregate; - /** fetch data from the table: "message_new" */ - message_new: Array; - /** fetch aggregated fields from the table: "message_new" */ - message_new_aggregate: Message_New_Aggregate; - /** fetch data from the table: "message_new" using primary key columns */ - message_new_by_pk?: Maybe; /** execute function "messages_by_address" which returns "message" */ messages_by_address: Array; /** execute function "messages_by_address" and query aggregates on result of table type "message" */ @@ -5080,10 +10334,60 @@ export type Query_Root = { modules_aggregate: Modules_Aggregate; /** fetch data from the table: "modules" using primary key columns */ modules_by_pk?: Maybe; + /** fetch data from the table: "poll" */ + poll: Array; + /** fetch aggregated fields from the table: "poll" */ + poll_aggregate: Poll_Aggregate; + /** fetch data from the table: "poll_answer" */ + poll_answer: Array; + /** fetch aggregated fields from the table: "poll_answer" */ + poll_answer_aggregate: Poll_Answer_Aggregate; + /** fetch data from the table: "poll" using primary key columns */ + poll_by_pk?: Maybe; + /** fetch data from the table: "post" */ + post: Array; + /** fetch aggregated fields from the table: "post" */ + post_aggregate: Post_Aggregate; + /** fetch data from the table: "post_attachment" */ + post_attachment: Array; + /** fetch aggregated fields from the table: "post_attachment" */ + post_attachment_aggregate: Post_Attachment_Aggregate; + /** fetch data from the table: "post_attachment" using primary key columns */ + post_attachment_by_pk?: Maybe; + /** fetch data from the table: "post_attachment_tag" */ + post_attachment_tag: Array; + /** fetch aggregated fields from the table: "post_attachment_tag" */ + post_attachment_tag_aggregate: Post_Attachment_Tag_Aggregate; + /** fetch data from the table: "post_attribute" */ + post_attribute: Array; + /** fetch aggregated fields from the table: "post_attribute" */ + post_attribute_aggregate: Post_Attribute_Aggregate; + /** fetch data from the table: "post" using primary key columns */ + post_by_pk?: Maybe; + /** fetch data from the table: "post_reaction" */ + post_reaction: Array; + /** fetch aggregated fields from the table: "post_reaction" */ + post_reaction_aggregate: Post_Reaction_Aggregate; + /** fetch data from the table: "post_report" */ + post_report: Array; + /** fetch aggregated fields from the table: "post_report" */ + post_report_aggregate: Post_Report_Aggregate; /** 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: "profile" */ + profile: Array; + /** fetch aggregated fields from the table: "profile" */ + profile_aggregate: Profile_Aggregate; + /** fetch data from the table: "profile" using primary key columns */ + profile_by_pk?: Maybe; + /** fetch data from the table: "profile_relationship" */ + profile_relationship: Array; + /** fetch aggregated fields from the table: "profile_relationship" */ + profile_relationship_aggregate: Profile_Relationship_Aggregate; + /** fetch data from the table: "profiles_params" */ + profiles_params: Array; /** fetch data from the table: "proposal" */ proposal: Array; /** fetch aggregated fields from the table: "proposal" */ @@ -5116,6 +10420,18 @@ export type Query_Root = { proposal_vote: Array; /** fetch aggregated fields from the table: "proposal_vote" */ proposal_vote_aggregate: Proposal_Vote_Aggregate; + /** fetch data from the table: "redelegation" */ + redelegation: Array; + /** fetch aggregated fields from the table: "redelegation" */ + redelegation_aggregate: Redelegation_Aggregate; + /** An array relationship */ + registered_reactions: Array; + /** An aggregate relationship */ + registered_reactions_aggregate: Registered_Reactions_Aggregate; + /** execute function "self_delegations" which returns "delegation" */ + self_delegations: Array; + /** execute function "self_delegations" and query aggregates on result of table type "delegation" */ + self_delegations_aggregate: Delegation_Aggregate; /** fetch data from the table: "slashing_params" */ slashing_params: Array; /** fetch aggregated fields from the table: "slashing_params" */ @@ -5160,12 +10476,18 @@ export type Query_Root = { transaction_aggregate: Transaction_Aggregate; /** fetch data from the table: "transaction" using primary key columns */ transaction_by_pk?: Maybe; - /** fetch data from the table: "transaction_new" */ - transaction_new: Array; - /** fetch aggregated fields from the table: "transaction_new" */ - transaction_new_aggregate: Transaction_New_Aggregate; - /** fetch data from the table: "transaction_new" using primary key columns */ - transaction_new_by_pk?: Maybe; + /** fetch data from the table: "unbonding_delegation" */ + unbonding_delegation: Array; + /** fetch aggregated fields from the table: "unbonding_delegation" */ + unbonding_delegation_aggregate: Unbonding_Delegation_Aggregate; + /** fetch data from the table: "user_block" */ + user_block: Array; + /** fetch aggregated fields from the table: "user_block" */ + user_block_aggregate: User_Block_Aggregate; + /** fetch data from the table: "user_poll_answer" */ + user_poll_answer: Array; + /** fetch aggregated fields from the table: "user_poll_answer" */ + user_poll_answer_aggregate: User_Poll_Answer_Aggregate; /** fetch data from the table: "validator" */ validator: Array; /** fetch aggregated fields from the table: "validator" */ @@ -5176,6 +10498,12 @@ export type Query_Root = { validator_commission: Array; /** fetch aggregated fields from the table: "validator_commission" */ validator_commission_aggregate: Validator_Commission_Aggregate; + /** fetch data from the table: "validator_commission_amount" */ + validator_commission_amount: Array; + /** fetch aggregated fields from the table: "validator_commission_amount" */ + validator_commission_amount_aggregate: Validator_Commission_Amount_Aggregate; + /** fetch data from the table: "validator_commission_amount" using primary key columns */ + validator_commission_amount_by_pk?: Maybe; /** fetch data from the table: "validator_commission" using primary key columns */ validator_commission_by_pk?: Maybe; /** fetch data from the table: "validator_description" */ @@ -5239,6 +10567,87 @@ export type Query_RootAccount_AggregateArgs = { }; +export type Query_RootAccount_BalanceArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAccount_Balance_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAccount_Balance_By_PkArgs = { + address: Scalars['String']; +}; + + +export type Query_RootAccount_Balance_HistoryArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAccount_Balance_History_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAccount_Balance_History_Tokens_PricesArgs = { + args: Account_Balance_History_Tokens_Prices_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAccount_Balance_History_Tokens_Prices_AggregateArgs = { + args: Account_Balance_History_Tokens_Prices_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAccount_Balance_Tokens_PricesArgs = { + args: Account_Balance_Tokens_Prices_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootAccount_Balance_Tokens_Prices_AggregateArgs = { + args: Account_Balance_Tokens_Prices_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Query_RootAccount_By_PkArgs = { address: Scalars['String']; }; @@ -5330,6 +10739,52 @@ export type Query_RootAction_Validator_Unbonding_DelegationsArgs = { }; +export type Query_RootApplication_LinkArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootApplication_Link_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootApplication_Link_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Query_RootApplication_Link_Oracle_RequestArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootApplication_Link_Oracle_Request_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootApplication_Link_Oracle_Request_By_PkArgs = { + id: Scalars['Int']; +}; + + export type Query_RootAverage_Block_Time_From_GenesisArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -5425,6 +10880,70 @@ export type Query_RootBlock_By_PkArgs = { }; +export type Query_RootChain_LinkArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootChain_Link_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootChain_Link_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Query_RootChain_Link_Chain_ConfigArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootChain_Link_Chain_Config_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootChain_Link_Chain_Config_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Query_RootChain_Link_ProofArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootChain_Link_Proof_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Query_RootCommunity_PoolArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -5443,6 +10962,47 @@ export type Query_RootCommunity_Pool_AggregateArgs = { }; +export type Query_RootDelegationArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDelegation_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDelegation_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Query_RootDelegation_RewardArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDelegation_Reward_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Query_RootDistribution_ParamsArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -5507,6 +11067,47 @@ export type Query_RootDouble_Sign_Vote_By_PkArgs = { }; +export type Query_RootDtag_Transfer_RequestsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDtag_Transfer_Requests_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootFee_Grant_AllowanceArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootFee_Grant_Allowance_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootFee_Grant_Allowance_By_PkArgs = { + id: Scalars['Int']; +}; + + export type Query_RootGenesisArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -5584,32 +11185,6 @@ export type Query_RootMessage_AggregateArgs = { }; -export type Query_RootMessage_NewArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootMessage_New_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootMessage_New_By_PkArgs = { - height: Scalars['bigint']; - index: Scalars['bigint']; - partition_id: Scalars['bigint']; - transaction_hash: Scalars['String']; -}; - - export type Query_RootMessages_By_AddressArgs = { args: Messages_By_Address_Args; distinct_on?: Maybe>; @@ -5676,6 +11251,165 @@ export type Query_RootModules_By_PkArgs = { }; +export type Query_RootPollArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootPoll_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootPoll_AnswerArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootPoll_Answer_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootPoll_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Query_RootPostArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootPost_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootPost_AttachmentArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootPost_Attachment_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootPost_Attachment_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Query_RootPost_Attachment_TagArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootPost_Attachment_Tag_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootPost_AttributeArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootPost_Attribute_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootPost_By_PkArgs = { + id: Scalars['String']; +}; + + +export type Query_RootPost_ReactionArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootPost_Reaction_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootPost_ReportArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootPost_Report_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Query_RootPre_CommitArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -5694,6 +11428,56 @@ export type Query_RootPre_Commit_AggregateArgs = { }; +export type Query_RootProfileArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootProfile_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootProfile_By_PkArgs = { + address: Scalars['String']; +}; + + +export type Query_RootProfile_RelationshipArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootProfile_Relationship_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootProfiles_ParamsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Query_RootProposalArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -5822,6 +11606,62 @@ export type Query_RootProposal_Vote_AggregateArgs = { }; +export type Query_RootRedelegationArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootRedelegation_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootRegistered_ReactionsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootRegistered_Reactions_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootSelf_DelegationsArgs = { + args: Self_Delegations_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootSelf_Delegations_AggregateArgs = { + args: Self_Delegations_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Query_RootSlashing_ParamsArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -6000,31 +11840,61 @@ export type Query_RootTransaction_AggregateArgs = { export type Query_RootTransaction_By_PkArgs = { - partition_id: Scalars['bigint']; + hash: Scalars['String']; }; -export type Query_RootTransaction_NewArgs = { - distinct_on?: Maybe>; +export type Query_RootUnbonding_DelegationArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Query_RootTransaction_New_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootUnbonding_Delegation_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Query_RootTransaction_New_By_PkArgs = { - hash: Scalars['String']; - partition_id: Scalars['bigint']; +export type Query_RootUser_BlockArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootUser_Block_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootUser_Poll_AnswerArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootUser_Poll_Answer_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; @@ -6069,6 +11939,29 @@ export type Query_RootValidator_Commission_AggregateArgs = { }; +export type Query_RootValidator_Commission_AmountArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootValidator_Commission_Amount_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootValidator_Commission_Amount_By_PkArgs = { + validator_address: Scalars['String']; +}; + + export type Query_RootValidator_Commission_By_PkArgs = { validator_address: Scalars['String']; }; @@ -6152,81 +12045,538 @@ export type Query_RootValidator_StatusArgs = { }; -export type Query_RootValidator_Status_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +export type Query_RootValidator_Status_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootValidator_Status_By_PkArgs = { + validator_address: Scalars['String']; +}; + + +export type Query_RootValidator_Voting_PowerArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootValidator_Voting_Power_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootValidator_Voting_Power_By_PkArgs = { + validator_address: Scalars['String']; +}; + + +export type Query_RootVesting_AccountArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootVesting_Account_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootVesting_Account_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Query_RootVesting_PeriodArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootVesting_Period_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + +/** columns and relationships of "redelegation" */ +export type Redelegation = { + __typename?: 'redelegation'; + /** An object relationship */ + account: Account; + amount: Scalars['coin']; + completion_time: Scalars['timestamp']; + delegator_address: Scalars['String']; + dst_validator_address: Scalars['String']; + height: Scalars['bigint']; + src_validator_address: Scalars['String']; + /** An object relationship */ + validator: Validator; + /** An object relationship */ + validatorByDstValidatorAddress: Validator; +}; + +/** aggregated selection of "redelegation" */ +export type Redelegation_Aggregate = { + __typename?: 'redelegation_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "redelegation" */ +export type Redelegation_Aggregate_Fields = { + __typename?: 'redelegation_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 "redelegation" */ +export type Redelegation_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "redelegation" */ +export type Redelegation_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Redelegation_Avg_Fields = { + __typename?: 'redelegation_avg_fields'; + height?: Maybe; +}; + +/** order by avg() on columns of table "redelegation" */ +export type Redelegation_Avg_Order_By = { + height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "redelegation". All fields are combined with a logical 'AND'. */ +export type Redelegation_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + account?: Maybe; + amount?: Maybe; + completion_time?: Maybe; + delegator_address?: Maybe; + dst_validator_address?: Maybe; + height?: Maybe; + src_validator_address?: Maybe; + validator?: Maybe; + validatorByDstValidatorAddress?: Maybe; +}; + +/** aggregate max on columns */ +export type Redelegation_Max_Fields = { + __typename?: 'redelegation_max_fields'; + completion_time?: Maybe; + delegator_address?: Maybe; + dst_validator_address?: Maybe; + height?: Maybe; + src_validator_address?: Maybe; +}; + +/** order by max() on columns of table "redelegation" */ +export type Redelegation_Max_Order_By = { + completion_time?: Maybe; + delegator_address?: Maybe; + dst_validator_address?: Maybe; + height?: Maybe; + src_validator_address?: Maybe; +}; + +/** aggregate min on columns */ +export type Redelegation_Min_Fields = { + __typename?: 'redelegation_min_fields'; + completion_time?: Maybe; + delegator_address?: Maybe; + dst_validator_address?: Maybe; + height?: Maybe; + src_validator_address?: Maybe; +}; + +/** order by min() on columns of table "redelegation" */ +export type Redelegation_Min_Order_By = { + completion_time?: Maybe; + delegator_address?: Maybe; + dst_validator_address?: Maybe; + height?: Maybe; + src_validator_address?: Maybe; +}; + +/** Ordering options when selecting data from "redelegation". */ +export type Redelegation_Order_By = { + account?: Maybe; + amount?: Maybe; + completion_time?: Maybe; + delegator_address?: Maybe; + dst_validator_address?: Maybe; + height?: Maybe; + src_validator_address?: Maybe; + validator?: Maybe; + validatorByDstValidatorAddress?: Maybe; +}; + +/** select columns of table "redelegation" */ +export enum Redelegation_Select_Column { + /** column name */ + Amount = 'amount', + /** column name */ + CompletionTime = 'completion_time', + /** column name */ + DelegatorAddress = 'delegator_address', + /** column name */ + DstValidatorAddress = 'dst_validator_address', + /** column name */ + Height = 'height', + /** column name */ + SrcValidatorAddress = 'src_validator_address' +} + +/** aggregate stddev on columns */ +export type Redelegation_Stddev_Fields = { + __typename?: 'redelegation_stddev_fields'; + height?: Maybe; +}; + +/** order by stddev() on columns of table "redelegation" */ +export type Redelegation_Stddev_Order_By = { + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Redelegation_Stddev_Pop_Fields = { + __typename?: 'redelegation_stddev_pop_fields'; + height?: Maybe; +}; + +/** order by stddev_pop() on columns of table "redelegation" */ +export type Redelegation_Stddev_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Redelegation_Stddev_Samp_Fields = { + __typename?: 'redelegation_stddev_samp_fields'; + height?: Maybe; +}; + +/** order by stddev_samp() on columns of table "redelegation" */ +export type Redelegation_Stddev_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Redelegation_Sum_Fields = { + __typename?: 'redelegation_sum_fields'; + height?: Maybe; +}; + +/** order by sum() on columns of table "redelegation" */ +export type Redelegation_Sum_Order_By = { + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Redelegation_Var_Pop_Fields = { + __typename?: 'redelegation_var_pop_fields'; + height?: Maybe; +}; + +/** order by var_pop() on columns of table "redelegation" */ +export type Redelegation_Var_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Redelegation_Var_Samp_Fields = { + __typename?: 'redelegation_var_samp_fields'; + height?: Maybe; +}; + +/** order by var_samp() on columns of table "redelegation" */ +export type Redelegation_Var_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Redelegation_Variance_Fields = { + __typename?: 'redelegation_variance_fields'; + height?: Maybe; +}; + +/** order by variance() on columns of table "redelegation" */ +export type Redelegation_Variance_Order_By = { + height?: Maybe; +}; + +/** columns and relationships of "registered_reactions" */ +export type Registered_Reactions = { + __typename?: 'registered_reactions'; + height: Scalars['bigint']; + owner_address: Scalars['String']; + /** An object relationship */ + profile: Profile; + short_code: Scalars['String']; + subspace: Scalars['String']; + value: Scalars['String']; +}; + +/** aggregated selection of "registered_reactions" */ +export type Registered_Reactions_Aggregate = { + __typename?: 'registered_reactions_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "registered_reactions" */ +export type Registered_Reactions_Aggregate_Fields = { + __typename?: 'registered_reactions_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 "registered_reactions" */ +export type Registered_Reactions_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "registered_reactions" */ +export type Registered_Reactions_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Registered_Reactions_Avg_Fields = { + __typename?: 'registered_reactions_avg_fields'; + height?: Maybe; +}; + +/** order by avg() on columns of table "registered_reactions" */ +export type Registered_Reactions_Avg_Order_By = { + height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "registered_reactions". All fields are combined with a logical 'AND'. */ +export type Registered_Reactions_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + height?: Maybe; + owner_address?: Maybe; + profile?: Maybe; + short_code?: Maybe; + subspace?: Maybe; + value?: Maybe; +}; + +/** aggregate max on columns */ +export type Registered_Reactions_Max_Fields = { + __typename?: 'registered_reactions_max_fields'; + height?: Maybe; + owner_address?: Maybe; + short_code?: Maybe; + subspace?: Maybe; + value?: Maybe; +}; + +/** order by max() on columns of table "registered_reactions" */ +export type Registered_Reactions_Max_Order_By = { + height?: Maybe; + owner_address?: Maybe; + short_code?: Maybe; + subspace?: Maybe; + value?: Maybe; +}; + +/** aggregate min on columns */ +export type Registered_Reactions_Min_Fields = { + __typename?: 'registered_reactions_min_fields'; + height?: Maybe; + owner_address?: Maybe; + short_code?: Maybe; + subspace?: Maybe; + value?: Maybe; }; +/** order by min() on columns of table "registered_reactions" */ +export type Registered_Reactions_Min_Order_By = { + height?: Maybe; + owner_address?: Maybe; + short_code?: Maybe; + subspace?: Maybe; + value?: Maybe; +}; -export type Query_RootValidator_Status_By_PkArgs = { - validator_address: Scalars['String']; +/** Ordering options when selecting data from "registered_reactions". */ +export type Registered_Reactions_Order_By = { + height?: Maybe; + owner_address?: Maybe; + profile?: Maybe; + short_code?: Maybe; + subspace?: Maybe; + value?: Maybe; }; +/** select columns of table "registered_reactions" */ +export enum Registered_Reactions_Select_Column { + /** column name */ + Height = 'height', + /** column name */ + OwnerAddress = 'owner_address', + /** column name */ + ShortCode = 'short_code', + /** column name */ + Subspace = 'subspace', + /** column name */ + Value = 'value' +} -export type Query_RootValidator_Voting_PowerArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate stddev on columns */ +export type Registered_Reactions_Stddev_Fields = { + __typename?: 'registered_reactions_stddev_fields'; + height?: Maybe; }; +/** order by stddev() on columns of table "registered_reactions" */ +export type Registered_Reactions_Stddev_Order_By = { + height?: Maybe; +}; -export type Query_RootValidator_Voting_Power_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate stddev_pop on columns */ +export type Registered_Reactions_Stddev_Pop_Fields = { + __typename?: 'registered_reactions_stddev_pop_fields'; + height?: Maybe; }; +/** order by stddev_pop() on columns of table "registered_reactions" */ +export type Registered_Reactions_Stddev_Pop_Order_By = { + height?: Maybe; +}; -export type Query_RootValidator_Voting_Power_By_PkArgs = { - validator_address: Scalars['String']; +/** aggregate stddev_samp on columns */ +export type Registered_Reactions_Stddev_Samp_Fields = { + __typename?: 'registered_reactions_stddev_samp_fields'; + height?: Maybe; }; +/** order by stddev_samp() on columns of table "registered_reactions" */ +export type Registered_Reactions_Stddev_Samp_Order_By = { + height?: Maybe; +}; -export type Query_RootVesting_AccountArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate sum on columns */ +export type Registered_Reactions_Sum_Fields = { + __typename?: 'registered_reactions_sum_fields'; + height?: Maybe; }; +/** order by sum() on columns of table "registered_reactions" */ +export type Registered_Reactions_Sum_Order_By = { + height?: Maybe; +}; -export type Query_RootVesting_Account_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate var_pop on columns */ +export type Registered_Reactions_Var_Pop_Fields = { + __typename?: 'registered_reactions_var_pop_fields'; + height?: Maybe; }; +/** order by var_pop() on columns of table "registered_reactions" */ +export type Registered_Reactions_Var_Pop_Order_By = { + height?: Maybe; +}; -export type Query_RootVesting_Account_By_PkArgs = { - id: Scalars['Int']; +/** aggregate var_samp on columns */ +export type Registered_Reactions_Var_Samp_Fields = { + __typename?: 'registered_reactions_var_samp_fields'; + height?: Maybe; }; +/** order by var_samp() on columns of table "registered_reactions" */ +export type Registered_Reactions_Var_Samp_Order_By = { + height?: Maybe; +}; -export type Query_RootVesting_PeriodArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate variance on columns */ +export type Registered_Reactions_Variance_Fields = { + __typename?: 'registered_reactions_variance_fields'; + height?: Maybe; }; +/** order by variance() on columns of table "registered_reactions" */ +export type Registered_Reactions_Variance_Order_By = { + height?: Maybe; +}; -export type Query_RootVesting_Period_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +export type Self_Delegations_Args = { + validator_row?: Maybe; }; /** columns and relationships of "slashing_params" */ @@ -6508,9 +12858,9 @@ export type Staking_Params_Variance_Fields = { /** columns and relationships of "staking_pool" */ export type Staking_Pool = { __typename?: 'staking_pool'; - bonded_tokens: Scalars['String']; + bonded_tokens: Scalars['bigint']; height: Scalars['bigint']; - not_bonded_tokens: Scalars['String']; + not_bonded_tokens: Scalars['bigint']; }; /** aggregated selection of "staking_pool" */ @@ -6546,7 +12896,9 @@ export type Staking_Pool_Aggregate_FieldsCountArgs = { /** aggregate avg on columns */ export type Staking_Pool_Avg_Fields = { __typename?: 'staking_pool_avg_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; }; /** Boolean expression to filter rows from the table "staking_pool". All fields are combined with a logical 'AND'. */ @@ -6554,25 +12906,25 @@ export type Staking_Pool_Bool_Exp = { _and?: Maybe>; _not?: Maybe; _or?: Maybe>; - bonded_tokens?: Maybe; + bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; + not_bonded_tokens?: Maybe; }; /** aggregate max on columns */ export type Staking_Pool_Max_Fields = { __typename?: 'staking_pool_max_fields'; - bonded_tokens?: Maybe; + bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; + not_bonded_tokens?: Maybe; }; /** aggregate min on columns */ export type Staking_Pool_Min_Fields = { __typename?: 'staking_pool_min_fields'; - bonded_tokens?: Maybe; + bonded_tokens?: Maybe; height?: Maybe; - not_bonded_tokens?: Maybe; + not_bonded_tokens?: Maybe; }; /** Ordering options when selecting data from "staking_pool". */ @@ -6595,43 +12947,57 @@ export enum Staking_Pool_Select_Column { /** aggregate stddev on columns */ export type Staking_Pool_Stddev_Fields = { __typename?: 'staking_pool_stddev_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; }; /** aggregate stddev_pop on columns */ export type Staking_Pool_Stddev_Pop_Fields = { __typename?: 'staking_pool_stddev_pop_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; }; /** aggregate stddev_samp on columns */ export type Staking_Pool_Stddev_Samp_Fields = { __typename?: 'staking_pool_stddev_samp_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; }; /** aggregate sum on columns */ export type Staking_Pool_Sum_Fields = { __typename?: 'staking_pool_sum_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; }; /** aggregate var_pop on columns */ export type Staking_Pool_Var_Pop_Fields = { __typename?: 'staking_pool_var_pop_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; }; /** aggregate var_samp on columns */ export type Staking_Pool_Var_Samp_Fields = { __typename?: 'staking_pool_var_samp_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; }; /** aggregate variance on columns */ export type Staking_Pool_Variance_Fields = { __typename?: 'staking_pool_variance_fields'; + bonded_tokens?: Maybe; height?: Maybe; + not_bonded_tokens?: Maybe; }; export type Subscription_Root = { @@ -6640,8 +13006,38 @@ export type Subscription_Root = { account: Array; /** fetch aggregated fields from the table: "account" */ account_aggregate: Account_Aggregate; + /** fetch data from the table: "account_balance" */ + account_balance: Array; + /** fetch aggregated fields from the table: "account_balance" */ + account_balance_aggregate: Account_Balance_Aggregate; + /** fetch data from the table: "account_balance" using primary key columns */ + account_balance_by_pk?: Maybe; + /** fetch data from the table: "account_balance_history" */ + account_balance_history: Array; + /** fetch aggregated fields from the table: "account_balance_history" */ + account_balance_history_aggregate: Account_Balance_History_Aggregate; + /** execute function "account_balance_history_tokens_prices" which returns "token_price_history" */ + account_balance_history_tokens_prices: Array; + /** execute function "account_balance_history_tokens_prices" and query aggregates on result of table type "token_price_history" */ + account_balance_history_tokens_prices_aggregate: Token_Price_History_Aggregate; + /** execute function "account_balance_tokens_prices" which returns "token_price" */ + account_balance_tokens_prices: Array; + /** execute function "account_balance_tokens_prices" and query aggregates on result of table type "token_price" */ + account_balance_tokens_prices_aggregate: Token_Price_Aggregate; /** fetch data from the table: "account" using primary key columns */ account_by_pk?: Maybe; + /** fetch data from the table: "application_link" */ + application_link: Array; + /** fetch aggregated fields from the table: "application_link" */ + application_link_aggregate: Application_Link_Aggregate; + /** fetch data from the table: "application_link" using primary key columns */ + application_link_by_pk?: Maybe; + /** fetch data from the table: "application_link_oracle_request" */ + application_link_oracle_request: Array; + /** fetch aggregated fields from the table: "application_link_oracle_request" */ + application_link_oracle_request_aggregate: Application_Link_Oracle_Request_Aggregate; + /** fetch data from the table: "application_link_oracle_request" using primary key columns */ + application_link_oracle_request_by_pk?: Maybe; /** fetch data from the table: "average_block_time_from_genesis" */ average_block_time_from_genesis: Array; /** fetch aggregated fields from the table: "average_block_time_from_genesis" */ @@ -6664,10 +13060,36 @@ export type Subscription_Root = { block_aggregate: Block_Aggregate; /** fetch data from the table: "block" using primary key columns */ block_by_pk?: Maybe; + /** fetch data from the table: "chain_link" */ + chain_link: Array; + /** fetch aggregated fields from the table: "chain_link" */ + chain_link_aggregate: Chain_Link_Aggregate; + /** fetch data from the table: "chain_link" using primary key columns */ + chain_link_by_pk?: Maybe; + /** fetch data from the table: "chain_link_chain_config" */ + chain_link_chain_config: Array; + /** fetch aggregated fields from the table: "chain_link_chain_config" */ + chain_link_chain_config_aggregate: Chain_Link_Chain_Config_Aggregate; + /** fetch data from the table: "chain_link_chain_config" using primary key columns */ + chain_link_chain_config_by_pk?: Maybe; + /** fetch data from the table: "chain_link_proof" */ + chain_link_proof: Array; + /** fetch aggregated fields from the table: "chain_link_proof" */ + chain_link_proof_aggregate: Chain_Link_Proof_Aggregate; /** fetch data from the table: "community_pool" */ community_pool: Array; /** fetch aggregated fields from the table: "community_pool" */ community_pool_aggregate: Community_Pool_Aggregate; + /** fetch data from the table: "delegation" */ + delegation: Array; + /** fetch aggregated fields from the table: "delegation" */ + delegation_aggregate: Delegation_Aggregate; + /** fetch data from the table: "delegation" using primary key columns */ + delegation_by_pk?: Maybe; + /** fetch data from the table: "delegation_reward" */ + delegation_reward: Array; + /** fetch aggregated fields from the table: "delegation_reward" */ + delegation_reward_aggregate: Delegation_Reward_Aggregate; /** fetch data from the table: "distribution_params" */ distribution_params: Array; /** fetch aggregated fields from the table: "distribution_params" */ @@ -6684,6 +13106,16 @@ export type Subscription_Root = { double_sign_vote_aggregate: Double_Sign_Vote_Aggregate; /** fetch data from the table: "double_sign_vote" using primary key columns */ double_sign_vote_by_pk?: Maybe; + /** An array relationship */ + dtag_transfer_requests: Array; + /** An aggregate relationship */ + dtag_transfer_requests_aggregate: Dtag_Transfer_Requests_Aggregate; + /** fetch data from the table: "fee_grant_allowance" */ + fee_grant_allowance: Array; + /** fetch aggregated fields from the table: "fee_grant_allowance" */ + fee_grant_allowance_aggregate: Fee_Grant_Allowance_Aggregate; + /** fetch data from the table: "fee_grant_allowance" using primary key columns */ + fee_grant_allowance_by_pk?: Maybe; /** fetch data from the table: "genesis" */ genesis: Array; /** fetch aggregated fields from the table: "genesis" */ @@ -6702,12 +13134,6 @@ export type Subscription_Root = { message: Array; /** fetch aggregated fields from the table: "message" */ message_aggregate: Message_Aggregate; - /** fetch data from the table: "message_new" */ - message_new: Array; - /** fetch aggregated fields from the table: "message_new" */ - message_new_aggregate: Message_New_Aggregate; - /** fetch data from the table: "message_new" using primary key columns */ - message_new_by_pk?: Maybe; /** execute function "messages_by_address" which returns "message" */ messages_by_address: Array; /** execute function "messages_by_address" and query aggregates on result of table type "message" */ @@ -6724,10 +13150,60 @@ export type Subscription_Root = { modules_aggregate: Modules_Aggregate; /** fetch data from the table: "modules" using primary key columns */ modules_by_pk?: Maybe; + /** fetch data from the table: "poll" */ + poll: Array; + /** fetch aggregated fields from the table: "poll" */ + poll_aggregate: Poll_Aggregate; + /** fetch data from the table: "poll_answer" */ + poll_answer: Array; + /** fetch aggregated fields from the table: "poll_answer" */ + poll_answer_aggregate: Poll_Answer_Aggregate; + /** fetch data from the table: "poll" using primary key columns */ + poll_by_pk?: Maybe; + /** fetch data from the table: "post" */ + post: Array; + /** fetch aggregated fields from the table: "post" */ + post_aggregate: Post_Aggregate; + /** fetch data from the table: "post_attachment" */ + post_attachment: Array; + /** fetch aggregated fields from the table: "post_attachment" */ + post_attachment_aggregate: Post_Attachment_Aggregate; + /** fetch data from the table: "post_attachment" using primary key columns */ + post_attachment_by_pk?: Maybe; + /** fetch data from the table: "post_attachment_tag" */ + post_attachment_tag: Array; + /** fetch aggregated fields from the table: "post_attachment_tag" */ + post_attachment_tag_aggregate: Post_Attachment_Tag_Aggregate; + /** fetch data from the table: "post_attribute" */ + post_attribute: Array; + /** fetch aggregated fields from the table: "post_attribute" */ + post_attribute_aggregate: Post_Attribute_Aggregate; + /** fetch data from the table: "post" using primary key columns */ + post_by_pk?: Maybe; + /** fetch data from the table: "post_reaction" */ + post_reaction: Array; + /** fetch aggregated fields from the table: "post_reaction" */ + post_reaction_aggregate: Post_Reaction_Aggregate; + /** fetch data from the table: "post_report" */ + post_report: Array; + /** fetch aggregated fields from the table: "post_report" */ + post_report_aggregate: Post_Report_Aggregate; /** 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: "profile" */ + profile: Array; + /** fetch aggregated fields from the table: "profile" */ + profile_aggregate: Profile_Aggregate; + /** fetch data from the table: "profile" using primary key columns */ + profile_by_pk?: Maybe; + /** fetch data from the table: "profile_relationship" */ + profile_relationship: Array; + /** fetch aggregated fields from the table: "profile_relationship" */ + profile_relationship_aggregate: Profile_Relationship_Aggregate; + /** fetch data from the table: "profiles_params" */ + profiles_params: Array; /** fetch data from the table: "proposal" */ proposal: Array; /** fetch aggregated fields from the table: "proposal" */ @@ -6760,6 +13236,18 @@ export type Subscription_Root = { proposal_vote: Array; /** fetch aggregated fields from the table: "proposal_vote" */ proposal_vote_aggregate: Proposal_Vote_Aggregate; + /** fetch data from the table: "redelegation" */ + redelegation: Array; + /** fetch aggregated fields from the table: "redelegation" */ + redelegation_aggregate: Redelegation_Aggregate; + /** An array relationship */ + registered_reactions: Array; + /** An aggregate relationship */ + registered_reactions_aggregate: Registered_Reactions_Aggregate; + /** execute function "self_delegations" which returns "delegation" */ + self_delegations: Array; + /** execute function "self_delegations" and query aggregates on result of table type "delegation" */ + self_delegations_aggregate: Delegation_Aggregate; /** fetch data from the table: "slashing_params" */ slashing_params: Array; /** fetch aggregated fields from the table: "slashing_params" */ @@ -6804,12 +13292,18 @@ export type Subscription_Root = { transaction_aggregate: Transaction_Aggregate; /** fetch data from the table: "transaction" using primary key columns */ transaction_by_pk?: Maybe; - /** fetch data from the table: "transaction_new" */ - transaction_new: Array; - /** fetch aggregated fields from the table: "transaction_new" */ - transaction_new_aggregate: Transaction_New_Aggregate; - /** fetch data from the table: "transaction_new" using primary key columns */ - transaction_new_by_pk?: Maybe; + /** fetch data from the table: "unbonding_delegation" */ + unbonding_delegation: Array; + /** fetch aggregated fields from the table: "unbonding_delegation" */ + unbonding_delegation_aggregate: Unbonding_Delegation_Aggregate; + /** fetch data from the table: "user_block" */ + user_block: Array; + /** fetch aggregated fields from the table: "user_block" */ + user_block_aggregate: User_Block_Aggregate; + /** fetch data from the table: "user_poll_answer" */ + user_poll_answer: Array; + /** fetch aggregated fields from the table: "user_poll_answer" */ + user_poll_answer_aggregate: User_Poll_Answer_Aggregate; /** fetch data from the table: "validator" */ validator: Array; /** fetch aggregated fields from the table: "validator" */ @@ -6820,6 +13314,12 @@ export type Subscription_Root = { validator_commission: Array; /** fetch aggregated fields from the table: "validator_commission" */ validator_commission_aggregate: Validator_Commission_Aggregate; + /** fetch data from the table: "validator_commission_amount" */ + validator_commission_amount: Array; + /** fetch aggregated fields from the table: "validator_commission_amount" */ + validator_commission_amount_aggregate: Validator_Commission_Amount_Aggregate; + /** fetch data from the table: "validator_commission_amount" using primary key columns */ + validator_commission_amount_by_pk?: Maybe; /** fetch data from the table: "validator_commission" using primary key columns */ validator_commission_by_pk?: Maybe; /** fetch data from the table: "validator_description" */ @@ -6883,11 +13383,138 @@ export type Subscription_RootAccount_AggregateArgs = { }; +export type Subscription_RootAccount_BalanceArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootAccount_Balance_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootAccount_Balance_By_PkArgs = { + address: Scalars['String']; +}; + + +export type Subscription_RootAccount_Balance_HistoryArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootAccount_Balance_History_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootAccount_Balance_History_Tokens_PricesArgs = { + args: Account_Balance_History_Tokens_Prices_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootAccount_Balance_History_Tokens_Prices_AggregateArgs = { + args: Account_Balance_History_Tokens_Prices_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootAccount_Balance_Tokens_PricesArgs = { + args: Account_Balance_Tokens_Prices_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootAccount_Balance_Tokens_Prices_AggregateArgs = { + args: Account_Balance_Tokens_Prices_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Subscription_RootAccount_By_PkArgs = { address: Scalars['String']; }; +export type Subscription_RootApplication_LinkArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootApplication_Link_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootApplication_Link_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Subscription_RootApplication_Link_Oracle_RequestArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootApplication_Link_Oracle_Request_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootApplication_Link_Oracle_Request_By_PkArgs = { + id: Scalars['Int']; +}; + + export type Subscription_RootAverage_Block_Time_From_GenesisArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -6946,58 +13573,163 @@ export type Subscription_RootAverage_Block_Time_Per_MinuteArgs = { distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootAverage_Block_Time_Per_Minute_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootBlockArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootBlock_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootBlock_By_PkArgs = { + height: Scalars['bigint']; +}; + + +export type Subscription_RootChain_LinkArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootChain_Link_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootChain_Link_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Subscription_RootChain_Link_Chain_ConfigArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootChain_Link_Chain_Config_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootChain_Link_Chain_Config_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Subscription_RootChain_Link_ProofArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootChain_Link_Proof_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootCommunity_PoolArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAverage_Block_Time_Per_Minute_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootCommunity_Pool_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootBlockArgs = { - distinct_on?: Maybe>; +export type Subscription_RootDelegationArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootBlock_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootDelegation_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootBlock_By_PkArgs = { - height: Scalars['bigint']; +export type Subscription_RootDelegation_By_PkArgs = { + id: Scalars['Int']; }; -export type Subscription_RootCommunity_PoolArgs = { - distinct_on?: Maybe>; +export type Subscription_RootDelegation_RewardArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootCommunity_Pool_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootDelegation_Reward_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; @@ -7065,6 +13797,47 @@ export type Subscription_RootDouble_Sign_Vote_By_PkArgs = { }; +export type Subscription_RootDtag_Transfer_RequestsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootDtag_Transfer_Requests_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootFee_Grant_AllowanceArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootFee_Grant_Allowance_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootFee_Grant_Allowance_By_PkArgs = { + id: Scalars['Int']; +}; + + export type Subscription_RootGenesisArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -7142,32 +13915,6 @@ export type Subscription_RootMessage_AggregateArgs = { }; -export type Subscription_RootMessage_NewArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootMessage_New_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootMessage_New_By_PkArgs = { - height: Scalars['bigint']; - index: Scalars['bigint']; - partition_id: Scalars['bigint']; - transaction_hash: Scalars['String']; -}; - - export type Subscription_RootMessages_By_AddressArgs = { args: Messages_By_Address_Args; distinct_on?: Maybe>; @@ -7234,6 +13981,165 @@ export type Subscription_RootModules_By_PkArgs = { }; +export type Subscription_RootPollArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootPoll_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootPoll_AnswerArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootPoll_Answer_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootPoll_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Subscription_RootPostArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootPost_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootPost_AttachmentArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootPost_Attachment_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootPost_Attachment_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Subscription_RootPost_Attachment_TagArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootPost_Attachment_Tag_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootPost_AttributeArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootPost_Attribute_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootPost_By_PkArgs = { + id: Scalars['String']; +}; + + +export type Subscription_RootPost_ReactionArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootPost_Reaction_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootPost_ReportArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootPost_Report_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Subscription_RootPre_CommitArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -7252,6 +14158,56 @@ export type Subscription_RootPre_Commit_AggregateArgs = { }; +export type Subscription_RootProfileArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootProfile_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootProfile_By_PkArgs = { + address: Scalars['String']; +}; + + +export type Subscription_RootProfile_RelationshipArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootProfile_Relationship_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootProfiles_ParamsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Subscription_RootProposalArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -7380,6 +14336,62 @@ export type Subscription_RootProposal_Vote_AggregateArgs = { }; +export type Subscription_RootRedelegationArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootRedelegation_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootRegistered_ReactionsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootRegistered_Reactions_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootSelf_DelegationsArgs = { + args: Self_Delegations_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootSelf_Delegations_AggregateArgs = { + args: Self_Delegations_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Subscription_RootSlashing_ParamsArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -7558,31 +14570,61 @@ export type Subscription_RootTransaction_AggregateArgs = { export type Subscription_RootTransaction_By_PkArgs = { - partition_id: Scalars['bigint']; + hash: Scalars['String']; }; -export type Subscription_RootTransaction_NewArgs = { - distinct_on?: Maybe>; +export type Subscription_RootUnbonding_DelegationArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootTransaction_New_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootUnbonding_Delegation_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootTransaction_New_By_PkArgs = { - hash: Scalars['String']; - partition_id: Scalars['bigint']; +export type Subscription_RootUser_BlockArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootUser_Block_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootUser_Poll_AnswerArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootUser_Poll_Answer_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; @@ -7627,6 +14669,29 @@ export type Subscription_RootValidator_Commission_AggregateArgs = { }; +export type Subscription_RootValidator_Commission_AmountArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootValidator_Commission_Amount_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootValidator_Commission_Amount_By_PkArgs = { + validator_address: Scalars['String']; +}; + + export type Subscription_RootValidator_Commission_By_PkArgs = { validator_address: Scalars['String']; }; @@ -8774,7 +15839,6 @@ export type Transaction = { messagesByTransactionHash: Array; /** An aggregate relationship */ messagesByTransactionHash_aggregate: Message_Aggregate; - partition_id: Scalars['bigint']; raw_log?: Maybe; signatures: Scalars['_text']; signer_infos: Scalars['jsonb']; @@ -8849,513 +15913,945 @@ export type Transaction_Aggregate_Fields = { }; -/** aggregate fields of "transaction" */ -export type Transaction_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "transaction" */ +export type Transaction_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "transaction" */ +export type Transaction_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Transaction_Avg_Fields = { + __typename?: 'transaction_avg_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by avg() on columns of table "transaction" */ +export type Transaction_Avg_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "transaction". All fields are combined with a logical 'AND'. */ +export type Transaction_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + block?: Maybe; + fee?: Maybe; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + logs?: Maybe; + memo?: Maybe; + messages?: Maybe; + messagesByTransactionHash?: Maybe; + raw_log?: Maybe; + signatures?: Maybe<_Text_Comparison_Exp>; + signer_infos?: Maybe; + success?: Maybe; +}; + +/** aggregate max on columns */ +export type Transaction_Max_Fields = { + __typename?: 'transaction_max_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + memo?: Maybe; + raw_log?: Maybe; +}; + +/** order by max() on columns of table "transaction" */ +export type Transaction_Max_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + memo?: Maybe; + raw_log?: Maybe; +}; + +/** aggregate min on columns */ +export type Transaction_Min_Fields = { + __typename?: 'transaction_min_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + memo?: Maybe; + raw_log?: Maybe; +}; + +/** order by min() on columns of table "transaction" */ +export type Transaction_Min_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + memo?: Maybe; + raw_log?: Maybe; +}; + +/** Ordering options when selecting data from "transaction". */ +export type Transaction_Order_By = { + block?: Maybe; + fee?: Maybe; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + logs?: Maybe; + memo?: Maybe; + messages?: Maybe; + messagesByTransactionHash_aggregate?: Maybe; + raw_log?: Maybe; + signatures?: Maybe; + signer_infos?: Maybe; + success?: Maybe; +}; + +/** 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' +} + +/** aggregate stddev on columns */ +export type Transaction_Stddev_Fields = { + __typename?: 'transaction_stddev_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by stddev() on columns of table "transaction" */ +export type Transaction_Stddev_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Transaction_Stddev_Pop_Fields = { + __typename?: 'transaction_stddev_pop_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by stddev_pop() on columns of table "transaction" */ +export type Transaction_Stddev_Pop_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Transaction_Stddev_Samp_Fields = { + __typename?: 'transaction_stddev_samp_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by stddev_samp() on columns of table "transaction" */ +export type Transaction_Stddev_Samp_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Transaction_Sum_Fields = { + __typename?: 'transaction_sum_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by sum() on columns of table "transaction" */ +export type Transaction_Sum_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Transaction_Var_Pop_Fields = { + __typename?: 'transaction_var_pop_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by var_pop() on columns of table "transaction" */ +export type Transaction_Var_Pop_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Transaction_Var_Samp_Fields = { + __typename?: 'transaction_var_samp_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by var_samp() on columns of table "transaction" */ +export type Transaction_Var_Samp_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Transaction_Variance_Fields = { + __typename?: 'transaction_variance_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by variance() on columns of table "transaction" */ +export type Transaction_Variance_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** columns and relationships of "unbonding_delegation" */ +export type Unbonding_Delegation = { + __typename?: 'unbonding_delegation'; + /** An object relationship */ + account: Account; + amount: Scalars['coin']; + completion_timestamp: Scalars['timestamp']; + delegator_address: Scalars['String']; + height: Scalars['bigint']; + /** An object relationship */ + validator: Validator; + validator_address: Scalars['String']; +}; + +/** aggregated selection of "unbonding_delegation" */ +export type Unbonding_Delegation_Aggregate = { + __typename?: 'unbonding_delegation_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "unbonding_delegation" */ +export type Unbonding_Delegation_Aggregate_Fields = { + __typename?: 'unbonding_delegation_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 "unbonding_delegation" */ +export type Unbonding_Delegation_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "transaction" */ -export type Transaction_Aggregate_Order_By = { - avg?: Maybe; +/** order by aggregate values of table "unbonding_delegation" */ +export type Unbonding_Delegation_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate avg on columns */ -export type Transaction_Avg_Fields = { - __typename?: 'transaction_avg_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; +export type Unbonding_Delegation_Avg_Fields = { + __typename?: 'unbonding_delegation_avg_fields'; height?: Maybe; - partition_id?: Maybe; }; -/** order by avg() on columns of table "transaction" */ -export type Transaction_Avg_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; +/** order by avg() on columns of table "unbonding_delegation" */ +export type Unbonding_Delegation_Avg_Order_By = { height?: Maybe; - partition_id?: Maybe; }; -/** Boolean expression to filter rows from the table "transaction". All fields are combined with a logical 'AND'. */ -export type Transaction_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - block?: Maybe; - fee?: Maybe; - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; +/** Boolean expression to filter rows from the table "unbonding_delegation". All fields are combined with a logical 'AND'. */ +export type Unbonding_Delegation_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + account?: Maybe; + amount?: Maybe; + completion_timestamp?: Maybe; + delegator_address?: Maybe; height?: Maybe; - logs?: Maybe; - memo?: Maybe; - messages?: Maybe; - messagesByTransactionHash?: Maybe; - partition_id?: Maybe; - raw_log?: Maybe; - signatures?: Maybe<_Text_Comparison_Exp>; - signer_infos?: Maybe; - success?: Maybe; + validator?: Maybe; + validator_address?: Maybe; }; /** aggregate max on columns */ -export type Transaction_Max_Fields = { - __typename?: 'transaction_max_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; +export type Unbonding_Delegation_Max_Fields = { + __typename?: 'unbonding_delegation_max_fields'; + completion_timestamp?: Maybe; + delegator_address?: Maybe; height?: Maybe; - memo?: Maybe; - partition_id?: Maybe; - raw_log?: Maybe; + validator_address?: Maybe; }; -/** order by max() on columns of table "transaction" */ -export type Transaction_Max_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; +/** order by max() on columns of table "unbonding_delegation" */ +export type Unbonding_Delegation_Max_Order_By = { + completion_timestamp?: Maybe; + delegator_address?: Maybe; height?: Maybe; - memo?: Maybe; - partition_id?: Maybe; - raw_log?: Maybe; + validator_address?: Maybe; }; /** aggregate min on columns */ -export type Transaction_Min_Fields = { - __typename?: 'transaction_min_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; +export type Unbonding_Delegation_Min_Fields = { + __typename?: 'unbonding_delegation_min_fields'; + completion_timestamp?: Maybe; + delegator_address?: Maybe; height?: Maybe; - memo?: Maybe; - partition_id?: Maybe; - raw_log?: Maybe; + validator_address?: Maybe; }; -/** order by min() on columns of table "transaction" */ -export type Transaction_Min_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; +/** order by min() on columns of table "unbonding_delegation" */ +export type Unbonding_Delegation_Min_Order_By = { + completion_timestamp?: Maybe; + delegator_address?: Maybe; height?: Maybe; - memo?: Maybe; - partition_id?: Maybe; - raw_log?: Maybe; + validator_address?: Maybe; }; -/** columns and relationships of "transaction_new" */ -export type Transaction_New = { - __typename?: 'transaction_new'; - fee: Scalars['jsonb']; - gas_used?: Maybe; - gas_wanted?: Maybe; - hash: Scalars['String']; - height: Scalars['bigint']; - logs?: Maybe; - memo?: Maybe; - messages: Scalars['jsonb']; - partition_id: Scalars['bigint']; - raw_log?: Maybe; - signatures: Scalars['_text']; - signer_infos: Scalars['jsonb']; - success: Scalars['Boolean']; +/** Ordering options when selecting data from "unbonding_delegation". */ +export type Unbonding_Delegation_Order_By = { + account?: Maybe; + amount?: Maybe; + completion_timestamp?: Maybe; + delegator_address?: Maybe; + height?: Maybe; + validator?: Maybe; + validator_address?: Maybe; }; +/** select columns of table "unbonding_delegation" */ +export enum Unbonding_Delegation_Select_Column { + /** column name */ + Amount = 'amount', + /** column name */ + CompletionTimestamp = 'completion_timestamp', + /** column name */ + DelegatorAddress = 'delegator_address', + /** column name */ + Height = 'height', + /** column name */ + ValidatorAddress = 'validator_address' +} -/** columns and relationships of "transaction_new" */ -export type Transaction_NewFeeArgs = { - path?: Maybe; +/** aggregate stddev on columns */ +export type Unbonding_Delegation_Stddev_Fields = { + __typename?: 'unbonding_delegation_stddev_fields'; + height?: Maybe; }; +/** order by stddev() on columns of table "unbonding_delegation" */ +export type Unbonding_Delegation_Stddev_Order_By = { + height?: Maybe; +}; -/** columns and relationships of "transaction_new" */ -export type Transaction_NewLogsArgs = { - path?: Maybe; +/** aggregate stddev_pop on columns */ +export type Unbonding_Delegation_Stddev_Pop_Fields = { + __typename?: 'unbonding_delegation_stddev_pop_fields'; + height?: Maybe; }; +/** order by stddev_pop() on columns of table "unbonding_delegation" */ +export type Unbonding_Delegation_Stddev_Pop_Order_By = { + height?: Maybe; +}; -/** columns and relationships of "transaction_new" */ -export type Transaction_NewMessagesArgs = { - path?: Maybe; +/** aggregate stddev_samp on columns */ +export type Unbonding_Delegation_Stddev_Samp_Fields = { + __typename?: 'unbonding_delegation_stddev_samp_fields'; + height?: Maybe; }; +/** order by stddev_samp() on columns of table "unbonding_delegation" */ +export type Unbonding_Delegation_Stddev_Samp_Order_By = { + height?: Maybe; +}; -/** columns and relationships of "transaction_new" */ -export type Transaction_NewSigner_InfosArgs = { - path?: Maybe; +/** aggregate sum on columns */ +export type Unbonding_Delegation_Sum_Fields = { + __typename?: 'unbonding_delegation_sum_fields'; + height?: Maybe; }; -/** aggregated selection of "transaction_new" */ -export type Transaction_New_Aggregate = { - __typename?: 'transaction_new_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** order by sum() on columns of table "unbonding_delegation" */ +export type Unbonding_Delegation_Sum_Order_By = { + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Unbonding_Delegation_Var_Pop_Fields = { + __typename?: 'unbonding_delegation_var_pop_fields'; + height?: Maybe; +}; + +/** order by var_pop() on columns of table "unbonding_delegation" */ +export type Unbonding_Delegation_Var_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Unbonding_Delegation_Var_Samp_Fields = { + __typename?: 'unbonding_delegation_var_samp_fields'; + height?: Maybe; +}; + +/** order by var_samp() on columns of table "unbonding_delegation" */ +export type Unbonding_Delegation_Var_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Unbonding_Delegation_Variance_Fields = { + __typename?: 'unbonding_delegation_variance_fields'; + height?: Maybe; +}; + +/** order by variance() on columns of table "unbonding_delegation" */ +export type Unbonding_Delegation_Variance_Order_By = { + height?: Maybe; +}; + +/** columns and relationships of "user_block" */ +export type User_Block = { + __typename?: 'user_block'; + blocked_user_address: Scalars['String']; + blocker_address: Scalars['String']; + height: Scalars['bigint']; + /** An object relationship */ + profile: Profile; + /** An object relationship */ + profileByBlockerAddress: Profile; + reason?: Maybe; + subspace: Scalars['String']; +}; + +/** aggregated selection of "user_block" */ +export type User_Block_Aggregate = { + __typename?: 'user_block_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "transaction_new" */ -export type Transaction_New_Aggregate_Fields = { - __typename?: 'transaction_new_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "user_block" */ +export type User_Block_Aggregate_Fields = { + __typename?: 'user_block_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; + 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 "transaction_new" */ -export type Transaction_New_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "user_block" */ +export type User_Block_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; +/** order by aggregate values of table "user_block" */ +export type User_Block_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + /** aggregate avg on columns */ -export type Transaction_New_Avg_Fields = { - __typename?: 'transaction_new_avg_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; +export type User_Block_Avg_Fields = { + __typename?: 'user_block_avg_fields'; height?: Maybe; - partition_id?: Maybe; }; -/** Boolean expression to filter rows from the table "transaction_new". All fields are combined with a logical 'AND'. */ -export type Transaction_New_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - fee?: Maybe; - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; +/** order by avg() on columns of table "user_block" */ +export type User_Block_Avg_Order_By = { + height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "user_block". All fields are combined with a logical 'AND'. */ +export type User_Block_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + blocked_user_address?: Maybe; + blocker_address?: Maybe; height?: Maybe; - logs?: Maybe; - memo?: Maybe; - messages?: Maybe; - partition_id?: Maybe; - raw_log?: Maybe; - signatures?: Maybe<_Text_Comparison_Exp>; - signer_infos?: Maybe; - success?: Maybe; + profile?: Maybe; + profileByBlockerAddress?: Maybe; + reason?: Maybe; + subspace?: Maybe; }; /** aggregate max on columns */ -export type Transaction_New_Max_Fields = { - __typename?: 'transaction_new_max_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; +export type User_Block_Max_Fields = { + __typename?: 'user_block_max_fields'; + blocked_user_address?: Maybe; + blocker_address?: Maybe; height?: Maybe; - memo?: Maybe; - partition_id?: Maybe; - raw_log?: Maybe; + reason?: Maybe; + subspace?: Maybe; +}; + +/** order by max() on columns of table "user_block" */ +export type User_Block_Max_Order_By = { + blocked_user_address?: Maybe; + blocker_address?: Maybe; + height?: Maybe; + reason?: Maybe; + subspace?: Maybe; }; /** aggregate min on columns */ -export type Transaction_New_Min_Fields = { - __typename?: 'transaction_new_min_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; +export type User_Block_Min_Fields = { + __typename?: 'user_block_min_fields'; + blocked_user_address?: Maybe; + blocker_address?: Maybe; height?: Maybe; - memo?: Maybe; - partition_id?: Maybe; - raw_log?: Maybe; + reason?: Maybe; + subspace?: Maybe; }; -/** Ordering options when selecting data from "transaction_new". */ -export type Transaction_New_Order_By = { - fee?: Maybe; - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; +/** order by min() on columns of table "user_block" */ +export type User_Block_Min_Order_By = { + blocked_user_address?: Maybe; + blocker_address?: Maybe; height?: Maybe; - logs?: Maybe; - memo?: Maybe; - messages?: Maybe; - partition_id?: Maybe; - raw_log?: Maybe; - signatures?: Maybe; - signer_infos?: Maybe; - success?: Maybe; + reason?: Maybe; + subspace?: Maybe; }; -/** select columns of table "transaction_new" */ -export enum Transaction_New_Select_Column { - /** column name */ - Fee = 'fee', - /** column name */ - GasUsed = 'gas_used', +/** Ordering options when selecting data from "user_block". */ +export type User_Block_Order_By = { + blocked_user_address?: Maybe; + blocker_address?: Maybe; + height?: Maybe; + profile?: Maybe; + profileByBlockerAddress?: Maybe; + reason?: Maybe; + subspace?: Maybe; +}; + +/** select columns of table "user_block" */ +export enum User_Block_Select_Column { /** column name */ - GasWanted = 'gas_wanted', + BlockedUserAddress = 'blocked_user_address', /** column name */ - Hash = 'hash', + BlockerAddress = 'blocker_address', /** column name */ Height = 'height', /** column name */ - Logs = 'logs', - /** column name */ - Memo = 'memo', - /** column name */ - Messages = 'messages', - /** column name */ - PartitionId = 'partition_id', - /** column name */ - RawLog = 'raw_log', - /** column name */ - Signatures = 'signatures', - /** column name */ - SignerInfos = 'signer_infos', + Reason = 'reason', /** column name */ - Success = 'success' + Subspace = 'subspace' } /** aggregate stddev on columns */ -export type Transaction_New_Stddev_Fields = { - __typename?: 'transaction_new_stddev_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; +export type User_Block_Stddev_Fields = { + __typename?: 'user_block_stddev_fields'; + height?: Maybe; +}; + +/** order by stddev() on columns of table "user_block" */ +export type User_Block_Stddev_Order_By = { + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type User_Block_Stddev_Pop_Fields = { + __typename?: 'user_block_stddev_pop_fields'; + height?: Maybe; +}; + +/** order by stddev_pop() on columns of table "user_block" */ +export type User_Block_Stddev_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type User_Block_Stddev_Samp_Fields = { + __typename?: 'user_block_stddev_samp_fields'; + height?: Maybe; +}; + +/** order by stddev_samp() on columns of table "user_block" */ +export type User_Block_Stddev_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type User_Block_Sum_Fields = { + __typename?: 'user_block_sum_fields'; + height?: Maybe; +}; + +/** order by sum() on columns of table "user_block" */ +export type User_Block_Sum_Order_By = { + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type User_Block_Var_Pop_Fields = { + __typename?: 'user_block_var_pop_fields'; + height?: Maybe; +}; + +/** order by var_pop() on columns of table "user_block" */ +export type User_Block_Var_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type User_Block_Var_Samp_Fields = { + __typename?: 'user_block_var_samp_fields'; height?: Maybe; - partition_id?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Transaction_New_Stddev_Pop_Fields = { - __typename?: 'transaction_new_stddev_pop_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; +/** order by var_samp() on columns of table "user_block" */ +export type User_Block_Var_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type User_Block_Variance_Fields = { + __typename?: 'user_block_variance_fields'; height?: Maybe; - partition_id?: Maybe; }; -/** aggregate stddev_samp on columns */ -export type Transaction_New_Stddev_Samp_Fields = { - __typename?: 'transaction_new_stddev_samp_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; +/** order by variance() on columns of table "user_block" */ +export type User_Block_Variance_Order_By = { + height?: Maybe; +}; + +/** columns and relationships of "user_poll_answer" */ +export type User_Poll_Answer = { + __typename?: 'user_poll_answer'; + answer: Scalars['Int']; + answerer_address: Scalars['String']; + height: Scalars['bigint']; + /** An object relationship */ + poll: Poll; + poll_id: Scalars['Int']; + /** An object relationship */ + profile: Profile; +}; + +/** aggregated selection of "user_poll_answer" */ +export type User_Poll_Answer_Aggregate = { + __typename?: 'user_poll_answer_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "user_poll_answer" */ +export type User_Poll_Answer_Aggregate_Fields = { + __typename?: 'user_poll_answer_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 "user_poll_answer" */ +export type User_Poll_Answer_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "user_poll_answer" */ +export type User_Poll_Answer_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type User_Poll_Answer_Avg_Fields = { + __typename?: 'user_poll_answer_avg_fields'; + answer?: Maybe; height?: Maybe; - partition_id?: Maybe; + poll_id?: Maybe; }; -/** aggregate sum on columns */ -export type Transaction_New_Sum_Fields = { - __typename?: 'transaction_new_sum_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; +/** order by avg() on columns of table "user_poll_answer" */ +export type User_Poll_Answer_Avg_Order_By = { + answer?: Maybe; + height?: Maybe; + poll_id?: Maybe; +}; + +/** Boolean expression to filter rows from the table "user_poll_answer". All fields are combined with a logical 'AND'. */ +export type User_Poll_Answer_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + answer?: Maybe; + answerer_address?: Maybe; + height?: Maybe; + poll?: Maybe; + poll_id?: Maybe; + profile?: Maybe; +}; + +/** aggregate max on columns */ +export type User_Poll_Answer_Max_Fields = { + __typename?: 'user_poll_answer_max_fields'; + answer?: Maybe; + answerer_address?: Maybe; height?: Maybe; - partition_id?: Maybe; + poll_id?: Maybe; }; -/** aggregate var_pop on columns */ -export type Transaction_New_Var_Pop_Fields = { - __typename?: 'transaction_new_var_pop_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; - partition_id?: Maybe; +/** order by max() on columns of table "user_poll_answer" */ +export type User_Poll_Answer_Max_Order_By = { + answer?: Maybe; + answerer_address?: Maybe; + height?: Maybe; + poll_id?: Maybe; }; -/** aggregate var_samp on columns */ -export type Transaction_New_Var_Samp_Fields = { - __typename?: 'transaction_new_var_samp_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; - partition_id?: Maybe; +/** aggregate min on columns */ +export type User_Poll_Answer_Min_Fields = { + __typename?: 'user_poll_answer_min_fields'; + answer?: Maybe; + answerer_address?: Maybe; + height?: Maybe; + poll_id?: Maybe; }; -/** aggregate variance on columns */ -export type Transaction_New_Variance_Fields = { - __typename?: 'transaction_new_variance_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; - partition_id?: Maybe; +/** order by min() on columns of table "user_poll_answer" */ +export type User_Poll_Answer_Min_Order_By = { + answer?: Maybe; + answerer_address?: Maybe; + height?: Maybe; + poll_id?: Maybe; }; -/** Ordering options when selecting data from "transaction". */ -export type Transaction_Order_By = { - block?: Maybe; - fee?: Maybe; - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; +/** Ordering options when selecting data from "user_poll_answer". */ +export type User_Poll_Answer_Order_By = { + answer?: Maybe; + answerer_address?: Maybe; height?: Maybe; - logs?: Maybe; - memo?: Maybe; - messages?: Maybe; - messagesByTransactionHash_aggregate?: Maybe; - partition_id?: Maybe; - raw_log?: Maybe; - signatures?: Maybe; - signer_infos?: Maybe; - success?: Maybe; + poll?: Maybe; + poll_id?: Maybe; + profile?: Maybe; }; -/** select columns of table "transaction" */ -export enum Transaction_Select_Column { - /** column name */ - Fee = 'fee', - /** column name */ - GasUsed = 'gas_used', +/** select columns of table "user_poll_answer" */ +export enum User_Poll_Answer_Select_Column { /** column name */ - GasWanted = 'gas_wanted', + Answer = 'answer', /** column name */ - Hash = 'hash', + AnswererAddress = 'answerer_address', /** column name */ Height = 'height', /** column name */ - Logs = 'logs', - /** column name */ - Memo = 'memo', - /** column name */ - Messages = 'messages', - /** column name */ - PartitionId = 'partition_id', - /** column name */ - RawLog = 'raw_log', - /** column name */ - Signatures = 'signatures', - /** column name */ - SignerInfos = 'signer_infos', - /** column name */ - Success = 'success' + PollId = 'poll_id' } /** aggregate stddev on columns */ -export type Transaction_Stddev_Fields = { - __typename?: 'transaction_stddev_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; +export type User_Poll_Answer_Stddev_Fields = { + __typename?: 'user_poll_answer_stddev_fields'; + answer?: Maybe; height?: Maybe; - partition_id?: Maybe; + poll_id?: Maybe; }; -/** order by stddev() on columns of table "transaction" */ -export type Transaction_Stddev_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; +/** order by stddev() on columns of table "user_poll_answer" */ +export type User_Poll_Answer_Stddev_Order_By = { + answer?: Maybe; height?: Maybe; - partition_id?: Maybe; + poll_id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Transaction_Stddev_Pop_Fields = { - __typename?: 'transaction_stddev_pop_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; +export type User_Poll_Answer_Stddev_Pop_Fields = { + __typename?: 'user_poll_answer_stddev_pop_fields'; + answer?: Maybe; height?: Maybe; - partition_id?: Maybe; + poll_id?: Maybe; }; -/** order by stddev_pop() on columns of table "transaction" */ -export type Transaction_Stddev_Pop_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; +/** order by stddev_pop() on columns of table "user_poll_answer" */ +export type User_Poll_Answer_Stddev_Pop_Order_By = { + answer?: Maybe; height?: Maybe; - partition_id?: Maybe; + poll_id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Transaction_Stddev_Samp_Fields = { - __typename?: 'transaction_stddev_samp_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; +export type User_Poll_Answer_Stddev_Samp_Fields = { + __typename?: 'user_poll_answer_stddev_samp_fields'; + answer?: Maybe; height?: Maybe; - partition_id?: Maybe; + poll_id?: Maybe; }; -/** order by stddev_samp() on columns of table "transaction" */ -export type Transaction_Stddev_Samp_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; +/** order by stddev_samp() on columns of table "user_poll_answer" */ +export type User_Poll_Answer_Stddev_Samp_Order_By = { + answer?: Maybe; height?: Maybe; - partition_id?: Maybe; + poll_id?: Maybe; }; /** aggregate sum on columns */ -export type Transaction_Sum_Fields = { - __typename?: 'transaction_sum_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; +export type User_Poll_Answer_Sum_Fields = { + __typename?: 'user_poll_answer_sum_fields'; + answer?: Maybe; height?: Maybe; - partition_id?: Maybe; + poll_id?: Maybe; }; -/** order by sum() on columns of table "transaction" */ -export type Transaction_Sum_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; +/** order by sum() on columns of table "user_poll_answer" */ +export type User_Poll_Answer_Sum_Order_By = { + answer?: Maybe; height?: Maybe; - partition_id?: Maybe; + poll_id?: Maybe; }; /** aggregate var_pop on columns */ -export type Transaction_Var_Pop_Fields = { - __typename?: 'transaction_var_pop_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; +export type User_Poll_Answer_Var_Pop_Fields = { + __typename?: 'user_poll_answer_var_pop_fields'; + answer?: Maybe; height?: Maybe; - partition_id?: Maybe; + poll_id?: Maybe; }; -/** order by var_pop() on columns of table "transaction" */ -export type Transaction_Var_Pop_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; +/** order by var_pop() on columns of table "user_poll_answer" */ +export type User_Poll_Answer_Var_Pop_Order_By = { + answer?: Maybe; height?: Maybe; - partition_id?: Maybe; + poll_id?: Maybe; }; /** aggregate var_samp on columns */ -export type Transaction_Var_Samp_Fields = { - __typename?: 'transaction_var_samp_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; +export type User_Poll_Answer_Var_Samp_Fields = { + __typename?: 'user_poll_answer_var_samp_fields'; + answer?: Maybe; height?: Maybe; - partition_id?: Maybe; + poll_id?: Maybe; }; -/** order by var_samp() on columns of table "transaction" */ -export type Transaction_Var_Samp_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; +/** order by var_samp() on columns of table "user_poll_answer" */ +export type User_Poll_Answer_Var_Samp_Order_By = { + answer?: Maybe; height?: Maybe; - partition_id?: Maybe; + poll_id?: Maybe; }; /** aggregate variance on columns */ -export type Transaction_Variance_Fields = { - __typename?: 'transaction_variance_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; +export type User_Poll_Answer_Variance_Fields = { + __typename?: 'user_poll_answer_variance_fields'; + answer?: Maybe; height?: Maybe; - partition_id?: Maybe; + poll_id?: Maybe; }; -/** order by variance() on columns of table "transaction" */ -export type Transaction_Variance_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; +/** order by variance() on columns of table "user_poll_answer" */ +export type User_Poll_Answer_Variance_Order_By = { + answer?: Maybe; height?: Maybe; - partition_id?: Maybe; + poll_id?: Maybe; }; /** columns and relationships of "validator" */ @@ -9368,6 +16864,14 @@ export type Validator = { consensus_address: Scalars['String']; consensus_pubkey: Scalars['String']; /** An array relationship */ + delegation_rewards: Array; + /** An aggregate relationship */ + delegation_rewards_aggregate: Delegation_Reward_Aggregate; + /** An array relationship */ + delegations: Array; + /** An aggregate relationship */ + delegations_aggregate: Delegation_Aggregate; + /** An array relationship */ double_sign_votes: Array; /** An aggregate relationship */ double_sign_votes_aggregate: Double_Sign_Vote_Aggregate; @@ -9380,6 +16884,24 @@ export type Validator = { /** An aggregate relationship */ proposal_validator_status_snapshots_aggregate: Proposal_Validator_Status_Snapshot_Aggregate; /** An array relationship */ + redelegationsByDstValidatorAddress: Array; + /** An aggregate relationship */ + redelegationsByDstValidatorAddress_aggregate: Redelegation_Aggregate; + /** An array relationship */ + redelegationsBySrcValidatorAddress: Array; + /** An aggregate relationship */ + redelegationsBySrcValidatorAddress_aggregate: Redelegation_Aggregate; + /** A computed field, executes function "self_delegations" */ + self_delegations?: Maybe>; + /** An array relationship */ + unbonding_delegations: Array; + /** An aggregate relationship */ + unbonding_delegations_aggregate: Unbonding_Delegation_Aggregate; + /** An array relationship */ + validator_commission_amounts: Array; + /** An aggregate relationship */ + validator_commission_amounts_aggregate: Validator_Commission_Amount_Aggregate; + /** An array relationship */ validator_commissions: Array; /** An aggregate relationship */ validator_commissions_aggregate: Validator_Commission_Aggregate; @@ -9428,6 +16950,46 @@ export type ValidatorBlocks_AggregateArgs = { }; +/** columns and relationships of "validator" */ +export type ValidatorDelegation_RewardsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorDelegation_Rewards_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorDelegationsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorDelegations_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + /** columns and relationships of "validator" */ export type ValidatorDouble_Sign_VotesArgs = { distinct_on?: Maybe>; @@ -9453,38 +17015,128 @@ export type ValidatorPre_CommitsArgs = { distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorPre_Commits_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorProposal_Validator_Status_SnapshotsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorProposal_Validator_Status_Snapshots_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorRedelegationsByDstValidatorAddressArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorRedelegationsByDstValidatorAddress_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorRedelegationsBySrcValidatorAddressArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorRedelegationsBySrcValidatorAddress_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorSelf_DelegationsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorUnbonding_DelegationsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; /** columns and relationships of "validator" */ -export type ValidatorPre_Commits_AggregateArgs = { - distinct_on?: Maybe>; +export type ValidatorUnbonding_Delegations_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; /** columns and relationships of "validator" */ -export type ValidatorProposal_Validator_Status_SnapshotsArgs = { - distinct_on?: Maybe>; +export type ValidatorValidator_Commission_AmountsArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; /** columns and relationships of "validator" */ -export type ValidatorProposal_Validator_Status_Snapshots_AggregateArgs = { - distinct_on?: Maybe>; +export type ValidatorValidator_Commission_Amounts_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; @@ -9637,9 +17289,16 @@ export type Validator_Bool_Exp = { blocks?: Maybe; consensus_address?: Maybe; consensus_pubkey?: Maybe; + delegation_rewards?: Maybe; + delegations?: Maybe; double_sign_votes?: Maybe; pre_commits?: Maybe; proposal_validator_status_snapshots?: Maybe; + redelegationsByDstValidatorAddress?: Maybe; + redelegationsBySrcValidatorAddress?: Maybe; + self_delegations?: Maybe; + unbonding_delegations?: Maybe; + validator_commission_amounts?: Maybe; validator_commissions?: Maybe; validator_descriptions?: Maybe; validator_info?: Maybe; @@ -9705,6 +17364,204 @@ export type Validator_Commission_Aggregate_Order_By = { variance?: Maybe; }; +/** columns and relationships of "validator_commission_amount" */ +export type Validator_Commission_Amount = { + __typename?: 'validator_commission_amount'; + amount: Scalars['_dec_coin']; + height: Scalars['bigint']; + /** An object relationship */ + validator: Validator; + validator_address: Scalars['String']; +}; + +/** aggregated selection of "validator_commission_amount" */ +export type Validator_Commission_Amount_Aggregate = { + __typename?: 'validator_commission_amount_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "validator_commission_amount" */ +export type Validator_Commission_Amount_Aggregate_Fields = { + __typename?: 'validator_commission_amount_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_commission_amount" */ +export type Validator_Commission_Amount_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "validator_commission_amount" */ +export type Validator_Commission_Amount_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Validator_Commission_Amount_Avg_Fields = { + __typename?: 'validator_commission_amount_avg_fields'; + height?: Maybe; +}; + +/** order by avg() on columns of table "validator_commission_amount" */ +export type Validator_Commission_Amount_Avg_Order_By = { + height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "validator_commission_amount". All fields are combined with a logical 'AND'. */ +export type Validator_Commission_Amount_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + amount?: Maybe<_Dec_Coin_Comparison_Exp>; + height?: Maybe; + validator?: Maybe; + validator_address?: Maybe; +}; + +/** aggregate max on columns */ +export type Validator_Commission_Amount_Max_Fields = { + __typename?: 'validator_commission_amount_max_fields'; + height?: Maybe; + validator_address?: Maybe; +}; + +/** order by max() on columns of table "validator_commission_amount" */ +export type Validator_Commission_Amount_Max_Order_By = { + height?: Maybe; + validator_address?: Maybe; +}; + +/** aggregate min on columns */ +export type Validator_Commission_Amount_Min_Fields = { + __typename?: 'validator_commission_amount_min_fields'; + height?: Maybe; + validator_address?: Maybe; +}; + +/** order by min() on columns of table "validator_commission_amount" */ +export type Validator_Commission_Amount_Min_Order_By = { + height?: Maybe; + validator_address?: Maybe; +}; + +/** Ordering options when selecting data from "validator_commission_amount". */ +export type Validator_Commission_Amount_Order_By = { + amount?: Maybe; + height?: Maybe; + validator?: Maybe; + validator_address?: Maybe; +}; + +/** select columns of table "validator_commission_amount" */ +export enum Validator_Commission_Amount_Select_Column { + /** column name */ + Amount = 'amount', + /** column name */ + Height = 'height', + /** column name */ + ValidatorAddress = 'validator_address' +} + +/** aggregate stddev on columns */ +export type Validator_Commission_Amount_Stddev_Fields = { + __typename?: 'validator_commission_amount_stddev_fields'; + height?: Maybe; +}; + +/** order by stddev() on columns of table "validator_commission_amount" */ +export type Validator_Commission_Amount_Stddev_Order_By = { + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Validator_Commission_Amount_Stddev_Pop_Fields = { + __typename?: 'validator_commission_amount_stddev_pop_fields'; + height?: Maybe; +}; + +/** order by stddev_pop() on columns of table "validator_commission_amount" */ +export type Validator_Commission_Amount_Stddev_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Validator_Commission_Amount_Stddev_Samp_Fields = { + __typename?: 'validator_commission_amount_stddev_samp_fields'; + height?: Maybe; +}; + +/** order by stddev_samp() on columns of table "validator_commission_amount" */ +export type Validator_Commission_Amount_Stddev_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Validator_Commission_Amount_Sum_Fields = { + __typename?: 'validator_commission_amount_sum_fields'; + height?: Maybe; +}; + +/** order by sum() on columns of table "validator_commission_amount" */ +export type Validator_Commission_Amount_Sum_Order_By = { + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Validator_Commission_Amount_Var_Pop_Fields = { + __typename?: 'validator_commission_amount_var_pop_fields'; + height?: Maybe; +}; + +/** order by var_pop() on columns of table "validator_commission_amount" */ +export type Validator_Commission_Amount_Var_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Validator_Commission_Amount_Var_Samp_Fields = { + __typename?: 'validator_commission_amount_var_samp_fields'; + height?: Maybe; +}; + +/** order by var_samp() on columns of table "validator_commission_amount" */ +export type Validator_Commission_Amount_Var_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Validator_Commission_Amount_Variance_Fields = { + __typename?: 'validator_commission_amount_variance_fields'; + height?: Maybe; +}; + +/** order by variance() on columns of table "validator_commission_amount" */ +export type Validator_Commission_Amount_Variance_Order_By = { + height?: Maybe; +}; + /** aggregate avg on columns */ export type Validator_Commission_Avg_Fields = { __typename?: 'validator_commission_avg_fields'; @@ -10145,6 +18002,7 @@ export type Validator_Info = { /** An object relationship */ account?: Maybe; consensus_address: Scalars['String']; + height: Scalars['bigint']; max_change_rate: Scalars['String']; max_rate: Scalars['String']; operator_address: Scalars['String']; @@ -10163,9 +18021,17 @@ export type Validator_Info_Aggregate = { /** aggregate fields of "validator_info" */ export type Validator_Info_Aggregate_Fields = { __typename?: 'validator_info_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; }; @@ -10177,9 +18043,28 @@ export type Validator_Info_Aggregate_FieldsCountArgs = { /** order by aggregate values of table "validator_info" */ export type Validator_Info_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; max?: Maybe; min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Validator_Info_Avg_Fields = { + __typename?: 'validator_info_avg_fields'; + height?: Maybe; +}; + +/** order by avg() on columns of table "validator_info" */ +export type Validator_Info_Avg_Order_By = { + height?: Maybe; }; /** Boolean expression to filter rows from the table "validator_info". All fields are combined with a logical 'AND'. */ @@ -10189,6 +18074,7 @@ export type Validator_Info_Bool_Exp = { _or?: Maybe>; account?: Maybe; consensus_address?: Maybe; + height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -10200,6 +18086,7 @@ export type Validator_Info_Bool_Exp = { export type Validator_Info_Max_Fields = { __typename?: 'validator_info_max_fields'; consensus_address?: Maybe; + height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -10209,6 +18096,7 @@ export type Validator_Info_Max_Fields = { /** order by max() on columns of table "validator_info" */ export type Validator_Info_Max_Order_By = { consensus_address?: Maybe; + height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -10219,6 +18107,7 @@ export type Validator_Info_Max_Order_By = { export type Validator_Info_Min_Fields = { __typename?: 'validator_info_min_fields'; consensus_address?: Maybe; + height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -10228,6 +18117,7 @@ export type Validator_Info_Min_Fields = { /** order by min() on columns of table "validator_info" */ export type Validator_Info_Min_Order_By = { consensus_address?: Maybe; + height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -10238,6 +18128,7 @@ export type Validator_Info_Min_Order_By = { export type Validator_Info_Order_By = { account?: Maybe; consensus_address?: Maybe; + height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -10250,6 +18141,8 @@ export enum Validator_Info_Select_Column { /** column name */ ConsensusAddress = 'consensus_address', /** column name */ + Height = 'height', + /** column name */ MaxChangeRate = 'max_change_rate', /** column name */ MaxRate = 'max_rate', @@ -10259,6 +18152,83 @@ export enum Validator_Info_Select_Column { SelfDelegateAddress = 'self_delegate_address' } +/** aggregate stddev on columns */ +export type Validator_Info_Stddev_Fields = { + __typename?: 'validator_info_stddev_fields'; + height?: Maybe; +}; + +/** order by stddev() on columns of table "validator_info" */ +export type Validator_Info_Stddev_Order_By = { + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Validator_Info_Stddev_Pop_Fields = { + __typename?: 'validator_info_stddev_pop_fields'; + height?: Maybe; +}; + +/** order by stddev_pop() on columns of table "validator_info" */ +export type Validator_Info_Stddev_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Validator_Info_Stddev_Samp_Fields = { + __typename?: 'validator_info_stddev_samp_fields'; + height?: Maybe; +}; + +/** order by stddev_samp() on columns of table "validator_info" */ +export type Validator_Info_Stddev_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Validator_Info_Sum_Fields = { + __typename?: 'validator_info_sum_fields'; + height?: Maybe; +}; + +/** order by sum() on columns of table "validator_info" */ +export type Validator_Info_Sum_Order_By = { + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Validator_Info_Var_Pop_Fields = { + __typename?: 'validator_info_var_pop_fields'; + height?: Maybe; +}; + +/** order by var_pop() on columns of table "validator_info" */ +export type Validator_Info_Var_Pop_Order_By = { + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Validator_Info_Var_Samp_Fields = { + __typename?: 'validator_info_var_samp_fields'; + height?: Maybe; +}; + +/** order by var_samp() on columns of table "validator_info" */ +export type Validator_Info_Var_Samp_Order_By = { + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Validator_Info_Variance_Fields = { + __typename?: 'validator_info_variance_fields'; + height?: Maybe; +}; + +/** order by variance() on columns of table "validator_info" */ +export type Validator_Info_Variance_Order_By = { + height?: Maybe; +}; + /** aggregate max on columns */ export type Validator_Max_Fields = { __typename?: 'validator_max_fields'; @@ -10278,9 +18248,15 @@ export type Validator_Order_By = { blocks_aggregate?: Maybe; consensus_address?: Maybe; consensus_pubkey?: Maybe; + delegation_rewards_aggregate?: Maybe; + delegations_aggregate?: Maybe; double_sign_votes_aggregate?: Maybe; pre_commits_aggregate?: Maybe; proposal_validator_status_snapshots_aggregate?: Maybe; + redelegationsByDstValidatorAddress_aggregate?: Maybe; + redelegationsBySrcValidatorAddress_aggregate?: Maybe; + unbonding_delegations_aggregate?: Maybe; + validator_commission_amounts_aggregate?: Maybe; validator_commissions_aggregate?: Maybe; validator_descriptions_aggregate?: Maybe; validator_info?: Maybe; @@ -10290,6 +18266,7 @@ export type Validator_Order_By = { validator_voting_powers_aggregate?: Maybe; }; + /** select columns of table "validator" */ export enum Validator_Select_Column { /** column name */ @@ -11789,46 +19766,38 @@ export type GetMessagesByAddressQueryVariables = Exact<{ export type GetMessagesByAddressQuery = { messagesByAddress: Array<( { __typename?: 'message' } - & { transaction?: Maybe<( + & { transaction: ( { __typename?: 'transaction' } & Pick & { block: ( { __typename?: 'block' } & Pick ) } - )> } - )> }; - -export type OnlineVotingPowerListenerSubscriptionVariables = Exact<{ [key: string]: never; }>; - - -export type OnlineVotingPowerListenerSubscription = { block: Array<( - { __typename?: 'block' } - & Pick - & { validatorVotingPowersAggregate: ( - { __typename?: 'validator_voting_power_aggregate' } - & { aggregate?: Maybe<( - { __typename?: 'validator_voting_power_aggregate_fields' } - & { sum?: Maybe<( - { __typename?: 'validator_voting_power_sum_fields' } - & { votingPower: Validator_Voting_Power_Sum_Fields['voting_power'] } - )> } - )> } ) } )> }; -export type TotalVotingPowerListenerSubscriptionVariables = Exact<{ [key: string]: never; }>; +export type OnlineVotingPowerQueryVariables = Exact<{ [key: string]: never; }>; -export type TotalVotingPowerListenerSubscription = { stakingPool: Array<( +export type OnlineVotingPowerQuery = { activeTotal: ( + { __typename?: 'validator_status_aggregate' } + & { aggregate?: Maybe<( + { __typename?: 'validator_status_aggregate_fields' } + & Pick + )> } + ), validatorVotingPowerAggregate: ( + { __typename?: 'validator_voting_power_aggregate' } + & { aggregate?: Maybe<( + { __typename?: 'validator_voting_power_aggregate_fields' } + & { sum?: Maybe<( + { __typename?: 'validator_voting_power_sum_fields' } + & { votingPower: Validator_Voting_Power_Sum_Fields['voting_power'] } + )> } + )> } + ), stakingPool: Array<( { __typename?: 'staking_pool' } & { bonded: Staking_Pool['bonded_tokens'] } - )> }; - -export type StakingParamsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type StakingParamsQuery = { stakingParams: Array<( + )>, stakingParams: Array<( { __typename?: 'staking_params' } & Pick )> }; @@ -12932,73 +20901,23 @@ export function useGetMessagesByAddressLazyQuery(baseOptions?: Apollo.LazyQueryH export type GetMessagesByAddressQueryHookResult = ReturnType; export type GetMessagesByAddressLazyQueryHookResult = ReturnType; export type GetMessagesByAddressQueryResult = Apollo.QueryResult; -export const OnlineVotingPowerListenerDocument = gql` - subscription OnlineVotingPowerListener { - block(offset: 0, limit: 1, order_by: {height: desc}) { - height - validatorVotingPowersAggregate: validator_voting_powers_aggregate { - aggregate { - sum { - votingPower: voting_power - } - } +export const OnlineVotingPowerDocument = gql` + query OnlineVotingPower { + activeTotal: validator_status_aggregate(where: {status: {_eq: 3}}) { + aggregate { + count } } -} - `; - -/** - * __useOnlineVotingPowerListenerSubscription__ - * - * To run a query within a React component, call `useOnlineVotingPowerListenerSubscription` and pass it any options that fit your needs. - * When your component renders, `useOnlineVotingPowerListenerSubscription` 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 } = useOnlineVotingPowerListenerSubscription({ - * variables: { - * }, - * }); - */ -export function useOnlineVotingPowerListenerSubscription(baseOptions?: Apollo.SubscriptionHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useSubscription(OnlineVotingPowerListenerDocument, options); + validatorVotingPowerAggregate: validator_voting_power_aggregate { + aggregate { + sum { + votingPower: voting_power } -export type OnlineVotingPowerListenerSubscriptionHookResult = ReturnType; -export type OnlineVotingPowerListenerSubscriptionResult = Apollo.SubscriptionResult; -export const TotalVotingPowerListenerDocument = gql` - subscription TotalVotingPowerListener { + } + } stakingPool: staking_pool(order_by: {height: desc}, limit: 1) { bonded: bonded_tokens } -} - `; - -/** - * __useTotalVotingPowerListenerSubscription__ - * - * To run a query within a React component, call `useTotalVotingPowerListenerSubscription` and pass it any options that fit your needs. - * When your component renders, `useTotalVotingPowerListenerSubscription` 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 } = useTotalVotingPowerListenerSubscription({ - * variables: { - * }, - * }); - */ -export function useTotalVotingPowerListenerSubscription(baseOptions?: Apollo.SubscriptionHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useSubscription(TotalVotingPowerListenerDocument, options); - } -export type TotalVotingPowerListenerSubscriptionHookResult = ReturnType; -export type TotalVotingPowerListenerSubscriptionResult = Apollo.SubscriptionResult; -export const StakingParamsDocument = gql` - query StakingParams { stakingParams: staking_params(limit: 1) { params } @@ -13006,31 +20925,31 @@ export const StakingParamsDocument = gql` `; /** - * __useStakingParamsQuery__ + * __useOnlineVotingPowerQuery__ * - * To run a query within a React component, call `useStakingParamsQuery` and pass it any options that fit your needs. - * When your component renders, `useStakingParamsQuery` returns an object from Apollo Client that contains loading, error, and data properties + * 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 } = useStakingParamsQuery({ + * const { data, loading, error } = useOnlineVotingPowerQuery({ * variables: { * }, * }); */ -export function useStakingParamsQuery(baseOptions?: Apollo.QueryHookOptions) { +export function useOnlineVotingPowerQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(StakingParamsDocument, options); + return Apollo.useQuery(OnlineVotingPowerDocument, options); } -export function useStakingParamsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { +export function useOnlineVotingPowerLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(StakingParamsDocument, options); + return Apollo.useLazyQuery(OnlineVotingPowerDocument, options); } -export type StakingParamsQueryHookResult = ReturnType; -export type StakingParamsLazyQueryHookResult = ReturnType; -export type StakingParamsQueryResult = Apollo.QueryResult; +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}) { diff --git a/src/screens/home/components/online_voting_power/__snapshots__/index.test.tsx.snap b/src/screens/home/components/online_voting_power/__snapshots__/index.test.tsx.snap index 61c442fb33..a907ae894d 100644 --- a/src/screens/home/components/online_voting_power/__snapshots__/index.test.tsx.snap +++ b/src/screens/home/components/online_voting_power/__snapshots__/index.test.tsx.snap @@ -22,11 +22,11 @@ Array [

- 0 + 76,341,043 / - 0 + 76,341,095,840,626

- block + validators - - 0 - + 109 +

- 0 + 76,341,043

- 0 + 76,341,095,840,626

@@ -126,11 +123,11 @@ Array [

- 0 + 76,341,043 / - 254,578,529,800 + 76,341,095,840,626

- block + validators - - 1,143,207 - + 109 +

- 0 + 76,341,043

- 254,578,529,800 + 76,341,095,840,626

diff --git a/src/screens/home/components/online_voting_power/hooks.tsx b/src/screens/home/components/online_voting_power/hooks.tsx index 5159acebfd..3435a0abe3 100644 --- a/src/screens/home/components/online_voting_power/hooks.tsx +++ b/src/screens/home/components/online_voting_power/hooks.tsx @@ -2,22 +2,20 @@ import { useState } from 'react'; import numeral from 'numeral'; import * as R from 'ramda'; import { - useTotalVotingPowerListenerSubscription, - useOnlineVotingPowerListenerSubscription, - OnlineVotingPowerListenerSubscription, - TotalVotingPowerListenerSubscription, + useOnlineVotingPowerQuery, + OnlineVotingPowerQuery, } from '@graphql/types'; import { chainConfig } from '@configs'; import { formatToken } from '@utils/format_token'; const initialState: { - height: number; votingPower: number; totalVotingPower: number; + activeValidators: number; } = { - height: 0, votingPower: 0, totalVotingPower: 0, + activeValidators: 0, }; export const useOnlineVotingPower = () => { @@ -27,49 +25,37 @@ export const useOnlineVotingPower = () => { setState((prevState) => R.mergeDeepLeft(stateChange, prevState)); }; - // ==================================== - // block voting power - // ==================================== - - useOnlineVotingPowerListenerSubscription({ - onSubscriptionData: (data) => { - const currentVotingPower = formatOnlineVotingPower(data.subscriptionData.data); - - handleSetState({ - ...currentVotingPower, - }); + useOnlineVotingPowerQuery({ + onCompleted: (data) => { + handleSetState(formatOnlineVotingPower(data)); }, }); - const formatOnlineVotingPower = (data: OnlineVotingPowerListenerSubscription) => { - const votingPower = R.pathOr(state.votingPower, [ - 'block', 0, 'validatorVotingPowersAggregate', 'aggregate', 'sum', 'votingPower', + const formatOnlineVotingPower = (data: OnlineVotingPowerQuery) => { + const votingPower = R.pathOr(0, [ + 'validatorVotingPowerAggregate', + 'aggregate', + 'sum', + 'votingPower', ], data); - return { - height: R.pathOr(initialState.height, ['block', 0, 'height'], data), - votingPower, - }; - }; - - // ==================================== - // total voting power - // ==================================== - useTotalVotingPowerListenerSubscription({ - onSubscriptionData: (data) => { - handleSetState({ - totalVotingPower: formatTotalVotingPower(data.subscriptionData.data), - }); - }, - }); - - const formatTotalVotingPower = (data: TotalVotingPowerListenerSubscription) => { - let bonded = R.pathOr(initialState.totalVotingPower, [ + const bonded = R.pathOr(0, [ 'stakingPool', 0, 'bonded', ], data); - bonded = numeral(formatToken(bonded, chainConfig.votingPowerTokenUnit).value).value(); - return bonded; + const activeValidators = R.pathOr(0, [ + 'activeTotal', + 'aggregate', + 'count', + ], data); + + return { + activeValidators, + votingPower, + totalVotingPower: numeral( + formatToken(bonded, chainConfig.votingPowerTokenUnit).value, + ).value(), + }; }; return { diff --git a/src/screens/home/components/online_voting_power/index.test.tsx b/src/screens/home/components/online_voting_power/index.test.tsx index 09a0acc7ea..db55319fe9 100644 --- a/src/screens/home/components/online_voting_power/index.test.tsx +++ b/src/screens/home/components/online_voting_power/index.test.tsx @@ -1,14 +1,8 @@ import React from 'react'; import renderer from 'react-test-renderer'; import { ApolloProvider } from '@apollo/client'; -import { - createMockClient, createMockSubscription, -} from 'mock-apollo-client'; -import { - OnlineVotingPowerListenerDocument, - TotalVotingPowerListenerDocument, - StakingParamsDocument, -} from '@graphql/types'; +import { createMockClient } from 'mock-apollo-client'; +import { OnlineVotingPowerDocument } from '@graphql/types'; import { MockTheme, wait, } from '@tests/utils'; @@ -26,38 +20,34 @@ jest.mock('@components', () => ({ Box: (props) =>
, })); -const mockOnlineVotingPower = { +const mockOnlineVotingPower = jest.fn().mockResolvedValue({ data: { - block: [ - { - height: 1143207, - preCommitsAggregate: { - aggregate: { - sum: { - votingPower: 257518, - }, - }, + activeTotal: { + aggregate: { + count: 109, + }, + }, + validatorVotingPowerAggregate: { + aggregate: { + sum: { + votingPower: 76341043, }, }, - ], - }, -}; - -const mockTotalVotingPower = { - data: { + }, stakingPool: [ { - bonded: 254578529800, + bonded: 76341095840626, }, ], - }, -}; - -const mockStakingParams = jest.fn().mockResolvedValue({ - data: { stakingParams: [ { - bondDenom: 'utoken', + params: { + bond_denom: 'udsm', + max_entries: 7, + max_validators: 125, + unbonding_time: 1209600000000000, + historical_entries: 10000, + }, }, ], }, @@ -69,22 +59,10 @@ const mockStakingParams = jest.fn().mockResolvedValue({ describe('screen: Home/OnlineVotingPower', () => { it('matches snapshot', async () => { const mockClient = createMockClient(); - const mockSubscription = createMockSubscription(); - const mockSubscription2 = createMockSubscription(); - - mockClient.setRequestHandler( - StakingParamsDocument, - mockStakingParams, - ); - - mockClient.setRequestHandler( - OnlineVotingPowerListenerDocument, - () => mockSubscription, - ); mockClient.setRequestHandler( - TotalVotingPowerListenerDocument, - () => mockSubscription2, + OnlineVotingPowerDocument, + mockOnlineVotingPower, ); let component; @@ -104,12 +82,6 @@ describe('screen: Home/OnlineVotingPower', () => { let tree = component.toJSON(); expect(tree).toMatchSnapshot(); - renderer.act(() => { - mockSubscription.next(mockOnlineVotingPower); - mockSubscription2.next(mockTotalVotingPower); - }); - await wait(); - tree = component.toJSON(); expect(tree).toMatchSnapshot(); }); diff --git a/src/screens/home/components/online_voting_power/index.tsx b/src/screens/home/components/online_voting_power/index.tsx index c95fd5a87f..e1f5d956e1 100644 --- a/src/screens/home/components/online_voting_power/index.tsx +++ b/src/screens/home/components/online_voting_power/index.tsx @@ -1,11 +1,9 @@ import React from 'react'; import classnames from 'classnames'; -import Link from 'next/link'; import numeral from 'numeral'; import { Typography } from '@material-ui/core'; import useTranslation from 'next-translate/useTranslation'; import { Box } from '@components'; -import { BLOCK_DETAILS } from '@utils/go_to_page'; import { useStyles } from './styles'; import { useOnlineVotingPower } from './hooks'; @@ -44,13 +42,11 @@ const OnlineVotingPower: React.FC<{
- {t('block')} + {t('validators')} + + + {numeral(state.activeValidators).format('0,0')} - - - {numeral(state.height).format('0,0')} - -
From 7675ddf1f2640741f74ec4f102e5289370746260 Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Sun, 6 Mar 2022 18:02:36 +0800 Subject: [PATCH 22/54] 763/fix proposal details lag (#770) --- CHANGELOG.md | 1 + next-env.d.ts | 1 - public/locales/en/proposals.json | 3 +- src/graphql/proposal_details.graphql | 40 ++-- src/graphql/types.tsx | 207 ++++++++++++++---- .../__snapshots__/index.test.tsx.snap | 82 ++----- .../deposits/components/desktop/index.tsx | 5 + .../deposits/components/desktop/utils.ts | 9 +- .../deposits/components/mobile/index.tsx | 13 ++ .../components/deposits/hooks.ts | 51 +++++ .../components/deposits/index.tsx | 22 +- .../components/deposits/types.ts | 12 +- .../__snapshots__/index.test.tsx.snap | 33 ++- .../components/overview/index.test.tsx | 29 ++- .../components/overview/index.tsx | 84 +++---- .../components/overview/styles.ts | 2 +- .../components/votes/hooks.ts | 112 ++++++++++ .../components/votes/index.tsx | 103 +++------ .../components/votes/types.ts | 19 +- .../components/votes/utils.ts | 32 +++ .../components/votes_graph/hooks.tsx | 73 ++++++ .../components/votes_graph/index.tsx | 57 +++-- .../components/votes_graph/styles.tsx | 7 +- .../components/votes_graph/types.ts | 10 + .../components/votes_graph/utils.ts | 79 ++++--- src/screens/proposal_details/hooks.tsx | 189 ++-------------- src/screens/proposal_details/index.test.tsx | 90 +------- src/screens/proposal_details/index.tsx | 36 +-- src/screens/proposal_details/types.ts | 42 +--- 29 files changed, 768 insertions(+), 675 deletions(-) create mode 100644 src/screens/proposal_details/components/deposits/hooks.ts create mode 100644 src/screens/proposal_details/components/votes/hooks.ts create mode 100644 src/screens/proposal_details/components/votes_graph/hooks.tsx create mode 100644 src/screens/proposal_details/components/votes_graph/types.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index a97fb514aa..ea800e39b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Changes - Changed online voting power to be a query instead of a subscription ([\#638](https://github.com/forbole/big-dipper-2.0-cosmos/issues/638)) +- Optimised rendering of Proposal Details page ([\#763](https://github.com/forbole/big-dipper-2.0-cosmos/issues/763)) ## Bug fixes - Fixed Apr error if bonded tokens is 0 ([\#758](https://github.com/forbole/big-dipper-2.0-cosmos/issues/758)) diff --git a/next-env.d.ts b/next-env.d.ts index 9bc3dd46b9..4f11a03dc6 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,5 +1,4 @@ /// -/// /// // NOTE: This file should not be edited diff --git a/public/locales/en/proposals.json b/public/locales/en/proposals.json index 28cc4b9c25..7acc080619 100644 --- a/public/locales/en/proposals.json +++ b/public/locales/en/proposals.json @@ -43,5 +43,6 @@ "height": "Height", "info": "Info", "didNotVote": "Did not vote", - "notVoted": "Not Voted" + "notVoted": "Not Voted", + "votedTotalCaption": "Voted / Total ({{totalVotedPercent}})" } diff --git a/src/graphql/proposal_details.graphql b/src/graphql/proposal_details.graphql index 7cc4771fd7..8bc4fe7171 100644 --- a/src/graphql/proposal_details.graphql +++ b/src/graphql/proposal_details.graphql @@ -1,5 +1,6 @@ query ProposalDetails($proposalId: Int) { proposal(where: {id: {_eq: $proposalId}}) { + proposer: proposer_address title description status @@ -9,34 +10,37 @@ query ProposalDetails($proposalId: Int) { depositEndTime: deposit_end_time votingStartTime: voting_start_time votingEndTime: voting_end_time - proposalDeposits: proposal_deposits { - amount - depositorAddress: depositor_address - } - } - proposalVote: proposal_vote(where: {proposal_id: {_eq: $proposalId}}) { - option - voterAddress: voter_address } - proposalTallyResult: proposal_tally_result(where: {proposal_id: {_eq: $proposalId}}) { +} + +query ProposalDetailsTally($proposalId: Int) { + proposalTallyResult: proposal_tally_result(where: {proposal_id: {_eq: $proposalId}}) { yes no noWithVeto: no_with_veto abstain } - govParams: gov_params { - tallyParams: tally_params - } - stakingParams: staking_params(limit: 1) { - params - } stakingPool: proposal_staking_pool_snapshot(where: {proposal_id: {_eq: $proposalId}}) { bondedTokens: bonded_tokens } +} + +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}}) { - validatorAddress: validator_address - status - votingPower: voting_power validator { validatorInfo: validator_info { selfDelegateAddress: self_delegate_address diff --git a/src/graphql/types.tsx b/src/graphql/types.tsx index e7c09b6c59..2037ffe94e 100644 --- a/src/graphql/types.tsx +++ b/src/graphql/types.tsx @@ -19830,33 +19830,49 @@ export type ProposalDetailsQueryVariables = Exact<{ export type ProposalDetailsQuery = { proposal: Array<( { __typename?: 'proposal' } & Pick - & { proposalId: Proposal['id'], submitTime: Proposal['submit_time'], depositEndTime: Proposal['deposit_end_time'], votingStartTime: Proposal['voting_start_time'], votingEndTime: Proposal['voting_end_time'] } - & { proposalDeposits: Array<( - { __typename?: 'proposal_deposit' } - & Pick - & { depositorAddress: Proposal_Deposit['depositor_address'] } - )> } - )>, proposalVote: Array<( - { __typename?: 'proposal_vote' } - & Pick - & { voterAddress: Proposal_Vote['voter_address'] } - )>, proposalTallyResult: Array<( + & { proposer: Proposal['proposer_address'], proposalId: Proposal['id'], submitTime: Proposal['submit_time'], depositEndTime: Proposal['deposit_end_time'], votingStartTime: Proposal['voting_start_time'], votingEndTime: Proposal['voting_end_time'] } + )> }; + +export type ProposalDetailsTallyQueryVariables = Exact<{ + proposalId?: Maybe; +}>; + + +export type ProposalDetailsTallyQuery = { proposalTallyResult: Array<( { __typename?: 'proposal_tally_result' } & Pick & { noWithVeto: Proposal_Tally_Result['no_with_veto'] } - )>, govParams: Array<( - { __typename?: 'gov_params' } - & { tallyParams: Gov_Params['tally_params'] } - )>, stakingParams: Array<( - { __typename?: 'staking_params' } - & Pick )>, stakingPool: Array<( { __typename?: 'proposal_staking_pool_snapshot' } & { bondedTokens: Proposal_Staking_Pool_Snapshot['bonded_tokens'] } + )> }; + +export type ProposalDetailsDepositsQueryVariables = Exact<{ + proposalId?: Maybe; +}>; + + +export type ProposalDetailsDepositsQuery = { proposalDeposit: Array<( + { __typename?: 'proposal_deposit' } + & Pick + & { depositorAddress: Proposal_Deposit['depositor_address'] } + & { block?: Maybe<( + { __typename?: 'block' } + & Pick + )> } + )> }; + +export type ProposalDetailsVotesQueryVariables = Exact<{ + proposalId?: Maybe; +}>; + + +export type ProposalDetailsVotesQuery = { proposalVote: Array<( + { __typename?: 'proposal_vote' } + & Pick + & { voterAddress: Proposal_Vote['voter_address'] } )>, validatorStatuses: Array<( { __typename?: 'proposal_validator_status_snapshot' } - & Pick - & { validatorAddress: Proposal_Validator_Status_Snapshot['validator_address'], votingPower: Proposal_Validator_Status_Snapshot['voting_power'] } & { validator: ( { __typename?: 'validator' } & { validatorInfo?: Maybe<( @@ -21001,6 +21017,7 @@ export type ParamsQueryResult = Apollo.QueryResult) { + 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}} ) { @@ -21027,23 +21068,95 @@ export const ProposalDetailsDocument = gql` noWithVeto: no_with_veto abstain } - govParams: gov_params { - tallyParams: tally_params - } - stakingParams: staking_params(limit: 1) { - params - } stakingPool: proposal_staking_pool_snapshot( where: {proposal_id: {_eq: $proposalId}} ) { bondedTokens: bonded_tokens } +} + `; + +/** + * __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}} ) { - validatorAddress: validator_address - status - votingPower: voting_power validator { validatorInfo: validator_info { selfDelegateAddress: self_delegate_address @@ -21054,32 +21167,32 @@ export const ProposalDetailsDocument = gql` `; /** - * __useProposalDetailsQuery__ + * __useProposalDetailsVotesQuery__ * - * 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 + * 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 } = useProposalDetailsQuery({ + * const { data, loading, error } = useProposalDetailsVotesQuery({ * variables: { * proposalId: // value for 'proposalId' * }, * }); */ -export function useProposalDetailsQuery(baseOptions?: Apollo.QueryHookOptions) { +export function useProposalDetailsVotesQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ProposalDetailsDocument, options); + return Apollo.useQuery(ProposalDetailsVotesDocument, options); } -export function useProposalDetailsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { +export function useProposalDetailsVotesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ProposalDetailsDocument, options); + return Apollo.useLazyQuery(ProposalDetailsVotesDocument, options); } -export type ProposalDetailsQueryHookResult = ReturnType; -export type ProposalDetailsLazyQueryHookResult = ReturnType; -export type ProposalDetailsQueryResult = Apollo.QueryResult; +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}) { diff --git a/src/screens/proposal_details/__snapshots__/index.test.tsx.snap b/src/screens/proposal_details/__snapshots__/index.test.tsx.snap index 1e031da64c..dbbb7548d5 100644 --- a/src/screens/proposal_details/__snapshots__/index.test.tsx.snap +++ b/src/screens/proposal_details/__snapshots__/index.test.tsx.snap @@ -15,88 +15,36 @@ exports[`screen: ProposalDetails matches snapshot 1`] = ` >
diff --git a/src/screens/proposal_details/components/deposits/components/desktop/index.tsx b/src/screens/proposal_details/components/deposits/components/desktop/index.tsx index 61ad66d9a2..a49d67a258 100644 --- a/src/screens/proposal_details/components/deposits/components/desktop/index.tsx +++ b/src/screens/proposal_details/components/deposits/components/desktop/index.tsx @@ -10,6 +10,9 @@ import { } from '@material-ui/core'; import { AvatarName } from '@components'; import { formatNumber } from '@utils/format_token'; +import { useRecoilValue } from 'recoil'; +import { readDate } from '@recoil/settings'; +import dayjs, { formatDayJs } from '@utils/dayjs'; import { columns } from './utils'; import { ItemType } from '../../types'; @@ -20,6 +23,7 @@ const Desktop: React.FC<{ className, items, }) => { const { t } = useTranslation('proposals'); + const dateFormat = useRecoilValue(readDate); const formattedItems = items.map((x) => { return ({ @@ -37,6 +41,7 @@ const Desktop: React.FC<{ ), amount: `${formatNumber(x.amount.value, x.amount.exponent)} ${x.amount.displayDenom.toUpperCase()}`, + time: formatDayJs(dayjs.utc(x.timestamp), dateFormat), }); }); diff --git a/src/screens/proposal_details/components/deposits/components/desktop/utils.ts b/src/screens/proposal_details/components/deposits/components/desktop/utils.ts index cc55a723b4..8ad6976ea5 100644 --- a/src/screens/proposal_details/components/deposits/components/desktop/utils.ts +++ b/src/screens/proposal_details/components/deposits/components/desktop/utils.ts @@ -5,11 +5,16 @@ export const columns:{ }[] = [ { key: 'depositor', - width: 50, + width: 40, }, { key: 'amount', - width: 50, + width: 30, + align: 'right', + }, + { + key: 'time', + width: 30, align: 'right', }, ]; diff --git a/src/screens/proposal_details/components/deposits/components/mobile/index.tsx b/src/screens/proposal_details/components/deposits/components/mobile/index.tsx index 13cd8bd677..5908d5033d 100644 --- a/src/screens/proposal_details/components/deposits/components/mobile/index.tsx +++ b/src/screens/proposal_details/components/deposits/components/mobile/index.tsx @@ -5,7 +5,10 @@ import { Divider, Typography, } from '@material-ui/core'; import { formatNumber } from '@utils/format_token'; +import dayjs, { formatDayJs } from '@utils/dayjs'; import { AvatarName } from '@components'; +import { useRecoilValue } from 'recoil'; +import { readDate } from '@recoil/settings'; import { useStyles } from './styles'; import { ItemType } from '../../types'; @@ -17,6 +20,7 @@ const Mobile: React.FC<{ }) => { const { t } = useTranslation('proposals'); const classes = useStyles(); + const dateFormat = useRecoilValue(readDate); const formattedItems = items.map((x) => { return ({ @@ -34,6 +38,7 @@ const Mobile: React.FC<{ ), amount: `${formatNumber(x.amount.value, x.amount.exponent)} ${x.amount.displayDenom.toUpperCase()}`, + time: formatDayJs(dayjs.utc(x.timestamp), dateFormat), }); }); @@ -57,6 +62,14 @@ const Mobile: React.FC<{ {x.amount}
+
+ + {t('time')} + + + {x.time} + +
{i !== items.length - 1 && } diff --git a/src/screens/proposal_details/components/deposits/hooks.ts b/src/screens/proposal_details/components/deposits/hooks.ts new file mode 100644 index 0000000000..25f82f4ead --- /dev/null +++ b/src/screens/proposal_details/components/deposits/hooks.ts @@ -0,0 +1,51 @@ +import { useState } from 'react'; +import * as R from 'ramda'; +import { useRouter } from 'next/router'; +import { + useProposalDetailsDepositsQuery, + ProposalDetailsDepositsQuery, +} from '@graphql/types'; +import { chainConfig } from '@configs'; +import { formatToken } from '@utils/format_token'; +import { DepositState } from './types'; + +export const useDeposits = () => { + const router = useRouter(); + const [state, setState] = useState({ + data: [], + }); + + const handleSetState = (stateChange: any) => { + setState((prevState) => R.mergeDeepLeft(stateChange, prevState)); + }; + + useProposalDetailsDepositsQuery({ + variables: { + proposalId: R.pathOr('', ['query', 'id'], router), + }, + onCompleted: (data) => { + handleSetState(foramtProposalDeposits(data)); + }, + }); + + const foramtProposalDeposits = (data: ProposalDetailsDepositsQuery) => { + const format = data.proposalDeposit.map((x) => { + return ({ + amount: formatToken( + R.pathOr('0', ['amount', 0, 'amount'], x), + R.pathOr(chainConfig.primaryTokenUnit, ['amount', 0, 'denom'], x), + ), + user: R.pathOr('', ['depositorAddress'], x), + timestamp: R.pathOr('', ['block', 'timestamp'], x), + }); + }); + + return { + data: format, + }; + }; + + return { + state, + }; +}; diff --git a/src/screens/proposal_details/components/deposits/index.tsx b/src/screens/proposal_details/components/deposits/index.tsx index 0fdd300811..8ed0a2e6a5 100644 --- a/src/screens/proposal_details/components/deposits/index.tsx +++ b/src/screens/proposal_details/components/deposits/index.tsx @@ -12,17 +12,12 @@ import { } from '@recoil/profiles'; import { useStyles } from './styles'; import { Paginate } from './components'; -import { DepositType } from '../../types'; +import { useDeposits } from './hooks'; const Desktop = dynamic(() => import('./components/desktop')); const Mobile = dynamic(() => import('./components/mobile')); -const Deposits: React.FC<{ - className?: string; - data: DepositType[]; -}> = ({ - className, data, -}) => { +const Deposits: React.FC = (props) => { const { isDesktop } = useScreenSize(); const { t } = useTranslation('proposals'); const { @@ -32,21 +27,22 @@ const Deposits: React.FC<{ handleChangeRowsPerPage, sliceItems, } = usePagination({}); + const { state } = useDeposits(); const classes = useStyles(); - const dataProfiles = useProfilesRecoil(data.map((x) => x.user)); - const mergedDataWithProfiles = data.map((x, i) => { + let items = sliceItems(state.data); + + const dataProfiles = useProfilesRecoil(items.map((x) => x.user)); + items = items.map((x, i) => { return ({ ...x, user: dataProfiles[i], }); }); - const items = sliceItems(mergedDataWithProfiles); - return ( - + {t('deposits')}
{isDesktop ? ( @@ -62,7 +58,7 @@ const Deposits: React.FC<{ )}
+export type DepositState = { + data: DepositType[]; +} + +export type ItemType = Override; diff --git a/src/screens/proposal_details/components/overview/__snapshots__/index.test.tsx.snap b/src/screens/proposal_details/components/overview/__snapshots__/index.test.tsx.snap index d25d443a5a..67072dd48f 100644 --- a/src/screens/proposal_details/components/overview/__snapshots__/index.test.tsx.snap +++ b/src/screens/proposal_details/components/overview/__snapshots__/index.test.tsx.snap @@ -26,6 +26,36 @@ exports[`screen: BlockDetails/Overview matches snapshot 1`] = ` > proposals:

+

+ proposals:proposer +

+
+

+ proposals:submitTime +

+

+ 2020-08-10 12:00:00 +

+

+ proposals:depositEndTime +

+

+ 2020-08-10 12:00:00 +

@@ -36,8 +66,5 @@ exports[`screen: BlockDetails/Overview matches snapshot 1`] = ` markdown="description" />

-
`; diff --git a/src/screens/proposal_details/components/overview/index.test.tsx b/src/screens/proposal_details/components/overview/index.test.tsx index fcddacbf62..d333d611b1 100644 --- a/src/screens/proposal_details/components/overview/index.test.tsx +++ b/src/screens/proposal_details/components/overview/index.test.tsx @@ -9,12 +9,16 @@ import Overview from '.'; // ================================== jest.mock('@components', () => ({ SingleProposal: (props) =>
, - AvatarName: (props) =>
, + Name: (props) =>
, Box: (props) =>
, - Tag: (props) =>
, Markdown: (props) =>
, })); +jest.mock('./components', () => ({ + ParamsChange: (props) =>
, + SoftwareUpgrade: (props) =>
, +})); + // ================================== // unit tests // ================================== @@ -24,15 +28,18 @@ describe('screen: BlockDetails/Overview', () => { , diff --git a/src/screens/proposal_details/components/overview/index.tsx b/src/screens/proposal_details/components/overview/index.tsx index b6244f73c1..66235b4fd7 100644 --- a/src/screens/proposal_details/components/overview/index.tsx +++ b/src/screens/proposal_details/components/overview/index.tsx @@ -14,33 +14,28 @@ import { SingleProposal, Box, Markdown, + Name, } from '@components'; +import { useProfileRecoil } from '@recoil/profiles'; import { ParamsChange, SoftwareUpgrade, } from './components'; import { useStyles } from './styles'; import { getProposalType } from '../../utils'; +import { OverviewType } from '../../types'; -const Overview: React.FC<{ - className?: string; - title: string; - id: number; - description: string; - status: string; - submitTime: string; - depositEndTime: string; - votingStartTime: string | null; - votingEndTime: string | null; - content: string; -}> = ({ - className, ...props +const Overview: React.FC<{ overview: OverviewType } & ComponentDefault> = ({ + className, overview, }) => { const dateFormat = useRecoilValue(readDate); const classes = useStyles(); const { t } = useTranslation('proposals'); - const type = getProposalType(R.pathOr('', ['@type'], props.content)); + const type = getProposalType(R.pathOr('', ['@type'], overview.content)); + + const proposer = useProfileRecoil(overview.proposer); + const proposerMoniker = proposer ? proposer?.name : overview.proposer; const getExtraDetails = () => { let extraDetails = null; @@ -51,7 +46,7 @@ const Overview: React.FC<{ {t('changes')} ); @@ -62,9 +57,9 @@ const Overview: React.FC<{ {t('plan')} ); @@ -78,9 +73,9 @@ const Overview: React.FC<{ return (
@@ -91,60 +86,65 @@ const Overview: React.FC<{ {t(type)} - {t('description')} + {t('proposer')} - - {extra} -
-
+ { - !!props.submitTime && ( -
+ !!overview.submitTime && ( + <> {t('submitTime')} - {formatDayJs(dayjs.utc(props.submitTime), dateFormat)} + {formatDayJs(dayjs.utc(overview.submitTime), dateFormat)} -
+ ) } { - !!props.depositEndTime && ( -
+ !!overview.depositEndTime && ( + <> {t('depositEndTime')} - {formatDayJs(dayjs.utc(props.depositEndTime), dateFormat)} + {formatDayJs(dayjs.utc(overview.depositEndTime), dateFormat)} -
+ ) } { - !!props.votingStartTime && ( -
+ !!overview.votingStartTime && ( + <> {t('votingStartTime')} - {formatDayJs(dayjs.utc(props.votingStartTime), dateFormat)} + {formatDayJs(dayjs.utc(overview.votingStartTime), dateFormat)} -
+ ) } { - !!props.votingEndTime && ( -
+ !!overview.votingEndTime && ( + <> {t('votingEndTime')} - {formatDayJs(dayjs.utc(props.votingEndTime), dateFormat)} + {formatDayJs(dayjs.utc(overview.votingEndTime), dateFormat)} -
+ ) } + + {t('description')} + + + {extra}
); diff --git a/src/screens/proposal_details/components/overview/styles.ts b/src/screens/proposal_details/components/overview/styles.ts index 9f0de94249..4f808451d6 100644 --- a/src/screens/proposal_details/components/overview/styles.ts +++ b/src/screens/proposal_details/components/overview/styles.ts @@ -19,7 +19,7 @@ export const useStyles = () => { }, }, [theme.breakpoints.up('lg')]: { - gridTemplateColumns: '150px auto', + gridTemplateColumns: '200px auto', }, }, time: { diff --git a/src/screens/proposal_details/components/votes/hooks.ts b/src/screens/proposal_details/components/votes/hooks.ts new file mode 100644 index 0000000000..ea6c584a08 --- /dev/null +++ b/src/screens/proposal_details/components/votes/hooks.ts @@ -0,0 +1,112 @@ +import { useState } from 'react'; +import { useRouter } from 'next/router'; +import * as R from 'ramda'; +import { + useProposalDetailsVotesQuery, ProposalDetailsVotesQuery, +} from '@graphql/types'; +import { toValidatorAddress } from '@utils/prefix_convert'; +import { VoteState } from './types'; + +export const useVotes = (resetPagination:any) => { + const router = useRouter(); + const [state, setState] = useState({ + data: [], + validatorsNotVoted: [], + voteCount: { + yes: 0, + no: 0, + abstain: 0, + veto: 0, + didNotVote: 0, + }, + tab: 0, + }); + + const handleSetState = (stateChange: any) => { + setState((prevState) => R.mergeDeepLeft(stateChange, prevState)); + }; + + const handleTabChange = (_event: any, newValue: number) => { + if (resetPagination) { + resetPagination(); + } + handleSetState({ + tab: newValue, + }); + }; + + useProposalDetailsVotesQuery({ + variables: { + proposalId: R.pathOr('', ['query', 'id'], router), + }, + onCompleted: (data) => { + handleSetState(formatVotes(data)); + }, + }); + + const formatVotes = (data: ProposalDetailsVotesQuery) => { + const validatorDict = {}; + const validators = data.validatorStatuses.map((x) => { + const selfDelegateAddress = R.pathOr('', ['validator', 'validatorInfo', 'selfDelegateAddress'], x); + validatorDict[selfDelegateAddress] = false; + return selfDelegateAddress; + }); + + let yes = 0; + let no = 0; + let abstain = 0; + let veto = 0; + + const votes = data.proposalVote.map((x) => { + if (x.option === 'VOTE_OPTION_YES') { + yes += 1; + } + if (x.option === 'VOTE_OPTION_ABSTAIN') { + abstain += 1; + } + if (x.option === 'VOTE_OPTION_NO') { + no += 1; + } + if (x.option === 'VOTE_OPTION_NO_WITH_VETO') { + veto += 1; + } + if (validatorDict[x.voterAddress] === false) { + validatorDict[x.voterAddress] = true; + } + + return ({ + user: x.voterAddress, + vote: x.option, + }); + }); + + // ===================================== + // Get data for active validators that did not vote + // ===================================== + const validatorsNotVoted = validators.filter((x) => { + return validatorDict[x] === false; + }).map((address) => { + return ({ + user: toValidatorAddress(address), + vote: 'NOT_VOTED', + }); + }); + + return ({ + data: votes, + validatorsNotVoted, + voteCount: { + yes, + no, + veto, + abstain, + didNotVote: validatorsNotVoted.length, + }, + }); + }; + + return { + state, + handleTabChange, + }; +}; diff --git a/src/screens/proposal_details/components/votes/index.tsx b/src/screens/proposal_details/components/votes/index.tsx index b85637921f..0a2b171238 100644 --- a/src/screens/proposal_details/components/votes/index.tsx +++ b/src/screens/proposal_details/components/votes/index.tsx @@ -16,27 +16,13 @@ import { Tabs, Paginate, } from './components'; -import { VoteType } from '../../types'; -import { ItemType } from './types'; +import { filterDataByTab } from './utils'; +import { useVotes } from './hooks'; const Desktop = dynamic(() => import('./components/desktop')); const Mobile = dynamic(() => import('./components/mobile')); -const Votes: React.FC<{ - className?: string; - data: VoteType[]; - notVotedData: VoteType[]; - tab: number; - yes: number; - no: number; - abstain: number; - veto: number; - total: number; - notVoted: number; - handleTabChange: (e, val) => void; -}> = ({ - className, ...props -}) => { +const Votes: React.FC = (props) => { const { isDesktop } = useScreenSize(); const { page, @@ -45,74 +31,39 @@ const Votes: React.FC<{ handleChangeRowsPerPage, sliceItems, resetPagination, - } = usePagination({ - }); - + } = usePagination({}); const classes = useStyles(); - const formatItems = (mergedData: ItemType[]) => { - if (props.tab === 5) { - return mergedNotVotedWithProfiles; - } - return mergedData.filter((x) => { - if (props.tab === 1) { - return x.vote === 'VOTE_OPTION_YES'; - } - - if (props.tab === 2) { - return x.vote === 'VOTE_OPTION_NO'; - } - - if (props.tab === 3) { - return x.vote === 'VOTE_OPTION_NO_WITH_VETO'; - } - - if (props.tab === 4) { - return x.vote === 'VOTE_OPTION_ABSTAIN'; - } - - return true; - }); - }; + const { + state, handleTabChange, + } = useVotes(resetPagination); + const filteredItems = filterDataByTab({ + tab: state.tab, + data: state.data, + notVoted: state.validatorsNotVoted, + }); - // not voted validators - const notVoteProfiles = useProfilesRecoil(props.notVotedData.map((x) => x.user)); - const mergedNotVotedWithProfiles = props.notVotedData.map((x, i) => { - return ({ - ...x, - user: notVoteProfiles[i], - }); - }).sort((a, b) => ( - (a.user.name.toLowerCase() > b.user.name.toLowerCase()) ? 1 : -1)); + const slicedItems = sliceItems(filteredItems); - // voted - const userProfiles = useProfilesRecoil(props.data.map((x) => x.user)); - const mergedDataWithProfiles = props.data.map((x, i) => { + const userProfiles = useProfilesRecoil(slicedItems.map((x) => x.user)); + const items = slicedItems.map((x, i) => { return ({ ...x, user: userProfiles[i], }); - }).sort((a, b) => ( - (a.user.name.toLowerCase() > b.user.name.toLowerCase()) ? 1 : -1)); - const items = formatItems(mergedDataWithProfiles); - const itemsPaginated = sliceItems(items); - - const tabChangeParentHelper = (_event: any, newValue: number) => { - resetPagination(); - props.handleTabChange(_event, newValue); - }; + }); return ( - +
{items.length ? ( @@ -120,12 +71,12 @@ const Votes: React.FC<{ {isDesktop ? ( ) : ( )} @@ -134,7 +85,7 @@ const Votes: React.FC<{ )}
diff --git a/src/screens/proposal_details/components/votes/utils.ts b/src/screens/proposal_details/components/votes/utils.ts index eb1c308b02..42e8aad259 100644 --- a/src/screens/proposal_details/components/votes/utils.ts +++ b/src/screens/proposal_details/components/votes/utils.ts @@ -1,3 +1,5 @@ +import { VoteType } from './types'; + export const getVoteKey = (vote: string) => { const votes = { VOTE_OPTION_YES: 'yes', @@ -9,3 +11,33 @@ export const getVoteKey = (vote: string) => { return votes[vote] || vote; }; + +export const filterDataByTab = (props: { + data: VoteType[]; + notVoted: VoteType[]; + tab: number; +}) => { + if (props.tab === 5) { + return props.notVoted; + } + + return props.data.filter((x) => { + if (props.tab === 1) { + return x.vote === 'VOTE_OPTION_YES'; + } + + if (props.tab === 2) { + return x.vote === 'VOTE_OPTION_NO'; + } + + if (props.tab === 3) { + return x.vote === 'VOTE_OPTION_NO_WITH_VETO'; + } + + if (props.tab === 4) { + return x.vote === 'VOTE_OPTION_ABSTAIN'; + } + + return true; + }); +}; diff --git a/src/screens/proposal_details/components/votes_graph/hooks.tsx b/src/screens/proposal_details/components/votes_graph/hooks.tsx new file mode 100644 index 0000000000..470c041699 --- /dev/null +++ b/src/screens/proposal_details/components/votes_graph/hooks.tsx @@ -0,0 +1,73 @@ +import { useState } from 'react'; +import * as R from 'ramda'; +import { useRouter } from 'next/router'; +import { + useProposalDetailsTallyQuery, ProposalDetailsTallyQuery, +} from '@graphql/types'; +import { formatToken } from '@utils/format_token'; +import { chainConfig } from '@configs'; +import { VotesGraphState } from './types'; + +const defaultTokenUnit: TokenUnit = { + value: '0', + baseDenom: '', + displayDenom: '', + exponent: 0, +}; + +export const useVotesGraph = () => { + const router = useRouter(); + const [state, setState] = useState({ + votes: { + yes: defaultTokenUnit, + no: defaultTokenUnit, + abstain: defaultTokenUnit, + veto: defaultTokenUnit, + }, + bonded: defaultTokenUnit, + }); + + const handleSetState = (stateChange: any) => { + setState((prevState) => R.mergeDeepLeft(stateChange, prevState)); + }; + + useProposalDetailsTallyQuery({ + variables: { + proposalId: R.pathOr('', ['query', 'id'], router), + }, + onCompleted: (data) => { + handleSetState(foramtProposalTally(data)); + }, + }); + + const foramtProposalTally = (data: ProposalDetailsTallyQuery) => { + return ({ + votes: { + yes: formatToken( + R.pathOr('0', ['proposalTallyResult', 0, 'yes'], data), + chainConfig.votingPowerTokenUnit, + ), + no: formatToken( + R.pathOr('0', ['proposalTallyResult', 0, 'no'], data), + chainConfig.votingPowerTokenUnit, + ), + veto: formatToken( + R.pathOr('0', ['proposalTallyResult', 0, 'noWithVeto'], data), + chainConfig.votingPowerTokenUnit, + ), + abstain: formatToken( + R.pathOr('0', ['proposalTallyResult', 0, 'abstain'], data), + chainConfig.votingPowerTokenUnit, + ), + }, + bonded: formatToken( + R.pathOr('0', ['stakingPool', 0, 'bondedTokens'], data), + chainConfig.votingPowerTokenUnit, + ), + }); + }; + + return { + state, + }; +}; diff --git a/src/screens/proposal_details/components/votes_graph/index.tsx b/src/screens/proposal_details/components/votes_graph/index.tsx index 09e76112ca..5dc344e20c 100644 --- a/src/screens/proposal_details/components/votes_graph/index.tsx +++ b/src/screens/proposal_details/components/votes_graph/index.tsx @@ -1,6 +1,7 @@ import React from 'react'; import classnames from 'classnames'; import numeral from 'numeral'; +import Big from 'big.js'; import { Box } from '@components'; import useTranslation from 'next-translate/useTranslation'; import { Typography } from '@material-ui/core'; @@ -9,40 +10,35 @@ import { Pie, Cell, } from 'recharts'; -import { replaceNaN } from '@utils/replace_nan'; import { useStyles } from './styles'; import { formatGraphData } from './utils'; -import { TallyType } from '../../types'; +import { useVotesGraph } from './hooks'; -const VotesGraph: React.FC<{ - className?: string; - data: TallyType; -}> = ({ - className, data, -}) => { +const VotesGraph: React.FC = (props) => { const { classes, theme, } = useStyles(); const { t } = useTranslation('proposals'); - let formattedData = formatGraphData(data, theme); + const { state } = useVotesGraph(); + const { votes } = state; - const empty = { - name: 'empty', - value: 2400, - color: theme.palette.custom.charts.zero, - percentage: '0%', - display: '', - }; - const notEmpty = formattedData.some((x) => x.value > 0); - formattedData = notEmpty ? formattedData : [...formattedData, empty]; + const total = Big(votes.yes.value) + .plus(votes.no.value) + .plus(votes.veto.value) + .plus(votes.abstain.value); - const quorumPercent = `${numeral(data.quorum * 100).value()}%`; // correct - const votePercent = replaceNaN(`${numeral((data.total / data.bondedTokens) * 100).format('0.[00]')}%`); - const voteAmount = numeral(data.total).format('0,0.[00]'); - const quorumAmount = numeral((data.bondedTokens * (data.quorum * 100)) / 100).format('0,0.[00]'); + const formattedData = formatGraphData({ + data: votes, theme, total, + }); + const totalVotedFormat = numeral(total.toFixed(2)).format('0,0.[00]'); + const totalBondedFormat = numeral(state.bonded.value).format('0,0.[00]'); + const totalVotedPercent = total.gt(0) + ? `${numeral( + Big(total.toFixed(2)).div(state.bonded.value).times(100).toFixed(2), + ).format('0.[00]')}%` : '0%'; return ( - +
- Voted / Quorum ( - {votePercent} - {' '} - / - {' '} - {quorumPercent} - ) + {t('votedTotalCaption', { + totalVotedPercent, + })} - {voteAmount} + {totalVotedFormat} {' '} / {' '} - {quorumAmount} + {totalBondedFormat}
+ {formattedData.filter((x) => x.name !== 'empty').map((x) => { return (
diff --git a/src/screens/proposal_details/components/votes_graph/styles.tsx b/src/screens/proposal_details/components/votes_graph/styles.tsx index 2c1a745360..a65d62f50d 100644 --- a/src/screens/proposal_details/components/votes_graph/styles.tsx +++ b/src/screens/proposal_details/components/votes_graph/styles.tsx @@ -26,7 +26,6 @@ export const useStyles = () => { gridTemplateColumns: 'repeat(2, 1fr)', }, [theme.breakpoints.up('lg')]: { - gridTemplateColumns: 'repeat(2, 1fr)', flex: 1, marginLeft: theme.spacing(4), }, @@ -52,12 +51,12 @@ export const useStyles = () => { }, '&.yes': { '&::before': { - background: theme.palette.custom.charts.one, + background: theme.palette.custom.charts.four, }, }, '&.no': { '&::before': { - background: theme.palette.custom.charts.two, + background: theme.palette.custom.charts.one, }, }, '&.veto': { @@ -67,7 +66,7 @@ export const useStyles = () => { }, '&.abstain': { '&::before': { - background: theme.palette.custom.charts.four, + background: theme.palette.custom.charts.two, }, }, }, diff --git a/src/screens/proposal_details/components/votes_graph/types.ts b/src/screens/proposal_details/components/votes_graph/types.ts new file mode 100644 index 0000000000..e2346d590f --- /dev/null +++ b/src/screens/proposal_details/components/votes_graph/types.ts @@ -0,0 +1,10 @@ +export type VotesType = { + yes: TokenUnit; + no: TokenUnit; + abstain: TokenUnit; + veto: TokenUnit; +} +export type VotesGraphState = { + votes: VotesType; + bonded: TokenUnit; +} diff --git a/src/screens/proposal_details/components/votes_graph/utils.ts b/src/screens/proposal_details/components/votes_graph/utils.ts index c4771bad93..2abb6ced69 100644 --- a/src/screens/proposal_details/components/votes_graph/utils.ts +++ b/src/screens/proposal_details/components/votes_graph/utils.ts @@ -1,36 +1,49 @@ -import numeral from 'numeral'; +import * as R from 'ramda'; +import Big from 'big.js'; +import { formatNumber } from '@utils/format_token'; import { ThemeOptions } from '@material-ui/core/styles'; -import { TallyType } from '../../types'; +import { VotesType } from './types'; -export const formatGraphData = (data:TallyType, theme:ThemeOptions) => { - return ([ - { - name: 'yes', - value: data.yes, - display: numeral(data.yes).format('0,0.[000000]'), - percentage: `${numeral((data.yes / data.total) * 100).format('0.[00]')}%`, - color: theme.palette.custom.charts.one, - }, - { - name: 'no', - value: data.no, - display: numeral(data.no).format('0,0.[000000]'), - percentage: `${numeral((data.no / data.total) * 100).format('0.[00]')}%`, - color: theme.palette.custom.charts.two, - }, - { - name: 'veto', - value: data.veto, - display: numeral(data.veto).format('0,0.[000000]'), - percentage: `${numeral((data.veto / data.total) * 100).format('0.[00]')}%`, - color: theme.palette.custom.charts.three, - }, - { - name: 'abstain', - value: data.abstain, - display: numeral(data.abstain).format('0,0.[000000]'), - percentage: `${numeral((data.abstain / data.total) * 100).format('0.[00]')}%`, - color: theme.palette.custom.charts.four, - }, - ]); +type FormatGraphType = { + data:VotesType; + theme:ThemeOptions; + total: Big; +} +export const formatGraphData = ({ + data, theme, total, +}: FormatGraphType) => { + const keys = R.keys(data); + const color = { + 0: theme.palette.custom.charts.four, + 1: theme.palette.custom.charts.one, + 2: theme.palette.custom.charts.three, + 3: theme.palette.custom.charts.two, + }; + + const formattedData = keys.map((x, i) => { + const selectedData = data[x] as TokenUnit; + return ({ + name: x, + value: Big(selectedData.value).toNumber(), + display: formatNumber(selectedData.value, selectedData.exponent), + percentage: total.gt(0) ? ( + `${Big(selectedData.value).div(total.toString()).times(100).toPrecision(2)}%` + ) : '0%', + color: color[i], + }); + }); + + const notEmpty = formattedData.some((x) => x.value > 0); + + if (!notEmpty) { + formattedData.push({ + name: 'empty', + value: 2400, + color: theme.palette.custom.charts.zero, + percentage: '0%', + display: '', + }); + } + + return formattedData; }; diff --git a/src/screens/proposal_details/hooks.tsx b/src/screens/proposal_details/hooks.tsx index c83e9c1515..ff1d85a0e5 100644 --- a/src/screens/proposal_details/hooks.tsx +++ b/src/screens/proposal_details/hooks.tsx @@ -2,19 +2,11 @@ import { useState, } from 'react'; import * as R from 'ramda'; -import numeral from 'numeral'; import { useRouter } from 'next/router'; import { useProposalDetailsQuery, ProposalDetailsQuery, } from '@graphql/types'; -import { getDenom } from '@utils/get_denom'; -import { formatToken } from '@utils/format_token'; -import { chainConfig } from '@configs'; -import { - GovParams, - StakingParams, -} from '@models'; import { ProposalState } from './types'; export const useProposalDetails = () => { @@ -22,8 +14,9 @@ export const useProposalDetails = () => { const [state, setState] = useState({ loading: true, exists: true, - content: '', overview: { + proposer: '', + content: '', title: '', id: 0, description: '', @@ -33,28 +26,6 @@ export const useProposalDetails = () => { votingStartTime: '', votingEndTime: '', }, - tally: { - yes: 0, - no: 0, - abstain: 0, - veto: 0, - total: 0, - quorum: 0, - bondedTokens: 0, - denom: chainConfig.primaryTokenUnit, - }, - votes: { - tab: 0, - yes: 0, - no: 0, - abstain: 0, - veto: 0, - total: 0, - notVoted: 0, - data: [], - notVotedData: [], - }, - deposits: [], }); const handleSetState = (stateChange: any) => { @@ -69,11 +40,7 @@ export const useProposalDetails = () => { proposalId: R.pathOr('', ['query', 'id'], router), }, onCompleted: (data) => { - handleSetState({ - votes: formatProposalVotes(data), - tally: formatProposalTally(data), - ...formatProposalQuery(data), - }); + handleSetState(formatProposalQuery(data)); }, }); @@ -91,24 +58,27 @@ export const useProposalDetails = () => { return stateChange; } - // ========================= - // content - // ========================= - stateChange.content = data.proposal[0].content; - // ========================= // overview // ========================= const formatOverview = () => { + const DEFAULT_TIME = '0001-01-01T00:00:00'; + let votingStartTime = R.pathOr(DEFAULT_TIME, ['proposal', 0, 'votingStartTime'], data); + votingStartTime = votingStartTime === DEFAULT_TIME ? null : votingStartTime; + let votingEndTime = R.pathOr(DEFAULT_TIME, ['proposal', 0, 'votingEndTime'], data); + votingEndTime = votingEndTime === DEFAULT_TIME ? null : votingEndTime; + const overview = { - title: data.proposal[0].title, - id: data.proposal[0].proposalId, - description: data.proposal[0].description, - status: data.proposal[0].status, - submitTime: data.proposal[0].submitTime, - depositEndTime: data.proposal[0].depositEndTime, - votingStartTime: data.proposal[0].votingStartTime !== '0001-01-01T00:00:00' ? data.proposal[0].votingStartTime : null, - votingEndTime: data.proposal[0].votingEndTime !== '0001-01-01T00:00:00' ? data.proposal[0].votingEndTime : null, + proposer: R.pathOr('', ['proposal', 0, 'proposer'], data), + content: R.pathOr('', ['proposal', 0, 'content'], data), + title: R.pathOr('', ['proposal', 0, 'title'], data), + id: R.pathOr('', ['proposal', 0, 'proposalId'], data), + description: R.pathOr('', ['proposal', 0, 'description'], data), + status: R.pathOr('', ['proposal', 0, 'status'], data), + submitTime: R.pathOr('', ['proposal', 0, 'submitTime'], data), + depositEndTime: R.pathOr('', ['proposal', 0, 'depositEndTime'], data), + votingStartTime, + votingEndTime, }; return overview; @@ -116,131 +86,10 @@ export const useProposalDetails = () => { stateChange.overview = formatOverview(); - // ========================= - // deposits - // ========================= - const formatDeposits = () => { - const deposits = data.proposal[0].proposalDeposits.map((x) => { - const depositAmount = getDenom(x.amount); - return ({ - user: x.depositorAddress, - amount: formatToken(depositAmount.amount, depositAmount.denom), - }); - }); - return deposits; - }; - stateChange.deposits = formatDeposits(); - return stateChange; }; - const formatProposalVotes = (data: ProposalDetailsQuery) => { - let yes = 0; - let no = 0; - let abstain = 0; - let veto = 0; - - const validators = data.validatorStatuses.map((x) => { - const selfDelegateAddress = R.pathOr('', ['validator', 'validatorInfo', 'selfDelegateAddress'], x); - - return ({ - selfDelegateAddress, - operatorAddress: x.validatorAddress, - }); - }); - - const votedUserDictionary = {}; - const votes = data.proposalVote.map((x) => { - if (x.option === 'VOTE_OPTION_YES') { - yes += 1; - } - if (x.option === 'VOTE_OPTION_ABSTAIN') { - abstain += 1; - } - if (x.option === 'VOTE_OPTION_NO') { - no += 1; - } - if (x.option === 'VOTE_OPTION_NO_WITH_VETO') { - veto += 1; - } - - votedUserDictionary[x.voterAddress] = true; - return ({ - user: x.voterAddress, - vote: x.option, - }); - }); - - // ===================================== - // Get data for active validators that did not vote - // ===================================== - const validatorsNotVoted = validators.filter((x) => ( - !votedUserDictionary[x.selfDelegateAddress] - )).map((y) => { - return ({ - user: y.operatorAddress, - vote: 'NOT_VOTED', - }); - }); - - return { - data: votes, - yes, - no, - abstain, - veto, - total: veto + abstain + no + yes, - notVotedData: validatorsNotVoted, - notVoted: validatorsNotVoted.length, - }; - }; - - const formatProposalTally = (data: ProposalDetailsQuery) => { - if (!data) { - return state.tally; - } - const { denom } = state.tally; - - const yes = numeral(formatToken(R.pathOr(0, ['proposalTallyResult', 0, 'yes'], data), denom).value).value(); - const no = numeral( - formatToken(R.pathOr(0, ['proposalTallyResult', 0, 'no'], data), denom).value, - ).value(); - const veto = numeral( - formatToken(R.pathOr(0, ['proposalTallyResult', 0, 'noWithVeto'], data), denom).value, - ).value(); - const abstain = numeral( - formatToken(R.pathOr(0, ['proposalTallyResult', 0, 'abstain'], data), denom).value, - ).value(); - - const govParams = GovParams.fromJson(R.pathOr({}, ['govParams', 0], data)); - const stakingParams = StakingParams.fromJson(R.pathOr({}, ['stakingParams', 0, 'params'], data)); - const percent = numeral(numeral(govParams.tallyParams.quorum).format('0.[00]')).value(); - - return ({ - yes, - no, - abstain, - veto, - total: yes + no + abstain + veto, - denom: stakingParams.bondDenom, - quorum: percent, - bondedTokens: formatToken( - R.pathOr(0, ['stakingPool', 0, 'bondedTokens'], data), - stakingParams.bondDenom, - ).value, - }); - }; - - const handleTabChange = (_event: any, newValue: number) => { - handleSetState({ - votes: { - tab: newValue, - }, - }); - }; - return { state, - handleTabChange, }; }; diff --git a/src/screens/proposal_details/index.test.tsx b/src/screens/proposal_details/index.test.tsx index 9130f2810a..0ed2acf85a 100644 --- a/src/screens/proposal_details/index.test.tsx +++ b/src/screens/proposal_details/index.test.tsx @@ -39,88 +39,20 @@ const mockProposalDetailsDocument = jest.fn().mockResolvedValue({ data: { proposal: [ { - title: 'Desmos v1.0.4 upgrade', - description: 'This proposal aims at upgrading the chain software to version v1.0.4, alligning _Morpheus Apollo_ to the same Desmos version of our mainnet. This will allow us to test future mainnet on-chain upgrades here before they go live on our official chain. By voting YES to this proposal you will signal that you are ready for the upgrade. If this proposal passes, the upgrade will be scheduled to happen at height 2.121.236 which will be around Friday September 24th 2021 07:00 UTC.', + proposer: 'desmos1e4g9807ephy5t7zzt6vu0kw7tryqh9k39w3gc2', + title: 'Increase minimum commission rate to 5%', + description: 'Set the minimum commission to 5%. This will help ensure network stability. It also ensures that validators earn enough to support secure and stable validation. We must create a healthier network. If this proposal is accepted, it will mean that the blockchain needs to be updated so that the fee of all validators can be changed automatically.', status: 'PROPOSAL_STATUS_PASSED', content: { - plan: { - info: 'https://raw.githubusercontent.com/desmos-labs/morpheus/master/morpheus-apollo-2/upgrades/v1.0.4.json?checksum=sha256:fbfb8eda3337b392cb9b2d712a7b575d6f6d19a3a7aa6f2c84bac4307ecdd880', - name: 'v1.0.4', - time: '0001-01-01T00:00:00Z', - height: '2121236', - upgraded_client_state: null, - }, - '@type': '/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal', - title: 'Desmos v1.0.4 upgrade', - description: 'This proposal aims at upgrading the chain software to version v1.0.4, alligning _Morpheus Apollo_ to the same Desmos version of our mainnet. This will allow us to test future mainnet on-chain upgrades here before they go live on our official chain. By voting YES to this proposal you will signal that you are ready for the upgrade. If this proposal passes, the upgrade will be scheduled to happen at height 2.121.236 which will be around Friday September 24th 2021 07:00 UTC.', - }, - proposalId: 22, - submitTime: '2021-09-21T10:00:30.107709', - depositEndTime: '2021-09-23T10:00:30.107709', - votingStartTime: '2021-09-21T10:01:10.657743', - votingEndTime: '2021-09-23T10:01:10.657743', - proposalDeposits: [ - { - amount: [ - { - denom: 'udaric', - amount: '100000000', - }, - ], - depositorAddress: 'desmos1kmw9et4e99ascgdw0mmkt63mggjuu0xuqjx30w', - }, - ], - }, - ], - proposalVote: [ - { - option: 'VOTE_OPTION_YES', - voterAddress: 'desmos1kmw9et4e99ascgdw0mmkt63mggjuu0xuqjx30w', - }, - ], - proposalTallyResult: [ - { - yes: 18099851525752, - no: 0, - noWithVeto: 0, - abstain: 0, - }, - ], - govParams: [ - { - tallyParams: { - quorum: '0.334000000000000000', - threshold: '0.500000000000000000', - veto_threshold: '0.334000000000000000', - }, - }, - ], - stakingParams: [ - { - params: { - bond_denom: 'udaric', - max_entries: 7, - max_validators: 200, - unbonding_time: 259200000000000, - historical_entries: 10000, - }, - }, - ], - stakingPool: [ - { - bondedTokens: 30959846018678, - }, - ], - validatorStatuses: [ - { - validatorAddress: 'desmosvalcons1c29eyczh5lw4npe0a9n40nm5g299fq8nt5lerw', - status: 3, - votingPower: 598178, - validator: { - validatorInfo: { - selfDelegateAddress: 'desmos1txdthvutrrfzzf9htelcnfz655afu4yh30lhfc', - }, + '@type': '/cosmos.gov.v1beta1.TextProposal', + title: 'Increase minimum commission rate to 5%', + description: 'Set the minimum commission to 5%. This will help ensure network stability. It also ensures that validators earn enough to support secure and stable validation. We must create a healthier network. If this proposal is accepted, it will mean that the blockchain needs to be updated so that the fee of all validators can be changed automatically.', }, + proposalId: 14, + submitTime: '2022-02-19T19:03:14.969688', + depositEndTime: '2022-02-22T19:03:14.969688', + votingStartTime: '2022-02-19T19:03:14.969688', + votingEndTime: '2022-02-26T19:03:14.969688', }, ], }, diff --git a/src/screens/proposal_details/index.tsx b/src/screens/proposal_details/index.tsx index 8797407811..46624b9047 100644 --- a/src/screens/proposal_details/index.tsx +++ b/src/screens/proposal_details/index.tsx @@ -19,14 +19,10 @@ const ProposalDetails = () => { const { t } = useTranslation('proposals'); const classes = useStyles(); const { - state, handleTabChange, + state, } = useProposalDetails(); const { overview, - content, - tally, - votes, - deposits, } = state; return ( @@ -47,40 +43,16 @@ const ProposalDetails = () => { {shouldShowData(overview.status) && ( - + )} {shouldShowData(overview.status) && ( - + )} diff --git a/src/screens/proposal_details/types.ts b/src/screens/proposal_details/types.ts index 2ed996b29e..ed28a47177 100644 --- a/src/screens/proposal_details/types.ts +++ b/src/screens/proposal_details/types.ts @@ -1,56 +1,18 @@ export type OverviewType = { title: string; id: number; + proposer: string; description: string; status: string; submitTime: string; depositEndTime: string; votingStartTime: string | null; votingEndTime: string | null; -} - -export type TallyType = { - yes: number; - no: number; - abstain: number; - veto: number; - total: number; - quorum: number; - bondedTokens: number; - denom: string; -} - -export type VoteType = { - vote: string; - user: string; -} - -export type DepositType = { - amount: TokenUnit; - user: string; -} - -export type ValidatorType = { - selfDelegateAddress: string; - operatorAddress: string; + content: string; } export type ProposalState = { loading: boolean; exists: boolean; - content: string; overview: OverviewType; - tally: TallyType; - votes: { - tab: number; - yes: number; - no: number; - abstain: number; - veto: number; - total: number; - notVoted: number; - data: VoteType[]; - notVotedData: VoteType[]; - }; - deposits: DepositType[]; } From cfdc0deb563e04def3a1accf0f2da8a91b9f69b7 Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Thu, 10 Mar 2022 11:18:15 +0800 Subject: [PATCH 23/54] update: ovp (#780) --- CHANGELOG.md | 1 + .../__snapshots__/index.test.tsx.snap | 16 ++++++++-------- .../online_voting_power/index.test.tsx | 2 +- .../components/online_voting_power/index.tsx | 3 ++- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea800e39b9..c94a609dac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Changes - Changed online voting power to be a query instead of a subscription ([\#638](https://github.com/forbole/big-dipper-2.0-cosmos/issues/638)) - Optimised rendering of Proposal Details page ([\#763](https://github.com/forbole/big-dipper-2.0-cosmos/issues/763)) +- Update online voting power display ([\#776](https://github.com/forbole/big-dipper-2.0-cosmos/issues/776)) ## Bug fixes - Fixed Apr error if bonded tokens is 0 ([\#758](https://github.com/forbole/big-dipper-2.0-cosmos/issues/758)) diff --git a/src/screens/home/components/online_voting_power/__snapshots__/index.test.tsx.snap b/src/screens/home/components/online_voting_power/__snapshots__/index.test.tsx.snap index a907ae894d..da23130e81 100644 --- a/src/screens/home/components/online_voting_power/__snapshots__/index.test.tsx.snap +++ b/src/screens/home/components/online_voting_power/__snapshots__/index.test.tsx.snap @@ -17,7 +17,7 @@ Array [

- 0.00% + 100.00%

- 0.00% + 100.00%

- 76,341,095,840,626 + 76,341,043

@@ -118,7 +118,7 @@ Array [

- 0.00% + 100.00%

- 0.00% + 100.00%

- 76,341,095,840,626 + 76,341,043

diff --git a/src/screens/home/components/online_voting_power/index.test.tsx b/src/screens/home/components/online_voting_power/index.test.tsx index db55319fe9..cfb42fbf74 100644 --- a/src/screens/home/components/online_voting_power/index.test.tsx +++ b/src/screens/home/components/online_voting_power/index.test.tsx @@ -36,7 +36,7 @@ const mockOnlineVotingPower = jest.fn().mockResolvedValue({ }, stakingPool: [ { - bonded: 76341095840626, + bonded: 76341043, }, ], stakingParams: [ diff --git a/src/screens/home/components/online_voting_power/index.tsx b/src/screens/home/components/online_voting_power/index.tsx index e1f5d956e1..e497d67d64 100644 --- a/src/screens/home/components/online_voting_power/index.tsx +++ b/src/screens/home/components/online_voting_power/index.tsx @@ -15,7 +15,8 @@ const OnlineVotingPower: React.FC<{ const { t } = useTranslation('home'); const { state } = useOnlineVotingPower(); - const votingPowerPercent = numeral((state.votingPower / state.totalVotingPower) * 100); + const votingPowerPercent = state.totalVotingPower === 0 + ? numeral(0) : numeral((state.votingPower / state.totalVotingPower) * 100); const classes = useStyles(votingPowerPercent.format(0)); From c7e4a0dce88c27d701fb284a3b0a91fa0b09f905 Mon Sep 17 00:00:00 2001 From: Ryuash <42913823+ryuash@users.noreply.github.com> Date: Thu, 10 Mar 2022 15:01:05 +0800 Subject: [PATCH 24/54] 773/improve load performance 2 (#782) --- CHANGELOG.md | 13 +++++++++---- src/configs/general_config.json | 2 +- src/recoil/validators/hooks.ts | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c94a609dac..35decfbfb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,10 @@ -# Unreleased +# base-v2.0.0 - 2021-03-10 ## Changes - Changed online voting power to be a query instead of a subscription ([\#638](https://github.com/forbole/big-dipper-2.0-cosmos/issues/638)) - Optimised rendering of Proposal Details page ([\#763](https://github.com/forbole/big-dipper-2.0-cosmos/issues/763)) - Update online voting power display ([\#776](https://github.com/forbole/big-dipper-2.0-cosmos/issues/776)) +- Improved initial loading speed by asyncing top level functions ([\#773](https://github.com/forbole/big-dipper-2.0-cosmos/issues/773)) ## Bug fixes - Fixed Apr error if bonded tokens is 0 ([\#758](https://github.com/forbole/big-dipper-2.0-cosmos/issues/758)) @@ -17,6 +18,10 @@ - Change env `NEXT_PUBLIC_WS_CHAIN_URL` to `NEXT_PUBLIC_RPC_WEBSOCKET` or don't. It's backwards compatible - Change env `NEXT_PUBLIC_CHAIN_STATUS` to `NEXT_PUBLIC_CHAIN_TYPE` or don't. It's backwards compatible +## Breaking + +- [Bdjuno](https://github.com/forbole/bdjuno) must be on `v1.1.0+` + # base-v2.0.0-rc2 - 2021-02-24 ## Changes @@ -35,9 +40,9 @@ ## Changes - Updated Hasura Actions -## Migration +## Breaking -- Will add formal migration docs later but do not use this tag if your [bdjuno](https://github.com/forbole/bdjuno) is not at least `v1.0.0` +- [Bdjuno](https://github.com/forbole/bdjuno) must be on `v1.0.0` # base-v1.10.0 - 2021-01-25 @@ -54,7 +59,7 @@ ## Migration -- [v1.7.0 to v1.10.0](https://docs.bigdipper.live/cosmos-based/frontend/migrations/v1.7.0-to-v1.10.0) +- [v1.9.0 to v1.10.0](https://docs.bigdipper.live/cosmos-based/frontend/migrations/v1.9.0-to-v1.10.0) # base-v1.9.0 - 2021-01-10 diff --git a/src/configs/general_config.json b/src/configs/general_config.json index 0de71b0194..dddaf30618 100644 --- a/src/configs/general_config.json +++ b/src/configs/general_config.json @@ -6,5 +6,5 @@ "github": { "reportIssue": "https://github.com/forbole/big-dipper-2.0-cosmos/issues" }, - "version": "base-v2.0.0-rc3" + "version": "base-v2.0.0" } diff --git a/src/recoil/validators/hooks.ts b/src/recoil/validators/hooks.ts index af9ab179ea..e572f4c032 100644 --- a/src/recoil/validators/hooks.ts +++ b/src/recoil/validators/hooks.ts @@ -40,8 +40,8 @@ export const useValidatorRecoil = () => { // Set loading to be false // Set profiles and update if needed. // Will come back to this in the future - await formatAndSetValidatorsAddressList(data); setLoading(false); + formatAndSetValidatorsAddressList(data); setProfiles(data); }, }); From df3aac6f9638f0d579de145cfd1b25c79a7d6ac5 Mon Sep 17 00:00:00 2001 From: ryuash Date: Thu, 17 Mar 2022 13:36:22 +0800 Subject: [PATCH 25/54] hotfix: online voting power --- CHANGELOG.md | 4 ++++ src/configs/general_config.json | 2 +- src/graphql/online_voting_power.graphql | 2 +- src/graphql/types.tsx | 4 +++- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 35decfbfb7..167d463239 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# base-v2.0.1 - 2021-03-17 + +## Bug fixes +- Fixed online voting power total ([\#800](https://github.com/forbole/big-dipper-2.0-cosmos/issues/800)) # base-v2.0.0 - 2021-03-10 ## Changes diff --git a/src/configs/general_config.json b/src/configs/general_config.json index dddaf30618..bbc1235587 100644 --- a/src/configs/general_config.json +++ b/src/configs/general_config.json @@ -6,5 +6,5 @@ "github": { "reportIssue": "https://github.com/forbole/big-dipper-2.0-cosmos/issues" }, - "version": "base-v2.0.0" + "version": "base-v2.0.1" } diff --git a/src/graphql/online_voting_power.graphql b/src/graphql/online_voting_power.graphql index b53f8890ab..bbfebf96f8 100644 --- a/src/graphql/online_voting_power.graphql +++ b/src/graphql/online_voting_power.graphql @@ -4,7 +4,7 @@ query OnlineVotingPower { count } } - validatorVotingPowerAggregate: validator_voting_power_aggregate { + validatorVotingPowerAggregate: validator_voting_power_aggregate(where: {validator: {validator_statuses: {status: {_eq: 3}}}}) { aggregate { sum { votingPower: voting_power diff --git a/src/graphql/types.tsx b/src/graphql/types.tsx index 2037ffe94e..a80fd3c170 100644 --- a/src/graphql/types.tsx +++ b/src/graphql/types.tsx @@ -20924,7 +20924,9 @@ export const OnlineVotingPowerDocument = gql` count } } - validatorVotingPowerAggregate: validator_voting_power_aggregate { + validatorVotingPowerAggregate: validator_voting_power_aggregate( + where: {validator: {validator_statuses: {status: {_eq: 3}}}} + ) { aggregate { sum { votingPower: voting_power From 7c3de5b13b9770cb5344a7d499421d4049e850b3 Mon Sep 17 00:00:00 2001 From: SpaghettiOverload Date: Tue, 5 Apr 2022 01:32:47 +0300 Subject: [PATCH 26/54] CUDOS-810 / enhanced governance proposal details --- public/locales/en/proposals.json | 9 +++- .../components/communitySpend/index.tsx | 42 ++++++++++++++++ .../overview/components/ibc_upgrade/index.tsx | 48 +++++++++++++++++++ .../components/overview/components/index.ts | 4 ++ .../components/overview/index.tsx | 33 +++++++++++++ src/screens/proposal_details/utils.ts | 12 +++++ 6 files changed, 146 insertions(+), 2 deletions(-) create mode 100644 src/screens/proposal_details/components/overview/components/communitySpend/index.tsx create mode 100644 src/screens/proposal_details/components/overview/components/ibc_upgrade/index.tsx diff --git a/public/locales/en/proposals.json b/public/locales/en/proposals.json index 28cc4b9c25..0fe867bc00 100644 --- a/public/locales/en/proposals.json +++ b/public/locales/en/proposals.json @@ -28,6 +28,8 @@ "parameterChangeProposal": "Parameter Change Proposal", "communityPoolSpendProposal": "Community Pool Spend Proposal", "softwareUpgradeProposal": "Software Upgrade Proposal", + "IbcUpgradeProposal": "IBC Upgrade Proposal", + "IbcClientUpdateProposal": "IBC Client Update Proposal", "changes": "Changes", "subspace": "Subspace", "key": "Key", @@ -39,9 +41,12 @@ "rejected": "Rejected", "failed": "Failed", "plan": "Plan", + "details": "Details", + "recipient": "Recipient", "name": "Name", - "height": "Height", + "height": "Execution height", "info": "Info", "didNotVote": "Did not vote", - "notVoted": "Not Voted" + "notVoted": "Not Voted", + "upgradedClientState": "Upgraded Client State" } diff --git a/src/screens/proposal_details/components/overview/components/communitySpend/index.tsx b/src/screens/proposal_details/components/overview/components/communitySpend/index.tsx new file mode 100644 index 0000000000..f2d54deaaf --- /dev/null +++ b/src/screens/proposal_details/components/overview/components/communitySpend/index.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import numeral from 'numeral'; +import useTranslation from 'next-translate/useTranslation'; +import { + Table, + TableBody, + TableCell, + TableRow, +} from '@material-ui/core'; + +const CommunitySpend: React.FC<{ + className?: string; + recipient: string; + amount: string; +}> = ({ + recipient, + amount, +}) => { + const { t } = useTranslation('proposals'); + return ( +
+ + + + {t('amount')} + {amount} + + + {t('recipient')} + {recipient} + + +
+
+ ); +}; + +export default CommunitySpend; diff --git a/src/screens/proposal_details/components/overview/components/ibc_upgrade/index.tsx b/src/screens/proposal_details/components/overview/components/ibc_upgrade/index.tsx new file mode 100644 index 0000000000..bafb2cb789 --- /dev/null +++ b/src/screens/proposal_details/components/overview/components/ibc_upgrade/index.tsx @@ -0,0 +1,48 @@ +import React from 'react'; +import numeral from 'numeral'; +import useTranslation from 'next-translate/useTranslation'; +import { + Table, + TableBody, + TableCell, + TableRow, +} from '@material-ui/core'; + +const IbcUpgrade: React.FC<{ + className?: string; + height: string; + info: string; + name: string; +}> = ({ + height, + info, + name, +}) => { + const { t } = useTranslation('proposals'); + return ( +
+ + + + {t('name')} + {name} + + + {t('height')} + {numeral(height).format('0,0')} + + + {t('info')} + {info} + + +
+
+ ); +}; + +export default IbcUpgrade; diff --git a/src/screens/proposal_details/components/overview/components/index.ts b/src/screens/proposal_details/components/overview/components/index.ts index 27a307cd50..f41c04ffdb 100644 --- a/src/screens/proposal_details/components/overview/components/index.ts +++ b/src/screens/proposal_details/components/overview/components/index.ts @@ -1,7 +1,11 @@ import ParamsChange from './params_change'; import SoftwareUpgrade from './software_upgrade'; +import IbcUpgrade from './ibc_upgrade'; +import CommunitySpend from './communitySpend'; export { ParamsChange, SoftwareUpgrade, + IbcUpgrade, + CommunitySpend, }; diff --git a/src/screens/proposal_details/components/overview/index.tsx b/src/screens/proposal_details/components/overview/index.tsx index b6244f73c1..9b53ec3ed8 100644 --- a/src/screens/proposal_details/components/overview/index.tsx +++ b/src/screens/proposal_details/components/overview/index.tsx @@ -6,6 +6,8 @@ import dayjs, { formatDayJs } from '@utils/dayjs'; import useTranslation from 'next-translate/useTranslation'; import { useRecoilValue } from 'recoil'; import { readDate } from '@recoil/settings'; +import JSONPretty from 'react-json-pretty'; +var JSONPrettyMon = require('react-json-pretty/dist/monikai'); import { Typography, Divider, @@ -18,6 +20,8 @@ import { import { ParamsChange, SoftwareUpgrade, + IbcUpgrade, + CommunitySpend, } from './components'; import { useStyles } from './styles'; import { getProposalType } from '../../utils'; @@ -68,6 +72,35 @@ const Overview: React.FC<{ /> ); + } else if (type === 'communityPoolSpendProposal') { + extraDetails = ( + <> + + {t('details')} + + + + ); + } else if (type === 'IbcUpgradeProposal') { + extraDetails = ( + <> + + {t('details')} + + + + {t('upgradedClientState')} + + + + ); } return extraDetails; diff --git a/src/screens/proposal_details/utils.ts b/src/screens/proposal_details/utils.ts index 8842024553..d5ece49694 100644 --- a/src/screens/proposal_details/utils.ts +++ b/src/screens/proposal_details/utils.ts @@ -4,6 +4,18 @@ export const getProposalType = (proposalType: string) => { type = 'textProposal'; } + if (proposalType === '/ibc.core.client.v1.UpgradeProposal') { + type = 'IbcUpgradeProposal'; + } + + if (proposalType === '/cosmos.distribution.v1beta1.CommunityPoolSpendProposal') { + type = 'communityPoolSpendProposal'; + } + + if (proposalType == '/ibc.core.client.v1.ClientUpdateProposal') { + type = 'IbcClientUpdateProposal'; + } + if (proposalType === '/cosmos.params.v1beta1.ParameterChangeProposal') { type = 'parameterChangeProposal'; } From 356dc0da110ed4b60153d7773c98b2924f94b517 Mon Sep 17 00:00:00 2001 From: SpaghettiOverload Date: Tue, 5 Apr 2022 11:26:37 +0300 Subject: [PATCH 27/54] Enhancing MsgSetMinFeeTransferToEth Tx message --- public/locales/en/message_labels.json | 1 + src/components/msg/utils.tsx | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/public/locales/en/message_labels.json b/public/locales/en/message_labels.json index d681f1c96a..bcadc52df3 100644 --- a/public/locales/en/message_labels.json +++ b/public/locales/en/message_labels.json @@ -14,6 +14,7 @@ "txVoteLabel": "Vote", "txSubmitProposalLabel": "Submit Proposal", "txUnjailLabel": "Unjail", + "txMsgSetMinFeeTransferToEth": "Set Minimum Bridge Transfer Fee", "txUnknownLabel": "Unknown", "txWithdrawCommissionLabel": "Withdraw Commission", "txSaveProfileLabel": "Save Profile", diff --git a/src/components/msg/utils.tsx b/src/components/msg/utils.tsx index b3319dfe74..014c7214e8 100644 --- a/src/components/msg/utils.tsx +++ b/src/components/msg/utils.tsx @@ -402,6 +402,12 @@ const getDataByType = (type: string) => { tagTheme: 'four', tagDisplay: 'txUnblockUserLabel', }, + '/gravity.v1.MsgSetMinFeeTransferToEth': { + model: MODELS.MsgUnknown, + content: COMPONENTS.UnBlockUser, + tagTheme: 'four', + tagDisplay: 'txMsgSetMinFeeTransferToEth', + }, }; From e83d6e2f5f950525cd83770afa3f5735f6c5f1ab Mon Sep 17 00:00:00 2001 From: SpaghettiOverload Date: Tue, 5 Apr 2022 12:27:30 +0300 Subject: [PATCH 28/54] updating dependencies --- package-lock.json | 566 ++++++++++++++++++++++++++++++---------------- package.json | 3 +- 2 files changed, 371 insertions(+), 198 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5bc8f41e1c..c306dd7b42 100644 --- a/package-lock.json +++ b/package-lock.json @@ -44,6 +44,7 @@ "react": "^17.0.2", "react-cookie-consent": "^7.2.1", "react-dom": "^17.0.2", + "react-json-pretty": "^2.2.0", "react-share": "^4.4.0", "react-toastify": "^7.0.3", "react-virtualized-auto-sizer": "^1.0.4", @@ -83,7 +84,7 @@ "jest-localstorage-mock": "^2.4.18", "jest-transform-stub": "^2.0.0", "jest-watch-typeahead": "^0.6.1", - "nodemon": "^2.0.4", + "nodemon": "^2.0.15", "react-test-renderer": "^17.0.1", "ts-jest": "^27.0.7", "ts-loader": "^9.2.6", @@ -2702,19 +2703,6 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@graphql-codegen/cli/node_modules/anymatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", - "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", - "dev": true, - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, "node_modules/@graphql-codegen/cli/node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -8327,9 +8315,9 @@ } }, "node_modules/anymatch": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", - "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", + "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -8978,22 +8966,22 @@ "dev": true }, "node_modules/boxen": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz", - "integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-5.1.2.tgz", + "integrity": "sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==", "dev": true, "dependencies": { "ansi-align": "^3.0.0", - "camelcase": "^5.3.1", - "chalk": "^3.0.0", - "cli-boxes": "^2.2.0", - "string-width": "^4.1.0", - "term-size": "^2.1.0", - "type-fest": "^0.8.1", - "widest-line": "^3.1.0" + "camelcase": "^6.2.0", + "chalk": "^4.1.0", + "cli-boxes": "^2.2.1", + "string-width": "^4.2.2", + "type-fest": "^0.20.2", + "widest-line": "^3.1.0", + "wrap-ansi": "^7.0.0" }, "engines": { - "node": ">=8" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -9014,17 +9002,32 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/boxen/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/boxen/node_modules/chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" }, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, "node_modules/boxen/node_modules/color-convert": { @@ -9067,12 +9070,15 @@ } }, "node_modules/boxen/node_modules/type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", "dev": true, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/brace-expansion": { @@ -10040,12 +10046,54 @@ "dev": true }, "node_modules/cross-fetch": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.0.6.tgz", - "integrity": "sha512-KBPUbqgFjzWlVcURG+Svp9TlhA5uliYtiNx/0r8nv0pdypeQCRJ9IaSIc3q/x3q8t3F75cHuwxVql1HFGHCNJQ==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", + "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", "dev": true, "dependencies": { - "node-fetch": "2.6.1" + "node-fetch": "2.6.7" + } + }, + "node_modules/cross-fetch/node_modules/node-fetch": { + "version": "2.6.7", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", + "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "dev": true, + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/cross-fetch/node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=", + "dev": true + }, + "node_modules/cross-fetch/node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=", + "dev": true + }, + "node_modules/cross-fetch/node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", + "dev": true, + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" } }, "node_modules/cross-spawn": { @@ -12392,18 +12440,18 @@ } }, "node_modules/fbjs": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-3.0.0.tgz", - "integrity": "sha512-dJd4PiDOFuhe7vk4F80Mba83Vr2QuK86FoxtgPmzBqEJahncp+13YCmfoa53KHCo6OnlXLG7eeMWPfB5CrpVKg==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-3.0.4.tgz", + "integrity": "sha512-ucV0tDODnGV3JCnnkmoszb5lf4bNpzjv80K41wd4k798Etq+UYD0y0TIfalLjZoKgjive6/adkRnszwapiDgBQ==", "dev": true, "dependencies": { - "cross-fetch": "^3.0.4", + "cross-fetch": "^3.1.5", "fbjs-css-vars": "^1.0.0", "loose-envify": "^1.0.0", "object-assign": "^4.1.0", "promise": "^7.1.1", "setimmediate": "^1.0.5", - "ua-parser-js": "^0.7.18" + "ua-parser-js": "^0.7.30" } }, "node_modules/fbjs-css-vars": { @@ -12714,25 +12762,28 @@ "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" }, "node_modules/global-dirs": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.1.0.tgz", - "integrity": "sha512-MG6kdOUh/xBnyo9cJFeIKkLEc1AyFq42QTU4XiX51i2NEdxLxLWXIjEjmqKeSuKR7pAZjTqUVoT2b2huxVLgYQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.0.tgz", + "integrity": "sha512-v8ho2DS5RiCjftj1nD9NmnfaOzTdud7RRnVd9kFNOjqZbISlx5DQ+OrTkywgd0dIt7oFCvKetZSHoHcP3sDdiA==", "dev": true, "dependencies": { - "ini": "1.3.7" + "ini": "2.0.0" }, "engines": { - "node": ">=8" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/global-dirs/node_modules/ini": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.7.tgz", - "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", - "dev": true + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", + "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==", + "dev": true, + "engines": { + "node": ">=10" + } }, "node_modules/globals": { "version": "11.12.0", @@ -13702,16 +13753,16 @@ "integrity": "sha1-Vv9NtoOgeMYILrldrX3GLh0E+DU=" }, "node_modules/is-installed-globally": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz", - "integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", + "integrity": "sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==", "dev": true, "dependencies": { - "global-dirs": "^2.0.1", - "is-path-inside": "^3.0.1" + "global-dirs": "^3.0.0", + "is-path-inside": "^3.0.2" }, "engines": { - "node": ">=8" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -13759,12 +13810,15 @@ } }, "node_modules/is-npm": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz", - "integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-5.0.0.tgz", + "integrity": "sha512-WW/rQLOazUq+ST/bCAVBp/2oMERWLsR7OrKyt052dNDk4DHcDE0/7QSXITlmi+VBcV13DfIbysG3tZJm5RfdBA==", "dev": true, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/is-number": { @@ -20745,22 +20799,22 @@ "integrity": "sha512-rB1DUFUNAN4Gn9keO2K1efO35IDK7yKHCdCaIMvFO7yUYmmZYeDjnGKle26G4rwj+LKRQpjyUUvMkPglwGCYNQ==" }, "node_modules/nodemon": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.7.tgz", - "integrity": "sha512-XHzK69Awgnec9UzHr1kc8EomQh4sjTQ8oRf8TsGrSmHDx9/UmiGG9E/mM3BuTfNeFwdNBvrqQq/RHL0xIeyFOA==", + "version": "2.0.15", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.15.tgz", + "integrity": "sha512-gdHMNx47Gw7b3kWxJV64NI+Q5nfl0y5DgDbiVtShiwa7Z0IZ07Ll4RLFo6AjrhzMtoEZn5PDE3/c2AbVsiCkpA==", "dev": true, "hasInstallScript": true, "dependencies": { - "chokidar": "^3.2.2", - "debug": "^3.2.6", + "chokidar": "^3.5.2", + "debug": "^3.2.7", "ignore-by-default": "^1.0.1", "minimatch": "^3.0.4", - "pstree.remy": "^1.1.7", + "pstree.remy": "^1.1.8", "semver": "^5.7.1", "supports-color": "^5.5.0", "touch": "^3.1.0", - "undefsafe": "^2.0.3", - "update-notifier": "^4.1.0" + "undefsafe": "^2.0.5", + "update-notifier": "^5.1.0" }, "bin": { "nodemon": "bin/nodemon.js" @@ -20773,6 +20827,33 @@ "url": "https://opencollective.com/nodemon" } }, + "node_modules/nodemon/node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, "node_modules/nodemon/node_modules/debug": { "version": "3.2.7", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", @@ -20788,6 +20869,18 @@ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "dev": true }, + "node_modules/nodemon/node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, "node_modules/nodemon/node_modules/semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", @@ -21872,6 +21965,18 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, + "node_modules/react-json-pretty": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/react-json-pretty/-/react-json-pretty-2.2.0.tgz", + "integrity": "sha512-3UMzlAXkJ4R8S4vmkRKtvJHTewG4/rn1Q18n0zqdu/ipZbUPLVZD+QwC7uVcD/IAY3s8iNVHlgR2dMzIUS0n1A==", + "dependencies": { + "prop-types": "^15.6.2" + }, + "peerDependencies": { + "react": ">=15.0", + "react-dom": ">=15.0" + } + }, "node_modules/react-lifecycles-compat": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz", @@ -23759,18 +23864,6 @@ "node": ">=6" } }, - "node_modules/term-size": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.1.tgz", - "integrity": "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/terminal-link": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", @@ -24450,9 +24543,9 @@ } }, "node_modules/ua-parser-js": { - "version": "0.7.26", - "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.26.tgz", - "integrity": "sha512-VwIvGlFNmpKbjzRt51jpbbFTrKIEgGHxIwA8Y69K1Bqc6bTIV7TaGGABOkghSFQWsLmcRB4drGvpfv9z2szqoQ==", + "version": "0.7.31", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.31.tgz", + "integrity": "sha512-qLK/Xe9E2uzmYI3qLeOmI0tEOt+TBBQyUIAh4aAgU05FVYzeZrKUdkAZfBNVGRaHVgV0TDkdEngJSw/SyQchkQ==", "dev": true, "funding": [ { @@ -24492,13 +24585,10 @@ } }, "node_modules/undefsafe": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.3.tgz", - "integrity": "sha512-nrXZwwXrD/T/JXeygJqdCO6NZZ1L66HrxM/Z7mIq2oPanoN0F1nLx3lwJMu6AwJY69hdixaFQOuoYsMjE5/C2A==", - "dev": true, - "dependencies": { - "debug": "^2.2.0" - } + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", + "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", + "dev": true }, "node_modules/unicode-canonical-property-names-ecmascript": { "version": "1.0.4", @@ -24600,27 +24690,28 @@ "dev": true }, "node_modules/update-notifier": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.3.tgz", - "integrity": "sha512-Yld6Z0RyCYGB6ckIjffGOSOmHXj1gMeE7aROz4MG+XMkmixBX4jUngrGXNYz7wPKBmtoD4MnBa2Anu7RSKht/A==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-5.1.0.tgz", + "integrity": "sha512-ItnICHbeMh9GqUy31hFPrD1kcuZ3rpxDZbf4KUDavXwS0bW5m7SLbDQpGX3UYr072cbrF5hFUs3r5tUsPwjfHw==", "dev": true, "dependencies": { - "boxen": "^4.2.0", - "chalk": "^3.0.0", + "boxen": "^5.0.0", + "chalk": "^4.1.0", "configstore": "^5.0.1", "has-yarn": "^2.1.0", "import-lazy": "^2.1.0", "is-ci": "^2.0.0", - "is-installed-globally": "^0.3.1", - "is-npm": "^4.0.0", + "is-installed-globally": "^0.4.0", + "is-npm": "^5.0.0", "is-yarn-global": "^0.3.0", - "latest-version": "^5.0.0", - "pupa": "^2.0.1", + "latest-version": "^5.1.0", + "pupa": "^2.1.1", + "semver": "^7.3.4", "semver-diff": "^3.1.1", "xdg-basedir": "^4.0.0" }, "engines": { - "node": ">=8" + "node": ">=10" }, "funding": { "url": "https://github.com/yeoman/update-notifier?sponsor=1" @@ -24642,16 +24733,19 @@ } }, "node_modules/update-notifier/node_modules/chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" }, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, "node_modules/update-notifier/node_modules/color-convert": { @@ -24681,6 +24775,21 @@ "node": ">=8" } }, + "node_modules/update-notifier/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/update-notifier/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -27494,16 +27603,6 @@ "color-convert": "^2.0.1" } }, - "anymatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", - "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", - "dev": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, "chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -31773,9 +31872,9 @@ "dev": true }, "anymatch": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", - "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", + "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", "requires": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -32271,19 +32370,19 @@ "dev": true }, "boxen": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz", - "integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-5.1.2.tgz", + "integrity": "sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==", "dev": true, "requires": { "ansi-align": "^3.0.0", - "camelcase": "^5.3.1", - "chalk": "^3.0.0", - "cli-boxes": "^2.2.0", - "string-width": "^4.1.0", - "term-size": "^2.1.0", - "type-fest": "^0.8.1", - "widest-line": "^3.1.0" + "camelcase": "^6.2.0", + "chalk": "^4.1.0", + "cli-boxes": "^2.2.1", + "string-width": "^4.2.2", + "type-fest": "^0.20.2", + "widest-line": "^3.1.0", + "wrap-ansi": "^7.0.0" }, "dependencies": { "ansi-styles": { @@ -32295,10 +32394,16 @@ "color-convert": "^2.0.1" } }, + "camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true + }, "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -32336,9 +32441,9 @@ } }, "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", "dev": true } } @@ -33164,12 +33269,45 @@ "dev": true }, "cross-fetch": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.0.6.tgz", - "integrity": "sha512-KBPUbqgFjzWlVcURG+Svp9TlhA5uliYtiNx/0r8nv0pdypeQCRJ9IaSIc3q/x3q8t3F75cHuwxVql1HFGHCNJQ==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", + "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", "dev": true, "requires": { - "node-fetch": "2.6.1" + "node-fetch": "2.6.7" + }, + "dependencies": { + "node-fetch": { + "version": "2.6.7", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", + "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "dev": true, + "requires": { + "whatwg-url": "^5.0.0" + } + }, + "tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=", + "dev": true + }, + "webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=", + "dev": true + }, + "whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", + "dev": true, + "requires": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + } } }, "cross-spawn": { @@ -35026,18 +35164,18 @@ } }, "fbjs": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-3.0.0.tgz", - "integrity": "sha512-dJd4PiDOFuhe7vk4F80Mba83Vr2QuK86FoxtgPmzBqEJahncp+13YCmfoa53KHCo6OnlXLG7eeMWPfB5CrpVKg==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-3.0.4.tgz", + "integrity": "sha512-ucV0tDODnGV3JCnnkmoszb5lf4bNpzjv80K41wd4k798Etq+UYD0y0TIfalLjZoKgjive6/adkRnszwapiDgBQ==", "dev": true, "requires": { - "cross-fetch": "^3.0.4", + "cross-fetch": "^3.1.5", "fbjs-css-vars": "^1.0.0", "loose-envify": "^1.0.0", "object-assign": "^4.1.0", "promise": "^7.1.1", "setimmediate": "^1.0.5", - "ua-parser-js": "^0.7.18" + "ua-parser-js": "^0.7.30" } }, "fbjs-css-vars": { @@ -35261,18 +35399,18 @@ "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" }, "global-dirs": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.1.0.tgz", - "integrity": "sha512-MG6kdOUh/xBnyo9cJFeIKkLEc1AyFq42QTU4XiX51i2NEdxLxLWXIjEjmqKeSuKR7pAZjTqUVoT2b2huxVLgYQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.0.tgz", + "integrity": "sha512-v8ho2DS5RiCjftj1nD9NmnfaOzTdud7RRnVd9kFNOjqZbISlx5DQ+OrTkywgd0dIt7oFCvKetZSHoHcP3sDdiA==", "dev": true, "requires": { - "ini": "1.3.7" + "ini": "2.0.0" }, "dependencies": { "ini": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.7.tgz", - "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", + "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==", "dev": true } } @@ -35990,13 +36128,13 @@ "integrity": "sha1-Vv9NtoOgeMYILrldrX3GLh0E+DU=" }, "is-installed-globally": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz", - "integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", + "integrity": "sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==", "dev": true, "requires": { - "global-dirs": "^2.0.1", - "is-path-inside": "^3.0.1" + "global-dirs": "^3.0.0", + "is-path-inside": "^3.0.2" } }, "is-lower-case": { @@ -36031,9 +36169,9 @@ "integrity": "sha512-2z6JzQvZRa9A2Y7xC6dQQm4FSTSTNWjKIYYTt4246eMTJmIo0Q+ZyOsU66X8lxK1AbB92dFeglPLrhwpeRKO6w==" }, "is-npm": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz", - "integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-5.0.0.tgz", + "integrity": "sha512-WW/rQLOazUq+ST/bCAVBp/2oMERWLsR7OrKyt052dNDk4DHcDE0/7QSXITlmi+VBcV13DfIbysG3tZJm5RfdBA==", "dev": true }, "is-number": { @@ -41486,23 +41624,39 @@ "integrity": "sha512-rB1DUFUNAN4Gn9keO2K1efO35IDK7yKHCdCaIMvFO7yUYmmZYeDjnGKle26G4rwj+LKRQpjyUUvMkPglwGCYNQ==" }, "nodemon": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.7.tgz", - "integrity": "sha512-XHzK69Awgnec9UzHr1kc8EomQh4sjTQ8oRf8TsGrSmHDx9/UmiGG9E/mM3BuTfNeFwdNBvrqQq/RHL0xIeyFOA==", + "version": "2.0.15", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.15.tgz", + "integrity": "sha512-gdHMNx47Gw7b3kWxJV64NI+Q5nfl0y5DgDbiVtShiwa7Z0IZ07Ll4RLFo6AjrhzMtoEZn5PDE3/c2AbVsiCkpA==", "dev": true, "requires": { - "chokidar": "^3.2.2", - "debug": "^3.2.6", + "chokidar": "^3.5.2", + "debug": "^3.2.7", "ignore-by-default": "^1.0.1", "minimatch": "^3.0.4", - "pstree.remy": "^1.1.7", + "pstree.remy": "^1.1.8", "semver": "^5.7.1", "supports-color": "^5.5.0", "touch": "^3.1.0", - "undefsafe": "^2.0.3", - "update-notifier": "^4.1.0" + "undefsafe": "^2.0.5", + "update-notifier": "^5.1.0" }, "dependencies": { + "chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, + "requires": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "fsevents": "~2.3.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + } + }, "debug": { "version": "3.2.7", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", @@ -41518,6 +41672,15 @@ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "dev": true }, + "readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "requires": { + "picomatch": "^2.2.1" + } + }, "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", @@ -42360,6 +42523,14 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, + "react-json-pretty": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/react-json-pretty/-/react-json-pretty-2.2.0.tgz", + "integrity": "sha512-3UMzlAXkJ4R8S4vmkRKtvJHTewG4/rn1Q18n0zqdu/ipZbUPLVZD+QwC7uVcD/IAY3s8iNVHlgR2dMzIUS0n1A==", + "requires": { + "prop-types": "^15.6.2" + } + }, "react-lifecycles-compat": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz", @@ -43860,12 +44031,6 @@ "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", "dev": true }, - "term-size": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.1.tgz", - "integrity": "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==", - "dev": true - }, "terminal-link": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", @@ -44353,9 +44518,9 @@ "dev": true }, "ua-parser-js": { - "version": "0.7.26", - "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.26.tgz", - "integrity": "sha512-VwIvGlFNmpKbjzRt51jpbbFTrKIEgGHxIwA8Y69K1Bqc6bTIV7TaGGABOkghSFQWsLmcRB4drGvpfv9z2szqoQ==", + "version": "0.7.31", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.31.tgz", + "integrity": "sha512-qLK/Xe9E2uzmYI3qLeOmI0tEOt+TBBQyUIAh4aAgU05FVYzeZrKUdkAZfBNVGRaHVgV0TDkdEngJSw/SyQchkQ==", "dev": true }, "unbox-primitive": { @@ -44376,13 +44541,10 @@ "dev": true }, "undefsafe": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.3.tgz", - "integrity": "sha512-nrXZwwXrD/T/JXeygJqdCO6NZZ1L66HrxM/Z7mIq2oPanoN0F1nLx3lwJMu6AwJY69hdixaFQOuoYsMjE5/C2A==", - "dev": true, - "requires": { - "debug": "^2.2.0" - } + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", + "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", + "dev": true }, "unicode-canonical-property-names-ecmascript": { "version": "1.0.4", @@ -44459,22 +44621,23 @@ "dev": true }, "update-notifier": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.3.tgz", - "integrity": "sha512-Yld6Z0RyCYGB6ckIjffGOSOmHXj1gMeE7aROz4MG+XMkmixBX4jUngrGXNYz7wPKBmtoD4MnBa2Anu7RSKht/A==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-5.1.0.tgz", + "integrity": "sha512-ItnICHbeMh9GqUy31hFPrD1kcuZ3rpxDZbf4KUDavXwS0bW5m7SLbDQpGX3UYr072cbrF5hFUs3r5tUsPwjfHw==", "dev": true, "requires": { - "boxen": "^4.2.0", - "chalk": "^3.0.0", + "boxen": "^5.0.0", + "chalk": "^4.1.0", "configstore": "^5.0.1", "has-yarn": "^2.1.0", "import-lazy": "^2.1.0", "is-ci": "^2.0.0", - "is-installed-globally": "^0.3.1", - "is-npm": "^4.0.0", + "is-installed-globally": "^0.4.0", + "is-npm": "^5.0.0", "is-yarn-global": "^0.3.0", - "latest-version": "^5.0.0", - "pupa": "^2.0.1", + "latest-version": "^5.1.0", + "pupa": "^2.1.1", + "semver": "^7.3.4", "semver-diff": "^3.1.1", "xdg-basedir": "^4.0.0" }, @@ -44489,9 +44652,9 @@ } }, "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -44519,6 +44682,15 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", diff --git a/package.json b/package.json index e55b138d30..31e30edd83 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "react": "^17.0.2", "react-cookie-consent": "^7.2.1", "react-dom": "^17.0.2", + "react-json-pretty": "^2.2.0", "react-share": "^4.4.0", "react-toastify": "^7.0.3", "react-virtualized-auto-sizer": "^1.0.4", @@ -89,7 +90,7 @@ "jest-localstorage-mock": "^2.4.18", "jest-transform-stub": "^2.0.0", "jest-watch-typeahead": "^0.6.1", - "nodemon": "^2.0.4", + "nodemon": "^2.0.15", "react-test-renderer": "^17.0.1", "ts-jest": "^27.0.7", "ts-loader": "^9.2.6", From 6561ea1e6a4490d834b5c055585b4affdcaac2a8 Mon Sep 17 00:00:00 2001 From: avalkov Date: Wed, 6 Apr 2022 09:39:59 +0300 Subject: [PATCH 29/54] Updated GraphQL metadata --- src/graphql/types.tsx | 20933 +++++++++++++--------------------------- 1 file changed, 6915 insertions(+), 14018 deletions(-) diff --git a/src/graphql/types.tsx b/src/graphql/types.tsx index a80fd3c170..4017693000 100644 --- a/src/graphql/types.tsx +++ b/src/graphql/types.tsx @@ -20,15 +20,12 @@ export type Scalars = { _coin: any; _dec_coin: any; _text: any; - account_balance_history_scalar: any; - account_balance_scalar: any; bigint: any; - coin: any; + json: any; jsonb: any; numeric: any; smallint: any; timestamp: any; - validator_scalar: any; }; @@ -180,32 +177,8 @@ export type _Text_Comparison_Exp = { /** columns and relationships of "account" */ export type Account = { __typename?: 'account'; - /** An array relationship */ - account_balance_histories: Array; - /** An aggregate relationship */ - account_balance_histories_aggregate: Account_Balance_History_Aggregate; - /** An array relationship */ - account_balances: Array; - /** An aggregate relationship */ - account_balances_aggregate: Account_Balance_Aggregate; address: Scalars['String']; /** An array relationship */ - delegation_rewards: Array; - /** An aggregate relationship */ - delegation_rewards_aggregate: Delegation_Reward_Aggregate; - /** An array relationship */ - delegations: Array; - /** An aggregate relationship */ - delegations_aggregate: Delegation_Aggregate; - /** An array relationship */ - feeGrantAllowancesByGranterAddress: Array; - /** An aggregate relationship */ - feeGrantAllowancesByGranterAddress_aggregate: Fee_Grant_Allowance_Aggregate; - /** An array relationship */ - fee_grant_allowances: Array; - /** An aggregate relationship */ - fee_grant_allowances_aggregate: Fee_Grant_Allowance_Aggregate; - /** An array relationship */ proposal_deposits: Array; /** An aggregate relationship */ proposal_deposits_aggregate: Proposal_Deposit_Aggregate; @@ -218,143 +191,11 @@ export type Account = { /** An aggregate relationship */ proposals_aggregate: Proposal_Aggregate; /** An array relationship */ - redelegations: Array; - /** An aggregate relationship */ - redelegations_aggregate: Redelegation_Aggregate; - /** An array relationship */ - unbonding_delegations: Array; - /** An aggregate relationship */ - unbonding_delegations_aggregate: Unbonding_Delegation_Aggregate; - /** An array relationship */ validator_infos: Array; /** An aggregate relationship */ validator_infos_aggregate: Validator_Info_Aggregate; /** An object relationship */ vesting_account?: Maybe; - /** An array relationship */ - vesting_accounts: Array; - /** An aggregate relationship */ - vesting_accounts_aggregate: Vesting_Account_Aggregate; -}; - - -/** columns and relationships of "account" */ -export type AccountAccount_Balance_HistoriesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountAccount_Balance_Histories_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountAccount_BalancesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountAccount_Balances_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountDelegation_RewardsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountDelegation_Rewards_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountDelegationsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountDelegations_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountFeeGrantAllowancesByGranterAddressArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountFeeGrantAllowancesByGranterAddress_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountFee_Grant_AllowancesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountFee_Grant_Allowances_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; }; @@ -418,46 +259,6 @@ export type AccountProposals_AggregateArgs = { }; -/** columns and relationships of "account" */ -export type AccountRedelegationsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountRedelegations_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountUnbonding_DelegationsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountUnbonding_Delegations_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - /** columns and relationships of "account" */ export type AccountValidator_InfosArgs = { distinct_on?: Maybe>; @@ -477,26 +278,6 @@ export type AccountValidator_Infos_AggregateArgs = { where?: Maybe; }; - -/** columns and relationships of "account" */ -export type AccountVesting_AccountsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "account" */ -export type AccountVesting_Accounts_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - /** aggregated selection of "account" */ export type Account_Aggregate = { __typename?: 'account_aggregate'; @@ -519,16339 +300,10039 @@ export type Account_Aggregate_FieldsCountArgs = { distinct?: Maybe; }; -/** columns and relationships of "account_balance" */ -export type Account_Balance = { - __typename?: 'account_balance'; - /** An object relationship */ - account: Account; - address: Scalars['String']; - /** An object relationship */ - block?: Maybe; - coins: Scalars['_coin']; - height: Scalars['bigint']; - /** A computed field, executes function "account_balance_tokens_prices" */ - tokens_prices?: Maybe>; +/** Boolean expression to filter rows from the table "account". All fields are combined with a logical 'AND'. */ +export type Account_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + address?: Maybe; + proposal_deposits?: Maybe; + proposal_votes?: Maybe; + proposals?: Maybe; + validator_infos?: Maybe; + vesting_account?: Maybe; }; - -/** columns and relationships of "account_balance" */ -export type Account_BalanceTokens_PricesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate max on columns */ +export type Account_Max_Fields = { + __typename?: 'account_max_fields'; + address?: Maybe; }; -/** aggregated selection of "account_balance" */ -export type Account_Balance_Aggregate = { - __typename?: 'account_balance_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregate min on columns */ +export type Account_Min_Fields = { + __typename?: 'account_min_fields'; + address?: Maybe; }; -/** aggregate fields of "account_balance" */ -export type Account_Balance_Aggregate_Fields = { - __typename?: 'account_balance_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; +/** Ordering options when selecting data from "account". */ +export type Account_Order_By = { + address?: Maybe; + proposal_deposits_aggregate?: Maybe; + proposal_votes_aggregate?: Maybe; + proposals_aggregate?: Maybe; + validator_infos_aggregate?: Maybe; + vesting_account?: Maybe; }; +/** select columns of table "account" */ +export enum Account_Select_Column { + /** column name */ + Address = 'address' +} -/** aggregate fields of "account_balance" */ -export type Account_Balance_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** 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']; }; -/** order by aggregate values of table "account_balance" */ -export type Account_Balance_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; +/** aggregated selection of "average_block_time_from_genesis" */ +export type Average_Block_Time_From_Genesis_Aggregate = { + __typename?: 'average_block_time_from_genesis_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate avg on columns */ -export type Account_Balance_Avg_Fields = { - __typename?: 'account_balance_avg_fields'; - height?: Maybe; +/** aggregate fields of "average_block_time_from_genesis" */ +export type Average_Block_Time_From_Genesis_Aggregate_Fields = { + __typename?: 'average_block_time_from_genesis_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; }; -/** order by avg() on columns of table "account_balance" */ -export type Account_Balance_Avg_Order_By = { - height?: Maybe; -}; -/** Boolean expression to filter rows from the table "account_balance". All fields are combined with a logical 'AND'. */ -export type Account_Balance_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account?: Maybe; - address?: Maybe; - block?: Maybe; - coins?: Maybe<_Coin_Comparison_Exp>; - height?: Maybe; - tokens_prices?: Maybe; +/** aggregate fields of "average_block_time_from_genesis" */ +export type Average_Block_Time_From_Genesis_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; -/** columns and relationships of "account_balance_history" */ -export type Account_Balance_History = { - __typename?: 'account_balance_history'; - /** An object relationship */ - account: Account; - address: Scalars['String']; - balance: Scalars['_coin']; - commission: Scalars['_dec_coin']; - delegated: Scalars['_coin']; - redelegating: Scalars['_coin']; - reward: Scalars['_dec_coin']; - timestamp?: Maybe; - /** A computed field, executes function "account_balance_history_tokens_prices" */ - token_prices_history?: Maybe>; - unbonding: Scalars['_coin']; +/** aggregate avg on columns */ +export type Average_Block_Time_From_Genesis_Avg_Fields = { + __typename?: 'average_block_time_from_genesis_avg_fields'; + average_time?: Maybe; + height?: Maybe; }; - -/** columns and relationships of "account_balance_history" */ -export type Account_Balance_HistoryToken_Prices_HistoryArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + average_time?: Maybe; + height?: Maybe; }; -/** aggregated selection of "account_balance_history" */ -export type Account_Balance_History_Aggregate = { - __typename?: 'account_balance_history_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregate max on columns */ +export type Average_Block_Time_From_Genesis_Max_Fields = { + __typename?: 'average_block_time_from_genesis_max_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** aggregate fields of "account_balance_history" */ -export type Account_Balance_History_Aggregate_Fields = { - __typename?: 'account_balance_history_aggregate_fields'; - count: Scalars['Int']; - max?: Maybe; - min?: Maybe; +/** aggregate min on columns */ +export type Average_Block_Time_From_Genesis_Min_Fields = { + __typename?: 'average_block_time_from_genesis_min_fields'; + average_time?: Maybe; + height?: Maybe; }; +/** Ordering options when selecting data from "average_block_time_from_genesis". */ +export type Average_Block_Time_From_Genesis_Order_By = { + average_time?: Maybe; + height?: Maybe; +}; -/** aggregate fields of "account_balance_history" */ -export type Account_Balance_History_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** 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' +} + +/** aggregate stddev on columns */ +export type Average_Block_Time_From_Genesis_Stddev_Fields = { + __typename?: 'average_block_time_from_genesis_stddev_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** order by aggregate values of table "account_balance_history" */ -export type Account_Balance_History_Aggregate_Order_By = { - count?: Maybe; - max?: Maybe; - min?: Maybe; +/** aggregate stddev_pop on columns */ +export type Average_Block_Time_From_Genesis_Stddev_Pop_Fields = { + __typename?: 'average_block_time_from_genesis_stddev_pop_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** Boolean expression to filter rows from the table "account_balance_history". All fields are combined with a logical 'AND'. */ -export type Account_Balance_History_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account?: Maybe; - address?: Maybe; - balance?: Maybe<_Coin_Comparison_Exp>; - commission?: Maybe<_Dec_Coin_Comparison_Exp>; - delegated?: Maybe<_Coin_Comparison_Exp>; - redelegating?: Maybe<_Coin_Comparison_Exp>; - reward?: Maybe<_Dec_Coin_Comparison_Exp>; - timestamp?: Maybe; - token_prices_history?: Maybe; - unbonding?: Maybe<_Coin_Comparison_Exp>; +/** aggregate stddev_samp on columns */ +export type Average_Block_Time_From_Genesis_Stddev_Samp_Fields = { + __typename?: 'average_block_time_from_genesis_stddev_samp_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** aggregate max on columns */ -export type Account_Balance_History_Max_Fields = { - __typename?: 'account_balance_history_max_fields'; - address?: Maybe; - timestamp?: Maybe; +/** aggregate sum on columns */ +export type Average_Block_Time_From_Genesis_Sum_Fields = { + __typename?: 'average_block_time_from_genesis_sum_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** order by max() on columns of table "account_balance_history" */ -export type Account_Balance_History_Max_Order_By = { - address?: Maybe; - timestamp?: Maybe; +/** aggregate var_pop on columns */ +export type Average_Block_Time_From_Genesis_Var_Pop_Fields = { + __typename?: 'average_block_time_from_genesis_var_pop_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** aggregate min on columns */ -export type Account_Balance_History_Min_Fields = { - __typename?: 'account_balance_history_min_fields'; - address?: Maybe; - timestamp?: Maybe; +/** aggregate var_samp on columns */ +export type Average_Block_Time_From_Genesis_Var_Samp_Fields = { + __typename?: 'average_block_time_from_genesis_var_samp_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** order by min() on columns of table "account_balance_history" */ -export type Account_Balance_History_Min_Order_By = { - address?: Maybe; - timestamp?: Maybe; +/** aggregate variance on columns */ +export type Average_Block_Time_From_Genesis_Variance_Fields = { + __typename?: 'average_block_time_from_genesis_variance_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** Ordering options when selecting data from "account_balance_history". */ -export type Account_Balance_History_Order_By = { - account?: Maybe; - address?: Maybe; - balance?: Maybe; - commission?: Maybe; - delegated?: Maybe; - redelegating?: Maybe; - reward?: Maybe; - timestamp?: Maybe; - unbonding?: Maybe; +/** 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']; }; +/** aggregated selection of "average_block_time_per_day" */ +export type Average_Block_Time_Per_Day_Aggregate = { + __typename?: 'average_block_time_per_day_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "average_block_time_per_day" */ +export type Average_Block_Time_Per_Day_Aggregate_Fields = { + __typename?: 'average_block_time_per_day_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; +}; -/** select columns of table "account_balance_history" */ -export enum Account_Balance_History_Select_Column { - /** column name */ - Address = 'address', - /** column name */ - Balance = 'balance', - /** column name */ - Commission = 'commission', - /** column name */ - Delegated = 'delegated', - /** column name */ - Redelegating = 'redelegating', - /** column name */ - Reward = 'reward', - /** column name */ - Timestamp = 'timestamp', - /** column name */ - Unbonding = 'unbonding' -} -export type Account_Balance_History_Tokens_Prices_Args = { - balance_row?: Maybe; +/** aggregate fields of "average_block_time_per_day" */ +export type Average_Block_Time_Per_Day_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; -/** aggregate max on columns */ -export type Account_Balance_Max_Fields = { - __typename?: 'account_balance_max_fields'; - address?: Maybe; - height?: Maybe; +/** aggregate avg on columns */ +export type Average_Block_Time_Per_Day_Avg_Fields = { + __typename?: 'average_block_time_per_day_avg_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** order by max() on columns of table "account_balance" */ -export type Account_Balance_Max_Order_By = { - address?: Maybe; - height?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + average_time?: Maybe; + height?: Maybe; }; -/** aggregate min on columns */ -export type Account_Balance_Min_Fields = { - __typename?: 'account_balance_min_fields'; - address?: Maybe; +/** aggregate max on columns */ +export type Average_Block_Time_Per_Day_Max_Fields = { + __typename?: 'average_block_time_per_day_max_fields'; + average_time?: Maybe; height?: Maybe; }; -/** order by min() on columns of table "account_balance" */ -export type Account_Balance_Min_Order_By = { - address?: Maybe; - height?: Maybe; +/** aggregate min on columns */ +export type Average_Block_Time_Per_Day_Min_Fields = { + __typename?: 'average_block_time_per_day_min_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** Ordering options when selecting data from "account_balance". */ -export type Account_Balance_Order_By = { - account?: Maybe; - address?: Maybe; - block?: Maybe; - coins?: Maybe; +/** Ordering options when selecting data from "average_block_time_per_day". */ +export type Average_Block_Time_Per_Day_Order_By = { + average_time?: Maybe; height?: Maybe; }; - -/** select columns of table "account_balance" */ -export enum Account_Balance_Select_Column { - /** column name */ - Address = 'address', +/** select columns of table "average_block_time_per_day" */ +export enum Average_Block_Time_Per_Day_Select_Column { /** column name */ - Coins = 'coins', + AverageTime = 'average_time', /** column name */ Height = 'height' } /** aggregate stddev on columns */ -export type Account_Balance_Stddev_Fields = { - __typename?: 'account_balance_stddev_fields'; +export type Average_Block_Time_Per_Day_Stddev_Fields = { + __typename?: 'average_block_time_per_day_stddev_fields'; + average_time?: Maybe; height?: Maybe; }; -/** order by stddev() on columns of table "account_balance" */ -export type Account_Balance_Stddev_Order_By = { - height?: Maybe; -}; - /** aggregate stddev_pop on columns */ -export type Account_Balance_Stddev_Pop_Fields = { - __typename?: 'account_balance_stddev_pop_fields'; +export type Average_Block_Time_Per_Day_Stddev_Pop_Fields = { + __typename?: 'average_block_time_per_day_stddev_pop_fields'; + average_time?: Maybe; height?: Maybe; }; -/** order by stddev_pop() on columns of table "account_balance" */ -export type Account_Balance_Stddev_Pop_Order_By = { - height?: Maybe; -}; - /** aggregate stddev_samp on columns */ -export type Account_Balance_Stddev_Samp_Fields = { - __typename?: 'account_balance_stddev_samp_fields'; +export type Average_Block_Time_Per_Day_Stddev_Samp_Fields = { + __typename?: 'average_block_time_per_day_stddev_samp_fields'; + average_time?: Maybe; height?: Maybe; }; -/** order by stddev_samp() on columns of table "account_balance" */ -export type Account_Balance_Stddev_Samp_Order_By = { - height?: Maybe; -}; - /** aggregate sum on columns */ -export type Account_Balance_Sum_Fields = { - __typename?: 'account_balance_sum_fields'; +export type Average_Block_Time_Per_Day_Sum_Fields = { + __typename?: 'average_block_time_per_day_sum_fields'; + average_time?: Maybe; height?: Maybe; }; -/** order by sum() on columns of table "account_balance" */ -export type Account_Balance_Sum_Order_By = { - height?: Maybe; -}; - -export type Account_Balance_Tokens_Prices_Args = { - account_balance_row?: Maybe; -}; - /** aggregate var_pop on columns */ -export type Account_Balance_Var_Pop_Fields = { - __typename?: 'account_balance_var_pop_fields'; +export type Average_Block_Time_Per_Day_Var_Pop_Fields = { + __typename?: 'average_block_time_per_day_var_pop_fields'; + average_time?: Maybe; height?: Maybe; }; -/** order by var_pop() on columns of table "account_balance" */ -export type Account_Balance_Var_Pop_Order_By = { - height?: Maybe; -}; - /** aggregate var_samp on columns */ -export type Account_Balance_Var_Samp_Fields = { - __typename?: 'account_balance_var_samp_fields'; +export type Average_Block_Time_Per_Day_Var_Samp_Fields = { + __typename?: 'average_block_time_per_day_var_samp_fields'; + average_time?: Maybe; height?: Maybe; }; -/** order by var_samp() on columns of table "account_balance" */ -export type Account_Balance_Var_Samp_Order_By = { - height?: Maybe; -}; - /** aggregate variance on columns */ -export type Account_Balance_Variance_Fields = { - __typename?: 'account_balance_variance_fields'; +export type Average_Block_Time_Per_Day_Variance_Fields = { + __typename?: 'average_block_time_per_day_variance_fields'; + average_time?: Maybe; height?: Maybe; }; -/** order by variance() on columns of table "account_balance" */ -export type Account_Balance_Variance_Order_By = { - height?: Maybe; +/** 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 "account". All fields are combined with a logical 'AND'. */ -export type Account_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account_balance_histories?: Maybe; - account_balances?: Maybe; - address?: Maybe; - delegation_rewards?: Maybe; - delegations?: Maybe; - feeGrantAllowancesByGranterAddress?: Maybe; - fee_grant_allowances?: Maybe; - proposal_deposits?: Maybe; - proposal_votes?: Maybe; - proposals?: Maybe; - redelegations?: Maybe; - unbonding_delegations?: Maybe; - validator_infos?: Maybe; - vesting_account?: Maybe; - vesting_accounts?: Maybe; +/** aggregated selection of "average_block_time_per_hour" */ +export type Average_Block_Time_Per_Hour_Aggregate = { + __typename?: 'average_block_time_per_hour_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate max on columns */ -export type Account_Max_Fields = { - __typename?: 'account_max_fields'; - address?: Maybe; +/** aggregate fields of "average_block_time_per_hour" */ +export type Average_Block_Time_Per_Hour_Aggregate_Fields = { + __typename?: 'average_block_time_per_hour_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 min on columns */ -export type Account_Min_Fields = { - __typename?: 'account_min_fields'; - address?: Maybe; + +/** aggregate fields of "average_block_time_per_hour" */ +export type Average_Block_Time_Per_Hour_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; -/** Ordering options when selecting data from "account". */ -export type Account_Order_By = { - account_balance_histories_aggregate?: Maybe; - account_balances_aggregate?: Maybe; - address?: Maybe; - delegation_rewards_aggregate?: Maybe; - delegations_aggregate?: Maybe; - feeGrantAllowancesByGranterAddress_aggregate?: Maybe; - fee_grant_allowances_aggregate?: Maybe; - proposal_deposits_aggregate?: Maybe; - proposal_votes_aggregate?: Maybe; - proposals_aggregate?: Maybe; - redelegations_aggregate?: Maybe; - unbonding_delegations_aggregate?: Maybe; - validator_infos_aggregate?: Maybe; - vesting_account?: Maybe; - vesting_accounts_aggregate?: Maybe; -}; - -/** select columns of table "account" */ -export enum Account_Select_Column { - /** column name */ - Address = 'address' -} - -/** columns and relationships of "application_link" */ -export type Application_Link = { - __typename?: 'application_link'; - application: Scalars['String']; - /** An array relationship */ - application_link_oracle_requests: Array; - /** An aggregate relationship */ - application_link_oracle_requests_aggregate: Application_Link_Oracle_Request_Aggregate; - creation_time: Scalars['timestamp']; - height: Scalars['bigint']; - id: Scalars['Int']; - /** An object relationship */ - profile: Profile; - result?: Maybe; - state: Scalars['String']; - user_address: Scalars['String']; - username: Scalars['String']; -}; - - -/** columns and relationships of "application_link" */ -export type Application_LinkApplication_Link_Oracle_RequestsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "application_link" */ -export type Application_LinkApplication_Link_Oracle_Requests_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate avg on columns */ +export type Average_Block_Time_Per_Hour_Avg_Fields = { + __typename?: 'average_block_time_per_hour_avg_fields'; + average_time?: Maybe; + height?: Maybe; }; - -/** columns and relationships of "application_link" */ -export type Application_LinkResultArgs = { - path?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + average_time?: Maybe; + height?: Maybe; }; -/** aggregated selection of "application_link" */ -export type Application_Link_Aggregate = { - __typename?: 'application_link_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregate max on columns */ +export type Average_Block_Time_Per_Hour_Max_Fields = { + __typename?: 'average_block_time_per_hour_max_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** aggregate fields of "application_link" */ -export type Application_Link_Aggregate_Fields = { - __typename?: 'application_link_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 min on columns */ +export type Average_Block_Time_Per_Hour_Min_Fields = { + __typename?: 'average_block_time_per_hour_min_fields'; + average_time?: Maybe; + height?: Maybe; }; - -/** aggregate fields of "application_link" */ -export type Application_Link_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** Ordering options when selecting data from "average_block_time_per_hour". */ +export type Average_Block_Time_Per_Hour_Order_By = { + average_time?: Maybe; + height?: Maybe; }; -/** order by aggregate values of table "application_link" */ -export type Application_Link_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; +/** 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' +} -/** aggregate avg on columns */ -export type Application_Link_Avg_Fields = { - __typename?: 'application_link_avg_fields'; +/** aggregate stddev on columns */ +export type Average_Block_Time_Per_Hour_Stddev_Fields = { + __typename?: 'average_block_time_per_hour_stddev_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; }; -/** order by avg() on columns of table "application_link" */ -export type Application_Link_Avg_Order_By = { - height?: Maybe; - id?: Maybe; +/** aggregate stddev_pop on columns */ +export type Average_Block_Time_Per_Hour_Stddev_Pop_Fields = { + __typename?: 'average_block_time_per_hour_stddev_pop_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** Boolean expression to filter rows from the table "application_link". All fields are combined with a logical 'AND'. */ -export type Application_Link_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - application?: Maybe; - application_link_oracle_requests?: Maybe; - creation_time?: Maybe; - height?: Maybe; - id?: Maybe; - profile?: Maybe; - result?: Maybe; - state?: Maybe; - user_address?: Maybe; - username?: Maybe; +/** aggregate stddev_samp on columns */ +export type Average_Block_Time_Per_Hour_Stddev_Samp_Fields = { + __typename?: 'average_block_time_per_hour_stddev_samp_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** aggregate max on columns */ -export type Application_Link_Max_Fields = { - __typename?: 'application_link_max_fields'; - application?: Maybe; - creation_time?: Maybe; +/** aggregate sum on columns */ +export type Average_Block_Time_Per_Hour_Sum_Fields = { + __typename?: 'average_block_time_per_hour_sum_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - state?: Maybe; - user_address?: Maybe; - username?: Maybe; }; -/** order by max() on columns of table "application_link" */ -export type Application_Link_Max_Order_By = { - application?: Maybe; - creation_time?: Maybe; - height?: Maybe; - id?: Maybe; - state?: Maybe; - user_address?: Maybe; - username?: Maybe; +/** aggregate var_pop on columns */ +export type Average_Block_Time_Per_Hour_Var_Pop_Fields = { + __typename?: 'average_block_time_per_hour_var_pop_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** aggregate min on columns */ -export type Application_Link_Min_Fields = { - __typename?: 'application_link_min_fields'; - application?: Maybe; - creation_time?: Maybe; - height?: Maybe; - id?: Maybe; - state?: Maybe; - user_address?: Maybe; - username?: Maybe; +/** aggregate var_samp on columns */ +export type Average_Block_Time_Per_Hour_Var_Samp_Fields = { + __typename?: 'average_block_time_per_hour_var_samp_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** order by min() on columns of table "application_link" */ -export type Application_Link_Min_Order_By = { - application?: Maybe; - creation_time?: Maybe; - height?: Maybe; - id?: Maybe; - state?: Maybe; - user_address?: Maybe; - username?: Maybe; +/** aggregate variance on columns */ +export type Average_Block_Time_Per_Hour_Variance_Fields = { + __typename?: 'average_block_time_per_hour_variance_fields'; + average_time?: Maybe; + height?: Maybe; }; -/** columns and relationships of "application_link_oracle_request" */ -export type Application_Link_Oracle_Request = { - __typename?: 'application_link_oracle_request'; - /** An object relationship */ - application_link: Application_Link; - application_link_id: Scalars['bigint']; - call_data: Scalars['jsonb']; - client_id: Scalars['String']; +/** 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']; - id: Scalars['Int']; - request_id: Scalars['bigint']; - script_id: Scalars['bigint']; -}; - - -/** columns and relationships of "application_link_oracle_request" */ -export type Application_Link_Oracle_RequestCall_DataArgs = { - path?: Maybe; }; -/** aggregated selection of "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Aggregate = { - __typename?: 'application_link_oracle_request_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "average_block_time_per_minute" */ +export type Average_Block_Time_Per_Minute_Aggregate = { + __typename?: 'average_block_time_per_minute_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Aggregate_Fields = { - __typename?: 'application_link_oracle_request_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "average_block_time_per_minute" */ +export type Average_Block_Time_Per_Minute_Aggregate_Fields = { + __typename?: 'average_block_time_per_minute_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; + 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 "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "average_block_time_per_minute" */ +export type Average_Block_Time_Per_Minute_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - /** aggregate avg on columns */ -export type Application_Link_Oracle_Request_Avg_Fields = { - __typename?: 'application_link_oracle_request_avg_fields'; - application_link_id?: Maybe; +export type Average_Block_Time_Per_Minute_Avg_Fields = { + __typename?: 'average_block_time_per_minute_avg_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; -/** order by avg() on columns of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Avg_Order_By = { - application_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; -}; - -/** Boolean expression to filter rows from the table "application_link_oracle_request". All fields are combined with a logical 'AND'. */ -export type Application_Link_Oracle_Request_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - application_link?: Maybe; - application_link_id?: Maybe; - call_data?: Maybe; - client_id?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; /** aggregate max on columns */ -export type Application_Link_Oracle_Request_Max_Fields = { - __typename?: 'application_link_oracle_request_max_fields'; - application_link_id?: Maybe; - client_id?: Maybe; +export type Average_Block_Time_Per_Minute_Max_Fields = { + __typename?: 'average_block_time_per_minute_max_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; -}; - -/** order by max() on columns of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Max_Order_By = { - application_link_id?: Maybe; - client_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; /** aggregate min on columns */ -export type Application_Link_Oracle_Request_Min_Fields = { - __typename?: 'application_link_oracle_request_min_fields'; - application_link_id?: Maybe; - client_id?: Maybe; +export type Average_Block_Time_Per_Minute_Min_Fields = { + __typename?: 'average_block_time_per_minute_min_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; -}; - -/** order by min() on columns of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Min_Order_By = { - application_link_id?: Maybe; - client_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; -/** Ordering options when selecting data from "application_link_oracle_request". */ -export type Application_Link_Oracle_Request_Order_By = { - application_link?: Maybe; - application_link_id?: Maybe; - call_data?: Maybe; - client_id?: Maybe; +/** Ordering options when selecting data from "average_block_time_per_minute". */ +export type Average_Block_Time_Per_Minute_Order_By = { + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; -/** select columns of table "application_link_oracle_request" */ -export enum Application_Link_Oracle_Request_Select_Column { - /** column name */ - ApplicationLinkId = 'application_link_id', - /** column name */ - CallData = 'call_data', - /** column name */ - ClientId = 'client_id', - /** column name */ - Height = 'height', - /** column name */ - Id = 'id', +/** select columns of table "average_block_time_per_minute" */ +export enum Average_Block_Time_Per_Minute_Select_Column { /** column name */ - RequestId = 'request_id', + AverageTime = 'average_time', /** column name */ - ScriptId = 'script_id' + Height = 'height' } /** aggregate stddev on columns */ -export type Application_Link_Oracle_Request_Stddev_Fields = { - __typename?: 'application_link_oracle_request_stddev_fields'; - application_link_id?: Maybe; +export type Average_Block_Time_Per_Minute_Stddev_Fields = { + __typename?: 'average_block_time_per_minute_stddev_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; -}; - -/** order by stddev() on columns of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Stddev_Order_By = { - application_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Application_Link_Oracle_Request_Stddev_Pop_Fields = { - __typename?: 'application_link_oracle_request_stddev_pop_fields'; - application_link_id?: Maybe; +export type Average_Block_Time_Per_Minute_Stddev_Pop_Fields = { + __typename?: 'average_block_time_per_minute_stddev_pop_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; -}; - -/** order by stddev_pop() on columns of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Stddev_Pop_Order_By = { - application_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Application_Link_Oracle_Request_Stddev_Samp_Fields = { - __typename?: 'application_link_oracle_request_stddev_samp_fields'; - application_link_id?: Maybe; +export type Average_Block_Time_Per_Minute_Stddev_Samp_Fields = { + __typename?: 'average_block_time_per_minute_stddev_samp_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; -}; - -/** order by stddev_samp() on columns of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Stddev_Samp_Order_By = { - application_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; /** aggregate sum on columns */ -export type Application_Link_Oracle_Request_Sum_Fields = { - __typename?: 'application_link_oracle_request_sum_fields'; - application_link_id?: Maybe; +export type Average_Block_Time_Per_Minute_Sum_Fields = { + __typename?: 'average_block_time_per_minute_sum_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; -}; - -/** order by sum() on columns of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Sum_Order_By = { - application_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; /** aggregate var_pop on columns */ -export type Application_Link_Oracle_Request_Var_Pop_Fields = { - __typename?: 'application_link_oracle_request_var_pop_fields'; - application_link_id?: Maybe; +export type Average_Block_Time_Per_Minute_Var_Pop_Fields = { + __typename?: 'average_block_time_per_minute_var_pop_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; -}; - -/** order by var_pop() on columns of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Var_Pop_Order_By = { - application_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; /** aggregate var_samp on columns */ -export type Application_Link_Oracle_Request_Var_Samp_Fields = { - __typename?: 'application_link_oracle_request_var_samp_fields'; - application_link_id?: Maybe; +export type Average_Block_Time_Per_Minute_Var_Samp_Fields = { + __typename?: 'average_block_time_per_minute_var_samp_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; -}; - -/** order by var_samp() on columns of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Var_Samp_Order_By = { - application_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; /** aggregate variance on columns */ -export type Application_Link_Oracle_Request_Variance_Fields = { - __typename?: 'application_link_oracle_request_variance_fields'; - application_link_id?: Maybe; +export type Average_Block_Time_Per_Minute_Variance_Fields = { + __typename?: 'average_block_time_per_minute_variance_fields'; + average_time?: Maybe; height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; -}; - -/** order by variance() on columns of table "application_link_oracle_request" */ -export type Application_Link_Oracle_Request_Variance_Order_By = { - application_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - request_id?: Maybe; - script_id?: Maybe; }; -/** Ordering options when selecting data from "application_link". */ -export type Application_Link_Order_By = { - application?: Maybe; - application_link_oracle_requests_aggregate?: Maybe; - creation_time?: Maybe; - height?: Maybe; - id?: Maybe; - profile?: Maybe; - result?: Maybe; - state?: Maybe; - user_address?: Maybe; - username?: Maybe; -}; -/** select columns of table "application_link" */ -export enum Application_Link_Select_Column { - /** column name */ - Application = 'application', - /** column name */ - CreationTime = 'creation_time', - /** column name */ - Height = 'height', - /** column name */ - Id = 'id', - /** column name */ - Result = 'result', - /** column name */ - State = 'state', - /** column name */ - UserAddress = 'user_address', - /** column name */ - Username = 'username' -} - -/** aggregate stddev on columns */ -export type Application_Link_Stddev_Fields = { - __typename?: 'application_link_stddev_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** order by stddev() on columns of table "application_link" */ -export type Application_Link_Stddev_Order_By = { - height?: Maybe; - id?: Maybe; +/** Boolean expression to compare columns of type "bigint". All fields are combined with logical 'AND'. */ +export type Bigint_Comparison_Exp = { + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; }; -/** aggregate stddev_pop on columns */ -export type Application_Link_Stddev_Pop_Fields = { - __typename?: 'application_link_stddev_pop_fields'; - height?: Maybe; - id?: Maybe; +/** 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; + proposer_address?: Maybe; + timestamp: Scalars['timestamp']; + total_gas?: Maybe; + /** An array relationship */ + transactions: Array; + /** An aggregate relationship */ + transactions_aggregate: Transaction_Aggregate; + /** An object relationship */ + validator?: Maybe; + /** An array relationship */ + validator_voting_powers: Array; + /** An aggregate relationship */ + validator_voting_powers_aggregate: Validator_Voting_Power_Aggregate; }; -/** order by stddev_pop() on columns of table "application_link" */ -export type Application_Link_Stddev_Pop_Order_By = { - height?: Maybe; - id?: Maybe; -}; -/** aggregate stddev_samp on columns */ -export type Application_Link_Stddev_Samp_Fields = { - __typename?: 'application_link_stddev_samp_fields'; - height?: Maybe; - id?: Maybe; +/** columns and relationships of "block" */ +export type BlockPre_CommitsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by stddev_samp() on columns of table "application_link" */ -export type Application_Link_Stddev_Samp_Order_By = { - height?: Maybe; - id?: Maybe; -}; -/** aggregate sum on columns */ -export type Application_Link_Sum_Fields = { - __typename?: 'application_link_sum_fields'; - height?: Maybe; - id?: Maybe; +/** columns and relationships of "block" */ +export type BlockPre_Commits_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by sum() on columns of table "application_link" */ -export type Application_Link_Sum_Order_By = { - height?: Maybe; - id?: Maybe; -}; -/** aggregate var_pop on columns */ -export type Application_Link_Var_Pop_Fields = { - __typename?: 'application_link_var_pop_fields'; - height?: Maybe; - id?: Maybe; +/** columns and relationships of "block" */ +export type BlockTransactionsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by var_pop() on columns of table "application_link" */ -export type Application_Link_Var_Pop_Order_By = { - height?: Maybe; - id?: Maybe; -}; -/** aggregate var_samp on columns */ -export type Application_Link_Var_Samp_Fields = { - __typename?: 'application_link_var_samp_fields'; - height?: Maybe; - id?: Maybe; +/** columns and relationships of "block" */ +export type BlockTransactions_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by var_samp() on columns of table "application_link" */ -export type Application_Link_Var_Samp_Order_By = { - height?: Maybe; - id?: Maybe; -}; -/** aggregate variance on columns */ -export type Application_Link_Variance_Fields = { - __typename?: 'application_link_variance_fields'; - height?: Maybe; - id?: Maybe; +/** columns and relationships of "block" */ +export type BlockValidator_Voting_PowersArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by variance() on columns of table "application_link" */ -export type Application_Link_Variance_Order_By = { - height?: Maybe; - id?: Maybe; -}; -/** 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']; +/** columns and relationships of "block" */ +export type BlockValidator_Voting_Powers_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregated selection of "average_block_time_from_genesis" */ -export type Average_Block_Time_From_Genesis_Aggregate = { - __typename?: 'average_block_time_from_genesis_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "block" */ +export type Block_Aggregate = { + __typename?: 'block_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "average_block_time_from_genesis" */ -export type Average_Block_Time_From_Genesis_Aggregate_Fields = { - __typename?: 'average_block_time_from_genesis_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "block" */ +export type Block_Aggregate_Fields = { + __typename?: 'block_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; + 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 "average_block_time_from_genesis" */ -export type Average_Block_Time_From_Genesis_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "block" */ +export type Block_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; +/** order by aggregate values of table "block" */ +export type Block_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + /** aggregate avg on columns */ -export type Average_Block_Time_From_Genesis_Avg_Fields = { - __typename?: 'average_block_time_from_genesis_avg_fields'; - average_time?: Maybe; +export type Block_Avg_Fields = { + __typename?: 'block_avg_fields'; height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - average_time?: Maybe; +/** order by avg() on columns of table "block" */ +export type Block_Avg_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** Boolean expression to filter rows from the table "block". All fields are combined with a logical 'AND'. */ +export type Block_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + hash?: Maybe; height?: Maybe; + num_txs?: Maybe; + pre_commits?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; + transactions?: Maybe; + validator?: Maybe; + validator_voting_powers?: Maybe; }; /** aggregate max on columns */ -export type Average_Block_Time_From_Genesis_Max_Fields = { - __typename?: 'average_block_time_from_genesis_max_fields'; - average_time?: Maybe; +export type Block_Max_Fields = { + __typename?: 'block_max_fields'; + hash?: Maybe; height?: Maybe; + num_txs?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; +}; + +/** order by max() on columns of table "block" */ +export type Block_Max_Order_By = { + hash?: Maybe; + height?: Maybe; + num_txs?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; }; /** aggregate min on columns */ -export type Average_Block_Time_From_Genesis_Min_Fields = { - __typename?: 'average_block_time_from_genesis_min_fields'; - average_time?: Maybe; +export type Block_Min_Fields = { + __typename?: 'block_min_fields'; + hash?: Maybe; height?: Maybe; + num_txs?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; }; -/** Ordering options when selecting data from "average_block_time_from_genesis". */ -export type Average_Block_Time_From_Genesis_Order_By = { - average_time?: Maybe; - height?: Maybe; -}; +/** order by min() on columns of table "block" */ +export type Block_Min_Order_By = { + hash?: Maybe; + height?: Maybe; + num_txs?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; +}; -/** select columns of table "average_block_time_from_genesis" */ -export enum Average_Block_Time_From_Genesis_Select_Column { +/** Ordering options when selecting data from "block". */ +export type Block_Order_By = { + hash?: Maybe; + height?: Maybe; + num_txs?: Maybe; + pre_commits_aggregate?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; + transactions_aggregate?: Maybe; + validator?: Maybe; + validator_voting_powers_aggregate?: Maybe; +}; + +/** select columns of table "block" */ +export enum Block_Select_Column { /** column name */ - AverageTime = 'average_time', + Hash = 'hash', /** column name */ - Height = 'height' + Height = 'height', + /** column name */ + NumTxs = 'num_txs', + /** column name */ + ProposerAddress = 'proposer_address', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + TotalGas = 'total_gas' } /** aggregate stddev on columns */ -export type Average_Block_Time_From_Genesis_Stddev_Fields = { - __typename?: 'average_block_time_from_genesis_stddev_fields'; - average_time?: Maybe; +export type Block_Stddev_Fields = { + __typename?: 'block_stddev_fields'; height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by stddev() on columns of table "block" */ +export type Block_Stddev_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Average_Block_Time_From_Genesis_Stddev_Pop_Fields = { - __typename?: 'average_block_time_from_genesis_stddev_pop_fields'; - average_time?: Maybe; +export type Block_Stddev_Pop_Fields = { + __typename?: 'block_stddev_pop_fields'; height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by stddev_pop() on columns of table "block" */ +export type Block_Stddev_Pop_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Average_Block_Time_From_Genesis_Stddev_Samp_Fields = { - __typename?: 'average_block_time_from_genesis_stddev_samp_fields'; - average_time?: Maybe; +export type Block_Stddev_Samp_Fields = { + __typename?: 'block_stddev_samp_fields'; height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by stddev_samp() on columns of table "block" */ +export type Block_Stddev_Samp_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; }; /** aggregate sum on columns */ -export type Average_Block_Time_From_Genesis_Sum_Fields = { - __typename?: 'average_block_time_from_genesis_sum_fields'; - average_time?: Maybe; +export type Block_Sum_Fields = { + __typename?: 'block_sum_fields'; height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by sum() on columns of table "block" */ +export type Block_Sum_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; }; /** aggregate var_pop on columns */ -export type Average_Block_Time_From_Genesis_Var_Pop_Fields = { - __typename?: 'average_block_time_from_genesis_var_pop_fields'; - average_time?: Maybe; +export type Block_Var_Pop_Fields = { + __typename?: 'block_var_pop_fields'; height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by var_pop() on columns of table "block" */ +export type Block_Var_Pop_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; }; /** aggregate var_samp on columns */ -export type Average_Block_Time_From_Genesis_Var_Samp_Fields = { - __typename?: 'average_block_time_from_genesis_var_samp_fields'; - average_time?: Maybe; +export type Block_Var_Samp_Fields = { + __typename?: 'block_var_samp_fields'; height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by var_samp() on columns of table "block" */ +export type Block_Var_Samp_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; }; /** aggregate variance on columns */ -export type Average_Block_Time_From_Genesis_Variance_Fields = { - __typename?: 'average_block_time_from_genesis_variance_fields'; - average_time?: Maybe; +export type Block_Variance_Fields = { + __typename?: 'block_variance_fields'; height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; }; -/** 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']; +/** order by variance() on columns of table "block" */ +export type Block_Variance_Order_By = { + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** columns and relationships of "community_pool" */ +export type Community_Pool = { + __typename?: 'community_pool'; + coins: Scalars['_dec_coin']; height: Scalars['bigint']; }; -/** aggregated selection of "average_block_time_per_day" */ -export type Average_Block_Time_Per_Day_Aggregate = { - __typename?: 'average_block_time_per_day_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "community_pool" */ +export type Community_Pool_Aggregate = { + __typename?: 'community_pool_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "average_block_time_per_day" */ -export type Average_Block_Time_Per_Day_Aggregate_Fields = { - __typename?: 'average_block_time_per_day_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "community_pool" */ +export type Community_Pool_Aggregate_Fields = { + __typename?: 'community_pool_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; + 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 "average_block_time_per_day" */ -export type Average_Block_Time_Per_Day_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "community_pool" */ +export type Community_Pool_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; /** aggregate avg on columns */ -export type Average_Block_Time_Per_Day_Avg_Fields = { - __typename?: 'average_block_time_per_day_avg_fields'; - average_time?: Maybe; +export type Community_Pool_Avg_Fields = { + __typename?: 'community_pool_avg_fields'; height?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - average_time?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + coins?: Maybe<_Dec_Coin_Comparison_Exp>; height?: Maybe; }; /** aggregate max on columns */ -export type Average_Block_Time_Per_Day_Max_Fields = { - __typename?: 'average_block_time_per_day_max_fields'; - average_time?: Maybe; +export type Community_Pool_Max_Fields = { + __typename?: 'community_pool_max_fields'; height?: Maybe; }; /** aggregate min on columns */ -export type Average_Block_Time_Per_Day_Min_Fields = { - __typename?: 'average_block_time_per_day_min_fields'; - average_time?: Maybe; +export type Community_Pool_Min_Fields = { + __typename?: 'community_pool_min_fields'; height?: Maybe; }; -/** Ordering options when selecting data from "average_block_time_per_day". */ -export type Average_Block_Time_Per_Day_Order_By = { - average_time?: Maybe; +/** Ordering options when selecting data from "community_pool". */ +export type Community_Pool_Order_By = { + coins?: Maybe; height?: Maybe; }; -/** select columns of table "average_block_time_per_day" */ -export enum Average_Block_Time_Per_Day_Select_Column { +/** select columns of table "community_pool" */ +export enum Community_Pool_Select_Column { /** column name */ - AverageTime = 'average_time', + Coins = 'coins', /** column name */ Height = 'height' } /** aggregate stddev on columns */ -export type Average_Block_Time_Per_Day_Stddev_Fields = { - __typename?: 'average_block_time_per_day_stddev_fields'; - average_time?: Maybe; +export type Community_Pool_Stddev_Fields = { + __typename?: 'community_pool_stddev_fields'; height?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Average_Block_Time_Per_Day_Stddev_Pop_Fields = { - __typename?: 'average_block_time_per_day_stddev_pop_fields'; - average_time?: Maybe; +export type Community_Pool_Stddev_Pop_Fields = { + __typename?: 'community_pool_stddev_pop_fields'; height?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Average_Block_Time_Per_Day_Stddev_Samp_Fields = { - __typename?: 'average_block_time_per_day_stddev_samp_fields'; - average_time?: Maybe; +export type Community_Pool_Stddev_Samp_Fields = { + __typename?: 'community_pool_stddev_samp_fields'; height?: Maybe; }; /** aggregate sum on columns */ -export type Average_Block_Time_Per_Day_Sum_Fields = { - __typename?: 'average_block_time_per_day_sum_fields'; - average_time?: Maybe; +export type Community_Pool_Sum_Fields = { + __typename?: 'community_pool_sum_fields'; height?: Maybe; }; /** aggregate var_pop on columns */ -export type Average_Block_Time_Per_Day_Var_Pop_Fields = { - __typename?: 'average_block_time_per_day_var_pop_fields'; - average_time?: Maybe; +export type Community_Pool_Var_Pop_Fields = { + __typename?: 'community_pool_var_pop_fields'; height?: Maybe; }; /** aggregate var_samp on columns */ -export type Average_Block_Time_Per_Day_Var_Samp_Fields = { - __typename?: 'average_block_time_per_day_var_samp_fields'; - average_time?: Maybe; +export type Community_Pool_Var_Samp_Fields = { + __typename?: 'community_pool_var_samp_fields'; height?: Maybe; }; /** aggregate variance on columns */ -export type Average_Block_Time_Per_Day_Variance_Fields = { - __typename?: 'average_block_time_per_day_variance_fields'; - average_time?: Maybe; +export type Community_Pool_Variance_Fields = { + __typename?: 'community_pool_variance_fields'; height?: Maybe; }; -/** 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']; +/** columns and relationships of "cosmwasm_clear_admin" */ +export type Cosmwasm_Clear_Admin = { + __typename?: 'cosmwasm_clear_admin'; + contract: Scalars['String']; + index: Scalars['bigint']; + sender: Scalars['String']; + success: Scalars['Boolean']; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']; }; -/** aggregated selection of "average_block_time_per_hour" */ -export type Average_Block_Time_Per_Hour_Aggregate = { - __typename?: 'average_block_time_per_hour_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "cosmwasm_clear_admin" */ +export type Cosmwasm_Clear_Admin_Aggregate = { + __typename?: 'cosmwasm_clear_admin_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "average_block_time_per_hour" */ -export type Average_Block_Time_Per_Hour_Aggregate_Fields = { - __typename?: 'average_block_time_per_hour_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "cosmwasm_clear_admin" */ +export type Cosmwasm_Clear_Admin_Aggregate_Fields = { + __typename?: 'cosmwasm_clear_admin_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; + 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 "average_block_time_per_hour" */ -export type Average_Block_Time_Per_Hour_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "cosmwasm_clear_admin" */ +export type Cosmwasm_Clear_Admin_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; /** aggregate avg on columns */ -export type Average_Block_Time_Per_Hour_Avg_Fields = { - __typename?: 'average_block_time_per_hour_avg_fields'; - average_time?: Maybe; - height?: Maybe; +export type Cosmwasm_Clear_Admin_Avg_Fields = { + __typename?: 'cosmwasm_clear_admin_avg_fields'; + index?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - average_time?: Maybe; - height?: Maybe; +/** Boolean expression to filter rows from the table "cosmwasm_clear_admin". All fields are combined with a logical 'AND'. */ +export type Cosmwasm_Clear_Admin_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + contract?: Maybe; + index?: Maybe; + sender?: Maybe; + success?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; }; /** aggregate max on columns */ -export type Average_Block_Time_Per_Hour_Max_Fields = { - __typename?: 'average_block_time_per_hour_max_fields'; - average_time?: Maybe; - height?: Maybe; +export type Cosmwasm_Clear_Admin_Max_Fields = { + __typename?: 'cosmwasm_clear_admin_max_fields'; + contract?: Maybe; + index?: Maybe; + sender?: Maybe; + transaction_hash?: Maybe; }; /** aggregate min on columns */ -export type Average_Block_Time_Per_Hour_Min_Fields = { - __typename?: 'average_block_time_per_hour_min_fields'; - average_time?: Maybe; - height?: Maybe; +export type Cosmwasm_Clear_Admin_Min_Fields = { + __typename?: 'cosmwasm_clear_admin_min_fields'; + contract?: Maybe; + index?: Maybe; + sender?: Maybe; + transaction_hash?: Maybe; }; -/** Ordering options when selecting data from "average_block_time_per_hour". */ -export type Average_Block_Time_Per_Hour_Order_By = { - average_time?: Maybe; - height?: Maybe; +/** Ordering options when selecting data from "cosmwasm_clear_admin". */ +export type Cosmwasm_Clear_Admin_Order_By = { + contract?: Maybe; + index?: Maybe; + sender?: Maybe; + success?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; }; -/** select columns of table "average_block_time_per_hour" */ -export enum Average_Block_Time_Per_Hour_Select_Column { +/** select columns of table "cosmwasm_clear_admin" */ +export enum Cosmwasm_Clear_Admin_Select_Column { /** column name */ - AverageTime = 'average_time', + Contract = 'contract', /** column name */ - Height = 'height' + Index = 'index', + /** column name */ + Sender = 'sender', + /** column name */ + Success = 'success', + /** column name */ + TransactionHash = 'transaction_hash' } /** aggregate stddev on columns */ -export type Average_Block_Time_Per_Hour_Stddev_Fields = { - __typename?: 'average_block_time_per_hour_stddev_fields'; - average_time?: Maybe; - height?: Maybe; +export type Cosmwasm_Clear_Admin_Stddev_Fields = { + __typename?: 'cosmwasm_clear_admin_stddev_fields'; + index?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Average_Block_Time_Per_Hour_Stddev_Pop_Fields = { - __typename?: 'average_block_time_per_hour_stddev_pop_fields'; - average_time?: Maybe; - height?: Maybe; +export type Cosmwasm_Clear_Admin_Stddev_Pop_Fields = { + __typename?: 'cosmwasm_clear_admin_stddev_pop_fields'; + index?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Average_Block_Time_Per_Hour_Stddev_Samp_Fields = { - __typename?: 'average_block_time_per_hour_stddev_samp_fields'; - average_time?: Maybe; - height?: Maybe; +export type Cosmwasm_Clear_Admin_Stddev_Samp_Fields = { + __typename?: 'cosmwasm_clear_admin_stddev_samp_fields'; + index?: Maybe; }; /** aggregate sum on columns */ -export type Average_Block_Time_Per_Hour_Sum_Fields = { - __typename?: 'average_block_time_per_hour_sum_fields'; - average_time?: Maybe; - height?: Maybe; +export type Cosmwasm_Clear_Admin_Sum_Fields = { + __typename?: 'cosmwasm_clear_admin_sum_fields'; + index?: Maybe; }; /** aggregate var_pop on columns */ -export type Average_Block_Time_Per_Hour_Var_Pop_Fields = { - __typename?: 'average_block_time_per_hour_var_pop_fields'; - average_time?: Maybe; - height?: Maybe; +export type Cosmwasm_Clear_Admin_Var_Pop_Fields = { + __typename?: 'cosmwasm_clear_admin_var_pop_fields'; + index?: Maybe; }; /** aggregate var_samp on columns */ -export type Average_Block_Time_Per_Hour_Var_Samp_Fields = { - __typename?: 'average_block_time_per_hour_var_samp_fields'; - average_time?: Maybe; - height?: Maybe; +export type Cosmwasm_Clear_Admin_Var_Samp_Fields = { + __typename?: 'cosmwasm_clear_admin_var_samp_fields'; + index?: Maybe; }; /** aggregate variance on columns */ -export type Average_Block_Time_Per_Hour_Variance_Fields = { - __typename?: 'average_block_time_per_hour_variance_fields'; - average_time?: Maybe; - height?: Maybe; +export type Cosmwasm_Clear_Admin_Variance_Fields = { + __typename?: 'cosmwasm_clear_admin_variance_fields'; + index?: Maybe; }; -/** 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']; +/** columns and relationships of "cosmwasm_execute" */ +export type Cosmwasm_Execute = { + __typename?: 'cosmwasm_execute'; + arguments?: Maybe; + contract: Scalars['String']; + funds?: Maybe; + index: Scalars['bigint']; + method: Scalars['String']; + sender: Scalars['String']; + success: Scalars['Boolean']; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']; }; -/** aggregated selection of "average_block_time_per_minute" */ -export type Average_Block_Time_Per_Minute_Aggregate = { - __typename?: 'average_block_time_per_minute_aggregate'; - aggregate?: Maybe; - nodes: Array; + +/** columns and relationships of "cosmwasm_execute" */ +export type Cosmwasm_ExecuteArgumentsArgs = { + path?: Maybe; }; -/** aggregate fields of "average_block_time_per_minute" */ -export type Average_Block_Time_Per_Minute_Aggregate_Fields = { - __typename?: 'average_block_time_per_minute_aggregate_fields'; - avg?: Maybe; + +/** columns and relationships of "cosmwasm_execute" */ +export type Cosmwasm_ExecuteFundsArgs = { + path?: Maybe; +}; + +/** aggregated selection of "cosmwasm_execute" */ +export type Cosmwasm_Execute_Aggregate = { + __typename?: 'cosmwasm_execute_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "cosmwasm_execute" */ +export type Cosmwasm_Execute_Aggregate_Fields = { + __typename?: 'cosmwasm_execute_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; + 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 "average_block_time_per_minute" */ -export type Average_Block_Time_Per_Minute_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "cosmwasm_execute" */ +export type Cosmwasm_Execute_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; /** aggregate avg on columns */ -export type Average_Block_Time_Per_Minute_Avg_Fields = { - __typename?: 'average_block_time_per_minute_avg_fields'; - average_time?: Maybe; - height?: Maybe; +export type Cosmwasm_Execute_Avg_Fields = { + __typename?: 'cosmwasm_execute_avg_fields'; + index?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - average_time?: Maybe; - height?: Maybe; +/** Boolean expression to filter rows from the table "cosmwasm_execute". All fields are combined with a logical 'AND'. */ +export type Cosmwasm_Execute_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + arguments?: Maybe; + contract?: Maybe; + funds?: Maybe; + index?: Maybe; + method?: Maybe; + sender?: Maybe; + success?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; }; /** aggregate max on columns */ -export type Average_Block_Time_Per_Minute_Max_Fields = { - __typename?: 'average_block_time_per_minute_max_fields'; - average_time?: Maybe; - height?: Maybe; +export type Cosmwasm_Execute_Max_Fields = { + __typename?: 'cosmwasm_execute_max_fields'; + contract?: Maybe; + index?: Maybe; + method?: Maybe; + sender?: Maybe; + transaction_hash?: Maybe; }; /** aggregate min on columns */ -export type Average_Block_Time_Per_Minute_Min_Fields = { - __typename?: 'average_block_time_per_minute_min_fields'; - average_time?: Maybe; - height?: Maybe; +export type Cosmwasm_Execute_Min_Fields = { + __typename?: 'cosmwasm_execute_min_fields'; + contract?: Maybe; + index?: Maybe; + method?: Maybe; + sender?: Maybe; + transaction_hash?: Maybe; }; -/** Ordering options when selecting data from "average_block_time_per_minute". */ -export type Average_Block_Time_Per_Minute_Order_By = { - average_time?: Maybe; - height?: Maybe; +/** Ordering options when selecting data from "cosmwasm_execute". */ +export type Cosmwasm_Execute_Order_By = { + arguments?: Maybe; + contract?: Maybe; + funds?: Maybe; + index?: Maybe; + method?: Maybe; + sender?: Maybe; + success?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; }; -/** select columns of table "average_block_time_per_minute" */ -export enum Average_Block_Time_Per_Minute_Select_Column { +/** select columns of table "cosmwasm_execute" */ +export enum Cosmwasm_Execute_Select_Column { /** column name */ - AverageTime = 'average_time', + Arguments = 'arguments', /** column name */ - Height = 'height' + Contract = 'contract', + /** column name */ + Funds = 'funds', + /** column name */ + Index = 'index', + /** column name */ + Method = 'method', + /** column name */ + Sender = 'sender', + /** column name */ + Success = 'success', + /** column name */ + TransactionHash = 'transaction_hash' } /** aggregate stddev on columns */ -export type Average_Block_Time_Per_Minute_Stddev_Fields = { - __typename?: 'average_block_time_per_minute_stddev_fields'; - average_time?: Maybe; - height?: Maybe; +export type Cosmwasm_Execute_Stddev_Fields = { + __typename?: 'cosmwasm_execute_stddev_fields'; + index?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Average_Block_Time_Per_Minute_Stddev_Pop_Fields = { - __typename?: 'average_block_time_per_minute_stddev_pop_fields'; - average_time?: Maybe; - height?: Maybe; +export type Cosmwasm_Execute_Stddev_Pop_Fields = { + __typename?: 'cosmwasm_execute_stddev_pop_fields'; + index?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Average_Block_Time_Per_Minute_Stddev_Samp_Fields = { - __typename?: 'average_block_time_per_minute_stddev_samp_fields'; - average_time?: Maybe; - height?: Maybe; +export type Cosmwasm_Execute_Stddev_Samp_Fields = { + __typename?: 'cosmwasm_execute_stddev_samp_fields'; + index?: Maybe; }; /** aggregate sum on columns */ -export type Average_Block_Time_Per_Minute_Sum_Fields = { - __typename?: 'average_block_time_per_minute_sum_fields'; - average_time?: Maybe; - height?: Maybe; +export type Cosmwasm_Execute_Sum_Fields = { + __typename?: 'cosmwasm_execute_sum_fields'; + index?: Maybe; }; /** aggregate var_pop on columns */ -export type Average_Block_Time_Per_Minute_Var_Pop_Fields = { - __typename?: 'average_block_time_per_minute_var_pop_fields'; - average_time?: Maybe; - height?: Maybe; +export type Cosmwasm_Execute_Var_Pop_Fields = { + __typename?: 'cosmwasm_execute_var_pop_fields'; + index?: Maybe; }; /** aggregate var_samp on columns */ -export type Average_Block_Time_Per_Minute_Var_Samp_Fields = { - __typename?: 'average_block_time_per_minute_var_samp_fields'; - average_time?: Maybe; - height?: Maybe; +export type Cosmwasm_Execute_Var_Samp_Fields = { + __typename?: 'cosmwasm_execute_var_samp_fields'; + index?: Maybe; }; /** aggregate variance on columns */ -export type Average_Block_Time_Per_Minute_Variance_Fields = { - __typename?: 'average_block_time_per_minute_variance_fields'; - average_time?: Maybe; - height?: Maybe; +export type Cosmwasm_Execute_Variance_Fields = { + __typename?: 'cosmwasm_execute_variance_fields'; + index?: Maybe; +}; + +/** columns and relationships of "cosmwasm_instantiate" */ +export type Cosmwasm_Instantiate = { + __typename?: 'cosmwasm_instantiate'; + admin?: Maybe; + code_id: Scalars['String']; + funds?: Maybe; + index: Scalars['bigint']; + label: Scalars['String']; + result_contract_address?: Maybe; + sender: Scalars['String']; + success: Scalars['Boolean']; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']; }; -/** Boolean expression to compare columns of type "bigint". All fields are combined with logical 'AND'. */ -export type Bigint_Comparison_Exp = { - _eq?: Maybe; - _gt?: Maybe; - _gte?: Maybe; - _in?: Maybe>; - _is_null?: Maybe; - _lt?: Maybe; - _lte?: Maybe; - _neq?: Maybe; - _nin?: Maybe>; +/** columns and relationships of "cosmwasm_instantiate" */ +export type Cosmwasm_InstantiateFundsArgs = { + path?: Maybe; }; -/** 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; - proposer_address?: Maybe; - timestamp: Scalars['timestamp']; - total_gas?: Maybe; - /** An array relationship */ - transactions: Array; - /** An aggregate relationship */ - transactions_aggregate: Transaction_Aggregate; - /** An object relationship */ - validator?: Maybe; - /** An array relationship */ - validator_voting_powers: Array; - /** An aggregate relationship */ - validator_voting_powers_aggregate: Validator_Voting_Power_Aggregate; +/** aggregated selection of "cosmwasm_instantiate" */ +export type Cosmwasm_Instantiate_Aggregate = { + __typename?: 'cosmwasm_instantiate_aggregate'; + aggregate?: Maybe; + nodes: Array; }; - -/** columns and relationships of "block" */ -export type BlockPre_CommitsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate fields of "cosmwasm_instantiate" */ +export type Cosmwasm_Instantiate_Aggregate_Fields = { + __typename?: 'cosmwasm_instantiate_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; }; -/** columns and relationships of "block" */ -export type BlockPre_Commits_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate fields of "cosmwasm_instantiate" */ +export type Cosmwasm_Instantiate_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; +/** aggregate avg on columns */ +export type Cosmwasm_Instantiate_Avg_Fields = { + __typename?: 'cosmwasm_instantiate_avg_fields'; + index?: Maybe; +}; -/** columns and relationships of "block" */ -export type BlockTransactionsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** Boolean expression to filter rows from the table "cosmwasm_instantiate". All fields are combined with a logical 'AND'. */ +export type Cosmwasm_Instantiate_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + admin?: Maybe; + code_id?: Maybe; + funds?: Maybe; + index?: Maybe; + label?: Maybe; + result_contract_address?: Maybe; + sender?: Maybe; + success?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; }; +/** aggregate max on columns */ +export type Cosmwasm_Instantiate_Max_Fields = { + __typename?: 'cosmwasm_instantiate_max_fields'; + admin?: Maybe; + code_id?: Maybe; + index?: Maybe; + label?: Maybe; + result_contract_address?: Maybe; + sender?: Maybe; + transaction_hash?: Maybe; +}; -/** columns and relationships of "block" */ -export type BlockTransactions_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate min on columns */ +export type Cosmwasm_Instantiate_Min_Fields = { + __typename?: 'cosmwasm_instantiate_min_fields'; + admin?: Maybe; + code_id?: Maybe; + index?: Maybe; + label?: Maybe; + result_contract_address?: Maybe; + sender?: Maybe; + transaction_hash?: Maybe; }; +/** Ordering options when selecting data from "cosmwasm_instantiate". */ +export type Cosmwasm_Instantiate_Order_By = { + admin?: Maybe; + code_id?: Maybe; + funds?: Maybe; + index?: Maybe; + label?: Maybe; + result_contract_address?: Maybe; + sender?: Maybe; + success?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; +}; -/** columns and relationships of "block" */ -export type BlockValidator_Voting_PowersArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** select columns of table "cosmwasm_instantiate" */ +export enum Cosmwasm_Instantiate_Select_Column { + /** column name */ + Admin = 'admin', + /** column name */ + CodeId = 'code_id', + /** column name */ + Funds = 'funds', + /** column name */ + Index = 'index', + /** column name */ + Label = 'label', + /** column name */ + ResultContractAddress = 'result_contract_address', + /** column name */ + Sender = 'sender', + /** column name */ + Success = 'success', + /** column name */ + TransactionHash = 'transaction_hash' +} + +/** aggregate stddev on columns */ +export type Cosmwasm_Instantiate_Stddev_Fields = { + __typename?: 'cosmwasm_instantiate_stddev_fields'; + index?: Maybe; }; +/** aggregate stddev_pop on columns */ +export type Cosmwasm_Instantiate_Stddev_Pop_Fields = { + __typename?: 'cosmwasm_instantiate_stddev_pop_fields'; + index?: Maybe; +}; -/** columns and relationships of "block" */ -export type BlockValidator_Voting_Powers_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate stddev_samp on columns */ +export type Cosmwasm_Instantiate_Stddev_Samp_Fields = { + __typename?: 'cosmwasm_instantiate_stddev_samp_fields'; + index?: Maybe; }; -/** aggregated selection of "block" */ -export type Block_Aggregate = { - __typename?: 'block_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregate sum on columns */ +export type Cosmwasm_Instantiate_Sum_Fields = { + __typename?: 'cosmwasm_instantiate_sum_fields'; + index?: Maybe; }; -/** aggregate fields of "block" */ -export type Block_Aggregate_Fields = { - __typename?: 'block_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 var_pop on columns */ +export type Cosmwasm_Instantiate_Var_Pop_Fields = { + __typename?: 'cosmwasm_instantiate_var_pop_fields'; + index?: Maybe; }; +/** aggregate var_samp on columns */ +export type Cosmwasm_Instantiate_Var_Samp_Fields = { + __typename?: 'cosmwasm_instantiate_var_samp_fields'; + index?: Maybe; +}; -/** aggregate fields of "block" */ -export type Block_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** aggregate variance on columns */ +export type Cosmwasm_Instantiate_Variance_Fields = { + __typename?: 'cosmwasm_instantiate_variance_fields'; + index?: Maybe; }; -/** order by aggregate values of table "block" */ -export type Block_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; +/** columns and relationships of "cosmwasm_migrate" */ +export type Cosmwasm_Migrate = { + __typename?: 'cosmwasm_migrate'; + arguments?: Maybe; + code_id: Scalars['String']; + contract: Scalars['String']; + index: Scalars['bigint']; + sender: Scalars['String']; + success: Scalars['Boolean']; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']; }; -/** aggregate avg on columns */ -export type Block_Avg_Fields = { - __typename?: 'block_avg_fields'; - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; + +/** columns and relationships of "cosmwasm_migrate" */ +export type Cosmwasm_MigrateArgumentsArgs = { + path?: Maybe; }; -/** order by avg() on columns of table "block" */ -export type Block_Avg_Order_By = { - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +/** aggregated selection of "cosmwasm_migrate" */ +export type Cosmwasm_Migrate_Aggregate = { + __typename?: 'cosmwasm_migrate_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** Boolean expression to filter rows from the table "block". All fields are combined with a logical 'AND'. */ -export type Block_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - hash?: Maybe; - height?: Maybe; - num_txs?: Maybe; - pre_commits?: Maybe; - proposer_address?: Maybe; - timestamp?: Maybe; - total_gas?: Maybe; - transactions?: Maybe; - validator?: Maybe; - validator_voting_powers?: Maybe; +/** aggregate fields of "cosmwasm_migrate" */ +export type Cosmwasm_Migrate_Aggregate_Fields = { + __typename?: 'cosmwasm_migrate_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 max on columns */ -export type Block_Max_Fields = { - __typename?: 'block_max_fields'; - hash?: Maybe; - height?: Maybe; - num_txs?: Maybe; - proposer_address?: Maybe; - timestamp?: Maybe; - total_gas?: Maybe; + +/** aggregate fields of "cosmwasm_migrate" */ +export type Cosmwasm_Migrate_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; -/** order by max() on columns of table "block" */ -export type Block_Max_Order_By = { - hash?: Maybe; - height?: Maybe; - num_txs?: Maybe; - proposer_address?: Maybe; - timestamp?: Maybe; - total_gas?: Maybe; +/** aggregate avg on columns */ +export type Cosmwasm_Migrate_Avg_Fields = { + __typename?: 'cosmwasm_migrate_avg_fields'; + index?: Maybe; }; -/** aggregate min on columns */ -export type Block_Min_Fields = { - __typename?: 'block_min_fields'; - hash?: Maybe; - height?: Maybe; - num_txs?: Maybe; - proposer_address?: Maybe; - timestamp?: Maybe; - total_gas?: Maybe; +/** Boolean expression to filter rows from the table "cosmwasm_migrate". All fields are combined with a logical 'AND'. */ +export type Cosmwasm_Migrate_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + arguments?: Maybe; + code_id?: Maybe; + contract?: Maybe; + index?: Maybe; + sender?: Maybe; + success?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; }; -/** order by min() on columns of table "block" */ -export type Block_Min_Order_By = { - hash?: Maybe; - height?: Maybe; - num_txs?: Maybe; - proposer_address?: Maybe; - timestamp?: Maybe; - total_gas?: Maybe; +/** aggregate max on columns */ +export type Cosmwasm_Migrate_Max_Fields = { + __typename?: 'cosmwasm_migrate_max_fields'; + code_id?: Maybe; + contract?: Maybe; + index?: Maybe; + sender?: Maybe; + transaction_hash?: Maybe; }; -/** Ordering options when selecting data from "block". */ -export type Block_Order_By = { - hash?: Maybe; - height?: Maybe; - num_txs?: Maybe; - pre_commits_aggregate?: Maybe; - proposer_address?: Maybe; - timestamp?: Maybe; - total_gas?: Maybe; - transactions_aggregate?: Maybe; - validator?: Maybe; - validator_voting_powers_aggregate?: Maybe; +/** aggregate min on columns */ +export type Cosmwasm_Migrate_Min_Fields = { + __typename?: 'cosmwasm_migrate_min_fields'; + code_id?: Maybe; + contract?: Maybe; + index?: Maybe; + sender?: Maybe; + transaction_hash?: Maybe; }; -/** select columns of table "block" */ -export enum Block_Select_Column { +/** Ordering options when selecting data from "cosmwasm_migrate". */ +export type Cosmwasm_Migrate_Order_By = { + arguments?: Maybe; + code_id?: Maybe; + contract?: Maybe; + index?: Maybe; + sender?: Maybe; + success?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; +}; + +/** select columns of table "cosmwasm_migrate" */ +export enum Cosmwasm_Migrate_Select_Column { /** column name */ - Hash = 'hash', + Arguments = 'arguments', /** column name */ - Height = 'height', + CodeId = 'code_id', /** column name */ - NumTxs = 'num_txs', + Contract = 'contract', /** column name */ - ProposerAddress = 'proposer_address', + Index = 'index', /** column name */ - Timestamp = 'timestamp', + Sender = 'sender', /** column name */ - TotalGas = 'total_gas' + Success = 'success', + /** column name */ + TransactionHash = 'transaction_hash' } /** aggregate stddev on columns */ -export type Block_Stddev_Fields = { - __typename?: 'block_stddev_fields'; - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; -}; - -/** order by stddev() on columns of table "block" */ -export type Block_Stddev_Order_By = { - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +export type Cosmwasm_Migrate_Stddev_Fields = { + __typename?: 'cosmwasm_migrate_stddev_fields'; + index?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Block_Stddev_Pop_Fields = { - __typename?: 'block_stddev_pop_fields'; - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; -}; - -/** order by stddev_pop() on columns of table "block" */ -export type Block_Stddev_Pop_Order_By = { - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +export type Cosmwasm_Migrate_Stddev_Pop_Fields = { + __typename?: 'cosmwasm_migrate_stddev_pop_fields'; + index?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Block_Stddev_Samp_Fields = { - __typename?: 'block_stddev_samp_fields'; - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; -}; - -/** order by stddev_samp() on columns of table "block" */ -export type Block_Stddev_Samp_Order_By = { - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +export type Cosmwasm_Migrate_Stddev_Samp_Fields = { + __typename?: 'cosmwasm_migrate_stddev_samp_fields'; + index?: Maybe; }; /** aggregate sum on columns */ -export type Block_Sum_Fields = { - __typename?: 'block_sum_fields'; - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; -}; - -/** order by sum() on columns of table "block" */ -export type Block_Sum_Order_By = { - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +export type Cosmwasm_Migrate_Sum_Fields = { + __typename?: 'cosmwasm_migrate_sum_fields'; + index?: Maybe; }; /** aggregate var_pop on columns */ -export type Block_Var_Pop_Fields = { - __typename?: 'block_var_pop_fields'; - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; -}; - -/** order by var_pop() on columns of table "block" */ -export type Block_Var_Pop_Order_By = { - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +export type Cosmwasm_Migrate_Var_Pop_Fields = { + __typename?: 'cosmwasm_migrate_var_pop_fields'; + index?: Maybe; }; /** aggregate var_samp on columns */ -export type Block_Var_Samp_Fields = { - __typename?: 'block_var_samp_fields'; - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; -}; - -/** order by var_samp() on columns of table "block" */ -export type Block_Var_Samp_Order_By = { - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +export type Cosmwasm_Migrate_Var_Samp_Fields = { + __typename?: 'cosmwasm_migrate_var_samp_fields'; + index?: Maybe; }; /** aggregate variance on columns */ -export type Block_Variance_Fields = { - __typename?: 'block_variance_fields'; - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +export type Cosmwasm_Migrate_Variance_Fields = { + __typename?: 'cosmwasm_migrate_variance_fields'; + index?: Maybe; }; -/** order by variance() on columns of table "block" */ -export type Block_Variance_Order_By = { - height?: Maybe; - num_txs?: Maybe; - total_gas?: Maybe; +/** columns and relationships of "cosmwasm_store" */ +export type Cosmwasm_Store = { + __typename?: 'cosmwasm_store'; + index: Scalars['bigint']; + instantiate_permission?: Maybe; + result_code_id?: Maybe; + sender: Scalars['String']; + success: Scalars['Boolean']; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']; }; -/** columns and relationships of "chain_link" */ -export type Chain_Link = { - __typename?: 'chain_link'; - /** An object relationship */ - chain_config: Chain_Link_Chain_Config; - chain_config_id: Scalars['bigint']; - /** An array relationship */ - chain_link_proofs: Array; - /** An aggregate relationship */ - chain_link_proofs_aggregate: Chain_Link_Proof_Aggregate; - creation_time: Scalars['timestamp']; - external_address: Scalars['String']; - height: Scalars['bigint']; - id: Scalars['Int']; - /** An object relationship */ - profile: Profile; - /** An object relationship */ - proof?: Maybe; - user_address: Scalars['String']; + +/** columns and relationships of "cosmwasm_store" */ +export type Cosmwasm_StoreInstantiate_PermissionArgs = { + path?: Maybe; }; +/** aggregated selection of "cosmwasm_store" */ +export type Cosmwasm_Store_Aggregate = { + __typename?: 'cosmwasm_store_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; -/** columns and relationships of "chain_link" */ -export type Chain_LinkChain_Link_ProofsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate fields of "cosmwasm_store" */ +export type Cosmwasm_Store_Aggregate_Fields = { + __typename?: 'cosmwasm_store_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; }; -/** columns and relationships of "chain_link" */ -export type Chain_LinkChain_Link_Proofs_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate fields of "cosmwasm_store" */ +export type Cosmwasm_Store_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; -/** aggregated selection of "chain_link" */ -export type Chain_Link_Aggregate = { - __typename?: 'chain_link_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregate avg on columns */ +export type Cosmwasm_Store_Avg_Fields = { + __typename?: 'cosmwasm_store_avg_fields'; + index?: Maybe; }; -/** aggregate fields of "chain_link" */ -export type Chain_Link_Aggregate_Fields = { - __typename?: 'chain_link_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; +/** Boolean expression to filter rows from the table "cosmwasm_store". All fields are combined with a logical 'AND'. */ +export type Cosmwasm_Store_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + index?: Maybe; + instantiate_permission?: Maybe; + result_code_id?: Maybe; + sender?: Maybe; + success?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; }; +/** aggregate max on columns */ +export type Cosmwasm_Store_Max_Fields = { + __typename?: 'cosmwasm_store_max_fields'; + index?: Maybe; + result_code_id?: Maybe; + sender?: Maybe; + transaction_hash?: Maybe; +}; -/** aggregate fields of "chain_link" */ -export type Chain_Link_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** aggregate min on columns */ +export type Cosmwasm_Store_Min_Fields = { + __typename?: 'cosmwasm_store_min_fields'; + index?: Maybe; + result_code_id?: Maybe; + sender?: Maybe; + transaction_hash?: Maybe; }; -/** order by aggregate values of table "chain_link" */ -export type Chain_Link_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; +/** Ordering options when selecting data from "cosmwasm_store". */ +export type Cosmwasm_Store_Order_By = { + index?: Maybe; + instantiate_permission?: Maybe; + result_code_id?: Maybe; + sender?: Maybe; + success?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; }; -/** aggregate avg on columns */ -export type Chain_Link_Avg_Fields = { - __typename?: 'chain_link_avg_fields'; - chain_config_id?: Maybe; - height?: Maybe; - id?: Maybe; +/** select columns of table "cosmwasm_store" */ +export enum Cosmwasm_Store_Select_Column { + /** column name */ + Index = 'index', + /** column name */ + InstantiatePermission = 'instantiate_permission', + /** column name */ + ResultCodeId = 'result_code_id', + /** column name */ + Sender = 'sender', + /** column name */ + Success = 'success', + /** column name */ + TransactionHash = 'transaction_hash' +} + +/** aggregate stddev on columns */ +export type Cosmwasm_Store_Stddev_Fields = { + __typename?: 'cosmwasm_store_stddev_fields'; + index?: Maybe; }; -/** order by avg() on columns of table "chain_link" */ -export type Chain_Link_Avg_Order_By = { - chain_config_id?: Maybe; - height?: Maybe; - id?: Maybe; +/** aggregate stddev_pop on columns */ +export type Cosmwasm_Store_Stddev_Pop_Fields = { + __typename?: 'cosmwasm_store_stddev_pop_fields'; + index?: Maybe; }; -/** Boolean expression to filter rows from the table "chain_link". All fields are combined with a logical 'AND'. */ -export type Chain_Link_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - chain_config?: Maybe; - chain_config_id?: Maybe; - chain_link_proofs?: Maybe; - creation_time?: Maybe; - external_address?: Maybe; - height?: Maybe; - id?: Maybe; - profile?: Maybe; - proof?: Maybe; - user_address?: Maybe; +/** aggregate stddev_samp on columns */ +export type Cosmwasm_Store_Stddev_Samp_Fields = { + __typename?: 'cosmwasm_store_stddev_samp_fields'; + index?: Maybe; }; -/** columns and relationships of "chain_link_chain_config" */ -export type Chain_Link_Chain_Config = { - __typename?: 'chain_link_chain_config'; - /** An array relationship */ - chain_links: Array; - /** An aggregate relationship */ - chain_links_aggregate: Chain_Link_Aggregate; - id: Scalars['Int']; - name: Scalars['String']; +/** aggregate sum on columns */ +export type Cosmwasm_Store_Sum_Fields = { + __typename?: 'cosmwasm_store_sum_fields'; + index?: Maybe; }; +/** aggregate var_pop on columns */ +export type Cosmwasm_Store_Var_Pop_Fields = { + __typename?: 'cosmwasm_store_var_pop_fields'; + index?: Maybe; +}; -/** columns and relationships of "chain_link_chain_config" */ -export type Chain_Link_Chain_ConfigChain_LinksArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate var_samp on columns */ +export type Cosmwasm_Store_Var_Samp_Fields = { + __typename?: 'cosmwasm_store_var_samp_fields'; + index?: Maybe; }; +/** aggregate variance on columns */ +export type Cosmwasm_Store_Variance_Fields = { + __typename?: 'cosmwasm_store_variance_fields'; + index?: Maybe; +}; -/** columns and relationships of "chain_link_chain_config" */ -export type Chain_Link_Chain_ConfigChain_Links_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** columns and relationships of "cosmwasm_update_admin" */ +export type Cosmwasm_Update_Admin = { + __typename?: 'cosmwasm_update_admin'; + contract: Scalars['String']; + index: Scalars['bigint']; + new_admin: Scalars['String']; + sender: Scalars['String']; + success: Scalars['Boolean']; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']; }; -/** aggregated selection of "chain_link_chain_config" */ -export type Chain_Link_Chain_Config_Aggregate = { - __typename?: 'chain_link_chain_config_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "cosmwasm_update_admin" */ +export type Cosmwasm_Update_Admin_Aggregate = { + __typename?: 'cosmwasm_update_admin_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "chain_link_chain_config" */ -export type Chain_Link_Chain_Config_Aggregate_Fields = { - __typename?: 'chain_link_chain_config_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "cosmwasm_update_admin" */ +export type Cosmwasm_Update_Admin_Aggregate_Fields = { + __typename?: 'cosmwasm_update_admin_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; + 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 "chain_link_chain_config" */ -export type Chain_Link_Chain_Config_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "cosmwasm_update_admin" */ +export type Cosmwasm_Update_Admin_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; /** aggregate avg on columns */ -export type Chain_Link_Chain_Config_Avg_Fields = { - __typename?: 'chain_link_chain_config_avg_fields'; - id?: Maybe; +export type Cosmwasm_Update_Admin_Avg_Fields = { + __typename?: 'cosmwasm_update_admin_avg_fields'; + index?: Maybe; }; -/** Boolean expression to filter rows from the table "chain_link_chain_config". All fields are combined with a logical 'AND'. */ -export type Chain_Link_Chain_Config_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - chain_links?: Maybe; - id?: Maybe; - name?: Maybe; +/** Boolean expression to filter rows from the table "cosmwasm_update_admin". All fields are combined with a logical 'AND'. */ +export type Cosmwasm_Update_Admin_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + contract?: Maybe; + index?: Maybe; + new_admin?: Maybe; + sender?: Maybe; + success?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; }; /** aggregate max on columns */ -export type Chain_Link_Chain_Config_Max_Fields = { - __typename?: 'chain_link_chain_config_max_fields'; - id?: Maybe; - name?: Maybe; +export type Cosmwasm_Update_Admin_Max_Fields = { + __typename?: 'cosmwasm_update_admin_max_fields'; + contract?: Maybe; + index?: Maybe; + new_admin?: Maybe; + sender?: Maybe; + transaction_hash?: Maybe; }; /** aggregate min on columns */ -export type Chain_Link_Chain_Config_Min_Fields = { - __typename?: 'chain_link_chain_config_min_fields'; - id?: Maybe; - name?: Maybe; +export type Cosmwasm_Update_Admin_Min_Fields = { + __typename?: 'cosmwasm_update_admin_min_fields'; + contract?: Maybe; + index?: Maybe; + new_admin?: Maybe; + sender?: Maybe; + transaction_hash?: Maybe; }; -/** Ordering options when selecting data from "chain_link_chain_config". */ -export type Chain_Link_Chain_Config_Order_By = { - chain_links_aggregate?: Maybe; - id?: Maybe; - name?: Maybe; +/** Ordering options when selecting data from "cosmwasm_update_admin". */ +export type Cosmwasm_Update_Admin_Order_By = { + contract?: Maybe; + index?: Maybe; + new_admin?: Maybe; + sender?: Maybe; + success?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; }; -/** select columns of table "chain_link_chain_config" */ -export enum Chain_Link_Chain_Config_Select_Column { +/** select columns of table "cosmwasm_update_admin" */ +export enum Cosmwasm_Update_Admin_Select_Column { /** column name */ - Id = 'id', + Contract = 'contract', /** column name */ - Name = 'name' + Index = 'index', + /** column name */ + NewAdmin = 'new_admin', + /** column name */ + Sender = 'sender', + /** column name */ + Success = 'success', + /** column name */ + TransactionHash = 'transaction_hash' } /** aggregate stddev on columns */ -export type Chain_Link_Chain_Config_Stddev_Fields = { - __typename?: 'chain_link_chain_config_stddev_fields'; - id?: Maybe; +export type Cosmwasm_Update_Admin_Stddev_Fields = { + __typename?: 'cosmwasm_update_admin_stddev_fields'; + index?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Chain_Link_Chain_Config_Stddev_Pop_Fields = { - __typename?: 'chain_link_chain_config_stddev_pop_fields'; - id?: Maybe; +export type Cosmwasm_Update_Admin_Stddev_Pop_Fields = { + __typename?: 'cosmwasm_update_admin_stddev_pop_fields'; + index?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Chain_Link_Chain_Config_Stddev_Samp_Fields = { - __typename?: 'chain_link_chain_config_stddev_samp_fields'; - id?: Maybe; +export type Cosmwasm_Update_Admin_Stddev_Samp_Fields = { + __typename?: 'cosmwasm_update_admin_stddev_samp_fields'; + index?: Maybe; }; /** aggregate sum on columns */ -export type Chain_Link_Chain_Config_Sum_Fields = { - __typename?: 'chain_link_chain_config_sum_fields'; - id?: Maybe; +export type Cosmwasm_Update_Admin_Sum_Fields = { + __typename?: 'cosmwasm_update_admin_sum_fields'; + index?: Maybe; }; /** aggregate var_pop on columns */ -export type Chain_Link_Chain_Config_Var_Pop_Fields = { - __typename?: 'chain_link_chain_config_var_pop_fields'; - id?: Maybe; +export type Cosmwasm_Update_Admin_Var_Pop_Fields = { + __typename?: 'cosmwasm_update_admin_var_pop_fields'; + index?: Maybe; }; /** aggregate var_samp on columns */ -export type Chain_Link_Chain_Config_Var_Samp_Fields = { - __typename?: 'chain_link_chain_config_var_samp_fields'; - id?: Maybe; +export type Cosmwasm_Update_Admin_Var_Samp_Fields = { + __typename?: 'cosmwasm_update_admin_var_samp_fields'; + index?: Maybe; }; /** aggregate variance on columns */ -export type Chain_Link_Chain_Config_Variance_Fields = { - __typename?: 'chain_link_chain_config_variance_fields'; - id?: Maybe; -}; - -/** aggregate max on columns */ -export type Chain_Link_Max_Fields = { - __typename?: 'chain_link_max_fields'; - chain_config_id?: Maybe; - creation_time?: Maybe; - external_address?: Maybe; - height?: Maybe; - id?: Maybe; - user_address?: Maybe; -}; - -/** order by max() on columns of table "chain_link" */ -export type Chain_Link_Max_Order_By = { - chain_config_id?: Maybe; - creation_time?: Maybe; - external_address?: Maybe; - height?: Maybe; - id?: Maybe; - user_address?: Maybe; -}; - -/** aggregate min on columns */ -export type Chain_Link_Min_Fields = { - __typename?: 'chain_link_min_fields'; - chain_config_id?: Maybe; - creation_time?: Maybe; - external_address?: Maybe; - height?: Maybe; - id?: Maybe; - user_address?: Maybe; -}; - -/** order by min() on columns of table "chain_link" */ -export type Chain_Link_Min_Order_By = { - chain_config_id?: Maybe; - creation_time?: Maybe; - external_address?: Maybe; - height?: Maybe; - id?: Maybe; - user_address?: Maybe; -}; - -/** Ordering options when selecting data from "chain_link". */ -export type Chain_Link_Order_By = { - chain_config?: Maybe; - chain_config_id?: Maybe; - chain_link_proofs_aggregate?: Maybe; - creation_time?: Maybe; - external_address?: Maybe; - height?: Maybe; - id?: Maybe; - profile?: Maybe; - proof?: Maybe; - user_address?: Maybe; +export type Cosmwasm_Update_Admin_Variance_Fields = { + __typename?: 'cosmwasm_update_admin_variance_fields'; + index?: Maybe; }; -/** columns and relationships of "chain_link_proof" */ -export type Chain_Link_Proof = { - __typename?: 'chain_link_proof'; - /** An object relationship */ - chain_link: Chain_Link; - chain_link_id: Scalars['bigint']; +/** columns and relationships of "distribution_params" */ +export type Distribution_Params = { + __typename?: 'distribution_params'; height: Scalars['bigint']; - id: Scalars['Int']; - plain_text: Scalars['String']; - public_key: Scalars['jsonb']; - signature: Scalars['String']; + one_row_id: Scalars['Boolean']; + params: Scalars['jsonb']; }; -/** columns and relationships of "chain_link_proof" */ -export type Chain_Link_ProofPublic_KeyArgs = { +/** columns and relationships of "distribution_params" */ +export type Distribution_ParamsParamsArgs = { path?: Maybe; }; -/** aggregated selection of "chain_link_proof" */ -export type Chain_Link_Proof_Aggregate = { - __typename?: 'chain_link_proof_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "chain_link_proof" */ -export type Chain_Link_Proof_Aggregate_Fields = { - __typename?: 'chain_link_proof_aggregate_fields'; - avg?: Maybe; +/** aggregated selection of "distribution_params" */ +export type Distribution_Params_Aggregate = { + __typename?: 'distribution_params_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "distribution_params" */ +export type Distribution_Params_Aggregate_Fields = { + __typename?: 'distribution_params_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; + 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 "chain_link_proof" */ -export type Chain_Link_Proof_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "distribution_params" */ +export type Distribution_Params_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "chain_link_proof" */ -export type Chain_Link_Proof_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - /** aggregate avg on columns */ -export type Chain_Link_Proof_Avg_Fields = { - __typename?: 'chain_link_proof_avg_fields'; - chain_link_id?: Maybe; +export type Distribution_Params_Avg_Fields = { + __typename?: 'distribution_params_avg_fields'; height?: Maybe; - id?: Maybe; -}; - -/** order by avg() on columns of table "chain_link_proof" */ -export type Chain_Link_Proof_Avg_Order_By = { - chain_link_id?: Maybe; - height?: Maybe; - id?: Maybe; }; -/** Boolean expression to filter rows from the table "chain_link_proof". All fields are combined with a logical 'AND'. */ -export type Chain_Link_Proof_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - chain_link?: Maybe; - chain_link_id?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; height?: Maybe; - id?: Maybe; - plain_text?: Maybe; - public_key?: Maybe; - signature?: Maybe; + one_row_id?: Maybe; + params?: Maybe; }; /** aggregate max on columns */ -export type Chain_Link_Proof_Max_Fields = { - __typename?: 'chain_link_proof_max_fields'; - chain_link_id?: Maybe; +export type Distribution_Params_Max_Fields = { + __typename?: 'distribution_params_max_fields'; height?: Maybe; - id?: Maybe; - plain_text?: Maybe; - signature?: Maybe; -}; - -/** order by max() on columns of table "chain_link_proof" */ -export type Chain_Link_Proof_Max_Order_By = { - chain_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - plain_text?: Maybe; - signature?: Maybe; }; /** aggregate min on columns */ -export type Chain_Link_Proof_Min_Fields = { - __typename?: 'chain_link_proof_min_fields'; - chain_link_id?: Maybe; +export type Distribution_Params_Min_Fields = { + __typename?: 'distribution_params_min_fields'; height?: Maybe; - id?: Maybe; - plain_text?: Maybe; - signature?: Maybe; -}; - -/** order by min() on columns of table "chain_link_proof" */ -export type Chain_Link_Proof_Min_Order_By = { - chain_link_id?: Maybe; - height?: Maybe; - id?: Maybe; - plain_text?: Maybe; - signature?: Maybe; }; -/** Ordering options when selecting data from "chain_link_proof". */ -export type Chain_Link_Proof_Order_By = { - chain_link?: Maybe; - chain_link_id?: Maybe; +/** Ordering options when selecting data from "distribution_params". */ +export type Distribution_Params_Order_By = { height?: Maybe; - id?: Maybe; - plain_text?: Maybe; - public_key?: Maybe; - signature?: Maybe; + one_row_id?: Maybe; + params?: Maybe; }; -/** select columns of table "chain_link_proof" */ -export enum Chain_Link_Proof_Select_Column { - /** column name */ - ChainLinkId = 'chain_link_id', +/** select columns of table "distribution_params" */ +export enum Distribution_Params_Select_Column { /** column name */ Height = 'height', /** column name */ - Id = 'id', - /** column name */ - PlainText = 'plain_text', - /** column name */ - PublicKey = 'public_key', + OneRowId = 'one_row_id', /** column name */ - Signature = 'signature' + Params = 'params' } /** aggregate stddev on columns */ -export type Chain_Link_Proof_Stddev_Fields = { - __typename?: 'chain_link_proof_stddev_fields'; - chain_link_id?: Maybe; +export type Distribution_Params_Stddev_Fields = { + __typename?: 'distribution_params_stddev_fields'; height?: Maybe; - id?: Maybe; -}; - -/** order by stddev() on columns of table "chain_link_proof" */ -export type Chain_Link_Proof_Stddev_Order_By = { - chain_link_id?: Maybe; - height?: Maybe; - id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Chain_Link_Proof_Stddev_Pop_Fields = { - __typename?: 'chain_link_proof_stddev_pop_fields'; - chain_link_id?: Maybe; +export type Distribution_Params_Stddev_Pop_Fields = { + __typename?: 'distribution_params_stddev_pop_fields'; height?: Maybe; - id?: Maybe; -}; - -/** order by stddev_pop() on columns of table "chain_link_proof" */ -export type Chain_Link_Proof_Stddev_Pop_Order_By = { - chain_link_id?: Maybe; - height?: Maybe; - id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Chain_Link_Proof_Stddev_Samp_Fields = { - __typename?: 'chain_link_proof_stddev_samp_fields'; - chain_link_id?: Maybe; +export type Distribution_Params_Stddev_Samp_Fields = { + __typename?: 'distribution_params_stddev_samp_fields'; height?: Maybe; - id?: Maybe; -}; - -/** order by stddev_samp() on columns of table "chain_link_proof" */ -export type Chain_Link_Proof_Stddev_Samp_Order_By = { - chain_link_id?: Maybe; - height?: Maybe; - id?: Maybe; }; /** aggregate sum on columns */ -export type Chain_Link_Proof_Sum_Fields = { - __typename?: 'chain_link_proof_sum_fields'; - chain_link_id?: Maybe; +export type Distribution_Params_Sum_Fields = { + __typename?: 'distribution_params_sum_fields'; height?: Maybe; - id?: Maybe; -}; - -/** order by sum() on columns of table "chain_link_proof" */ -export type Chain_Link_Proof_Sum_Order_By = { - chain_link_id?: Maybe; - height?: Maybe; - id?: Maybe; }; /** aggregate var_pop on columns */ -export type Chain_Link_Proof_Var_Pop_Fields = { - __typename?: 'chain_link_proof_var_pop_fields'; - chain_link_id?: Maybe; +export type Distribution_Params_Var_Pop_Fields = { + __typename?: 'distribution_params_var_pop_fields'; height?: Maybe; - id?: Maybe; -}; - -/** order by var_pop() on columns of table "chain_link_proof" */ -export type Chain_Link_Proof_Var_Pop_Order_By = { - chain_link_id?: Maybe; - height?: Maybe; - id?: Maybe; }; /** aggregate var_samp on columns */ -export type Chain_Link_Proof_Var_Samp_Fields = { - __typename?: 'chain_link_proof_var_samp_fields'; - chain_link_id?: Maybe; +export type Distribution_Params_Var_Samp_Fields = { + __typename?: 'distribution_params_var_samp_fields'; height?: Maybe; - id?: Maybe; -}; - -/** order by var_samp() on columns of table "chain_link_proof" */ -export type Chain_Link_Proof_Var_Samp_Order_By = { - chain_link_id?: Maybe; - height?: Maybe; - id?: Maybe; }; /** aggregate variance on columns */ -export type Chain_Link_Proof_Variance_Fields = { - __typename?: 'chain_link_proof_variance_fields'; - chain_link_id?: Maybe; +export type Distribution_Params_Variance_Fields = { + __typename?: 'distribution_params_variance_fields'; height?: Maybe; - id?: Maybe; }; -/** order by variance() on columns of table "chain_link_proof" */ -export type Chain_Link_Proof_Variance_Order_By = { - chain_link_id?: Maybe; - height?: Maybe; - id?: Maybe; +/** 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']; }; -/** select columns of table "chain_link" */ -export enum Chain_Link_Select_Column { - /** column name */ - ChainConfigId = 'chain_config_id', - /** column name */ - CreationTime = 'creation_time', - /** column name */ - ExternalAddress = 'external_address', - /** column name */ - Height = 'height', - /** column name */ - Id = 'id', - /** column name */ - UserAddress = 'user_address' -} - -/** aggregate stddev on columns */ -export type Chain_Link_Stddev_Fields = { - __typename?: 'chain_link_stddev_fields'; - chain_config_id?: Maybe; - height?: Maybe; - id?: Maybe; +/** aggregated selection of "double_sign_evidence" */ +export type Double_Sign_Evidence_Aggregate = { + __typename?: 'double_sign_evidence_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** order by stddev() on columns of table "chain_link" */ -export type Chain_Link_Stddev_Order_By = { - chain_config_id?: Maybe; - height?: Maybe; - id?: Maybe; +/** aggregate fields of "double_sign_evidence" */ +export type Double_Sign_Evidence_Aggregate_Fields = { + __typename?: 'double_sign_evidence_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 stddev_pop on columns */ -export type Chain_Link_Stddev_Pop_Fields = { - __typename?: 'chain_link_stddev_pop_fields'; - chain_config_id?: Maybe; - height?: Maybe; - id?: Maybe; + +/** aggregate fields of "double_sign_evidence" */ +export type Double_Sign_Evidence_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; -/** order by stddev_pop() on columns of table "chain_link" */ -export type Chain_Link_Stddev_Pop_Order_By = { - chain_config_id?: Maybe; - height?: Maybe; - id?: Maybe; +/** order by aggregate values of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; -/** aggregate stddev_samp on columns */ -export type Chain_Link_Stddev_Samp_Fields = { - __typename?: 'chain_link_stddev_samp_fields'; - chain_config_id?: Maybe; +/** aggregate avg on columns */ +export type Double_Sign_Evidence_Avg_Fields = { + __typename?: 'double_sign_evidence_avg_fields'; height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** order by stddev_samp() on columns of table "chain_link" */ -export type Chain_Link_Stddev_Samp_Order_By = { - chain_config_id?: Maybe; +/** order by avg() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Avg_Order_By = { height?: Maybe; - id?: Maybe; -}; - -/** aggregate sum on columns */ -export type Chain_Link_Sum_Fields = { - __typename?: 'chain_link_sum_fields'; - chain_config_id?: Maybe; - height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** order by sum() on columns of table "chain_link" */ -export type Chain_Link_Sum_Order_By = { - chain_config_id?: Maybe; - height?: Maybe; - id?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + doubleSignVoteByVoteAId?: Maybe; + double_sign_vote?: Maybe; + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** aggregate var_pop on columns */ -export type Chain_Link_Var_Pop_Fields = { - __typename?: 'chain_link_var_pop_fields'; - chain_config_id?: Maybe; - height?: Maybe; - id?: Maybe; +/** aggregate max on columns */ +export type Double_Sign_Evidence_Max_Fields = { + __typename?: 'double_sign_evidence_max_fields'; + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** order by var_pop() on columns of table "chain_link" */ -export type Chain_Link_Var_Pop_Order_By = { - chain_config_id?: Maybe; +/** order by max() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Max_Order_By = { height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** aggregate var_samp on columns */ -export type Chain_Link_Var_Samp_Fields = { - __typename?: 'chain_link_var_samp_fields'; - chain_config_id?: Maybe; - height?: Maybe; - id?: Maybe; +/** aggregate min on columns */ +export type Double_Sign_Evidence_Min_Fields = { + __typename?: 'double_sign_evidence_min_fields'; + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** order by var_samp() on columns of table "chain_link" */ -export type Chain_Link_Var_Samp_Order_By = { - chain_config_id?: Maybe; +/** order by min() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Min_Order_By = { height?: Maybe; - id?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** aggregate variance on columns */ -export type Chain_Link_Variance_Fields = { - __typename?: 'chain_link_variance_fields'; - chain_config_id?: Maybe; - height?: Maybe; - id?: Maybe; +/** Ordering options when selecting data from "double_sign_evidence". */ +export type Double_Sign_Evidence_Order_By = { + doubleSignVoteByVoteAId?: Maybe; + double_sign_vote?: Maybe; + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** order by variance() on columns of table "chain_link" */ -export type Chain_Link_Variance_Order_By = { - chain_config_id?: Maybe; - height?: Maybe; - id?: Maybe; -}; - - -/** Boolean expression to compare columns of type "coin". All fields are combined with logical 'AND'. */ -export type Coin_Comparison_Exp = { - _eq?: Maybe; - _gt?: Maybe; - _gte?: Maybe; - _in?: Maybe>; - _is_null?: Maybe; - _lt?: Maybe; - _lte?: Maybe; - _neq?: Maybe; - _nin?: Maybe>; -}; +/** 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' +} -/** columns and relationships of "community_pool" */ -export type Community_Pool = { - __typename?: 'community_pool'; - coins: Scalars['_dec_coin']; - height: Scalars['bigint']; +/** aggregate stddev on columns */ +export type Double_Sign_Evidence_Stddev_Fields = { + __typename?: 'double_sign_evidence_stddev_fields'; + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** aggregated selection of "community_pool" */ -export type Community_Pool_Aggregate = { - __typename?: 'community_pool_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** order by stddev() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Stddev_Order_By = { + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** aggregate fields of "community_pool" */ -export type Community_Pool_Aggregate_Fields = { - __typename?: 'community_pool_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 stddev_pop on columns */ +export type Double_Sign_Evidence_Stddev_Pop_Fields = { + __typename?: 'double_sign_evidence_stddev_pop_fields'; + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; - -/** aggregate fields of "community_pool" */ -export type Community_Pool_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** order by stddev_pop() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Stddev_Pop_Order_By = { + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** aggregate avg on columns */ -export type Community_Pool_Avg_Fields = { - __typename?: 'community_pool_avg_fields'; +/** aggregate stddev_samp on columns */ +export type Double_Sign_Evidence_Stddev_Samp_Fields = { + __typename?: 'double_sign_evidence_stddev_samp_fields'; height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - coins?: Maybe<_Dec_Coin_Comparison_Exp>; - height?: Maybe; -}; - -/** aggregate max on columns */ -export type Community_Pool_Max_Fields = { - __typename?: 'community_pool_max_fields'; - height?: Maybe; +/** order by stddev_samp() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Stddev_Samp_Order_By = { + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** aggregate min on columns */ -export type Community_Pool_Min_Fields = { - __typename?: 'community_pool_min_fields'; +/** aggregate sum on columns */ +export type Double_Sign_Evidence_Sum_Fields = { + __typename?: 'double_sign_evidence_sum_fields'; height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** Ordering options when selecting data from "community_pool". */ -export type Community_Pool_Order_By = { - coins?: Maybe; +/** order by sum() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Sum_Order_By = { height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** select columns of table "community_pool" */ -export enum Community_Pool_Select_Column { - /** column name */ - Coins = 'coins', - /** column name */ - Height = 'height' -} - -/** aggregate stddev on columns */ -export type Community_Pool_Stddev_Fields = { - __typename?: 'community_pool_stddev_fields'; +/** aggregate var_pop on columns */ +export type Double_Sign_Evidence_Var_Pop_Fields = { + __typename?: 'double_sign_evidence_var_pop_fields'; height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Community_Pool_Stddev_Pop_Fields = { - __typename?: 'community_pool_stddev_pop_fields'; - height?: Maybe; +/** order by var_pop() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Var_Pop_Order_By = { + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** aggregate stddev_samp on columns */ -export type Community_Pool_Stddev_Samp_Fields = { - __typename?: 'community_pool_stddev_samp_fields'; +/** aggregate var_samp on columns */ +export type Double_Sign_Evidence_Var_Samp_Fields = { + __typename?: 'double_sign_evidence_var_samp_fields'; height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** aggregate sum on columns */ -export type Community_Pool_Sum_Fields = { - __typename?: 'community_pool_sum_fields'; - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Community_Pool_Var_Pop_Fields = { - __typename?: 'community_pool_var_pop_fields'; - height?: Maybe; +/** order by var_samp() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Var_Samp_Order_By = { + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** aggregate var_samp on columns */ -export type Community_Pool_Var_Samp_Fields = { - __typename?: 'community_pool_var_samp_fields'; +/** aggregate variance on columns */ +export type Double_Sign_Evidence_Variance_Fields = { + __typename?: 'double_sign_evidence_variance_fields'; height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** aggregate variance on columns */ -export type Community_Pool_Variance_Fields = { - __typename?: 'community_pool_variance_fields'; - height?: Maybe; +/** order by variance() on columns of table "double_sign_evidence" */ +export type Double_Sign_Evidence_Variance_Order_By = { + height?: Maybe; + vote_a_id?: Maybe; + vote_b_id?: Maybe; }; -/** columns and relationships of "delegation" */ -export type Delegation = { - __typename?: 'delegation'; - /** An object relationship */ - account: Account; - amount: Scalars['coin']; - delegator_address: Scalars['String']; +/** 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 aggregate relationship */ + doubleSignEvidencesByVoteBId_aggregate: Double_Sign_Evidence_Aggregate; + /** An array relationship */ + double_sign_evidences: Array; + /** An aggregate relationship */ + double_sign_evidences_aggregate: Double_Sign_Evidence_Aggregate; height: Scalars['bigint']; id: Scalars['Int']; - /** A computed field, executes function "is_delegation_self_delegate" */ - is_self_delegate?: Maybe; + round: Scalars['Int']; + signature: Scalars['String']; + type: Scalars['smallint']; /** An object relationship */ validator: Validator; validator_address: Scalars['String']; -}; - -/** aggregated selection of "delegation" */ -export type Delegation_Aggregate = { - __typename?: 'delegation_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "delegation" */ -export type Delegation_Aggregate_Fields = { - __typename?: 'delegation_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; + validator_index: Scalars['Int']; }; -/** aggregate fields of "delegation" */ -export type Delegation_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** columns and relationships of "double_sign_vote" */ +export type Double_Sign_VoteDoubleSignEvidencesByVoteBIdArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by aggregate values of table "delegation" */ -export type Delegation_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; -/** aggregate avg on columns */ -export type Delegation_Avg_Fields = { - __typename?: 'delegation_avg_fields'; - height?: Maybe; - id?: Maybe; +/** columns and relationships of "double_sign_vote" */ +export type Double_Sign_VoteDoubleSignEvidencesByVoteBId_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by avg() on columns of table "delegation" */ -export type Delegation_Avg_Order_By = { - height?: Maybe; - id?: Maybe; -}; -/** Boolean expression to filter rows from the table "delegation". All fields are combined with a logical 'AND'. */ -export type Delegation_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account?: Maybe; - amount?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - id?: Maybe; - is_self_delegate?: Maybe; - validator?: Maybe; - validator_address?: Maybe; +/** columns and relationships of "double_sign_vote" */ +export type Double_Sign_VoteDouble_Sign_EvidencesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate max on columns */ -export type Delegation_Max_Fields = { - __typename?: 'delegation_max_fields'; - delegator_address?: Maybe; - height?: Maybe; - id?: Maybe; - validator_address?: Maybe; -}; -/** order by max() on columns of table "delegation" */ -export type Delegation_Max_Order_By = { - delegator_address?: Maybe; - height?: Maybe; - id?: Maybe; - validator_address?: Maybe; +/** columns and relationships of "double_sign_vote" */ +export type Double_Sign_VoteDouble_Sign_Evidences_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate min on columns */ -export type Delegation_Min_Fields = { - __typename?: 'delegation_min_fields'; - delegator_address?: Maybe; - height?: Maybe; - id?: Maybe; - validator_address?: Maybe; +/** aggregated selection of "double_sign_vote" */ +export type Double_Sign_Vote_Aggregate = { + __typename?: 'double_sign_vote_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** order by min() on columns of table "delegation" */ -export type Delegation_Min_Order_By = { - delegator_address?: Maybe; - height?: Maybe; - id?: Maybe; - validator_address?: Maybe; -}; - -/** Ordering options when selecting data from "delegation". */ -export type Delegation_Order_By = { - account?: Maybe; - amount?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - id?: Maybe; - validator?: Maybe; - validator_address?: Maybe; -}; - -/** columns and relationships of "delegation_reward" */ -export type Delegation_Reward = { - __typename?: 'delegation_reward'; - /** An object relationship */ - account: Account; - amount: Scalars['_dec_coin']; - delegator_address: Scalars['String']; - height: Scalars['bigint']; - /** An object relationship */ - validator: Validator; - validator_address: Scalars['String']; - withdraw_address: Scalars['String']; -}; - -/** aggregated selection of "delegation_reward" */ -export type Delegation_Reward_Aggregate = { - __typename?: 'delegation_reward_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "delegation_reward" */ -export type Delegation_Reward_Aggregate_Fields = { - __typename?: 'delegation_reward_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "double_sign_vote" */ +export type Double_Sign_Vote_Aggregate_Fields = { + __typename?: 'double_sign_vote_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; + 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 "delegation_reward" */ -export type Delegation_Reward_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "double_sign_vote" */ +export type Double_Sign_Vote_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "delegation_reward" */ -export type Delegation_Reward_Aggregate_Order_By = { - avg?: Maybe; +/** order by aggregate values of table "double_sign_vote" */ +export type Double_Sign_Vote_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate avg on columns */ -export type Delegation_Reward_Avg_Fields = { - __typename?: 'delegation_reward_avg_fields'; +export type Double_Sign_Vote_Avg_Fields = { + __typename?: 'double_sign_vote_avg_fields'; height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; -/** order by avg() on columns of table "delegation_reward" */ -export type Delegation_Reward_Avg_Order_By = { +/** order by avg() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Avg_Order_By = { height?: Maybe; + id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; -/** Boolean expression to filter rows from the table "delegation_reward". All fields are combined with a logical 'AND'. */ -export type Delegation_Reward_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account?: Maybe; - amount?: Maybe<_Dec_Coin_Comparison_Exp>; - delegator_address?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + block_id?: Maybe; + doubleSignEvidencesByVoteBId?: Maybe; + double_sign_evidences?: Maybe; height?: Maybe; + id?: Maybe; + round?: Maybe; + signature?: Maybe; + type?: Maybe; validator?: Maybe; validator_address?: Maybe; - withdraw_address?: Maybe; + validator_index?: Maybe; }; /** aggregate max on columns */ -export type Delegation_Reward_Max_Fields = { - __typename?: 'delegation_reward_max_fields'; - delegator_address?: Maybe; +export type Double_Sign_Vote_Max_Fields = { + __typename?: 'double_sign_vote_max_fields'; + block_id?: Maybe; height?: Maybe; + id?: Maybe; + round?: Maybe; + signature?: Maybe; + type?: Maybe; validator_address?: Maybe; - withdraw_address?: Maybe; + validator_index?: Maybe; }; -/** order by max() on columns of table "delegation_reward" */ -export type Delegation_Reward_Max_Order_By = { - delegator_address?: Maybe; +/** order by max() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Max_Order_By = { + block_id?: Maybe; height?: Maybe; + id?: Maybe; + round?: Maybe; + signature?: Maybe; + type?: Maybe; validator_address?: Maybe; - withdraw_address?: Maybe; + validator_index?: Maybe; }; /** aggregate min on columns */ -export type Delegation_Reward_Min_Fields = { - __typename?: 'delegation_reward_min_fields'; - delegator_address?: Maybe; +export type Double_Sign_Vote_Min_Fields = { + __typename?: 'double_sign_vote_min_fields'; + block_id?: Maybe; height?: Maybe; + id?: Maybe; + round?: Maybe; + signature?: Maybe; + type?: Maybe; validator_address?: Maybe; - withdraw_address?: Maybe; + validator_index?: Maybe; }; -/** order by min() on columns of table "delegation_reward" */ -export type Delegation_Reward_Min_Order_By = { - delegator_address?: Maybe; +/** order by min() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Min_Order_By = { + block_id?: Maybe; height?: Maybe; + id?: Maybe; + round?: Maybe; + signature?: Maybe; + type?: Maybe; validator_address?: Maybe; - withdraw_address?: Maybe; + validator_index?: Maybe; }; -/** Ordering options when selecting data from "delegation_reward". */ -export type Delegation_Reward_Order_By = { - account?: Maybe; - amount?: Maybe; - delegator_address?: Maybe; +/** Ordering options when selecting data from "double_sign_vote". */ +export type Double_Sign_Vote_Order_By = { + block_id?: Maybe; + doubleSignEvidencesByVoteBId_aggregate?: Maybe; + double_sign_evidences_aggregate?: Maybe; height?: Maybe; + id?: Maybe; + round?: Maybe; + signature?: Maybe; + type?: Maybe; validator?: Maybe; validator_address?: Maybe; - withdraw_address?: Maybe; + validator_index?: Maybe; }; -/** select columns of table "delegation_reward" */ -export enum Delegation_Reward_Select_Column { - /** column name */ - Amount = 'amount', +/** select columns of table "double_sign_vote" */ +export enum Double_Sign_Vote_Select_Column { /** column name */ - DelegatorAddress = 'delegator_address', + BlockId = 'block_id', /** column name */ Height = 'height', /** column name */ - ValidatorAddress = 'validator_address', - /** column name */ - WithdrawAddress = 'withdraw_address' -} - -/** aggregate stddev on columns */ -export type Delegation_Reward_Stddev_Fields = { - __typename?: 'delegation_reward_stddev_fields'; - height?: Maybe; -}; - -/** order by stddev() on columns of table "delegation_reward" */ -export type Delegation_Reward_Stddev_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Delegation_Reward_Stddev_Pop_Fields = { - __typename?: 'delegation_reward_stddev_pop_fields'; - height?: Maybe; -}; - -/** order by stddev_pop() on columns of table "delegation_reward" */ -export type Delegation_Reward_Stddev_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Delegation_Reward_Stddev_Samp_Fields = { - __typename?: 'delegation_reward_stddev_samp_fields'; - height?: Maybe; -}; - -/** order by stddev_samp() on columns of table "delegation_reward" */ -export type Delegation_Reward_Stddev_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Delegation_Reward_Sum_Fields = { - __typename?: 'delegation_reward_sum_fields'; - height?: Maybe; -}; - -/** order by sum() on columns of table "delegation_reward" */ -export type Delegation_Reward_Sum_Order_By = { - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Delegation_Reward_Var_Pop_Fields = { - __typename?: 'delegation_reward_var_pop_fields'; - height?: Maybe; -}; - -/** order by var_pop() on columns of table "delegation_reward" */ -export type Delegation_Reward_Var_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Delegation_Reward_Var_Samp_Fields = { - __typename?: 'delegation_reward_var_samp_fields'; - height?: Maybe; -}; - -/** order by var_samp() on columns of table "delegation_reward" */ -export type Delegation_Reward_Var_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Delegation_Reward_Variance_Fields = { - __typename?: 'delegation_reward_variance_fields'; - height?: Maybe; -}; - -/** order by variance() on columns of table "delegation_reward" */ -export type Delegation_Reward_Variance_Order_By = { - height?: Maybe; -}; - -/** select columns of table "delegation" */ -export enum Delegation_Select_Column { + Id = 'id', /** column name */ - Amount = 'amount', + Round = 'round', /** column name */ - DelegatorAddress = 'delegator_address', + Signature = 'signature', /** column name */ - Height = 'height', + Type = 'type', /** column name */ - Id = 'id', + ValidatorAddress = 'validator_address', /** column name */ - ValidatorAddress = 'validator_address' + ValidatorIndex = 'validator_index' } /** aggregate stddev on columns */ -export type Delegation_Stddev_Fields = { - __typename?: 'delegation_stddev_fields'; +export type Double_Sign_Vote_Stddev_Fields = { + __typename?: 'double_sign_vote_stddev_fields'; height?: Maybe; id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; -/** order by stddev() on columns of table "delegation" */ -export type Delegation_Stddev_Order_By = { +/** order by stddev() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Stddev_Order_By = { height?: Maybe; id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Delegation_Stddev_Pop_Fields = { - __typename?: 'delegation_stddev_pop_fields'; +export type Double_Sign_Vote_Stddev_Pop_Fields = { + __typename?: 'double_sign_vote_stddev_pop_fields'; height?: Maybe; id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; -/** order by stddev_pop() on columns of table "delegation" */ -export type Delegation_Stddev_Pop_Order_By = { +/** order by stddev_pop() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Stddev_Pop_Order_By = { height?: Maybe; id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Delegation_Stddev_Samp_Fields = { - __typename?: 'delegation_stddev_samp_fields'; +export type Double_Sign_Vote_Stddev_Samp_Fields = { + __typename?: 'double_sign_vote_stddev_samp_fields'; height?: Maybe; id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; -/** order by stddev_samp() on columns of table "delegation" */ -export type Delegation_Stddev_Samp_Order_By = { +/** order by stddev_samp() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Stddev_Samp_Order_By = { height?: Maybe; id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; /** aggregate sum on columns */ -export type Delegation_Sum_Fields = { - __typename?: 'delegation_sum_fields'; +export type Double_Sign_Vote_Sum_Fields = { + __typename?: 'double_sign_vote_sum_fields'; height?: Maybe; id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; -/** order by sum() on columns of table "delegation" */ -export type Delegation_Sum_Order_By = { +/** order by sum() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Sum_Order_By = { height?: Maybe; id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; /** aggregate var_pop on columns */ -export type Delegation_Var_Pop_Fields = { - __typename?: 'delegation_var_pop_fields'; +export type Double_Sign_Vote_Var_Pop_Fields = { + __typename?: 'double_sign_vote_var_pop_fields'; height?: Maybe; id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; -/** order by var_pop() on columns of table "delegation" */ -export type Delegation_Var_Pop_Order_By = { +/** order by var_pop() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Var_Pop_Order_By = { height?: Maybe; id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; /** aggregate var_samp on columns */ -export type Delegation_Var_Samp_Fields = { - __typename?: 'delegation_var_samp_fields'; +export type Double_Sign_Vote_Var_Samp_Fields = { + __typename?: 'double_sign_vote_var_samp_fields'; height?: Maybe; id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; -/** order by var_samp() on columns of table "delegation" */ -export type Delegation_Var_Samp_Order_By = { +/** order by var_samp() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Var_Samp_Order_By = { height?: Maybe; id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; /** aggregate variance on columns */ -export type Delegation_Variance_Fields = { - __typename?: 'delegation_variance_fields'; +export type Double_Sign_Vote_Variance_Fields = { + __typename?: 'double_sign_vote_variance_fields'; height?: Maybe; id?: Maybe; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; }; -/** order by variance() on columns of table "delegation" */ -export type Delegation_Variance_Order_By = { +/** order by variance() on columns of table "double_sign_vote" */ +export type Double_Sign_Vote_Variance_Order_By = { height?: Maybe; id?: Maybe; -}; - -/** columns and relationships of "distribution_params" */ -export type Distribution_Params = { - __typename?: 'distribution_params'; + round?: Maybe; + type?: Maybe; + validator_index?: Maybe; +}; + +/** columns and relationships of "fee_grant_allowance" */ +export type Fee_Grant_Allowance = { + __typename?: 'fee_grant_allowance'; + allowance: Scalars['jsonb']; + grantee_address: Scalars['String']; + granter_address: Scalars['String']; height: Scalars['bigint']; - one_row_id: Scalars['Boolean']; - params: Scalars['jsonb']; + id: Scalars['Int']; }; -/** columns and relationships of "distribution_params" */ -export type Distribution_ParamsParamsArgs = { +/** columns and relationships of "fee_grant_allowance" */ +export type Fee_Grant_AllowanceAllowanceArgs = { path?: Maybe; }; -/** aggregated selection of "distribution_params" */ -export type Distribution_Params_Aggregate = { - __typename?: 'distribution_params_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Aggregate = { + __typename?: 'fee_grant_allowance_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "distribution_params" */ -export type Distribution_Params_Aggregate_Fields = { - __typename?: 'distribution_params_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Aggregate_Fields = { + __typename?: 'fee_grant_allowance_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; + 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 "distribution_params" */ -export type Distribution_Params_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "fee_grant_allowance" */ +export type Fee_Grant_Allowance_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; /** aggregate avg on columns */ -export type Distribution_Params_Avg_Fields = { - __typename?: 'distribution_params_avg_fields'; +export type Fee_Grant_Allowance_Avg_Fields = { + __typename?: 'fee_grant_allowance_avg_fields'; height?: Maybe; + id?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + allowance?: Maybe; + grantee_address?: Maybe; + granter_address?: Maybe; height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; + id?: Maybe; }; /** aggregate max on columns */ -export type Distribution_Params_Max_Fields = { - __typename?: 'distribution_params_max_fields'; +export type Fee_Grant_Allowance_Max_Fields = { + __typename?: 'fee_grant_allowance_max_fields'; + grantee_address?: Maybe; + granter_address?: Maybe; height?: Maybe; + id?: Maybe; }; /** aggregate min on columns */ -export type Distribution_Params_Min_Fields = { - __typename?: 'distribution_params_min_fields'; +export type Fee_Grant_Allowance_Min_Fields = { + __typename?: 'fee_grant_allowance_min_fields'; + grantee_address?: Maybe; + granter_address?: Maybe; height?: Maybe; + id?: Maybe; }; -/** Ordering options when selecting data from "distribution_params". */ -export type Distribution_Params_Order_By = { +/** Ordering options when selecting data from "fee_grant_allowance". */ +export type Fee_Grant_Allowance_Order_By = { + allowance?: Maybe; + grantee_address?: Maybe; + granter_address?: Maybe; height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; + id?: Maybe; }; -/** select columns of table "distribution_params" */ -export enum Distribution_Params_Select_Column { +/** select columns of table "fee_grant_allowance" */ +export enum Fee_Grant_Allowance_Select_Column { /** column name */ - Height = 'height', + Allowance = 'allowance', /** column name */ - OneRowId = 'one_row_id', + GranteeAddress = 'grantee_address', /** column name */ - Params = 'params' + GranterAddress = 'granter_address', + /** column name */ + Height = 'height', + /** column name */ + Id = 'id' } /** aggregate stddev on columns */ -export type Distribution_Params_Stddev_Fields = { - __typename?: 'distribution_params_stddev_fields'; +export type Fee_Grant_Allowance_Stddev_Fields = { + __typename?: 'fee_grant_allowance_stddev_fields'; height?: Maybe; + id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Distribution_Params_Stddev_Pop_Fields = { - __typename?: 'distribution_params_stddev_pop_fields'; +export type Fee_Grant_Allowance_Stddev_Pop_Fields = { + __typename?: 'fee_grant_allowance_stddev_pop_fields'; height?: Maybe; + id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Distribution_Params_Stddev_Samp_Fields = { - __typename?: 'distribution_params_stddev_samp_fields'; +export type Fee_Grant_Allowance_Stddev_Samp_Fields = { + __typename?: 'fee_grant_allowance_stddev_samp_fields'; height?: Maybe; + id?: Maybe; }; /** aggregate sum on columns */ -export type Distribution_Params_Sum_Fields = { - __typename?: 'distribution_params_sum_fields'; +export type Fee_Grant_Allowance_Sum_Fields = { + __typename?: 'fee_grant_allowance_sum_fields'; height?: Maybe; + id?: Maybe; }; /** aggregate var_pop on columns */ -export type Distribution_Params_Var_Pop_Fields = { - __typename?: 'distribution_params_var_pop_fields'; +export type Fee_Grant_Allowance_Var_Pop_Fields = { + __typename?: 'fee_grant_allowance_var_pop_fields'; height?: Maybe; + id?: Maybe; }; /** aggregate var_samp on columns */ -export type Distribution_Params_Var_Samp_Fields = { - __typename?: 'distribution_params_var_samp_fields'; +export type Fee_Grant_Allowance_Var_Samp_Fields = { + __typename?: 'fee_grant_allowance_var_samp_fields'; height?: Maybe; + id?: Maybe; }; /** aggregate variance on columns */ -export type Distribution_Params_Variance_Fields = { - __typename?: 'distribution_params_variance_fields'; +export type Fee_Grant_Allowance_Variance_Fields = { + __typename?: 'fee_grant_allowance_variance_fields'; height?: Maybe; + id?: Maybe; }; -/** 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']; +/** columns and relationships of "genesis" */ +export type Genesis = { + __typename?: 'genesis'; + chain_id: Scalars['String']; + initial_height: Scalars['bigint']; + time: Scalars['timestamp']; }; -/** aggregated selection of "double_sign_evidence" */ -export type Double_Sign_Evidence_Aggregate = { - __typename?: 'double_sign_evidence_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "genesis" */ +export type Genesis_Aggregate = { + __typename?: 'genesis_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "double_sign_evidence" */ -export type Double_Sign_Evidence_Aggregate_Fields = { - __typename?: 'double_sign_evidence_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "genesis" */ +export type Genesis_Aggregate_Fields = { + __typename?: 'genesis_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; + 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 "double_sign_evidence" */ -export type Double_Sign_Evidence_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "genesis" */ +export type Genesis_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - /** aggregate avg on columns */ -export type Double_Sign_Evidence_Avg_Fields = { - __typename?: 'double_sign_evidence_avg_fields'; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +export type Genesis_Avg_Fields = { + __typename?: 'genesis_avg_fields'; + initial_height?: Maybe; }; -/** order by avg() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Avg_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - doubleSignVoteByVoteAId?: Maybe; - double_sign_vote?: Maybe; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +/** Boolean expression to filter rows from the table "genesis". All fields are combined with a logical 'AND'. */ +export type Genesis_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + chain_id?: Maybe; + initial_height?: Maybe; + time?: Maybe; }; /** aggregate max on columns */ -export type Double_Sign_Evidence_Max_Fields = { - __typename?: 'double_sign_evidence_max_fields'; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** order by max() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Max_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +export type Genesis_Max_Fields = { + __typename?: 'genesis_max_fields'; + chain_id?: Maybe; + initial_height?: Maybe; + time?: Maybe; }; /** aggregate min on columns */ -export type Double_Sign_Evidence_Min_Fields = { - __typename?: 'double_sign_evidence_min_fields'; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** order by min() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Min_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +export type Genesis_Min_Fields = { + __typename?: 'genesis_min_fields'; + chain_id?: Maybe; + initial_height?: Maybe; + time?: Maybe; }; -/** Ordering options when selecting data from "double_sign_evidence". */ -export type Double_Sign_Evidence_Order_By = { - doubleSignVoteByVoteAId?: Maybe; - double_sign_vote?: Maybe; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +/** Ordering options when selecting data from "genesis". */ +export type Genesis_Order_By = { + chain_id?: Maybe; + initial_height?: Maybe; + time?: Maybe; }; -/** select columns of table "double_sign_evidence" */ -export enum Double_Sign_Evidence_Select_Column { +/** select columns of table "genesis" */ +export enum Genesis_Select_Column { /** column name */ - Height = 'height', + ChainId = 'chain_id', /** column name */ - VoteAId = 'vote_a_id', + InitialHeight = 'initial_height', /** column name */ - VoteBId = 'vote_b_id' + Time = 'time' } /** aggregate stddev on columns */ -export type Double_Sign_Evidence_Stddev_Fields = { - __typename?: 'double_sign_evidence_stddev_fields'; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** order by stddev() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Stddev_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +export type Genesis_Stddev_Fields = { + __typename?: 'genesis_stddev_fields'; + initial_height?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Double_Sign_Evidence_Stddev_Pop_Fields = { - __typename?: 'double_sign_evidence_stddev_pop_fields'; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** order by stddev_pop() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Stddev_Pop_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +export type Genesis_Stddev_Pop_Fields = { + __typename?: 'genesis_stddev_pop_fields'; + initial_height?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Double_Sign_Evidence_Stddev_Samp_Fields = { - __typename?: 'double_sign_evidence_stddev_samp_fields'; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** order by stddev_samp() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Stddev_Samp_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +export type Genesis_Stddev_Samp_Fields = { + __typename?: 'genesis_stddev_samp_fields'; + initial_height?: Maybe; }; /** aggregate sum on columns */ -export type Double_Sign_Evidence_Sum_Fields = { - __typename?: 'double_sign_evidence_sum_fields'; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** order by sum() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Sum_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +export type Genesis_Sum_Fields = { + __typename?: 'genesis_sum_fields'; + initial_height?: Maybe; }; /** aggregate var_pop on columns */ -export type Double_Sign_Evidence_Var_Pop_Fields = { - __typename?: 'double_sign_evidence_var_pop_fields'; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** order by var_pop() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Var_Pop_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +export type Genesis_Var_Pop_Fields = { + __typename?: 'genesis_var_pop_fields'; + initial_height?: Maybe; }; /** aggregate var_samp on columns */ -export type Double_Sign_Evidence_Var_Samp_Fields = { - __typename?: 'double_sign_evidence_var_samp_fields'; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** order by var_samp() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Var_Samp_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +export type Genesis_Var_Samp_Fields = { + __typename?: 'genesis_var_samp_fields'; + initial_height?: Maybe; }; /** aggregate variance on columns */ -export type Double_Sign_Evidence_Variance_Fields = { - __typename?: 'double_sign_evidence_variance_fields'; - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; -}; - -/** order by variance() on columns of table "double_sign_evidence" */ -export type Double_Sign_Evidence_Variance_Order_By = { - height?: Maybe; - vote_a_id?: Maybe; - vote_b_id?: Maybe; +export type Genesis_Variance_Fields = { + __typename?: 'genesis_variance_fields'; + initial_height?: Maybe; }; -/** 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 aggregate relationship */ - doubleSignEvidencesByVoteBId_aggregate: Double_Sign_Evidence_Aggregate; - /** An array relationship */ - double_sign_evidences: Array; - /** An aggregate relationship */ - double_sign_evidences_aggregate: Double_Sign_Evidence_Aggregate; +/** columns and relationships of "gov_params" */ +export type Gov_Params = { + __typename?: 'gov_params'; + deposit_params: Scalars['jsonb']; height: Scalars['bigint']; - id: Scalars['Int']; - 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?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + one_row_id: Scalars['Boolean']; + tally_params: Scalars['jsonb']; + voting_params: Scalars['jsonb']; }; -/** columns and relationships of "double_sign_vote" */ -export type Double_Sign_VoteDoubleSignEvidencesByVoteBId_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** columns and relationships of "gov_params" */ +export type Gov_ParamsDeposit_ParamsArgs = { + path?: Maybe; }; -/** columns and relationships of "double_sign_vote" */ -export type Double_Sign_VoteDouble_Sign_EvidencesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** columns and relationships of "gov_params" */ +export type Gov_ParamsTally_ParamsArgs = { + path?: Maybe; }; -/** columns and relationships of "double_sign_vote" */ -export type Double_Sign_VoteDouble_Sign_Evidences_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** columns and relationships of "gov_params" */ +export type Gov_ParamsVoting_ParamsArgs = { + path?: Maybe; }; -/** aggregated selection of "double_sign_vote" */ -export type Double_Sign_Vote_Aggregate = { - __typename?: 'double_sign_vote_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "gov_params" */ +export type Gov_Params_Aggregate = { + __typename?: 'gov_params_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "double_sign_vote" */ -export type Double_Sign_Vote_Aggregate_Fields = { - __typename?: 'double_sign_vote_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "gov_params" */ +export type Gov_Params_Aggregate_Fields = { + __typename?: 'gov_params_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; + 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 "double_sign_vote" */ -export type Double_Sign_Vote_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "gov_params" */ +export type Gov_Params_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "double_sign_vote" */ -export type Double_Sign_Vote_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - /** aggregate avg on columns */ -export type Double_Sign_Vote_Avg_Fields = { - __typename?: 'double_sign_vote_avg_fields'; +export type Gov_Params_Avg_Fields = { + __typename?: 'gov_params_avg_fields'; height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; -}; - -/** order by avg() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Avg_Order_By = { - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - block_id?: Maybe; - doubleSignEvidencesByVoteBId?: Maybe; - double_sign_evidences?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + deposit_params?: Maybe; height?: Maybe; - id?: Maybe; - round?: Maybe; - signature?: Maybe; - type?: Maybe; - validator?: Maybe; - validator_address?: Maybe; - validator_index?: Maybe; + one_row_id?: Maybe; + tally_params?: Maybe; + voting_params?: Maybe; }; /** aggregate max on columns */ -export type Double_Sign_Vote_Max_Fields = { - __typename?: 'double_sign_vote_max_fields'; - block_id?: Maybe; +export type Gov_Params_Max_Fields = { + __typename?: 'gov_params_max_fields'; height?: Maybe; - id?: Maybe; - round?: Maybe; - signature?: Maybe; - type?: Maybe; - validator_address?: Maybe; - validator_index?: Maybe; -}; - -/** order by max() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Max_Order_By = { - block_id?: Maybe; - height?: Maybe; - id?: Maybe; - round?: Maybe; - signature?: Maybe; - type?: Maybe; - validator_address?: Maybe; - validator_index?: Maybe; }; /** aggregate min on columns */ -export type Double_Sign_Vote_Min_Fields = { - __typename?: 'double_sign_vote_min_fields'; - block_id?: Maybe; +export type Gov_Params_Min_Fields = { + __typename?: 'gov_params_min_fields'; height?: Maybe; - id?: Maybe; - round?: Maybe; - signature?: Maybe; - type?: Maybe; - validator_address?: Maybe; - validator_index?: Maybe; -}; - -/** order by min() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Min_Order_By = { - block_id?: Maybe; - height?: Maybe; - id?: Maybe; - round?: Maybe; - signature?: Maybe; - type?: Maybe; - validator_address?: Maybe; - validator_index?: Maybe; }; -/** Ordering options when selecting data from "double_sign_vote". */ -export type Double_Sign_Vote_Order_By = { - block_id?: Maybe; - doubleSignEvidencesByVoteBId_aggregate?: Maybe; - double_sign_evidences_aggregate?: Maybe; +/** Ordering options when selecting data from "gov_params". */ +export type Gov_Params_Order_By = { + deposit_params?: Maybe; height?: Maybe; - id?: Maybe; - round?: Maybe; - signature?: Maybe; - type?: Maybe; - validator?: Maybe; - validator_address?: Maybe; - validator_index?: Maybe; + one_row_id?: Maybe; + tally_params?: Maybe; + voting_params?: Maybe; }; -/** select columns of table "double_sign_vote" */ -export enum Double_Sign_Vote_Select_Column { +/** select columns of table "gov_params" */ +export enum Gov_Params_Select_Column { /** column name */ - BlockId = 'block_id', + DepositParams = 'deposit_params', /** column name */ Height = 'height', /** column name */ - Id = 'id', - /** column name */ - Round = 'round', - /** column name */ - Signature = 'signature', - /** column name */ - Type = 'type', + OneRowId = 'one_row_id', /** column name */ - ValidatorAddress = 'validator_address', + TallyParams = 'tally_params', /** column name */ - ValidatorIndex = 'validator_index' + VotingParams = 'voting_params' } /** aggregate stddev on columns */ -export type Double_Sign_Vote_Stddev_Fields = { - __typename?: 'double_sign_vote_stddev_fields'; +export type Gov_Params_Stddev_Fields = { + __typename?: 'gov_params_stddev_fields'; height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; -}; - -/** order by stddev() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Stddev_Order_By = { - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Double_Sign_Vote_Stddev_Pop_Fields = { - __typename?: 'double_sign_vote_stddev_pop_fields'; +export type Gov_Params_Stddev_Pop_Fields = { + __typename?: 'gov_params_stddev_pop_fields'; height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; -}; - -/** order by stddev_pop() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Stddev_Pop_Order_By = { - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Double_Sign_Vote_Stddev_Samp_Fields = { - __typename?: 'double_sign_vote_stddev_samp_fields'; +export type Gov_Params_Stddev_Samp_Fields = { + __typename?: 'gov_params_stddev_samp_fields'; height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; -}; - -/** order by stddev_samp() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Stddev_Samp_Order_By = { - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; }; /** aggregate sum on columns */ -export type Double_Sign_Vote_Sum_Fields = { - __typename?: 'double_sign_vote_sum_fields'; +export type Gov_Params_Sum_Fields = { + __typename?: 'gov_params_sum_fields'; height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; -}; - -/** order by sum() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Sum_Order_By = { - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; }; /** aggregate var_pop on columns */ -export type Double_Sign_Vote_Var_Pop_Fields = { - __typename?: 'double_sign_vote_var_pop_fields'; +export type Gov_Params_Var_Pop_Fields = { + __typename?: 'gov_params_var_pop_fields'; height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; }; -/** order by var_pop() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Var_Pop_Order_By = { - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; +/** aggregate var_samp on columns */ +export type Gov_Params_Var_Samp_Fields = { + __typename?: 'gov_params_var_samp_fields'; + height?: Maybe; }; -/** aggregate var_samp on columns */ -export type Double_Sign_Vote_Var_Samp_Fields = { - __typename?: 'double_sign_vote_var_samp_fields'; +/** aggregate variance on columns */ +export type Gov_Params_Variance_Fields = { + __typename?: 'gov_params_variance_fields'; height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; }; -/** order by var_samp() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Var_Samp_Order_By = { - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; -}; - -/** aggregate variance on columns */ -export type Double_Sign_Vote_Variance_Fields = { - __typename?: 'double_sign_vote_variance_fields'; - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; -}; - -/** order by variance() on columns of table "double_sign_vote" */ -export type Double_Sign_Vote_Variance_Order_By = { - height?: Maybe; - id?: Maybe; - round?: Maybe; - type?: Maybe; - validator_index?: Maybe; -}; - -/** columns and relationships of "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests = { - __typename?: 'dtag_transfer_requests'; +/** columns and relationships of "inflation" */ +export type Inflation = { + __typename?: 'inflation'; height: Scalars['bigint']; - /** An object relationship */ - profile: Profile; - /** An object relationship */ - profileBySenderAddress: Profile; - receiver_address: Scalars['String']; - sender_address: Scalars['String']; + value: Scalars['numeric']; }; -/** aggregated selection of "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Aggregate = { - __typename?: 'dtag_transfer_requests_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "inflation" */ +export type Inflation_Aggregate = { + __typename?: 'inflation_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Aggregate_Fields = { - __typename?: 'dtag_transfer_requests_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "inflation" */ +export type Inflation_Aggregate_Fields = { + __typename?: 'inflation_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; + 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 "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "inflation" */ +export type Inflation_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - /** aggregate avg on columns */ -export type Dtag_Transfer_Requests_Avg_Fields = { - __typename?: 'dtag_transfer_requests_avg_fields'; +export type Inflation_Avg_Fields = { + __typename?: 'inflation_avg_fields'; height?: Maybe; + value?: Maybe; }; -/** order by avg() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Avg_Order_By = { - height?: Maybe; -}; - -/** Boolean expression to filter rows from the table "dtag_transfer_requests". All fields are combined with a logical 'AND'. */ -export type Dtag_Transfer_Requests_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; +/** Boolean expression to filter rows from the table "inflation". All fields are combined with a logical 'AND'. */ +export type Inflation_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; height?: Maybe; - profile?: Maybe; - profileBySenderAddress?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; + value?: Maybe; }; /** aggregate max on columns */ -export type Dtag_Transfer_Requests_Max_Fields = { - __typename?: 'dtag_transfer_requests_max_fields'; +export type Inflation_Max_Fields = { + __typename?: 'inflation_max_fields'; height?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; -}; - -/** order by max() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Max_Order_By = { - height?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; + value?: Maybe; }; /** aggregate min on columns */ -export type Dtag_Transfer_Requests_Min_Fields = { - __typename?: 'dtag_transfer_requests_min_fields'; +export type Inflation_Min_Fields = { + __typename?: 'inflation_min_fields'; height?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; -}; - -/** order by min() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Min_Order_By = { - height?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; + value?: Maybe; }; -/** Ordering options when selecting data from "dtag_transfer_requests". */ -export type Dtag_Transfer_Requests_Order_By = { +/** Ordering options when selecting data from "inflation". */ +export type Inflation_Order_By = { height?: Maybe; - profile?: Maybe; - profileBySenderAddress?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; + value?: Maybe; }; -/** select columns of table "dtag_transfer_requests" */ -export enum Dtag_Transfer_Requests_Select_Column { +/** select columns of table "inflation" */ +export enum Inflation_Select_Column { /** column name */ Height = 'height', /** column name */ - ReceiverAddress = 'receiver_address', - /** column name */ - SenderAddress = 'sender_address' + Value = 'value' } /** aggregate stddev on columns */ -export type Dtag_Transfer_Requests_Stddev_Fields = { - __typename?: 'dtag_transfer_requests_stddev_fields'; +export type Inflation_Stddev_Fields = { + __typename?: 'inflation_stddev_fields'; height?: Maybe; -}; - -/** order by stddev() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Stddev_Order_By = { - height?: Maybe; + value?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Dtag_Transfer_Requests_Stddev_Pop_Fields = { - __typename?: 'dtag_transfer_requests_stddev_pop_fields'; +export type Inflation_Stddev_Pop_Fields = { + __typename?: 'inflation_stddev_pop_fields'; height?: Maybe; -}; - -/** order by stddev_pop() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Stddev_Pop_Order_By = { - height?: Maybe; + value?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Dtag_Transfer_Requests_Stddev_Samp_Fields = { - __typename?: 'dtag_transfer_requests_stddev_samp_fields'; +export type Inflation_Stddev_Samp_Fields = { + __typename?: 'inflation_stddev_samp_fields'; height?: Maybe; -}; - -/** order by stddev_samp() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Stddev_Samp_Order_By = { - height?: Maybe; + value?: Maybe; }; /** aggregate sum on columns */ -export type Dtag_Transfer_Requests_Sum_Fields = { - __typename?: 'dtag_transfer_requests_sum_fields'; +export type Inflation_Sum_Fields = { + __typename?: 'inflation_sum_fields'; height?: Maybe; -}; - -/** order by sum() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Sum_Order_By = { - height?: Maybe; + value?: Maybe; }; /** aggregate var_pop on columns */ -export type Dtag_Transfer_Requests_Var_Pop_Fields = { - __typename?: 'dtag_transfer_requests_var_pop_fields'; +export type Inflation_Var_Pop_Fields = { + __typename?: 'inflation_var_pop_fields'; height?: Maybe; -}; - -/** order by var_pop() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Var_Pop_Order_By = { - height?: Maybe; + value?: Maybe; }; /** aggregate var_samp on columns */ -export type Dtag_Transfer_Requests_Var_Samp_Fields = { - __typename?: 'dtag_transfer_requests_var_samp_fields'; +export type Inflation_Var_Samp_Fields = { + __typename?: 'inflation_var_samp_fields'; height?: Maybe; -}; - -/** order by var_samp() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Var_Samp_Order_By = { - height?: Maybe; + value?: Maybe; }; /** aggregate variance on columns */ -export type Dtag_Transfer_Requests_Variance_Fields = { - __typename?: 'dtag_transfer_requests_variance_fields'; +export type Inflation_Variance_Fields = { + __typename?: 'inflation_variance_fields'; height?: Maybe; + value?: Maybe; }; -/** order by variance() on columns of table "dtag_transfer_requests" */ -export type Dtag_Transfer_Requests_Variance_Order_By = { - height?: Maybe; + +/** Boolean expression to compare columns of type "json". All fields are combined with logical 'AND'. */ +export type Json_Comparison_Exp = { + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; }; -/** columns and relationships of "fee_grant_allowance" */ -export type Fee_Grant_Allowance = { - __typename?: 'fee_grant_allowance'; - /** An object relationship */ - account: Account; + +/** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */ +export type Jsonb_Comparison_Exp = { + /** is the column contained in the given json value */ + _contained_in?: Maybe; + /** does the column contain the given json value at the top level */ + _contains?: Maybe; + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + /** does the string exist as a top-level key in the column */ + _has_key?: Maybe; + /** do all of these strings exist as top-level keys in the column */ + _has_keys_all?: Maybe>; + /** do any of these strings exist as top-level keys in the column */ + _has_keys_any?: Maybe>; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; +}; + +/** columns and relationships of "message" */ +export type Message = { + __typename?: 'message'; + index: Scalars['bigint']; + involved_accounts_addresses?: Maybe; /** An object relationship */ - accountByGranterAddress: Account; - allowance: Scalars['jsonb']; - grantee_address: Scalars['String']; - granter_address: Scalars['String']; - height: Scalars['bigint']; - id: Scalars['Int']; + transaction: Transaction; + transaction_hash: Scalars['String']; + type: Scalars['String']; + value: Scalars['jsonb']; }; -/** columns and relationships of "fee_grant_allowance" */ -export type Fee_Grant_AllowanceAllowanceArgs = { +/** columns and relationships of "message" */ +export type MessageValueArgs = { path?: Maybe; }; -/** aggregated selection of "fee_grant_allowance" */ -export type Fee_Grant_Allowance_Aggregate = { - __typename?: 'fee_grant_allowance_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "message" */ +export type Message_Aggregate = { + __typename?: 'message_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "fee_grant_allowance" */ -export type Fee_Grant_Allowance_Aggregate_Fields = { - __typename?: 'fee_grant_allowance_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "message" */ +export type Message_Aggregate_Fields = { + __typename?: 'message_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; + 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 "fee_grant_allowance" */ -export type Fee_Grant_Allowance_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "message" */ +export type Message_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "fee_grant_allowance" */ -export type Fee_Grant_Allowance_Aggregate_Order_By = { - avg?: Maybe; +/** order by aggregate values of table "message" */ +export type Message_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate avg on columns */ -export type Fee_Grant_Allowance_Avg_Fields = { - __typename?: 'fee_grant_allowance_avg_fields'; - height?: Maybe; - id?: Maybe; +export type Message_Avg_Fields = { + __typename?: 'message_avg_fields'; + index?: Maybe; }; -/** order by avg() on columns of table "fee_grant_allowance" */ -export type Fee_Grant_Allowance_Avg_Order_By = { - height?: Maybe; - id?: Maybe; +/** order by avg() on columns of table "message" */ +export type Message_Avg_Order_By = { + index?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account?: Maybe; - accountByGranterAddress?: Maybe; - allowance?: Maybe; - grantee_address?: Maybe; - granter_address?: Maybe; - height?: Maybe; - id?: Maybe; -}; +/** Boolean expression to filter rows from the table "message". All fields are combined with a logical 'AND'. */ +export type Message_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + index?: Maybe; + involved_accounts_addresses?: Maybe<_Text_Comparison_Exp>; + transaction?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; + value?: Maybe; +}; /** aggregate max on columns */ -export type Fee_Grant_Allowance_Max_Fields = { - __typename?: 'fee_grant_allowance_max_fields'; - grantee_address?: Maybe; - granter_address?: Maybe; - height?: Maybe; - id?: Maybe; +export type Message_Max_Fields = { + __typename?: 'message_max_fields'; + index?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; }; -/** order by max() on columns of table "fee_grant_allowance" */ -export type Fee_Grant_Allowance_Max_Order_By = { - grantee_address?: Maybe; - granter_address?: Maybe; - height?: Maybe; - id?: Maybe; +/** order by max() on columns of table "message" */ +export type Message_Max_Order_By = { + index?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; }; /** aggregate min on columns */ -export type Fee_Grant_Allowance_Min_Fields = { - __typename?: 'fee_grant_allowance_min_fields'; - grantee_address?: Maybe; - granter_address?: Maybe; - height?: Maybe; - id?: Maybe; +export type Message_Min_Fields = { + __typename?: 'message_min_fields'; + index?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; }; -/** order by min() on columns of table "fee_grant_allowance" */ -export type Fee_Grant_Allowance_Min_Order_By = { - grantee_address?: Maybe; - granter_address?: Maybe; - height?: Maybe; - id?: Maybe; +/** order by min() on columns of table "message" */ +export type Message_Min_Order_By = { + index?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; }; -/** Ordering options when selecting data from "fee_grant_allowance". */ -export type Fee_Grant_Allowance_Order_By = { - account?: Maybe; - accountByGranterAddress?: Maybe; - allowance?: Maybe; - grantee_address?: Maybe; - granter_address?: Maybe; - height?: Maybe; - id?: Maybe; +/** Ordering options when selecting data from "message". */ +export type Message_Order_By = { + index?: Maybe; + involved_accounts_addresses?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; + value?: Maybe; }; -/** select columns of table "fee_grant_allowance" */ -export enum Fee_Grant_Allowance_Select_Column { +/** select columns of table "message" */ +export enum Message_Select_Column { /** column name */ - Allowance = 'allowance', + Index = 'index', /** column name */ - GranteeAddress = 'grantee_address', + InvolvedAccountsAddresses = 'involved_accounts_addresses', /** column name */ - GranterAddress = 'granter_address', + TransactionHash = 'transaction_hash', /** column name */ - Height = 'height', + Type = 'type', /** column name */ - Id = 'id' + Value = 'value' } /** aggregate stddev on columns */ -export type Fee_Grant_Allowance_Stddev_Fields = { - __typename?: 'fee_grant_allowance_stddev_fields'; - height?: Maybe; - id?: Maybe; +export type Message_Stddev_Fields = { + __typename?: 'message_stddev_fields'; + index?: Maybe; }; -/** order by stddev() on columns of table "fee_grant_allowance" */ -export type Fee_Grant_Allowance_Stddev_Order_By = { - height?: Maybe; - id?: Maybe; +/** order by stddev() on columns of table "message" */ +export type Message_Stddev_Order_By = { + index?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Fee_Grant_Allowance_Stddev_Pop_Fields = { - __typename?: 'fee_grant_allowance_stddev_pop_fields'; - height?: Maybe; - id?: Maybe; +export type Message_Stddev_Pop_Fields = { + __typename?: 'message_stddev_pop_fields'; + index?: Maybe; }; -/** order by stddev_pop() on columns of table "fee_grant_allowance" */ -export type Fee_Grant_Allowance_Stddev_Pop_Order_By = { - height?: Maybe; - id?: Maybe; +/** order by stddev_pop() on columns of table "message" */ +export type Message_Stddev_Pop_Order_By = { + index?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Fee_Grant_Allowance_Stddev_Samp_Fields = { - __typename?: 'fee_grant_allowance_stddev_samp_fields'; - height?: Maybe; - id?: Maybe; +export type Message_Stddev_Samp_Fields = { + __typename?: 'message_stddev_samp_fields'; + index?: Maybe; }; -/** order by stddev_samp() on columns of table "fee_grant_allowance" */ -export type Fee_Grant_Allowance_Stddev_Samp_Order_By = { - height?: Maybe; - id?: Maybe; +/** order by stddev_samp() on columns of table "message" */ +export type Message_Stddev_Samp_Order_By = { + index?: Maybe; }; /** aggregate sum on columns */ -export type Fee_Grant_Allowance_Sum_Fields = { - __typename?: 'fee_grant_allowance_sum_fields'; - height?: Maybe; - id?: Maybe; +export type Message_Sum_Fields = { + __typename?: 'message_sum_fields'; + index?: Maybe; }; -/** order by sum() on columns of table "fee_grant_allowance" */ -export type Fee_Grant_Allowance_Sum_Order_By = { - height?: Maybe; - id?: Maybe; +/** order by sum() on columns of table "message" */ +export type Message_Sum_Order_By = { + index?: Maybe; }; /** aggregate var_pop on columns */ -export type Fee_Grant_Allowance_Var_Pop_Fields = { - __typename?: 'fee_grant_allowance_var_pop_fields'; - height?: Maybe; - id?: Maybe; +export type Message_Var_Pop_Fields = { + __typename?: 'message_var_pop_fields'; + index?: Maybe; }; -/** order by var_pop() on columns of table "fee_grant_allowance" */ -export type Fee_Grant_Allowance_Var_Pop_Order_By = { - height?: Maybe; - id?: Maybe; +/** order by var_pop() on columns of table "message" */ +export type Message_Var_Pop_Order_By = { + index?: Maybe; }; /** aggregate var_samp on columns */ -export type Fee_Grant_Allowance_Var_Samp_Fields = { - __typename?: 'fee_grant_allowance_var_samp_fields'; - height?: Maybe; - id?: Maybe; +export type Message_Var_Samp_Fields = { + __typename?: 'message_var_samp_fields'; + index?: Maybe; }; -/** order by var_samp() on columns of table "fee_grant_allowance" */ -export type Fee_Grant_Allowance_Var_Samp_Order_By = { - height?: Maybe; - id?: Maybe; +/** order by var_samp() on columns of table "message" */ +export type Message_Var_Samp_Order_By = { + index?: Maybe; }; /** aggregate variance on columns */ -export type Fee_Grant_Allowance_Variance_Fields = { - __typename?: 'fee_grant_allowance_variance_fields'; - height?: Maybe; - id?: Maybe; +export type Message_Variance_Fields = { + __typename?: 'message_variance_fields'; + index?: Maybe; }; -/** order by variance() on columns of table "fee_grant_allowance" */ -export type Fee_Grant_Allowance_Variance_Order_By = { - height?: Maybe; - id?: Maybe; +/** order by variance() on columns of table "message" */ +export type Message_Variance_Order_By = { + index?: Maybe; }; -/** columns and relationships of "genesis" */ -export type Genesis = { - __typename?: 'genesis'; - chain_id: Scalars['String']; - initial_height: Scalars['bigint']; - time: Scalars['timestamp']; +export type Messages_By_Address_Args = { + addresses?: Maybe; + limit?: Maybe; + offset?: Maybe; + types?: Maybe; }; -/** aggregated selection of "genesis" */ -export type Genesis_Aggregate = { - __typename?: 'genesis_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** columns and relationships of "mint_params" */ +export type Mint_Params = { + __typename?: 'mint_params'; + height: Scalars['bigint']; + one_row_id: Scalars['Boolean']; + params: Scalars['jsonb']; }; -/** aggregate fields of "genesis" */ -export type Genesis_Aggregate_Fields = { - __typename?: 'genesis_aggregate_fields'; - avg?: Maybe; + +/** columns and relationships of "mint_params" */ +export type Mint_ParamsParamsArgs = { + path?: Maybe; +}; + +/** aggregated selection of "mint_params" */ +export type Mint_Params_Aggregate = { + __typename?: 'mint_params_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "mint_params" */ +export type Mint_Params_Aggregate_Fields = { + __typename?: 'mint_params_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; + 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 "genesis" */ -export type Genesis_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "mint_params" */ +export type Mint_Params_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; /** aggregate avg on columns */ -export type Genesis_Avg_Fields = { - __typename?: 'genesis_avg_fields'; - initial_height?: Maybe; +export type Mint_Params_Avg_Fields = { + __typename?: 'mint_params_avg_fields'; + height?: Maybe; }; -/** Boolean expression to filter rows from the table "genesis". All fields are combined with a logical 'AND'. */ -export type Genesis_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - chain_id?: Maybe; - initial_height?: Maybe; - time?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + height?: Maybe; + one_row_id?: Maybe; + params?: Maybe; }; /** aggregate max on columns */ -export type Genesis_Max_Fields = { - __typename?: 'genesis_max_fields'; - chain_id?: Maybe; - initial_height?: Maybe; - time?: Maybe; +export type Mint_Params_Max_Fields = { + __typename?: 'mint_params_max_fields'; + height?: Maybe; }; /** aggregate min on columns */ -export type Genesis_Min_Fields = { - __typename?: 'genesis_min_fields'; - chain_id?: Maybe; - initial_height?: Maybe; - time?: Maybe; +export type Mint_Params_Min_Fields = { + __typename?: 'mint_params_min_fields'; + height?: Maybe; }; -/** Ordering options when selecting data from "genesis". */ -export type Genesis_Order_By = { - chain_id?: Maybe; - initial_height?: Maybe; - time?: Maybe; +/** Ordering options when selecting data from "mint_params". */ +export type Mint_Params_Order_By = { + height?: Maybe; + one_row_id?: Maybe; + params?: Maybe; }; -/** select columns of table "genesis" */ -export enum Genesis_Select_Column { +/** select columns of table "mint_params" */ +export enum Mint_Params_Select_Column { /** column name */ - ChainId = 'chain_id', + Height = 'height', /** column name */ - InitialHeight = 'initial_height', + OneRowId = 'one_row_id', /** column name */ - Time = 'time' + Params = 'params' } /** aggregate stddev on columns */ -export type Genesis_Stddev_Fields = { - __typename?: 'genesis_stddev_fields'; - initial_height?: Maybe; +export type Mint_Params_Stddev_Fields = { + __typename?: 'mint_params_stddev_fields'; + height?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Genesis_Stddev_Pop_Fields = { - __typename?: 'genesis_stddev_pop_fields'; - initial_height?: Maybe; +export type Mint_Params_Stddev_Pop_Fields = { + __typename?: 'mint_params_stddev_pop_fields'; + height?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Genesis_Stddev_Samp_Fields = { - __typename?: 'genesis_stddev_samp_fields'; - initial_height?: Maybe; +export type Mint_Params_Stddev_Samp_Fields = { + __typename?: 'mint_params_stddev_samp_fields'; + height?: Maybe; }; /** aggregate sum on columns */ -export type Genesis_Sum_Fields = { - __typename?: 'genesis_sum_fields'; - initial_height?: Maybe; +export type Mint_Params_Sum_Fields = { + __typename?: 'mint_params_sum_fields'; + height?: Maybe; }; /** aggregate var_pop on columns */ -export type Genesis_Var_Pop_Fields = { - __typename?: 'genesis_var_pop_fields'; - initial_height?: Maybe; +export type Mint_Params_Var_Pop_Fields = { + __typename?: 'mint_params_var_pop_fields'; + height?: Maybe; }; /** aggregate var_samp on columns */ -export type Genesis_Var_Samp_Fields = { - __typename?: 'genesis_var_samp_fields'; - initial_height?: Maybe; +export type Mint_Params_Var_Samp_Fields = { + __typename?: 'mint_params_var_samp_fields'; + height?: Maybe; }; /** aggregate variance on columns */ -export type Genesis_Variance_Fields = { - __typename?: 'genesis_variance_fields'; - initial_height?: Maybe; -}; - -/** columns and relationships of "gov_params" */ -export type Gov_Params = { - __typename?: 'gov_params'; - deposit_params: Scalars['jsonb']; - height: Scalars['bigint']; - one_row_id: Scalars['Boolean']; - tally_params: Scalars['jsonb']; - voting_params: Scalars['jsonb']; -}; - - -/** columns and relationships of "gov_params" */ -export type Gov_ParamsDeposit_ParamsArgs = { - path?: Maybe; -}; - - -/** columns and relationships of "gov_params" */ -export type Gov_ParamsTally_ParamsArgs = { - path?: Maybe; +export type Mint_Params_Variance_Fields = { + __typename?: 'mint_params_variance_fields'; + height?: Maybe; }; - -/** columns and relationships of "gov_params" */ -export type Gov_ParamsVoting_ParamsArgs = { - path?: Maybe; +/** columns and relationships of "modules" */ +export type Modules = { + __typename?: 'modules'; + module_name: Scalars['String']; }; -/** aggregated selection of "gov_params" */ -export type Gov_Params_Aggregate = { - __typename?: 'gov_params_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "modules" */ +export type Modules_Aggregate = { + __typename?: 'modules_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "gov_params" */ -export type Gov_Params_Aggregate_Fields = { - __typename?: 'gov_params_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "modules" */ +export type Modules_Aggregate_Fields = { + __typename?: 'modules_aggregate_fields'; 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; + max?: Maybe; + min?: Maybe; }; -/** aggregate fields of "gov_params" */ -export type Gov_Params_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "modules" */ +export type Modules_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** aggregate avg on columns */ -export type Gov_Params_Avg_Fields = { - __typename?: 'gov_params_avg_fields'; - height?: Maybe; -}; - -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - deposit_params?: Maybe; - height?: Maybe; - one_row_id?: Maybe; - tally_params?: Maybe; - voting_params?: Maybe; +/** Boolean expression to filter rows from the table "modules". All fields are combined with a logical 'AND'. */ +export type Modules_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + module_name?: Maybe; }; /** aggregate max on columns */ -export type Gov_Params_Max_Fields = { - __typename?: 'gov_params_max_fields'; - height?: Maybe; +export type Modules_Max_Fields = { + __typename?: 'modules_max_fields'; + module_name?: Maybe; }; /** aggregate min on columns */ -export type Gov_Params_Min_Fields = { - __typename?: 'gov_params_min_fields'; - height?: Maybe; +export type Modules_Min_Fields = { + __typename?: 'modules_min_fields'; + module_name?: Maybe; }; -/** Ordering options when selecting data from "gov_params". */ -export type Gov_Params_Order_By = { - deposit_params?: Maybe; - height?: Maybe; - one_row_id?: Maybe; - tally_params?: Maybe; - voting_params?: Maybe; +/** Ordering options when selecting data from "modules". */ +export type Modules_Order_By = { + module_name?: Maybe; }; -/** select columns of table "gov_params" */ -export enum Gov_Params_Select_Column { - /** column name */ - DepositParams = 'deposit_params', - /** column name */ - Height = 'height', - /** column name */ - OneRowId = 'one_row_id', - /** column name */ - TallyParams = 'tally_params', +/** select columns of table "modules" */ +export enum Modules_Select_Column { /** column name */ - VotingParams = 'voting_params' + ModuleName = 'module_name' } -/** aggregate stddev on columns */ -export type Gov_Params_Stddev_Fields = { - __typename?: 'gov_params_stddev_fields'; - height?: Maybe; -}; -/** aggregate stddev_pop on columns */ -export type Gov_Params_Stddev_Pop_Fields = { - __typename?: 'gov_params_stddev_pop_fields'; - height?: Maybe; +/** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ +export type Numeric_Comparison_Exp = { + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; }; -/** aggregate stddev_samp on columns */ -export type Gov_Params_Stddev_Samp_Fields = { - __typename?: 'gov_params_stddev_samp_fields'; - height?: Maybe; -}; +/** 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' +} -/** aggregate sum on columns */ -export type Gov_Params_Sum_Fields = { - __typename?: 'gov_params_sum_fields'; - height?: Maybe; +/** 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']; }; -/** aggregate var_pop on columns */ -export type Gov_Params_Var_Pop_Fields = { - __typename?: 'gov_params_var_pop_fields'; - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Gov_Params_Var_Samp_Fields = { - __typename?: 'gov_params_var_samp_fields'; - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Gov_Params_Variance_Fields = { - __typename?: 'gov_params_variance_fields'; - height?: Maybe; -}; - -/** columns and relationships of "inflation" */ -export type Inflation = { - __typename?: 'inflation'; - height: Scalars['bigint']; - value: Scalars['numeric']; -}; - -/** aggregated selection of "inflation" */ -export type Inflation_Aggregate = { - __typename?: 'inflation_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "pre_commit" */ +export type Pre_Commit_Aggregate = { + __typename?: 'pre_commit_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "inflation" */ -export type Inflation_Aggregate_Fields = { - __typename?: 'inflation_aggregate_fields'; - avg?: Maybe; +/** 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; + 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 "inflation" */ -export type Inflation_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "pre_commit" */ +export type Pre_Commit_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; +/** order by aggregate values of table "pre_commit" */ +export type Pre_Commit_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + /** aggregate avg on columns */ -export type Inflation_Avg_Fields = { - __typename?: 'inflation_avg_fields'; +export type Pre_Commit_Avg_Fields = { + __typename?: 'pre_commit_avg_fields'; height?: Maybe; - value?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; -/** Boolean expression to filter rows from the table "inflation". All fields are combined with a logical 'AND'. */ -export type Inflation_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; +/** order by avg() on columns of table "pre_commit" */ +export type Pre_Commit_Avg_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; height?: Maybe; - value?: Maybe; + proposer_priority?: Maybe; + timestamp?: Maybe; + validator?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; /** aggregate max on columns */ -export type Inflation_Max_Fields = { - __typename?: 'inflation_max_fields'; +export type Pre_Commit_Max_Fields = { + __typename?: 'pre_commit_max_fields'; height?: Maybe; - value?: 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?: Maybe; + proposer_priority?: Maybe; + timestamp?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; /** aggregate min on columns */ -export type Inflation_Min_Fields = { - __typename?: 'inflation_min_fields'; +export type Pre_Commit_Min_Fields = { + __typename?: 'pre_commit_min_fields'; height?: Maybe; - value?: Maybe; + proposer_priority?: Maybe; + timestamp?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; -/** Ordering options when selecting data from "inflation". */ -export type Inflation_Order_By = { +/** order by min() on columns of table "pre_commit" */ +export type Pre_Commit_Min_Order_By = { height?: Maybe; - value?: Maybe; + proposer_priority?: Maybe; + timestamp?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; -/** select columns of table "inflation" */ -export enum Inflation_Select_Column { +/** Ordering options when selecting data from "pre_commit". */ +export type Pre_Commit_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + timestamp?: Maybe; + validator?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; +}; + +/** select columns of table "pre_commit" */ +export enum Pre_Commit_Select_Column { /** column name */ Height = 'height', /** column name */ - Value = 'value' + ProposerPriority = 'proposer_priority', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + ValidatorAddress = 'validator_address', + /** column name */ + VotingPower = 'voting_power' } /** aggregate stddev on columns */ -export type Inflation_Stddev_Fields = { - __typename?: 'inflation_stddev_fields'; +export type Pre_Commit_Stddev_Fields = { + __typename?: 'pre_commit_stddev_fields'; height?: Maybe; - value?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by stddev() on columns of table "pre_commit" */ +export type Pre_Commit_Stddev_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Inflation_Stddev_Pop_Fields = { - __typename?: 'inflation_stddev_pop_fields'; +export type Pre_Commit_Stddev_Pop_Fields = { + __typename?: 'pre_commit_stddev_pop_fields'; height?: Maybe; - value?: 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?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Inflation_Stddev_Samp_Fields = { - __typename?: 'inflation_stddev_samp_fields'; +export type Pre_Commit_Stddev_Samp_Fields = { + __typename?: 'pre_commit_stddev_samp_fields'; height?: Maybe; - value?: 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?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; /** aggregate sum on columns */ -export type Inflation_Sum_Fields = { - __typename?: 'inflation_sum_fields'; +export type Pre_Commit_Sum_Fields = { + __typename?: 'pre_commit_sum_fields'; height?: Maybe; - value?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by sum() on columns of table "pre_commit" */ +export type Pre_Commit_Sum_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; /** aggregate var_pop on columns */ -export type Inflation_Var_Pop_Fields = { - __typename?: 'inflation_var_pop_fields'; +export type Pre_Commit_Var_Pop_Fields = { + __typename?: 'pre_commit_var_pop_fields'; height?: Maybe; - value?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; -/** aggregate var_samp on columns */ -export type Inflation_Var_Samp_Fields = { - __typename?: 'inflation_var_samp_fields'; - height?: Maybe; - value?: Maybe; +/** order by var_pop() on columns of table "pre_commit" */ +export type Pre_Commit_Var_Pop_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; -/** aggregate variance on columns */ -export type Inflation_Variance_Fields = { - __typename?: 'inflation_variance_fields'; +/** aggregate var_samp on columns */ +export type Pre_Commit_Var_Samp_Fields = { + __typename?: 'pre_commit_var_samp_fields'; height?: Maybe; - value?: 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?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; -/** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */ -export type Jsonb_Comparison_Exp = { - /** is the column contained in the given json value */ - _contained_in?: Maybe; - /** does the column contain the given json value at the top level */ - _contains?: Maybe; - _eq?: Maybe; - _gt?: Maybe; - _gte?: Maybe; - /** does the string exist as a top-level key in the column */ - _has_key?: Maybe; - /** do all of these strings exist as top-level keys in the column */ - _has_keys_all?: Maybe>; - /** do any of these strings exist as top-level keys in the column */ - _has_keys_any?: Maybe>; - _in?: Maybe>; - _is_null?: Maybe; - _lt?: Maybe; - _lte?: Maybe; - _neq?: Maybe; - _nin?: Maybe>; +/** aggregate variance on columns */ +export type Pre_Commit_Variance_Fields = { + __typename?: 'pre_commit_variance_fields'; + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; }; -/** columns and relationships of "message" */ -export type Message = { - __typename?: 'message'; - index: Scalars['bigint']; - involved_accounts_addresses?: Maybe; +/** order by variance() on columns of table "pre_commit" */ +export type Pre_Commit_Variance_Order_By = { + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** columns and relationships of "proposal" */ +export type Proposal = { + __typename?: 'proposal'; + content: Scalars['jsonb']; + deposit_end_time?: Maybe; + description: Scalars['String']; + id: Scalars['Int']; + /** An array relationship */ + proposal_deposits: Array; + /** An aggregate relationship */ + proposal_deposits_aggregate: Proposal_Deposit_Aggregate; + proposal_route: Scalars['String']; /** An object relationship */ - transaction: Transaction; - transaction_hash: Scalars['String']; - type: Scalars['String']; - value: Scalars['jsonb']; + proposal_tally_result?: Maybe; + /** An array relationship */ + proposal_tally_results: Array; + /** An aggregate relationship */ + proposal_tally_results_aggregate: Proposal_Tally_Result_Aggregate; + proposal_type: Scalars['String']; + /** An array relationship */ + proposal_votes: Array; + /** An aggregate relationship */ + proposal_votes_aggregate: Proposal_Vote_Aggregate; + /** 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; + /** An aggregate relationship */ + validator_status_snapshots_aggregate: Proposal_Validator_Status_Snapshot_Aggregate; + voting_end_time?: Maybe; + voting_start_time?: Maybe; }; -/** columns and relationships of "message" */ -export type MessageValueArgs = { +/** columns and relationships of "proposal" */ +export type ProposalContentArgs = { path?: Maybe; }; -/** aggregated selection of "message" */ -export type Message_Aggregate = { - __typename?: 'message_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; -/** aggregate fields of "message" */ -export type Message_Aggregate_Fields = { - __typename?: 'message_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; +/** columns and relationships of "proposal" */ +export type ProposalProposal_DepositsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate fields of "message" */ -export type Message_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** columns and relationships of "proposal" */ +export type ProposalProposal_Deposits_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by aggregate values of table "message" */ -export type Message_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; -/** aggregate avg on columns */ -export type Message_Avg_Fields = { - __typename?: 'message_avg_fields'; - index?: Maybe; +/** columns and relationships of "proposal" */ +export type ProposalProposal_Tally_ResultsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by avg() on columns of table "message" */ -export type Message_Avg_Order_By = { - index?: Maybe; -}; -/** Boolean expression to filter rows from the table "message". All fields are combined with a logical 'AND'. */ -export type Message_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - index?: Maybe; - involved_accounts_addresses?: Maybe<_Text_Comparison_Exp>; - transaction?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; - value?: Maybe; +/** columns and relationships of "proposal" */ +export type ProposalProposal_Tally_Results_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate max on columns */ -export type Message_Max_Fields = { - __typename?: 'message_max_fields'; - index?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; -}; -/** order by max() on columns of table "message" */ -export type Message_Max_Order_By = { - index?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; +/** columns and relationships of "proposal" */ +export type ProposalProposal_VotesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate min on columns */ -export type Message_Min_Fields = { - __typename?: 'message_min_fields'; - index?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; -}; -/** order by min() on columns of table "message" */ -export type Message_Min_Order_By = { - index?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; +/** columns and relationships of "proposal" */ +export type ProposalProposal_Votes_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** Ordering options when selecting data from "message". */ -export type Message_Order_By = { - index?: Maybe; - involved_accounts_addresses?: Maybe; - transaction?: Maybe; - transaction_hash?: Maybe; - type?: Maybe; - value?: Maybe; + +/** columns and relationships of "proposal" */ +export type ProposalValidator_Status_SnapshotsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** select columns of table "message" */ -export enum Message_Select_Column { - /** column name */ - Index = 'index', - /** column name */ - InvolvedAccountsAddresses = 'involved_accounts_addresses', - /** column name */ - TransactionHash = 'transaction_hash', - /** column name */ - Type = 'type', - /** column name */ - Value = 'value' -} -/** aggregate stddev on columns */ -export type Message_Stddev_Fields = { - __typename?: 'message_stddev_fields'; - index?: Maybe; +/** columns and relationships of "proposal" */ +export type ProposalValidator_Status_Snapshots_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by stddev() on columns of table "message" */ -export type Message_Stddev_Order_By = { - index?: Maybe; +/** aggregated selection of "proposal" */ +export type Proposal_Aggregate = { + __typename?: 'proposal_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate stddev_pop on columns */ -export type Message_Stddev_Pop_Fields = { - __typename?: 'message_stddev_pop_fields'; - index?: Maybe; -}; - -/** order by stddev_pop() on columns of table "message" */ -export type Message_Stddev_Pop_Order_By = { - index?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Message_Stddev_Samp_Fields = { - __typename?: 'message_stddev_samp_fields'; - index?: Maybe; -}; - -/** order by stddev_samp() on columns of table "message" */ -export type Message_Stddev_Samp_Order_By = { - index?: Maybe; -}; - -/** aggregate sum on columns */ -export type Message_Sum_Fields = { - __typename?: 'message_sum_fields'; - index?: Maybe; -}; - -/** order by sum() on columns of table "message" */ -export type Message_Sum_Order_By = { - index?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Message_Var_Pop_Fields = { - __typename?: 'message_var_pop_fields'; - index?: Maybe; +/** 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; }; -/** order by var_pop() on columns of table "message" */ -export type Message_Var_Pop_Order_By = { - index?: Maybe; -}; -/** aggregate var_samp on columns */ -export type Message_Var_Samp_Fields = { - __typename?: 'message_var_samp_fields'; - index?: Maybe; +/** aggregate fields of "proposal" */ +export type Proposal_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; -/** order by var_samp() on columns of table "message" */ -export type Message_Var_Samp_Order_By = { - index?: Maybe; +/** order by aggregate values of table "proposal" */ +export type Proposal_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; -/** aggregate variance on columns */ -export type Message_Variance_Fields = { - __typename?: 'message_variance_fields'; - index?: Maybe; +/** aggregate avg on columns */ +export type Proposal_Avg_Fields = { + __typename?: 'proposal_avg_fields'; + id?: Maybe; }; -/** order by variance() on columns of table "message" */ -export type Message_Variance_Order_By = { - index?: Maybe; +/** order by avg() on columns of table "proposal" */ +export type Proposal_Avg_Order_By = { + id?: Maybe; }; -export type Messages_By_Address_Args = { - addresses?: Maybe; - limit?: Maybe; - offset?: Maybe; - types?: Maybe; +/** Boolean expression to filter rows from the table "proposal". All fields are combined with a logical 'AND'. */ +export type Proposal_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + content?: Maybe; + deposit_end_time?: Maybe; + description?: Maybe; + id?: Maybe; + proposal_deposits?: Maybe; + proposal_route?: Maybe; + proposal_tally_result?: Maybe; + proposal_tally_results?: Maybe; + proposal_type?: Maybe; + proposal_votes?: Maybe; + proposer?: Maybe; + proposer_address?: Maybe; + staking_pool_snapshot?: Maybe; + status?: Maybe; + submit_time?: Maybe; + title?: Maybe; + validator_status_snapshots?: Maybe; + voting_end_time?: Maybe; + voting_start_time?: Maybe; }; -/** columns and relationships of "mint_params" */ -export type Mint_Params = { - __typename?: 'mint_params'; +/** 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']; - one_row_id: Scalars['Boolean']; - params: Scalars['jsonb']; -}; - - -/** columns and relationships of "mint_params" */ -export type Mint_ParamsParamsArgs = { - path?: Maybe; + /** An object relationship */ + proposal: Proposal; + proposal_id: Scalars['Int']; }; -/** aggregated selection of "mint_params" */ -export type Mint_Params_Aggregate = { - __typename?: 'mint_params_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "proposal_deposit" */ +export type Proposal_Deposit_Aggregate = { + __typename?: 'proposal_deposit_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "mint_params" */ -export type Mint_Params_Aggregate_Fields = { - __typename?: 'mint_params_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "proposal_deposit" */ +export type Proposal_Deposit_Aggregate_Fields = { + __typename?: 'proposal_deposit_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; + 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 "mint_params" */ -export type Mint_Params_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "proposal_deposit" */ +export type Proposal_Deposit_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; +/** order by aggregate values of table "proposal_deposit" */ +export type Proposal_Deposit_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + /** aggregate avg on columns */ -export type Mint_Params_Avg_Fields = { - __typename?: 'mint_params_avg_fields'; +export type Proposal_Deposit_Avg_Fields = { + __typename?: 'proposal_deposit_avg_fields'; height?: Maybe; + proposal_id?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; +/** order by avg() on columns of table "proposal_deposit" */ +export type Proposal_Deposit_Avg_Order_By = { + height?: Maybe; + proposal_id?: Maybe; +}; + +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + amount?: Maybe<_Coin_Comparison_Exp>; + block?: Maybe; + depositor?: Maybe; + depositor_address?: Maybe; height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; }; /** aggregate max on columns */ -export type Mint_Params_Max_Fields = { - __typename?: 'mint_params_max_fields'; +export type Proposal_Deposit_Max_Fields = { + __typename?: 'proposal_deposit_max_fields'; + depositor_address?: Maybe; height?: Maybe; + proposal_id?: Maybe; +}; + +/** order by max() on columns of table "proposal_deposit" */ +export type Proposal_Deposit_Max_Order_By = { + depositor_address?: Maybe; + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate min on columns */ -export type Mint_Params_Min_Fields = { - __typename?: 'mint_params_min_fields'; +export type Proposal_Deposit_Min_Fields = { + __typename?: 'proposal_deposit_min_fields'; + depositor_address?: Maybe; height?: Maybe; + proposal_id?: Maybe; }; -/** Ordering options when selecting data from "mint_params". */ -export type Mint_Params_Order_By = { +/** order by min() on columns of table "proposal_deposit" */ +export type Proposal_Deposit_Min_Order_By = { + depositor_address?: Maybe; height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; + proposal_id?: Maybe; }; -/** select columns of table "mint_params" */ -export enum Mint_Params_Select_Column { +/** Ordering options when selecting data from "proposal_deposit". */ +export type Proposal_Deposit_Order_By = { + amount?: Maybe; + block?: Maybe; + depositor?: Maybe; + depositor_address?: Maybe; + height?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; +}; + +/** select columns of table "proposal_deposit" */ +export enum Proposal_Deposit_Select_Column { /** column name */ - Height = 'height', + Amount = 'amount', /** column name */ - OneRowId = 'one_row_id', + DepositorAddress = 'depositor_address', /** column name */ - Params = 'params' + Height = 'height', + /** column name */ + ProposalId = 'proposal_id' } /** aggregate stddev on columns */ -export type Mint_Params_Stddev_Fields = { - __typename?: 'mint_params_stddev_fields'; +export type Proposal_Deposit_Stddev_Fields = { + __typename?: 'proposal_deposit_stddev_fields'; height?: Maybe; + proposal_id?: Maybe; +}; + +/** order by stddev() on columns of table "proposal_deposit" */ +export type Proposal_Deposit_Stddev_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Mint_Params_Stddev_Pop_Fields = { - __typename?: 'mint_params_stddev_pop_fields'; +export type Proposal_Deposit_Stddev_Pop_Fields = { + __typename?: 'proposal_deposit_stddev_pop_fields'; height?: Maybe; + proposal_id?: Maybe; +}; + +/** order by stddev_pop() on columns of table "proposal_deposit" */ +export type Proposal_Deposit_Stddev_Pop_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Mint_Params_Stddev_Samp_Fields = { - __typename?: 'mint_params_stddev_samp_fields'; +export type Proposal_Deposit_Stddev_Samp_Fields = { + __typename?: 'proposal_deposit_stddev_samp_fields'; height?: Maybe; + proposal_id?: Maybe; +}; + +/** order by stddev_samp() on columns of table "proposal_deposit" */ +export type Proposal_Deposit_Stddev_Samp_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate sum on columns */ -export type Mint_Params_Sum_Fields = { - __typename?: 'mint_params_sum_fields'; +export type Proposal_Deposit_Sum_Fields = { + __typename?: 'proposal_deposit_sum_fields'; height?: Maybe; + proposal_id?: Maybe; +}; + +/** order by sum() on columns of table "proposal_deposit" */ +export type Proposal_Deposit_Sum_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate var_pop on columns */ -export type Mint_Params_Var_Pop_Fields = { - __typename?: 'mint_params_var_pop_fields'; +export type Proposal_Deposit_Var_Pop_Fields = { + __typename?: 'proposal_deposit_var_pop_fields'; height?: Maybe; + proposal_id?: Maybe; }; -/** aggregate var_samp on columns */ -export type Mint_Params_Var_Samp_Fields = { - __typename?: 'mint_params_var_samp_fields'; - height?: Maybe; +/** order by var_pop() on columns of table "proposal_deposit" */ +export type Proposal_Deposit_Var_Pop_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; -/** aggregate variance on columns */ -export type Mint_Params_Variance_Fields = { - __typename?: 'mint_params_variance_fields'; +/** aggregate var_samp on columns */ +export type Proposal_Deposit_Var_Samp_Fields = { + __typename?: 'proposal_deposit_var_samp_fields'; height?: Maybe; + proposal_id?: Maybe; }; -/** columns and relationships of "modules" */ -export type Modules = { - __typename?: 'modules'; - module_name: Scalars['String']; +/** order by var_samp() on columns of table "proposal_deposit" */ +export type Proposal_Deposit_Var_Samp_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; -/** aggregated selection of "modules" */ -export type Modules_Aggregate = { - __typename?: 'modules_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregate variance on columns */ +export type Proposal_Deposit_Variance_Fields = { + __typename?: 'proposal_deposit_variance_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** aggregate fields of "modules" */ -export type Modules_Aggregate_Fields = { - __typename?: 'modules_aggregate_fields'; - count: Scalars['Int']; - max?: Maybe; - min?: Maybe; +/** order by variance() on columns of table "proposal_deposit" */ +export type Proposal_Deposit_Variance_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; - -/** aggregate fields of "modules" */ -export type Modules_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** aggregate max on columns */ +export type Proposal_Max_Fields = { + __typename?: 'proposal_max_fields'; + deposit_end_time?: Maybe; + description?: Maybe; + id?: Maybe; + proposal_route?: Maybe; + proposal_type?: Maybe; + proposer_address?: Maybe; + status?: Maybe; + submit_time?: Maybe; + title?: Maybe; + voting_end_time?: Maybe; + voting_start_time?: Maybe; }; -/** Boolean expression to filter rows from the table "modules". All fields are combined with a logical 'AND'. */ -export type Modules_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - module_name?: Maybe; +/** order by max() on columns of table "proposal" */ +export type Proposal_Max_Order_By = { + deposit_end_time?: Maybe; + description?: Maybe; + id?: Maybe; + proposal_route?: Maybe; + proposal_type?: Maybe; + proposer_address?: Maybe; + status?: Maybe; + submit_time?: Maybe; + title?: Maybe; + voting_end_time?: Maybe; + voting_start_time?: Maybe; }; -/** aggregate max on columns */ -export type Modules_Max_Fields = { - __typename?: 'modules_max_fields'; - module_name?: Maybe; +/** aggregate min on columns */ +export type Proposal_Min_Fields = { + __typename?: 'proposal_min_fields'; + deposit_end_time?: Maybe; + description?: Maybe; + id?: Maybe; + proposal_route?: Maybe; + proposal_type?: Maybe; + proposer_address?: Maybe; + status?: Maybe; + submit_time?: Maybe; + title?: Maybe; + voting_end_time?: Maybe; + voting_start_time?: Maybe; }; -/** aggregate min on columns */ -export type Modules_Min_Fields = { - __typename?: 'modules_min_fields'; - module_name?: Maybe; +/** order by min() on columns of table "proposal" */ +export type Proposal_Min_Order_By = { + deposit_end_time?: Maybe; + description?: Maybe; + id?: Maybe; + proposal_route?: Maybe; + proposal_type?: Maybe; + proposer_address?: Maybe; + status?: Maybe; + submit_time?: Maybe; + title?: Maybe; + voting_end_time?: Maybe; + voting_start_time?: Maybe; }; -/** Ordering options when selecting data from "modules". */ -export type Modules_Order_By = { - module_name?: Maybe; +/** Ordering options when selecting data from "proposal". */ +export type Proposal_Order_By = { + content?: Maybe; + deposit_end_time?: Maybe; + description?: Maybe; + id?: Maybe; + proposal_deposits_aggregate?: Maybe; + proposal_route?: Maybe; + proposal_tally_result?: Maybe; + proposal_tally_results_aggregate?: Maybe; + proposal_type?: Maybe; + proposal_votes_aggregate?: Maybe; + proposer?: Maybe; + proposer_address?: Maybe; + staking_pool_snapshot?: Maybe; + status?: Maybe; + submit_time?: Maybe; + title?: Maybe; + validator_status_snapshots_aggregate?: Maybe; + voting_end_time?: Maybe; + voting_start_time?: Maybe; }; -/** select columns of table "modules" */ -export enum Modules_Select_Column { +/** select columns of table "proposal" */ +export enum Proposal_Select_Column { /** column name */ - ModuleName = 'module_name' + Content = 'content', + /** column name */ + DepositEndTime = 'deposit_end_time', + /** column name */ + Description = 'description', + /** column name */ + Id = 'id', + /** column name */ + ProposalRoute = 'proposal_route', + /** column name */ + ProposalType = 'proposal_type', + /** 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['numeric']; + height: Scalars['bigint']; + not_bonded_tokens: Scalars['numeric']; + /** An object relationship */ + proposal: Proposal; + proposal_id: Scalars['Int']; +}; -/** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ -export type Numeric_Comparison_Exp = { - _eq?: Maybe; - _gt?: Maybe; - _gte?: Maybe; - _in?: Maybe>; - _is_null?: Maybe; - _lt?: Maybe; - _lte?: Maybe; - _neq?: Maybe; - _nin?: Maybe>; -}; - -/** 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 "poll" */ -export type Poll = { - __typename?: 'poll'; - allows_answer_edits: Scalars['Boolean']; - allows_multiple_answers: Scalars['Boolean']; - end_date: Scalars['timestamp']; - id: Scalars['Int']; - /** An array relationship */ - poll_answers: Array; - /** An aggregate relationship */ - poll_answers_aggregate: Poll_Answer_Aggregate; - /** An object relationship */ - post: Post; - post_id: Scalars['String']; - question: Scalars['String']; - /** An array relationship */ - user_poll_answers: Array; - /** An aggregate relationship */ - user_poll_answers_aggregate: User_Poll_Answer_Aggregate; -}; - - -/** columns and relationships of "poll" */ -export type PollPoll_AnswersArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "poll" */ -export type PollPoll_Answers_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "poll" */ -export type PollUser_Poll_AnswersArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "poll" */ -export type PollUser_Poll_Answers_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - -/** aggregated selection of "poll" */ -export type Poll_Aggregate = { - __typename?: 'poll_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "poll" */ -export type Poll_Aggregate_Fields = { - __typename?: 'poll_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 "poll" */ -export type Poll_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** columns and relationships of "poll_answer" */ -export type Poll_Answer = { - __typename?: 'poll_answer'; - answer_id: Scalars['String']; - answer_text: Scalars['String']; - /** An object relationship */ - poll: Poll; - poll_id: Scalars['Int']; -}; - -/** aggregated selection of "poll_answer" */ -export type Poll_Answer_Aggregate = { - __typename?: 'poll_answer_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "proposal_staking_pool_snapshot" */ +export type Proposal_Staking_Pool_Snapshot_Aggregate = { + __typename?: 'proposal_staking_pool_snapshot_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "poll_answer" */ -export type Poll_Answer_Aggregate_Fields = { - __typename?: 'poll_answer_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "proposal_staking_pool_snapshot" */ +export type Proposal_Staking_Pool_Snapshot_Aggregate_Fields = { + __typename?: 'proposal_staking_pool_snapshot_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; + 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 "poll_answer" */ -export type Poll_Answer_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "proposal_staking_pool_snapshot" */ +export type Proposal_Staking_Pool_Snapshot_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "poll_answer" */ -export type Poll_Answer_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - /** aggregate avg on columns */ -export type Poll_Answer_Avg_Fields = { - __typename?: 'poll_answer_avg_fields'; - poll_id?: Maybe; -}; - -/** order by avg() on columns of table "poll_answer" */ -export type Poll_Answer_Avg_Order_By = { - poll_id?: Maybe; +export type Proposal_Staking_Pool_Snapshot_Avg_Fields = { + __typename?: 'proposal_staking_pool_snapshot_avg_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; + proposal_id?: Maybe; }; -/** Boolean expression to filter rows from the table "poll_answer". All fields are combined with a logical 'AND'. */ -export type Poll_Answer_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - answer_id?: Maybe; - answer_text?: Maybe; - poll?: Maybe; - poll_id?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; }; /** aggregate max on columns */ -export type Poll_Answer_Max_Fields = { - __typename?: 'poll_answer_max_fields'; - answer_id?: Maybe; - answer_text?: Maybe; - poll_id?: Maybe; -}; - -/** order by max() on columns of table "poll_answer" */ -export type Poll_Answer_Max_Order_By = { - answer_id?: Maybe; - answer_text?: Maybe; - poll_id?: Maybe; +export type Proposal_Staking_Pool_Snapshot_Max_Fields = { + __typename?: 'proposal_staking_pool_snapshot_max_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; + proposal_id?: Maybe; }; /** aggregate min on columns */ -export type Poll_Answer_Min_Fields = { - __typename?: 'poll_answer_min_fields'; - answer_id?: Maybe; - answer_text?: Maybe; - poll_id?: Maybe; -}; - -/** order by min() on columns of table "poll_answer" */ -export type Poll_Answer_Min_Order_By = { - answer_id?: Maybe; - answer_text?: Maybe; - poll_id?: Maybe; +export type Proposal_Staking_Pool_Snapshot_Min_Fields = { + __typename?: 'proposal_staking_pool_snapshot_min_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; + proposal_id?: Maybe; }; -/** Ordering options when selecting data from "poll_answer". */ -export type Poll_Answer_Order_By = { - answer_id?: Maybe; - answer_text?: Maybe; - poll?: Maybe; - poll_id?: Maybe; +/** Ordering options when selecting data from "proposal_staking_pool_snapshot". */ +export type Proposal_Staking_Pool_Snapshot_Order_By = { + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; }; -/** select columns of table "poll_answer" */ -export enum Poll_Answer_Select_Column { +/** select columns of table "proposal_staking_pool_snapshot" */ +export enum Proposal_Staking_Pool_Snapshot_Select_Column { + /** column name */ + BondedTokens = 'bonded_tokens', /** column name */ - AnswerId = 'answer_id', + Height = 'height', /** column name */ - AnswerText = 'answer_text', + NotBondedTokens = 'not_bonded_tokens', /** column name */ - PollId = 'poll_id' + ProposalId = 'proposal_id' } /** aggregate stddev on columns */ -export type Poll_Answer_Stddev_Fields = { - __typename?: 'poll_answer_stddev_fields'; - poll_id?: Maybe; -}; - -/** order by stddev() on columns of table "poll_answer" */ -export type Poll_Answer_Stddev_Order_By = { - poll_id?: Maybe; +export type Proposal_Staking_Pool_Snapshot_Stddev_Fields = { + __typename?: 'proposal_staking_pool_snapshot_stddev_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; + proposal_id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Poll_Answer_Stddev_Pop_Fields = { - __typename?: 'poll_answer_stddev_pop_fields'; - poll_id?: Maybe; -}; - -/** order by stddev_pop() on columns of table "poll_answer" */ -export type Poll_Answer_Stddev_Pop_Order_By = { - poll_id?: Maybe; +export type Proposal_Staking_Pool_Snapshot_Stddev_Pop_Fields = { + __typename?: 'proposal_staking_pool_snapshot_stddev_pop_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; + proposal_id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Poll_Answer_Stddev_Samp_Fields = { - __typename?: 'poll_answer_stddev_samp_fields'; - poll_id?: Maybe; -}; - -/** order by stddev_samp() on columns of table "poll_answer" */ -export type Poll_Answer_Stddev_Samp_Order_By = { - poll_id?: Maybe; +export type Proposal_Staking_Pool_Snapshot_Stddev_Samp_Fields = { + __typename?: 'proposal_staking_pool_snapshot_stddev_samp_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; + proposal_id?: Maybe; }; /** aggregate sum on columns */ -export type Poll_Answer_Sum_Fields = { - __typename?: 'poll_answer_sum_fields'; - poll_id?: Maybe; -}; - -/** order by sum() on columns of table "poll_answer" */ -export type Poll_Answer_Sum_Order_By = { - poll_id?: Maybe; +export type Proposal_Staking_Pool_Snapshot_Sum_Fields = { + __typename?: 'proposal_staking_pool_snapshot_sum_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; + proposal_id?: Maybe; }; /** aggregate var_pop on columns */ -export type Poll_Answer_Var_Pop_Fields = { - __typename?: 'poll_answer_var_pop_fields'; - poll_id?: Maybe; -}; - -/** order by var_pop() on columns of table "poll_answer" */ -export type Poll_Answer_Var_Pop_Order_By = { - poll_id?: Maybe; +export type Proposal_Staking_Pool_Snapshot_Var_Pop_Fields = { + __typename?: 'proposal_staking_pool_snapshot_var_pop_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; + proposal_id?: Maybe; }; /** aggregate var_samp on columns */ -export type Poll_Answer_Var_Samp_Fields = { - __typename?: 'poll_answer_var_samp_fields'; - poll_id?: Maybe; -}; - -/** order by var_samp() on columns of table "poll_answer" */ -export type Poll_Answer_Var_Samp_Order_By = { - poll_id?: Maybe; +export type Proposal_Staking_Pool_Snapshot_Var_Samp_Fields = { + __typename?: 'proposal_staking_pool_snapshot_var_samp_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; + proposal_id?: Maybe; }; /** aggregate variance on columns */ -export type Poll_Answer_Variance_Fields = { - __typename?: 'poll_answer_variance_fields'; - poll_id?: Maybe; -}; - -/** order by variance() on columns of table "poll_answer" */ -export type Poll_Answer_Variance_Order_By = { - poll_id?: Maybe; +export type Proposal_Staking_Pool_Snapshot_Variance_Fields = { + __typename?: 'proposal_staking_pool_snapshot_variance_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; + proposal_id?: Maybe; }; -/** aggregate avg on columns */ -export type Poll_Avg_Fields = { - __typename?: 'poll_avg_fields'; +/** aggregate stddev on columns */ +export type Proposal_Stddev_Fields = { + __typename?: 'proposal_stddev_fields'; id?: Maybe; }; -/** Boolean expression to filter rows from the table "poll". All fields are combined with a logical 'AND'. */ -export type Poll_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - allows_answer_edits?: Maybe; - allows_multiple_answers?: Maybe; - end_date?: Maybe; - id?: Maybe; - poll_answers?: Maybe; - post?: Maybe; - post_id?: Maybe; - question?: Maybe; - user_poll_answers?: Maybe; -}; - -/** aggregate max on columns */ -export type Poll_Max_Fields = { - __typename?: 'poll_max_fields'; - end_date?: Maybe; - id?: Maybe; - post_id?: Maybe; - question?: Maybe; -}; - -/** aggregate min on columns */ -export type Poll_Min_Fields = { - __typename?: 'poll_min_fields'; - end_date?: Maybe; - id?: Maybe; - post_id?: Maybe; - question?: Maybe; -}; - -/** Ordering options when selecting data from "poll". */ -export type Poll_Order_By = { - allows_answer_edits?: Maybe; - allows_multiple_answers?: Maybe; - end_date?: Maybe; +/** order by stddev() on columns of table "proposal" */ +export type Proposal_Stddev_Order_By = { id?: Maybe; - poll_answers_aggregate?: Maybe; - post?: Maybe; - post_id?: Maybe; - question?: Maybe; - user_poll_answers_aggregate?: Maybe; }; -/** select columns of table "poll" */ -export enum Poll_Select_Column { - /** column name */ - AllowsAnswerEdits = 'allows_answer_edits', - /** column name */ - AllowsMultipleAnswers = 'allows_multiple_answers', - /** column name */ - EndDate = 'end_date', - /** column name */ - Id = 'id', - /** column name */ - PostId = 'post_id', - /** column name */ - Question = 'question' -} - -/** aggregate stddev on columns */ -export type Poll_Stddev_Fields = { - __typename?: 'poll_stddev_fields'; +/** aggregate stddev_pop on columns */ +export type Proposal_Stddev_Pop_Fields = { + __typename?: 'proposal_stddev_pop_fields'; id?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Poll_Stddev_Pop_Fields = { - __typename?: 'poll_stddev_pop_fields'; - id?: Maybe; +/** order by stddev_pop() on columns of table "proposal" */ +export type Proposal_Stddev_Pop_Order_By = { + id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Poll_Stddev_Samp_Fields = { - __typename?: 'poll_stddev_samp_fields'; +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?: Maybe; +}; + /** aggregate sum on columns */ -export type Poll_Sum_Fields = { - __typename?: 'poll_sum_fields'; +export type Proposal_Sum_Fields = { + __typename?: 'proposal_sum_fields'; id?: Maybe; }; -/** aggregate var_pop on columns */ -export type Poll_Var_Pop_Fields = { - __typename?: 'poll_var_pop_fields'; - id?: Maybe; +/** order by sum() on columns of table "proposal" */ +export type Proposal_Sum_Order_By = { + id?: Maybe; }; -/** aggregate var_samp on columns */ -export type Poll_Var_Samp_Fields = { - __typename?: 'poll_var_samp_fields'; - id?: Maybe; +/** 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']; }; -/** aggregate variance on columns */ -export type Poll_Variance_Fields = { - __typename?: 'poll_variance_fields'; - id?: Maybe; +/** aggregated selection of "proposal_tally_result" */ +export type Proposal_Tally_Result_Aggregate = { + __typename?: 'proposal_tally_result_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** columns and relationships of "post" */ -export type Post = { - __typename?: 'post'; - comments_state: Scalars['String']; - created: Scalars['timestamp']; - creator_address: Scalars['String']; - height: Scalars['bigint']; - hidden: Scalars['Boolean']; - id: Scalars['String']; - last_edited: Scalars['timestamp']; - message: Scalars['String']; - parent_id?: Maybe; - /** An object relationship */ - poll: Poll; - /** An object relationship */ - post?: Maybe; - /** An array relationship */ - post_attachments: Array; - /** An aggregate relationship */ - post_attachments_aggregate: Post_Attachment_Aggregate; - /** An array relationship */ - post_attributes: Array; - /** An aggregate relationship */ - post_attributes_aggregate: Post_Attribute_Aggregate; - /** An array relationship */ - post_reactions: Array; - /** An aggregate relationship */ - post_reactions_aggregate: Post_Reaction_Aggregate; - /** An array relationship */ - post_reports: Array; - /** An aggregate relationship */ - post_reports_aggregate: Post_Report_Aggregate; - /** An array relationship */ - posts: Array; - /** An aggregate relationship */ - posts_aggregate: Post_Aggregate; - /** An object relationship */ - profile: Profile; - subspace: Scalars['String']; -}; - - -/** columns and relationships of "post" */ -export type PostPost_AttachmentsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "post" */ -export type PostPost_Attachments_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "post" */ -export type PostPost_AttributesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "post" */ -export type PostPost_Attributes_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "post" */ -export type PostPost_ReactionsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "post" */ -export type PostPost_Reactions_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "post" */ -export type PostPost_ReportsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "post" */ -export type PostPost_Reports_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "post" */ -export type PostPostsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "post" */ -export type PostPosts_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - -/** aggregated selection of "post" */ -export type Post_Aggregate = { - __typename?: 'post_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "post" */ -export type Post_Aggregate_Fields = { - __typename?: 'post_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 "post" */ -export type Post_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "post" */ -export type Post_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** columns and relationships of "post_attachment" */ -export type Post_Attachment = { - __typename?: 'post_attachment'; - id: Scalars['Int']; - mime_type: Scalars['String']; - /** An object relationship */ - post: Post; - /** An array relationship */ - post_attachment_tags: Array; - /** An aggregate relationship */ - post_attachment_tags_aggregate: Post_Attachment_Tag_Aggregate; - post_id: Scalars['String']; - uri: Scalars['String']; -}; - - -/** columns and relationships of "post_attachment" */ -export type Post_AttachmentPost_Attachment_TagsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "post_attachment" */ -export type Post_AttachmentPost_Attachment_Tags_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - -/** aggregated selection of "post_attachment" */ -export type Post_Attachment_Aggregate = { - __typename?: 'post_attachment_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "post_attachment" */ -export type Post_Attachment_Aggregate_Fields = { - __typename?: 'post_attachment_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "proposal_tally_result" */ +export type Proposal_Tally_Result_Aggregate_Fields = { + __typename?: 'proposal_tally_result_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; + 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 "post_attachment" */ -export type Post_Attachment_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "proposal_tally_result" */ +export type Proposal_Tally_Result_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "post_attachment" */ -export type Post_Attachment_Aggregate_Order_By = { - avg?: Maybe; +/** order by aggregate values of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate avg on columns */ -export type Post_Attachment_Avg_Fields = { - __typename?: 'post_attachment_avg_fields'; - id?: Maybe; +export type Proposal_Tally_Result_Avg_Fields = { + __typename?: 'proposal_tally_result_avg_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by avg() on columns of table "post_attachment" */ -export type Post_Attachment_Avg_Order_By = { - id?: Maybe; +/** order by avg() on columns of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Avg_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; -/** Boolean expression to filter rows from the table "post_attachment". All fields are combined with a logical 'AND'. */ -export type Post_Attachment_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - id?: Maybe; - mime_type?: Maybe; - post?: Maybe; - post_attachment_tags?: Maybe; - post_id?: Maybe; - uri?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + abstain?: Maybe; + height?: Maybe; + no?: Maybe; + no_with_veto?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; + yes?: Maybe; }; /** aggregate max on columns */ -export type Post_Attachment_Max_Fields = { - __typename?: 'post_attachment_max_fields'; - id?: Maybe; - mime_type?: Maybe; - post_id?: Maybe; - uri?: Maybe; +export type Proposal_Tally_Result_Max_Fields = { + __typename?: 'proposal_tally_result_max_fields'; + abstain?: Maybe; + height?: Maybe; + no?: Maybe; + no_with_veto?: Maybe; + proposal_id?: Maybe; + yes?: Maybe; }; -/** order by max() on columns of table "post_attachment" */ -export type Post_Attachment_Max_Order_By = { - id?: Maybe; - mime_type?: Maybe; - post_id?: Maybe; - uri?: Maybe; +/** order by max() on columns of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Max_Order_By = { + abstain?: Maybe; + height?: Maybe; + no?: Maybe; + no_with_veto?: Maybe; + proposal_id?: Maybe; + yes?: Maybe; }; /** aggregate min on columns */ -export type Post_Attachment_Min_Fields = { - __typename?: 'post_attachment_min_fields'; - id?: Maybe; - mime_type?: Maybe; - post_id?: Maybe; - uri?: Maybe; +export type Proposal_Tally_Result_Min_Fields = { + __typename?: 'proposal_tally_result_min_fields'; + abstain?: Maybe; + height?: Maybe; + no?: Maybe; + no_with_veto?: Maybe; + proposal_id?: Maybe; + yes?: Maybe; }; -/** order by min() on columns of table "post_attachment" */ -export type Post_Attachment_Min_Order_By = { - id?: Maybe; - mime_type?: Maybe; - post_id?: Maybe; - uri?: Maybe; +/** order by min() on columns of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Min_Order_By = { + abstain?: Maybe; + height?: Maybe; + no?: Maybe; + no_with_veto?: Maybe; + proposal_id?: Maybe; + yes?: Maybe; }; -/** Ordering options when selecting data from "post_attachment". */ -export type Post_Attachment_Order_By = { - id?: Maybe; - mime_type?: Maybe; - post?: Maybe; - post_attachment_tags_aggregate?: Maybe; - post_id?: Maybe; - uri?: Maybe; +/** Ordering options when selecting data from "proposal_tally_result". */ +export type Proposal_Tally_Result_Order_By = { + abstain?: Maybe; + height?: Maybe; + no?: Maybe; + no_with_veto?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; + yes?: Maybe; }; -/** select columns of table "post_attachment" */ -export enum Post_Attachment_Select_Column { +/** select columns of table "proposal_tally_result" */ +export enum Proposal_Tally_Result_Select_Column { /** column name */ - Id = 'id', + Abstain = 'abstain', + /** column name */ + Height = 'height', + /** column name */ + No = 'no', /** column name */ - MimeType = 'mime_type', + NoWithVeto = 'no_with_veto', /** column name */ - PostId = 'post_id', + ProposalId = 'proposal_id', /** column name */ - Uri = 'uri' + Yes = 'yes' } /** aggregate stddev on columns */ -export type Post_Attachment_Stddev_Fields = { - __typename?: 'post_attachment_stddev_fields'; - id?: Maybe; +export type Proposal_Tally_Result_Stddev_Fields = { + __typename?: 'proposal_tally_result_stddev_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by stddev() on columns of table "post_attachment" */ -export type Post_Attachment_Stddev_Order_By = { - id?: Maybe; +/** order by stddev() on columns of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Stddev_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Post_Attachment_Stddev_Pop_Fields = { - __typename?: 'post_attachment_stddev_pop_fields'; - id?: Maybe; +export type Proposal_Tally_Result_Stddev_Pop_Fields = { + __typename?: 'proposal_tally_result_stddev_pop_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by stddev_pop() on columns of table "post_attachment" */ -export type Post_Attachment_Stddev_Pop_Order_By = { - id?: Maybe; +/** order by stddev_pop() on columns of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Stddev_Pop_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Post_Attachment_Stddev_Samp_Fields = { - __typename?: 'post_attachment_stddev_samp_fields'; - id?: Maybe; +export type Proposal_Tally_Result_Stddev_Samp_Fields = { + __typename?: 'proposal_tally_result_stddev_samp_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by stddev_samp() on columns of table "post_attachment" */ -export type Post_Attachment_Stddev_Samp_Order_By = { - id?: Maybe; +/** order by stddev_samp() on columns of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Stddev_Samp_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; /** aggregate sum on columns */ -export type Post_Attachment_Sum_Fields = { - __typename?: 'post_attachment_sum_fields'; - id?: Maybe; -}; - -/** order by sum() on columns of table "post_attachment" */ -export type Post_Attachment_Sum_Order_By = { - id?: Maybe; +export type Proposal_Tally_Result_Sum_Fields = { + __typename?: 'proposal_tally_result_sum_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** columns and relationships of "post_attachment_tag" */ -export type Post_Attachment_Tag = { - __typename?: 'post_attachment_tag'; - attachment_id: Scalars['Int']; - /** An object relationship */ - post_attachment: Post_Attachment; - /** An object relationship */ - profile: Profile; - tag_address: Scalars['String']; +/** order by sum() on columns of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Sum_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; -/** aggregated selection of "post_attachment_tag" */ -export type Post_Attachment_Tag_Aggregate = { - __typename?: 'post_attachment_tag_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregate var_pop on columns */ +export type Proposal_Tally_Result_Var_Pop_Fields = { + __typename?: 'proposal_tally_result_var_pop_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** aggregate fields of "post_attachment_tag" */ -export type Post_Attachment_Tag_Aggregate_Fields = { - __typename?: 'post_attachment_tag_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; +/** order by var_pop() on columns of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Var_Pop_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; - -/** aggregate fields of "post_attachment_tag" */ -export type Post_Attachment_Tag_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +/** aggregate var_samp on columns */ +export type Proposal_Tally_Result_Var_Samp_Fields = { + __typename?: 'proposal_tally_result_var_samp_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by aggregate values of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; +/** order by var_samp() on columns of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Var_Samp_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; -/** aggregate avg on columns */ -export type Post_Attachment_Tag_Avg_Fields = { - __typename?: 'post_attachment_tag_avg_fields'; - attachment_id?: Maybe; +/** aggregate variance on columns */ +export type Proposal_Tally_Result_Variance_Fields = { + __typename?: 'proposal_tally_result_variance_fields'; + height?: Maybe; + proposal_id?: Maybe; }; -/** order by avg() on columns of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Avg_Order_By = { - attachment_id?: Maybe; +/** order by variance() on columns of table "proposal_tally_result" */ +export type Proposal_Tally_Result_Variance_Order_By = { + height?: Maybe; + proposal_id?: Maybe; }; -/** Boolean expression to filter rows from the table "post_attachment_tag". All fields are combined with a logical 'AND'. */ -export type Post_Attachment_Tag_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - attachment_id?: Maybe; - post_attachment?: Maybe; - profile?: Maybe; - tag_address?: Maybe; +/** columns and relationships of "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot = { + __typename?: 'proposal_validator_status_snapshot'; + height: Scalars['bigint']; + id: Scalars['Int']; + 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']; }; -/** aggregate max on columns */ -export type Post_Attachment_Tag_Max_Fields = { - __typename?: 'post_attachment_tag_max_fields'; - attachment_id?: Maybe; - tag_address?: Maybe; +/** aggregated selection of "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Aggregate = { + __typename?: 'proposal_validator_status_snapshot_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** order by max() on columns of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Max_Order_By = { - attachment_id?: Maybe; - tag_address?: Maybe; +/** aggregate fields of "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Aggregate_Fields = { + __typename?: 'proposal_validator_status_snapshot_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 min on columns */ -export type Post_Attachment_Tag_Min_Fields = { - __typename?: 'post_attachment_tag_min_fields'; - attachment_id?: Maybe; - tag_address?: Maybe; + +/** aggregate fields of "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; -/** order by min() on columns of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Min_Order_By = { - attachment_id?: Maybe; - tag_address?: Maybe; +/** order by aggregate values of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; -/** Ordering options when selecting data from "post_attachment_tag". */ -export type Post_Attachment_Tag_Order_By = { - attachment_id?: Maybe; - post_attachment?: Maybe; - profile?: Maybe; - tag_address?: Maybe; +/** aggregate avg on columns */ +export type Proposal_Validator_Status_Snapshot_Avg_Fields = { + __typename?: 'proposal_validator_status_snapshot_avg_fields'; + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; -/** select columns of table "post_attachment_tag" */ -export enum Post_Attachment_Tag_Select_Column { - /** column name */ - AttachmentId = 'attachment_id', - /** column name */ - TagAddress = 'tag_address' -} +/** order by avg() on columns of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Avg_Order_By = { + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; +}; -/** aggregate stddev on columns */ -export type Post_Attachment_Tag_Stddev_Fields = { - __typename?: 'post_attachment_tag_stddev_fields'; - attachment_id?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + height?: Maybe; + id?: Maybe; + jailed?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + validator?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; -/** order by stddev() on columns of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Stddev_Order_By = { - attachment_id?: Maybe; +/** aggregate max on columns */ +export type Proposal_Validator_Status_Snapshot_Max_Fields = { + __typename?: 'proposal_validator_status_snapshot_max_fields'; + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Post_Attachment_Tag_Stddev_Pop_Fields = { - __typename?: 'post_attachment_tag_stddev_pop_fields'; - attachment_id?: Maybe; +/** order by max() on columns of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Max_Order_By = { + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; -/** order by stddev_pop() on columns of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Stddev_Pop_Order_By = { - attachment_id?: Maybe; +/** aggregate min on columns */ +export type Proposal_Validator_Status_Snapshot_Min_Fields = { + __typename?: 'proposal_validator_status_snapshot_min_fields'; + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; -/** aggregate stddev_samp on columns */ -export type Post_Attachment_Tag_Stddev_Samp_Fields = { - __typename?: 'post_attachment_tag_stddev_samp_fields'; - attachment_id?: Maybe; +/** order by min() on columns of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Min_Order_By = { + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; -/** order by stddev_samp() on columns of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Stddev_Samp_Order_By = { - attachment_id?: Maybe; +/** Ordering options when selecting data from "proposal_validator_status_snapshot". */ +export type Proposal_Validator_Status_Snapshot_Order_By = { + height?: Maybe; + id?: Maybe; + jailed?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + validator?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; }; -/** aggregate sum on columns */ -export type Post_Attachment_Tag_Sum_Fields = { - __typename?: 'post_attachment_tag_sum_fields'; - attachment_id?: Maybe; +/** select columns of table "proposal_validator_status_snapshot" */ +export enum Proposal_Validator_Status_Snapshot_Select_Column { + /** column name */ + Height = 'height', + /** column name */ + Id = 'id', + /** column name */ + Jailed = 'jailed', + /** column name */ + ProposalId = 'proposal_id', + /** column name */ + Status = 'status', + /** column name */ + ValidatorAddress = 'validator_address', + /** column name */ + VotingPower = 'voting_power' +} + +/** aggregate stddev on columns */ +export type Proposal_Validator_Status_Snapshot_Stddev_Fields = { + __typename?: 'proposal_validator_status_snapshot_stddev_fields'; + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; -/** order by sum() on columns of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Sum_Order_By = { - attachment_id?: Maybe; +/** order by stddev() on columns of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Stddev_Order_By = { + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; -/** aggregate var_pop on columns */ -export type Post_Attachment_Tag_Var_Pop_Fields = { - __typename?: 'post_attachment_tag_var_pop_fields'; - attachment_id?: Maybe; +/** aggregate stddev_pop on columns */ +export type Proposal_Validator_Status_Snapshot_Stddev_Pop_Fields = { + __typename?: 'proposal_validator_status_snapshot_stddev_pop_fields'; + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; -/** order by var_pop() on columns of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Var_Pop_Order_By = { - attachment_id?: Maybe; +/** order by stddev_pop() on columns of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Stddev_Pop_Order_By = { + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; -/** aggregate var_samp on columns */ -export type Post_Attachment_Tag_Var_Samp_Fields = { - __typename?: 'post_attachment_tag_var_samp_fields'; - attachment_id?: Maybe; +/** aggregate stddev_samp on columns */ +export type Proposal_Validator_Status_Snapshot_Stddev_Samp_Fields = { + __typename?: 'proposal_validator_status_snapshot_stddev_samp_fields'; + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; -/** order by var_samp() on columns of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Var_Samp_Order_By = { - attachment_id?: Maybe; +/** order by stddev_samp() on columns of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Stddev_Samp_Order_By = { + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; -/** aggregate variance on columns */ -export type Post_Attachment_Tag_Variance_Fields = { - __typename?: 'post_attachment_tag_variance_fields'; - attachment_id?: Maybe; +/** aggregate sum on columns */ +export type Proposal_Validator_Status_Snapshot_Sum_Fields = { + __typename?: 'proposal_validator_status_snapshot_sum_fields'; + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; -/** order by variance() on columns of table "post_attachment_tag" */ -export type Post_Attachment_Tag_Variance_Order_By = { - attachment_id?: Maybe; +/** order by sum() on columns of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Sum_Order_By = { + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; /** aggregate var_pop on columns */ -export type Post_Attachment_Var_Pop_Fields = { - __typename?: 'post_attachment_var_pop_fields'; +export type Proposal_Validator_Status_Snapshot_Var_Pop_Fields = { + __typename?: 'proposal_validator_status_snapshot_var_pop_fields'; + height?: Maybe; id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; -/** order by var_pop() on columns of table "post_attachment" */ -export type Post_Attachment_Var_Pop_Order_By = { +/** order by var_pop() on columns of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Var_Pop_Order_By = { + height?: Maybe; id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; /** aggregate var_samp on columns */ -export type Post_Attachment_Var_Samp_Fields = { - __typename?: 'post_attachment_var_samp_fields'; +export type Proposal_Validator_Status_Snapshot_Var_Samp_Fields = { + __typename?: 'proposal_validator_status_snapshot_var_samp_fields'; + height?: Maybe; id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; -/** order by var_samp() on columns of table "post_attachment" */ -export type Post_Attachment_Var_Samp_Order_By = { +/** order by var_samp() on columns of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Var_Samp_Order_By = { + height?: Maybe; id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; /** aggregate variance on columns */ -export type Post_Attachment_Variance_Fields = { - __typename?: 'post_attachment_variance_fields'; - id?: Maybe; +export type Proposal_Validator_Status_Snapshot_Variance_Fields = { + __typename?: 'proposal_validator_status_snapshot_variance_fields'; + height?: Maybe; + id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; -/** order by variance() on columns of table "post_attachment" */ -export type Post_Attachment_Variance_Order_By = { +/** order by variance() on columns of table "proposal_validator_status_snapshot" */ +export type Proposal_Validator_Status_Snapshot_Variance_Order_By = { + height?: Maybe; id?: Maybe; + proposal_id?: Maybe; + status?: Maybe; + voting_power?: Maybe; }; -/** columns and relationships of "post_attribute" */ -export type Post_Attribute = { - __typename?: 'post_attribute'; - key: Scalars['String']; - /** An object relationship */ - post: Post; - post_id: Scalars['String']; - value: Scalars['String']; -}; - -/** aggregated selection of "post_attribute" */ -export type Post_Attribute_Aggregate = { - __typename?: 'post_attribute_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "post_attribute" */ -export type Post_Attribute_Aggregate_Fields = { - __typename?: 'post_attribute_aggregate_fields'; - count: Scalars['Int']; - max?: Maybe; - min?: Maybe; -}; - - -/** aggregate fields of "post_attribute" */ -export type Post_Attribute_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "post_attribute" */ -export type Post_Attribute_Aggregate_Order_By = { - count?: Maybe; - max?: Maybe; - min?: Maybe; -}; - -/** Boolean expression to filter rows from the table "post_attribute". All fields are combined with a logical 'AND'. */ -export type Post_Attribute_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - key?: Maybe; - post?: Maybe; - post_id?: Maybe; - value?: Maybe; -}; - -/** aggregate max on columns */ -export type Post_Attribute_Max_Fields = { - __typename?: 'post_attribute_max_fields'; - key?: Maybe; - post_id?: Maybe; - value?: Maybe; -}; - -/** order by max() on columns of table "post_attribute" */ -export type Post_Attribute_Max_Order_By = { - key?: Maybe; - post_id?: Maybe; - value?: Maybe; -}; - -/** aggregate min on columns */ -export type Post_Attribute_Min_Fields = { - __typename?: 'post_attribute_min_fields'; - key?: Maybe; - post_id?: Maybe; - value?: Maybe; -}; - -/** order by min() on columns of table "post_attribute" */ -export type Post_Attribute_Min_Order_By = { - key?: Maybe; - post_id?: Maybe; - value?: Maybe; -}; - -/** Ordering options when selecting data from "post_attribute". */ -export type Post_Attribute_Order_By = { - key?: Maybe; - post?: Maybe; - post_id?: Maybe; - value?: Maybe; +/** aggregate var_pop on columns */ +export type Proposal_Var_Pop_Fields = { + __typename?: 'proposal_var_pop_fields'; + id?: Maybe; }; -/** select columns of table "post_attribute" */ -export enum Post_Attribute_Select_Column { - /** column name */ - Key = 'key', - /** column name */ - PostId = 'post_id', - /** column name */ - Value = 'value' -} - -/** aggregate avg on columns */ -export type Post_Avg_Fields = { - __typename?: 'post_avg_fields'; - height?: Maybe; +/** order by var_pop() on columns of table "proposal" */ +export type Proposal_Var_Pop_Order_By = { + id?: Maybe; }; -/** order by avg() on columns of table "post" */ -export type Post_Avg_Order_By = { - height?: Maybe; +/** aggregate var_samp on columns */ +export type Proposal_Var_Samp_Fields = { + __typename?: 'proposal_var_samp_fields'; + id?: Maybe; }; -/** Boolean expression to filter rows from the table "post". All fields are combined with a logical 'AND'. */ -export type Post_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - comments_state?: Maybe; - created?: Maybe; - creator_address?: Maybe; - height?: Maybe; - hidden?: Maybe; - id?: Maybe; - last_edited?: Maybe; - message?: Maybe; - parent_id?: Maybe; - poll?: Maybe; - post?: Maybe; - post_attachments?: Maybe; - post_attributes?: Maybe; - post_reactions?: Maybe; - post_reports?: Maybe; - posts?: Maybe; - profile?: Maybe; - subspace?: Maybe; +/** order by var_samp() on columns of table "proposal" */ +export type Proposal_Var_Samp_Order_By = { + id?: Maybe; }; -/** aggregate max on columns */ -export type Post_Max_Fields = { - __typename?: 'post_max_fields'; - comments_state?: Maybe; - created?: Maybe; - creator_address?: Maybe; - height?: Maybe; - id?: Maybe; - last_edited?: Maybe; - message?: Maybe; - parent_id?: Maybe; - subspace?: Maybe; -}; - -/** order by max() on columns of table "post" */ -export type Post_Max_Order_By = { - comments_state?: Maybe; - created?: Maybe; - creator_address?: Maybe; - height?: Maybe; - id?: Maybe; - last_edited?: Maybe; - message?: Maybe; - parent_id?: Maybe; - subspace?: Maybe; +/** aggregate variance on columns */ +export type Proposal_Variance_Fields = { + __typename?: 'proposal_variance_fields'; + id?: Maybe; }; -/** aggregate min on columns */ -export type Post_Min_Fields = { - __typename?: 'post_min_fields'; - comments_state?: Maybe; - created?: Maybe; - creator_address?: Maybe; - height?: Maybe; - id?: Maybe; - last_edited?: Maybe; - message?: Maybe; - parent_id?: Maybe; - subspace?: Maybe; -}; - -/** order by min() on columns of table "post" */ -export type Post_Min_Order_By = { - comments_state?: Maybe; - created?: Maybe; - creator_address?: Maybe; - height?: Maybe; +/** order by variance() on columns of table "proposal" */ +export type Proposal_Variance_Order_By = { id?: Maybe; - last_edited?: Maybe; - message?: Maybe; - parent_id?: Maybe; - subspace?: Maybe; }; -/** Ordering options when selecting data from "post". */ -export type Post_Order_By = { - comments_state?: Maybe; - created?: Maybe; - creator_address?: Maybe; - height?: Maybe; - hidden?: Maybe; - id?: Maybe; - last_edited?: Maybe; - message?: Maybe; - parent_id?: Maybe; - poll?: Maybe; - post?: Maybe; - post_attachments_aggregate?: Maybe; - post_attributes_aggregate?: Maybe; - post_reactions_aggregate?: Maybe; - post_reports_aggregate?: Maybe; - posts_aggregate?: Maybe; - profile?: Maybe; - subspace?: Maybe; -}; - -/** columns and relationships of "post_reaction" */ -export type Post_Reaction = { - __typename?: 'post_reaction'; - height: Scalars['bigint']; - owner_address: Scalars['String']; +/** columns and relationships of "proposal_vote" */ +export type Proposal_Vote = { + __typename?: 'proposal_vote'; /** An object relationship */ - post: Post; - post_id: Scalars['String']; + account: Account; + height: Scalars['bigint']; + option: Scalars['String']; /** An object relationship */ - profile: Profile; - short_code: Scalars['String']; - value: Scalars['String']; + proposal: Proposal; + proposal_id: Scalars['Int']; + voter_address: Scalars['String']; }; -/** aggregated selection of "post_reaction" */ -export type Post_Reaction_Aggregate = { - __typename?: 'post_reaction_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "proposal_vote" */ +export type Proposal_Vote_Aggregate = { + __typename?: 'proposal_vote_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "post_reaction" */ -export type Post_Reaction_Aggregate_Fields = { - __typename?: 'post_reaction_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "proposal_vote" */ +export type Proposal_Vote_Aggregate_Fields = { + __typename?: 'proposal_vote_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; + 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 "post_reaction" */ -export type Post_Reaction_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "proposal_vote" */ +export type Proposal_Vote_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "post_reaction" */ -export type Post_Reaction_Aggregate_Order_By = { - avg?: Maybe; +/** order by aggregate values of table "proposal_vote" */ +export type Proposal_Vote_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate avg on columns */ -export type Post_Reaction_Avg_Fields = { - __typename?: 'post_reaction_avg_fields'; +export type Proposal_Vote_Avg_Fields = { + __typename?: 'proposal_vote_avg_fields'; height?: Maybe; + proposal_id?: Maybe; }; -/** order by avg() on columns of table "post_reaction" */ -export type Post_Reaction_Avg_Order_By = { +/** order by avg() on columns of table "proposal_vote" */ +export type Proposal_Vote_Avg_Order_By = { height?: Maybe; + proposal_id?: Maybe; }; -/** Boolean expression to filter rows from the table "post_reaction". All fields are combined with a logical 'AND'. */ -export type Post_Reaction_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + account?: Maybe; height?: Maybe; - owner_address?: Maybe; - post?: Maybe; - post_id?: Maybe; - profile?: Maybe; - short_code?: Maybe; - value?: Maybe; + option?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; + voter_address?: Maybe; }; /** aggregate max on columns */ -export type Post_Reaction_Max_Fields = { - __typename?: 'post_reaction_max_fields'; +export type Proposal_Vote_Max_Fields = { + __typename?: 'proposal_vote_max_fields'; height?: Maybe; - owner_address?: Maybe; - post_id?: Maybe; - short_code?: Maybe; - value?: Maybe; + option?: Maybe; + proposal_id?: Maybe; + voter_address?: Maybe; }; -/** order by max() on columns of table "post_reaction" */ -export type Post_Reaction_Max_Order_By = { +/** order by max() on columns of table "proposal_vote" */ +export type Proposal_Vote_Max_Order_By = { height?: Maybe; - owner_address?: Maybe; - post_id?: Maybe; - short_code?: Maybe; - value?: Maybe; + option?: Maybe; + proposal_id?: Maybe; + voter_address?: Maybe; }; /** aggregate min on columns */ -export type Post_Reaction_Min_Fields = { - __typename?: 'post_reaction_min_fields'; +export type Proposal_Vote_Min_Fields = { + __typename?: 'proposal_vote_min_fields'; height?: Maybe; - owner_address?: Maybe; - post_id?: Maybe; - short_code?: Maybe; - value?: Maybe; + option?: Maybe; + proposal_id?: Maybe; + voter_address?: Maybe; }; -/** order by min() on columns of table "post_reaction" */ -export type Post_Reaction_Min_Order_By = { +/** order by min() on columns of table "proposal_vote" */ +export type Proposal_Vote_Min_Order_By = { height?: Maybe; - owner_address?: Maybe; - post_id?: Maybe; - short_code?: Maybe; - value?: Maybe; + option?: Maybe; + proposal_id?: Maybe; + voter_address?: Maybe; }; -/** Ordering options when selecting data from "post_reaction". */ -export type Post_Reaction_Order_By = { +/** Ordering options when selecting data from "proposal_vote". */ +export type Proposal_Vote_Order_By = { + account?: Maybe; height?: Maybe; - owner_address?: Maybe; - post?: Maybe; - post_id?: Maybe; - profile?: Maybe; - short_code?: Maybe; - value?: Maybe; + option?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; + voter_address?: Maybe; }; -/** select columns of table "post_reaction" */ -export enum Post_Reaction_Select_Column { +/** select columns of table "proposal_vote" */ +export enum Proposal_Vote_Select_Column { /** column name */ Height = 'height', /** column name */ - OwnerAddress = 'owner_address', - /** column name */ - PostId = 'post_id', + Option = 'option', /** column name */ - ShortCode = 'short_code', + ProposalId = 'proposal_id', /** column name */ - Value = 'value' + VoterAddress = 'voter_address' } /** aggregate stddev on columns */ -export type Post_Reaction_Stddev_Fields = { - __typename?: 'post_reaction_stddev_fields'; +export type Proposal_Vote_Stddev_Fields = { + __typename?: 'proposal_vote_stddev_fields'; height?: Maybe; + proposal_id?: Maybe; }; -/** order by stddev() on columns of table "post_reaction" */ -export type Post_Reaction_Stddev_Order_By = { +/** order by stddev() on columns of table "proposal_vote" */ +export type Proposal_Vote_Stddev_Order_By = { height?: Maybe; + proposal_id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Post_Reaction_Stddev_Pop_Fields = { - __typename?: 'post_reaction_stddev_pop_fields'; +export type Proposal_Vote_Stddev_Pop_Fields = { + __typename?: 'proposal_vote_stddev_pop_fields'; height?: Maybe; + proposal_id?: Maybe; }; -/** order by stddev_pop() on columns of table "post_reaction" */ -export type Post_Reaction_Stddev_Pop_Order_By = { +/** order by stddev_pop() on columns of table "proposal_vote" */ +export type Proposal_Vote_Stddev_Pop_Order_By = { height?: Maybe; + proposal_id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Post_Reaction_Stddev_Samp_Fields = { - __typename?: 'post_reaction_stddev_samp_fields'; +export type Proposal_Vote_Stddev_Samp_Fields = { + __typename?: 'proposal_vote_stddev_samp_fields'; height?: Maybe; + proposal_id?: Maybe; }; -/** order by stddev_samp() on columns of table "post_reaction" */ -export type Post_Reaction_Stddev_Samp_Order_By = { +/** order by stddev_samp() on columns of table "proposal_vote" */ +export type Proposal_Vote_Stddev_Samp_Order_By = { height?: Maybe; + proposal_id?: Maybe; }; /** aggregate sum on columns */ -export type Post_Reaction_Sum_Fields = { - __typename?: 'post_reaction_sum_fields'; +export type Proposal_Vote_Sum_Fields = { + __typename?: 'proposal_vote_sum_fields'; height?: Maybe; + proposal_id?: Maybe; }; -/** order by sum() on columns of table "post_reaction" */ -export type Post_Reaction_Sum_Order_By = { +/** order by sum() on columns of table "proposal_vote" */ +export type Proposal_Vote_Sum_Order_By = { height?: Maybe; + proposal_id?: Maybe; }; /** aggregate var_pop on columns */ -export type Post_Reaction_Var_Pop_Fields = { - __typename?: 'post_reaction_var_pop_fields'; +export type Proposal_Vote_Var_Pop_Fields = { + __typename?: 'proposal_vote_var_pop_fields'; height?: Maybe; + proposal_id?: Maybe; }; -/** order by var_pop() on columns of table "post_reaction" */ -export type Post_Reaction_Var_Pop_Order_By = { +/** order by var_pop() on columns of table "proposal_vote" */ +export type Proposal_Vote_Var_Pop_Order_By = { height?: Maybe; + proposal_id?: Maybe; }; /** aggregate var_samp on columns */ -export type Post_Reaction_Var_Samp_Fields = { - __typename?: 'post_reaction_var_samp_fields'; +export type Proposal_Vote_Var_Samp_Fields = { + __typename?: 'proposal_vote_var_samp_fields'; height?: Maybe; + proposal_id?: Maybe; }; -/** order by var_samp() on columns of table "post_reaction" */ -export type Post_Reaction_Var_Samp_Order_By = { +/** order by var_samp() on columns of table "proposal_vote" */ +export type Proposal_Vote_Var_Samp_Order_By = { height?: Maybe; + proposal_id?: Maybe; }; /** aggregate variance on columns */ -export type Post_Reaction_Variance_Fields = { - __typename?: 'post_reaction_variance_fields'; - height?: Maybe; -}; - -/** order by variance() on columns of table "post_reaction" */ -export type Post_Reaction_Variance_Order_By = { - height?: Maybe; -}; - -/** columns and relationships of "post_report" */ -export type Post_Report = { - __typename?: 'post_report'; - height: Scalars['bigint']; - id: Scalars['Int']; - message?: Maybe; - /** An object relationship */ - post: Post; - post_id: Scalars['String']; - /** An object relationship */ - profile: Profile; - reporter_address: Scalars['String']; - type: Scalars['String']; -}; - -/** aggregated selection of "post_report" */ -export type Post_Report_Aggregate = { - __typename?: 'post_report_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "post_report" */ -export type Post_Report_Aggregate_Fields = { - __typename?: 'post_report_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 "post_report" */ -export type Post_Report_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "post_report" */ -export type Post_Report_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Post_Report_Avg_Fields = { - __typename?: 'post_report_avg_fields'; +export type Proposal_Vote_Variance_Fields = { + __typename?: 'proposal_vote_variance_fields'; height?: Maybe; - id?: Maybe; + proposal_id?: Maybe; }; -/** order by avg() on columns of table "post_report" */ -export type Post_Report_Avg_Order_By = { +/** order by variance() on columns of table "proposal_vote" */ +export type Proposal_Vote_Variance_Order_By = { height?: Maybe; - id?: Maybe; -}; - -/** Boolean expression to filter rows from the table "post_report". All fields are combined with a logical 'AND'. */ -export type Post_Report_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - id?: Maybe; - message?: Maybe; - post?: Maybe; - post_id?: Maybe; - profile?: Maybe; - reporter_address?: Maybe; - type?: Maybe; + proposal_id?: Maybe; }; -/** aggregate max on columns */ -export type Post_Report_Max_Fields = { - __typename?: 'post_report_max_fields'; - height?: Maybe; - id?: Maybe; - message?: Maybe; - post_id?: Maybe; - reporter_address?: Maybe; - type?: Maybe; -}; - -/** order by max() on columns of table "post_report" */ -export type Post_Report_Max_Order_By = { - height?: Maybe; - id?: Maybe; - message?: Maybe; - post_id?: Maybe; - reporter_address?: Maybe; - type?: Maybe; -}; - -/** aggregate min on columns */ -export type Post_Report_Min_Fields = { - __typename?: 'post_report_min_fields'; - height?: Maybe; - id?: Maybe; - message?: Maybe; - post_id?: Maybe; - reporter_address?: Maybe; - type?: Maybe; -}; - -/** order by min() on columns of table "post_report" */ -export type Post_Report_Min_Order_By = { - height?: Maybe; - id?: Maybe; - message?: Maybe; - post_id?: Maybe; - reporter_address?: Maybe; - type?: Maybe; -}; - -/** Ordering options when selecting data from "post_report". */ -export type Post_Report_Order_By = { - height?: Maybe; - id?: Maybe; - message?: Maybe; - post?: Maybe; - post_id?: Maybe; - profile?: Maybe; - reporter_address?: Maybe; - type?: Maybe; -}; - -/** select columns of table "post_report" */ -export enum Post_Report_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - Id = 'id', - /** column name */ - Message = 'message', - /** column name */ - PostId = 'post_id', - /** column name */ - ReporterAddress = 'reporter_address', - /** column name */ - Type = 'type' -} - -/** aggregate stddev on columns */ -export type Post_Report_Stddev_Fields = { - __typename?: 'post_report_stddev_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** order by stddev() on columns of table "post_report" */ -export type Post_Report_Stddev_Order_By = { - height?: Maybe; - id?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Post_Report_Stddev_Pop_Fields = { - __typename?: 'post_report_stddev_pop_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** order by stddev_pop() on columns of table "post_report" */ -export type Post_Report_Stddev_Pop_Order_By = { - height?: Maybe; - id?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Post_Report_Stddev_Samp_Fields = { - __typename?: 'post_report_stddev_samp_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** order by stddev_samp() on columns of table "post_report" */ -export type Post_Report_Stddev_Samp_Order_By = { - height?: Maybe; - id?: Maybe; -}; - -/** aggregate sum on columns */ -export type Post_Report_Sum_Fields = { - __typename?: 'post_report_sum_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** order by sum() on columns of table "post_report" */ -export type Post_Report_Sum_Order_By = { - height?: Maybe; - id?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Post_Report_Var_Pop_Fields = { - __typename?: 'post_report_var_pop_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** order by var_pop() on columns of table "post_report" */ -export type Post_Report_Var_Pop_Order_By = { - height?: Maybe; - id?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Post_Report_Var_Samp_Fields = { - __typename?: 'post_report_var_samp_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** order by var_samp() on columns of table "post_report" */ -export type Post_Report_Var_Samp_Order_By = { - height?: Maybe; - id?: Maybe; -}; - -/** aggregate variance on columns */ -export type Post_Report_Variance_Fields = { - __typename?: 'post_report_variance_fields'; - height?: Maybe; - id?: Maybe; -}; - -/** order by variance() on columns of table "post_report" */ -export type Post_Report_Variance_Order_By = { - height?: Maybe; - id?: Maybe; -}; - -/** select columns of table "post" */ -export enum Post_Select_Column { - /** column name */ - CommentsState = 'comments_state', - /** column name */ - Created = 'created', - /** column name */ - CreatorAddress = 'creator_address', - /** column name */ - Height = 'height', - /** column name */ - Hidden = 'hidden', - /** column name */ - Id = 'id', - /** column name */ - LastEdited = 'last_edited', - /** column name */ - Message = 'message', - /** column name */ - ParentId = 'parent_id', - /** column name */ - Subspace = 'subspace' -} - -/** aggregate stddev on columns */ -export type Post_Stddev_Fields = { - __typename?: 'post_stddev_fields'; - height?: Maybe; -}; - -/** order by stddev() on columns of table "post" */ -export type Post_Stddev_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Post_Stddev_Pop_Fields = { - __typename?: 'post_stddev_pop_fields'; - height?: Maybe; -}; - -/** order by stddev_pop() on columns of table "post" */ -export type Post_Stddev_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Post_Stddev_Samp_Fields = { - __typename?: 'post_stddev_samp_fields'; - height?: Maybe; -}; - -/** order by stddev_samp() on columns of table "post" */ -export type Post_Stddev_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Post_Sum_Fields = { - __typename?: 'post_sum_fields'; - height?: Maybe; -}; - -/** order by sum() on columns of table "post" */ -export type Post_Sum_Order_By = { - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Post_Var_Pop_Fields = { - __typename?: 'post_var_pop_fields'; - height?: Maybe; -}; - -/** order by var_pop() on columns of table "post" */ -export type Post_Var_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Post_Var_Samp_Fields = { - __typename?: 'post_var_samp_fields'; - height?: Maybe; -}; - -/** order by var_samp() on columns of table "post" */ -export type Post_Var_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Post_Variance_Fields = { - __typename?: 'post_variance_fields'; - height?: Maybe; -}; - -/** order by variance() on columns of table "post" */ -export type Post_Variance_Order_By = { - height?: Maybe; -}; - -/** 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?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "pre_commit" */ -export type Pre_Commit_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** 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?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - proposer_priority?: Maybe; - timestamp?: Maybe; - validator?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe; - proposer_priority?: Maybe; - timestamp?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe; - proposer_priority?: Maybe; - timestamp?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** Ordering options when selecting data from "pre_commit". */ -export type Pre_Commit_Order_By = { - height?: Maybe; - proposer_priority?: Maybe; - timestamp?: Maybe; - validator?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe; - proposer_priority?: Maybe; - voting_power?: Maybe; -}; - -/** columns and relationships of "profile" */ -export type Profile = { - __typename?: 'profile'; - address: Scalars['String']; - /** An array relationship */ - application_links: Array; - /** An aggregate relationship */ - application_links_aggregate: Application_Link_Aggregate; - bio: Scalars['String']; - /** An array relationship */ - chain_links: Array; - /** An aggregate relationship */ - chain_links_aggregate: Chain_Link_Aggregate; - cover_pic: Scalars['String']; - creation_time: Scalars['timestamp']; - dtag: Scalars['String']; - /** An array relationship */ - dtagTransferRequestsBySenderAddress: Array; - /** An aggregate relationship */ - dtagTransferRequestsBySenderAddress_aggregate: Dtag_Transfer_Requests_Aggregate; - /** An array relationship */ - dtag_transfer_requests: Array; - /** An aggregate relationship */ - dtag_transfer_requests_aggregate: Dtag_Transfer_Requests_Aggregate; - height: Scalars['bigint']; - nickname: Scalars['String']; - /** An array relationship */ - post_attachment_tags: Array; - /** An aggregate relationship */ - post_attachment_tags_aggregate: Post_Attachment_Tag_Aggregate; - /** An array relationship */ - post_reactions: Array; - /** An aggregate relationship */ - post_reactions_aggregate: Post_Reaction_Aggregate; - /** An array relationship */ - post_reports: Array; - /** An aggregate relationship */ - post_reports_aggregate: Post_Report_Aggregate; - /** An array relationship */ - posts: Array; - /** An aggregate relationship */ - posts_aggregate: Post_Aggregate; - /** An array relationship */ - profileRelationshipsBySenderAddress: Array; - /** An aggregate relationship */ - profileRelationshipsBySenderAddress_aggregate: Profile_Relationship_Aggregate; - profile_pic: Scalars['String']; - /** An array relationship */ - profile_relationships: Array; - /** An aggregate relationship */ - profile_relationships_aggregate: Profile_Relationship_Aggregate; - /** An array relationship */ - registered_reactions: Array; - /** An aggregate relationship */ - registered_reactions_aggregate: Registered_Reactions_Aggregate; - /** An array relationship */ - userBlocksByBlockerAddress: Array; - /** An aggregate relationship */ - userBlocksByBlockerAddress_aggregate: User_Block_Aggregate; - /** An array relationship */ - user_blocks: Array; - /** An aggregate relationship */ - user_blocks_aggregate: User_Block_Aggregate; - /** An array relationship */ - user_poll_answers: Array; - /** An aggregate relationship */ - user_poll_answers_aggregate: User_Poll_Answer_Aggregate; -}; - - -/** columns and relationships of "profile" */ -export type ProfileApplication_LinksArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileApplication_Links_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileChain_LinksArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileChain_Links_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileDtagTransferRequestsBySenderAddressArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileDtagTransferRequestsBySenderAddress_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileDtag_Transfer_RequestsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileDtag_Transfer_Requests_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfilePost_Attachment_TagsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfilePost_Attachment_Tags_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfilePost_ReactionsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfilePost_Reactions_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfilePost_ReportsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfilePost_Reports_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfilePostsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfilePosts_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileProfileRelationshipsBySenderAddressArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileProfileRelationshipsBySenderAddress_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileProfile_RelationshipsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileProfile_Relationships_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileRegistered_ReactionsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileRegistered_Reactions_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileUserBlocksByBlockerAddressArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileUserBlocksByBlockerAddress_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileUser_BlocksArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileUser_Blocks_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileUser_Poll_AnswersArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "profile" */ -export type ProfileUser_Poll_Answers_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - -/** aggregated selection of "profile" */ -export type Profile_Aggregate = { - __typename?: 'profile_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "profile" */ -export type Profile_Aggregate_Fields = { - __typename?: 'profile_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 "profile" */ -export type Profile_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** aggregate avg on columns */ -export type Profile_Avg_Fields = { - __typename?: 'profile_avg_fields'; - height?: Maybe; -}; - -/** Boolean expression to filter rows from the table "profile". All fields are combined with a logical 'AND'. */ -export type Profile_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - address?: Maybe; - application_links?: Maybe; - bio?: Maybe; - chain_links?: Maybe; - cover_pic?: Maybe; - creation_time?: Maybe; - dtag?: Maybe; - dtagTransferRequestsBySenderAddress?: Maybe; - dtag_transfer_requests?: Maybe; - height?: Maybe; - nickname?: Maybe; - post_attachment_tags?: Maybe; - post_reactions?: Maybe; - post_reports?: Maybe; - posts?: Maybe; - profileRelationshipsBySenderAddress?: Maybe; - profile_pic?: Maybe; - profile_relationships?: Maybe; - registered_reactions?: Maybe; - userBlocksByBlockerAddress?: Maybe; - user_blocks?: Maybe; - user_poll_answers?: Maybe; -}; - -/** aggregate max on columns */ -export type Profile_Max_Fields = { - __typename?: 'profile_max_fields'; - address?: Maybe; - bio?: Maybe; - cover_pic?: Maybe; - creation_time?: Maybe; - dtag?: Maybe; - height?: Maybe; - nickname?: Maybe; - profile_pic?: Maybe; -}; - -/** aggregate min on columns */ -export type Profile_Min_Fields = { - __typename?: 'profile_min_fields'; - address?: Maybe; - bio?: Maybe; - cover_pic?: Maybe; - creation_time?: Maybe; - dtag?: Maybe; - height?: Maybe; - nickname?: Maybe; - profile_pic?: Maybe; -}; - -/** Ordering options when selecting data from "profile". */ -export type Profile_Order_By = { - address?: Maybe; - application_links_aggregate?: Maybe; - bio?: Maybe; - chain_links_aggregate?: Maybe; - cover_pic?: Maybe; - creation_time?: Maybe; - dtag?: Maybe; - dtagTransferRequestsBySenderAddress_aggregate?: Maybe; - dtag_transfer_requests_aggregate?: Maybe; - height?: Maybe; - nickname?: Maybe; - post_attachment_tags_aggregate?: Maybe; - post_reactions_aggregate?: Maybe; - post_reports_aggregate?: Maybe; - posts_aggregate?: Maybe; - profileRelationshipsBySenderAddress_aggregate?: Maybe; - profile_pic?: Maybe; - profile_relationships_aggregate?: Maybe; - registered_reactions_aggregate?: Maybe; - userBlocksByBlockerAddress_aggregate?: Maybe; - user_blocks_aggregate?: Maybe; - user_poll_answers_aggregate?: Maybe; -}; - -/** columns and relationships of "profile_relationship" */ -export type Profile_Relationship = { - __typename?: 'profile_relationship'; - height: Scalars['bigint']; - /** An object relationship */ - profile: Profile; - /** An object relationship */ - profileBySenderAddress: Profile; - receiver_address: Scalars['String']; - sender_address: Scalars['String']; - subspace: Scalars['String']; -}; - -/** aggregated selection of "profile_relationship" */ -export type Profile_Relationship_Aggregate = { - __typename?: 'profile_relationship_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "profile_relationship" */ -export type Profile_Relationship_Aggregate_Fields = { - __typename?: 'profile_relationship_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 "profile_relationship" */ -export type Profile_Relationship_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "profile_relationship" */ -export type Profile_Relationship_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Profile_Relationship_Avg_Fields = { - __typename?: 'profile_relationship_avg_fields'; - height?: Maybe; -}; - -/** order by avg() on columns of table "profile_relationship" */ -export type Profile_Relationship_Avg_Order_By = { - height?: Maybe; -}; - -/** Boolean expression to filter rows from the table "profile_relationship". All fields are combined with a logical 'AND'. */ -export type Profile_Relationship_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - profile?: Maybe; - profileBySenderAddress?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; - subspace?: Maybe; -}; - -/** aggregate max on columns */ -export type Profile_Relationship_Max_Fields = { - __typename?: 'profile_relationship_max_fields'; - height?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; - subspace?: Maybe; -}; - -/** order by max() on columns of table "profile_relationship" */ -export type Profile_Relationship_Max_Order_By = { - height?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; - subspace?: Maybe; -}; - -/** aggregate min on columns */ -export type Profile_Relationship_Min_Fields = { - __typename?: 'profile_relationship_min_fields'; - height?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; - subspace?: Maybe; -}; - -/** order by min() on columns of table "profile_relationship" */ -export type Profile_Relationship_Min_Order_By = { - height?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; - subspace?: Maybe; -}; - -/** Ordering options when selecting data from "profile_relationship". */ -export type Profile_Relationship_Order_By = { - height?: Maybe; - profile?: Maybe; - profileBySenderAddress?: Maybe; - receiver_address?: Maybe; - sender_address?: Maybe; - subspace?: Maybe; -}; - -/** select columns of table "profile_relationship" */ -export enum Profile_Relationship_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - ReceiverAddress = 'receiver_address', - /** column name */ - SenderAddress = 'sender_address', - /** column name */ - Subspace = 'subspace' -} - -/** aggregate stddev on columns */ -export type Profile_Relationship_Stddev_Fields = { - __typename?: 'profile_relationship_stddev_fields'; - height?: Maybe; -}; - -/** order by stddev() on columns of table "profile_relationship" */ -export type Profile_Relationship_Stddev_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Profile_Relationship_Stddev_Pop_Fields = { - __typename?: 'profile_relationship_stddev_pop_fields'; - height?: Maybe; -}; - -/** order by stddev_pop() on columns of table "profile_relationship" */ -export type Profile_Relationship_Stddev_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Profile_Relationship_Stddev_Samp_Fields = { - __typename?: 'profile_relationship_stddev_samp_fields'; - height?: Maybe; -}; - -/** order by stddev_samp() on columns of table "profile_relationship" */ -export type Profile_Relationship_Stddev_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Profile_Relationship_Sum_Fields = { - __typename?: 'profile_relationship_sum_fields'; - height?: Maybe; -}; - -/** order by sum() on columns of table "profile_relationship" */ -export type Profile_Relationship_Sum_Order_By = { - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Profile_Relationship_Var_Pop_Fields = { - __typename?: 'profile_relationship_var_pop_fields'; - height?: Maybe; -}; - -/** order by var_pop() on columns of table "profile_relationship" */ -export type Profile_Relationship_Var_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Profile_Relationship_Var_Samp_Fields = { - __typename?: 'profile_relationship_var_samp_fields'; - height?: Maybe; -}; - -/** order by var_samp() on columns of table "profile_relationship" */ -export type Profile_Relationship_Var_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Profile_Relationship_Variance_Fields = { - __typename?: 'profile_relationship_variance_fields'; - height?: Maybe; -}; - -/** order by variance() on columns of table "profile_relationship" */ -export type Profile_Relationship_Variance_Order_By = { - height?: Maybe; -}; - -/** select columns of table "profile" */ -export enum Profile_Select_Column { - /** column name */ - Address = 'address', - /** column name */ - Bio = 'bio', - /** column name */ - CoverPic = 'cover_pic', - /** column name */ - CreationTime = 'creation_time', - /** column name */ - Dtag = 'dtag', - /** column name */ - Height = 'height', - /** column name */ - Nickname = 'nickname', - /** column name */ - ProfilePic = 'profile_pic' -} - -/** aggregate stddev on columns */ -export type Profile_Stddev_Fields = { - __typename?: 'profile_stddev_fields'; - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Profile_Stddev_Pop_Fields = { - __typename?: 'profile_stddev_pop_fields'; - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Profile_Stddev_Samp_Fields = { - __typename?: 'profile_stddev_samp_fields'; - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Profile_Sum_Fields = { - __typename?: 'profile_sum_fields'; - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Profile_Var_Pop_Fields = { - __typename?: 'profile_var_pop_fields'; - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Profile_Var_Samp_Fields = { - __typename?: 'profile_var_samp_fields'; - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Profile_Variance_Fields = { - __typename?: 'profile_variance_fields'; - height?: Maybe; -}; - -/** columns and relationships of "profiles_params" */ -export type Profiles_Params = { - __typename?: 'profiles_params'; - height: Scalars['bigint']; - params: Scalars['jsonb']; -}; - - -/** columns and relationships of "profiles_params" */ -export type Profiles_ParamsParamsArgs = { - path?: Maybe; -}; - -/** Boolean expression to filter rows from the table "profiles_params". All fields are combined with a logical 'AND'. */ -export type Profiles_Params_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - params?: Maybe; -}; - -/** Ordering options when selecting data from "profiles_params". */ -export type Profiles_Params_Order_By = { - height?: Maybe; - params?: Maybe; -}; - -/** select columns of table "profiles_params" */ -export enum Profiles_Params_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - Params = 'params' -} - -/** columns and relationships of "proposal" */ -export type Proposal = { - __typename?: 'proposal'; - content: Scalars['jsonb']; - deposit_end_time?: Maybe; - description: Scalars['String']; - id: Scalars['Int']; - /** An array relationship */ - proposal_deposits: Array; - /** An aggregate relationship */ - proposal_deposits_aggregate: Proposal_Deposit_Aggregate; - proposal_route: Scalars['String']; - /** An object relationship */ - proposal_tally_result?: Maybe; - /** An array relationship */ - proposal_tally_results: Array; - /** An aggregate relationship */ - proposal_tally_results_aggregate: Proposal_Tally_Result_Aggregate; - proposal_type: Scalars['String']; - /** An array relationship */ - proposal_votes: Array; - /** An aggregate relationship */ - proposal_votes_aggregate: Proposal_Vote_Aggregate; - /** 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; - /** An aggregate relationship */ - validator_status_snapshots_aggregate: Proposal_Validator_Status_Snapshot_Aggregate; - voting_end_time?: Maybe; - voting_start_time?: Maybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalContentArgs = { - path?: Maybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalProposal_DepositsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalProposal_Deposits_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalProposal_Tally_ResultsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalProposal_Tally_Results_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalProposal_VotesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalProposal_Votes_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalValidator_Status_SnapshotsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "proposal" */ -export type ProposalValidator_Status_Snapshots_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - -/** 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?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "proposal" */ -export type Proposal_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** 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?: Maybe; -}; - -/** Boolean expression to filter rows from the table "proposal". All fields are combined with a logical 'AND'. */ -export type Proposal_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - content?: Maybe; - deposit_end_time?: Maybe; - description?: Maybe; - id?: Maybe; - proposal_deposits?: Maybe; - proposal_route?: Maybe; - proposal_tally_result?: Maybe; - proposal_tally_results?: Maybe; - proposal_type?: Maybe; - proposal_votes?: Maybe; - proposer?: Maybe; - proposer_address?: Maybe; - staking_pool_snapshot?: Maybe; - status?: Maybe; - submit_time?: Maybe; - title?: Maybe; - validator_status_snapshots?: Maybe; - voting_end_time?: Maybe; - voting_start_time?: Maybe; -}; - -/** 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?: Maybe; - /** An object relationship */ - proposal: Proposal; - proposal_id: Scalars['Int']; -}; - -/** aggregated selection of "proposal_deposit" */ -export type Proposal_Deposit_Aggregate = { - __typename?: 'proposal_deposit_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "proposal_deposit" */ -export type Proposal_Deposit_Aggregate_Fields = { - __typename?: 'proposal_deposit_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_deposit" */ -export type Proposal_Deposit_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "proposal_deposit" */ -export type Proposal_Deposit_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Proposal_Deposit_Avg_Fields = { - __typename?: 'proposal_deposit_avg_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by avg() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Avg_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - amount?: Maybe<_Coin_Comparison_Exp>; - block?: Maybe; - depositor?: Maybe; - depositor_address?: Maybe; - height?: Maybe; - proposal?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate max on columns */ -export type Proposal_Deposit_Max_Fields = { - __typename?: 'proposal_deposit_max_fields'; - depositor_address?: Maybe; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by max() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Max_Order_By = { - depositor_address?: Maybe; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate min on columns */ -export type Proposal_Deposit_Min_Fields = { - __typename?: 'proposal_deposit_min_fields'; - depositor_address?: Maybe; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by min() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Min_Order_By = { - depositor_address?: Maybe; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** Ordering options when selecting data from "proposal_deposit". */ -export type Proposal_Deposit_Order_By = { - amount?: Maybe; - block?: Maybe; - depositor?: Maybe; - depositor_address?: Maybe; - height?: Maybe; - proposal?: Maybe; - proposal_id?: Maybe; -}; - -/** 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' -} - -/** aggregate stddev on columns */ -export type Proposal_Deposit_Stddev_Fields = { - __typename?: 'proposal_deposit_stddev_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by stddev() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Stddev_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Proposal_Deposit_Stddev_Pop_Fields = { - __typename?: 'proposal_deposit_stddev_pop_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by stddev_pop() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Stddev_Pop_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Proposal_Deposit_Stddev_Samp_Fields = { - __typename?: 'proposal_deposit_stddev_samp_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by stddev_samp() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Stddev_Samp_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate sum on columns */ -export type Proposal_Deposit_Sum_Fields = { - __typename?: 'proposal_deposit_sum_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by sum() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Sum_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Proposal_Deposit_Var_Pop_Fields = { - __typename?: 'proposal_deposit_var_pop_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by var_pop() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Var_Pop_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Proposal_Deposit_Var_Samp_Fields = { - __typename?: 'proposal_deposit_var_samp_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by var_samp() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Var_Samp_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate variance on columns */ -export type Proposal_Deposit_Variance_Fields = { - __typename?: 'proposal_deposit_variance_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by variance() on columns of table "proposal_deposit" */ -export type Proposal_Deposit_Variance_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate max on columns */ -export type Proposal_Max_Fields = { - __typename?: 'proposal_max_fields'; - deposit_end_time?: Maybe; - description?: Maybe; - id?: Maybe; - proposal_route?: Maybe; - proposal_type?: 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?: Maybe; - description?: Maybe; - id?: Maybe; - proposal_route?: Maybe; - proposal_type?: Maybe; - proposer_address?: Maybe; - status?: Maybe; - submit_time?: Maybe; - title?: Maybe; - voting_end_time?: Maybe; - voting_start_time?: Maybe; -}; - -/** aggregate min on columns */ -export type Proposal_Min_Fields = { - __typename?: 'proposal_min_fields'; - deposit_end_time?: Maybe; - description?: Maybe; - id?: Maybe; - proposal_route?: Maybe; - proposal_type?: 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?: Maybe; - description?: Maybe; - id?: Maybe; - proposal_route?: Maybe; - proposal_type?: Maybe; - proposer_address?: Maybe; - status?: Maybe; - submit_time?: Maybe; - title?: Maybe; - voting_end_time?: Maybe; - voting_start_time?: Maybe; -}; - -/** Ordering options when selecting data from "proposal". */ -export type Proposal_Order_By = { - content?: Maybe; - deposit_end_time?: Maybe; - description?: Maybe; - id?: Maybe; - proposal_deposits_aggregate?: Maybe; - proposal_route?: Maybe; - proposal_tally_result?: Maybe; - proposal_tally_results_aggregate?: Maybe; - proposal_type?: Maybe; - proposal_votes_aggregate?: Maybe; - proposer?: Maybe; - proposer_address?: Maybe; - staking_pool_snapshot?: Maybe; - status?: Maybe; - submit_time?: Maybe; - title?: Maybe; - validator_status_snapshots_aggregate?: Maybe; - voting_end_time?: Maybe; - voting_start_time?: Maybe; -}; - -/** 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 */ - ProposalRoute = 'proposal_route', - /** column name */ - ProposalType = 'proposal_type', - /** 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['bigint']; - height: Scalars['bigint']; - not_bonded_tokens: Scalars['bigint']; - /** An object relationship */ - proposal: Proposal; - proposal_id: Scalars['Int']; -}; - -/** aggregated selection of "proposal_staking_pool_snapshot" */ -export type Proposal_Staking_Pool_Snapshot_Aggregate = { - __typename?: 'proposal_staking_pool_snapshot_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "proposal_staking_pool_snapshot" */ -export type Proposal_Staking_Pool_Snapshot_Aggregate_Fields = { - __typename?: 'proposal_staking_pool_snapshot_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_staking_pool_snapshot" */ -export type Proposal_Staking_Pool_Snapshot_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** aggregate avg on columns */ -export type Proposal_Staking_Pool_Snapshot_Avg_Fields = { - __typename?: 'proposal_staking_pool_snapshot_avg_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal_id?: Maybe; -}; - -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate max on columns */ -export type Proposal_Staking_Pool_Snapshot_Max_Fields = { - __typename?: 'proposal_staking_pool_snapshot_max_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate min on columns */ -export type Proposal_Staking_Pool_Snapshot_Min_Fields = { - __typename?: 'proposal_staking_pool_snapshot_min_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal_id?: Maybe; -}; - -/** Ordering options when selecting data from "proposal_staking_pool_snapshot". */ -export type Proposal_Staking_Pool_Snapshot_Order_By = { - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal?: Maybe; - proposal_id?: Maybe; -}; - -/** 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_Staking_Pool_Snapshot_Stddev_Fields = { - __typename?: 'proposal_staking_pool_snapshot_stddev_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Proposal_Staking_Pool_Snapshot_Stddev_Pop_Fields = { - __typename?: 'proposal_staking_pool_snapshot_stddev_pop_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Proposal_Staking_Pool_Snapshot_Stddev_Samp_Fields = { - __typename?: 'proposal_staking_pool_snapshot_stddev_samp_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate sum on columns */ -export type Proposal_Staking_Pool_Snapshot_Sum_Fields = { - __typename?: 'proposal_staking_pool_snapshot_sum_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Proposal_Staking_Pool_Snapshot_Var_Pop_Fields = { - __typename?: 'proposal_staking_pool_snapshot_var_pop_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Proposal_Staking_Pool_Snapshot_Var_Samp_Fields = { - __typename?: 'proposal_staking_pool_snapshot_var_samp_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate variance on columns */ -export type Proposal_Staking_Pool_Snapshot_Variance_Fields = { - __typename?: 'proposal_staking_pool_snapshot_variance_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; - proposal_id?: Maybe; -}; - -/** 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?: Maybe; -}; - -/** 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?: Maybe; -}; - -/** 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?: Maybe; -}; - -/** 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?: Maybe; -}; - -/** 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']; -}; - -/** aggregated selection of "proposal_tally_result" */ -export type Proposal_Tally_Result_Aggregate = { - __typename?: 'proposal_tally_result_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "proposal_tally_result" */ -export type Proposal_Tally_Result_Aggregate_Fields = { - __typename?: 'proposal_tally_result_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_tally_result" */ -export type Proposal_Tally_Result_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Proposal_Tally_Result_Avg_Fields = { - __typename?: 'proposal_tally_result_avg_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by avg() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Avg_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - abstain?: Maybe; - height?: Maybe; - no?: Maybe; - no_with_veto?: Maybe; - proposal?: Maybe; - proposal_id?: Maybe; - yes?: Maybe; -}; - -/** aggregate max on columns */ -export type Proposal_Tally_Result_Max_Fields = { - __typename?: 'proposal_tally_result_max_fields'; - abstain?: Maybe; - height?: Maybe; - no?: Maybe; - no_with_veto?: Maybe; - proposal_id?: Maybe; - yes?: Maybe; -}; - -/** order by max() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Max_Order_By = { - abstain?: Maybe; - height?: Maybe; - no?: Maybe; - no_with_veto?: Maybe; - proposal_id?: Maybe; - yes?: Maybe; -}; - -/** aggregate min on columns */ -export type Proposal_Tally_Result_Min_Fields = { - __typename?: 'proposal_tally_result_min_fields'; - abstain?: Maybe; - height?: Maybe; - no?: Maybe; - no_with_veto?: Maybe; - proposal_id?: Maybe; - yes?: Maybe; -}; - -/** order by min() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Min_Order_By = { - abstain?: Maybe; - height?: Maybe; - no?: Maybe; - no_with_veto?: Maybe; - proposal_id?: Maybe; - yes?: Maybe; -}; - -/** Ordering options when selecting data from "proposal_tally_result". */ -export type Proposal_Tally_Result_Order_By = { - abstain?: Maybe; - height?: Maybe; - no?: Maybe; - no_with_veto?: Maybe; - proposal?: Maybe; - proposal_id?: Maybe; - yes?: Maybe; -}; - -/** 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' -} - -/** aggregate stddev on columns */ -export type Proposal_Tally_Result_Stddev_Fields = { - __typename?: 'proposal_tally_result_stddev_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by stddev() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Stddev_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Proposal_Tally_Result_Stddev_Pop_Fields = { - __typename?: 'proposal_tally_result_stddev_pop_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by stddev_pop() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Stddev_Pop_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Proposal_Tally_Result_Stddev_Samp_Fields = { - __typename?: 'proposal_tally_result_stddev_samp_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by stddev_samp() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Stddev_Samp_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate sum on columns */ -export type Proposal_Tally_Result_Sum_Fields = { - __typename?: 'proposal_tally_result_sum_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by sum() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Sum_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Proposal_Tally_Result_Var_Pop_Fields = { - __typename?: 'proposal_tally_result_var_pop_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by var_pop() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Var_Pop_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Proposal_Tally_Result_Var_Samp_Fields = { - __typename?: 'proposal_tally_result_var_samp_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by var_samp() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Var_Samp_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate variance on columns */ -export type Proposal_Tally_Result_Variance_Fields = { - __typename?: 'proposal_tally_result_variance_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by variance() on columns of table "proposal_tally_result" */ -export type Proposal_Tally_Result_Variance_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** columns and relationships of "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot = { - __typename?: 'proposal_validator_status_snapshot'; - height: Scalars['bigint']; - id: Scalars['Int']; - 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']; -}; - -/** aggregated selection of "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Aggregate = { - __typename?: 'proposal_validator_status_snapshot_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Aggregate_Fields = { - __typename?: 'proposal_validator_status_snapshot_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_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Proposal_Validator_Status_Snapshot_Avg_Fields = { - __typename?: 'proposal_validator_status_snapshot_avg_fields'; - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** order by avg() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Avg_Order_By = { - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - id?: Maybe; - jailed?: Maybe; - proposal?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - validator?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** aggregate max on columns */ -export type Proposal_Validator_Status_Snapshot_Max_Fields = { - __typename?: 'proposal_validator_status_snapshot_max_fields'; - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** order by max() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Max_Order_By = { - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** aggregate min on columns */ -export type Proposal_Validator_Status_Snapshot_Min_Fields = { - __typename?: 'proposal_validator_status_snapshot_min_fields'; - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** order by min() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Min_Order_By = { - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** Ordering options when selecting data from "proposal_validator_status_snapshot". */ -export type Proposal_Validator_Status_Snapshot_Order_By = { - height?: Maybe; - id?: Maybe; - jailed?: Maybe; - proposal?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - validator?: Maybe; - validator_address?: Maybe; - voting_power?: Maybe; -}; - -/** select columns of table "proposal_validator_status_snapshot" */ -export enum Proposal_Validator_Status_Snapshot_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - Id = 'id', - /** column name */ - Jailed = 'jailed', - /** column name */ - ProposalId = 'proposal_id', - /** column name */ - Status = 'status', - /** column name */ - ValidatorAddress = 'validator_address', - /** column name */ - VotingPower = 'voting_power' -} - -/** aggregate stddev on columns */ -export type Proposal_Validator_Status_Snapshot_Stddev_Fields = { - __typename?: 'proposal_validator_status_snapshot_stddev_fields'; - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** order by stddev() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Stddev_Order_By = { - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Proposal_Validator_Status_Snapshot_Stddev_Pop_Fields = { - __typename?: 'proposal_validator_status_snapshot_stddev_pop_fields'; - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** order by stddev_pop() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Stddev_Pop_Order_By = { - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Proposal_Validator_Status_Snapshot_Stddev_Samp_Fields = { - __typename?: 'proposal_validator_status_snapshot_stddev_samp_fields'; - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** order by stddev_samp() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Stddev_Samp_Order_By = { - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** aggregate sum on columns */ -export type Proposal_Validator_Status_Snapshot_Sum_Fields = { - __typename?: 'proposal_validator_status_snapshot_sum_fields'; - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** order by sum() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Sum_Order_By = { - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Proposal_Validator_Status_Snapshot_Var_Pop_Fields = { - __typename?: 'proposal_validator_status_snapshot_var_pop_fields'; - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** order by var_pop() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Var_Pop_Order_By = { - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Proposal_Validator_Status_Snapshot_Var_Samp_Fields = { - __typename?: 'proposal_validator_status_snapshot_var_samp_fields'; - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** order by var_samp() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Var_Samp_Order_By = { - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** aggregate variance on columns */ -export type Proposal_Validator_Status_Snapshot_Variance_Fields = { - __typename?: 'proposal_validator_status_snapshot_variance_fields'; - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** order by variance() on columns of table "proposal_validator_status_snapshot" */ -export type Proposal_Validator_Status_Snapshot_Variance_Order_By = { - height?: Maybe; - id?: Maybe; - proposal_id?: Maybe; - status?: Maybe; - voting_power?: Maybe; -}; - -/** 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?: Maybe; -}; - -/** 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?: Maybe; -}; - -/** 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?: Maybe; -}; - -/** columns and relationships of "proposal_vote" */ -export type Proposal_Vote = { - __typename?: 'proposal_vote'; - /** An object relationship */ - account: Account; - height: Scalars['bigint']; - option: Scalars['String']; - /** An object relationship */ - proposal: Proposal; - proposal_id: Scalars['Int']; - voter_address: Scalars['String']; -}; - -/** aggregated selection of "proposal_vote" */ -export type Proposal_Vote_Aggregate = { - __typename?: 'proposal_vote_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "proposal_vote" */ -export type Proposal_Vote_Aggregate_Fields = { - __typename?: 'proposal_vote_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_vote" */ -export type Proposal_Vote_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "proposal_vote" */ -export type Proposal_Vote_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Proposal_Vote_Avg_Fields = { - __typename?: 'proposal_vote_avg_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by avg() on columns of table "proposal_vote" */ -export type Proposal_Vote_Avg_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account?: Maybe; - height?: Maybe; - option?: Maybe; - proposal?: Maybe; - proposal_id?: Maybe; - voter_address?: Maybe; -}; - -/** aggregate max on columns */ -export type Proposal_Vote_Max_Fields = { - __typename?: 'proposal_vote_max_fields'; - height?: Maybe; - option?: Maybe; - proposal_id?: Maybe; - voter_address?: Maybe; -}; - -/** order by max() on columns of table "proposal_vote" */ -export type Proposal_Vote_Max_Order_By = { - height?: Maybe; - option?: Maybe; - proposal_id?: Maybe; - voter_address?: Maybe; -}; - -/** aggregate min on columns */ -export type Proposal_Vote_Min_Fields = { - __typename?: 'proposal_vote_min_fields'; - height?: Maybe; - option?: Maybe; - proposal_id?: Maybe; - voter_address?: Maybe; -}; - -/** order by min() on columns of table "proposal_vote" */ -export type Proposal_Vote_Min_Order_By = { - height?: Maybe; - option?: Maybe; - proposal_id?: Maybe; - voter_address?: Maybe; -}; - -/** Ordering options when selecting data from "proposal_vote". */ -export type Proposal_Vote_Order_By = { - account?: Maybe; - height?: Maybe; - option?: Maybe; - proposal?: Maybe; - proposal_id?: Maybe; - voter_address?: Maybe; -}; - -/** 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 */ - VoterAddress = 'voter_address' -} - -/** aggregate stddev on columns */ -export type Proposal_Vote_Stddev_Fields = { - __typename?: 'proposal_vote_stddev_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by stddev() on columns of table "proposal_vote" */ -export type Proposal_Vote_Stddev_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Proposal_Vote_Stddev_Pop_Fields = { - __typename?: 'proposal_vote_stddev_pop_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by stddev_pop() on columns of table "proposal_vote" */ -export type Proposal_Vote_Stddev_Pop_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Proposal_Vote_Stddev_Samp_Fields = { - __typename?: 'proposal_vote_stddev_samp_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by stddev_samp() on columns of table "proposal_vote" */ -export type Proposal_Vote_Stddev_Samp_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate sum on columns */ -export type Proposal_Vote_Sum_Fields = { - __typename?: 'proposal_vote_sum_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by sum() on columns of table "proposal_vote" */ -export type Proposal_Vote_Sum_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Proposal_Vote_Var_Pop_Fields = { - __typename?: 'proposal_vote_var_pop_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by var_pop() on columns of table "proposal_vote" */ -export type Proposal_Vote_Var_Pop_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Proposal_Vote_Var_Samp_Fields = { - __typename?: 'proposal_vote_var_samp_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by var_samp() on columns of table "proposal_vote" */ -export type Proposal_Vote_Var_Samp_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -/** aggregate variance on columns */ -export type Proposal_Vote_Variance_Fields = { - __typename?: 'proposal_vote_variance_fields'; - height?: Maybe; - proposal_id?: Maybe; -}; - -/** order by variance() on columns of table "proposal_vote" */ -export type Proposal_Vote_Variance_Order_By = { - height?: Maybe; - proposal_id?: Maybe; -}; - -export type Query_Root = { - __typename?: 'query_root'; - /** fetch data from the table: "account" */ - account: Array; - /** fetch aggregated fields from the table: "account" */ - account_aggregate: Account_Aggregate; - /** fetch data from the table: "account_balance" */ - account_balance: Array; - /** fetch aggregated fields from the table: "account_balance" */ - account_balance_aggregate: Account_Balance_Aggregate; - /** fetch data from the table: "account_balance" using primary key columns */ - account_balance_by_pk?: Maybe; - /** fetch data from the table: "account_balance_history" */ - account_balance_history: Array; - /** fetch aggregated fields from the table: "account_balance_history" */ - account_balance_history_aggregate: Account_Balance_History_Aggregate; - /** execute function "account_balance_history_tokens_prices" which returns "token_price_history" */ - account_balance_history_tokens_prices: Array; - /** execute function "account_balance_history_tokens_prices" and query aggregates on result of table type "token_price_history" */ - account_balance_history_tokens_prices_aggregate: Token_Price_History_Aggregate; - /** execute function "account_balance_tokens_prices" which returns "token_price" */ - account_balance_tokens_prices: Array; - /** execute function "account_balance_tokens_prices" and query aggregates on result of table type "token_price" */ - account_balance_tokens_prices_aggregate: Token_Price_Aggregate; - /** 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: "application_link" */ - application_link: Array; - /** fetch aggregated fields from the table: "application_link" */ - application_link_aggregate: Application_Link_Aggregate; - /** fetch data from the table: "application_link" using primary key columns */ - application_link_by_pk?: Maybe; - /** fetch data from the table: "application_link_oracle_request" */ - application_link_oracle_request: Array; - /** fetch aggregated fields from the table: "application_link_oracle_request" */ - application_link_oracle_request_aggregate: Application_Link_Oracle_Request_Aggregate; - /** fetch data from the table: "application_link_oracle_request" using primary key columns */ - application_link_oracle_request_by_pk?: Maybe; - /** fetch data from the table: "average_block_time_from_genesis" */ - average_block_time_from_genesis: Array; - /** fetch aggregated fields from the table: "average_block_time_from_genesis" */ - average_block_time_from_genesis_aggregate: Average_Block_Time_From_Genesis_Aggregate; - /** fetch data from the table: "average_block_time_per_day" */ - average_block_time_per_day: Array; - /** fetch aggregated fields from the table: "average_block_time_per_day" */ - average_block_time_per_day_aggregate: Average_Block_Time_Per_Day_Aggregate; - /** fetch data from the table: "average_block_time_per_hour" */ - average_block_time_per_hour: Array; - /** fetch aggregated fields from the table: "average_block_time_per_hour" */ - average_block_time_per_hour_aggregate: Average_Block_Time_Per_Hour_Aggregate; - /** fetch data from the table: "average_block_time_per_minute" */ - average_block_time_per_minute: Array; - /** fetch aggregated fields from the table: "average_block_time_per_minute" */ - average_block_time_per_minute_aggregate: Average_Block_Time_Per_Minute_Aggregate; - /** fetch data from the table: "block" */ - block: Array; - /** fetch aggregated fields from the table: "block" */ - block_aggregate: Block_Aggregate; - /** fetch data from the table: "block" using primary key columns */ - block_by_pk?: Maybe; - /** fetch data from the table: "chain_link" */ - chain_link: Array; - /** fetch aggregated fields from the table: "chain_link" */ - chain_link_aggregate: Chain_Link_Aggregate; - /** fetch data from the table: "chain_link" using primary key columns */ - chain_link_by_pk?: Maybe; - /** fetch data from the table: "chain_link_chain_config" */ - chain_link_chain_config: Array; - /** fetch aggregated fields from the table: "chain_link_chain_config" */ - chain_link_chain_config_aggregate: Chain_Link_Chain_Config_Aggregate; - /** fetch data from the table: "chain_link_chain_config" using primary key columns */ - chain_link_chain_config_by_pk?: Maybe; - /** fetch data from the table: "chain_link_proof" */ - chain_link_proof: Array; - /** fetch aggregated fields from the table: "chain_link_proof" */ - chain_link_proof_aggregate: Chain_Link_Proof_Aggregate; - /** fetch data from the table: "community_pool" */ - community_pool: Array; - /** fetch aggregated fields from the table: "community_pool" */ - community_pool_aggregate: Community_Pool_Aggregate; - /** fetch data from the table: "delegation" */ - delegation: Array; - /** fetch aggregated fields from the table: "delegation" */ - delegation_aggregate: Delegation_Aggregate; - /** fetch data from the table: "delegation" using primary key columns */ - delegation_by_pk?: Maybe; - /** fetch data from the table: "delegation_reward" */ - delegation_reward: Array; - /** fetch aggregated fields from the table: "delegation_reward" */ - delegation_reward_aggregate: Delegation_Reward_Aggregate; - /** fetch data from the table: "distribution_params" */ - distribution_params: Array; - /** fetch aggregated fields from the table: "distribution_params" */ - distribution_params_aggregate: Distribution_Params_Aggregate; - /** fetch data from the table: "distribution_params" using primary key columns */ - distribution_params_by_pk?: Maybe; - /** fetch data from the table: "double_sign_evidence" */ - double_sign_evidence: Array; - /** fetch aggregated fields from the table: "double_sign_evidence" */ - double_sign_evidence_aggregate: Double_Sign_Evidence_Aggregate; - /** fetch data from the table: "double_sign_vote" */ - double_sign_vote: Array; - /** fetch aggregated fields from the table: "double_sign_vote" */ - double_sign_vote_aggregate: Double_Sign_Vote_Aggregate; - /** fetch data from the table: "double_sign_vote" using primary key columns */ - double_sign_vote_by_pk?: Maybe; - /** An array relationship */ - dtag_transfer_requests: Array; - /** An aggregate relationship */ - dtag_transfer_requests_aggregate: Dtag_Transfer_Requests_Aggregate; - /** fetch data from the table: "fee_grant_allowance" */ - fee_grant_allowance: Array; - /** fetch aggregated fields from the table: "fee_grant_allowance" */ - fee_grant_allowance_aggregate: Fee_Grant_Allowance_Aggregate; - /** fetch data from the table: "fee_grant_allowance" using primary key columns */ - fee_grant_allowance_by_pk?: Maybe; - /** fetch data from the table: "genesis" */ - genesis: Array; - /** fetch aggregated fields from the table: "genesis" */ - genesis_aggregate: Genesis_Aggregate; - /** fetch data from the table: "gov_params" */ - gov_params: Array; - /** fetch aggregated fields from the table: "gov_params" */ - gov_params_aggregate: Gov_Params_Aggregate; - /** fetch data from the table: "gov_params" using primary key columns */ - gov_params_by_pk?: Maybe; - /** fetch data from the table: "inflation" */ - inflation: Array; - /** fetch aggregated fields from the table: "inflation" */ - inflation_aggregate: Inflation_Aggregate; - /** fetch data from the table: "message" */ - message: Array; - /** fetch aggregated fields from the table: "message" */ - message_aggregate: Message_Aggregate; - /** execute function "messages_by_address" which returns "message" */ - messages_by_address: Array; - /** execute function "messages_by_address" and query aggregates on result of table type "message" */ - messages_by_address_aggregate: Message_Aggregate; - /** fetch data from the table: "mint_params" */ - mint_params: Array; - /** fetch aggregated fields from the table: "mint_params" */ - mint_params_aggregate: Mint_Params_Aggregate; - /** fetch data from the table: "mint_params" using primary key columns */ - mint_params_by_pk?: Maybe; - /** fetch data from the table: "modules" */ - modules: Array; - /** fetch aggregated fields from the table: "modules" */ - modules_aggregate: Modules_Aggregate; - /** fetch data from the table: "modules" using primary key columns */ - modules_by_pk?: Maybe; - /** fetch data from the table: "poll" */ - poll: Array; - /** fetch aggregated fields from the table: "poll" */ - poll_aggregate: Poll_Aggregate; - /** fetch data from the table: "poll_answer" */ - poll_answer: Array; - /** fetch aggregated fields from the table: "poll_answer" */ - poll_answer_aggregate: Poll_Answer_Aggregate; - /** fetch data from the table: "poll" using primary key columns */ - poll_by_pk?: Maybe; - /** fetch data from the table: "post" */ - post: Array; - /** fetch aggregated fields from the table: "post" */ - post_aggregate: Post_Aggregate; - /** fetch data from the table: "post_attachment" */ - post_attachment: Array; - /** fetch aggregated fields from the table: "post_attachment" */ - post_attachment_aggregate: Post_Attachment_Aggregate; - /** fetch data from the table: "post_attachment" using primary key columns */ - post_attachment_by_pk?: Maybe; - /** fetch data from the table: "post_attachment_tag" */ - post_attachment_tag: Array; - /** fetch aggregated fields from the table: "post_attachment_tag" */ - post_attachment_tag_aggregate: Post_Attachment_Tag_Aggregate; - /** fetch data from the table: "post_attribute" */ - post_attribute: Array; - /** fetch aggregated fields from the table: "post_attribute" */ - post_attribute_aggregate: Post_Attribute_Aggregate; - /** fetch data from the table: "post" using primary key columns */ - post_by_pk?: Maybe; - /** fetch data from the table: "post_reaction" */ - post_reaction: Array; - /** fetch aggregated fields from the table: "post_reaction" */ - post_reaction_aggregate: Post_Reaction_Aggregate; - /** fetch data from the table: "post_report" */ - post_report: Array; - /** fetch aggregated fields from the table: "post_report" */ - post_report_aggregate: Post_Report_Aggregate; - /** 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: "profile" */ - profile: Array; - /** fetch aggregated fields from the table: "profile" */ - profile_aggregate: Profile_Aggregate; - /** fetch data from the table: "profile" using primary key columns */ - profile_by_pk?: Maybe; - /** fetch data from the table: "profile_relationship" */ - profile_relationship: Array; - /** fetch aggregated fields from the table: "profile_relationship" */ - profile_relationship_aggregate: Profile_Relationship_Aggregate; - /** fetch data from the table: "profiles_params" */ - profiles_params: Array; - /** 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 aggregated fields from the table: "proposal_deposit" */ - proposal_deposit_aggregate: Proposal_Deposit_Aggregate; - /** fetch data from the table: "proposal_staking_pool_snapshot" */ - proposal_staking_pool_snapshot: Array; - /** fetch aggregated fields from the table: "proposal_staking_pool_snapshot" */ - proposal_staking_pool_snapshot_aggregate: Proposal_Staking_Pool_Snapshot_Aggregate; - /** 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 aggregated fields from the table: "proposal_tally_result" */ - proposal_tally_result_aggregate: Proposal_Tally_Result_Aggregate; - /** 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 aggregated fields from the table: "proposal_validator_status_snapshot" */ - proposal_validator_status_snapshot_aggregate: Proposal_Validator_Status_Snapshot_Aggregate; - /** fetch data from the table: "proposal_validator_status_snapshot" using primary key columns */ - proposal_validator_status_snapshot_by_pk?: Maybe; - /** fetch data from the table: "proposal_vote" */ - proposal_vote: Array; - /** fetch aggregated fields from the table: "proposal_vote" */ - proposal_vote_aggregate: Proposal_Vote_Aggregate; - /** fetch data from the table: "redelegation" */ - redelegation: Array; - /** fetch aggregated fields from the table: "redelegation" */ - redelegation_aggregate: Redelegation_Aggregate; - /** An array relationship */ - registered_reactions: Array; - /** An aggregate relationship */ - registered_reactions_aggregate: Registered_Reactions_Aggregate; - /** execute function "self_delegations" which returns "delegation" */ - self_delegations: Array; - /** execute function "self_delegations" and query aggregates on result of table type "delegation" */ - self_delegations_aggregate: Delegation_Aggregate; - /** fetch data from the table: "slashing_params" */ - slashing_params: Array; - /** fetch aggregated fields from the table: "slashing_params" */ - slashing_params_aggregate: Slashing_Params_Aggregate; - /** fetch data from the table: "slashing_params" using primary key columns */ - slashing_params_by_pk?: Maybe; - /** fetch data from the table: "staking_params" */ - staking_params: Array; - /** fetch aggregated fields from the table: "staking_params" */ - staking_params_aggregate: Staking_Params_Aggregate; - /** fetch data from the table: "staking_params" using primary key columns */ - staking_params_by_pk?: Maybe; - /** fetch data from the table: "staking_pool" */ - staking_pool: Array; - /** fetch aggregated fields from the table: "staking_pool" */ - staking_pool_aggregate: Staking_Pool_Aggregate; - /** fetch data from the table: "supply" */ - supply: Array; - /** fetch aggregated fields from the table: "supply" */ - supply_aggregate: Supply_Aggregate; - /** fetch data from the table: "token" */ - token: Array; - /** fetch aggregated fields from the table: "token" */ - token_aggregate: Token_Aggregate; - /** fetch data from the table: "token_price" */ - token_price: Array; - /** fetch aggregated fields from the table: "token_price" */ - token_price_aggregate: Token_Price_Aggregate; - /** fetch data from the table: "token_price" using primary key columns */ - token_price_by_pk?: Maybe; - /** fetch data from the table: "token_price_history" */ - token_price_history: Array; - /** fetch aggregated fields from the table: "token_price_history" */ - token_price_history_aggregate: Token_Price_History_Aggregate; - /** fetch data from the table: "token_unit" */ - token_unit: Array; - /** fetch aggregated fields from the table: "token_unit" */ - token_unit_aggregate: Token_Unit_Aggregate; - /** fetch data from the table: "transaction" */ - transaction: Array; - /** fetch aggregated fields from the table: "transaction" */ - transaction_aggregate: Transaction_Aggregate; - /** fetch data from the table: "transaction" using primary key columns */ - transaction_by_pk?: Maybe; - /** fetch data from the table: "unbonding_delegation" */ - unbonding_delegation: Array; - /** fetch aggregated fields from the table: "unbonding_delegation" */ - unbonding_delegation_aggregate: Unbonding_Delegation_Aggregate; - /** fetch data from the table: "user_block" */ - user_block: Array; - /** fetch aggregated fields from the table: "user_block" */ - user_block_aggregate: User_Block_Aggregate; - /** fetch data from the table: "user_poll_answer" */ - user_poll_answer: Array; - /** fetch aggregated fields from the table: "user_poll_answer" */ - user_poll_answer_aggregate: User_Poll_Answer_Aggregate; - /** fetch data from the table: "validator" */ - validator: Array; - /** fetch aggregated fields from the table: "validator" */ - validator_aggregate: Validator_Aggregate; - /** 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 aggregated fields from the table: "validator_commission" */ - validator_commission_aggregate: Validator_Commission_Aggregate; - /** fetch data from the table: "validator_commission_amount" */ - validator_commission_amount: Array; - /** fetch aggregated fields from the table: "validator_commission_amount" */ - validator_commission_amount_aggregate: Validator_Commission_Amount_Aggregate; - /** fetch data from the table: "validator_commission_amount" using primary key columns */ - validator_commission_amount_by_pk?: Maybe; - /** 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 aggregated fields from the table: "validator_description" */ - validator_description_aggregate: Validator_Description_Aggregate; - /** 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 aggregated fields from the table: "validator_info" */ - validator_info_aggregate: Validator_Info_Aggregate; - /** 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 aggregated fields from the table: "validator_signing_info" */ - validator_signing_info_aggregate: Validator_Signing_Info_Aggregate; - /** 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 aggregated fields from the table: "vesting_account" */ - vesting_account_aggregate: Vesting_Account_Aggregate; - /** fetch data from the table: "vesting_account" using primary key columns */ - vesting_account_by_pk?: Maybe; - /** fetch data from the table: "vesting_period" */ - vesting_period: Array; - /** fetch aggregated fields from the table: "vesting_period" */ - vesting_period_aggregate: Vesting_Period_Aggregate; -}; - - -export type Query_RootAccountArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAccount_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAccount_BalanceArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAccount_Balance_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAccount_Balance_By_PkArgs = { - address: Scalars['String']; -}; - - -export type Query_RootAccount_Balance_HistoryArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAccount_Balance_History_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAccount_Balance_History_Tokens_PricesArgs = { - args: Account_Balance_History_Tokens_Prices_Args; - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAccount_Balance_History_Tokens_Prices_AggregateArgs = { - args: Account_Balance_History_Tokens_Prices_Args; - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAccount_Balance_Tokens_PricesArgs = { - args: Account_Balance_Tokens_Prices_Args; - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAccount_Balance_Tokens_Prices_AggregateArgs = { - args: Account_Balance_Tokens_Prices_Args; - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAccount_By_PkArgs = { - address: Scalars['String']; -}; - - -export type Query_RootAction_Account_BalanceArgs = { - address: Scalars['String']; - height?: Maybe; -}; - - -export type Query_RootAction_DelegationArgs = { - address: Scalars['String']; - count_total?: Maybe; - height?: Maybe; - limit?: Maybe; - offset?: Maybe; -}; - - -export type Query_RootAction_Delegation_RewardArgs = { - address: Scalars['String']; - height?: Maybe; -}; - - -export type Query_RootAction_Delegation_TotalArgs = { - address: Scalars['String']; - height?: Maybe; -}; - - -export type Query_RootAction_Delegator_Withdraw_AddressArgs = { - address: Scalars['String']; -}; - - -export type Query_RootAction_RedelegationArgs = { - address: Scalars['String']; - count_total?: Maybe; - height?: Maybe; - limit?: Maybe; - offset?: Maybe; -}; - - -export type Query_RootAction_Unbonding_DelegationArgs = { - address: Scalars['String']; - count_total?: Maybe; - height?: Maybe; - limit?: Maybe; - offset?: Maybe; -}; - - -export type Query_RootAction_Unbonding_Delegation_TotalArgs = { - address: Scalars['String']; - height?: Maybe; -}; - - -export type Query_RootAction_Validator_Commission_AmountArgs = { - address: Scalars['String']; -}; - - -export type Query_RootAction_Validator_DelegationsArgs = { - address: Scalars['String']; - count_total?: Maybe; - limit?: Maybe; - offset?: Maybe; -}; - - -export type Query_RootAction_Validator_Redelegations_FromArgs = { - address: Scalars['String']; - count_total?: Maybe; - height?: Maybe; - limit?: Maybe; - offset?: Maybe; -}; - - -export type Query_RootAction_Validator_Unbonding_DelegationsArgs = { - address: Scalars['String']; - count_total?: Maybe; - limit?: Maybe; - offset?: Maybe; -}; - - -export type Query_RootApplication_LinkArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootApplication_Link_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootApplication_Link_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootApplication_Link_Oracle_RequestArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootApplication_Link_Oracle_Request_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootApplication_Link_Oracle_Request_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootAverage_Block_Time_From_GenesisArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAverage_Block_Time_From_Genesis_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAverage_Block_Time_Per_DayArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAverage_Block_Time_Per_Day_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAverage_Block_Time_Per_HourArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAverage_Block_Time_Per_Hour_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAverage_Block_Time_Per_MinuteArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootAverage_Block_Time_Per_Minute_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootBlockArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootBlock_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootBlock_By_PkArgs = { - height: Scalars['bigint']; -}; - - -export type Query_RootChain_LinkArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootChain_Link_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootChain_Link_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootChain_Link_Chain_ConfigArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootChain_Link_Chain_Config_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootChain_Link_Chain_Config_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootChain_Link_ProofArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootChain_Link_Proof_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootCommunity_PoolArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootCommunity_Pool_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDelegationArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDelegation_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDelegation_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootDelegation_RewardArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDelegation_Reward_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDistribution_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDistribution_Params_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDistribution_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - -export type Query_RootDouble_Sign_EvidenceArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDouble_Sign_Evidence_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDouble_Sign_VoteArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDouble_Sign_Vote_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDouble_Sign_Vote_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootDtag_Transfer_RequestsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootDtag_Transfer_Requests_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootFee_Grant_AllowanceArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootFee_Grant_Allowance_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootFee_Grant_Allowance_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootGenesisArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootGenesis_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootGov_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootGov_Params_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootGov_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - -export type Query_RootInflationArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootInflation_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootMessageArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootMessage_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootMessages_By_AddressArgs = { - args: Messages_By_Address_Args; - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootMessages_By_Address_AggregateArgs = { - args: Messages_By_Address_Args; - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootMint_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootMint_Params_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootMint_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - -export type Query_RootModulesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootModules_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootModules_By_PkArgs = { - module_name: Scalars['String']; -}; - - -export type Query_RootPollArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPoll_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPoll_AnswerArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPoll_Answer_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPoll_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootPostArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_AttachmentArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_Attachment_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_Attachment_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootPost_Attachment_TagArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_Attachment_Tag_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_AttributeArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_Attribute_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_By_PkArgs = { - id: Scalars['String']; -}; - - -export type Query_RootPost_ReactionArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_Reaction_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_ReportArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPost_Report_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPre_CommitArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootPre_Commit_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProfileArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProfile_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProfile_By_PkArgs = { - address: Scalars['String']; -}; - - -export type Query_RootProfile_RelationshipArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProfile_Relationship_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProfiles_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposalArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootProposal_DepositArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_Deposit_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_Staking_Pool_SnapshotArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_Staking_Pool_Snapshot_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_Staking_Pool_Snapshot_By_PkArgs = { - proposal_id: Scalars['Int']; -}; - - -export type Query_RootProposal_Tally_ResultArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_Tally_Result_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_Tally_Result_By_PkArgs = { - proposal_id: Scalars['Int']; -}; - - -export type Query_RootProposal_Validator_Status_SnapshotArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_Validator_Status_Snapshot_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_Validator_Status_Snapshot_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootProposal_VoteArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootProposal_Vote_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootRedelegationArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootRedelegation_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootRegistered_ReactionsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootRegistered_Reactions_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootSelf_DelegationsArgs = { - args: Self_Delegations_Args; - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootSelf_Delegations_AggregateArgs = { - args: Self_Delegations_Args; - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootSlashing_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootSlashing_Params_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootSlashing_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - -export type Query_RootStaking_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootStaking_Params_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootStaking_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - -export type Query_RootStaking_PoolArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootStaking_Pool_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootSupplyArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootSupply_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootTokenArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootToken_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootToken_PriceArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootToken_Price_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootToken_Price_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Query_RootToken_Price_HistoryArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootToken_Price_History_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootToken_UnitArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootToken_Unit_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootTransactionArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootTransaction_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootTransaction_By_PkArgs = { - hash: Scalars['String']; -}; - - -export type Query_RootUnbonding_DelegationArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootUnbonding_Delegation_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootUser_BlockArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootUser_Block_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootUser_Poll_AnswerArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootUser_Poll_Answer_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidatorArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_By_PkArgs = { - consensus_address: Scalars['String']; -}; - - -export type Query_RootValidator_CommissionArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Commission_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Commission_AmountArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Commission_Amount_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Commission_Amount_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Query_RootValidator_Commission_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Query_RootValidator_DescriptionArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Description_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Description_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Query_RootValidator_InfoArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Info_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Info_By_PkArgs = { - consensus_address: Scalars['String']; -}; - - -export type Query_RootValidator_Signing_InfoArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Signing_Info_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Signing_Info_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Query_RootValidator_StatusArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Status_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Status_By_PkArgs = { - validator_address: Scalars['String']; -}; - - -export type Query_RootValidator_Voting_PowerArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Voting_Power_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Query_RootValidator_Voting_Power_By_PkArgs = { - validator_address: Scalars['String']; +export type Query_Root = { + __typename?: 'query_root'; + /** fetch data from the table: "account" */ + account: Array; + /** fetch aggregated fields from the table: "account" */ + account_aggregate: Account_Aggregate; + /** 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 aggregated fields from the table: "average_block_time_from_genesis" */ + average_block_time_from_genesis_aggregate: Average_Block_Time_From_Genesis_Aggregate; + /** fetch data from the table: "average_block_time_per_day" */ + average_block_time_per_day: Array; + /** fetch aggregated fields from the table: "average_block_time_per_day" */ + average_block_time_per_day_aggregate: Average_Block_Time_Per_Day_Aggregate; + /** fetch data from the table: "average_block_time_per_hour" */ + average_block_time_per_hour: Array; + /** fetch aggregated fields from the table: "average_block_time_per_hour" */ + average_block_time_per_hour_aggregate: Average_Block_Time_Per_Hour_Aggregate; + /** fetch data from the table: "average_block_time_per_minute" */ + average_block_time_per_minute: Array; + /** fetch aggregated fields from the table: "average_block_time_per_minute" */ + average_block_time_per_minute_aggregate: Average_Block_Time_Per_Minute_Aggregate; + /** fetch data from the table: "block" */ + block: Array; + /** fetch aggregated fields from the table: "block" */ + block_aggregate: Block_Aggregate; + /** 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 aggregated fields from the table: "community_pool" */ + community_pool_aggregate: Community_Pool_Aggregate; + /** fetch data from the table: "cosmwasm_clear_admin" */ + cosmwasm_clear_admin: Array; + /** fetch aggregated fields from the table: "cosmwasm_clear_admin" */ + cosmwasm_clear_admin_aggregate: Cosmwasm_Clear_Admin_Aggregate; + /** fetch data from the table: "cosmwasm_clear_admin" using primary key columns */ + cosmwasm_clear_admin_by_pk?: Maybe; + /** fetch data from the table: "cosmwasm_execute" */ + cosmwasm_execute: Array; + /** fetch aggregated fields from the table: "cosmwasm_execute" */ + cosmwasm_execute_aggregate: Cosmwasm_Execute_Aggregate; + /** fetch data from the table: "cosmwasm_execute" using primary key columns */ + cosmwasm_execute_by_pk?: Maybe; + /** fetch data from the table: "cosmwasm_instantiate" */ + cosmwasm_instantiate: Array; + /** fetch aggregated fields from the table: "cosmwasm_instantiate" */ + cosmwasm_instantiate_aggregate: Cosmwasm_Instantiate_Aggregate; + /** fetch data from the table: "cosmwasm_instantiate" using primary key columns */ + cosmwasm_instantiate_by_pk?: Maybe; + /** fetch data from the table: "cosmwasm_migrate" */ + cosmwasm_migrate: Array; + /** fetch aggregated fields from the table: "cosmwasm_migrate" */ + cosmwasm_migrate_aggregate: Cosmwasm_Migrate_Aggregate; + /** fetch data from the table: "cosmwasm_migrate" using primary key columns */ + cosmwasm_migrate_by_pk?: Maybe; + /** fetch data from the table: "cosmwasm_store" */ + cosmwasm_store: Array; + /** fetch aggregated fields from the table: "cosmwasm_store" */ + cosmwasm_store_aggregate: Cosmwasm_Store_Aggregate; + /** fetch data from the table: "cosmwasm_store" using primary key columns */ + cosmwasm_store_by_pk?: Maybe; + /** fetch data from the table: "cosmwasm_update_admin" */ + cosmwasm_update_admin: Array; + /** fetch aggregated fields from the table: "cosmwasm_update_admin" */ + cosmwasm_update_admin_aggregate: Cosmwasm_Update_Admin_Aggregate; + /** fetch data from the table: "cosmwasm_update_admin" using primary key columns */ + cosmwasm_update_admin_by_pk?: Maybe; + /** fetch data from the table: "distribution_params" */ + distribution_params: Array; + /** fetch aggregated fields from the table: "distribution_params" */ + distribution_params_aggregate: Distribution_Params_Aggregate; + /** fetch data from the table: "distribution_params" using primary key columns */ + distribution_params_by_pk?: Maybe; + /** fetch data from the table: "double_sign_evidence" */ + double_sign_evidence: Array; + /** fetch aggregated fields from the table: "double_sign_evidence" */ + double_sign_evidence_aggregate: Double_Sign_Evidence_Aggregate; + /** fetch data from the table: "double_sign_vote" */ + double_sign_vote: Array; + /** fetch aggregated fields from the table: "double_sign_vote" */ + double_sign_vote_aggregate: Double_Sign_Vote_Aggregate; + /** fetch data from the table: "double_sign_vote" using primary key columns */ + double_sign_vote_by_pk?: Maybe; + /** fetch data from the table: "fee_grant_allowance" */ + fee_grant_allowance: Array; + /** fetch aggregated fields from the table: "fee_grant_allowance" */ + fee_grant_allowance_aggregate: Fee_Grant_Allowance_Aggregate; + /** fetch data from the table: "fee_grant_allowance" using primary key columns */ + fee_grant_allowance_by_pk?: Maybe; + /** fetch data from the table: "genesis" */ + genesis: Array; + /** fetch aggregated fields from the table: "genesis" */ + genesis_aggregate: Genesis_Aggregate; + /** fetch data from the table: "gov_params" */ + gov_params: Array; + /** fetch aggregated fields from the table: "gov_params" */ + gov_params_aggregate: Gov_Params_Aggregate; + /** fetch data from the table: "gov_params" using primary key columns */ + gov_params_by_pk?: Maybe; + /** fetch data from the table: "inflation" */ + inflation: Array; + /** fetch aggregated fields from the table: "inflation" */ + inflation_aggregate: Inflation_Aggregate; + /** fetch data from the table: "message" */ + message: Array; + /** fetch aggregated fields from the table: "message" */ + message_aggregate: Message_Aggregate; + /** execute function "messages_by_address" which returns "message" */ + messages_by_address: Array; + /** execute function "messages_by_address" and query aggregates on result of table type "message" */ + messages_by_address_aggregate: Message_Aggregate; + /** fetch data from the table: "mint_params" */ + mint_params: Array; + /** fetch aggregated fields from the table: "mint_params" */ + mint_params_aggregate: Mint_Params_Aggregate; + /** fetch data from the table: "mint_params" using primary key columns */ + mint_params_by_pk?: Maybe; + /** fetch data from the table: "modules" */ + modules: Array; + /** fetch aggregated fields from the table: "modules" */ + modules_aggregate: Modules_Aggregate; + /** 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 aggregated fields from the table: "proposal_deposit" */ + proposal_deposit_aggregate: Proposal_Deposit_Aggregate; + /** fetch data from the table: "proposal_staking_pool_snapshot" */ + proposal_staking_pool_snapshot: Array; + /** fetch aggregated fields from the table: "proposal_staking_pool_snapshot" */ + proposal_staking_pool_snapshot_aggregate: Proposal_Staking_Pool_Snapshot_Aggregate; + /** 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 aggregated fields from the table: "proposal_tally_result" */ + proposal_tally_result_aggregate: Proposal_Tally_Result_Aggregate; + /** 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 aggregated fields from the table: "proposal_validator_status_snapshot" */ + proposal_validator_status_snapshot_aggregate: Proposal_Validator_Status_Snapshot_Aggregate; + /** fetch data from the table: "proposal_validator_status_snapshot" using primary key columns */ + proposal_validator_status_snapshot_by_pk?: Maybe; + /** fetch data from the table: "proposal_vote" */ + proposal_vote: Array; + /** fetch aggregated fields from the table: "proposal_vote" */ + proposal_vote_aggregate: Proposal_Vote_Aggregate; + /** fetch data from the table: "slashing_params" */ + slashing_params: Array; + /** fetch aggregated fields from the table: "slashing_params" */ + slashing_params_aggregate: Slashing_Params_Aggregate; + /** fetch data from the table: "slashing_params" using primary key columns */ + slashing_params_by_pk?: Maybe; + /** fetch data from the table: "staking_params" */ + staking_params: Array; + /** fetch aggregated fields from the table: "staking_params" */ + staking_params_aggregate: Staking_Params_Aggregate; + /** fetch data from the table: "staking_params" using primary key columns */ + staking_params_by_pk?: Maybe; + /** fetch data from the table: "staking_pool" */ + staking_pool: Array; + /** fetch aggregated fields from the table: "staking_pool" */ + staking_pool_aggregate: Staking_Pool_Aggregate; + /** fetch data from the table: "supply" */ + supply: Array; + /** fetch aggregated fields from the table: "supply" */ + supply_aggregate: Supply_Aggregate; + /** fetch data from the table: "token" */ + token: Array; + /** fetch aggregated fields from the table: "token" */ + token_aggregate: Token_Aggregate; + /** fetch data from the table: "token_price" */ + token_price: Array; + /** fetch aggregated fields from the table: "token_price" */ + token_price_aggregate: Token_Price_Aggregate; + /** fetch data from the table: "token_price" using primary key columns */ + token_price_by_pk?: Maybe; + /** fetch data from the table: "token_price_history" */ + token_price_history: Array; + /** fetch aggregated fields from the table: "token_price_history" */ + token_price_history_aggregate: Token_Price_History_Aggregate; + /** fetch data from the table: "token_unit" */ + token_unit: Array; + /** fetch aggregated fields from the table: "token_unit" */ + token_unit_aggregate: Token_Unit_Aggregate; + /** fetch data from the table: "transaction" */ + transaction: Array; + /** fetch aggregated fields from the table: "transaction" */ + transaction_aggregate: Transaction_Aggregate; + /** fetch data from the table: "transaction" using primary key columns */ + transaction_by_pk?: Maybe; + /** fetch data from the table: "validator" */ + validator: Array; + /** fetch aggregated fields from the table: "validator" */ + validator_aggregate: Validator_Aggregate; + /** 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 aggregated fields from the table: "validator_commission" */ + validator_commission_aggregate: Validator_Commission_Aggregate; + /** 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 aggregated fields from the table: "validator_description" */ + validator_description_aggregate: Validator_Description_Aggregate; + /** 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 aggregated fields from the table: "validator_info" */ + validator_info_aggregate: Validator_Info_Aggregate; + /** 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 aggregated fields from the table: "validator_signing_info" */ + validator_signing_info_aggregate: Validator_Signing_Info_Aggregate; + /** 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 aggregated fields from the table: "vesting_account" */ + vesting_account_aggregate: Vesting_Account_Aggregate; + /** fetch data from the table: "vesting_account" using primary key columns */ + vesting_account_by_pk?: Maybe; + /** fetch data from the table: "vesting_period" */ + vesting_period: Array; + /** fetch aggregated fields from the table: "vesting_period" */ + vesting_period_aggregate: Vesting_Period_Aggregate; }; -export type Query_RootVesting_AccountArgs = { - distinct_on?: Maybe>; +export type Query_RootAccountArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Query_RootVesting_Account_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootAccount_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Query_RootVesting_Account_By_PkArgs = { - id: Scalars['Int']; +export type Query_RootAccount_By_PkArgs = { + address: Scalars['String']; }; -export type Query_RootVesting_PeriodArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +export type Query_RootAction_Account_BalanceArgs = { + address: Scalars['String']; + height?: Maybe; }; -export type Query_RootVesting_Period_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootAction_DelegationArgs = { + address: Scalars['String']; + count_total?: Maybe; + height?: Maybe; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; }; -/** columns and relationships of "redelegation" */ -export type Redelegation = { - __typename?: 'redelegation'; - /** An object relationship */ - account: Account; - amount: Scalars['coin']; - completion_time: Scalars['timestamp']; - delegator_address: Scalars['String']; - dst_validator_address: Scalars['String']; - height: Scalars['bigint']; - src_validator_address: Scalars['String']; - /** An object relationship */ - validator: Validator; - /** An object relationship */ - validatorByDstValidatorAddress: Validator; -}; -/** aggregated selection of "redelegation" */ -export type Redelegation_Aggregate = { - __typename?: 'redelegation_aggregate'; - aggregate?: Maybe; - nodes: Array; +export type Query_RootAction_Delegation_RewardArgs = { + address: Scalars['String']; + height?: Maybe; }; -/** aggregate fields of "redelegation" */ -export type Redelegation_Aggregate_Fields = { - __typename?: 'redelegation_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; + +export type Query_RootAction_Delegation_TotalArgs = { + address: Scalars['String']; + height?: Maybe; }; -/** aggregate fields of "redelegation" */ -export type Redelegation_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +export type Query_RootAction_Delegator_Withdraw_AddressArgs = { + address: Scalars['String']; }; -/** order by aggregate values of table "redelegation" */ -export type Redelegation_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; -/** aggregate avg on columns */ -export type Redelegation_Avg_Fields = { - __typename?: 'redelegation_avg_fields'; - height?: Maybe; +export type Query_RootAction_RedelegationArgs = { + address: Scalars['String']; + count_total?: Maybe; + height?: Maybe; + limit?: Maybe; + offset?: Maybe; }; -/** order by avg() on columns of table "redelegation" */ -export type Redelegation_Avg_Order_By = { - height?: Maybe; -}; -/** Boolean expression to filter rows from the table "redelegation". All fields are combined with a logical 'AND'. */ -export type Redelegation_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account?: Maybe; - amount?: Maybe; - completion_time?: Maybe; - delegator_address?: Maybe; - dst_validator_address?: Maybe; - height?: Maybe; - src_validator_address?: Maybe; - validator?: Maybe; - validatorByDstValidatorAddress?: Maybe; +export type Query_RootAction_Unbonding_DelegationArgs = { + address: Scalars['String']; + count_total?: Maybe; + height?: Maybe; + limit?: Maybe; + offset?: Maybe; }; -/** aggregate max on columns */ -export type Redelegation_Max_Fields = { - __typename?: 'redelegation_max_fields'; - completion_time?: Maybe; - delegator_address?: Maybe; - dst_validator_address?: Maybe; - height?: Maybe; - src_validator_address?: Maybe; -}; -/** order by max() on columns of table "redelegation" */ -export type Redelegation_Max_Order_By = { - completion_time?: Maybe; - delegator_address?: Maybe; - dst_validator_address?: Maybe; - height?: Maybe; - src_validator_address?: Maybe; +export type Query_RootAction_Unbonding_Delegation_TotalArgs = { + address: Scalars['String']; + height?: Maybe; }; -/** aggregate min on columns */ -export type Redelegation_Min_Fields = { - __typename?: 'redelegation_min_fields'; - completion_time?: Maybe; - delegator_address?: Maybe; - dst_validator_address?: Maybe; - height?: Maybe; - src_validator_address?: Maybe; -}; -/** order by min() on columns of table "redelegation" */ -export type Redelegation_Min_Order_By = { - completion_time?: Maybe; - delegator_address?: Maybe; - dst_validator_address?: Maybe; - height?: Maybe; - src_validator_address?: Maybe; +export type Query_RootAction_Validator_Commission_AmountArgs = { + address: Scalars['String']; }; -/** Ordering options when selecting data from "redelegation". */ -export type Redelegation_Order_By = { - account?: Maybe; - amount?: Maybe; - completion_time?: Maybe; - delegator_address?: Maybe; - dst_validator_address?: Maybe; - height?: Maybe; - src_validator_address?: Maybe; - validator?: Maybe; - validatorByDstValidatorAddress?: Maybe; + +export type Query_RootAction_Validator_DelegationsArgs = { + address: Scalars['String']; + count_total?: Maybe; + limit?: Maybe; + offset?: Maybe; }; -/** select columns of table "redelegation" */ -export enum Redelegation_Select_Column { - /** column name */ - Amount = 'amount', - /** column name */ - CompletionTime = 'completion_time', - /** column name */ - DelegatorAddress = 'delegator_address', - /** column name */ - DstValidatorAddress = 'dst_validator_address', - /** column name */ - Height = 'height', - /** column name */ - SrcValidatorAddress = 'src_validator_address' -} -/** aggregate stddev on columns */ -export type Redelegation_Stddev_Fields = { - __typename?: 'redelegation_stddev_fields'; - height?: Maybe; +export type Query_RootAction_Validator_Redelegations_FromArgs = { + address: Scalars['String']; + count_total?: Maybe; + height?: Maybe; + limit?: Maybe; + offset?: Maybe; }; -/** order by stddev() on columns of table "redelegation" */ -export type Redelegation_Stddev_Order_By = { - height?: Maybe; -}; -/** aggregate stddev_pop on columns */ -export type Redelegation_Stddev_Pop_Fields = { - __typename?: 'redelegation_stddev_pop_fields'; - height?: Maybe; +export type Query_RootAction_Validator_Unbonding_DelegationsArgs = { + address: Scalars['String']; + count_total?: Maybe; + limit?: Maybe; + offset?: Maybe; }; -/** order by stddev_pop() on columns of table "redelegation" */ -export type Redelegation_Stddev_Pop_Order_By = { - height?: Maybe; -}; -/** aggregate stddev_samp on columns */ -export type Redelegation_Stddev_Samp_Fields = { - __typename?: 'redelegation_stddev_samp_fields'; - height?: Maybe; +export type Query_RootAverage_Block_Time_From_GenesisArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by stddev_samp() on columns of table "redelegation" */ -export type Redelegation_Stddev_Samp_Order_By = { - height?: Maybe; -}; -/** aggregate sum on columns */ -export type Redelegation_Sum_Fields = { - __typename?: 'redelegation_sum_fields'; - height?: Maybe; +export type Query_RootAverage_Block_Time_From_Genesis_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by sum() on columns of table "redelegation" */ -export type Redelegation_Sum_Order_By = { - height?: Maybe; -}; -/** aggregate var_pop on columns */ -export type Redelegation_Var_Pop_Fields = { - __typename?: 'redelegation_var_pop_fields'; - height?: Maybe; +export type Query_RootAverage_Block_Time_Per_DayArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by var_pop() on columns of table "redelegation" */ -export type Redelegation_Var_Pop_Order_By = { - height?: Maybe; -}; -/** aggregate var_samp on columns */ -export type Redelegation_Var_Samp_Fields = { - __typename?: 'redelegation_var_samp_fields'; - height?: Maybe; +export type Query_RootAverage_Block_Time_Per_Day_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by var_samp() on columns of table "redelegation" */ -export type Redelegation_Var_Samp_Order_By = { - height?: Maybe; -}; -/** aggregate variance on columns */ -export type Redelegation_Variance_Fields = { - __typename?: 'redelegation_variance_fields'; - height?: Maybe; +export type Query_RootAverage_Block_Time_Per_HourArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by variance() on columns of table "redelegation" */ -export type Redelegation_Variance_Order_By = { - height?: Maybe; -}; -/** columns and relationships of "registered_reactions" */ -export type Registered_Reactions = { - __typename?: 'registered_reactions'; - height: Scalars['bigint']; - owner_address: Scalars['String']; - /** An object relationship */ - profile: Profile; - short_code: Scalars['String']; - subspace: Scalars['String']; - value: Scalars['String']; +export type Query_RootAverage_Block_Time_Per_Hour_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregated selection of "registered_reactions" */ -export type Registered_Reactions_Aggregate = { - __typename?: 'registered_reactions_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; -/** aggregate fields of "registered_reactions" */ -export type Registered_Reactions_Aggregate_Fields = { - __typename?: 'registered_reactions_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; +export type Query_RootAverage_Block_Time_Per_MinuteArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate fields of "registered_reactions" */ -export type Registered_Reactions_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +export type Query_RootAverage_Block_Time_Per_Minute_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by aggregate values of table "registered_reactions" */ -export type Registered_Reactions_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; -/** aggregate avg on columns */ -export type Registered_Reactions_Avg_Fields = { - __typename?: 'registered_reactions_avg_fields'; - height?: Maybe; +export type Query_RootBlockArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by avg() on columns of table "registered_reactions" */ -export type Registered_Reactions_Avg_Order_By = { - height?: Maybe; -}; -/** Boolean expression to filter rows from the table "registered_reactions". All fields are combined with a logical 'AND'. */ -export type Registered_Reactions_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - owner_address?: Maybe; - profile?: Maybe; - short_code?: Maybe; - subspace?: Maybe; - value?: Maybe; +export type Query_RootBlock_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate max on columns */ -export type Registered_Reactions_Max_Fields = { - __typename?: 'registered_reactions_max_fields'; - height?: Maybe; - owner_address?: Maybe; - short_code?: Maybe; - subspace?: Maybe; - value?: Maybe; -}; -/** order by max() on columns of table "registered_reactions" */ -export type Registered_Reactions_Max_Order_By = { - height?: Maybe; - owner_address?: Maybe; - short_code?: Maybe; - subspace?: Maybe; - value?: Maybe; +export type Query_RootBlock_By_PkArgs = { + height: Scalars['bigint']; }; -/** aggregate min on columns */ -export type Registered_Reactions_Min_Fields = { - __typename?: 'registered_reactions_min_fields'; - height?: Maybe; - owner_address?: Maybe; - short_code?: Maybe; - subspace?: Maybe; - value?: Maybe; -}; -/** order by min() on columns of table "registered_reactions" */ -export type Registered_Reactions_Min_Order_By = { - height?: Maybe; - owner_address?: Maybe; - short_code?: Maybe; - subspace?: Maybe; - value?: Maybe; +export type Query_RootCommunity_PoolArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** Ordering options when selecting data from "registered_reactions". */ -export type Registered_Reactions_Order_By = { - height?: Maybe; - owner_address?: Maybe; - profile?: Maybe; - short_code?: Maybe; - subspace?: Maybe; - value?: Maybe; + +export type Query_RootCommunity_Pool_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** select columns of table "registered_reactions" */ -export enum Registered_Reactions_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - OwnerAddress = 'owner_address', - /** column name */ - ShortCode = 'short_code', - /** column name */ - Subspace = 'subspace', - /** column name */ - Value = 'value' -} -/** aggregate stddev on columns */ -export type Registered_Reactions_Stddev_Fields = { - __typename?: 'registered_reactions_stddev_fields'; - height?: Maybe; +export type Query_RootCosmwasm_Clear_AdminArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by stddev() on columns of table "registered_reactions" */ -export type Registered_Reactions_Stddev_Order_By = { - height?: Maybe; -}; -/** aggregate stddev_pop on columns */ -export type Registered_Reactions_Stddev_Pop_Fields = { - __typename?: 'registered_reactions_stddev_pop_fields'; - height?: Maybe; +export type Query_RootCosmwasm_Clear_Admin_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by stddev_pop() on columns of table "registered_reactions" */ -export type Registered_Reactions_Stddev_Pop_Order_By = { - height?: Maybe; -}; -/** aggregate stddev_samp on columns */ -export type Registered_Reactions_Stddev_Samp_Fields = { - __typename?: 'registered_reactions_stddev_samp_fields'; - height?: Maybe; +export type Query_RootCosmwasm_Clear_Admin_By_PkArgs = { + index: Scalars['bigint']; + transaction_hash: Scalars['String']; }; -/** order by stddev_samp() on columns of table "registered_reactions" */ -export type Registered_Reactions_Stddev_Samp_Order_By = { - height?: Maybe; -}; -/** aggregate sum on columns */ -export type Registered_Reactions_Sum_Fields = { - __typename?: 'registered_reactions_sum_fields'; - height?: Maybe; +export type Query_RootCosmwasm_ExecuteArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by sum() on columns of table "registered_reactions" */ -export type Registered_Reactions_Sum_Order_By = { - height?: Maybe; -}; -/** aggregate var_pop on columns */ -export type Registered_Reactions_Var_Pop_Fields = { - __typename?: 'registered_reactions_var_pop_fields'; - height?: Maybe; +export type Query_RootCosmwasm_Execute_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by var_pop() on columns of table "registered_reactions" */ -export type Registered_Reactions_Var_Pop_Order_By = { - height?: Maybe; -}; -/** aggregate var_samp on columns */ -export type Registered_Reactions_Var_Samp_Fields = { - __typename?: 'registered_reactions_var_samp_fields'; - height?: Maybe; +export type Query_RootCosmwasm_Execute_By_PkArgs = { + index: Scalars['bigint']; + transaction_hash: Scalars['String']; }; -/** order by var_samp() on columns of table "registered_reactions" */ -export type Registered_Reactions_Var_Samp_Order_By = { - height?: Maybe; -}; -/** aggregate variance on columns */ -export type Registered_Reactions_Variance_Fields = { - __typename?: 'registered_reactions_variance_fields'; - height?: Maybe; +export type Query_RootCosmwasm_InstantiateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by variance() on columns of table "registered_reactions" */ -export type Registered_Reactions_Variance_Order_By = { - height?: Maybe; -}; -export type Self_Delegations_Args = { - validator_row?: Maybe; +export type Query_RootCosmwasm_Instantiate_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** columns and relationships of "slashing_params" */ -export type Slashing_Params = { - __typename?: 'slashing_params'; - height: Scalars['bigint']; - one_row_id: Scalars['Boolean']; - params: Scalars['jsonb']; + +export type Query_RootCosmwasm_Instantiate_By_PkArgs = { + index: Scalars['bigint']; + transaction_hash: Scalars['String']; }; -/** columns and relationships of "slashing_params" */ -export type Slashing_ParamsParamsArgs = { - path?: Maybe; +export type Query_RootCosmwasm_MigrateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregated selection of "slashing_params" */ -export type Slashing_Params_Aggregate = { - __typename?: 'slashing_params_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; -/** aggregate fields of "slashing_params" */ -export type Slashing_Params_Aggregate_Fields = { - __typename?: 'slashing_params_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; +export type Query_RootCosmwasm_Migrate_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate fields of "slashing_params" */ -export type Slashing_Params_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +export type Query_RootCosmwasm_Migrate_By_PkArgs = { + index: Scalars['bigint']; + transaction_hash: Scalars['String']; }; -/** aggregate avg on columns */ -export type Slashing_Params_Avg_Fields = { - __typename?: 'slashing_params_avg_fields'; - height?: Maybe; -}; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; +export type Query_RootCosmwasm_StoreArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate max on columns */ -export type Slashing_Params_Max_Fields = { - __typename?: 'slashing_params_max_fields'; - height?: Maybe; -}; -/** aggregate min on columns */ -export type Slashing_Params_Min_Fields = { - __typename?: 'slashing_params_min_fields'; - height?: Maybe; +export type Query_RootCosmwasm_Store_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** Ordering options when selecting data from "slashing_params". */ -export type Slashing_Params_Order_By = { - height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; + +export type Query_RootCosmwasm_Store_By_PkArgs = { + index: Scalars['bigint']; + transaction_hash: Scalars['String']; }; -/** select columns of table "slashing_params" */ -export enum Slashing_Params_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - OneRowId = 'one_row_id', - /** column name */ - Params = 'params' -} -/** aggregate stddev on columns */ -export type Slashing_Params_Stddev_Fields = { - __typename?: 'slashing_params_stddev_fields'; - height?: Maybe; +export type Query_RootCosmwasm_Update_AdminArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Slashing_Params_Stddev_Pop_Fields = { - __typename?: 'slashing_params_stddev_pop_fields'; - height?: Maybe; -}; -/** aggregate stddev_samp on columns */ -export type Slashing_Params_Stddev_Samp_Fields = { - __typename?: 'slashing_params_stddev_samp_fields'; - height?: Maybe; +export type Query_RootCosmwasm_Update_Admin_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate sum on columns */ -export type Slashing_Params_Sum_Fields = { - __typename?: 'slashing_params_sum_fields'; - height?: Maybe; -}; -/** aggregate var_pop on columns */ -export type Slashing_Params_Var_Pop_Fields = { - __typename?: 'slashing_params_var_pop_fields'; - height?: Maybe; +export type Query_RootCosmwasm_Update_Admin_By_PkArgs = { + index: Scalars['bigint']; + transaction_hash: Scalars['String']; }; -/** aggregate var_samp on columns */ -export type Slashing_Params_Var_Samp_Fields = { - __typename?: 'slashing_params_var_samp_fields'; - height?: Maybe; -}; -/** aggregate variance on columns */ -export type Slashing_Params_Variance_Fields = { - __typename?: 'slashing_params_variance_fields'; - height?: Maybe; +export type Query_RootDistribution_ParamsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** Boolean expression to compare columns of type "smallint". All fields are combined with logical 'AND'. */ -export type Smallint_Comparison_Exp = { - _eq?: Maybe; - _gt?: Maybe; - _gte?: Maybe; - _in?: Maybe>; - _is_null?: Maybe; - _lt?: Maybe; - _lte?: Maybe; - _neq?: Maybe; - _nin?: Maybe>; +export type Query_RootDistribution_Params_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** columns and relationships of "staking_params" */ -export type Staking_Params = { - __typename?: 'staking_params'; - height: Scalars['bigint']; + +export type Query_RootDistribution_Params_By_PkArgs = { one_row_id: Scalars['Boolean']; - params: Scalars['jsonb']; }; -/** columns and relationships of "staking_params" */ -export type Staking_ParamsParamsArgs = { - path?: Maybe; +export type Query_RootDouble_Sign_EvidenceArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregated selection of "staking_params" */ -export type Staking_Params_Aggregate = { - __typename?: 'staking_params_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; -/** aggregate fields of "staking_params" */ -export type Staking_Params_Aggregate_Fields = { - __typename?: 'staking_params_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; +export type Query_RootDouble_Sign_Evidence_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate fields of "staking_params" */ -export type Staking_Params_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** aggregate avg on columns */ -export type Staking_Params_Avg_Fields = { - __typename?: 'staking_params_avg_fields'; - height?: Maybe; +export type Query_RootDouble_Sign_VoteArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; -}; -/** aggregate max on columns */ -export type Staking_Params_Max_Fields = { - __typename?: 'staking_params_max_fields'; - height?: Maybe; +export type Query_RootDouble_Sign_Vote_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate min on columns */ -export type Staking_Params_Min_Fields = { - __typename?: 'staking_params_min_fields'; - height?: Maybe; -}; -/** Ordering options when selecting data from "staking_params". */ -export type Staking_Params_Order_By = { - height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; +export type Query_RootDouble_Sign_Vote_By_PkArgs = { + id: Scalars['Int']; }; -/** select columns of table "staking_params" */ -export enum Staking_Params_Select_Column { - /** column name */ - Height = 'height', - /** column name */ - OneRowId = 'one_row_id', - /** column name */ - Params = 'params' -} -/** aggregate stddev on columns */ -export type Staking_Params_Stddev_Fields = { - __typename?: 'staking_params_stddev_fields'; - height?: Maybe; +export type Query_RootFee_Grant_AllowanceArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Staking_Params_Stddev_Pop_Fields = { - __typename?: 'staking_params_stddev_pop_fields'; - height?: Maybe; -}; -/** aggregate stddev_samp on columns */ -export type Staking_Params_Stddev_Samp_Fields = { - __typename?: 'staking_params_stddev_samp_fields'; - height?: Maybe; +export type Query_RootFee_Grant_Allowance_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate sum on columns */ -export type Staking_Params_Sum_Fields = { - __typename?: 'staking_params_sum_fields'; - height?: Maybe; -}; -/** aggregate var_pop on columns */ -export type Staking_Params_Var_Pop_Fields = { - __typename?: 'staking_params_var_pop_fields'; - height?: Maybe; +export type Query_RootFee_Grant_Allowance_By_PkArgs = { + id: Scalars['Int']; }; -/** aggregate var_samp on columns */ -export type Staking_Params_Var_Samp_Fields = { - __typename?: 'staking_params_var_samp_fields'; - height?: Maybe; -}; -/** aggregate variance on columns */ -export type Staking_Params_Variance_Fields = { - __typename?: 'staking_params_variance_fields'; - height?: Maybe; +export type Query_RootGenesisArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** columns and relationships of "staking_pool" */ -export type Staking_Pool = { - __typename?: 'staking_pool'; - bonded_tokens: Scalars['bigint']; - height: Scalars['bigint']; - not_bonded_tokens: Scalars['bigint']; -}; -/** aggregated selection of "staking_pool" */ -export type Staking_Pool_Aggregate = { - __typename?: 'staking_pool_aggregate'; - aggregate?: Maybe; - nodes: Array; +export type Query_RootGenesis_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate fields of "staking_pool" */ -export type Staking_Pool_Aggregate_Fields = { - __typename?: 'staking_pool_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; + +export type Query_RootGov_ParamsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate fields of "staking_pool" */ -export type Staking_Pool_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +export type Query_RootGov_Params_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate avg on columns */ -export type Staking_Pool_Avg_Fields = { - __typename?: 'staking_pool_avg_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; + +export type Query_RootGov_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; + +export type Query_RootInflationArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate max on columns */ -export type Staking_Pool_Max_Fields = { - __typename?: 'staking_pool_max_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; + +export type Query_RootInflation_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate min on columns */ -export type Staking_Pool_Min_Fields = { - __typename?: 'staking_pool_min_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; + +export type Query_RootMessageArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** Ordering options when selecting data from "staking_pool". */ -export type Staking_Pool_Order_By = { - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; + +export type Query_RootMessage_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** 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' -} -/** aggregate stddev on columns */ -export type Staking_Pool_Stddev_Fields = { - __typename?: 'staking_pool_stddev_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; +export type Query_RootMessages_By_AddressArgs = { + args: Messages_By_Address_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Staking_Pool_Stddev_Pop_Fields = { - __typename?: 'staking_pool_stddev_pop_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; + +export type Query_RootMessages_By_Address_AggregateArgs = { + args: Messages_By_Address_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate stddev_samp on columns */ -export type Staking_Pool_Stddev_Samp_Fields = { - __typename?: 'staking_pool_stddev_samp_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; + +export type Query_RootMint_ParamsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate sum on columns */ -export type Staking_Pool_Sum_Fields = { - __typename?: 'staking_pool_sum_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; + +export type Query_RootMint_Params_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate var_pop on columns */ -export type Staking_Pool_Var_Pop_Fields = { - __typename?: 'staking_pool_var_pop_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; + +export type Query_RootMint_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; }; -/** aggregate var_samp on columns */ -export type Staking_Pool_Var_Samp_Fields = { - __typename?: 'staking_pool_var_samp_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; + +export type Query_RootModulesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate variance on columns */ -export type Staking_Pool_Variance_Fields = { - __typename?: 'staking_pool_variance_fields'; - bonded_tokens?: Maybe; - height?: Maybe; - not_bonded_tokens?: Maybe; + +export type Query_RootModules_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_Root = { - __typename?: 'subscription_root'; - /** fetch data from the table: "account" */ - account: Array; - /** fetch aggregated fields from the table: "account" */ - account_aggregate: Account_Aggregate; - /** fetch data from the table: "account_balance" */ - account_balance: Array; - /** fetch aggregated fields from the table: "account_balance" */ - account_balance_aggregate: Account_Balance_Aggregate; - /** fetch data from the table: "account_balance" using primary key columns */ - account_balance_by_pk?: Maybe; - /** fetch data from the table: "account_balance_history" */ - account_balance_history: Array; - /** fetch aggregated fields from the table: "account_balance_history" */ - account_balance_history_aggregate: Account_Balance_History_Aggregate; - /** execute function "account_balance_history_tokens_prices" which returns "token_price_history" */ - account_balance_history_tokens_prices: Array; - /** execute function "account_balance_history_tokens_prices" and query aggregates on result of table type "token_price_history" */ - account_balance_history_tokens_prices_aggregate: Token_Price_History_Aggregate; - /** execute function "account_balance_tokens_prices" which returns "token_price" */ - account_balance_tokens_prices: Array; - /** execute function "account_balance_tokens_prices" and query aggregates on result of table type "token_price" */ - account_balance_tokens_prices_aggregate: Token_Price_Aggregate; - /** fetch data from the table: "account" using primary key columns */ - account_by_pk?: Maybe; - /** fetch data from the table: "application_link" */ - application_link: Array; - /** fetch aggregated fields from the table: "application_link" */ - application_link_aggregate: Application_Link_Aggregate; - /** fetch data from the table: "application_link" using primary key columns */ - application_link_by_pk?: Maybe; - /** fetch data from the table: "application_link_oracle_request" */ - application_link_oracle_request: Array; - /** fetch aggregated fields from the table: "application_link_oracle_request" */ - application_link_oracle_request_aggregate: Application_Link_Oracle_Request_Aggregate; - /** fetch data from the table: "application_link_oracle_request" using primary key columns */ - application_link_oracle_request_by_pk?: Maybe; - /** fetch data from the table: "average_block_time_from_genesis" */ - average_block_time_from_genesis: Array; - /** fetch aggregated fields from the table: "average_block_time_from_genesis" */ - average_block_time_from_genesis_aggregate: Average_Block_Time_From_Genesis_Aggregate; - /** fetch data from the table: "average_block_time_per_day" */ - average_block_time_per_day: Array; - /** fetch aggregated fields from the table: "average_block_time_per_day" */ - average_block_time_per_day_aggregate: Average_Block_Time_Per_Day_Aggregate; - /** fetch data from the table: "average_block_time_per_hour" */ - average_block_time_per_hour: Array; - /** fetch aggregated fields from the table: "average_block_time_per_hour" */ - average_block_time_per_hour_aggregate: Average_Block_Time_Per_Hour_Aggregate; - /** fetch data from the table: "average_block_time_per_minute" */ - average_block_time_per_minute: Array; - /** fetch aggregated fields from the table: "average_block_time_per_minute" */ - average_block_time_per_minute_aggregate: Average_Block_Time_Per_Minute_Aggregate; - /** fetch data from the table: "block" */ - block: Array; - /** fetch aggregated fields from the table: "block" */ - block_aggregate: Block_Aggregate; - /** fetch data from the table: "block" using primary key columns */ - block_by_pk?: Maybe; - /** fetch data from the table: "chain_link" */ - chain_link: Array; - /** fetch aggregated fields from the table: "chain_link" */ - chain_link_aggregate: Chain_Link_Aggregate; - /** fetch data from the table: "chain_link" using primary key columns */ - chain_link_by_pk?: Maybe; - /** fetch data from the table: "chain_link_chain_config" */ - chain_link_chain_config: Array; - /** fetch aggregated fields from the table: "chain_link_chain_config" */ - chain_link_chain_config_aggregate: Chain_Link_Chain_Config_Aggregate; - /** fetch data from the table: "chain_link_chain_config" using primary key columns */ - chain_link_chain_config_by_pk?: Maybe; - /** fetch data from the table: "chain_link_proof" */ - chain_link_proof: Array; - /** fetch aggregated fields from the table: "chain_link_proof" */ - chain_link_proof_aggregate: Chain_Link_Proof_Aggregate; - /** fetch data from the table: "community_pool" */ - community_pool: Array; - /** fetch aggregated fields from the table: "community_pool" */ - community_pool_aggregate: Community_Pool_Aggregate; - /** fetch data from the table: "delegation" */ - delegation: Array; - /** fetch aggregated fields from the table: "delegation" */ - delegation_aggregate: Delegation_Aggregate; - /** fetch data from the table: "delegation" using primary key columns */ - delegation_by_pk?: Maybe; - /** fetch data from the table: "delegation_reward" */ - delegation_reward: Array; - /** fetch aggregated fields from the table: "delegation_reward" */ - delegation_reward_aggregate: Delegation_Reward_Aggregate; - /** fetch data from the table: "distribution_params" */ - distribution_params: Array; - /** fetch aggregated fields from the table: "distribution_params" */ - distribution_params_aggregate: Distribution_Params_Aggregate; - /** fetch data from the table: "distribution_params" using primary key columns */ - distribution_params_by_pk?: Maybe; - /** fetch data from the table: "double_sign_evidence" */ - double_sign_evidence: Array; - /** fetch aggregated fields from the table: "double_sign_evidence" */ - double_sign_evidence_aggregate: Double_Sign_Evidence_Aggregate; - /** fetch data from the table: "double_sign_vote" */ - double_sign_vote: Array; - /** fetch aggregated fields from the table: "double_sign_vote" */ - double_sign_vote_aggregate: Double_Sign_Vote_Aggregate; - /** fetch data from the table: "double_sign_vote" using primary key columns */ - double_sign_vote_by_pk?: Maybe; - /** An array relationship */ - dtag_transfer_requests: Array; - /** An aggregate relationship */ - dtag_transfer_requests_aggregate: Dtag_Transfer_Requests_Aggregate; - /** fetch data from the table: "fee_grant_allowance" */ - fee_grant_allowance: Array; - /** fetch aggregated fields from the table: "fee_grant_allowance" */ - fee_grant_allowance_aggregate: Fee_Grant_Allowance_Aggregate; - /** fetch data from the table: "fee_grant_allowance" using primary key columns */ - fee_grant_allowance_by_pk?: Maybe; - /** fetch data from the table: "genesis" */ - genesis: Array; - /** fetch aggregated fields from the table: "genesis" */ - genesis_aggregate: Genesis_Aggregate; - /** fetch data from the table: "gov_params" */ - gov_params: Array; - /** fetch aggregated fields from the table: "gov_params" */ - gov_params_aggregate: Gov_Params_Aggregate; - /** fetch data from the table: "gov_params" using primary key columns */ - gov_params_by_pk?: Maybe; - /** fetch data from the table: "inflation" */ - inflation: Array; - /** fetch aggregated fields from the table: "inflation" */ - inflation_aggregate: Inflation_Aggregate; - /** fetch data from the table: "message" */ - message: Array; - /** fetch aggregated fields from the table: "message" */ - message_aggregate: Message_Aggregate; - /** execute function "messages_by_address" which returns "message" */ - messages_by_address: Array; - /** execute function "messages_by_address" and query aggregates on result of table type "message" */ - messages_by_address_aggregate: Message_Aggregate; - /** fetch data from the table: "mint_params" */ - mint_params: Array; - /** fetch aggregated fields from the table: "mint_params" */ - mint_params_aggregate: Mint_Params_Aggregate; - /** fetch data from the table: "mint_params" using primary key columns */ - mint_params_by_pk?: Maybe; - /** fetch data from the table: "modules" */ - modules: Array; - /** fetch aggregated fields from the table: "modules" */ - modules_aggregate: Modules_Aggregate; - /** fetch data from the table: "modules" using primary key columns */ - modules_by_pk?: Maybe; - /** fetch data from the table: "poll" */ - poll: Array; - /** fetch aggregated fields from the table: "poll" */ - poll_aggregate: Poll_Aggregate; - /** fetch data from the table: "poll_answer" */ - poll_answer: Array; - /** fetch aggregated fields from the table: "poll_answer" */ - poll_answer_aggregate: Poll_Answer_Aggregate; - /** fetch data from the table: "poll" using primary key columns */ - poll_by_pk?: Maybe; - /** fetch data from the table: "post" */ - post: Array; - /** fetch aggregated fields from the table: "post" */ - post_aggregate: Post_Aggregate; - /** fetch data from the table: "post_attachment" */ - post_attachment: Array; - /** fetch aggregated fields from the table: "post_attachment" */ - post_attachment_aggregate: Post_Attachment_Aggregate; - /** fetch data from the table: "post_attachment" using primary key columns */ - post_attachment_by_pk?: Maybe; - /** fetch data from the table: "post_attachment_tag" */ - post_attachment_tag: Array; - /** fetch aggregated fields from the table: "post_attachment_tag" */ - post_attachment_tag_aggregate: Post_Attachment_Tag_Aggregate; - /** fetch data from the table: "post_attribute" */ - post_attribute: Array; - /** fetch aggregated fields from the table: "post_attribute" */ - post_attribute_aggregate: Post_Attribute_Aggregate; - /** fetch data from the table: "post" using primary key columns */ - post_by_pk?: Maybe; - /** fetch data from the table: "post_reaction" */ - post_reaction: Array; - /** fetch aggregated fields from the table: "post_reaction" */ - post_reaction_aggregate: Post_Reaction_Aggregate; - /** fetch data from the table: "post_report" */ - post_report: Array; - /** fetch aggregated fields from the table: "post_report" */ - post_report_aggregate: Post_Report_Aggregate; - /** 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: "profile" */ - profile: Array; - /** fetch aggregated fields from the table: "profile" */ - profile_aggregate: Profile_Aggregate; - /** fetch data from the table: "profile" using primary key columns */ - profile_by_pk?: Maybe; - /** fetch data from the table: "profile_relationship" */ - profile_relationship: Array; - /** fetch aggregated fields from the table: "profile_relationship" */ - profile_relationship_aggregate: Profile_Relationship_Aggregate; - /** fetch data from the table: "profiles_params" */ - profiles_params: Array; - /** 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 aggregated fields from the table: "proposal_deposit" */ - proposal_deposit_aggregate: Proposal_Deposit_Aggregate; - /** fetch data from the table: "proposal_staking_pool_snapshot" */ - proposal_staking_pool_snapshot: Array; - /** fetch aggregated fields from the table: "proposal_staking_pool_snapshot" */ - proposal_staking_pool_snapshot_aggregate: Proposal_Staking_Pool_Snapshot_Aggregate; - /** 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 aggregated fields from the table: "proposal_tally_result" */ - proposal_tally_result_aggregate: Proposal_Tally_Result_Aggregate; - /** 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 aggregated fields from the table: "proposal_validator_status_snapshot" */ - proposal_validator_status_snapshot_aggregate: Proposal_Validator_Status_Snapshot_Aggregate; - /** fetch data from the table: "proposal_validator_status_snapshot" using primary key columns */ - proposal_validator_status_snapshot_by_pk?: Maybe; - /** fetch data from the table: "proposal_vote" */ - proposal_vote: Array; - /** fetch aggregated fields from the table: "proposal_vote" */ - proposal_vote_aggregate: Proposal_Vote_Aggregate; - /** fetch data from the table: "redelegation" */ - redelegation: Array; - /** fetch aggregated fields from the table: "redelegation" */ - redelegation_aggregate: Redelegation_Aggregate; - /** An array relationship */ - registered_reactions: Array; - /** An aggregate relationship */ - registered_reactions_aggregate: Registered_Reactions_Aggregate; - /** execute function "self_delegations" which returns "delegation" */ - self_delegations: Array; - /** execute function "self_delegations" and query aggregates on result of table type "delegation" */ - self_delegations_aggregate: Delegation_Aggregate; - /** fetch data from the table: "slashing_params" */ - slashing_params: Array; - /** fetch aggregated fields from the table: "slashing_params" */ - slashing_params_aggregate: Slashing_Params_Aggregate; - /** fetch data from the table: "slashing_params" using primary key columns */ - slashing_params_by_pk?: Maybe; - /** fetch data from the table: "staking_params" */ - staking_params: Array; - /** fetch aggregated fields from the table: "staking_params" */ - staking_params_aggregate: Staking_Params_Aggregate; - /** fetch data from the table: "staking_params" using primary key columns */ - staking_params_by_pk?: Maybe; - /** fetch data from the table: "staking_pool" */ - staking_pool: Array; - /** fetch aggregated fields from the table: "staking_pool" */ - staking_pool_aggregate: Staking_Pool_Aggregate; - /** fetch data from the table: "supply" */ - supply: Array; - /** fetch aggregated fields from the table: "supply" */ - supply_aggregate: Supply_Aggregate; - /** fetch data from the table: "token" */ - token: Array; - /** fetch aggregated fields from the table: "token" */ - token_aggregate: Token_Aggregate; - /** fetch data from the table: "token_price" */ - token_price: Array; - /** fetch aggregated fields from the table: "token_price" */ - token_price_aggregate: Token_Price_Aggregate; - /** fetch data from the table: "token_price" using primary key columns */ - token_price_by_pk?: Maybe; - /** fetch data from the table: "token_price_history" */ - token_price_history: Array; - /** fetch aggregated fields from the table: "token_price_history" */ - token_price_history_aggregate: Token_Price_History_Aggregate; - /** fetch data from the table: "token_unit" */ - token_unit: Array; - /** fetch aggregated fields from the table: "token_unit" */ - token_unit_aggregate: Token_Unit_Aggregate; - /** fetch data from the table: "transaction" */ - transaction: Array; - /** fetch aggregated fields from the table: "transaction" */ - transaction_aggregate: Transaction_Aggregate; - /** fetch data from the table: "transaction" using primary key columns */ - transaction_by_pk?: Maybe; - /** fetch data from the table: "unbonding_delegation" */ - unbonding_delegation: Array; - /** fetch aggregated fields from the table: "unbonding_delegation" */ - unbonding_delegation_aggregate: Unbonding_Delegation_Aggregate; - /** fetch data from the table: "user_block" */ - user_block: Array; - /** fetch aggregated fields from the table: "user_block" */ - user_block_aggregate: User_Block_Aggregate; - /** fetch data from the table: "user_poll_answer" */ - user_poll_answer: Array; - /** fetch aggregated fields from the table: "user_poll_answer" */ - user_poll_answer_aggregate: User_Poll_Answer_Aggregate; - /** fetch data from the table: "validator" */ - validator: Array; - /** fetch aggregated fields from the table: "validator" */ - validator_aggregate: Validator_Aggregate; - /** 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 aggregated fields from the table: "validator_commission" */ - validator_commission_aggregate: Validator_Commission_Aggregate; - /** fetch data from the table: "validator_commission_amount" */ - validator_commission_amount: Array; - /** fetch aggregated fields from the table: "validator_commission_amount" */ - validator_commission_amount_aggregate: Validator_Commission_Amount_Aggregate; - /** fetch data from the table: "validator_commission_amount" using primary key columns */ - validator_commission_amount_by_pk?: Maybe; - /** 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 aggregated fields from the table: "validator_description" */ - validator_description_aggregate: Validator_Description_Aggregate; - /** 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 aggregated fields from the table: "validator_info" */ - validator_info_aggregate: Validator_Info_Aggregate; - /** 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 aggregated fields from the table: "validator_signing_info" */ - validator_signing_info_aggregate: Validator_Signing_Info_Aggregate; - /** 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 aggregated fields from the table: "vesting_account" */ - vesting_account_aggregate: Vesting_Account_Aggregate; - /** fetch data from the table: "vesting_account" using primary key columns */ - vesting_account_by_pk?: Maybe; - /** fetch data from the table: "vesting_period" */ - vesting_period: Array; - /** fetch aggregated fields from the table: "vesting_period" */ - vesting_period_aggregate: Vesting_Period_Aggregate; + +export type Query_RootModules_By_PkArgs = { + module_name: Scalars['String']; }; -export type Subscription_RootAccountArgs = { - distinct_on?: Maybe>; +export type Query_RootPre_CommitArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAccount_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootPre_Commit_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAccount_BalanceArgs = { - distinct_on?: Maybe>; +export type Query_RootProposalArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAccount_Balance_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootProposal_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAccount_Balance_By_PkArgs = { - address: Scalars['String']; +export type Query_RootProposal_By_PkArgs = { + id: Scalars['Int']; }; -export type Subscription_RootAccount_Balance_HistoryArgs = { - distinct_on?: Maybe>; +export type Query_RootProposal_DepositArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAccount_Balance_History_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootProposal_Deposit_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAccount_Balance_History_Tokens_PricesArgs = { - args: Account_Balance_History_Tokens_Prices_Args; - distinct_on?: Maybe>; +export type Query_RootProposal_Staking_Pool_SnapshotArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAccount_Balance_History_Tokens_Prices_AggregateArgs = { - args: Account_Balance_History_Tokens_Prices_Args; - distinct_on?: Maybe>; +export type Query_RootProposal_Staking_Pool_Snapshot_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAccount_Balance_Tokens_PricesArgs = { - args: Account_Balance_Tokens_Prices_Args; - distinct_on?: Maybe>; +export type Query_RootProposal_Staking_Pool_Snapshot_By_PkArgs = { + proposal_id: Scalars['Int']; +}; + + +export type Query_RootProposal_Tally_ResultArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAccount_Balance_Tokens_Prices_AggregateArgs = { - args: Account_Balance_Tokens_Prices_Args; - distinct_on?: Maybe>; +export type Query_RootProposal_Tally_Result_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAccount_By_PkArgs = { - address: Scalars['String']; +export type Query_RootProposal_Tally_Result_By_PkArgs = { + proposal_id: Scalars['Int']; }; -export type Subscription_RootApplication_LinkArgs = { - distinct_on?: Maybe>; +export type Query_RootProposal_Validator_Status_SnapshotArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootApplication_Link_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootProposal_Validator_Status_Snapshot_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootApplication_Link_By_PkArgs = { +export type Query_RootProposal_Validator_Status_Snapshot_By_PkArgs = { id: Scalars['Int']; }; -export type Subscription_RootApplication_Link_Oracle_RequestArgs = { - distinct_on?: Maybe>; +export type Query_RootProposal_VoteArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootApplication_Link_Oracle_Request_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootProposal_Vote_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootApplication_Link_Oracle_Request_By_PkArgs = { - id: Scalars['Int']; +export type Query_RootSlashing_ParamsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAverage_Block_Time_From_GenesisArgs = { - distinct_on?: Maybe>; +export type Query_RootSlashing_Params_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAverage_Block_Time_From_Genesis_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootSlashing_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; +}; + + +export type Query_RootStaking_ParamsArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAverage_Block_Time_Per_DayArgs = { - distinct_on?: Maybe>; +export type Query_RootStaking_Params_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAverage_Block_Time_Per_Day_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootStaking_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; +}; + + +export type Query_RootStaking_PoolArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAverage_Block_Time_Per_HourArgs = { - distinct_on?: Maybe>; +export type Query_RootStaking_Pool_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAverage_Block_Time_Per_Hour_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootSupplyArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAverage_Block_Time_Per_MinuteArgs = { - distinct_on?: Maybe>; +export type Query_RootSupply_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootAverage_Block_Time_Per_Minute_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootTokenArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootBlockArgs = { - distinct_on?: Maybe>; +export type Query_RootToken_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootBlock_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootToken_PriceArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootBlock_By_PkArgs = { - height: Scalars['bigint']; +export type Query_RootToken_Price_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootToken_Price_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Query_RootToken_Price_HistoryArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootChain_LinkArgs = { - distinct_on?: Maybe>; +export type Query_RootToken_Price_History_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootChain_Link_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootToken_UnitArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootChain_Link_By_PkArgs = { - id: Scalars['Int']; +export type Query_RootToken_Unit_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootChain_Link_Chain_ConfigArgs = { - distinct_on?: Maybe>; +export type Query_RootTransactionArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootChain_Link_Chain_Config_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootTransaction_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootChain_Link_Chain_Config_By_PkArgs = { - id: Scalars['Int']; +export type Query_RootTransaction_By_PkArgs = { + hash: Scalars['String']; }; -export type Subscription_RootChain_Link_ProofArgs = { - distinct_on?: Maybe>; +export type Query_RootValidatorArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootChain_Link_Proof_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootCommunity_PoolArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_By_PkArgs = { + consensus_address: Scalars['String']; +}; + + +export type Query_RootValidator_CommissionArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootCommunity_Pool_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_Commission_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootValidator_Commission_By_PkArgs = { + validator_address: Scalars['String']; }; -export type Subscription_RootDelegationArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_DescriptionArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootDelegation_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_Description_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootDelegation_By_PkArgs = { - id: Scalars['Int']; +export type Query_RootValidator_Description_By_PkArgs = { + validator_address: Scalars['String']; }; -export type Subscription_RootDelegation_RewardArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_InfoArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootDelegation_Reward_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_Info_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootDistribution_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +export type Query_RootValidator_Info_By_PkArgs = { + consensus_address: Scalars['String']; }; -export type Subscription_RootDistribution_Params_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_Signing_InfoArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootDistribution_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootDouble_Sign_EvidenceArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_Signing_Info_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootDouble_Sign_Evidence_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +export type Query_RootValidator_Signing_Info_By_PkArgs = { + validator_address: Scalars['String']; }; -export type Subscription_RootDouble_Sign_VoteArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_StatusArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootDouble_Sign_Vote_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_Status_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootDouble_Sign_Vote_By_PkArgs = { - id: Scalars['Int']; +export type Query_RootValidator_Status_By_PkArgs = { + validator_address: Scalars['String']; }; -export type Subscription_RootDtag_Transfer_RequestsArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_Voting_PowerArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootDtag_Transfer_Requests_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_Voting_Power_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootFee_Grant_AllowanceArgs = { - distinct_on?: Maybe>; +export type Query_RootValidator_Voting_Power_By_PkArgs = { + validator_address: Scalars['String']; +}; + + +export type Query_RootVesting_AccountArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootFee_Grant_Allowance_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootVesting_Account_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootFee_Grant_Allowance_By_PkArgs = { +export type Query_RootVesting_Account_By_PkArgs = { id: Scalars['Int']; }; -export type Subscription_RootGenesisArgs = { - distinct_on?: Maybe>; +export type Query_RootVesting_PeriodArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootGenesis_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootVesting_Period_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; - -export type Subscription_RootGov_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** columns and relationships of "slashing_params" */ +export type Slashing_Params = { + __typename?: 'slashing_params'; + height: Scalars['bigint']; + one_row_id: Scalars['Boolean']; + params: Scalars['jsonb']; }; -export type Subscription_RootGov_Params_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** columns and relationships of "slashing_params" */ +export type Slashing_ParamsParamsArgs = { + path?: Maybe; }; +/** aggregated selection of "slashing_params" */ +export type Slashing_Params_Aggregate = { + __typename?: 'slashing_params_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; -export type Subscription_RootGov_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; +/** aggregate fields of "slashing_params" */ +export type Slashing_Params_Aggregate_Fields = { + __typename?: 'slashing_params_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; }; -export type Subscription_RootInflationArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate fields of "slashing_params" */ +export type Slashing_Params_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; +/** aggregate avg on columns */ +export type Slashing_Params_Avg_Fields = { + __typename?: 'slashing_params_avg_fields'; + height?: Maybe; +}; -export type Subscription_RootInflation_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + height?: Maybe; + one_row_id?: Maybe; + params?: Maybe; }; +/** aggregate max on columns */ +export type Slashing_Params_Max_Fields = { + __typename?: 'slashing_params_max_fields'; + height?: Maybe; +}; -export type Subscription_RootMessageArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate min on columns */ +export type Slashing_Params_Min_Fields = { + __typename?: 'slashing_params_min_fields'; + height?: Maybe; }; +/** Ordering options when selecting data from "slashing_params". */ +export type Slashing_Params_Order_By = { + height?: Maybe; + one_row_id?: Maybe; + params?: Maybe; +}; -export type Subscription_RootMessage_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** select columns of table "slashing_params" */ +export enum Slashing_Params_Select_Column { + /** column name */ + Height = 'height', + /** column name */ + OneRowId = 'one_row_id', + /** column name */ + Params = 'params' +} + +/** aggregate stddev on columns */ +export type Slashing_Params_Stddev_Fields = { + __typename?: 'slashing_params_stddev_fields'; + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Slashing_Params_Stddev_Pop_Fields = { + __typename?: 'slashing_params_stddev_pop_fields'; + height?: Maybe; }; +/** aggregate stddev_samp on columns */ +export type Slashing_Params_Stddev_Samp_Fields = { + __typename?: 'slashing_params_stddev_samp_fields'; + height?: Maybe; +}; -export type Subscription_RootMessages_By_AddressArgs = { - args: Messages_By_Address_Args; - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate sum on columns */ +export type Slashing_Params_Sum_Fields = { + __typename?: 'slashing_params_sum_fields'; + height?: Maybe; }; - -export type Subscription_RootMessages_By_Address_AggregateArgs = { - args: Messages_By_Address_Args; - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate var_pop on columns */ +export type Slashing_Params_Var_Pop_Fields = { + __typename?: 'slashing_params_var_pop_fields'; + height?: Maybe; }; +/** aggregate var_samp on columns */ +export type Slashing_Params_Var_Samp_Fields = { + __typename?: 'slashing_params_var_samp_fields'; + height?: Maybe; +}; -export type Subscription_RootMint_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate variance on columns */ +export type Slashing_Params_Variance_Fields = { + __typename?: 'slashing_params_variance_fields'; + height?: Maybe; }; -export type Subscription_RootMint_Params_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** Boolean expression to compare columns of type "smallint". All fields are combined with logical 'AND'. */ +export type Smallint_Comparison_Exp = { + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; }; - -export type Subscription_RootMint_Params_By_PkArgs = { +/** columns and relationships of "staking_params" */ +export type Staking_Params = { + __typename?: 'staking_params'; + height: Scalars['bigint']; one_row_id: Scalars['Boolean']; + params: Scalars['jsonb']; }; -export type Subscription_RootModulesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** columns and relationships of "staking_params" */ +export type Staking_ParamsParamsArgs = { + path?: Maybe; }; +/** aggregated selection of "staking_params" */ +export type Staking_Params_Aggregate = { + __typename?: 'staking_params_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; -export type Subscription_RootModules_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate fields of "staking_params" */ +export type Staking_Params_Aggregate_Fields = { + __typename?: 'staking_params_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; }; -export type Subscription_RootModules_By_PkArgs = { - module_name: Scalars['String']; +/** aggregate fields of "staking_params" */ +export type Staking_Params_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; - -export type Subscription_RootPollArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate avg on columns */ +export type Staking_Params_Avg_Fields = { + __typename?: 'staking_params_avg_fields'; + height?: Maybe; }; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + height?: Maybe; + one_row_id?: Maybe; + params?: Maybe; +}; -export type Subscription_RootPoll_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate max on columns */ +export type Staking_Params_Max_Fields = { + __typename?: 'staking_params_max_fields'; + height?: Maybe; }; +/** aggregate min on columns */ +export type Staking_Params_Min_Fields = { + __typename?: 'staking_params_min_fields'; + height?: Maybe; +}; -export type Subscription_RootPoll_AnswerArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** Ordering options when selecting data from "staking_params". */ +export type Staking_Params_Order_By = { + height?: Maybe; + one_row_id?: Maybe; + params?: Maybe; }; +/** select columns of table "staking_params" */ +export enum Staking_Params_Select_Column { + /** column name */ + Height = 'height', + /** column name */ + OneRowId = 'one_row_id', + /** column name */ + Params = 'params' +} -export type Subscription_RootPoll_Answer_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate stddev on columns */ +export type Staking_Params_Stddev_Fields = { + __typename?: 'staking_params_stddev_fields'; + height?: Maybe; }; - -export type Subscription_RootPoll_By_PkArgs = { - id: Scalars['Int']; +/** aggregate stddev_pop on columns */ +export type Staking_Params_Stddev_Pop_Fields = { + __typename?: 'staking_params_stddev_pop_fields'; + height?: Maybe; }; +/** aggregate stddev_samp on columns */ +export type Staking_Params_Stddev_Samp_Fields = { + __typename?: 'staking_params_stddev_samp_fields'; + height?: Maybe; +}; -export type Subscription_RootPostArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate sum on columns */ +export type Staking_Params_Sum_Fields = { + __typename?: 'staking_params_sum_fields'; + height?: Maybe; }; +/** aggregate var_pop on columns */ +export type Staking_Params_Var_Pop_Fields = { + __typename?: 'staking_params_var_pop_fields'; + height?: Maybe; +}; -export type Subscription_RootPost_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate var_samp on columns */ +export type Staking_Params_Var_Samp_Fields = { + __typename?: 'staking_params_var_samp_fields'; + height?: Maybe; }; +/** aggregate variance on columns */ +export type Staking_Params_Variance_Fields = { + __typename?: 'staking_params_variance_fields'; + height?: Maybe; +}; -export type Subscription_RootPost_AttachmentArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** columns and relationships of "staking_pool" */ +export type Staking_Pool = { + __typename?: 'staking_pool'; + bonded_tokens: Scalars['numeric']; + height: Scalars['numeric']; + not_bonded_tokens: Scalars['numeric']; }; +/** aggregated selection of "staking_pool" */ +export type Staking_Pool_Aggregate = { + __typename?: 'staking_pool_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; -export type Subscription_RootPost_Attachment_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate fields of "staking_pool" */ +export type Staking_Pool_Aggregate_Fields = { + __typename?: 'staking_pool_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; }; -export type Subscription_RootPost_Attachment_By_PkArgs = { - id: Scalars['Int']; +/** aggregate fields of "staking_pool" */ +export type Staking_Pool_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; - -export type Subscription_RootPost_Attachment_TagArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate avg on columns */ +export type Staking_Pool_Avg_Fields = { + __typename?: 'staking_pool_avg_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; }; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; +}; -export type Subscription_RootPost_Attachment_Tag_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate max on columns */ +export type Staking_Pool_Max_Fields = { + __typename?: 'staking_pool_max_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; }; +/** aggregate min on columns */ +export type Staking_Pool_Min_Fields = { + __typename?: 'staking_pool_min_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; +}; -export type Subscription_RootPost_AttributeArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** Ordering options when selecting data from "staking_pool". */ +export type Staking_Pool_Order_By = { + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; }; +/** 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' +} -export type Subscription_RootPost_Attribute_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate stddev on columns */ +export type Staking_Pool_Stddev_Fields = { + __typename?: 'staking_pool_stddev_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; }; - -export type Subscription_RootPost_By_PkArgs = { - id: Scalars['String']; +/** aggregate stddev_pop on columns */ +export type Staking_Pool_Stddev_Pop_Fields = { + __typename?: 'staking_pool_stddev_pop_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; }; - -export type Subscription_RootPost_ReactionArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate stddev_samp on columns */ +export type Staking_Pool_Stddev_Samp_Fields = { + __typename?: 'staking_pool_stddev_samp_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; }; - -export type Subscription_RootPost_Reaction_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate sum on columns */ +export type Staking_Pool_Sum_Fields = { + __typename?: 'staking_pool_sum_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; }; - -export type Subscription_RootPost_ReportArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate var_pop on columns */ +export type Staking_Pool_Var_Pop_Fields = { + __typename?: 'staking_pool_var_pop_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; }; - -export type Subscription_RootPost_Report_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate var_samp on columns */ +export type Staking_Pool_Var_Samp_Fields = { + __typename?: 'staking_pool_var_samp_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; }; - -export type Subscription_RootPre_CommitArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** aggregate variance on columns */ +export type Staking_Pool_Variance_Fields = { + __typename?: 'staking_pool_variance_fields'; + bonded_tokens?: Maybe; + height?: Maybe; + not_bonded_tokens?: Maybe; }; - -export type Subscription_RootPre_Commit_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +export type Subscription_Root = { + __typename?: 'subscription_root'; + /** fetch data from the table: "account" */ + account: Array; + /** fetch aggregated fields from the table: "account" */ + account_aggregate: Account_Aggregate; + /** 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 aggregated fields from the table: "average_block_time_from_genesis" */ + average_block_time_from_genesis_aggregate: Average_Block_Time_From_Genesis_Aggregate; + /** fetch data from the table: "average_block_time_per_day" */ + average_block_time_per_day: Array; + /** fetch aggregated fields from the table: "average_block_time_per_day" */ + average_block_time_per_day_aggregate: Average_Block_Time_Per_Day_Aggregate; + /** fetch data from the table: "average_block_time_per_hour" */ + average_block_time_per_hour: Array; + /** fetch aggregated fields from the table: "average_block_time_per_hour" */ + average_block_time_per_hour_aggregate: Average_Block_Time_Per_Hour_Aggregate; + /** fetch data from the table: "average_block_time_per_minute" */ + average_block_time_per_minute: Array; + /** fetch aggregated fields from the table: "average_block_time_per_minute" */ + average_block_time_per_minute_aggregate: Average_Block_Time_Per_Minute_Aggregate; + /** fetch data from the table: "block" */ + block: Array; + /** fetch aggregated fields from the table: "block" */ + block_aggregate: Block_Aggregate; + /** 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 aggregated fields from the table: "community_pool" */ + community_pool_aggregate: Community_Pool_Aggregate; + /** fetch data from the table: "cosmwasm_clear_admin" */ + cosmwasm_clear_admin: Array; + /** fetch aggregated fields from the table: "cosmwasm_clear_admin" */ + cosmwasm_clear_admin_aggregate: Cosmwasm_Clear_Admin_Aggregate; + /** fetch data from the table: "cosmwasm_clear_admin" using primary key columns */ + cosmwasm_clear_admin_by_pk?: Maybe; + /** fetch data from the table: "cosmwasm_execute" */ + cosmwasm_execute: Array; + /** fetch aggregated fields from the table: "cosmwasm_execute" */ + cosmwasm_execute_aggregate: Cosmwasm_Execute_Aggregate; + /** fetch data from the table: "cosmwasm_execute" using primary key columns */ + cosmwasm_execute_by_pk?: Maybe; + /** fetch data from the table: "cosmwasm_instantiate" */ + cosmwasm_instantiate: Array; + /** fetch aggregated fields from the table: "cosmwasm_instantiate" */ + cosmwasm_instantiate_aggregate: Cosmwasm_Instantiate_Aggregate; + /** fetch data from the table: "cosmwasm_instantiate" using primary key columns */ + cosmwasm_instantiate_by_pk?: Maybe; + /** fetch data from the table: "cosmwasm_migrate" */ + cosmwasm_migrate: Array; + /** fetch aggregated fields from the table: "cosmwasm_migrate" */ + cosmwasm_migrate_aggregate: Cosmwasm_Migrate_Aggregate; + /** fetch data from the table: "cosmwasm_migrate" using primary key columns */ + cosmwasm_migrate_by_pk?: Maybe; + /** fetch data from the table: "cosmwasm_store" */ + cosmwasm_store: Array; + /** fetch aggregated fields from the table: "cosmwasm_store" */ + cosmwasm_store_aggregate: Cosmwasm_Store_Aggregate; + /** fetch data from the table: "cosmwasm_store" using primary key columns */ + cosmwasm_store_by_pk?: Maybe; + /** fetch data from the table: "cosmwasm_update_admin" */ + cosmwasm_update_admin: Array; + /** fetch aggregated fields from the table: "cosmwasm_update_admin" */ + cosmwasm_update_admin_aggregate: Cosmwasm_Update_Admin_Aggregate; + /** fetch data from the table: "cosmwasm_update_admin" using primary key columns */ + cosmwasm_update_admin_by_pk?: Maybe; + /** fetch data from the table: "distribution_params" */ + distribution_params: Array; + /** fetch aggregated fields from the table: "distribution_params" */ + distribution_params_aggregate: Distribution_Params_Aggregate; + /** fetch data from the table: "distribution_params" using primary key columns */ + distribution_params_by_pk?: Maybe; + /** fetch data from the table: "double_sign_evidence" */ + double_sign_evidence: Array; + /** fetch aggregated fields from the table: "double_sign_evidence" */ + double_sign_evidence_aggregate: Double_Sign_Evidence_Aggregate; + /** fetch data from the table: "double_sign_vote" */ + double_sign_vote: Array; + /** fetch aggregated fields from the table: "double_sign_vote" */ + double_sign_vote_aggregate: Double_Sign_Vote_Aggregate; + /** fetch data from the table: "double_sign_vote" using primary key columns */ + double_sign_vote_by_pk?: Maybe; + /** fetch data from the table: "fee_grant_allowance" */ + fee_grant_allowance: Array; + /** fetch aggregated fields from the table: "fee_grant_allowance" */ + fee_grant_allowance_aggregate: Fee_Grant_Allowance_Aggregate; + /** fetch data from the table: "fee_grant_allowance" using primary key columns */ + fee_grant_allowance_by_pk?: Maybe; + /** fetch data from the table: "genesis" */ + genesis: Array; + /** fetch aggregated fields from the table: "genesis" */ + genesis_aggregate: Genesis_Aggregate; + /** fetch data from the table: "gov_params" */ + gov_params: Array; + /** fetch aggregated fields from the table: "gov_params" */ + gov_params_aggregate: Gov_Params_Aggregate; + /** fetch data from the table: "gov_params" using primary key columns */ + gov_params_by_pk?: Maybe; + /** fetch data from the table: "inflation" */ + inflation: Array; + /** fetch aggregated fields from the table: "inflation" */ + inflation_aggregate: Inflation_Aggregate; + /** fetch data from the table: "message" */ + message: Array; + /** fetch aggregated fields from the table: "message" */ + message_aggregate: Message_Aggregate; + /** execute function "messages_by_address" which returns "message" */ + messages_by_address: Array; + /** execute function "messages_by_address" and query aggregates on result of table type "message" */ + messages_by_address_aggregate: Message_Aggregate; + /** fetch data from the table: "mint_params" */ + mint_params: Array; + /** fetch aggregated fields from the table: "mint_params" */ + mint_params_aggregate: Mint_Params_Aggregate; + /** fetch data from the table: "mint_params" using primary key columns */ + mint_params_by_pk?: Maybe; + /** fetch data from the table: "modules" */ + modules: Array; + /** fetch aggregated fields from the table: "modules" */ + modules_aggregate: Modules_Aggregate; + /** 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 aggregated fields from the table: "proposal_deposit" */ + proposal_deposit_aggregate: Proposal_Deposit_Aggregate; + /** fetch data from the table: "proposal_staking_pool_snapshot" */ + proposal_staking_pool_snapshot: Array; + /** fetch aggregated fields from the table: "proposal_staking_pool_snapshot" */ + proposal_staking_pool_snapshot_aggregate: Proposal_Staking_Pool_Snapshot_Aggregate; + /** 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 aggregated fields from the table: "proposal_tally_result" */ + proposal_tally_result_aggregate: Proposal_Tally_Result_Aggregate; + /** 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 aggregated fields from the table: "proposal_validator_status_snapshot" */ + proposal_validator_status_snapshot_aggregate: Proposal_Validator_Status_Snapshot_Aggregate; + /** fetch data from the table: "proposal_validator_status_snapshot" using primary key columns */ + proposal_validator_status_snapshot_by_pk?: Maybe; + /** fetch data from the table: "proposal_vote" */ + proposal_vote: Array; + /** fetch aggregated fields from the table: "proposal_vote" */ + proposal_vote_aggregate: Proposal_Vote_Aggregate; + /** fetch data from the table: "slashing_params" */ + slashing_params: Array; + /** fetch aggregated fields from the table: "slashing_params" */ + slashing_params_aggregate: Slashing_Params_Aggregate; + /** fetch data from the table: "slashing_params" using primary key columns */ + slashing_params_by_pk?: Maybe; + /** fetch data from the table: "staking_params" */ + staking_params: Array; + /** fetch aggregated fields from the table: "staking_params" */ + staking_params_aggregate: Staking_Params_Aggregate; + /** fetch data from the table: "staking_params" using primary key columns */ + staking_params_by_pk?: Maybe; + /** fetch data from the table: "staking_pool" */ + staking_pool: Array; + /** fetch aggregated fields from the table: "staking_pool" */ + staking_pool_aggregate: Staking_Pool_Aggregate; + /** fetch data from the table: "supply" */ + supply: Array; + /** fetch aggregated fields from the table: "supply" */ + supply_aggregate: Supply_Aggregate; + /** fetch data from the table: "token" */ + token: Array; + /** fetch aggregated fields from the table: "token" */ + token_aggregate: Token_Aggregate; + /** fetch data from the table: "token_price" */ + token_price: Array; + /** fetch aggregated fields from the table: "token_price" */ + token_price_aggregate: Token_Price_Aggregate; + /** fetch data from the table: "token_price" using primary key columns */ + token_price_by_pk?: Maybe; + /** fetch data from the table: "token_price_history" */ + token_price_history: Array; + /** fetch aggregated fields from the table: "token_price_history" */ + token_price_history_aggregate: Token_Price_History_Aggregate; + /** fetch data from the table: "token_unit" */ + token_unit: Array; + /** fetch aggregated fields from the table: "token_unit" */ + token_unit_aggregate: Token_Unit_Aggregate; + /** fetch data from the table: "transaction" */ + transaction: Array; + /** fetch aggregated fields from the table: "transaction" */ + transaction_aggregate: Transaction_Aggregate; + /** fetch data from the table: "transaction" using primary key columns */ + transaction_by_pk?: Maybe; + /** fetch data from the table: "validator" */ + validator: Array; + /** fetch aggregated fields from the table: "validator" */ + validator_aggregate: Validator_Aggregate; + /** 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 aggregated fields from the table: "validator_commission" */ + validator_commission_aggregate: Validator_Commission_Aggregate; + /** 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 aggregated fields from the table: "validator_description" */ + validator_description_aggregate: Validator_Description_Aggregate; + /** 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 aggregated fields from the table: "validator_info" */ + validator_info_aggregate: Validator_Info_Aggregate; + /** 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 aggregated fields from the table: "validator_signing_info" */ + validator_signing_info_aggregate: Validator_Signing_Info_Aggregate; + /** 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 aggregated fields from the table: "vesting_account" */ + vesting_account_aggregate: Vesting_Account_Aggregate; + /** fetch data from the table: "vesting_account" using primary key columns */ + vesting_account_by_pk?: Maybe; + /** fetch data from the table: "vesting_period" */ + vesting_period: Array; + /** fetch aggregated fields from the table: "vesting_period" */ + vesting_period_aggregate: Vesting_Period_Aggregate; }; -export type Subscription_RootProfileArgs = { - distinct_on?: Maybe>; +export type Subscription_RootAccountArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootProfile_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootAccount_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootProfile_By_PkArgs = { +export type Subscription_RootAccount_By_PkArgs = { address: Scalars['String']; }; -export type Subscription_RootProfile_RelationshipArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProfile_Relationship_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProfiles_ParamsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProposalArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProposal_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProposal_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Subscription_RootProposal_DepositArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProposal_Deposit_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProposal_Staking_Pool_SnapshotArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProposal_Staking_Pool_Snapshot_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProposal_Staking_Pool_Snapshot_By_PkArgs = { - proposal_id: Scalars['Int']; -}; - - -export type Subscription_RootProposal_Tally_ResultArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProposal_Tally_Result_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProposal_Tally_Result_By_PkArgs = { - proposal_id: Scalars['Int']; -}; - - -export type Subscription_RootProposal_Validator_Status_SnapshotArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProposal_Validator_Status_Snapshot_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProposal_Validator_Status_Snapshot_By_PkArgs = { - id: Scalars['Int']; -}; - - -export type Subscription_RootProposal_VoteArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootProposal_Vote_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootRedelegationArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootRedelegation_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootRegistered_ReactionsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootRegistered_Reactions_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootAverage_Block_Time_From_GenesisArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootSelf_DelegationsArgs = { - args: Self_Delegations_Args; - distinct_on?: Maybe>; +export type Subscription_RootAverage_Block_Time_From_Genesis_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootSelf_Delegations_AggregateArgs = { - args: Self_Delegations_Args; - distinct_on?: Maybe>; +export type Subscription_RootAverage_Block_Time_Per_DayArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootSlashing_ParamsArgs = { - distinct_on?: Maybe>; +export type Subscription_RootAverage_Block_Time_Per_Day_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootSlashing_Params_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootAverage_Block_Time_Per_HourArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootSlashing_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootStaking_ParamsArgs = { - distinct_on?: Maybe>; +export type Subscription_RootAverage_Block_Time_Per_Hour_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootStaking_Params_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootAverage_Block_Time_Per_MinuteArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootStaking_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootStaking_PoolArgs = { - distinct_on?: Maybe>; +export type Subscription_RootAverage_Block_Time_Per_Minute_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootStaking_Pool_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootBlockArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootSupplyArgs = { - distinct_on?: Maybe>; +export type Subscription_RootBlock_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootSupply_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +export type Subscription_RootBlock_By_PkArgs = { + height: Scalars['bigint']; }; -export type Subscription_RootTokenArgs = { - distinct_on?: Maybe>; +export type Subscription_RootCommunity_PoolArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootToken_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootCommunity_Pool_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootToken_PriceArgs = { - distinct_on?: Maybe>; +export type Subscription_RootCosmwasm_Clear_AdminArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootToken_Price_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootCosmwasm_Clear_Admin_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootToken_Price_By_PkArgs = { - id: Scalars['Int']; +export type Subscription_RootCosmwasm_Clear_Admin_By_PkArgs = { + index: Scalars['bigint']; + transaction_hash: Scalars['String']; }; -export type Subscription_RootToken_Price_HistoryArgs = { - distinct_on?: Maybe>; +export type Subscription_RootCosmwasm_ExecuteArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootToken_Price_History_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootCosmwasm_Execute_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootToken_UnitArgs = { - distinct_on?: Maybe>; +export type Subscription_RootCosmwasm_Execute_By_PkArgs = { + index: Scalars['bigint']; + transaction_hash: Scalars['String']; +}; + + +export type Subscription_RootCosmwasm_InstantiateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootToken_Unit_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootCosmwasm_Instantiate_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootTransactionArgs = { - distinct_on?: Maybe>; +export type Subscription_RootCosmwasm_Instantiate_By_PkArgs = { + index: Scalars['bigint']; + transaction_hash: Scalars['String']; +}; + + +export type Subscription_RootCosmwasm_MigrateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootTransaction_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootCosmwasm_Migrate_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootTransaction_By_PkArgs = { - hash: Scalars['String']; +export type Subscription_RootCosmwasm_Migrate_By_PkArgs = { + index: Scalars['bigint']; + transaction_hash: Scalars['String']; }; -export type Subscription_RootUnbonding_DelegationArgs = { - distinct_on?: Maybe>; +export type Subscription_RootCosmwasm_StoreArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootUnbonding_Delegation_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootCosmwasm_Store_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootUser_BlockArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +export type Subscription_RootCosmwasm_Store_By_PkArgs = { + index: Scalars['bigint']; + transaction_hash: Scalars['String']; }; -export type Subscription_RootUser_Block_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootCosmwasm_Update_AdminArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootUser_Poll_AnswerArgs = { - distinct_on?: Maybe>; +export type Subscription_RootCosmwasm_Update_Admin_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootUser_Poll_Answer_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +export type Subscription_RootCosmwasm_Update_Admin_By_PkArgs = { + index: Scalars['bigint']; + transaction_hash: Scalars['String']; }; -export type Subscription_RootValidatorArgs = { - distinct_on?: Maybe>; +export type Subscription_RootDistribution_ParamsArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootDistribution_Params_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_By_PkArgs = { - consensus_address: Scalars['String']; +export type Subscription_RootDistribution_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; }; -export type Subscription_RootValidator_CommissionArgs = { - distinct_on?: Maybe>; +export type Subscription_RootDouble_Sign_EvidenceArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Commission_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootDouble_Sign_Evidence_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Commission_AmountArgs = { - distinct_on?: Maybe>; +export type Subscription_RootDouble_Sign_VoteArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Commission_Amount_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootDouble_Sign_Vote_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootValidator_Commission_Amount_By_PkArgs = { - validator_address: Scalars['String']; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Commission_By_PkArgs = { - validator_address: Scalars['String']; +export type Subscription_RootDouble_Sign_Vote_By_PkArgs = { + id: Scalars['Int']; }; -export type Subscription_RootValidator_DescriptionArgs = { - distinct_on?: Maybe>; +export type Subscription_RootFee_Grant_AllowanceArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Description_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootFee_Grant_Allowance_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Description_By_PkArgs = { - validator_address: Scalars['String']; +export type Subscription_RootFee_Grant_Allowance_By_PkArgs = { + id: Scalars['Int']; }; -export type Subscription_RootValidator_InfoArgs = { - distinct_on?: Maybe>; +export type Subscription_RootGenesisArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Info_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootGenesis_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -export type Subscription_RootValidator_Info_By_PkArgs = { - consensus_address: Scalars['String']; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Signing_InfoArgs = { - distinct_on?: Maybe>; +export type Subscription_RootGov_ParamsArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Signing_Info_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootGov_Params_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Signing_Info_By_PkArgs = { - validator_address: Scalars['String']; +export type Subscription_RootGov_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; }; -export type Subscription_RootValidator_StatusArgs = { - distinct_on?: Maybe>; +export type Subscription_RootInflationArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Status_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootInflation_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Status_By_PkArgs = { - validator_address: Scalars['String']; +export type Subscription_RootMessageArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Voting_PowerArgs = { - distinct_on?: Maybe>; +export type Subscription_RootMessage_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Voting_Power_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootMessages_By_AddressArgs = { + args: Messages_By_Address_Args; + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootValidator_Voting_Power_By_PkArgs = { - validator_address: Scalars['String']; +export type Subscription_RootMessages_By_Address_AggregateArgs = { + args: Messages_By_Address_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootVesting_AccountArgs = { - distinct_on?: Maybe>; +export type Subscription_RootMint_ParamsArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootVesting_Account_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootMint_Params_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootVesting_Account_By_PkArgs = { - id: Scalars['Int']; +export type Subscription_RootMint_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; }; -export type Subscription_RootVesting_PeriodArgs = { - distinct_on?: Maybe>; +export type Subscription_RootModulesArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootVesting_Period_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootModules_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - -/** columns and relationships of "supply" */ -export type Supply = { - __typename?: 'supply'; - coins: Scalars['_coin']; - height: Scalars['bigint']; -}; - -/** aggregated selection of "supply" */ -export type Supply_Aggregate = { - __typename?: 'supply_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "supply" */ -export type Supply_Aggregate_Fields = { - __typename?: 'supply_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; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate fields of "supply" */ -export type Supply_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** aggregate avg on columns */ -export type Supply_Avg_Fields = { - __typename?: 'supply_avg_fields'; - height?: Maybe; +export type Subscription_RootModules_By_PkArgs = { + module_name: Scalars['String']; }; -/** Boolean expression to filter rows from the table "supply". All fields are combined with a logical 'AND'. */ -export type Supply_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - coins?: Maybe<_Coin_Comparison_Exp>; - height?: Maybe; -}; -/** aggregate max on columns */ -export type Supply_Max_Fields = { - __typename?: 'supply_max_fields'; - height?: Maybe; +export type Subscription_RootPre_CommitArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate min on columns */ -export type Supply_Min_Fields = { - __typename?: 'supply_min_fields'; - height?: Maybe; -}; -/** Ordering options when selecting data from "supply". */ -export type Supply_Order_By = { - coins?: Maybe; - height?: Maybe; +export type Subscription_RootPre_Commit_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** select columns of table "supply" */ -export enum Supply_Select_Column { - /** column name */ - Coins = 'coins', - /** column name */ - Height = 'height' -} -/** aggregate stddev on columns */ -export type Supply_Stddev_Fields = { - __typename?: 'supply_stddev_fields'; - height?: Maybe; +export type Subscription_RootProposalArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Supply_Stddev_Pop_Fields = { - __typename?: 'supply_stddev_pop_fields'; - height?: Maybe; -}; -/** aggregate stddev_samp on columns */ -export type Supply_Stddev_Samp_Fields = { - __typename?: 'supply_stddev_samp_fields'; - height?: Maybe; +export type Subscription_RootProposal_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate sum on columns */ -export type Supply_Sum_Fields = { - __typename?: 'supply_sum_fields'; - height?: Maybe; -}; -/** aggregate var_pop on columns */ -export type Supply_Var_Pop_Fields = { - __typename?: 'supply_var_pop_fields'; - height?: Maybe; +export type Subscription_RootProposal_By_PkArgs = { + id: Scalars['Int']; }; -/** aggregate var_samp on columns */ -export type Supply_Var_Samp_Fields = { - __typename?: 'supply_var_samp_fields'; - height?: Maybe; -}; -/** aggregate variance on columns */ -export type Supply_Variance_Fields = { - __typename?: 'supply_variance_fields'; - height?: Maybe; +export type Subscription_RootProposal_DepositArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. */ -export type Timestamp_Comparison_Exp = { - _eq?: Maybe; - _gt?: Maybe; - _gte?: Maybe; - _in?: Maybe>; - _is_null?: Maybe; - _lt?: Maybe; - _lte?: Maybe; - _neq?: Maybe; - _nin?: Maybe>; -}; - -/** columns and relationships of "token" */ -export type Token = { - __typename?: 'token'; - name: Scalars['String']; - /** An array relationship */ - token_units: Array; - /** An aggregate relationship */ - token_units_aggregate: Token_Unit_Aggregate; +export type Subscription_RootProposal_Deposit_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** columns and relationships of "token" */ -export type TokenToken_UnitsArgs = { - distinct_on?: Maybe>; +export type Subscription_RootProposal_Staking_Pool_SnapshotArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** columns and relationships of "token" */ -export type TokenToken_Units_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootProposal_Staking_Pool_Snapshot_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregated selection of "token" */ -export type Token_Aggregate = { - __typename?: 'token_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; -/** aggregate fields of "token" */ -export type Token_Aggregate_Fields = { - __typename?: 'token_aggregate_fields'; - count: Scalars['Int']; - max?: Maybe; - min?: Maybe; +export type Subscription_RootProposal_Staking_Pool_Snapshot_By_PkArgs = { + proposal_id: Scalars['Int']; }; -/** aggregate fields of "token" */ -export type Token_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +export type Subscription_RootProposal_Tally_ResultArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** Boolean expression to filter rows from the table "token". All fields are combined with a logical 'AND'. */ -export type Token_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - name?: Maybe; - token_units?: Maybe; + +export type Subscription_RootProposal_Tally_Result_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate max on columns */ -export type Token_Max_Fields = { - __typename?: 'token_max_fields'; - name?: Maybe; + +export type Subscription_RootProposal_Tally_Result_By_PkArgs = { + proposal_id: Scalars['Int']; }; -/** aggregate min on columns */ -export type Token_Min_Fields = { - __typename?: 'token_min_fields'; - name?: Maybe; + +export type Subscription_RootProposal_Validator_Status_SnapshotArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** Ordering options when selecting data from "token". */ -export type Token_Order_By = { - name?: Maybe; - token_units_aggregate?: Maybe; + +export type Subscription_RootProposal_Validator_Status_Snapshot_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** columns and relationships of "token_price" */ -export type Token_Price = { - __typename?: 'token_price'; + +export type Subscription_RootProposal_Validator_Status_Snapshot_By_PkArgs = { id: Scalars['Int']; - market_cap: Scalars['bigint']; - price: Scalars['numeric']; - timestamp: Scalars['timestamp']; - /** An object relationship */ - token_unit: Token_Unit; - unit_name: Scalars['String']; }; -/** aggregated selection of "token_price" */ -export type Token_Price_Aggregate = { - __typename?: 'token_price_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; -/** aggregate fields of "token_price" */ -export type Token_Price_Aggregate_Fields = { - __typename?: 'token_price_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; +export type Subscription_RootProposal_VoteArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate fields of "token_price" */ -export type Token_Price_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +export type Subscription_RootProposal_Vote_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by aggregate values of table "token_price" */ -export type Token_Price_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; -/** aggregate avg on columns */ -export type Token_Price_Avg_Fields = { - __typename?: 'token_price_avg_fields'; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; +export type Subscription_RootSlashing_ParamsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by avg() on columns of table "token_price" */ -export type Token_Price_Avg_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; -}; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - token_unit?: Maybe; - unit_name?: Maybe; +export type Subscription_RootSlashing_Params_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** 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']; -}; -/** aggregated selection of "token_price_history" */ -export type Token_Price_History_Aggregate = { - __typename?: 'token_price_history_aggregate'; - aggregate?: Maybe; - nodes: Array; +export type Subscription_RootSlashing_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; }; -/** aggregate fields of "token_price_history" */ -export type Token_Price_History_Aggregate_Fields = { - __typename?: 'token_price_history_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; + +export type Subscription_RootStaking_ParamsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate fields of "token_price_history" */ -export type Token_Price_History_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; +export type Subscription_RootStaking_Params_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by aggregate values of table "token_price_history" */ -export type Token_Price_History_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; -/** aggregate avg on columns */ -export type Token_Price_History_Avg_Fields = { - __typename?: 'token_price_history_avg_fields'; - market_cap?: Maybe; - price?: Maybe; +export type Subscription_RootStaking_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; }; -/** order by avg() on columns of table "token_price_history" */ -export type Token_Price_History_Avg_Order_By = { - market_cap?: Maybe; - price?: Maybe; -}; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - token_unit?: Maybe; - unit_name?: Maybe; +export type Subscription_RootStaking_PoolArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate max on columns */ -export type Token_Price_History_Max_Fields = { - __typename?: 'token_price_history_max_fields'; - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - unit_name?: Maybe; -}; -/** order by max() on columns of table "token_price_history" */ -export type Token_Price_History_Max_Order_By = { - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - unit_name?: Maybe; +export type Subscription_RootStaking_Pool_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate min on columns */ -export type Token_Price_History_Min_Fields = { - __typename?: 'token_price_history_min_fields'; - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - unit_name?: Maybe; -}; -/** order by min() on columns of table "token_price_history" */ -export type Token_Price_History_Min_Order_By = { - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - unit_name?: Maybe; +export type Subscription_RootSupplyArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** Ordering options when selecting data from "token_price_history". */ -export type Token_Price_History_Order_By = { - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - token_unit?: Maybe; - unit_name?: Maybe; + +export type Subscription_RootSupply_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** 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' -} -/** aggregate stddev on columns */ -export type Token_Price_History_Stddev_Fields = { - __typename?: 'token_price_history_stddev_fields'; - market_cap?: Maybe; - price?: Maybe; +export type Subscription_RootTokenArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by stddev() on columns of table "token_price_history" */ -export type Token_Price_History_Stddev_Order_By = { - market_cap?: Maybe; - price?: Maybe; -}; -/** aggregate stddev_pop on columns */ -export type Token_Price_History_Stddev_Pop_Fields = { - __typename?: 'token_price_history_stddev_pop_fields'; - market_cap?: Maybe; - price?: Maybe; +export type Subscription_RootToken_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by stddev_pop() on columns of table "token_price_history" */ -export type Token_Price_History_Stddev_Pop_Order_By = { - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootToken_PriceArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate stddev_samp on columns */ -export type Token_Price_History_Stddev_Samp_Fields = { - __typename?: 'token_price_history_stddev_samp_fields'; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootToken_Price_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by stddev_samp() on columns of table "token_price_history" */ -export type Token_Price_History_Stddev_Samp_Order_By = { - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootToken_Price_By_PkArgs = { + id: Scalars['Int']; }; -/** aggregate sum on columns */ -export type Token_Price_History_Sum_Fields = { - __typename?: 'token_price_history_sum_fields'; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootToken_Price_HistoryArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by sum() on columns of table "token_price_history" */ -export type Token_Price_History_Sum_Order_By = { - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootToken_Price_History_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate var_pop on columns */ -export type Token_Price_History_Var_Pop_Fields = { - __typename?: 'token_price_history_var_pop_fields'; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootToken_UnitArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by var_pop() on columns of table "token_price_history" */ -export type Token_Price_History_Var_Pop_Order_By = { - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootToken_Unit_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate var_samp on columns */ -export type Token_Price_History_Var_Samp_Fields = { - __typename?: 'token_price_history_var_samp_fields'; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootTransactionArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by var_samp() on columns of table "token_price_history" */ -export type Token_Price_History_Var_Samp_Order_By = { - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootTransaction_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate variance on columns */ -export type Token_Price_History_Variance_Fields = { - __typename?: 'token_price_history_variance_fields'; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootTransaction_By_PkArgs = { + hash: Scalars['String']; }; -/** order by variance() on columns of table "token_price_history" */ -export type Token_Price_History_Variance_Order_By = { - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidatorArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate max on columns */ -export type Token_Price_Max_Fields = { - __typename?: 'token_price_max_fields'; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - unit_name?: Maybe; + +export type Subscription_RootValidator_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by max() on columns of table "token_price" */ -export type Token_Price_Max_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - unit_name?: Maybe; + +export type Subscription_RootValidator_By_PkArgs = { + consensus_address: Scalars['String']; }; -/** aggregate min on columns */ -export type Token_Price_Min_Fields = { - __typename?: 'token_price_min_fields'; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - unit_name?: Maybe; + +export type Subscription_RootValidator_CommissionArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by min() on columns of table "token_price" */ -export type Token_Price_Min_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - unit_name?: Maybe; + +export type Subscription_RootValidator_Commission_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** Ordering options when selecting data from "token_price". */ -export type Token_Price_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; - timestamp?: Maybe; - token_unit?: Maybe; - unit_name?: Maybe; + +export type Subscription_RootValidator_Commission_By_PkArgs = { + validator_address: Scalars['String']; }; -/** select columns of table "token_price" */ -export enum Token_Price_Select_Column { - /** column name */ - Id = 'id', - /** column name */ - MarketCap = 'market_cap', - /** column name */ - Price = 'price', - /** column name */ - Timestamp = 'timestamp', - /** column name */ - UnitName = 'unit_name' -} -/** aggregate stddev on columns */ -export type Token_Price_Stddev_Fields = { - __typename?: 'token_price_stddev_fields'; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; +export type Subscription_RootValidator_DescriptionArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by stddev() on columns of table "token_price" */ -export type Token_Price_Stddev_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidator_Description_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Token_Price_Stddev_Pop_Fields = { - __typename?: 'token_price_stddev_pop_fields'; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidator_Description_By_PkArgs = { + validator_address: Scalars['String']; }; -/** order by stddev_pop() on columns of table "token_price" */ -export type Token_Price_Stddev_Pop_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidator_InfoArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate stddev_samp on columns */ -export type Token_Price_Stddev_Samp_Fields = { - __typename?: 'token_price_stddev_samp_fields'; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidator_Info_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by stddev_samp() on columns of table "token_price" */ -export type Token_Price_Stddev_Samp_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidator_Info_By_PkArgs = { + consensus_address: Scalars['String']; }; -/** aggregate sum on columns */ -export type Token_Price_Sum_Fields = { - __typename?: 'token_price_sum_fields'; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidator_Signing_InfoArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by sum() on columns of table "token_price" */ -export type Token_Price_Sum_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidator_Signing_Info_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate var_pop on columns */ -export type Token_Price_Var_Pop_Fields = { - __typename?: 'token_price_var_pop_fields'; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidator_Signing_Info_By_PkArgs = { + validator_address: Scalars['String']; }; -/** order by var_pop() on columns of table "token_price" */ -export type Token_Price_Var_Pop_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidator_StatusArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate var_samp on columns */ -export type Token_Price_Var_Samp_Fields = { - __typename?: 'token_price_var_samp_fields'; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidator_Status_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by var_samp() on columns of table "token_price" */ -export type Token_Price_Var_Samp_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidator_Status_By_PkArgs = { + validator_address: Scalars['String']; }; -/** aggregate variance on columns */ -export type Token_Price_Variance_Fields = { - __typename?: 'token_price_variance_fields'; - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidator_Voting_PowerArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by variance() on columns of table "token_price" */ -export type Token_Price_Variance_Order_By = { - id?: Maybe; - market_cap?: Maybe; - price?: Maybe; + +export type Subscription_RootValidator_Voting_Power_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** 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 aggregate relationship */ - token_price_histories_aggregate: Token_Price_History_Aggregate; - /** An array relationship */ - token_prices: Array; - /** An aggregate relationship */ - token_prices_aggregate: Token_Price_Aggregate; +export type Subscription_RootValidator_Voting_Power_By_PkArgs = { + validator_address: Scalars['String']; }; -/** columns and relationships of "token_unit" */ -export type Token_UnitToken_Price_HistoriesArgs = { - distinct_on?: Maybe>; +export type Subscription_RootVesting_AccountArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** columns and relationships of "token_unit" */ -export type Token_UnitToken_Price_Histories_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootVesting_Account_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** columns and relationships of "token_unit" */ -export type Token_UnitToken_PricesArgs = { - distinct_on?: Maybe>; +export type Subscription_RootVesting_Account_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Subscription_RootVesting_PeriodArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** columns and relationships of "token_unit" */ -export type Token_UnitToken_Prices_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootVesting_Period_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregated selection of "token_unit" */ -export type Token_Unit_Aggregate = { - __typename?: 'token_unit_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** columns and relationships of "supply" */ +export type Supply = { + __typename?: 'supply'; + coins: Scalars['_coin']; + height: Scalars['bigint']; }; -/** aggregate fields of "token_unit" */ -export type Token_Unit_Aggregate_Fields = { - __typename?: 'token_unit_aggregate_fields'; - avg?: Maybe; +/** aggregated selection of "supply" */ +export type Supply_Aggregate = { + __typename?: 'supply_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "supply" */ +export type Supply_Aggregate_Fields = { + __typename?: 'supply_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; + 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 "token_unit" */ -export type Token_Unit_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "supply" */ +export type Supply_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "token_unit" */ -export type Token_Unit_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - /** aggregate avg on columns */ -export type Token_Unit_Avg_Fields = { - __typename?: 'token_unit_avg_fields'; - exponent?: Maybe; -}; - -/** order by avg() on columns of table "token_unit" */ -export type Token_Unit_Avg_Order_By = { - exponent?: Maybe; +export type Supply_Avg_Fields = { + __typename?: 'supply_avg_fields'; + height?: Maybe; }; -/** 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?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - aliases?: Maybe<_Text_Comparison_Exp>; - denom?: Maybe; - exponent?: Maybe; - price_id?: Maybe; - token?: Maybe; - token_name?: Maybe; - token_price?: Maybe; - token_price_histories?: Maybe; - token_prices?: Maybe; +/** Boolean expression to filter rows from the table "supply". All fields are combined with a logical 'AND'. */ +export type Supply_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + coins?: Maybe<_Coin_Comparison_Exp>; + height?: Maybe; }; /** aggregate max on columns */ -export type Token_Unit_Max_Fields = { - __typename?: 'token_unit_max_fields'; - denom?: Maybe; - exponent?: Maybe; - price_id?: Maybe; - token_name?: Maybe; -}; - -/** order by max() on columns of table "token_unit" */ -export type Token_Unit_Max_Order_By = { - denom?: Maybe; - exponent?: Maybe; - price_id?: Maybe; - token_name?: Maybe; +export type Supply_Max_Fields = { + __typename?: 'supply_max_fields'; + height?: Maybe; }; /** aggregate min on columns */ -export type Token_Unit_Min_Fields = { - __typename?: 'token_unit_min_fields'; - denom?: Maybe; - exponent?: Maybe; - price_id?: Maybe; - token_name?: Maybe; -}; - -/** order by min() on columns of table "token_unit" */ -export type Token_Unit_Min_Order_By = { - denom?: Maybe; - exponent?: Maybe; - price_id?: Maybe; - token_name?: Maybe; +export type Supply_Min_Fields = { + __typename?: 'supply_min_fields'; + height?: Maybe; }; -/** Ordering options when selecting data from "token_unit". */ -export type Token_Unit_Order_By = { - aliases?: Maybe; - denom?: Maybe; - exponent?: Maybe; - price_id?: Maybe; - token?: Maybe; - token_name?: Maybe; - token_price?: Maybe; - token_price_histories_aggregate?: Maybe; - token_prices_aggregate?: Maybe; +/** Ordering options when selecting data from "supply". */ +export type Supply_Order_By = { + coins?: Maybe; + height?: Maybe; }; -/** select columns of table "token_unit" */ -export enum Token_Unit_Select_Column { - /** column name */ - Aliases = 'aliases', - /** column name */ - Denom = 'denom', - /** column name */ - Exponent = 'exponent', +/** select columns of table "supply" */ +export enum Supply_Select_Column { /** column name */ - PriceId = 'price_id', + Coins = 'coins', /** column name */ - TokenName = 'token_name' + Height = 'height' } /** aggregate stddev on columns */ -export type Token_Unit_Stddev_Fields = { - __typename?: 'token_unit_stddev_fields'; - exponent?: Maybe; +export type Supply_Stddev_Fields = { + __typename?: 'supply_stddev_fields'; + height?: Maybe; }; -/** order by stddev() on columns of table "token_unit" */ -export type Token_Unit_Stddev_Order_By = { - exponent?: Maybe; +/** aggregate stddev_pop on columns */ +export type Supply_Stddev_Pop_Fields = { + __typename?: 'supply_stddev_pop_fields'; + height?: Maybe; }; -/** aggregate stddev_pop on columns */ -export type Token_Unit_Stddev_Pop_Fields = { - __typename?: 'token_unit_stddev_pop_fields'; - exponent?: Maybe; +/** aggregate stddev_samp on columns */ +export type Supply_Stddev_Samp_Fields = { + __typename?: 'supply_stddev_samp_fields'; + height?: Maybe; }; -/** order by stddev_pop() on columns of table "token_unit" */ -export type Token_Unit_Stddev_Pop_Order_By = { - exponent?: Maybe; +/** aggregate sum on columns */ +export type Supply_Sum_Fields = { + __typename?: 'supply_sum_fields'; + height?: Maybe; }; -/** aggregate stddev_samp on columns */ -export type Token_Unit_Stddev_Samp_Fields = { - __typename?: 'token_unit_stddev_samp_fields'; - exponent?: Maybe; +/** aggregate var_pop on columns */ +export type Supply_Var_Pop_Fields = { + __typename?: 'supply_var_pop_fields'; + height?: Maybe; }; -/** order by stddev_samp() on columns of table "token_unit" */ -export type Token_Unit_Stddev_Samp_Order_By = { - exponent?: Maybe; +/** aggregate var_samp on columns */ +export type Supply_Var_Samp_Fields = { + __typename?: 'supply_var_samp_fields'; + height?: Maybe; }; -/** aggregate sum on columns */ -export type Token_Unit_Sum_Fields = { - __typename?: 'token_unit_sum_fields'; - exponent?: Maybe; +/** aggregate variance on columns */ +export type Supply_Variance_Fields = { + __typename?: 'supply_variance_fields'; + height?: Maybe; }; -/** order by sum() on columns of table "token_unit" */ -export type Token_Unit_Sum_Order_By = { - exponent?: Maybe; + +/** Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. */ +export type Timestamp_Comparison_Exp = { + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; }; -/** aggregate var_pop on columns */ -export type Token_Unit_Var_Pop_Fields = { - __typename?: 'token_unit_var_pop_fields'; - exponent?: Maybe; +/** columns and relationships of "token" */ +export type Token = { + __typename?: 'token'; + name: Scalars['String']; + /** An array relationship */ + token_units: Array; + /** An aggregate relationship */ + token_units_aggregate: Token_Unit_Aggregate; }; -/** order by var_pop() on columns of table "token_unit" */ -export type Token_Unit_Var_Pop_Order_By = { - exponent?: Maybe; + +/** columns and relationships of "token" */ +export type TokenToken_UnitsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate var_samp on columns */ -export type Token_Unit_Var_Samp_Fields = { - __typename?: 'token_unit_var_samp_fields'; - exponent?: Maybe; + +/** columns and relationships of "token" */ +export type TokenToken_Units_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** order by var_samp() on columns of table "token_unit" */ -export type Token_Unit_Var_Samp_Order_By = { - exponent?: Maybe; +/** aggregated selection of "token" */ +export type Token_Aggregate = { + __typename?: 'token_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "token" */ +export type Token_Aggregate_Fields = { + __typename?: 'token_aggregate_fields'; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "token" */ +export type Token_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** Boolean expression to filter rows from the table "token". All fields are combined with a logical 'AND'. */ +export type Token_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + name?: Maybe; + token_units?: Maybe; +}; + +/** aggregate max on columns */ +export type Token_Max_Fields = { + __typename?: 'token_max_fields'; + name?: Maybe; }; -/** aggregate variance on columns */ -export type Token_Unit_Variance_Fields = { - __typename?: 'token_unit_variance_fields'; - exponent?: Maybe; +/** aggregate min on columns */ +export type Token_Min_Fields = { + __typename?: 'token_min_fields'; + name?: Maybe; }; -/** order by variance() on columns of table "token_unit" */ -export type Token_Unit_Variance_Order_By = { - exponent?: Maybe; +/** Ordering options when selecting data from "token". */ +export type Token_Order_By = { + name?: Maybe; + token_units_aggregate?: Maybe; }; -/** columns and relationships of "transaction" */ -export type Transaction = { - __typename?: 'transaction'; +/** columns and relationships of "token_price" */ +export type Token_Price = { + __typename?: 'token_price'; + id: Scalars['Int']; + market_cap: Scalars['bigint']; + price: Scalars['numeric']; + timestamp: Scalars['timestamp']; /** 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['jsonb']; - /** An array relationship */ - messagesByTransactionHash: Array; - /** An aggregate relationship */ - messagesByTransactionHash_aggregate: Message_Aggregate; - raw_log?: Maybe; - signatures: Scalars['_text']; - signer_infos: Scalars['jsonb']; - success: Scalars['Boolean']; + token_unit: Token_Unit; + unit_name: Scalars['String']; }; - -/** columns and relationships of "transaction" */ -export type TransactionFeeArgs = { - path?: Maybe; +/** aggregated selection of "token_price" */ +export type Token_Price_Aggregate = { + __typename?: 'token_price_aggregate'; + aggregate?: Maybe; + nodes: Array; }; - -/** columns and relationships of "transaction" */ -export type TransactionLogsArgs = { - path?: Maybe; +/** aggregate fields of "token_price" */ +export type Token_Price_Aggregate_Fields = { + __typename?: 'token_price_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; }; -/** columns and relationships of "transaction" */ -export type TransactionMessagesArgs = { - path?: Maybe; +/** aggregate fields of "token_price" */ +export type Token_Price_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; }; - -/** columns and relationships of "transaction" */ -export type TransactionMessagesByTransactionHashArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** order by aggregate values of table "token_price" */ +export type Token_Price_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; +/** aggregate avg on columns */ +export type Token_Price_Avg_Fields = { + __typename?: 'token_price_avg_fields'; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; +}; -/** columns and relationships of "transaction" */ -export type TransactionMessagesByTransactionHash_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; +/** order by avg() on columns of table "token_price" */ +export type Token_Price_Avg_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + token_unit?: Maybe; + unit_name?: Maybe; +}; -/** columns and relationships of "transaction" */ -export type TransactionSigner_InfosArgs = { - path?: Maybe; +/** 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']; }; -/** aggregated selection of "transaction" */ -export type Transaction_Aggregate = { - __typename?: 'transaction_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "token_price_history" */ +export type Token_Price_History_Aggregate = { + __typename?: 'token_price_history_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "transaction" */ -export type Transaction_Aggregate_Fields = { - __typename?: 'transaction_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "token_price_history" */ +export type Token_Price_History_Aggregate_Fields = { + __typename?: 'token_price_history_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; + 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 "transaction" */ -export type Transaction_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "token_price_history" */ +export type Token_Price_History_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "transaction" */ -export type Transaction_Aggregate_Order_By = { - avg?: Maybe; +/** order by aggregate values of table "token_price_history" */ +export type Token_Price_History_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate avg on columns */ -export type Transaction_Avg_Fields = { - __typename?: 'transaction_avg_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +export type Token_Price_History_Avg_Fields = { + __typename?: 'token_price_history_avg_fields'; + market_cap?: Maybe; + price?: Maybe; }; -/** order by avg() on columns of table "transaction" */ -export type Transaction_Avg_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +/** order by avg() on columns of table "token_price_history" */ +export type Token_Price_History_Avg_Order_By = { + market_cap?: Maybe; + price?: Maybe; }; -/** Boolean expression to filter rows from the table "transaction". All fields are combined with a logical 'AND'. */ -export type Transaction_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - block?: Maybe; - fee?: Maybe; - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; - height?: Maybe; - logs?: Maybe; - memo?: Maybe; - messages?: Maybe; - messagesByTransactionHash?: Maybe; - raw_log?: Maybe; - signatures?: Maybe<_Text_Comparison_Exp>; - signer_infos?: Maybe; - success?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + token_unit?: Maybe; + unit_name?: Maybe; }; /** aggregate max on columns */ -export type Transaction_Max_Fields = { - __typename?: 'transaction_max_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; - height?: Maybe; - memo?: Maybe; - raw_log?: Maybe; +export type Token_Price_History_Max_Fields = { + __typename?: 'token_price_history_max_fields'; + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + unit_name?: Maybe; }; -/** order by max() on columns of table "transaction" */ -export type Transaction_Max_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; - height?: Maybe; - memo?: Maybe; - raw_log?: Maybe; +/** order by max() on columns of table "token_price_history" */ +export type Token_Price_History_Max_Order_By = { + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + unit_name?: Maybe; }; /** aggregate min on columns */ -export type Transaction_Min_Fields = { - __typename?: 'transaction_min_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; - height?: Maybe; - memo?: Maybe; - raw_log?: Maybe; +export type Token_Price_History_Min_Fields = { + __typename?: 'token_price_history_min_fields'; + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + unit_name?: Maybe; }; -/** order by min() on columns of table "transaction" */ -export type Transaction_Min_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; - height?: Maybe; - memo?: Maybe; - raw_log?: Maybe; +/** order by min() on columns of table "token_price_history" */ +export type Token_Price_History_Min_Order_By = { + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + unit_name?: Maybe; }; -/** Ordering options when selecting data from "transaction". */ -export type Transaction_Order_By = { - block?: Maybe; - fee?: Maybe; - gas_used?: Maybe; - gas_wanted?: Maybe; - hash?: Maybe; - height?: Maybe; - logs?: Maybe; - memo?: Maybe; - messages?: Maybe; - messagesByTransactionHash_aggregate?: Maybe; - raw_log?: Maybe; - signatures?: Maybe; - signer_infos?: Maybe; - success?: Maybe; +/** Ordering options when selecting data from "token_price_history". */ +export type Token_Price_History_Order_By = { + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + token_unit?: Maybe; + unit_name?: Maybe; }; -/** 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', +/** select columns of table "token_price_history" */ +export enum Token_Price_History_Select_Column { /** column name */ - RawLog = 'raw_log', + MarketCap = 'market_cap', /** column name */ - Signatures = 'signatures', + Price = 'price', /** column name */ - SignerInfos = 'signer_infos', + Timestamp = 'timestamp', /** column name */ - Success = 'success' + UnitName = 'unit_name' } /** aggregate stddev on columns */ -export type Transaction_Stddev_Fields = { - __typename?: 'transaction_stddev_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +export type Token_Price_History_Stddev_Fields = { + __typename?: 'token_price_history_stddev_fields'; + market_cap?: Maybe; + price?: Maybe; }; -/** order by stddev() on columns of table "transaction" */ -export type Transaction_Stddev_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +/** order by stddev() on columns of table "token_price_history" */ +export type Token_Price_History_Stddev_Order_By = { + market_cap?: Maybe; + price?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Transaction_Stddev_Pop_Fields = { - __typename?: 'transaction_stddev_pop_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +export type Token_Price_History_Stddev_Pop_Fields = { + __typename?: 'token_price_history_stddev_pop_fields'; + market_cap?: Maybe; + price?: Maybe; }; -/** order by stddev_pop() on columns of table "transaction" */ -export type Transaction_Stddev_Pop_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +/** order by stddev_pop() on columns of table "token_price_history" */ +export type Token_Price_History_Stddev_Pop_Order_By = { + market_cap?: Maybe; + price?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Transaction_Stddev_Samp_Fields = { - __typename?: 'transaction_stddev_samp_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +export type Token_Price_History_Stddev_Samp_Fields = { + __typename?: 'token_price_history_stddev_samp_fields'; + market_cap?: Maybe; + price?: Maybe; }; -/** order by stddev_samp() on columns of table "transaction" */ -export type Transaction_Stddev_Samp_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +/** order by stddev_samp() on columns of table "token_price_history" */ +export type Token_Price_History_Stddev_Samp_Order_By = { + market_cap?: Maybe; + price?: Maybe; }; /** aggregate sum on columns */ -export type Transaction_Sum_Fields = { - __typename?: 'transaction_sum_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +export type Token_Price_History_Sum_Fields = { + __typename?: 'token_price_history_sum_fields'; + market_cap?: Maybe; + price?: Maybe; }; -/** order by sum() on columns of table "transaction" */ -export type Transaction_Sum_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +/** order by sum() on columns of table "token_price_history" */ +export type Token_Price_History_Sum_Order_By = { + market_cap?: Maybe; + price?: Maybe; }; /** aggregate var_pop on columns */ -export type Transaction_Var_Pop_Fields = { - __typename?: 'transaction_var_pop_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +export type Token_Price_History_Var_Pop_Fields = { + __typename?: 'token_price_history_var_pop_fields'; + market_cap?: Maybe; + price?: Maybe; }; -/** order by var_pop() on columns of table "transaction" */ -export type Transaction_Var_Pop_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; +/** order by var_pop() on columns of table "token_price_history" */ +export type Token_Price_History_Var_Pop_Order_By = { + market_cap?: Maybe; + price?: Maybe; }; /** aggregate var_samp on columns */ -export type Transaction_Var_Samp_Fields = { - __typename?: 'transaction_var_samp_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; -}; - -/** order by var_samp() on columns of table "transaction" */ -export type Transaction_Var_Samp_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Transaction_Variance_Fields = { - __typename?: 'transaction_variance_fields'; - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; -}; - -/** order by variance() on columns of table "transaction" */ -export type Transaction_Variance_Order_By = { - gas_used?: Maybe; - gas_wanted?: Maybe; - height?: Maybe; -}; - -/** columns and relationships of "unbonding_delegation" */ -export type Unbonding_Delegation = { - __typename?: 'unbonding_delegation'; - /** An object relationship */ - account: Account; - amount: Scalars['coin']; - completion_timestamp: Scalars['timestamp']; - delegator_address: Scalars['String']; - height: Scalars['bigint']; - /** An object relationship */ - validator: Validator; - validator_address: Scalars['String']; -}; - -/** aggregated selection of "unbonding_delegation" */ -export type Unbonding_Delegation_Aggregate = { - __typename?: 'unbonding_delegation_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "unbonding_delegation" */ -export type Unbonding_Delegation_Aggregate_Fields = { - __typename?: 'unbonding_delegation_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 "unbonding_delegation" */ -export type Unbonding_Delegation_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "unbonding_delegation" */ -export type Unbonding_Delegation_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; +export type Token_Price_History_Var_Samp_Fields = { + __typename?: 'token_price_history_var_samp_fields'; + market_cap?: Maybe; + price?: Maybe; }; -/** aggregate avg on columns */ -export type Unbonding_Delegation_Avg_Fields = { - __typename?: 'unbonding_delegation_avg_fields'; - height?: Maybe; +/** order by var_samp() on columns of table "token_price_history" */ +export type Token_Price_History_Var_Samp_Order_By = { + market_cap?: Maybe; + price?: Maybe; }; -/** order by avg() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Avg_Order_By = { - height?: Maybe; +/** aggregate variance on columns */ +export type Token_Price_History_Variance_Fields = { + __typename?: 'token_price_history_variance_fields'; + market_cap?: Maybe; + price?: Maybe; }; -/** Boolean expression to filter rows from the table "unbonding_delegation". All fields are combined with a logical 'AND'. */ -export type Unbonding_Delegation_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - account?: Maybe; - amount?: Maybe; - completion_timestamp?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - validator?: Maybe; - validator_address?: Maybe; +/** order by variance() on columns of table "token_price_history" */ +export type Token_Price_History_Variance_Order_By = { + market_cap?: Maybe; + price?: Maybe; }; /** aggregate max on columns */ -export type Unbonding_Delegation_Max_Fields = { - __typename?: 'unbonding_delegation_max_fields'; - completion_timestamp?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - validator_address?: Maybe; +export type Token_Price_Max_Fields = { + __typename?: 'token_price_max_fields'; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + unit_name?: Maybe; }; -/** order by max() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Max_Order_By = { - completion_timestamp?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - validator_address?: Maybe; +/** order by max() on columns of table "token_price" */ +export type Token_Price_Max_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + unit_name?: Maybe; }; /** aggregate min on columns */ -export type Unbonding_Delegation_Min_Fields = { - __typename?: 'unbonding_delegation_min_fields'; - completion_timestamp?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - validator_address?: Maybe; +export type Token_Price_Min_Fields = { + __typename?: 'token_price_min_fields'; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + unit_name?: Maybe; }; -/** order by min() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Min_Order_By = { - completion_timestamp?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - validator_address?: Maybe; +/** order by min() on columns of table "token_price" */ +export type Token_Price_Min_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + unit_name?: Maybe; }; -/** Ordering options when selecting data from "unbonding_delegation". */ -export type Unbonding_Delegation_Order_By = { - account?: Maybe; - amount?: Maybe; - completion_timestamp?: Maybe; - delegator_address?: Maybe; - height?: Maybe; - validator?: Maybe; - validator_address?: Maybe; +/** Ordering options when selecting data from "token_price". */ +export type Token_Price_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; + timestamp?: Maybe; + token_unit?: Maybe; + unit_name?: Maybe; }; -/** select columns of table "unbonding_delegation" */ -export enum Unbonding_Delegation_Select_Column { +/** select columns of table "token_price" */ +export enum Token_Price_Select_Column { /** column name */ - Amount = 'amount', + Id = 'id', /** column name */ - CompletionTimestamp = 'completion_timestamp', + MarketCap = 'market_cap', /** column name */ - DelegatorAddress = 'delegator_address', + Price = 'price', /** column name */ - Height = 'height', + Timestamp = 'timestamp', /** column name */ - ValidatorAddress = 'validator_address' + UnitName = 'unit_name' } /** aggregate stddev on columns */ -export type Unbonding_Delegation_Stddev_Fields = { - __typename?: 'unbonding_delegation_stddev_fields'; - height?: Maybe; +export type Token_Price_Stddev_Fields = { + __typename?: 'token_price_stddev_fields'; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; -/** order by stddev() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Stddev_Order_By = { - height?: Maybe; +/** order by stddev() on columns of table "token_price" */ +export type Token_Price_Stddev_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Unbonding_Delegation_Stddev_Pop_Fields = { - __typename?: 'unbonding_delegation_stddev_pop_fields'; - height?: Maybe; +export type Token_Price_Stddev_Pop_Fields = { + __typename?: 'token_price_stddev_pop_fields'; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; -/** order by stddev_pop() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Stddev_Pop_Order_By = { - height?: Maybe; +/** order by stddev_pop() on columns of table "token_price" */ +export type Token_Price_Stddev_Pop_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Unbonding_Delegation_Stddev_Samp_Fields = { - __typename?: 'unbonding_delegation_stddev_samp_fields'; - height?: Maybe; +export type Token_Price_Stddev_Samp_Fields = { + __typename?: 'token_price_stddev_samp_fields'; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; -/** order by stddev_samp() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Stddev_Samp_Order_By = { - height?: Maybe; +/** order by stddev_samp() on columns of table "token_price" */ +export type Token_Price_Stddev_Samp_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; /** aggregate sum on columns */ -export type Unbonding_Delegation_Sum_Fields = { - __typename?: 'unbonding_delegation_sum_fields'; - height?: Maybe; +export type Token_Price_Sum_Fields = { + __typename?: 'token_price_sum_fields'; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; -/** order by sum() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Sum_Order_By = { - height?: Maybe; +/** order by sum() on columns of table "token_price" */ +export type Token_Price_Sum_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; /** aggregate var_pop on columns */ -export type Unbonding_Delegation_Var_Pop_Fields = { - __typename?: 'unbonding_delegation_var_pop_fields'; - height?: Maybe; +export type Token_Price_Var_Pop_Fields = { + __typename?: 'token_price_var_pop_fields'; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; -/** order by var_pop() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Var_Pop_Order_By = { - height?: Maybe; +/** order by var_pop() on columns of table "token_price" */ +export type Token_Price_Var_Pop_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; /** aggregate var_samp on columns */ -export type Unbonding_Delegation_Var_Samp_Fields = { - __typename?: 'unbonding_delegation_var_samp_fields'; - height?: Maybe; +export type Token_Price_Var_Samp_Fields = { + __typename?: 'token_price_var_samp_fields'; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; -/** order by var_samp() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Var_Samp_Order_By = { - height?: Maybe; +/** order by var_samp() on columns of table "token_price" */ +export type Token_Price_Var_Samp_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; /** aggregate variance on columns */ -export type Unbonding_Delegation_Variance_Fields = { - __typename?: 'unbonding_delegation_variance_fields'; - height?: Maybe; +export type Token_Price_Variance_Fields = { + __typename?: 'token_price_variance_fields'; + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; -/** order by variance() on columns of table "unbonding_delegation" */ -export type Unbonding_Delegation_Variance_Order_By = { - height?: Maybe; +/** order by variance() on columns of table "token_price" */ +export type Token_Price_Variance_Order_By = { + id?: Maybe; + market_cap?: Maybe; + price?: Maybe; }; -/** columns and relationships of "user_block" */ -export type User_Block = { - __typename?: 'user_block'; - blocked_user_address: Scalars['String']; - blocker_address: Scalars['String']; - height: Scalars['bigint']; +/** 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 */ - profile: Profile; + token: Token; + token_name: Scalars['String']; /** An object relationship */ - profileByBlockerAddress: Profile; - reason?: Maybe; - subspace: Scalars['String']; + token_price?: Maybe; + /** An array relationship */ + token_price_histories: Array; + /** An aggregate relationship */ + token_price_histories_aggregate: Token_Price_History_Aggregate; + /** An array relationship */ + token_prices: Array; + /** An aggregate relationship */ + token_prices_aggregate: Token_Price_Aggregate; +}; + + +/** columns and relationships of "token_unit" */ +export type Token_UnitToken_Price_HistoriesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "token_unit" */ +export type Token_UnitToken_Price_Histories_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "token_unit" */ +export type Token_UnitToken_PricesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "token_unit" */ +export type Token_UnitToken_Prices_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregated selection of "user_block" */ -export type User_Block_Aggregate = { - __typename?: 'user_block_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "token_unit" */ +export type Token_Unit_Aggregate = { + __typename?: 'token_unit_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "user_block" */ -export type User_Block_Aggregate_Fields = { - __typename?: 'user_block_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "token_unit" */ +export type Token_Unit_Aggregate_Fields = { + __typename?: 'token_unit_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; + 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 "user_block" */ -export type User_Block_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "token_unit" */ +export type Token_Unit_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "user_block" */ -export type User_Block_Aggregate_Order_By = { - avg?: Maybe; +/** order by aggregate values of table "token_unit" */ +export type Token_Unit_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate avg on columns */ -export type User_Block_Avg_Fields = { - __typename?: 'user_block_avg_fields'; - height?: Maybe; +export type Token_Unit_Avg_Fields = { + __typename?: 'token_unit_avg_fields'; + exponent?: Maybe; }; -/** order by avg() on columns of table "user_block" */ -export type User_Block_Avg_Order_By = { - height?: Maybe; +/** order by avg() on columns of table "token_unit" */ +export type Token_Unit_Avg_Order_By = { + exponent?: Maybe; }; -/** Boolean expression to filter rows from the table "user_block". All fields are combined with a logical 'AND'. */ -export type User_Block_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - blocked_user_address?: Maybe; - blocker_address?: Maybe; - height?: Maybe; - profile?: Maybe; - profileByBlockerAddress?: Maybe; - reason?: Maybe; - subspace?: Maybe; +/** 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?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + aliases?: Maybe<_Text_Comparison_Exp>; + denom?: Maybe; + exponent?: Maybe; + price_id?: Maybe; + token?: Maybe; + token_name?: Maybe; + token_price?: Maybe; + token_price_histories?: Maybe; + token_prices?: Maybe; }; /** aggregate max on columns */ -export type User_Block_Max_Fields = { - __typename?: 'user_block_max_fields'; - blocked_user_address?: Maybe; - blocker_address?: Maybe; - height?: Maybe; - reason?: Maybe; - subspace?: Maybe; +export type Token_Unit_Max_Fields = { + __typename?: 'token_unit_max_fields'; + denom?: Maybe; + exponent?: Maybe; + price_id?: Maybe; + token_name?: Maybe; }; -/** order by max() on columns of table "user_block" */ -export type User_Block_Max_Order_By = { - blocked_user_address?: Maybe; - blocker_address?: Maybe; - height?: Maybe; - reason?: Maybe; - subspace?: Maybe; +/** order by max() on columns of table "token_unit" */ +export type Token_Unit_Max_Order_By = { + denom?: Maybe; + exponent?: Maybe; + price_id?: Maybe; + token_name?: Maybe; }; /** aggregate min on columns */ -export type User_Block_Min_Fields = { - __typename?: 'user_block_min_fields'; - blocked_user_address?: Maybe; - blocker_address?: Maybe; - height?: Maybe; - reason?: Maybe; - subspace?: Maybe; +export type Token_Unit_Min_Fields = { + __typename?: 'token_unit_min_fields'; + denom?: Maybe; + exponent?: Maybe; + price_id?: Maybe; + token_name?: Maybe; }; -/** order by min() on columns of table "user_block" */ -export type User_Block_Min_Order_By = { - blocked_user_address?: Maybe; - blocker_address?: Maybe; - height?: Maybe; - reason?: Maybe; - subspace?: Maybe; +/** order by min() on columns of table "token_unit" */ +export type Token_Unit_Min_Order_By = { + denom?: Maybe; + exponent?: Maybe; + price_id?: Maybe; + token_name?: Maybe; }; -/** Ordering options when selecting data from "user_block". */ -export type User_Block_Order_By = { - blocked_user_address?: Maybe; - blocker_address?: Maybe; - height?: Maybe; - profile?: Maybe; - profileByBlockerAddress?: Maybe; - reason?: Maybe; - subspace?: Maybe; +/** Ordering options when selecting data from "token_unit". */ +export type Token_Unit_Order_By = { + aliases?: Maybe; + denom?: Maybe; + exponent?: Maybe; + price_id?: Maybe; + token?: Maybe; + token_name?: Maybe; + token_price?: Maybe; + token_price_histories_aggregate?: Maybe; + token_prices_aggregate?: Maybe; }; -/** select columns of table "user_block" */ -export enum User_Block_Select_Column { +/** select columns of table "token_unit" */ +export enum Token_Unit_Select_Column { /** column name */ - BlockedUserAddress = 'blocked_user_address', + Aliases = 'aliases', /** column name */ - BlockerAddress = 'blocker_address', + Denom = 'denom', /** column name */ - Height = 'height', + Exponent = 'exponent', /** column name */ - Reason = 'reason', + PriceId = 'price_id', /** column name */ - Subspace = 'subspace' + TokenName = 'token_name' } /** aggregate stddev on columns */ -export type User_Block_Stddev_Fields = { - __typename?: 'user_block_stddev_fields'; - height?: Maybe; +export type Token_Unit_Stddev_Fields = { + __typename?: 'token_unit_stddev_fields'; + exponent?: Maybe; }; -/** order by stddev() on columns of table "user_block" */ -export type User_Block_Stddev_Order_By = { - height?: Maybe; +/** order by stddev() on columns of table "token_unit" */ +export type Token_Unit_Stddev_Order_By = { + exponent?: Maybe; }; /** aggregate stddev_pop on columns */ -export type User_Block_Stddev_Pop_Fields = { - __typename?: 'user_block_stddev_pop_fields'; - height?: Maybe; +export type Token_Unit_Stddev_Pop_Fields = { + __typename?: 'token_unit_stddev_pop_fields'; + exponent?: Maybe; }; -/** order by stddev_pop() on columns of table "user_block" */ -export type User_Block_Stddev_Pop_Order_By = { - height?: Maybe; +/** order by stddev_pop() on columns of table "token_unit" */ +export type Token_Unit_Stddev_Pop_Order_By = { + exponent?: Maybe; }; /** aggregate stddev_samp on columns */ -export type User_Block_Stddev_Samp_Fields = { - __typename?: 'user_block_stddev_samp_fields'; - height?: Maybe; +export type Token_Unit_Stddev_Samp_Fields = { + __typename?: 'token_unit_stddev_samp_fields'; + exponent?: Maybe; }; -/** order by stddev_samp() on columns of table "user_block" */ -export type User_Block_Stddev_Samp_Order_By = { - height?: Maybe; +/** order by stddev_samp() on columns of table "token_unit" */ +export type Token_Unit_Stddev_Samp_Order_By = { + exponent?: Maybe; }; /** aggregate sum on columns */ -export type User_Block_Sum_Fields = { - __typename?: 'user_block_sum_fields'; - height?: Maybe; +export type Token_Unit_Sum_Fields = { + __typename?: 'token_unit_sum_fields'; + exponent?: Maybe; }; -/** order by sum() on columns of table "user_block" */ -export type User_Block_Sum_Order_By = { - height?: Maybe; +/** order by sum() on columns of table "token_unit" */ +export type Token_Unit_Sum_Order_By = { + exponent?: Maybe; }; /** aggregate var_pop on columns */ -export type User_Block_Var_Pop_Fields = { - __typename?: 'user_block_var_pop_fields'; - height?: Maybe; +export type Token_Unit_Var_Pop_Fields = { + __typename?: 'token_unit_var_pop_fields'; + exponent?: Maybe; }; -/** order by var_pop() on columns of table "user_block" */ -export type User_Block_Var_Pop_Order_By = { - height?: Maybe; +/** order by var_pop() on columns of table "token_unit" */ +export type Token_Unit_Var_Pop_Order_By = { + exponent?: Maybe; }; /** aggregate var_samp on columns */ -export type User_Block_Var_Samp_Fields = { - __typename?: 'user_block_var_samp_fields'; - height?: Maybe; +export type Token_Unit_Var_Samp_Fields = { + __typename?: 'token_unit_var_samp_fields'; + exponent?: Maybe; }; -/** order by var_samp() on columns of table "user_block" */ -export type User_Block_Var_Samp_Order_By = { - height?: Maybe; +/** order by var_samp() on columns of table "token_unit" */ +export type Token_Unit_Var_Samp_Order_By = { + exponent?: Maybe; }; /** aggregate variance on columns */ -export type User_Block_Variance_Fields = { - __typename?: 'user_block_variance_fields'; - height?: Maybe; +export type Token_Unit_Variance_Fields = { + __typename?: 'token_unit_variance_fields'; + exponent?: Maybe; }; -/** order by variance() on columns of table "user_block" */ -export type User_Block_Variance_Order_By = { - height?: Maybe; +/** order by variance() on columns of table "token_unit" */ +export type Token_Unit_Variance_Order_By = { + exponent?: Maybe; }; -/** columns and relationships of "user_poll_answer" */ -export type User_Poll_Answer = { - __typename?: 'user_poll_answer'; - answer: Scalars['Int']; - answerer_address: Scalars['String']; - height: Scalars['bigint']; - /** An object relationship */ - poll: Poll; - poll_id: Scalars['Int']; +/** columns and relationships of "transaction" */ +export type Transaction = { + __typename?: 'transaction'; /** An object relationship */ - profile: Profile; + block: Block; + fee: Scalars['jsonb']; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash: Scalars['String']; + height: Scalars['bigint']; + logs?: Maybe; + memo?: Maybe; + messages: Scalars['jsonb']; + /** An array relationship */ + messagesByTransactionHash: Array; + /** An aggregate relationship */ + messagesByTransactionHash_aggregate: Message_Aggregate; + raw_log?: Maybe; + signatures: Scalars['_text']; + signer_infos: Scalars['jsonb']; + success: Scalars['Boolean']; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionFeeArgs = { + path?: Maybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionLogsArgs = { + path?: Maybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionMessagesArgs = { + path?: Maybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionMessagesByTransactionHashArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionMessagesByTransactionHash_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregated selection of "user_poll_answer" */ -export type User_Poll_Answer_Aggregate = { - __typename?: 'user_poll_answer_aggregate'; - aggregate?: Maybe; - nodes: Array; + +/** columns and relationships of "transaction" */ +export type TransactionSigner_InfosArgs = { + path?: Maybe; +}; + +/** aggregated selection of "transaction" */ +export type Transaction_Aggregate = { + __typename?: 'transaction_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "user_poll_answer" */ -export type User_Poll_Answer_Aggregate_Fields = { - __typename?: 'user_poll_answer_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "transaction" */ +export type Transaction_Aggregate_Fields = { + __typename?: 'transaction_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; + 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 "user_poll_answer" */ -export type User_Poll_Answer_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "transaction" */ +export type Transaction_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; -/** order by aggregate values of table "user_poll_answer" */ -export type User_Poll_Answer_Aggregate_Order_By = { - avg?: Maybe; +/** order by aggregate values of table "transaction" */ +export type Transaction_Aggregate_Order_By = { + avg?: Maybe; count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate avg on columns */ -export type User_Poll_Answer_Avg_Fields = { - __typename?: 'user_poll_answer_avg_fields'; - answer?: Maybe; +export type Transaction_Avg_Fields = { + __typename?: 'transaction_avg_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; - poll_id?: Maybe; }; -/** order by avg() on columns of table "user_poll_answer" */ -export type User_Poll_Answer_Avg_Order_By = { - answer?: Maybe; +/** order by avg() on columns of table "transaction" */ +export type Transaction_Avg_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; - poll_id?: Maybe; }; -/** Boolean expression to filter rows from the table "user_poll_answer". All fields are combined with a logical 'AND'. */ -export type User_Poll_Answer_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - answer?: Maybe; - answerer_address?: Maybe; +/** Boolean expression to filter rows from the table "transaction". All fields are combined with a logical 'AND'. */ +export type Transaction_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + block?: Maybe; + fee?: Maybe; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; height?: Maybe; - poll?: Maybe; - poll_id?: Maybe; - profile?: Maybe; + logs?: Maybe; + memo?: Maybe; + messages?: Maybe; + messagesByTransactionHash?: Maybe; + raw_log?: Maybe; + signatures?: Maybe<_Text_Comparison_Exp>; + signer_infos?: Maybe; + success?: Maybe; }; /** aggregate max on columns */ -export type User_Poll_Answer_Max_Fields = { - __typename?: 'user_poll_answer_max_fields'; - answer?: Maybe; - answerer_address?: Maybe; +export type Transaction_Max_Fields = { + __typename?: 'transaction_max_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; height?: Maybe; - poll_id?: Maybe; + memo?: Maybe; + raw_log?: Maybe; }; -/** order by max() on columns of table "user_poll_answer" */ -export type User_Poll_Answer_Max_Order_By = { - answer?: Maybe; - answerer_address?: Maybe; +/** order by max() on columns of table "transaction" */ +export type Transaction_Max_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; height?: Maybe; - poll_id?: Maybe; + memo?: Maybe; + raw_log?: Maybe; }; /** aggregate min on columns */ -export type User_Poll_Answer_Min_Fields = { - __typename?: 'user_poll_answer_min_fields'; - answer?: Maybe; - answerer_address?: Maybe; +export type Transaction_Min_Fields = { + __typename?: 'transaction_min_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; height?: Maybe; - poll_id?: Maybe; + memo?: Maybe; + raw_log?: Maybe; }; -/** order by min() on columns of table "user_poll_answer" */ -export type User_Poll_Answer_Min_Order_By = { - answer?: Maybe; - answerer_address?: Maybe; +/** order by min() on columns of table "transaction" */ +export type Transaction_Min_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; height?: Maybe; - poll_id?: Maybe; + memo?: Maybe; + raw_log?: Maybe; }; -/** Ordering options when selecting data from "user_poll_answer". */ -export type User_Poll_Answer_Order_By = { - answer?: Maybe; - answerer_address?: Maybe; +/** Ordering options when selecting data from "transaction". */ +export type Transaction_Order_By = { + block?: Maybe; + fee?: Maybe; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; height?: Maybe; - poll?: Maybe; - poll_id?: Maybe; - profile?: Maybe; + logs?: Maybe; + memo?: Maybe; + messages?: Maybe; + messagesByTransactionHash_aggregate?: Maybe; + raw_log?: Maybe; + signatures?: Maybe; + signer_infos?: Maybe; + success?: Maybe; }; -/** select columns of table "user_poll_answer" */ -export enum User_Poll_Answer_Select_Column { +/** select columns of table "transaction" */ +export enum Transaction_Select_Column { + /** column name */ + Fee = 'fee', + /** column name */ + GasUsed = 'gas_used', /** column name */ - Answer = 'answer', + GasWanted = 'gas_wanted', /** column name */ - AnswererAddress = 'answerer_address', + Hash = 'hash', /** column name */ Height = 'height', /** column name */ - PollId = 'poll_id' + 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' } /** aggregate stddev on columns */ -export type User_Poll_Answer_Stddev_Fields = { - __typename?: 'user_poll_answer_stddev_fields'; - answer?: Maybe; +export type Transaction_Stddev_Fields = { + __typename?: 'transaction_stddev_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; - poll_id?: Maybe; }; -/** order by stddev() on columns of table "user_poll_answer" */ -export type User_Poll_Answer_Stddev_Order_By = { - answer?: Maybe; +/** order by stddev() on columns of table "transaction" */ +export type Transaction_Stddev_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; - poll_id?: Maybe; }; /** aggregate stddev_pop on columns */ -export type User_Poll_Answer_Stddev_Pop_Fields = { - __typename?: 'user_poll_answer_stddev_pop_fields'; - answer?: Maybe; +export type Transaction_Stddev_Pop_Fields = { + __typename?: 'transaction_stddev_pop_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; - poll_id?: Maybe; }; -/** order by stddev_pop() on columns of table "user_poll_answer" */ -export type User_Poll_Answer_Stddev_Pop_Order_By = { - answer?: Maybe; +/** order by stddev_pop() on columns of table "transaction" */ +export type Transaction_Stddev_Pop_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; - poll_id?: Maybe; }; /** aggregate stddev_samp on columns */ -export type User_Poll_Answer_Stddev_Samp_Fields = { - __typename?: 'user_poll_answer_stddev_samp_fields'; - answer?: Maybe; +export type Transaction_Stddev_Samp_Fields = { + __typename?: 'transaction_stddev_samp_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; - poll_id?: Maybe; }; -/** order by stddev_samp() on columns of table "user_poll_answer" */ -export type User_Poll_Answer_Stddev_Samp_Order_By = { - answer?: Maybe; +/** order by stddev_samp() on columns of table "transaction" */ +export type Transaction_Stddev_Samp_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; - poll_id?: Maybe; }; /** aggregate sum on columns */ -export type User_Poll_Answer_Sum_Fields = { - __typename?: 'user_poll_answer_sum_fields'; - answer?: Maybe; +export type Transaction_Sum_Fields = { + __typename?: 'transaction_sum_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; - poll_id?: Maybe; }; -/** order by sum() on columns of table "user_poll_answer" */ -export type User_Poll_Answer_Sum_Order_By = { - answer?: Maybe; +/** order by sum() on columns of table "transaction" */ +export type Transaction_Sum_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; - poll_id?: Maybe; }; /** aggregate var_pop on columns */ -export type User_Poll_Answer_Var_Pop_Fields = { - __typename?: 'user_poll_answer_var_pop_fields'; - answer?: Maybe; +export type Transaction_Var_Pop_Fields = { + __typename?: 'transaction_var_pop_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; - poll_id?: Maybe; }; -/** order by var_pop() on columns of table "user_poll_answer" */ -export type User_Poll_Answer_Var_Pop_Order_By = { - answer?: Maybe; +/** order by var_pop() on columns of table "transaction" */ +export type Transaction_Var_Pop_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; - poll_id?: Maybe; }; /** aggregate var_samp on columns */ -export type User_Poll_Answer_Var_Samp_Fields = { - __typename?: 'user_poll_answer_var_samp_fields'; - answer?: Maybe; +export type Transaction_Var_Samp_Fields = { + __typename?: 'transaction_var_samp_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; - poll_id?: Maybe; }; -/** order by var_samp() on columns of table "user_poll_answer" */ -export type User_Poll_Answer_Var_Samp_Order_By = { - answer?: Maybe; +/** order by var_samp() on columns of table "transaction" */ +export type Transaction_Var_Samp_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; - poll_id?: Maybe; }; /** aggregate variance on columns */ -export type User_Poll_Answer_Variance_Fields = { - __typename?: 'user_poll_answer_variance_fields'; - answer?: Maybe; +export type Transaction_Variance_Fields = { + __typename?: 'transaction_variance_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; - poll_id?: Maybe; }; -/** order by variance() on columns of table "user_poll_answer" */ -export type User_Poll_Answer_Variance_Order_By = { - answer?: Maybe; +/** order by variance() on columns of table "transaction" */ +export type Transaction_Variance_Order_By = { + gas_used?: Maybe; + gas_wanted?: Maybe; height?: Maybe; - poll_id?: Maybe; }; /** columns and relationships of "validator" */ @@ -16864,14 +10345,6 @@ export type Validator = { consensus_address: Scalars['String']; consensus_pubkey: Scalars['String']; /** An array relationship */ - delegation_rewards: Array; - /** An aggregate relationship */ - delegation_rewards_aggregate: Delegation_Reward_Aggregate; - /** An array relationship */ - delegations: Array; - /** An aggregate relationship */ - delegations_aggregate: Delegation_Aggregate; - /** An array relationship */ double_sign_votes: Array; /** An aggregate relationship */ double_sign_votes_aggregate: Double_Sign_Vote_Aggregate; @@ -16880,28 +10353,6 @@ export type Validator = { /** An aggregate relationship */ pre_commits_aggregate: Pre_Commit_Aggregate; /** An array relationship */ - proposal_validator_status_snapshots: Array; - /** An aggregate relationship */ - proposal_validator_status_snapshots_aggregate: Proposal_Validator_Status_Snapshot_Aggregate; - /** An array relationship */ - redelegationsByDstValidatorAddress: Array; - /** An aggregate relationship */ - redelegationsByDstValidatorAddress_aggregate: Redelegation_Aggregate; - /** An array relationship */ - redelegationsBySrcValidatorAddress: Array; - /** An aggregate relationship */ - redelegationsBySrcValidatorAddress_aggregate: Redelegation_Aggregate; - /** A computed field, executes function "self_delegations" */ - self_delegations?: Maybe>; - /** An array relationship */ - unbonding_delegations: Array; - /** An aggregate relationship */ - unbonding_delegations_aggregate: Unbonding_Delegation_Aggregate; - /** An array relationship */ - validator_commission_amounts: Array; - /** An aggregate relationship */ - validator_commission_amounts_aggregate: Validator_Commission_Amount_Aggregate; - /** An array relationship */ validator_commissions: Array; /** An aggregate relationship */ validator_commissions_aggregate: Validator_Commission_Aggregate; @@ -16917,226 +10368,76 @@ export type Validator = { validator_infos_aggregate: Validator_Info_Aggregate; /** An array relationship */ validator_signing_infos: Array; - /** An aggregate relationship */ - validator_signing_infos_aggregate: Validator_Signing_Info_Aggregate; - /** 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?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorBlocks_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorDelegation_RewardsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorDelegation_Rewards_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorDelegationsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorDelegations_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorDouble_Sign_VotesArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorDouble_Sign_Votes_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorPre_CommitsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorPre_Commits_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorProposal_Validator_Status_SnapshotsArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorProposal_Validator_Status_Snapshots_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorRedelegationsByDstValidatorAddressArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorRedelegationsByDstValidatorAddress_AggregateArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; -}; - - -/** columns and relationships of "validator" */ -export type ValidatorRedelegationsBySrcValidatorAddressArgs = { - distinct_on?: Maybe>; - limit?: Maybe; - offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + /** An aggregate relationship */ + validator_signing_infos_aggregate: Validator_Signing_Info_Aggregate; + /** 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 ValidatorRedelegationsBySrcValidatorAddress_AggregateArgs = { - distinct_on?: Maybe>; +export type ValidatorBlocksArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; /** columns and relationships of "validator" */ -export type ValidatorSelf_DelegationsArgs = { - distinct_on?: Maybe>; +export type ValidatorBlocks_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; /** columns and relationships of "validator" */ -export type ValidatorUnbonding_DelegationsArgs = { - distinct_on?: Maybe>; +export type ValidatorDouble_Sign_VotesArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; /** columns and relationships of "validator" */ -export type ValidatorUnbonding_Delegations_AggregateArgs = { - distinct_on?: Maybe>; +export type ValidatorDouble_Sign_Votes_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; /** columns and relationships of "validator" */ -export type ValidatorValidator_Commission_AmountsArgs = { - distinct_on?: Maybe>; +export type ValidatorPre_CommitsArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; /** columns and relationships of "validator" */ -export type ValidatorValidator_Commission_Amounts_AggregateArgs = { - distinct_on?: Maybe>; +export type ValidatorPre_Commits_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; @@ -17289,16 +10590,8 @@ export type Validator_Bool_Exp = { blocks?: Maybe; consensus_address?: Maybe; consensus_pubkey?: Maybe; - delegation_rewards?: Maybe; - delegations?: Maybe; double_sign_votes?: Maybe; pre_commits?: Maybe; - proposal_validator_status_snapshots?: Maybe; - redelegationsByDstValidatorAddress?: Maybe; - redelegationsBySrcValidatorAddress?: Maybe; - self_delegations?: Maybe; - unbonding_delegations?: Maybe; - validator_commission_amounts?: Maybe; validator_commissions?: Maybe; validator_descriptions?: Maybe; validator_info?: Maybe; @@ -17313,7 +10606,7 @@ export type Validator_Commission = { __typename?: 'validator_commission'; commission: Scalars['numeric']; height: Scalars['bigint']; - min_self_delegation: Scalars['bigint']; + min_self_delegation: Scalars['numeric']; /** An object relationship */ validator: Validator; validator_address: Scalars['String']; @@ -17364,204 +10657,6 @@ export type Validator_Commission_Aggregate_Order_By = { variance?: Maybe; }; -/** columns and relationships of "validator_commission_amount" */ -export type Validator_Commission_Amount = { - __typename?: 'validator_commission_amount'; - amount: Scalars['_dec_coin']; - height: Scalars['bigint']; - /** An object relationship */ - validator: Validator; - validator_address: Scalars['String']; -}; - -/** aggregated selection of "validator_commission_amount" */ -export type Validator_Commission_Amount_Aggregate = { - __typename?: 'validator_commission_amount_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "validator_commission_amount" */ -export type Validator_Commission_Amount_Aggregate_Fields = { - __typename?: 'validator_commission_amount_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_commission_amount" */ -export type Validator_Commission_Amount_Aggregate_FieldsCountArgs = { - columns?: Maybe>; - distinct?: Maybe; -}; - -/** order by aggregate values of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Validator_Commission_Amount_Avg_Fields = { - __typename?: 'validator_commission_amount_avg_fields'; - height?: Maybe; -}; - -/** order by avg() on columns of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Avg_Order_By = { - height?: Maybe; -}; - -/** Boolean expression to filter rows from the table "validator_commission_amount". All fields are combined with a logical 'AND'. */ -export type Validator_Commission_Amount_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - amount?: Maybe<_Dec_Coin_Comparison_Exp>; - height?: Maybe; - validator?: Maybe; - validator_address?: Maybe; -}; - -/** aggregate max on columns */ -export type Validator_Commission_Amount_Max_Fields = { - __typename?: 'validator_commission_amount_max_fields'; - height?: Maybe; - validator_address?: Maybe; -}; - -/** order by max() on columns of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Max_Order_By = { - height?: Maybe; - validator_address?: Maybe; -}; - -/** aggregate min on columns */ -export type Validator_Commission_Amount_Min_Fields = { - __typename?: 'validator_commission_amount_min_fields'; - height?: Maybe; - validator_address?: Maybe; -}; - -/** order by min() on columns of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Min_Order_By = { - height?: Maybe; - validator_address?: Maybe; -}; - -/** Ordering options when selecting data from "validator_commission_amount". */ -export type Validator_Commission_Amount_Order_By = { - amount?: Maybe; - height?: Maybe; - validator?: Maybe; - validator_address?: Maybe; -}; - -/** select columns of table "validator_commission_amount" */ -export enum Validator_Commission_Amount_Select_Column { - /** column name */ - Amount = 'amount', - /** column name */ - Height = 'height', - /** column name */ - ValidatorAddress = 'validator_address' -} - -/** aggregate stddev on columns */ -export type Validator_Commission_Amount_Stddev_Fields = { - __typename?: 'validator_commission_amount_stddev_fields'; - height?: Maybe; -}; - -/** order by stddev() on columns of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Stddev_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Validator_Commission_Amount_Stddev_Pop_Fields = { - __typename?: 'validator_commission_amount_stddev_pop_fields'; - height?: Maybe; -}; - -/** order by stddev_pop() on columns of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Stddev_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Validator_Commission_Amount_Stddev_Samp_Fields = { - __typename?: 'validator_commission_amount_stddev_samp_fields'; - height?: Maybe; -}; - -/** order by stddev_samp() on columns of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Stddev_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Validator_Commission_Amount_Sum_Fields = { - __typename?: 'validator_commission_amount_sum_fields'; - height?: Maybe; -}; - -/** order by sum() on columns of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Sum_Order_By = { - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Validator_Commission_Amount_Var_Pop_Fields = { - __typename?: 'validator_commission_amount_var_pop_fields'; - height?: Maybe; -}; - -/** order by var_pop() on columns of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Var_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Validator_Commission_Amount_Var_Samp_Fields = { - __typename?: 'validator_commission_amount_var_samp_fields'; - height?: Maybe; -}; - -/** order by var_samp() on columns of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Var_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Validator_Commission_Amount_Variance_Fields = { - __typename?: 'validator_commission_amount_variance_fields'; - height?: Maybe; -}; - -/** order by variance() on columns of table "validator_commission_amount" */ -export type Validator_Commission_Amount_Variance_Order_By = { - height?: Maybe; -}; - /** aggregate avg on columns */ export type Validator_Commission_Avg_Fields = { __typename?: 'validator_commission_avg_fields'; @@ -17584,7 +10679,7 @@ export type Validator_Commission_Bool_Exp = { _or?: Maybe>; commission?: Maybe; height?: Maybe; - min_self_delegation?: Maybe; + min_self_delegation?: Maybe; validator?: Maybe; validator_address?: Maybe; }; @@ -17594,7 +10689,7 @@ export type Validator_Commission_Max_Fields = { __typename?: 'validator_commission_max_fields'; commission?: Maybe; height?: Maybe; - min_self_delegation?: Maybe; + min_self_delegation?: Maybe; validator_address?: Maybe; }; @@ -17611,7 +10706,7 @@ export type Validator_Commission_Min_Fields = { __typename?: 'validator_commission_min_fields'; commission?: Maybe; height?: Maybe; - min_self_delegation?: Maybe; + min_self_delegation?: Maybe; validator_address?: Maybe; }; @@ -17694,7 +10789,7 @@ export type Validator_Commission_Sum_Fields = { __typename?: 'validator_commission_sum_fields'; commission?: Maybe; height?: Maybe; - min_self_delegation?: Maybe; + min_self_delegation?: Maybe; }; /** order by sum() on columns of table "validator_commission" */ @@ -18002,7 +11097,6 @@ export type Validator_Info = { /** An object relationship */ account?: Maybe; consensus_address: Scalars['String']; - height: Scalars['bigint']; max_change_rate: Scalars['String']; max_rate: Scalars['String']; operator_address: Scalars['String']; @@ -18021,17 +11115,9 @@ export type Validator_Info_Aggregate = { /** aggregate fields of "validator_info" */ export type Validator_Info_Aggregate_Fields = { __typename?: 'validator_info_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; }; @@ -18043,28 +11129,9 @@ export type Validator_Info_Aggregate_FieldsCountArgs = { /** order by aggregate values of table "validator_info" */ export type Validator_Info_Aggregate_Order_By = { - avg?: Maybe; count?: Maybe; max?: Maybe; min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - -/** aggregate avg on columns */ -export type Validator_Info_Avg_Fields = { - __typename?: 'validator_info_avg_fields'; - height?: Maybe; -}; - -/** order by avg() on columns of table "validator_info" */ -export type Validator_Info_Avg_Order_By = { - height?: Maybe; }; /** Boolean expression to filter rows from the table "validator_info". All fields are combined with a logical 'AND'. */ @@ -18074,7 +11141,6 @@ export type Validator_Info_Bool_Exp = { _or?: Maybe>; account?: Maybe; consensus_address?: Maybe; - height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -18086,7 +11152,6 @@ export type Validator_Info_Bool_Exp = { export type Validator_Info_Max_Fields = { __typename?: 'validator_info_max_fields'; consensus_address?: Maybe; - height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -18096,7 +11161,6 @@ export type Validator_Info_Max_Fields = { /** order by max() on columns of table "validator_info" */ export type Validator_Info_Max_Order_By = { consensus_address?: Maybe; - height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -18107,7 +11171,6 @@ export type Validator_Info_Max_Order_By = { export type Validator_Info_Min_Fields = { __typename?: 'validator_info_min_fields'; consensus_address?: Maybe; - height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -18117,7 +11180,6 @@ export type Validator_Info_Min_Fields = { /** order by min() on columns of table "validator_info" */ export type Validator_Info_Min_Order_By = { consensus_address?: Maybe; - height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -18128,7 +11190,6 @@ export type Validator_Info_Min_Order_By = { export type Validator_Info_Order_By = { account?: Maybe; consensus_address?: Maybe; - height?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -18141,8 +11202,6 @@ export enum Validator_Info_Select_Column { /** column name */ ConsensusAddress = 'consensus_address', /** column name */ - Height = 'height', - /** column name */ MaxChangeRate = 'max_change_rate', /** column name */ MaxRate = 'max_rate', @@ -18152,83 +11211,6 @@ export enum Validator_Info_Select_Column { SelfDelegateAddress = 'self_delegate_address' } -/** aggregate stddev on columns */ -export type Validator_Info_Stddev_Fields = { - __typename?: 'validator_info_stddev_fields'; - height?: Maybe; -}; - -/** order by stddev() on columns of table "validator_info" */ -export type Validator_Info_Stddev_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Validator_Info_Stddev_Pop_Fields = { - __typename?: 'validator_info_stddev_pop_fields'; - height?: Maybe; -}; - -/** order by stddev_pop() on columns of table "validator_info" */ -export type Validator_Info_Stddev_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Validator_Info_Stddev_Samp_Fields = { - __typename?: 'validator_info_stddev_samp_fields'; - height?: Maybe; -}; - -/** order by stddev_samp() on columns of table "validator_info" */ -export type Validator_Info_Stddev_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate sum on columns */ -export type Validator_Info_Sum_Fields = { - __typename?: 'validator_info_sum_fields'; - height?: Maybe; -}; - -/** order by sum() on columns of table "validator_info" */ -export type Validator_Info_Sum_Order_By = { - height?: Maybe; -}; - -/** aggregate var_pop on columns */ -export type Validator_Info_Var_Pop_Fields = { - __typename?: 'validator_info_var_pop_fields'; - height?: Maybe; -}; - -/** order by var_pop() on columns of table "validator_info" */ -export type Validator_Info_Var_Pop_Order_By = { - height?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Validator_Info_Var_Samp_Fields = { - __typename?: 'validator_info_var_samp_fields'; - height?: Maybe; -}; - -/** order by var_samp() on columns of table "validator_info" */ -export type Validator_Info_Var_Samp_Order_By = { - height?: Maybe; -}; - -/** aggregate variance on columns */ -export type Validator_Info_Variance_Fields = { - __typename?: 'validator_info_variance_fields'; - height?: Maybe; -}; - -/** order by variance() on columns of table "validator_info" */ -export type Validator_Info_Variance_Order_By = { - height?: Maybe; -}; - /** aggregate max on columns */ export type Validator_Max_Fields = { __typename?: 'validator_max_fields'; @@ -18248,15 +11230,8 @@ export type Validator_Order_By = { blocks_aggregate?: Maybe; consensus_address?: Maybe; consensus_pubkey?: Maybe; - delegation_rewards_aggregate?: Maybe; - delegations_aggregate?: Maybe; double_sign_votes_aggregate?: Maybe; pre_commits_aggregate?: Maybe; - proposal_validator_status_snapshots_aggregate?: Maybe; - redelegationsByDstValidatorAddress_aggregate?: Maybe; - redelegationsBySrcValidatorAddress_aggregate?: Maybe; - unbonding_delegations_aggregate?: Maybe; - validator_commission_amounts_aggregate?: Maybe; validator_commissions_aggregate?: Maybe; validator_descriptions_aggregate?: Maybe; validator_info?: Maybe; @@ -18266,7 +11241,6 @@ export type Validator_Order_By = { validator_voting_powers_aggregate?: Maybe; }; - /** select columns of table "validator" */ export enum Validator_Select_Column { /** column name */ @@ -18784,8 +11758,6 @@ export type Validator_Status_Variance_Order_By = { /** 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; @@ -18856,7 +11828,6 @@ export type Validator_Voting_Power_Bool_Exp = { _and?: Maybe>; _not?: Maybe; _or?: Maybe>; - block?: Maybe; height?: Maybe; validator?: Maybe; validator_address?: Maybe; @@ -18895,7 +11866,6 @@ export type Validator_Voting_Power_Min_Order_By = { /** Ordering options when selecting data from "validator_voting_power". */ export type Validator_Voting_Power_Order_By = { - block?: Maybe; height?: Maybe; validator?: Maybe; validator_address?: Maybe; @@ -19070,32 +12040,12 @@ export type Vesting_Account_Aggregate_FieldsCountArgs = { distinct?: Maybe; }; -/** order by aggregate values of table "vesting_account" */ -export type Vesting_Account_Aggregate_Order_By = { - avg?: Maybe; - count?: Maybe; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; -}; - /** aggregate avg on columns */ export type Vesting_Account_Avg_Fields = { __typename?: 'vesting_account_avg_fields'; id?: Maybe; }; -/** order by avg() on columns of table "vesting_account" */ -export type Vesting_Account_Avg_Order_By = { - id?: Maybe; -}; - /** 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?: Maybe>; @@ -19121,15 +12071,6 @@ export type Vesting_Account_Max_Fields = { type?: Maybe; }; -/** order by max() on columns of table "vesting_account" */ -export type Vesting_Account_Max_Order_By = { - address?: Maybe; - end_time?: Maybe; - id?: Maybe; - start_time?: Maybe; - type?: Maybe; -}; - /** aggregate min on columns */ export type Vesting_Account_Min_Fields = { __typename?: 'vesting_account_min_fields'; @@ -19140,15 +12081,6 @@ export type Vesting_Account_Min_Fields = { type?: Maybe; }; -/** order by min() on columns of table "vesting_account" */ -export type Vesting_Account_Min_Order_By = { - address?: Maybe; - end_time?: Maybe; - id?: Maybe; - start_time?: Maybe; - type?: Maybe; -}; - /** Ordering options when selecting data from "vesting_account". */ export type Vesting_Account_Order_By = { account?: Maybe; @@ -19183,77 +12115,42 @@ export type Vesting_Account_Stddev_Fields = { id?: Maybe; }; -/** order by stddev() on columns of table "vesting_account" */ -export type Vesting_Account_Stddev_Order_By = { - id?: Maybe; -}; - /** aggregate stddev_pop on columns */ export type Vesting_Account_Stddev_Pop_Fields = { __typename?: 'vesting_account_stddev_pop_fields'; id?: Maybe; }; -/** order by stddev_pop() on columns of table "vesting_account" */ -export type Vesting_Account_Stddev_Pop_Order_By = { - id?: Maybe; -}; - /** aggregate stddev_samp on columns */ export type Vesting_Account_Stddev_Samp_Fields = { __typename?: 'vesting_account_stddev_samp_fields'; id?: Maybe; }; -/** order by stddev_samp() on columns of table "vesting_account" */ -export type Vesting_Account_Stddev_Samp_Order_By = { - id?: Maybe; -}; - /** aggregate sum on columns */ export type Vesting_Account_Sum_Fields = { __typename?: 'vesting_account_sum_fields'; id?: Maybe; }; -/** order by sum() on columns of table "vesting_account" */ -export type Vesting_Account_Sum_Order_By = { - id?: Maybe; -}; - /** aggregate var_pop on columns */ export type Vesting_Account_Var_Pop_Fields = { __typename?: 'vesting_account_var_pop_fields'; id?: Maybe; }; -/** order by var_pop() on columns of table "vesting_account" */ -export type Vesting_Account_Var_Pop_Order_By = { - id?: Maybe; -}; - /** aggregate var_samp on columns */ export type Vesting_Account_Var_Samp_Fields = { __typename?: 'vesting_account_var_samp_fields'; id?: Maybe; }; -/** order by var_samp() on columns of table "vesting_account" */ -export type Vesting_Account_Var_Samp_Order_By = { - id?: Maybe; -}; - /** aggregate variance on columns */ export type Vesting_Account_Variance_Fields = { __typename?: 'vesting_account_variance_fields'; id?: Maybe; }; -/** order by variance() on columns of table "vesting_account" */ -export type Vesting_Account_Variance_Order_By = { - id?: Maybe; -}; - /** columns and relationships of "vesting_period" */ export type Vesting_Period = { __typename?: 'vesting_period'; From 2c94f65f2d52f33e4b642b0539d8cf82aebb2c31 Mon Sep 17 00:00:00 2001 From: SpaghettiOverload Date: Wed, 6 Apr 2022 13:23:52 +0300 Subject: [PATCH 30/54] Enhancing MsgSetMinFeeTransferToEth Tx message --- src/components/msg/utils.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/msg/utils.tsx b/src/components/msg/utils.tsx index 014c7214e8..f31ac8ca39 100644 --- a/src/components/msg/utils.tsx +++ b/src/components/msg/utils.tsx @@ -404,7 +404,7 @@ const getDataByType = (type: string) => { }, '/gravity.v1.MsgSetMinFeeTransferToEth': { model: MODELS.MsgUnknown, - content: COMPONENTS.UnBlockUser, + content: COMPONENTS.Unknown, tagTheme: 'four', tagDisplay: 'txMsgSetMinFeeTransferToEth', }, From 2351ebfe15ee9915fe9aad1b0a7fc5f24af8b57e Mon Sep 17 00:00:00 2001 From: avalkov Date: Thu, 7 Apr 2022 09:29:24 +0300 Subject: [PATCH 31/54] Display contract execution info on transaction details page --- public/locales/en/message_contents.json | 3 +- public/locales/en/message_labels.json | 3 +- public/locales/en/transactions.json | 3 +- .../cosmwasm/execute_contract/arguments.tsx | 26 ++++++++++ .../msg/cosmwasm/execute_contract/index.tsx | 52 +++++++++++++++++++ .../msg/cosmwasm/execute_contract/styles.tsx | 30 +++++++++++ src/components/msg/index.ts | 2 + src/components/msg/utils.tsx | 10 +++- src/models/index.ts | 2 + .../msg/cosmwasm/msg_execute_contract.ts | 42 +++++++++++++++ src/models/msg/types.ts | 2 +- 11 files changed, 170 insertions(+), 5 deletions(-) create mode 100644 src/components/msg/cosmwasm/execute_contract/arguments.tsx create mode 100644 src/components/msg/cosmwasm/execute_contract/index.tsx create mode 100644 src/components/msg/cosmwasm/execute_contract/styles.tsx create mode 100644 src/models/msg/cosmwasm/msg_execute_contract.ts diff --git a/public/locales/en/message_contents.json b/public/locales/en/message_contents.json index 6392a02b27..007b74da96 100644 --- a/public/locales/en/message_contents.json +++ b/public/locales/en/message_contents.json @@ -55,5 +55,6 @@ "MsgGrantAllowance": "<0>{{granter}} granted allowance for <1>{{grantee}}", "MsgRevokeAllowance": "<0>{{granter}} revoked allowance for <1>{{grantee}}", "MsgCreateVestingAccount": "Vesting account created for <0>{{toAddress}}", - "MsgCreatePeriodicVestingAccount": "Periodic vesting account created for <0>{{toAddress}}" + "MsgCreatePeriodicVestingAccount": "Periodic vesting account created for <0>{{toAddress}}", + "txExecuteContract": "<0>{{user}} executed <1>{{method}} on <2>{{address}}" } diff --git a/public/locales/en/message_labels.json b/public/locales/en/message_labels.json index d681f1c96a..57e023b1dc 100644 --- a/public/locales/en/message_labels.json +++ b/public/locales/en/message_labels.json @@ -54,5 +54,6 @@ "MsgGrantAllowance": "Grant Allowance", "MsgRevokeAllowance": "Revoke Allowance", "MsgCreateVestingAccount": "Create Vesting Account", - "MsgCreatePeriodicVestingAccount": "Create Periodic Vesting Account" + "MsgCreatePeriodicVestingAccount": "Create Periodic Vesting Account", + "txExecuteContract": "Executing contract" } diff --git a/public/locales/en/transactions.json b/public/locales/en/transactions.json index 9834ee30b0..82d55015af 100644 --- a/public/locales/en/transactions.json +++ b/public/locales/en/transactions.json @@ -33,5 +33,6 @@ "authz": "Authz", "feegrant": "Feegrant", "vesting": "Vesting", - "logs": "Logs" + "logs": "Logs", + "arguments": "Arguments" } diff --git a/src/components/msg/cosmwasm/execute_contract/arguments.tsx b/src/components/msg/cosmwasm/execute_contract/arguments.tsx new file mode 100644 index 0000000000..d21d7e0469 --- /dev/null +++ b/src/components/msg/cosmwasm/execute_contract/arguments.tsx @@ -0,0 +1,26 @@ +import React from 'react'; +import useTranslation from 'next-translate/useTranslation'; +import { Typography } from '@material-ui/core'; +import { Box } from '@components'; +import { useGetStyles } from './styles' + +const Arguments: React.FC<{ + args: string; +} & ComponentDefault> = ({ args }) => { + const { classes } = useGetStyles(); + const { t } = useTranslation('transactions'); + return ( + + + {t('arguments')} + +
+        
+          {JSON.stringify(JSON.parse(args), null, 4)}
+        
+      
+
+ ); +}; + +export default Arguments; diff --git a/src/components/msg/cosmwasm/execute_contract/index.tsx b/src/components/msg/cosmwasm/execute_contract/index.tsx new file mode 100644 index 0000000000..7680ad6bcb --- /dev/null +++ b/src/components/msg/cosmwasm/execute_contract/index.tsx @@ -0,0 +1,52 @@ +import React from 'react'; +import Trans from 'next-translate/Trans'; +import { Typography } from '@material-ui/core'; +import { Name } from '@components'; +import Arguments from './arguments' +import { MsgExecuteContract } from '@models'; +import { + useProfileRecoil, +} from '@recoil/profiles'; + +const ExecuteContract = (props: { + message: MsgExecuteContract; +}) => { + const { message } = props; + + const sender = useProfileRecoil(message.sender); + const senderMoniker = sender ? sender?.name : message.sender; + + const contract = useProfileRecoil(message.contract); + const contractMoniker = contract ? contract?.name : message.contract; + + return ( + <> + + + ), + , + ( + + ), + ]} + values={{ + method: message.method, + }} + /> + + {message.arguments && } + + ); +}; + +export default ExecuteContract; diff --git a/src/components/msg/cosmwasm/execute_contract/styles.tsx b/src/components/msg/cosmwasm/execute_contract/styles.tsx new file mode 100644 index 0000000000..36c8298d01 --- /dev/null +++ b/src/components/msg/cosmwasm/execute_contract/styles.tsx @@ -0,0 +1,30 @@ +import { + makeStyles, createStyles, + } from '@material-ui/styles'; + + export const useGetStyles = () => { + const useStyles = makeStyles((theme: any) => createStyles({ + root: { + overflow: 'hidden', + }, + header: { + paddingBottom: theme.spacing(2), + }, + pre: { + maxHeight: '400px', + overflow: 'auto', + padding: '1rem', + margin: '0', + background: theme.palette.background.default, + flex: 1, + '& code': { + whiteSpace: 'pre-wrap', + }, + }, + })); + + return { + classes: useStyles(), + }; + }; + \ No newline at end of file diff --git a/src/components/msg/index.ts b/src/components/msg/index.ts index 434ef7dcb3..0c9f683435 100644 --- a/src/components/msg/index.ts +++ b/src/components/msg/index.ts @@ -68,6 +68,7 @@ import GrantAllowance from './feegrant/grant_allowance'; import RevokeAllowance from './feegrant/revoke_allowance'; import CreateVestingAccount from './vesting/create_vesting_account'; import CreatePeriodicVestingAccount from './vesting/create_periodic_vesting_account'; +import ExecuteContract from './cosmwasm/execute_contract'; export { getMessageModelByType, @@ -134,4 +135,5 @@ export { RevokeAllowance, CreateVestingAccount, CreatePeriodicVestingAccount, + ExecuteContract, }; diff --git a/src/components/msg/utils.tsx b/src/components/msg/utils.tsx index b3319dfe74..e8226cc813 100644 --- a/src/components/msg/utils.tsx +++ b/src/components/msg/utils.tsx @@ -402,7 +402,15 @@ const getDataByType = (type: string) => { tagTheme: 'four', tagDisplay: 'txUnblockUserLabel', }, - + // ======================== + // CosmWasm + // ======================== + '/cosmwasm.wasm.v1.MsgExecuteContract': { + model: MODELS.MsgExecuteContract, + content: COMPONENTS.ExecuteContract, + tagTheme: 'four', + tagDisplay: 'txExecuteContract', + }, }; if (defaultTypeToModel[type]) return defaultTypeToModel[type]; diff --git a/src/models/index.ts b/src/models/index.ts index 775e6e5414..516e42ac6b 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -69,6 +69,7 @@ import MsgGrantAllowance from './msg/feegrant/msg_grant_allowance'; import MsgRevokeAllowance from './msg/feegrant/msg_revoke_allowance'; import MsgCreateVestingAccount from './msg/vesting/msg_create_vesting_account'; import MsgCreatePeriodicVestingAccount from './msg/vesting/msg_create_periodic_vesting_account'; +import MsgExecuteContract from './msg/cosmwasm/msg_execute_contract'; export { BigDipperNetwork, @@ -142,4 +143,5 @@ export { MsgRevokeAllowance, MsgCreateVestingAccount, MsgCreatePeriodicVestingAccount, + MsgExecuteContract, }; diff --git a/src/models/msg/cosmwasm/msg_execute_contract.ts b/src/models/msg/cosmwasm/msg_execute_contract.ts new file mode 100644 index 0000000000..141ff30497 --- /dev/null +++ b/src/models/msg/cosmwasm/msg_execute_contract.ts @@ -0,0 +1,42 @@ +import { Categories } from '../types'; + +class MsgExecuteContract { + public category: Categories; + public contract: string; + public method: string; + public arguments: string; + public sender: string; + public type: string; + public json: JSON; + + constructor(payload: any) { + this.category = 'cosmwasm'; + this.contract = payload.contract; + const [method, args] = MsgExecuteContract.getMethodAndArguments(atob(payload.msg)); + this.method = method; + this.arguments = args; + this.sender = payload.sender; + this.type = payload.type; + this.json = payload.json; + } + + static fromJson(json: any) { + json["msg_decoded"] = atob(json["msg"]) + return new MsgExecuteContract({ + contract: json.contract, + msg: json.msg, + sender: json.sender, + type: json["@type"], + json: json, + }); + } + + static getMethodAndArguments(msg: string): [string, string] { + const msgObj = JSON.parse(msg); + const method = Object.keys(msgObj)[0]; + const args = JSON.stringify(msgObj[method]); + return [method, args]; + } +} + +export default MsgExecuteContract; diff --git a/src/models/msg/types.ts b/src/models/msg/types.ts index 385c49a667..469586d7d6 100644 --- a/src/models/msg/types.ts +++ b/src/models/msg/types.ts @@ -1,3 +1,3 @@ export type BaseCategories = 'bank' | 'crisis' | 'distribution' | 'governance' | 'slashing' | 'staking' | 'profiles' | 'ibc' | 'ibc-transfer' | 'authz' | 'feegrant' | 'vesting' | 'others' -export type CustomCategories = ''; // custom modules +export type CustomCategories = 'cosmwasm'; // custom modules export type Categories = BaseCategories | CustomCategories From 4124c074dcc0c30d23ef1fdae942c31877f5834f Mon Sep 17 00:00:00 2001 From: avalkov Date: Thu, 7 Apr 2022 16:39:31 +0300 Subject: [PATCH 32/54] Added additional CosmWasm messages parsing from Terra --- public/locales/en/message_contents.json | 7 ++- public/locales/en/message_labels.json | 8 +++- .../cosmwasm/clear_contract_admin/index.tsx | 37 +++++++++++++++ .../msg/cosmwasm/execute_contract/index.tsx | 4 +- .../cosmwasm/instantiate_contract/index.tsx | 38 +++++++++++++++ .../msg/cosmwasm/migrate_contract/index.tsx | 37 +++++++++++++++ .../msg/cosmwasm/store_code/index.tsx | 33 +++++++++++++ .../cosmwasm/update_contract_admin/index.tsx | 46 +++++++++++++++++++ src/components/msg/index.ts | 10 ++++ src/components/msg/utils.tsx | 32 ++++++++++++- .../transaction_messages_filter/utils.tsx | 4 ++ src/models/index.ts | 10 ++++ .../msg/cosmwasm/msg_clear_contract_admin.ts | 31 +++++++++++++ .../msg/cosmwasm/msg_instantiate_contract.ts | 41 +++++++++++++++++ .../msg/cosmwasm/msg_migrate_contract.ts | 35 ++++++++++++++ src/models/msg/cosmwasm/msg_store_code.ts | 29 ++++++++++++ .../msg/cosmwasm/msg_update_contract_admin.ts | 32 +++++++++++++ 17 files changed, 428 insertions(+), 6 deletions(-) create mode 100644 src/components/msg/cosmwasm/clear_contract_admin/index.tsx create mode 100644 src/components/msg/cosmwasm/instantiate_contract/index.tsx create mode 100644 src/components/msg/cosmwasm/migrate_contract/index.tsx create mode 100644 src/components/msg/cosmwasm/store_code/index.tsx create mode 100644 src/components/msg/cosmwasm/update_contract_admin/index.tsx create mode 100644 src/models/msg/cosmwasm/msg_clear_contract_admin.ts create mode 100644 src/models/msg/cosmwasm/msg_instantiate_contract.ts create mode 100644 src/models/msg/cosmwasm/msg_migrate_contract.ts create mode 100644 src/models/msg/cosmwasm/msg_store_code.ts create mode 100644 src/models/msg/cosmwasm/msg_update_contract_admin.ts diff --git a/public/locales/en/message_contents.json b/public/locales/en/message_contents.json index 007b74da96..427d91098f 100644 --- a/public/locales/en/message_contents.json +++ b/public/locales/en/message_contents.json @@ -56,5 +56,10 @@ "MsgRevokeAllowance": "<0>{{granter}} revoked allowance for <1>{{grantee}}", "MsgCreateVestingAccount": "Vesting account created for <0>{{toAddress}}", "MsgCreatePeriodicVestingAccount": "Periodic vesting account created for <0>{{toAddress}}", - "txExecuteContract": "<0>{{user}} executed <1>{{method}} on <2>{{address}}" + "txStoreCode": "<0>{{sender}} stored code", + "txInstantiateContract": "<0>{{sender}} initiated contract with code ID <1>{{codeId}}", + "txExecuteContract": "<0>{{user}} executed <1>{{method}} on <2>{{address}}", + "txMigrateContract": "<0>{{admin}} migrated contract <1>{{contract}} to <1>{{newCodeId}}", + "txUpdateContractAdmin": "<0>{{admin}} updated contract <1>{{contract}} admin to <2>{{newAdmin}}", + "txClearContractAdmin": "<0>{{admin}} cleared admin on contract <1>{{contract}}" } diff --git a/public/locales/en/message_labels.json b/public/locales/en/message_labels.json index 57e023b1dc..42fd7ef628 100644 --- a/public/locales/en/message_labels.json +++ b/public/locales/en/message_labels.json @@ -55,5 +55,11 @@ "MsgRevokeAllowance": "Revoke Allowance", "MsgCreateVestingAccount": "Create Vesting Account", "MsgCreatePeriodicVestingAccount": "Create Periodic Vesting Account", - "txExecuteContract": "Executing contract" + "txStoreCode": "Store Code", + "txMigrateCode": "Migrate Code", + "txInstantiateContract": "Instantiate Contract", + "txExecuteContract": "Execute Contract", + "txMigrateContract": "Migrate Contract", + "txUpdateContractAdmin": "Update Contract Admin", + "txClearContractAdmin": "Clear Contract Admin" } diff --git a/src/components/msg/cosmwasm/clear_contract_admin/index.tsx b/src/components/msg/cosmwasm/clear_contract_admin/index.tsx new file mode 100644 index 0000000000..4277d7fdfa --- /dev/null +++ b/src/components/msg/cosmwasm/clear_contract_admin/index.tsx @@ -0,0 +1,37 @@ +import React from 'react'; +import Trans from 'next-translate/Trans'; +import { Typography } from '@material-ui/core'; +import { Name } from '@components'; +import { MsgClearContractAdmin } from '@models'; +import { useProfileRecoil } from '@recoil/profiles'; + +const ClearContractAdmin = (props: { + message: MsgClearContractAdmin; +}) => { + const { message } = props; + + const sender = useProfileRecoil(message.sender); + const senderMoniker = sender ? sender?.name : message.sender; + + return ( + + + ), + , + ]} + values={{ + contract: message.contract, + }} + /> + + ); +}; + +export default ClearContractAdmin; \ No newline at end of file diff --git a/src/components/msg/cosmwasm/execute_contract/index.tsx b/src/components/msg/cosmwasm/execute_contract/index.tsx index 7680ad6bcb..84f9861b87 100644 --- a/src/components/msg/cosmwasm/execute_contract/index.tsx +++ b/src/components/msg/cosmwasm/execute_contract/index.tsx @@ -4,9 +4,7 @@ import { Typography } from '@material-ui/core'; import { Name } from '@components'; import Arguments from './arguments' import { MsgExecuteContract } from '@models'; -import { - useProfileRecoil, -} from '@recoil/profiles'; +import { useProfileRecoil } from '@recoil/profiles'; const ExecuteContract = (props: { message: MsgExecuteContract; diff --git a/src/components/msg/cosmwasm/instantiate_contract/index.tsx b/src/components/msg/cosmwasm/instantiate_contract/index.tsx new file mode 100644 index 0000000000..a5673cc424 --- /dev/null +++ b/src/components/msg/cosmwasm/instantiate_contract/index.tsx @@ -0,0 +1,38 @@ +import React from 'react'; +import numeral from 'numeral'; +import Trans from 'next-translate/Trans'; +import { Typography } from '@material-ui/core'; +import { Name } from '@components'; +import { MsgInstantiateContract } from '@models'; +import { useProfileRecoil } from '@recoil/profiles'; + + const InstantiateContract = (props: { + message: MsgInstantiateContract; + }) => { + const { message } = props; + + const sender = useProfileRecoil(message.sender); + const senderMoniker = sender ? sender?.name : message.sender; + + return ( + + + ), + , + ]} + values={{ + codeId: numeral(message.codeId).format('0,0'), + }} + /> + + ); + }; + + export default InstantiateContract; \ No newline at end of file diff --git a/src/components/msg/cosmwasm/migrate_contract/index.tsx b/src/components/msg/cosmwasm/migrate_contract/index.tsx new file mode 100644 index 0000000000..e24fe54a8c --- /dev/null +++ b/src/components/msg/cosmwasm/migrate_contract/index.tsx @@ -0,0 +1,37 @@ +import React from 'react'; +import Trans from 'next-translate/Trans'; +import { Typography } from '@material-ui/core'; +import { Name } from '@components'; +import { MsgMigrateContract } from '@models'; +import { useProfileRecoil } from '@recoil/profiles'; + + const MigrateContract = (props: { + message: MsgMigrateContract; + }) => { + const { message } = props; + + const admin = useProfileRecoil(message.admin); + const adminMoniker = admin ? admin?.name : message.admin; + + return ( + + + ), + , + ]} + values={{ + contract: message.contract, + }} + /> + + ); + }; + + export default MigrateContract; \ No newline at end of file diff --git a/src/components/msg/cosmwasm/store_code/index.tsx b/src/components/msg/cosmwasm/store_code/index.tsx new file mode 100644 index 0000000000..3d35fb23b9 --- /dev/null +++ b/src/components/msg/cosmwasm/store_code/index.tsx @@ -0,0 +1,33 @@ +import React from 'react'; +import Trans from 'next-translate/Trans'; +import { Typography } from '@material-ui/core'; +import { Name } from '@components'; +import { MsgStoreCode } from '@models'; +import { useProfileRecoil } from '@recoil/profiles'; + + const StoreCode = (props: { + message: MsgStoreCode; + }) => { + const { message } = props; + + const sender = useProfileRecoil(message.sender); + const senderMoniker = sender ? sender?.name : message.sender; + + return ( + + + ), + ]} + /> + + ); + }; + + export default StoreCode; \ No newline at end of file diff --git a/src/components/msg/cosmwasm/update_contract_admin/index.tsx b/src/components/msg/cosmwasm/update_contract_admin/index.tsx new file mode 100644 index 0000000000..9bc2411388 --- /dev/null +++ b/src/components/msg/cosmwasm/update_contract_admin/index.tsx @@ -0,0 +1,46 @@ +import React from 'react'; +import Trans from 'next-translate/Trans'; +import { Typography } from '@material-ui/core'; +import { Name } from '@components'; +import { MsgUpdateContractAdmin } from '@models'; +import { useProfileRecoil } from '@recoil/profiles'; + +const UpdateContractAdmin = (props: { + message: MsgUpdateContractAdmin; +}) => { + const { message } = props; + + const sender = useProfileRecoil(message.sender); + const senderMoniker = sender ? sender?.name : message.sender; + + const newAdmin = useProfileRecoil(message.newAdmin); + const newAdminMoniker = newAdmin ? newAdmin?.name : message.newAdmin; + + return ( + + + ), + , + ( + + ), + ]} + values={{ + contract: message.contract, + }} + /> + + ); +}; + +export default UpdateContractAdmin; \ No newline at end of file diff --git a/src/components/msg/index.ts b/src/components/msg/index.ts index 0c9f683435..755ba4deaa 100644 --- a/src/components/msg/index.ts +++ b/src/components/msg/index.ts @@ -68,7 +68,12 @@ import GrantAllowance from './feegrant/grant_allowance'; import RevokeAllowance from './feegrant/revoke_allowance'; import CreateVestingAccount from './vesting/create_vesting_account'; import CreatePeriodicVestingAccount from './vesting/create_periodic_vesting_account'; +import StoreCode from './cosmwasm/store_code'; +import InstantiateContract from './cosmwasm/instantiate_contract'; import ExecuteContract from './cosmwasm/execute_contract'; +import MigrateContract from './cosmwasm/migrate_contract'; +import UpdateContractAdmin from './cosmwasm/update_contract_admin'; +import ClearContractAdmin from './cosmwasm/clear_contract_admin'; export { getMessageModelByType, @@ -135,5 +140,10 @@ export { RevokeAllowance, CreateVestingAccount, CreatePeriodicVestingAccount, + StoreCode, + InstantiateContract, ExecuteContract, + MigrateContract, + UpdateContractAdmin, + ClearContractAdmin }; diff --git a/src/components/msg/utils.tsx b/src/components/msg/utils.tsx index e8226cc813..cf30dc328f 100644 --- a/src/components/msg/utils.tsx +++ b/src/components/msg/utils.tsx @@ -405,12 +405,42 @@ const getDataByType = (type: string) => { // ======================== // CosmWasm // ======================== + '/cosmwasm.wasm.v1.MsgStoreCode': { + model: MODELS.MsgStoreCode, + content: COMPONENTS.StoreCode, + tagTheme: 'eleven', + tagDisplay: 'txStoreCode', + }, + '/cosmwasm.wasm.v1.MsgInstantiateContract': { + model: MODELS.MsgInstantiateContract, + content: COMPONENTS.InstantiateContract, + tagTheme: 'eleven', + tagDisplay: 'txInstantiateContract', + }, '/cosmwasm.wasm.v1.MsgExecuteContract': { model: MODELS.MsgExecuteContract, content: COMPONENTS.ExecuteContract, - tagTheme: 'four', + tagTheme: 'eleven', tagDisplay: 'txExecuteContract', }, + '/cosmwasm.wasm.v1.MsgMigrateContract': { + model: MODELS.MsgMigrateContract, + content: COMPONENTS.MigrateContract, + tagTheme: 'eleven', + tagDisplay: 'txMigrateContract', + }, + '/cosmwasm.wasm.v1.MsgUpdateAdmin': { + model: MODELS.MsgUpdateContractAdmin, + content: COMPONENTS.UpdateContractAdmin, + tagTheme: 'eleven', + tagDisplay: 'txUpdateContractAdmin', + }, + '/cosmwasm.wasm.v1.MsgClearAdmin': { + model: MODELS.MsgClearContractAdmin, + content: COMPONENTS.ClearContractAdmin, + tagTheme: 'eleven', + tagDisplay: 'txClearContractAdmin', + }, }; if (defaultTypeToModel[type]) return defaultTypeToModel[type]; diff --git a/src/components/transaction_messages_filter/utils.tsx b/src/components/transaction_messages_filter/utils.tsx index ced6f940e2..e645c66023 100644 --- a/src/components/transaction_messages_filter/utils.tsx +++ b/src/components/transaction_messages_filter/utils.tsx @@ -44,6 +44,10 @@ export const getFilterLabels = () => { key: 'profiles', display: 'profiles', }, + { + key: 'cosmwasm', + display: 'cosmwasm', + }, { key: 'others', display: 'others', diff --git a/src/models/index.ts b/src/models/index.ts index 516e42ac6b..6cc77aca80 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -69,7 +69,12 @@ import MsgGrantAllowance from './msg/feegrant/msg_grant_allowance'; import MsgRevokeAllowance from './msg/feegrant/msg_revoke_allowance'; import MsgCreateVestingAccount from './msg/vesting/msg_create_vesting_account'; import MsgCreatePeriodicVestingAccount from './msg/vesting/msg_create_periodic_vesting_account'; +import MsgStoreCode from './msg/cosmwasm/msg_store_code'; +import MsgInstantiateContract from './msg/cosmwasm/msg_instantiate_contract'; import MsgExecuteContract from './msg/cosmwasm/msg_execute_contract'; +import MsgMigrateContract from './msg/cosmwasm/msg_migrate_contract'; +import MsgUpdateContractAdmin from './msg/cosmwasm/msg_update_contract_admin'; +import MsgClearContractAdmin from './msg/cosmwasm/msg_clear_contract_admin'; export { BigDipperNetwork, @@ -143,5 +148,10 @@ export { MsgRevokeAllowance, MsgCreateVestingAccount, MsgCreatePeriodicVestingAccount, + MsgStoreCode, + MsgInstantiateContract, MsgExecuteContract, + MsgMigrateContract, + MsgUpdateContractAdmin, + MsgClearContractAdmin, }; diff --git a/src/models/msg/cosmwasm/msg_clear_contract_admin.ts b/src/models/msg/cosmwasm/msg_clear_contract_admin.ts new file mode 100644 index 0000000000..91c98e6e2f --- /dev/null +++ b/src/models/msg/cosmwasm/msg_clear_contract_admin.ts @@ -0,0 +1,31 @@ +import * as R from 'ramda'; + import { Categories } from '../types'; + + class MsgClearContractAdmin { + public category: Categories; + public type: string; + public json: any; + public sender: string; + public contract: string; + + constructor(payload: any) { + console.log("MsgClearContractAdmin payload ", payload); + this.category = 'cosmwasm'; + this.type = payload.type; + this.json = payload.json; + this.sender = payload.sender; + this.contract = payload.contract; + } + + static fromJson(json: any) { + console.log("MsgClearContractAdmin json ", json); + return new MsgClearContractAdmin({ + json, + type: json['@type'], + sender: json.sender, + contract: R.pathOr('', ['contract'], json), + }); + } + } + + export default MsgClearContractAdmin; \ No newline at end of file diff --git a/src/models/msg/cosmwasm/msg_instantiate_contract.ts b/src/models/msg/cosmwasm/msg_instantiate_contract.ts new file mode 100644 index 0000000000..5a178dfe6c --- /dev/null +++ b/src/models/msg/cosmwasm/msg_instantiate_contract.ts @@ -0,0 +1,41 @@ +import * as R from 'ramda'; + import { Categories } from '../types'; + + class MsgInstantiateContract { + public category: Categories; + public type: string; + public json: any; + public sender: string; + public admin: string; + public codeId: number; + public initMsg: JSON; + public initCoins: MsgCoin[]; + + constructor(payload: any) { + this.category = 'cosmwasm'; + this.type = payload.type; + this.json = payload.json; + this.sender = payload.sender; + this.admin = payload.admin; + this.codeId = payload.codeId; + this.initMsg = payload.initMsg; + this.initCoins = payload.initCoins; + } + + static fromJson(json: any) { + return new MsgInstantiateContract({ + json, + type: json['@type'], + sender: json.sender, + admin: json.admin, + codeId: R.pathOr(0, ['code_id'], json), + initMsg: R.pathOr('', ['init_msg'], json), + initCoins: R.pathOr([], ['init_coins'], json).map((x) => ({ + denom: R.pathOr('', ['denom'], x), + amount: R.pathOr(0, ['amount'], x), + })), + }); + } + } + + export default MsgInstantiateContract; \ No newline at end of file diff --git a/src/models/msg/cosmwasm/msg_migrate_contract.ts b/src/models/msg/cosmwasm/msg_migrate_contract.ts new file mode 100644 index 0000000000..aa5911a3f2 --- /dev/null +++ b/src/models/msg/cosmwasm/msg_migrate_contract.ts @@ -0,0 +1,35 @@ +import * as R from 'ramda'; + import { Categories } from '../types'; + + class MsgMigrateContract { + public category: Categories; + public type: string; + public json: any; + public admin: string; + public contract: string; + public newCodeId: number; + public migrateMsg: string; + + constructor(payload: any) { + this.category = 'cosmwasm'; + this.type = payload.type; + this.json = payload.json; + this.admin = payload.admin; + this.contract = payload.contract; + this.newCodeId = payload.newCodeId; + this.migrateMsg = payload.migrateMsg; + } + + static fromJson(json: any) { + return new MsgMigrateContract({ + json, + type: json['@type'], + admin: json.admin, + contract: json.contract, + newCodeId: R.pathOr(0, ['new_code_id'], json), + migrateMsg: R.pathOr('', ['migrate_msg'], json), + }); + } + } + + export default MsgMigrateContract; \ No newline at end of file diff --git a/src/models/msg/cosmwasm/msg_store_code.ts b/src/models/msg/cosmwasm/msg_store_code.ts new file mode 100644 index 0000000000..422b61ebe8 --- /dev/null +++ b/src/models/msg/cosmwasm/msg_store_code.ts @@ -0,0 +1,29 @@ +import * as R from 'ramda'; + import { Categories } from '../types'; + + class MsgStoreCode { + public category: Categories; + public type: string; + public json: any; + public sender: string; + public wasmByteCode: JSON; + + constructor(payload: any) { + this.category = 'cosmwasm'; + this.type = payload.type; + this.json = payload.json; + this.sender = payload.sender; + this.wasmByteCode = payload.wasmByteCode; + } + + static fromJson(json: any) { + return new MsgStoreCode({ + json, + type: json['@type'], + sender: json.sender, + wasmByteCode: R.pathOr('', ['wasm_byte_code'], json), + }); + } + } + + export default MsgStoreCode; \ No newline at end of file diff --git a/src/models/msg/cosmwasm/msg_update_contract_admin.ts b/src/models/msg/cosmwasm/msg_update_contract_admin.ts new file mode 100644 index 0000000000..b521b40a7e --- /dev/null +++ b/src/models/msg/cosmwasm/msg_update_contract_admin.ts @@ -0,0 +1,32 @@ +import * as R from 'ramda'; + import { Categories } from '../types'; + + class MsgUpdateContractAdmin { + public category: Categories; + public type: string; + public json: any; + public sender: string; + public newAdmin: string; + public contract: string; + + constructor(payload: any) { + this.category = 'cosmwasm'; + this.type = payload.type; + this.json = payload.json; + this.sender = payload.sender; + this.newAdmin = payload.newAdmin; + this.contract = payload.contract; + } + + static fromJson(json: any) { + return new MsgUpdateContractAdmin({ + json, + type: json['@type'], + sender: json.sender, + newAdmin: R.pathOr('', ['new_admin'], json), + contract: R.pathOr('', ['contract'], json), + }); + } + } + + export default MsgUpdateContractAdmin; \ No newline at end of file From ce50f88c154f43b8f80c02be21f1372c84add283 Mon Sep 17 00:00:00 2001 From: SpaghettiOverload Date: Tue, 5 Apr 2022 01:32:47 +0300 Subject: [PATCH 33/54] CUDOS-810 / enhanced governance proposal details --- .../components/overview/index.tsx | 86 +++++++++---------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/src/screens/proposal_details/components/overview/index.tsx b/src/screens/proposal_details/components/overview/index.tsx index aa9da846af..c699974471 100644 --- a/src/screens/proposal_details/components/overview/index.tsx +++ b/src/screens/proposal_details/components/overview/index.tsx @@ -16,9 +16,7 @@ import { SingleProposal, Box, Markdown, - Name, } from '@components'; -import { useProfileRecoil } from '@recoil/profiles'; import { ParamsChange, SoftwareUpgrade, @@ -27,19 +25,26 @@ import { } from './components'; import { useStyles } from './styles'; import { getProposalType } from '../../utils'; -import { OverviewType } from '../../types'; -const Overview: React.FC<{ overview: OverviewType } & ComponentDefault> = ({ - className, overview, +const Overview: React.FC<{ + className?: string; + title: string; + id: number; + description: string; + status: string; + submitTime: string; + depositEndTime: string; + votingStartTime: string | null; + votingEndTime: string | null; + content: string; +}> = ({ + className, ...props }) => { const dateFormat = useRecoilValue(readDate); const classes = useStyles(); const { t } = useTranslation('proposals'); - const type = getProposalType(R.pathOr('', ['@type'], overview.content)); - - const proposer = useProfileRecoil(overview.proposer); - const proposerMoniker = proposer ? proposer?.name : overview.proposer; + const type = getProposalType(R.pathOr('', ['@type'], props.content)); const getExtraDetails = () => { let extraDetails = null; @@ -50,7 +55,7 @@ const Overview: React.FC<{ overview: OverviewType } & ComponentDefault> = ({ {t('changes')} ); @@ -61,9 +66,9 @@ const Overview: React.FC<{ overview: OverviewType } & ComponentDefault> = ({ {t('plan')} ); @@ -106,9 +111,9 @@ const Overview: React.FC<{ overview: OverviewType } & ComponentDefault> = ({ return (
@@ -119,68 +124,63 @@ const Overview: React.FC<{ overview: OverviewType } & ComponentDefault> = ({ {t(type)} - {t('proposer')} + {t('description')} - + + {extra} +
+
{ - !!overview.submitTime && ( - <> + !!props.submitTime && ( +
{t('submitTime')} - {formatDayJs(dayjs.utc(overview.submitTime), dateFormat)} + {formatDayJs(dayjs.utc(props.submitTime), dateFormat)} - +
) } { - !!overview.depositEndTime && ( - <> + !!props.depositEndTime && ( +
{t('depositEndTime')} - {formatDayJs(dayjs.utc(overview.depositEndTime), dateFormat)} + {formatDayJs(dayjs.utc(props.depositEndTime), dateFormat)} - +
) } { - !!overview.votingStartTime && ( - <> + !!props.votingStartTime && ( +
{t('votingStartTime')} - {formatDayJs(dayjs.utc(overview.votingStartTime), dateFormat)} + {formatDayJs(dayjs.utc(props.votingStartTime), dateFormat)} - +
) } { - !!overview.votingEndTime && ( - <> + !!props.votingEndTime && ( +
{t('votingEndTime')} - {formatDayJs(dayjs.utc(overview.votingEndTime), dateFormat)} + {formatDayJs(dayjs.utc(props.votingEndTime), dateFormat)} - +
) } - - {t('description')} - - - {extra}
); }; -export default Overview; +export default Overview; \ No newline at end of file From 6d51e342791f54107eab9589161ad1250a7d209c Mon Sep 17 00:00:00 2001 From: avalkov Date: Thu, 7 Apr 2022 18:30:31 +0300 Subject: [PATCH 34/54] Fix tests and linter --- .../cosmwasm/clear_contract_admin/index.tsx | 2 +- .../cosmwasm/execute_contract/arguments.tsx | 2 +- .../msg/cosmwasm/execute_contract/index.tsx | 2 +- .../msg/cosmwasm/execute_contract/styles.tsx | 53 +++++++++---------- .../cosmwasm/instantiate_contract/index.tsx | 50 ++++++++--------- .../msg/cosmwasm/migrate_contract/index.tsx | 50 ++++++++--------- .../msg/cosmwasm/store_code/index.tsx | 42 +++++++-------- .../cosmwasm/update_contract_admin/index.tsx | 4 +- src/components/msg/index.ts | 2 +- src/screens/proposal_details/index.tsx | 11 +++- 10 files changed, 113 insertions(+), 105 deletions(-) diff --git a/src/components/msg/cosmwasm/clear_contract_admin/index.tsx b/src/components/msg/cosmwasm/clear_contract_admin/index.tsx index 4277d7fdfa..821e4bbc8a 100644 --- a/src/components/msg/cosmwasm/clear_contract_admin/index.tsx +++ b/src/components/msg/cosmwasm/clear_contract_admin/index.tsx @@ -34,4 +34,4 @@ const ClearContractAdmin = (props: { ); }; -export default ClearContractAdmin; \ No newline at end of file +export default ClearContractAdmin; diff --git a/src/components/msg/cosmwasm/execute_contract/arguments.tsx b/src/components/msg/cosmwasm/execute_contract/arguments.tsx index d21d7e0469..203e658aa7 100644 --- a/src/components/msg/cosmwasm/execute_contract/arguments.tsx +++ b/src/components/msg/cosmwasm/execute_contract/arguments.tsx @@ -2,7 +2,7 @@ import React from 'react'; import useTranslation from 'next-translate/useTranslation'; import { Typography } from '@material-ui/core'; import { Box } from '@components'; -import { useGetStyles } from './styles' +import { useGetStyles } from './styles'; const Arguments: React.FC<{ args: string; diff --git a/src/components/msg/cosmwasm/execute_contract/index.tsx b/src/components/msg/cosmwasm/execute_contract/index.tsx index 84f9861b87..8d23f2e0a1 100644 --- a/src/components/msg/cosmwasm/execute_contract/index.tsx +++ b/src/components/msg/cosmwasm/execute_contract/index.tsx @@ -2,9 +2,9 @@ import React from 'react'; import Trans from 'next-translate/Trans'; import { Typography } from '@material-ui/core'; import { Name } from '@components'; -import Arguments from './arguments' import { MsgExecuteContract } from '@models'; import { useProfileRecoil } from '@recoil/profiles'; +import Arguments from './arguments'; const ExecuteContract = (props: { message: MsgExecuteContract; diff --git a/src/components/msg/cosmwasm/execute_contract/styles.tsx b/src/components/msg/cosmwasm/execute_contract/styles.tsx index 36c8298d01..6ff4af1f96 100644 --- a/src/components/msg/cosmwasm/execute_contract/styles.tsx +++ b/src/components/msg/cosmwasm/execute_contract/styles.tsx @@ -1,30 +1,29 @@ import { - makeStyles, createStyles, - } from '@material-ui/styles'; - - export const useGetStyles = () => { - const useStyles = makeStyles((theme: any) => createStyles({ - root: { - overflow: 'hidden', + makeStyles, createStyles, +} from '@material-ui/styles'; + +export const useGetStyles = () => { + const useStyles = makeStyles((theme: any) => createStyles({ + root: { + overflow: 'hidden', + }, + header: { + paddingBottom: theme.spacing(2), + }, + pre: { + maxHeight: '400px', + overflow: 'auto', + padding: '1rem', + margin: '0', + background: theme.palette.background.default, + flex: 1, + '& code': { + whiteSpace: 'pre-wrap', }, - header: { - paddingBottom: theme.spacing(2), - }, - pre: { - maxHeight: '400px', - overflow: 'auto', - padding: '1rem', - margin: '0', - background: theme.palette.background.default, - flex: 1, - '& code': { - whiteSpace: 'pre-wrap', - }, - }, - })); - - return { - classes: useStyles(), - }; + }, + })); + + return { + classes: useStyles(), }; - \ No newline at end of file +}; diff --git a/src/components/msg/cosmwasm/instantiate_contract/index.tsx b/src/components/msg/cosmwasm/instantiate_contract/index.tsx index a5673cc424..a3496e3804 100644 --- a/src/components/msg/cosmwasm/instantiate_contract/index.tsx +++ b/src/components/msg/cosmwasm/instantiate_contract/index.tsx @@ -6,33 +6,33 @@ import { Name } from '@components'; import { MsgInstantiateContract } from '@models'; import { useProfileRecoil } from '@recoil/profiles'; - const InstantiateContract = (props: { +const InstantiateContract = (props: { message: MsgInstantiateContract; }) => { - const { message } = props; + const { message } = props; - const sender = useProfileRecoil(message.sender); - const senderMoniker = sender ? sender?.name : message.sender; + const sender = useProfileRecoil(message.sender); + const senderMoniker = sender ? sender?.name : message.sender; - return ( - - - ), - , - ]} - values={{ - codeId: numeral(message.codeId).format('0,0'), - }} - /> - - ); - }; + return ( + + + ), + , + ]} + values={{ + codeId: numeral(message.codeId).format('0,0'), + }} + /> + + ); +}; - export default InstantiateContract; \ No newline at end of file +export default InstantiateContract; diff --git a/src/components/msg/cosmwasm/migrate_contract/index.tsx b/src/components/msg/cosmwasm/migrate_contract/index.tsx index e24fe54a8c..dcf7bdba4c 100644 --- a/src/components/msg/cosmwasm/migrate_contract/index.tsx +++ b/src/components/msg/cosmwasm/migrate_contract/index.tsx @@ -5,33 +5,33 @@ import { Name } from '@components'; import { MsgMigrateContract } from '@models'; import { useProfileRecoil } from '@recoil/profiles'; - const MigrateContract = (props: { +const MigrateContract = (props: { message: MsgMigrateContract; }) => { - const { message } = props; + const { message } = props; - const admin = useProfileRecoil(message.admin); - const adminMoniker = admin ? admin?.name : message.admin; + const admin = useProfileRecoil(message.admin); + const adminMoniker = admin ? admin?.name : message.admin; - return ( - - - ), - , - ]} - values={{ - contract: message.contract, - }} - /> - - ); - }; + return ( + + + ), + , + ]} + values={{ + contract: message.contract, + }} + /> + + ); +}; - export default MigrateContract; \ No newline at end of file +export default MigrateContract; diff --git a/src/components/msg/cosmwasm/store_code/index.tsx b/src/components/msg/cosmwasm/store_code/index.tsx index 3d35fb23b9..c14e3815d8 100644 --- a/src/components/msg/cosmwasm/store_code/index.tsx +++ b/src/components/msg/cosmwasm/store_code/index.tsx @@ -5,29 +5,29 @@ import { Name } from '@components'; import { MsgStoreCode } from '@models'; import { useProfileRecoil } from '@recoil/profiles'; - const StoreCode = (props: { +const StoreCode = (props: { message: MsgStoreCode; }) => { - const { message } = props; + const { message } = props; - const sender = useProfileRecoil(message.sender); - const senderMoniker = sender ? sender?.name : message.sender; + const sender = useProfileRecoil(message.sender); + const senderMoniker = sender ? sender?.name : message.sender; - return ( - - - ), - ]} - /> - - ); - }; + return ( + + + ), + ]} + /> + + ); +}; - export default StoreCode; \ No newline at end of file +export default StoreCode; diff --git a/src/components/msg/cosmwasm/update_contract_admin/index.tsx b/src/components/msg/cosmwasm/update_contract_admin/index.tsx index 9bc2411388..6a78b2489f 100644 --- a/src/components/msg/cosmwasm/update_contract_admin/index.tsx +++ b/src/components/msg/cosmwasm/update_contract_admin/index.tsx @@ -11,7 +11,7 @@ const UpdateContractAdmin = (props: { const { message } = props; const sender = useProfileRecoil(message.sender); - const senderMoniker = sender ? sender?.name : message.sender; + const senderMoniker = sender ? sender?.name : message.sender; const newAdmin = useProfileRecoil(message.newAdmin); const newAdminMoniker = newAdmin ? newAdmin?.name : message.newAdmin; @@ -43,4 +43,4 @@ const UpdateContractAdmin = (props: { ); }; -export default UpdateContractAdmin; \ No newline at end of file +export default UpdateContractAdmin; diff --git a/src/components/msg/index.ts b/src/components/msg/index.ts index 755ba4deaa..f47204c2ba 100644 --- a/src/components/msg/index.ts +++ b/src/components/msg/index.ts @@ -145,5 +145,5 @@ export { ExecuteContract, MigrateContract, UpdateContractAdmin, - ClearContractAdmin + ClearContractAdmin, }; diff --git a/src/screens/proposal_details/index.tsx b/src/screens/proposal_details/index.tsx index 46624b9047..f19641ef2f 100644 --- a/src/screens/proposal_details/index.tsx +++ b/src/screens/proposal_details/index.tsx @@ -40,10 +40,19 @@ const ProposalDetails = () => { exists={state.exists} loading={state.loading} > + {shouldShowData(overview.status) && ( From baa03675382b52a13ed36705a44470e26ce3cca2 Mon Sep 17 00:00:00 2001 From: SpaghettiOverload Date: Thu, 7 Apr 2022 23:02:46 +0300 Subject: [PATCH 35/54] Adding new CUDOS theme --- src/recoil/settings/hooks.ts | 2 +- src/recoil/settings/types.ts | 2 +- src/recoil/settings/utils.ts | 3 ++ src/styles/index.ts | 2 + src/styles/theme/cudos.ts | 85 ++++++++++++++++++++++++++++++++++++ src/styles/theme/index.ts | 8 ++-- 6 files changed, 97 insertions(+), 5 deletions(-) create mode 100644 src/styles/theme/cudos.ts diff --git a/src/recoil/settings/hooks.ts b/src/recoil/settings/hooks.ts index 219dcc0b1f..1b0d7fc150 100644 --- a/src/recoil/settings/hooks.ts +++ b/src/recoil/settings/hooks.ts @@ -24,7 +24,7 @@ export const useSettingsRecoil = () => { let currentTheme: Theme = settings.theme; if (savedTheme === 'device') { if (window?.matchMedia('(prefers-color-scheme: dark)')?.matches) { - currentTheme = 'dark'; + currentTheme = 'cudos'; } } else if (THEME_DICTIONARY[savedTheme]) { currentTheme = savedTheme; diff --git a/src/recoil/settings/types.ts b/src/recoil/settings/types.ts index e7cec8b3cd..1a84eef276 100644 --- a/src/recoil/settings/types.ts +++ b/src/recoil/settings/types.ts @@ -1,4 +1,4 @@ -export type Theme = 'light' | 'dark' | 'device' | 'deuteranopia' | 'tritanopia' | 'achromatopsia'; +export type Theme = 'light' | 'dark' | 'device' | 'deuteranopia' | 'tritanopia' | 'achromatopsia' | 'cudos'; export type Date = 'locale' | 'utc'; export type Tx = 'compact' | 'detailed'; diff --git a/src/recoil/settings/utils.ts b/src/recoil/settings/utils.ts index 8100ff55df..da52a5caad 100644 --- a/src/recoil/settings/utils.ts +++ b/src/recoil/settings/utils.ts @@ -3,6 +3,7 @@ import { darkTemplate, deuteranopiaTemplate, tritanopiaTemplate, + cudosTemplate, } from '@styles'; import { Theme, @@ -17,6 +18,7 @@ export const THEME_LIST: Theme[] = [ 'dark', 'deuteranopia', 'tritanopia', + 'cudos', ]; export const THEME_DICTIONARY = { @@ -24,6 +26,7 @@ export const THEME_DICTIONARY = { dark: darkTemplate, deuteranopia: deuteranopiaTemplate, tritanopia: tritanopiaTemplate, + cudos: cudosTemplate, }; export const getThemeTemplate = (theme: Theme) => { diff --git a/src/styles/index.ts b/src/styles/index.ts index dc09f8e877..d20aa177fe 100644 --- a/src/styles/index.ts +++ b/src/styles/index.ts @@ -3,6 +3,7 @@ import { darkTemplate, deuteranopiaTemplate, tritanopiaTemplate, + cudosTemplate, // lightTheme, // darkTheme, // deuteranopiaTheme, @@ -13,6 +14,7 @@ export { darkTemplate, deuteranopiaTemplate, tritanopiaTemplate, + cudosTemplate, // lightTheme, // darkTheme, // deuteranopiaTheme, diff --git a/src/styles/theme/cudos.ts b/src/styles/theme/cudos.ts new file mode 100644 index 0000000000..295552a868 --- /dev/null +++ b/src/styles/theme/cudos.ts @@ -0,0 +1,85 @@ +import Color from 'color'; + +const backgroundDefault = '#0A0A0A'; +const surfaceOne = '#0c0d1c'; +const surfaceTwo = '#19191D'; +const fontOne = '#E6E6E6'; +const fontTwo = '#AAAAAB'; +const fontThree = '#818181'; + +export const cudosThemeOverride = { + mixins: { + tableCell: { + background: surfaceOne, + '&.odd': { + background: surfaceTwo, + }, + }, + }, + palette: { + type: 'dark', + primary: { + main: Color('#4b80e9').alpha(0.7).string(), + contrastText: '#fff', + }, + background: { + default: backgroundDefault, + paper: surfaceOne, + }, + divider: '#3D3D43', + text: { + primary: '#E6E6E6', + secondary: '#AAAAAB', + }, + custom: { + general: { + background: backgroundDefault, + surfaceOne, + surfaceTwo, + }, + fonts: { + fontOne, + fontTwo, + fontThree, + fontFour: '#999999', + }, + primaryData: { + one: '#5E7FE5', + two: '#2E3368', + three: '#5ac6c5', + four: '#4fa1cd', + }, + results: { + pass: '#198a65', + fail: '#b12a34', + }, + }, + }, + overrides: { + MuiTableBody: { + root: { + '& .MuiTableRow-root': { + '&:nth-child(odd)': { + backgroundColor: surfaceTwo, + }, + }, + '& .MuiTableCell-root': { + color: fontTwo, + }, + }, + }, + MuiTabs: { + root: { + '& .MuiTab-textColorInherit': { + color: fontThree, + }, + '& .MuiTab-textColorInherit.Mui-selected': { + color: fontOne, + }, + '& .MuiTabs-indicator': { + backgroundColor: fontOne, + }, + }, + }, + }, +}; diff --git a/src/styles/theme/index.ts b/src/styles/theme/index.ts index b092f34896..e65bd1d780 100644 --- a/src/styles/theme/index.ts +++ b/src/styles/theme/index.ts @@ -5,6 +5,7 @@ import { darkThemeOverride } from './dark'; import { lightThemeOverride } from './light'; import { deuteranopiaThemeOverride } from './deuteranopia'; import { tritanopiaThemeOverride } from './tritanopia'; +import { cudosThemeOverride } from './cudos'; /** Common themes that don't change across light and dark theme */ export const common = { @@ -139,9 +140,9 @@ export const common = { three: '#FC6A8A', }, tokenomics: { - one: '#1EC490', - two: '#497BFF', - three: '#9F46EC', + one: '#2E3368', + two: '#1ab0c5', + three: '#21c391', }, charts: { zero: '#E8E8E8', @@ -193,6 +194,7 @@ export const lightTemplate:ThemeOptions = R.mergeDeepLeft(lightThemeOverride, co export const darkTemplate:ThemeOptions = R.mergeDeepLeft(darkThemeOverride, common); export const deuteranopiaTemplate:ThemeOptions = R.mergeDeepLeft(deuteranopiaThemeOverride, common); export const tritanopiaTemplate:ThemeOptions = R.mergeDeepLeft(tritanopiaThemeOverride, common); +export const cudosTemplate:ThemeOptions = R.mergeDeepLeft(cudosThemeOverride, common); // export const lightTheme = createMuiTheme(lightTemplate); // export const darkTheme = createMuiTheme(darkTemplate); From 546b03c811f4222d57afb033e82c5355065bd929 Mon Sep 17 00:00:00 2001 From: SpaghettiOverload Date: Mon, 11 Apr 2022 11:31:30 +0300 Subject: [PATCH 36/54] Swapping passed/invalid color theme --- src/components/single_proposal/utils.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/single_proposal/utils.ts b/src/components/single_proposal/utils.ts index dc809873c6..792bbd6f02 100644 --- a/src/components/single_proposal/utils.ts +++ b/src/components/single_proposal/utils.ts @@ -4,16 +4,16 @@ export const getStatusInfo = (status: string, t: any) => { value: t('deposit'), tag: 'one', }, - PROPOSAL_STATUS_INVALID: { - value: t('invalid'), + PROPOSAL_STATUS_PASSED: { + value: t('passed'), tag: 'two', }, PROPOSAL_STATUS_VOTING_PERIOD: { value: t('voting'), tag: 'three', }, - PROPOSAL_STATUS_PASSED: { - value: t('passed'), + PROPOSAL_STATUS_INVALID: { + value: t('invalid'), tag: 'four', }, PROPOSAL_STATUS_REJECTED: { From 5190bf6acc3a31ecb00f5ea1e198210263b872a7 Mon Sep 17 00:00:00 2001 From: avalkov Date: Mon, 11 Apr 2022 16:13:44 +0300 Subject: [PATCH 37/54] Fix division by zero --- public/locales/en/proposals.json | 3 ++- src/screens/proposal_details/components/votes_graph/index.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/public/locales/en/proposals.json b/public/locales/en/proposals.json index 0fe867bc00..eac69825fb 100644 --- a/public/locales/en/proposals.json +++ b/public/locales/en/proposals.json @@ -48,5 +48,6 @@ "info": "Info", "didNotVote": "Did not vote", "notVoted": "Not Voted", - "upgradedClientState": "Upgraded Client State" + "upgradedClientState": "Upgraded Client State", + "votedTotalCaption": "Voted / Total ({{totalVotedPercent}})" } diff --git a/src/screens/proposal_details/components/votes_graph/index.tsx b/src/screens/proposal_details/components/votes_graph/index.tsx index 5dc344e20c..98856f4c8d 100644 --- a/src/screens/proposal_details/components/votes_graph/index.tsx +++ b/src/screens/proposal_details/components/votes_graph/index.tsx @@ -32,7 +32,8 @@ const VotesGraph: React.FC = (props) => { }); const totalVotedFormat = numeral(total.toFixed(2)).format('0,0.[00]'); const totalBondedFormat = numeral(state.bonded.value).format('0,0.[00]'); - const totalVotedPercent = total.gt(0) + + const totalVotedPercent = total.gt(0) && parseFloat(state.bonded.value) > 0 ? `${numeral( Big(total.toFixed(2)).div(state.bonded.value).times(100).toFixed(2), ).format('0.[00]')}%` : '0%'; From 94541b0b1fb34e4d6c0488e4c3d1a478487ceef9 Mon Sep 17 00:00:00 2001 From: SpaghettiOverload Date: Mon, 11 Apr 2022 17:18:17 +0300 Subject: [PATCH 38/54] Commenting out nonVoters --- .../components/votes/components/tabs/utils.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/screens/proposal_details/components/votes/components/tabs/utils.ts b/src/screens/proposal_details/components/votes/components/tabs/utils.ts index fdfca3ec97..65dc63670a 100644 --- a/src/screens/proposal_details/components/votes/components/tabs/utils.ts +++ b/src/screens/proposal_details/components/votes/components/tabs/utils.ts @@ -3,14 +3,14 @@ export const tabLabels = (data: { no: number; abstain: number; veto: number; - notVoted: number; + // notVoted: number; }) => { const { yes, no, abstain, veto, - notVoted, + // notVoted, } = data; const total = yes + no + abstain + veto; @@ -36,10 +36,10 @@ export const tabLabels = (data: { key: 'abstain', num: abstain, }, - { - key: 'didNotVote', - num: notVoted, - }, + // { + // key: 'didNotVote', + // num: notVoted, + // }, ] ); }; From 907592eb54f3b4b0fe045489b0df885f5fc411af Mon Sep 17 00:00:00 2001 From: avalkov Date: Tue, 12 Apr 2022 18:16:53 +0300 Subject: [PATCH 39/54] Display info for smart contract address --- declarations.d.ts | 8 + public/locales/en/accounts.json | 6 +- public/locales/en/transactions.json | 3 +- .../cosmwasm/contract_messages/hooks.ts | 81 ++++++++ .../cosmwasm/contract_messages/index.tsx | 50 +++++ .../cosmwasm/contract_messages/styles.ts | 24 +++ .../cosmwasm/contract_messages/types.ts | 6 + .../components/desktop/index.tsx | 196 ++++++++++++++++++ .../components/desktop/styles.ts | 21 ++ .../components/desktop/utils.ts | 29 +++ .../components/index.ts | 7 + .../components/mobile/index.tsx | 127 ++++++++++++ .../components/mobile/styles.ts | 15 ++ .../cosmwasm/contract_messages_list/index.tsx | 58 ++++++ .../cosmwasm/contract_messages_list/styles.ts | 23 ++ .../cosmwasm/contract_messages_list/types.ts | 10 + .../cosmwasm/contract_overview/index.tsx | 104 ++++++++++ .../cosmwasm/contract_overview/styles.ts | 81 ++++++++ src/components/cosmwasm/index.ts | 11 + .../single_contract_message_mobile/index.tsx | 68 ++++++ .../single_contract_message_mobile/styles.ts | 37 ++++ src/components/index.ts | 7 + src/graphql/cosmwasm.ts | 28 +++ .../msg/cosmwasm/msg_clear_contract_admin.ts | 10 +- .../msg/cosmwasm/msg_execute_contract.ts | 12 +- .../msg/cosmwasm/msg_instantiate_contract.ts | 8 +- .../msg/cosmwasm/msg_migrate_contract.ts | 8 +- src/models/msg/cosmwasm/msg_store_code.ts | 8 +- .../msg/cosmwasm/msg_update_contract_admin.ts | 8 +- .../account_details/components/index.ts | 2 + .../components/simple_balance/index.tsx | 70 +++++++ .../components/simple_balance/styles.ts | 98 +++++++++ src/screens/account_details/hooks.ts | 16 +- src/screens/account_details/index.tsx | 81 +++++--- src/screens/account_details/types.ts | 10 + src/screens/account_details/utils.ts | 26 +++ src/screens/params/utils.ts | 5 +- .../components/overview/index.tsx | 9 +- 38 files changed, 1309 insertions(+), 62 deletions(-) create mode 100644 src/components/cosmwasm/contract_messages/hooks.ts create mode 100644 src/components/cosmwasm/contract_messages/index.tsx create mode 100644 src/components/cosmwasm/contract_messages/styles.ts create mode 100644 src/components/cosmwasm/contract_messages/types.ts create mode 100644 src/components/cosmwasm/contract_messages_list/components/desktop/index.tsx create mode 100644 src/components/cosmwasm/contract_messages_list/components/desktop/styles.ts create mode 100644 src/components/cosmwasm/contract_messages_list/components/desktop/utils.ts create mode 100644 src/components/cosmwasm/contract_messages_list/components/index.ts create mode 100644 src/components/cosmwasm/contract_messages_list/components/mobile/index.tsx create mode 100644 src/components/cosmwasm/contract_messages_list/components/mobile/styles.ts create mode 100644 src/components/cosmwasm/contract_messages_list/index.tsx create mode 100644 src/components/cosmwasm/contract_messages_list/styles.ts create mode 100644 src/components/cosmwasm/contract_messages_list/types.ts create mode 100644 src/components/cosmwasm/contract_overview/index.tsx create mode 100644 src/components/cosmwasm/contract_overview/styles.ts create mode 100644 src/components/cosmwasm/index.ts create mode 100644 src/components/cosmwasm/single_contract_message_mobile/index.tsx create mode 100644 src/components/cosmwasm/single_contract_message_mobile/styles.ts create mode 100644 src/graphql/cosmwasm.ts create mode 100644 src/screens/account_details/components/simple_balance/index.tsx create mode 100644 src/screens/account_details/components/simple_balance/styles.ts diff --git a/declarations.d.ts b/declarations.d.ts index 008bf9c3d2..a466b8ab9f 100644 --- a/declarations.d.ts +++ b/declarations.d.ts @@ -88,3 +88,11 @@ type MsgCoin = { denom: string; amount: string; } + +type ContractMessage = { + method: string; + success: boolean; + transaction_hash: string; + timestamp: string; + height: number; +} diff --git a/public/locales/en/accounts.json b/public/locales/en/accounts.json index 78c6eb6f31..c68827ee49 100644 --- a/public/locales/en/accounts.json +++ b/public/locales/en/accounts.json @@ -33,5 +33,9 @@ "creationTime": "Creation Time", "bio": "Bio", "status": "Status", - "completionTime": "Completion Time" + "completionTime": "Completion Time", + "smartContractDetails": "Smart Contract Details", + "deployer": "Deployer", + "label": "Label", + "codeId": "Code Id" } diff --git a/public/locales/en/transactions.json b/public/locales/en/transactions.json index 82d55015af..6797b8ce75 100644 --- a/public/locales/en/transactions.json +++ b/public/locales/en/transactions.json @@ -34,5 +34,6 @@ "feegrant": "Feegrant", "vesting": "Vesting", "logs": "Logs", - "arguments": "Arguments" + "arguments": "Arguments", + "method": "Method" } diff --git a/src/components/cosmwasm/contract_messages/hooks.ts b/src/components/cosmwasm/contract_messages/hooks.ts new file mode 100644 index 0000000000..438432ef99 --- /dev/null +++ b/src/components/cosmwasm/contract_messages/hooks.ts @@ -0,0 +1,81 @@ +import { useState } from 'react'; +import * as R from 'ramda'; +import axios from 'axios'; +import { + CosmWasmExecutesDocument, +} from '@graphql/cosmwasm'; +import { ContractMessagesState } from './types'; + +const LIMIT = 50; + +export const useMessages = (addr: string) => { + const fetchMessages = async (address: string, offset: number, limit: number) => { + return axios.post(process.env.NEXT_PUBLIC_GRAPHQL_URL, { + variables: { + address, + offset, + limit, + }, + query: CosmWasmExecutesDocument, + }); + }; + + const fetchMessagesCompletionHandler = (data: any) => { + const extractedData = R.pathOr([], ['data', 'cosmwasm_execute'], data); + const itemsLength = extractedData.length; + if (itemsLength === 0) { + return; + } + const newItems = R.uniq([...state.data, ...formatMessages(extractedData)]); + const stateChange = { + data: newItems, + hasNextPage: itemsLength === LIMIT, + isNextPageLoading: false, + offsetCount: state.offsetCount + itemsLength, + }; + + handleSetState(stateChange); + }; + + const [state, setState] = useState({ + data: [], + hasNextPage: false, + isNextPageLoading: false, + offsetCount: 0, + }); + + const handleSetState = (stateChange: any) => { + setState((prevState) => R.mergeDeepLeft(stateChange, prevState)); + }; + + fetchMessages(addr, state.offsetCount, LIMIT).then(({ data }) => { + fetchMessagesCompletionHandler(data); + }); + + const loadNextPage = async () => { + handleSetState({ + isNextPageLoading: true, + }); + // refetch query + fetchMessages(addr, state.offsetCount, LIMIT).then(({ data }) => { + fetchMessagesCompletionHandler(data); + }); + }; + + const formatMessages = (data: any) => { + return data.map((x) => { + return ({ + height: x.transaction.block.height, + transaction_hash: x.transaction_hash, + method: x.method, + success: x.success, + timestamp: x.transaction.block.timestamp, + }); + }); + }; + + return ({ + state, + loadNextPage, + }); +}; diff --git a/src/components/cosmwasm/contract_messages/index.tsx b/src/components/cosmwasm/contract_messages/index.tsx new file mode 100644 index 0000000000..6167446845 --- /dev/null +++ b/src/components/cosmwasm/contract_messages/index.tsx @@ -0,0 +1,50 @@ +import React from 'react'; +import classnames from 'classnames'; +import { Typography } from '@material-ui/core'; +import useTranslation from 'next-translate/useTranslation'; +import { + ContractMessagesList, + Box, +} from '@components'; +import { useStyles } from './styles'; +import { useMessages } from './hooks'; + +type ContractMessagesComponent = { + className?: string; + address: string; +} + +const ContractMessages: React.FC = (props) => { + const classes = useStyles(); + const { t } = useTranslation('transactions'); + + const { + state, + loadNextPage, + } = useMessages(props.address); + + const loadMoreItems = state.isNextPageLoading ? () => null : loadNextPage; + const isItemLoaded = (index) => !state.hasNextPage || index < state.data.length; + const itemCount = state.hasNextPage ? state.data.length + 1 : state.data.length; + + return ( + + + {t('messages')} + +
+ +
+
+ ); +}; + +export default ContractMessages; diff --git a/src/components/cosmwasm/contract_messages/styles.ts b/src/components/cosmwasm/contract_messages/styles.ts new file mode 100644 index 0000000000..65cc0f4b6c --- /dev/null +++ b/src/components/cosmwasm/contract_messages/styles.ts @@ -0,0 +1,24 @@ +import { makeStyles } from '@material-ui/core/styles'; + +export const useStyles = () => { + const styles = makeStyles( + (theme) => { + return ({ + root: { + '& .MuiTypography-h2': { + marginBottom: theme.spacing(2), + }, + }, + list: { + minHeight: '500px', + height: '50vh', + [theme.breakpoints.up('lg')]: { + minHeight: '65vh', + }, + }, + }); + }, + )(); + + return styles; +}; diff --git a/src/components/cosmwasm/contract_messages/types.ts b/src/components/cosmwasm/contract_messages/types.ts new file mode 100644 index 0000000000..b4f4697d59 --- /dev/null +++ b/src/components/cosmwasm/contract_messages/types.ts @@ -0,0 +1,6 @@ +export type ContractMessagesState = { + hasNextPage: boolean; + isNextPageLoading: boolean; + offsetCount: number; + data: ContractMessage[]; + } diff --git a/src/components/cosmwasm/contract_messages_list/components/desktop/index.tsx b/src/components/cosmwasm/contract_messages_list/components/desktop/index.tsx new file mode 100644 index 0000000000..c5ba3783b7 --- /dev/null +++ b/src/components/cosmwasm/contract_messages_list/components/desktop/index.tsx @@ -0,0 +1,196 @@ +import React from 'react'; +import classnames from 'classnames'; +import AutoSizer from 'react-virtualized-auto-sizer'; +import numeral from 'numeral'; +import dayjs from '@utils/dayjs'; +import Link from 'next/link'; +import { + TRANSACTION_DETAILS, + BLOCK_DETAILS, +} from '@utils/go_to_page'; +import InfiniteLoader from 'react-window-infinite-loader'; +import { VariableSizeGrid as Grid } from 'react-window'; +import { Typography } from '@material-ui/core'; +import useTranslation from 'next-translate/useTranslation'; +import { mergeRefs } from '@utils/merge_refs'; +import { + Loading, Result, +} from '@components'; +import { useGrid } from '@hooks'; +import { getMiddleEllipsis } from '@utils/get_middle_ellipsis'; +import { ContractMessagesListState } from '../../types'; +import { columns } from './utils'; +import { useStyles } from './styles'; + +const Desktop: React.FC = ({ + className, + itemCount, + loadMoreItems, + isItemLoaded, + messages, +}) => { + const { + gridRef, + columnRef, + onResize, + getColumnWidth, + getRowHeight, + } = useGrid(columns); + + const classes = useStyles(); + const { t } = useTranslation('transactions'); + + const items = messages.map((x) => ({ + block: ( + + + {numeral(x.height).format('0,0')} + + + ), + hash: ( + + + {getMiddleEllipsis(x.transaction_hash, { + beginning: 20, ending: 15, + })} + + + ), + result: ( + + ), + time: dayjs.utc(x.timestamp).fromNow(), + method: x.method, + })); + return ( +
+ + {({ + height, width, + }) => { + return ( + <> + {/* ======================================= */} + {/* Table Header */} + {/* ======================================= */} + getColumnWidth(width, index)} + height={50} + rowCount={1} + rowHeight={() => 50} + width={width} + > + {({ + columnIndex, style, + }) => { + const { + key, align, + } = columns[columnIndex]; + + return ( +
+ + {t(key)} + +
+ ); + }} +
+ {/* ======================================= */} + {/* Table Body */} + {/* ======================================= */} + + {({ + onItemsRendered, ref, + }) => { + return ( + { + onItemsRendered({ + overscanStartIndex: overscanRowStartIndex, + overscanStopIndex: overscanRowStopIndex, + visibleStartIndex: visibleRowStartIndex, + visibleStopIndex: visibleRowStopIndex, + }); + }} + ref={mergeRefs(gridRef, ref)} + columnCount={columns.length} + columnWidth={(index) => getColumnWidth(width, index)} + height={height - 50} + rowCount={itemCount} + rowHeight={getRowHeight} + width={width} + className="scrollbar" + > + {({ + columnIndex, rowIndex, style, + }) => { + if (!isItemLoaded(rowIndex) && columnIndex === 0) { + return ( +
+ +
+ ); + } + + if (!isItemLoaded(rowIndex)) { + return null; + } + + const { + key, align, + } = columns[columnIndex]; + const item = items[rowIndex][key]; + return ( +
+ + {item} + +
+ ); + }} +
+ ); + }} +
+ + ); + }} +
+
+ ); +}; + +export default Desktop; diff --git a/src/components/cosmwasm/contract_messages_list/components/desktop/styles.ts b/src/components/cosmwasm/contract_messages_list/components/desktop/styles.ts new file mode 100644 index 0000000000..cdbe426728 --- /dev/null +++ b/src/components/cosmwasm/contract_messages_list/components/desktop/styles.ts @@ -0,0 +1,21 @@ +import { makeStyles } from '@material-ui/core/styles'; + +export const useStyles = () => { + const styles = makeStyles( + (theme) => { + return ({ + root: { + height: '100%', + }, + cell: { + ...theme.mixins.tableCell, + }, + body: { + color: theme.palette.custom.fonts.fontTwo, + }, + }); + }, + )(); + + return styles; +}; diff --git a/src/components/cosmwasm/contract_messages_list/components/desktop/utils.ts b/src/components/cosmwasm/contract_messages_list/components/desktop/utils.ts new file mode 100644 index 0000000000..b0e21a7450 --- /dev/null +++ b/src/components/cosmwasm/contract_messages_list/components/desktop/utils.ts @@ -0,0 +1,29 @@ +export const columns:{ + key: string; + align?: 'left' | 'center' | 'right' | 'justify' | 'inherit'; + width: number; +}[] = [ + { + key: 'block', + width: 15, + }, + { + key: 'hash', + width: 30, + }, + { + key: 'method', + align: 'right', + width: 15, + }, + { + key: 'result', + align: 'right', + width: 20, + }, + { + key: 'time', + align: 'right', + width: 20, + }, +]; diff --git a/src/components/cosmwasm/contract_messages_list/components/index.ts b/src/components/cosmwasm/contract_messages_list/components/index.ts new file mode 100644 index 0000000000..3f1746a986 --- /dev/null +++ b/src/components/cosmwasm/contract_messages_list/components/index.ts @@ -0,0 +1,7 @@ +import Desktop from './desktop'; +import Mobile from './mobile'; + +export { + Desktop, + Mobile, +}; diff --git a/src/components/cosmwasm/contract_messages_list/components/mobile/index.tsx b/src/components/cosmwasm/contract_messages_list/components/mobile/index.tsx new file mode 100644 index 0000000000..460ab442a7 --- /dev/null +++ b/src/components/cosmwasm/contract_messages_list/components/mobile/index.tsx @@ -0,0 +1,127 @@ +import React from 'react'; +import classnames from 'classnames'; +import numeral from 'numeral'; +import dayjs from '@utils/dayjs'; +import Link from 'next/link'; +import { + TRANSACTION_DETAILS, + BLOCK_DETAILS, +} from '@utils/go_to_page'; +import { + Typography, Divider, +} from '@material-ui/core'; +import { VariableSizeList as List } from 'react-window'; +import InfiniteLoader from 'react-window-infinite-loader'; +import AutoSizer from 'react-virtualized-auto-sizer'; + +import { mergeRefs } from '@utils/merge_refs'; +import { + SingleContractMessageMobile, + Loading, + Result, +} from '@components'; +import { + useList, + useListRow, +} from '@hooks'; +import { getMiddleEllipsis } from '@utils/get_middle_ellipsis'; +import { useStyles } from './styles'; +import { ContractMessagesListState } from '../../types'; + +const Mobile: React.FC = ({ + className, + itemCount, + loadMoreItems, + isItemLoaded, + messages, +}) => { + const classes = useStyles(); + + const { + listRef, + getRowHeight, + setRowHeight, + } = useList(); + + const items = messages.map((x) => ({ + block: ( + + + {numeral(x.height).format('0,0')} + + + ), + hash: ( + + + {getMiddleEllipsis(x.transaction_hash, { + beginning: 15, ending: 5, + })} + + + ), + result: ( + + ), + time: dayjs.utc(x.timestamp).fromNow(), + method: x.method, + })); + + return ( +
+ + {({ + height, width, + }) => { + return ( + + {({ + onItemsRendered, ref, + }) => ( + + {({ + index, style, + }) => { + const { rowRef } = useListRow(index, setRowHeight); + if (!isItemLoaded(index)) { + return ( +
+
+ +
+
+ ); + } + const item = items[index]; + return ( +
+
+ + {index !== itemCount - 1 && } +
+
+ ); + }} +
+ )} +
+ ); + }} +
+
+ ); +}; + +export default Mobile; diff --git a/src/components/cosmwasm/contract_messages_list/components/mobile/styles.ts b/src/components/cosmwasm/contract_messages_list/components/mobile/styles.ts new file mode 100644 index 0000000000..310137787b --- /dev/null +++ b/src/components/cosmwasm/contract_messages_list/components/mobile/styles.ts @@ -0,0 +1,15 @@ +import { makeStyles } from '@material-ui/core/styles'; + +export const useStyles = () => { + const styles = makeStyles( + () => { + return ({ + root: { + height: '100%', + }, + }); + }, + )(); + + return styles; +}; diff --git a/src/components/cosmwasm/contract_messages_list/index.tsx b/src/components/cosmwasm/contract_messages_list/index.tsx new file mode 100644 index 0000000000..f5b04cc934 --- /dev/null +++ b/src/components/cosmwasm/contract_messages_list/index.tsx @@ -0,0 +1,58 @@ +import React from 'react'; +import dynamic from 'next/dynamic'; +import { NoData } from '@components'; +import { useScreenSize } from '@hooks'; +import { useStyles } from './styles'; +import { ContractMessagesListState } from './types'; + +const Desktop = dynamic(() => import('./components/desktop')); +const Mobile = dynamic(() => import('./components/mobile')); + +const ContractMessagesList: React.FC = (props) => { + const { isDesktop } = useScreenSize(); + // setting fallback values + const { + hasNextPage = false, + isNextPageLoading = false, + loadNextPage = () => null, + loadMoreItems = () => null, + isItemLoaded = () => true, + itemCount, + messages, + } = props; + const classes = useStyles(); + + const formatProps = { + hasNextPage, + isNextPageLoading, + isItemLoaded, + loadNextPage, + loadMoreItems, + itemCount, + messages, + }; + + if (!itemCount) { + return ( + + ); + } + + return ( + <> + {isDesktop ? ( + + ) : ( + + )} + + ); +}; + +export default ContractMessagesList; diff --git a/src/components/cosmwasm/contract_messages_list/styles.ts b/src/components/cosmwasm/contract_messages_list/styles.ts new file mode 100644 index 0000000000..ac675be276 --- /dev/null +++ b/src/components/cosmwasm/contract_messages_list/styles.ts @@ -0,0 +1,23 @@ +import { makeStyles } from '@material-ui/core/styles'; + +export const useStyles = () => { + const styles = makeStyles( + (theme) => { + return ({ + mobile: { + [theme.breakpoints.up('lg')]: { + display: 'none', + }, + }, + desktop: { + display: 'none', + [theme.breakpoints.up('lg')]: { + display: 'block', + }, + }, + }); + }, { index: 1 }, + )(); + + return styles; +}; diff --git a/src/components/cosmwasm/contract_messages_list/types.ts b/src/components/cosmwasm/contract_messages_list/types.ts new file mode 100644 index 0000000000..959561d7a6 --- /dev/null +++ b/src/components/cosmwasm/contract_messages_list/types.ts @@ -0,0 +1,10 @@ +export type ContractMessagesListState = { + className?: string; + hasNextPage?: boolean; + isNextPageLoading?: boolean; + loadNextPage?: (any) => void; + loadMoreItems?: (any) => void; + isItemLoaded?: (index: number) => boolean; + itemCount: number; + messages: ContractMessage[]; + } diff --git a/src/components/cosmwasm/contract_overview/index.tsx b/src/components/cosmwasm/contract_overview/index.tsx new file mode 100644 index 0000000000..1157c7b354 --- /dev/null +++ b/src/components/cosmwasm/contract_overview/index.tsx @@ -0,0 +1,104 @@ +import React from 'react'; +import classnames from 'classnames'; +import useTranslation from 'next-translate/useTranslation'; +import { + Typography, +} from '@material-ui/core'; +import { useScreenSize } from '@hooks'; +import { getMiddleEllipsis } from '@utils/get_middle_ellipsis'; +import { Box } from '@components'; +import { useStyles } from './styles'; + +const ContractOverview: React.FC<{ + className?: string; + address: string; + deployerAddress: string; + label: string; + codeId: string; +}> = ({ + className, + address, + deployerAddress, + label, + codeId, +}) => { + const { isDesktop } = useScreenSize(); + const classes = useStyles(); + const { t } = useTranslation('accounts'); + + return ( + <> + +
+ + {t('address')} + +
+ + { + !isDesktop ? ( + getMiddleEllipsis(address, { + beginning: 15, ending: 5, + }) + ) : ( + address + ) + } + +
+
+ +
+ + {t('deployer')} + +
+ + { + !isDesktop ? ( + getMiddleEllipsis(deployerAddress, { + beginning: 15, ending: 5, + }) + ) : ( + deployerAddress + ) + } + +
+
+ +
+ + {`${t('label')}: `} + { + !isDesktop ? ( + getMiddleEllipsis(label, { + beginning: 15, ending: 5, + }) + ) : ( + label + ) + } + +
+ +
+ + {`${t('codeId')}: `} + { + !isDesktop ? ( + getMiddleEllipsis(codeId, { + beginning: 15, ending: 5, + }) + ) : ( + codeId + ) + } + +
+
+ + ); +}; + +export default ContractOverview; diff --git a/src/components/cosmwasm/contract_overview/styles.ts b/src/components/cosmwasm/contract_overview/styles.ts new file mode 100644 index 0000000000..5d6356001a --- /dev/null +++ b/src/components/cosmwasm/contract_overview/styles.ts @@ -0,0 +1,81 @@ +import { makeStyles } from '@material-ui/core/styles'; + +export const useStyles = () => { + const styles = makeStyles( + (theme) => { + return ({ + root: { + [theme.breakpoints.up('md')]: { + display: 'grid', + gridTemplateColumns: 'repeat(2,1fr)', + }, + }, + dialog: { + display: 'flex', + alignItems: 'center', + justifyContent: 'center', + flexDirection: 'column', + '& .MuiTypography-body1': { + marginBottom: theme.spacing(2), + }, + '& .dialog__share--wrapper': { + marginTop: theme.spacing(2), + }, + '& .share-buttons': { + '&:not(:last-child)': { + marginRight: theme.spacing(1), + }, + '&.email': { + '& circle': { + fill: theme.palette.primary.main, + }, + }, + }, + }, + actionIcons: { + '&:hover': { + cursor: 'pointer', + }, + }, + icons: { + '& svg': { + width: theme.spacing(4.5), + height: theme.spacing(4.5), + }, + }, + item: { + padding: theme.spacing(2, 0), + color: theme.palette.custom.fonts.fontTwo, + '&:first-child': { + paddingTop: 0, + }, + '&:last-child': { + paddingBottom: 0, + }, + '&:not(:last-child)': { + borderBottom: `solid 1px ${theme.palette.divider}`, + }, + '& .label': { + marginBottom: theme.spacing(1), + }, + '& .detail': { + '&.MuiTypography-body1': { + wordWrap: 'break-word', + }, + }, + [theme.breakpoints.up('md')]: { + padding: 0, + '&:not(:last-child)': { + borderBottom: 'none', + }, + '& .label': { + marginBottom: 0, + }, + }, + }, + }); + }, + )(); + + return styles; +}; diff --git a/src/components/cosmwasm/index.ts b/src/components/cosmwasm/index.ts new file mode 100644 index 0000000000..7ffff257b0 --- /dev/null +++ b/src/components/cosmwasm/index.ts @@ -0,0 +1,11 @@ +import ContractOverview from './contract_overview'; +import ContractMessagesList from './contract_messages_list'; +import ContractMessages from './contract_messages'; +import SingleContractMessageMobile from './single_contract_message_mobile'; + +export { + ContractOverview, + ContractMessagesList, + ContractMessages, + SingleContractMessageMobile, +}; diff --git a/src/components/cosmwasm/single_contract_message_mobile/index.tsx b/src/components/cosmwasm/single_contract_message_mobile/index.tsx new file mode 100644 index 0000000000..ab6cca6472 --- /dev/null +++ b/src/components/cosmwasm/single_contract_message_mobile/index.tsx @@ -0,0 +1,68 @@ +import React from 'react'; +import classnames from 'classnames'; +import { + Typography, +} from '@material-ui/core'; +import useTranslation from 'next-translate/useTranslation'; +import { useStyles } from './styles'; + +const SingleContractMessageMobile:React.FC<{ + className?: string; + block: React.ReactNode; + hash: React.ReactNode; + time: string; + method: string; + result?: React.ReactNode; +}> = ({ + className, block, hash, time, method, result, +}) => { + const { t } = useTranslation('transactions'); + const classes = useStyles(); + + return ( +
+
+ + {t('block')} + + {block} +
+
+ + {t('hash')} + + + {hash} + +
+
+ {!!method && ( +
+ + {t('method')} + + + {method} + +
+ )} +
+ + {t('result')} + + {result} +
+
+
+ + {t('time')} + + + {time} + +
+
+ ); +}; + +export default SingleContractMessageMobile; diff --git a/src/components/cosmwasm/single_contract_message_mobile/styles.ts b/src/components/cosmwasm/single_contract_message_mobile/styles.ts new file mode 100644 index 0000000000..ec4f05a727 --- /dev/null +++ b/src/components/cosmwasm/single_contract_message_mobile/styles.ts @@ -0,0 +1,37 @@ +import { makeStyles } from '@material-ui/core/styles'; + +export const useStyles = () => { + const styles = makeStyles( + (theme) => { + return ({ + root: { + marginBottom: theme.spacing(2), + marginTop: theme.spacing(2), + }, + item: { + marginBottom: theme.spacing(2), + '& .label': { + marginBottom: theme.spacing(1), + color: theme.palette.custom.fonts.fontThree, + }, + '& p.value': { + color: theme.palette.custom.fonts.fontTwo, + }, + '& a': { + color: theme.palette.custom.fonts.highlight, + }, + }, + flex: { + display: 'flex', + alignItems: 'flex-start', + justifyContent: 'flex-start', + '& > div': { + width: '50%', + }, + }, + }); + }, + )(); + + return styles; +}; diff --git a/src/components/index.ts b/src/components/index.ts index 6be254cb91..92ca482452 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -29,6 +29,9 @@ import LoadAndExist from './load_and_exist'; import DesmosProfile from './desmos_profile'; import TransactionListDetails from './transactions_list_details'; import AvatarNameListMsg from './avatar_name_list_msg'; +import { + ContractOverview, ContractMessages, ContractMessagesList, SingleContractMessageMobile, +} from './cosmwasm'; export { Layout, @@ -62,4 +65,8 @@ export { DesmosProfile, TransactionListDetails, AvatarNameListMsg, + ContractOverview, + ContractMessages, + ContractMessagesList, + SingleContractMessageMobile, }; diff --git a/src/graphql/cosmwasm.ts b/src/graphql/cosmwasm.ts new file mode 100644 index 0000000000..828b48ac5a --- /dev/null +++ b/src/graphql/cosmwasm.ts @@ -0,0 +1,28 @@ +export const CosmWasmInstantiateDocument = /* GraphQL */` +query CosmWasmInstantiate($address: String!) { + cosmwasm_instantiate(where: {result_contract_address: {_eq: $address}}, limit: 1) { + admin + result_contract_address + label + sender + success + code_id + } +} +`; + +export const CosmWasmExecutesDocument = /* GraphQL */` +query CosmWasmExecutes($address: String!, $offset: Int, $limit: Int) { + cosmwasm_execute(where: {contract: {_eq: $address}}, offset: $offset, limit: $limit) { + method + success + transaction_hash + transaction { + block { + timestamp + height + } + } + } +} +`; diff --git a/src/models/msg/cosmwasm/msg_clear_contract_admin.ts b/src/models/msg/cosmwasm/msg_clear_contract_admin.ts index 91c98e6e2f..5d5af4a651 100644 --- a/src/models/msg/cosmwasm/msg_clear_contract_admin.ts +++ b/src/models/msg/cosmwasm/msg_clear_contract_admin.ts @@ -1,7 +1,7 @@ import * as R from 'ramda'; - import { Categories } from '../types'; +import { Categories } from '../types'; - class MsgClearContractAdmin { +class MsgClearContractAdmin { public category: Categories; public type: string; public json: any; @@ -9,7 +9,6 @@ import * as R from 'ramda'; public contract: string; constructor(payload: any) { - console.log("MsgClearContractAdmin payload ", payload); this.category = 'cosmwasm'; this.type = payload.type; this.json = payload.json; @@ -18,7 +17,6 @@ import * as R from 'ramda'; } static fromJson(json: any) { - console.log("MsgClearContractAdmin json ", json); return new MsgClearContractAdmin({ json, type: json['@type'], @@ -26,6 +24,6 @@ import * as R from 'ramda'; contract: R.pathOr('', ['contract'], json), }); } - } +} - export default MsgClearContractAdmin; \ No newline at end of file +export default MsgClearContractAdmin; diff --git a/src/models/msg/cosmwasm/msg_execute_contract.ts b/src/models/msg/cosmwasm/msg_execute_contract.ts index 141ff30497..b38d78150c 100644 --- a/src/models/msg/cosmwasm/msg_execute_contract.ts +++ b/src/models/msg/cosmwasm/msg_execute_contract.ts @@ -21,13 +21,13 @@ class MsgExecuteContract { } static fromJson(json: any) { - json["msg_decoded"] = atob(json["msg"]) + json.msg_decoded = atob(json.msg); return new MsgExecuteContract({ - contract: json.contract, - msg: json.msg, - sender: json.sender, - type: json["@type"], - json: json, + contract: json.contract, + msg: json.msg, + sender: json.sender, + type: json['@type'], + json, }); } diff --git a/src/models/msg/cosmwasm/msg_instantiate_contract.ts b/src/models/msg/cosmwasm/msg_instantiate_contract.ts index 5a178dfe6c..0c57aa15ff 100644 --- a/src/models/msg/cosmwasm/msg_instantiate_contract.ts +++ b/src/models/msg/cosmwasm/msg_instantiate_contract.ts @@ -1,7 +1,7 @@ import * as R from 'ramda'; - import { Categories } from '../types'; +import { Categories } from '../types'; - class MsgInstantiateContract { +class MsgInstantiateContract { public category: Categories; public type: string; public json: any; @@ -36,6 +36,6 @@ import * as R from 'ramda'; })), }); } - } +} - export default MsgInstantiateContract; \ No newline at end of file +export default MsgInstantiateContract; diff --git a/src/models/msg/cosmwasm/msg_migrate_contract.ts b/src/models/msg/cosmwasm/msg_migrate_contract.ts index aa5911a3f2..9526d7a127 100644 --- a/src/models/msg/cosmwasm/msg_migrate_contract.ts +++ b/src/models/msg/cosmwasm/msg_migrate_contract.ts @@ -1,7 +1,7 @@ import * as R from 'ramda'; - import { Categories } from '../types'; +import { Categories } from '../types'; - class MsgMigrateContract { +class MsgMigrateContract { public category: Categories; public type: string; public json: any; @@ -30,6 +30,6 @@ import * as R from 'ramda'; migrateMsg: R.pathOr('', ['migrate_msg'], json), }); } - } +} - export default MsgMigrateContract; \ No newline at end of file +export default MsgMigrateContract; diff --git a/src/models/msg/cosmwasm/msg_store_code.ts b/src/models/msg/cosmwasm/msg_store_code.ts index 422b61ebe8..5e03ebe183 100644 --- a/src/models/msg/cosmwasm/msg_store_code.ts +++ b/src/models/msg/cosmwasm/msg_store_code.ts @@ -1,7 +1,7 @@ import * as R from 'ramda'; - import { Categories } from '../types'; +import { Categories } from '../types'; - class MsgStoreCode { +class MsgStoreCode { public category: Categories; public type: string; public json: any; @@ -24,6 +24,6 @@ import * as R from 'ramda'; wasmByteCode: R.pathOr('', ['wasm_byte_code'], json), }); } - } +} - export default MsgStoreCode; \ No newline at end of file +export default MsgStoreCode; diff --git a/src/models/msg/cosmwasm/msg_update_contract_admin.ts b/src/models/msg/cosmwasm/msg_update_contract_admin.ts index b521b40a7e..f37c491766 100644 --- a/src/models/msg/cosmwasm/msg_update_contract_admin.ts +++ b/src/models/msg/cosmwasm/msg_update_contract_admin.ts @@ -1,7 +1,7 @@ import * as R from 'ramda'; - import { Categories } from '../types'; +import { Categories } from '../types'; - class MsgUpdateContractAdmin { +class MsgUpdateContractAdmin { public category: Categories; public type: string; public json: any; @@ -27,6 +27,6 @@ import * as R from 'ramda'; contract: R.pathOr('', ['contract'], json), }); } - } +} - export default MsgUpdateContractAdmin; \ No newline at end of file +export default MsgUpdateContractAdmin; diff --git a/src/screens/account_details/components/index.ts b/src/screens/account_details/components/index.ts index 91858aa257..155ef1ad8b 100644 --- a/src/screens/account_details/components/index.ts +++ b/src/screens/account_details/components/index.ts @@ -3,6 +3,7 @@ import Balance from './balance'; import Staking from './staking'; import Transactions from './transactions'; import OtherTokens from './other_tokens'; +import SimpleBalance from './simple_balance'; export { Overview, @@ -10,4 +11,5 @@ export { Staking, Transactions, OtherTokens, + SimpleBalance, }; diff --git a/src/screens/account_details/components/simple_balance/index.tsx b/src/screens/account_details/components/simple_balance/index.tsx new file mode 100644 index 0000000000..796c4c4b9b --- /dev/null +++ b/src/screens/account_details/components/simple_balance/index.tsx @@ -0,0 +1,70 @@ +import React from 'react'; +import classnames from 'classnames'; +import Big from 'big.js'; +import numeral from 'numeral'; +import * as R from 'ramda'; +import { useRecoilValue } from 'recoil'; +import { readMarket } from '@recoil/market'; +import { + Typography, + Divider, +} from '@material-ui/core'; +import useTranslation from 'next-translate/useTranslation'; +import { Box } from '@components'; +import { chainConfig } from '@configs'; +import { formatNumber } from '@utils/format_token'; +import { useStyles } from './styles'; + +const Balance: React.FC<{ + className?: string; + total: TokenUnit; +}> = (props) => { + const { t } = useTranslation('accounts'); + const { + classes, + } = useStyles(); + const market = useRecoilValue(readMarket); + + const totalAmount = `$${numeral(Big(market.price || 0).times(props.total.value).toPrecision()).format('0,0.00')}`; + + // format + const totalDisplay = formatNumber(props.total.value, props.total.exponent); + + return ( + + + {t('balance')} + +
+ +
+
+ + {t('total', { + unit: props.total.displayDenom.toUpperCase(), + })} + + + {totalDisplay} + +
+
+ + $ + {numeral(market.price).format('0,0.[00]', Math.floor)} + {' '} + / + {' '} + {R.pathOr('', ['tokenUnits', chainConfig.primaryTokenUnit, 'display'], chainConfig).toUpperCase()} + + + {totalAmount} + +
+
+
+
+ ); +}; + +export default Balance; diff --git a/src/screens/account_details/components/simple_balance/styles.ts b/src/screens/account_details/components/simple_balance/styles.ts new file mode 100644 index 0000000000..ed62cb867a --- /dev/null +++ b/src/screens/account_details/components/simple_balance/styles.ts @@ -0,0 +1,98 @@ +import { + makeStyles, useTheme, +} from '@material-ui/core/styles'; + +export const useStyles = () => { + const defaultTheme = useTheme(); + const styles = makeStyles( + (theme) => { + return ({ + root: { + '& .MuiTypography-h2': { + marginBottom: theme.spacing(2), + }, + [theme.breakpoints.up('lg')]: { + display: 'flex', + flexDirection: 'column', + }, + }, + chart: { + height: '300px', + [theme.breakpoints.up('md')]: { + height: '200px', + width: '200px', + }, + [theme.breakpoints.up('lg')]: { + height: '150px', + width: '150px', + }, + }, + chartWrapper: { + display: 'flex', + flexDirection: 'column', + justifyContent: 'space-between', + [theme.breakpoints.up('md')]: { + flexDirection: 'row', + alignItems: 'center', + }, + }, + legends: { + color: theme.palette.custom.fonts.fontTwo, + '& .legends__single--container': { + marginBottom: theme.spacing(1), + [theme.breakpoints.up('md')]: { + display: 'flex', + alignItems: 'center', + justifyContent: 'space-between', + }, + }, + '& .single__label--container': { + display: 'flex', + alignItems: 'center', + marginBottom: theme.spacing(0.5), + }, + '& .legend-color': { + width: theme.spacing(1.75), + height: theme.spacing(1.75), + borderRadius: '2px', + marginRight: theme.spacing(1), + }, + [theme.breakpoints.up('md')]: { + flex: 1, + marginLeft: theme.spacing(3), + }, + }, + divider: { + margin: theme.spacing(2, 0), + }, + total: { + '& .total__single--container': { + marginBottom: theme.spacing(1), + '& .label': { + marginBottom: theme.spacing(0.5), + color: theme.palette.custom.fonts.fontTwo, + [theme.breakpoints.up('md')]: { + color: theme.palette.custom.fonts.fontOne, + }, + }, + [theme.breakpoints.up('md')]: { + display: 'flex', + alignItems: 'center', + justifyContent: 'space-between', + }, + }, + '& .total__secondary--container': { + [theme.breakpoints.up('md')]: { + color: theme.palette.custom.fonts.fontTwo, + }, + }, + }, + }); + }, + )(); + + return { + classes: styles, + theme: defaultTheme, + }; +}; diff --git a/src/screens/account_details/hooks.ts b/src/screens/account_details/hooks.ts index 3d24330d82..2feeeabbce 100644 --- a/src/screens/account_details/hooks.ts +++ b/src/screens/account_details/hooks.ts @@ -18,6 +18,7 @@ import { fetchDelegationBalance, fetchRewards, fetchUnbondingBalance, + fetchCosmWasmInstantiation, } from './utils'; const defaultTokenUnit: TokenUnit = { @@ -48,6 +49,14 @@ const initialState: AccountDetailState = { total: defaultTokenUnit, }, rewards: {}, + cosmwasm: { + admin: '', + code_id: '', + label: '', + result_contract_address: '', + sender: '', + success: false, + }, }; export const useAccountDetails = () => { @@ -105,6 +114,7 @@ export const useAccountDetails = () => { fetchDelegationBalance(address), fetchUnbondingBalance(address), fetchRewards(address), + fetchCosmWasmInstantiation(address), ]; const [ commission, @@ -112,6 +122,7 @@ export const useAccountDetails = () => { delegation, unbonding, rewards, + cosmWasmInstantiation, ] = await Promise.allSettled(promises); const formattedRawData: any = {}; @@ -120,8 +131,11 @@ export const useAccountDetails = () => { formattedRawData.delegationBalance = R.pathOr([], ['value', 'delegationBalance'], delegation); formattedRawData.unbondingBalance = R.pathOr([], ['value', 'unbondingBalance'], unbonding); formattedRawData.delegationRewards = R.pathOr([], ['value', 'delegationRewards'], rewards); - handleSetState(formatAllBalance(formattedRawData)); + + const rawData: any = {}; + rawData.cosmwasm = R.pathOr([], ['value'], cosmWasmInstantiation); + handleSetState(rawData); }; // ========================== diff --git a/src/screens/account_details/index.tsx b/src/screens/account_details/index.tsx index 8b27d728ba..ccfdf6e73d 100644 --- a/src/screens/account_details/index.tsx +++ b/src/screens/account_details/index.tsx @@ -4,6 +4,8 @@ import { Layout, LoadAndExist, DesmosProfile, + ContractOverview, + ContractMessages, } from '@components'; import { NextSeo } from 'next-seo'; import { useStyles } from './styles'; @@ -13,6 +15,7 @@ import { Staking, Transactions, OtherTokens, + SimpleBalance, } from './components'; import { useAccountDetails } from './hooks'; @@ -23,15 +26,17 @@ const AccountDetails = () => { state, } = useAccountDetails(); + const isSmartContract = state.cosmwasm.result_contract_address === state.overview.address; + return ( <> - + { coverUrl={state.desmosProfile.coverUrl} /> )} - - + {isSmartContract + ? ( + + ) + : ( + + )} + {isSmartContract + ? + : ( + + )} - - + {!isSmartContract + && ( + + )} + {isSmartContract + ? ( + + ) + : ( + + )}
diff --git a/src/screens/account_details/types.ts b/src/screens/account_details/types.ts index c0f72a49a8..769bf06f70 100644 --- a/src/screens/account_details/types.ts +++ b/src/screens/account_details/types.ts @@ -23,6 +23,15 @@ export type RewardsType = { [value:string]: TokenUnit[]; } +export type CosmwasmType = { + admin: string; + code_id: string, + label: string, + result_contract_address: string, + sender: string, + success: boolean +} + export type AccountDetailState = { loading: boolean; exists: boolean; @@ -34,4 +43,5 @@ export type AccountDetailState = { count: number; }; rewards: RewardsType; + cosmwasm: CosmwasmType; } diff --git a/src/screens/account_details/utils.ts b/src/screens/account_details/utils.ts index c822220aa4..19a31a9276 100644 --- a/src/screens/account_details/utils.ts +++ b/src/screens/account_details/utils.ts @@ -10,6 +10,10 @@ import { AccountDelegationRewardsDocument, } from '@graphql/account_actions'; +import { + CosmWasmInstantiateDocument, +} from '@graphql/cosmwasm'; + export const fetchCommission = async (address: string) => { const defaultReturnValue = { commission: { @@ -121,3 +125,25 @@ export const fetchRewards = async (address: string) => { return defaultReturnValue; } }; + +export const fetchCosmWasmInstantiation = async (address: string) => { + const defaultReturnValue = { + admin: '', + code_id: '', + label: '', + result_contract_address: '', + sender: '', + success: true, + }; + try { + const { data } = await axios.post(process.env.NEXT_PUBLIC_GRAPHQL_URL, { + variables: { + address, + }, + query: CosmWasmInstantiateDocument, + }); + return R.pathOr(defaultReturnValue, ['data', 'cosmwasm_instantiate', 0], data); + } catch (error) { + return defaultReturnValue; + } +}; diff --git a/src/screens/params/utils.ts b/src/screens/params/utils.ts index 6748537c4f..1358043efc 100644 --- a/src/screens/params/utils.ts +++ b/src/screens/params/utils.ts @@ -84,7 +84,7 @@ export const formatMinting = (data: Minting, t: any) => { }, { label: t('inflationRateChange'), - detail: `${(data.inflationRateChange * 100).toFixed(20).replace(/\.?0+$/,"")}%`, + detail: `${(data.inflationRateChange * 100).toFixed(20).replace(/\.?0+$/, '')}%`, }, { label: t('mintDenom'), @@ -115,11 +115,10 @@ export const formatDistribution = (data: Distribution, t: any) => { }; export const formatGov = (data: Gov, t: any) => { - return ([ { label: t('minDeposit'), - detail: `${parseFloat(data.minDeposit.value).toFixed(20).replace(/\.?0+$/,"")} ${data.minDeposit.displayDenom.toUpperCase()}`, + detail: `${parseFloat(data.minDeposit.value).toFixed(20).replace(/\.?0+$/, '')} ${data.minDeposit.displayDenom.toUpperCase()}`, }, { label: t('maxDepositPeriod'), diff --git a/src/screens/proposal_details/components/overview/index.tsx b/src/screens/proposal_details/components/overview/index.tsx index c699974471..2adbf004c4 100644 --- a/src/screens/proposal_details/components/overview/index.tsx +++ b/src/screens/proposal_details/components/overview/index.tsx @@ -7,7 +7,6 @@ import useTranslation from 'next-translate/useTranslation'; import { useRecoilValue } from 'recoil'; import { readDate } from '@recoil/settings'; import JSONPretty from 'react-json-pretty'; -var JSONPrettyMon = require('react-json-pretty/dist/monikai'); import { Typography, Divider, @@ -26,6 +25,8 @@ import { import { useStyles } from './styles'; import { getProposalType } from '../../utils'; +const JSONPrettyMon = require('react-json-pretty/dist/monikai'); + const Overview: React.FC<{ className?: string; title: string; @@ -80,7 +81,7 @@ const Overview: React.FC<{ ); @@ -98,7 +99,7 @@ const Overview: React.FC<{ {t('upgradedClientState')} - + ); } @@ -183,4 +184,4 @@ const Overview: React.FC<{ ); }; -export default Overview; \ No newline at end of file +export default Overview; From cff354f5feec8fcf28b53386ecd6c6f5f29bf119 Mon Sep 17 00:00:00 2001 From: avalkov Date: Wed, 13 Apr 2022 13:13:34 +0300 Subject: [PATCH 40/54] Added block to smart contract overview --- public/locales/en/accounts.json | 3 ++- .../cosmwasm/contract_overview/index.tsx | 17 +++++++++++++++++ src/graphql/cosmwasm.ts | 5 +++++ src/screens/account_details/hooks.ts | 5 +++++ src/screens/account_details/index.tsx | 1 + src/screens/account_details/types.ts | 3 ++- 6 files changed, 32 insertions(+), 2 deletions(-) diff --git a/public/locales/en/accounts.json b/public/locales/en/accounts.json index c68827ee49..e88d2f35ca 100644 --- a/public/locales/en/accounts.json +++ b/public/locales/en/accounts.json @@ -37,5 +37,6 @@ "smartContractDetails": "Smart Contract Details", "deployer": "Deployer", "label": "Label", - "codeId": "Code Id" + "codeId": "Code Id", + "instaBlock": "Instantiated At Block" } diff --git a/src/components/cosmwasm/contract_overview/index.tsx b/src/components/cosmwasm/contract_overview/index.tsx index 1157c7b354..6883a4569f 100644 --- a/src/components/cosmwasm/contract_overview/index.tsx +++ b/src/components/cosmwasm/contract_overview/index.tsx @@ -15,12 +15,14 @@ const ContractOverview: React.FC<{ deployerAddress: string; label: string; codeId: string; + block: string; }> = ({ className, address, deployerAddress, label, codeId, + block, }) => { const { isDesktop } = useScreenSize(); const classes = useStyles(); @@ -96,6 +98,21 @@ const ContractOverview: React.FC<{ }
+ +
+ + {`${t('block')}: `} + { + !isDesktop ? ( + getMiddleEllipsis(block, { + beginning: 15, ending: 5, + }) + ) : ( + block + ) + } + +
); diff --git a/src/graphql/cosmwasm.ts b/src/graphql/cosmwasm.ts index 828b48ac5a..7c67c35ebb 100644 --- a/src/graphql/cosmwasm.ts +++ b/src/graphql/cosmwasm.ts @@ -7,6 +7,11 @@ query CosmWasmInstantiate($address: String!) { sender success code_id + transaction { + block { + height + } + } } } `; diff --git a/src/screens/account_details/hooks.ts b/src/screens/account_details/hooks.ts index 2feeeabbce..018604ecc3 100644 --- a/src/screens/account_details/hooks.ts +++ b/src/screens/account_details/hooks.ts @@ -56,6 +56,11 @@ const initialState: AccountDetailState = { result_contract_address: '', sender: '', success: false, + transaction: { + block: { + height: 0, + }, + }, }, }; diff --git a/src/screens/account_details/index.tsx b/src/screens/account_details/index.tsx index ccfdf6e73d..2b1b7d4877 100644 --- a/src/screens/account_details/index.tsx +++ b/src/screens/account_details/index.tsx @@ -60,6 +60,7 @@ const AccountDetails = () => { deployerAddress={state.cosmwasm.sender} label={state.cosmwasm.label} codeId={state.cosmwasm.code_id} + block={state.cosmwasm.transaction.block.height} /> ) : ( diff --git a/src/screens/account_details/types.ts b/src/screens/account_details/types.ts index 769bf06f70..a8a6b81505 100644 --- a/src/screens/account_details/types.ts +++ b/src/screens/account_details/types.ts @@ -29,7 +29,8 @@ export type CosmwasmType = { label: string, result_contract_address: string, sender: string, - success: boolean + success: boolean, + transaction: any } export type AccountDetailState = { From d941193ffe727ab74d2d13c7094dfa02b1097b69 Mon Sep 17 00:00:00 2001 From: avalkov Date: Wed, 13 Apr 2022 18:22:20 +0300 Subject: [PATCH 41/54] Fix typo --- src/components/cosmwasm/contract_overview/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/cosmwasm/contract_overview/index.tsx b/src/components/cosmwasm/contract_overview/index.tsx index 6883a4569f..85c96f0cc5 100644 --- a/src/components/cosmwasm/contract_overview/index.tsx +++ b/src/components/cosmwasm/contract_overview/index.tsx @@ -101,7 +101,7 @@ const ContractOverview: React.FC<{
- {`${t('block')}: `} + {`${t('instaBlock')}: `} { !isDesktop ? ( getMiddleEllipsis(block, { From f43007c2855f069ae4e3ebdd2f2bf0187cc53d1a Mon Sep 17 00:00:00 2001 From: SpaghettiOverload Date: Thu, 14 Apr 2022 11:40:42 +0300 Subject: [PATCH 42/54] Fixing default theme --- src/recoil/settings/hooks.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/recoil/settings/hooks.ts b/src/recoil/settings/hooks.ts index 1b0d7fc150..53b9191c37 100644 --- a/src/recoil/settings/hooks.ts +++ b/src/recoil/settings/hooks.ts @@ -23,9 +23,7 @@ export const useSettingsRecoil = () => { const savedTheme = getItem(THEME_KEY, 'device'); let currentTheme: Theme = settings.theme; if (savedTheme === 'device') { - if (window?.matchMedia('(prefers-color-scheme: dark)')?.matches) { - currentTheme = 'cudos'; - } + currentTheme = 'cudos'; } else if (THEME_DICTIONARY[savedTheme]) { currentTheme = savedTheme; } From 05d48f5ed92eb40167f490b35353a9ade3342481 Mon Sep 17 00:00:00 2001 From: avalkov Date: Mon, 18 Apr 2022 10:25:25 +0300 Subject: [PATCH 43/54] Add support for weighted vote --- public/locales/en/proposals.json | 3 +- src/graphql/types.tsx | 17 ++++++++ .../votes/components/desktop/index.tsx | 1 + .../votes/components/desktop/utils.ts | 9 +++- .../components/votes/hooks.ts | 43 +++++++++++++++++-- .../components/votes/types.ts | 1 + 6 files changed, 67 insertions(+), 7 deletions(-) diff --git a/public/locales/en/proposals.json b/public/locales/en/proposals.json index eac69825fb..4d773c2876 100644 --- a/public/locales/en/proposals.json +++ b/public/locales/en/proposals.json @@ -49,5 +49,6 @@ "didNotVote": "Did not vote", "notVoted": "Not Voted", "upgradedClientState": "Upgraded Client State", - "votedTotalCaption": "Voted / Total ({{totalVotedPercent}})" + "votedTotalCaption": "Voted / Total ({{totalVotedPercent}})", + "weight": "Weight" } diff --git a/src/graphql/types.tsx b/src/graphql/types.tsx index 4017693000..eb33cae868 100644 --- a/src/graphql/types.tsx +++ b/src/graphql/types.tsx @@ -14065,6 +14065,23 @@ export const ProposalDetailsVotesDocument = gql` } `; +export const ProposalDetailsVotesWeightedDocument = /* GraphQL */` +query ProposalDetailsVotesWeighted($proposalId: Int) { + proposalVoteWeighted: proposal_vote_weighted(where: {proposal_id: {_eq: $proposalId}} order_by: {height: desc}) { + option + weight + 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__ * diff --git a/src/screens/proposal_details/components/votes/components/desktop/index.tsx b/src/screens/proposal_details/components/votes/components/desktop/index.tsx index d134262324..b4c9e2538f 100644 --- a/src/screens/proposal_details/components/votes/components/desktop/index.tsx +++ b/src/screens/proposal_details/components/votes/components/desktop/index.tsx @@ -31,6 +31,7 @@ const Desktop: React.FC<{ /> ), vote: t(getVoteKey(x.vote)), + weight: x.weight, }); }); diff --git a/src/screens/proposal_details/components/votes/components/desktop/utils.ts b/src/screens/proposal_details/components/votes/components/desktop/utils.ts index 54ca0a2520..313b599564 100644 --- a/src/screens/proposal_details/components/votes/components/desktop/utils.ts +++ b/src/screens/proposal_details/components/votes/components/desktop/utils.ts @@ -6,7 +6,7 @@ export const columns:{ { key: 'voter', // width: 34, - width: 50, + width: 33, }, // { // key: 'votingPower', @@ -16,7 +16,12 @@ export const columns:{ { key: 'vote', // width: 33, - width: 50, + width: 33, align: 'right', }, + { + key: 'weight', + width: 33, + align: 'right', + } ]; diff --git a/src/screens/proposal_details/components/votes/hooks.ts b/src/screens/proposal_details/components/votes/hooks.ts index ea6c584a08..e87e26c7ef 100644 --- a/src/screens/proposal_details/components/votes/hooks.ts +++ b/src/screens/proposal_details/components/votes/hooks.ts @@ -1,8 +1,9 @@ import { useState } from 'react'; import { useRouter } from 'next/router'; import * as R from 'ramda'; +import axios from 'axios'; import { - useProposalDetailsVotesQuery, ProposalDetailsVotesQuery, + useProposalDetailsVotesQuery, ProposalDetailsVotesWeightedDocument } from '@graphql/types'; import { toValidatorAddress } from '@utils/prefix_convert'; import { VoteState } from './types'; @@ -35,16 +36,49 @@ export const useVotes = (resetPagination:any) => { }); }; + const fetchWeightedVotes = async () => { + return axios.post(process.env.NEXT_PUBLIC_GRAPHQL_URL, { + variables: { + proposalId: R.pathOr('', ['query', 'id'], router), + }, + query: ProposalDetailsVotesWeightedDocument, + }); + }; + + const mergeRegularVotesWithWeighted = (votesData: any, votesWeightedData: any) => { + const mergedVotesData = { + validatorStatuses: votesData.validatorStatuses, + proposalVote: R.pathOr([], ['data', 'data', 'proposalVoteWeighted'], votesWeightedData) + } + + const proposalVote = R.pathOr([], ['proposalVote'], votesData); + + proposalVote.map((x: any) => { + x.weight = '100.00%'; + }); + + mergedVotesData.proposalVote.map((x: any) => { + x.weight = (parseFloat(x.weight) * 100.0).toFixed(2) + '%'; + }); + + mergedVotesData.proposalVote = [...proposalVote, ...mergedVotesData.proposalVote]; + + return mergedVotesData; + }; + useProposalDetailsVotesQuery({ variables: { proposalId: R.pathOr('', ['query', 'id'], router), }, - onCompleted: (data) => { - handleSetState(formatVotes(data)); + onCompleted: (votesData) => { + fetchWeightedVotes().then((votesWeightedData) => { + const mergedVotesData = mergeRegularVotesWithWeighted(votesData, votesWeightedData); + handleSetState(formatVotes(mergedVotesData)); + }); }, }); - const formatVotes = (data: ProposalDetailsVotesQuery) => { + const formatVotes = (data) => { const validatorDict = {}; const validators = data.validatorStatuses.map((x) => { const selfDelegateAddress = R.pathOr('', ['validator', 'validatorInfo', 'selfDelegateAddress'], x); @@ -77,6 +111,7 @@ export const useVotes = (resetPagination:any) => { return ({ user: x.voterAddress, vote: x.option, + weight: x.weight, }); }); diff --git a/src/screens/proposal_details/components/votes/types.ts b/src/screens/proposal_details/components/votes/types.ts index 4f36a20aa0..054b093444 100644 --- a/src/screens/proposal_details/components/votes/types.ts +++ b/src/screens/proposal_details/components/votes/types.ts @@ -1,6 +1,7 @@ export type VoteType = { vote: string; user: string; + weight: string; } export type VoteCount = { From d00a4c71d1c1e0ef02c55da9545aa55dd505e7f3 Mon Sep 17 00:00:00 2001 From: avalkov Date: Wed, 27 Apr 2022 11:31:43 +0300 Subject: [PATCH 44/54] Fix graphql queries --- .../proposal_details_votes_weighted.ts | 16 + src/graphql/types.tsx | 421 +++++++++++++++++- .../components/votes/hooks.ts | 5 +- 3 files changed, 423 insertions(+), 19 deletions(-) create mode 100644 src/graphql/proposal_details_votes_weighted.ts diff --git a/src/graphql/proposal_details_votes_weighted.ts b/src/graphql/proposal_details_votes_weighted.ts new file mode 100644 index 0000000000..55f2b8fe8f --- /dev/null +++ b/src/graphql/proposal_details_votes_weighted.ts @@ -0,0 +1,16 @@ +export const ProposalDetailsVotesWeightedDocument = /* GraphQL */` +query ProposalDetailsVotesWeighted($proposalId: Int) { + proposalVoteWeighted: proposal_vote_weighted(where: {proposal_id: {_eq: $proposalId}} order_by: {height: desc}) { + option + weight + voterAddress: voter_address + } + validatorStatuses: proposal_validator_status_snapshot(where: {proposal_id: {_eq: $proposalId}, status: {_eq: 3}}) { + validator { + validatorInfo: validator_info { + selfDelegateAddress: self_delegate_address + } + } + } +} +`; \ No newline at end of file diff --git a/src/graphql/types.tsx b/src/graphql/types.tsx index eb33cae868..dce41ad159 100644 --- a/src/graphql/types.tsx +++ b/src/graphql/types.tsx @@ -21,6 +21,7 @@ export type Scalars = { _dec_coin: any; _text: any; bigint: any; + coin: any; json: any; jsonb: any; numeric: any; @@ -1214,6 +1215,20 @@ export type Block_Variance_Order_By = { total_gas?: Maybe; }; + +/** Boolean expression to compare columns of type "coin". All fields are combined with logical 'AND'. */ +export type Coin_Comparison_Exp = { + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; +}; + /** columns and relationships of "community_pool" */ export type Community_Pool = { __typename?: 'community_pool'; @@ -2301,6 +2316,104 @@ export type Cosmwasm_Update_Admin_Variance_Fields = { index?: Maybe; }; +/** columns and relationships of "delegation" */ +export type Delegation = { + __typename?: 'delegation'; + /** An object relationship */ + account: Account; + amount: Scalars['coin']; + delegator_address: Scalars['String']; + validator_address: Scalars['String']; + /** An object relationship */ + validator_info: Validator_Info; +}; + +/** aggregated selection of "delegation" */ +export type Delegation_Aggregate = { + __typename?: 'delegation_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "delegation" */ +export type Delegation_Aggregate_Fields = { + __typename?: 'delegation_aggregate_fields'; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "delegation" */ +export type Delegation_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "delegation" */ +export type Delegation_Aggregate_Order_By = { + count?: Maybe; + max?: Maybe; + min?: Maybe; +}; + +/** Boolean expression to filter rows from the table "delegation". All fields are combined with a logical 'AND'. */ +export type Delegation_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + account?: Maybe; + amount?: Maybe; + delegator_address?: Maybe; + validator_address?: Maybe; + validator_info?: Maybe; +}; + +/** aggregate max on columns */ +export type Delegation_Max_Fields = { + __typename?: 'delegation_max_fields'; + delegator_address?: Maybe; + validator_address?: Maybe; +}; + +/** order by max() on columns of table "delegation" */ +export type Delegation_Max_Order_By = { + delegator_address?: Maybe; + validator_address?: Maybe; +}; + +/** aggregate min on columns */ +export type Delegation_Min_Fields = { + __typename?: 'delegation_min_fields'; + delegator_address?: Maybe; + validator_address?: Maybe; +}; + +/** order by min() on columns of table "delegation" */ +export type Delegation_Min_Order_By = { + delegator_address?: Maybe; + validator_address?: Maybe; +}; + +/** Ordering options when selecting data from "delegation". */ +export type Delegation_Order_By = { + account?: Maybe; + amount?: Maybe; + delegator_address?: Maybe; + validator_address?: Maybe; + validator_info?: Maybe; +}; + +/** select columns of table "delegation" */ +export enum Delegation_Select_Column { + /** column name */ + Amount = 'amount', + /** column name */ + DelegatorAddress = 'delegator_address', + /** column name */ + ValidatorAddress = 'validator_address' +} + /** columns and relationships of "distribution_params" */ export type Distribution_Params = { __typename?: 'distribution_params'; @@ -4551,7 +4664,7 @@ export type Proposal_Deposit = { /** An object relationship */ depositor?: Maybe; depositor_address?: Maybe; - height: Scalars['bigint']; + height?: Maybe; /** An object relationship */ proposal: Proposal; proposal_id: Scalars['Int']; @@ -5905,6 +6018,165 @@ export type Proposal_Vote_Variance_Order_By = { proposal_id?: Maybe; }; +/** columns and relationships of "proposal_vote_weighted" */ +export type Proposal_Vote_Weighted = { + __typename?: 'proposal_vote_weighted'; + /** An object relationship */ + account: Account; + height: Scalars['bigint']; + option: Scalars['String']; + /** An object relationship */ + proposal: Proposal; + proposal_id: Scalars['Int']; + voter_address: Scalars['String']; + weight: Scalars['String']; +}; + +/** aggregated selection of "proposal_vote_weighted" */ +export type Proposal_Vote_Weighted_Aggregate = { + __typename?: 'proposal_vote_weighted_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "proposal_vote_weighted" */ +export type Proposal_Vote_Weighted_Aggregate_Fields = { + __typename?: 'proposal_vote_weighted_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_vote_weighted" */ +export type Proposal_Vote_Weighted_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Proposal_Vote_Weighted_Avg_Fields = { + __typename?: 'proposal_vote_weighted_avg_fields'; + height?: Maybe; + proposal_id?: Maybe; +}; + +/** Boolean expression to filter rows from the table "proposal_vote_weighted". All fields are combined with a logical 'AND'. */ +export type Proposal_Vote_Weighted_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + account?: Maybe; + height?: Maybe; + option?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; + voter_address?: Maybe; + weight?: Maybe; +}; + +/** aggregate max on columns */ +export type Proposal_Vote_Weighted_Max_Fields = { + __typename?: 'proposal_vote_weighted_max_fields'; + height?: Maybe; + option?: Maybe; + proposal_id?: Maybe; + voter_address?: Maybe; + weight?: Maybe; +}; + +/** aggregate min on columns */ +export type Proposal_Vote_Weighted_Min_Fields = { + __typename?: 'proposal_vote_weighted_min_fields'; + height?: Maybe; + option?: Maybe; + proposal_id?: Maybe; + voter_address?: Maybe; + weight?: Maybe; +}; + +/** Ordering options when selecting data from "proposal_vote_weighted". */ +export type Proposal_Vote_Weighted_Order_By = { + account?: Maybe; + height?: Maybe; + option?: Maybe; + proposal?: Maybe; + proposal_id?: Maybe; + voter_address?: Maybe; + weight?: Maybe; +}; + +/** select columns of table "proposal_vote_weighted" */ +export enum Proposal_Vote_Weighted_Select_Column { + /** column name */ + Height = 'height', + /** column name */ + Option = 'option', + /** column name */ + ProposalId = 'proposal_id', + /** column name */ + VoterAddress = 'voter_address', + /** column name */ + Weight = 'weight' +} + +/** aggregate stddev on columns */ +export type Proposal_Vote_Weighted_Stddev_Fields = { + __typename?: 'proposal_vote_weighted_stddev_fields'; + height?: Maybe; + proposal_id?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Proposal_Vote_Weighted_Stddev_Pop_Fields = { + __typename?: 'proposal_vote_weighted_stddev_pop_fields'; + height?: Maybe; + proposal_id?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Proposal_Vote_Weighted_Stddev_Samp_Fields = { + __typename?: 'proposal_vote_weighted_stddev_samp_fields'; + height?: Maybe; + proposal_id?: Maybe; +}; + +/** aggregate sum on columns */ +export type Proposal_Vote_Weighted_Sum_Fields = { + __typename?: 'proposal_vote_weighted_sum_fields'; + height?: Maybe; + proposal_id?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Proposal_Vote_Weighted_Var_Pop_Fields = { + __typename?: 'proposal_vote_weighted_var_pop_fields'; + height?: Maybe; + proposal_id?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Proposal_Vote_Weighted_Var_Samp_Fields = { + __typename?: 'proposal_vote_weighted_var_samp_fields'; + height?: Maybe; + proposal_id?: Maybe; +}; + +/** aggregate variance on columns */ +export type Proposal_Vote_Weighted_Variance_Fields = { + __typename?: 'proposal_vote_weighted_variance_fields'; + height?: Maybe; + proposal_id?: Maybe; +}; + export type Query_Root = { __typename?: 'query_root'; /** fetch data from the table: "account" */ @@ -5987,6 +6259,12 @@ export type Query_Root = { cosmwasm_update_admin_aggregate: Cosmwasm_Update_Admin_Aggregate; /** fetch data from the table: "cosmwasm_update_admin" using primary key columns */ cosmwasm_update_admin_by_pk?: Maybe; + /** fetch data from the table: "delegation" */ + delegation: Array; + /** fetch aggregated fields from the table: "delegation" */ + delegation_aggregate: Delegation_Aggregate; + /** fetch data from the table: "delegation" using primary key columns */ + delegation_by_pk?: Maybe; /** fetch data from the table: "distribution_params" */ distribution_params: Array; /** fetch aggregated fields from the table: "distribution_params" */ @@ -6079,6 +6357,10 @@ export type Query_Root = { proposal_vote: Array; /** fetch aggregated fields from the table: "proposal_vote" */ proposal_vote_aggregate: Proposal_Vote_Aggregate; + /** fetch data from the table: "proposal_vote_weighted" */ + proposal_vote_weighted: Array; + /** fetch aggregated fields from the table: "proposal_vote_weighted" */ + proposal_vote_weighted_aggregate: Proposal_Vote_Weighted_Aggregate; /** fetch data from the table: "slashing_params" */ slashing_params: Array; /** fetch aggregated fields from the table: "slashing_params" */ @@ -6544,6 +6826,30 @@ export type Query_RootCosmwasm_Update_Admin_By_PkArgs = { }; +export type Query_RootDelegationArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDelegation_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDelegation_By_PkArgs = { + delegator_address: Scalars['String']; + validator_address: Scalars['String']; +}; + + export type Query_RootDistribution_ParamsArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -6920,6 +7226,24 @@ export type Query_RootProposal_Vote_AggregateArgs = { }; +export type Query_RootProposal_Vote_WeightedArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootProposal_Vote_Weighted_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Query_RootSlashing_ParamsArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -7794,6 +8118,12 @@ export type Subscription_Root = { cosmwasm_update_admin_aggregate: Cosmwasm_Update_Admin_Aggregate; /** fetch data from the table: "cosmwasm_update_admin" using primary key columns */ cosmwasm_update_admin_by_pk?: Maybe; + /** fetch data from the table: "delegation" */ + delegation: Array; + /** fetch aggregated fields from the table: "delegation" */ + delegation_aggregate: Delegation_Aggregate; + /** fetch data from the table: "delegation" using primary key columns */ + delegation_by_pk?: Maybe; /** fetch data from the table: "distribution_params" */ distribution_params: Array; /** fetch aggregated fields from the table: "distribution_params" */ @@ -7886,6 +8216,10 @@ export type Subscription_Root = { proposal_vote: Array; /** fetch aggregated fields from the table: "proposal_vote" */ proposal_vote_aggregate: Proposal_Vote_Aggregate; + /** fetch data from the table: "proposal_vote_weighted" */ + proposal_vote_weighted: Array; + /** fetch aggregated fields from the table: "proposal_vote_weighted" */ + proposal_vote_weighted_aggregate: Proposal_Vote_Weighted_Aggregate; /** fetch data from the table: "slashing_params" */ slashing_params: Array; /** fetch aggregated fields from the table: "slashing_params" */ @@ -8265,6 +8599,30 @@ export type Subscription_RootCosmwasm_Update_Admin_By_PkArgs = { }; +export type Subscription_RootDelegationArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootDelegation_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootDelegation_By_PkArgs = { + delegator_address: Scalars['String']; + validator_address: Scalars['String']; +}; + + export type Subscription_RootDistribution_ParamsArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -8641,6 +8999,24 @@ export type Subscription_RootProposal_Vote_AggregateArgs = { }; +export type Subscription_RootProposal_Vote_WeightedArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootProposal_Vote_Weighted_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Subscription_RootSlashing_ParamsArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -11097,6 +11473,10 @@ export type Validator_Info = { /** An object relationship */ account?: Maybe; consensus_address: Scalars['String']; + /** An array relationship */ + delegations: Array; + /** An aggregate relationship */ + delegations_aggregate: Delegation_Aggregate; max_change_rate: Scalars['String']; max_rate: Scalars['String']; operator_address: Scalars['String']; @@ -11105,6 +11485,26 @@ export type Validator_Info = { validator: Validator; }; + +/** columns and relationships of "validator_info" */ +export type Validator_InfoDelegationsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "validator_info" */ +export type Validator_InfoDelegations_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + /** aggregated selection of "validator_info" */ export type Validator_Info_Aggregate = { __typename?: 'validator_info_aggregate'; @@ -11141,6 +11541,7 @@ export type Validator_Info_Bool_Exp = { _or?: Maybe>; account?: Maybe; consensus_address?: Maybe; + delegations?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -11190,6 +11591,7 @@ export type Validator_Info_Min_Order_By = { export type Validator_Info_Order_By = { account?: Maybe; consensus_address?: Maybe; + delegations_aggregate?: Maybe; max_change_rate?: Maybe; max_rate?: Maybe; operator_address?: Maybe; @@ -14065,23 +14467,6 @@ export const ProposalDetailsVotesDocument = gql` } `; -export const ProposalDetailsVotesWeightedDocument = /* GraphQL */` -query ProposalDetailsVotesWeighted($proposalId: Int) { - proposalVoteWeighted: proposal_vote_weighted(where: {proposal_id: {_eq: $proposalId}} order_by: {height: desc}) { - option - weight - 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__ * diff --git a/src/screens/proposal_details/components/votes/hooks.ts b/src/screens/proposal_details/components/votes/hooks.ts index e87e26c7ef..324e48ae3d 100644 --- a/src/screens/proposal_details/components/votes/hooks.ts +++ b/src/screens/proposal_details/components/votes/hooks.ts @@ -3,8 +3,11 @@ import { useRouter } from 'next/router'; import * as R from 'ramda'; import axios from 'axios'; import { - useProposalDetailsVotesQuery, ProposalDetailsVotesWeightedDocument + useProposalDetailsVotesQuery } from '@graphql/types'; +import { + ProposalDetailsVotesWeightedDocument +} from '@graphql/proposal_details_votes_weighted'; import { toValidatorAddress } from '@utils/prefix_convert'; import { VoteState } from './types'; From fda94ab159facc9c6ce010d7934a42fa1289ae30 Mon Sep 17 00:00:00 2001 From: avalkov Date: Thu, 28 Apr 2022 16:18:55 +0300 Subject: [PATCH 45/54] Added tab for collateral txs and formatting for eth to cosmos gravity bridge tx --- public/locales/en/accounts.json | 3 +- public/locales/en/message_contents.json | 3 +- public/locales/en/message_labels.json | 3 +- public/locales/en/transactions.json | 3 +- .../msg/gravity/send_to_cosmos/index.tsx | 49 +++++++ .../msg/gravity/send_to_cosmos/styles.tsx | 29 +++++ src/components/msg/index.ts | 2 + src/components/msg/utils.tsx | 6 + .../gravity_messages_by_address.graphql | 15 +++ .../proposal_details_votes_weighted.ts | 2 +- src/graphql/types.tsx | 122 ++++++++++++++++++ src/models/index.ts | 2 + .../msg/gravity/msg_send_to_cosmos_claim.ts | 31 +++++ src/models/msg/types.ts | 2 +- .../staking/components/tabs/index.tsx | 2 +- .../components/transactions/hooks.ts | 17 ++- .../components/transactions/index.tsx | 13 +- src/screens/account_details/hooks.ts | 9 ++ src/screens/account_details/index.tsx | 49 ++++++- src/screens/account_details/types.ts | 1 + .../votes/components/desktop/utils.ts | 2 +- .../components/votes/hooks.ts | 38 +++--- 22 files changed, 365 insertions(+), 38 deletions(-) create mode 100644 src/components/msg/gravity/send_to_cosmos/index.tsx create mode 100644 src/components/msg/gravity/send_to_cosmos/styles.tsx create mode 100644 src/graphql/gravity_messages_by_address.graphql create mode 100644 src/models/msg/gravity/msg_send_to_cosmos_claim.ts diff --git a/public/locales/en/accounts.json b/public/locales/en/accounts.json index e88d2f35ca..4fbb28a813 100644 --- a/public/locales/en/accounts.json +++ b/public/locales/en/accounts.json @@ -38,5 +38,6 @@ "deployer": "Deployer", "label": "Label", "codeId": "Code Id", - "instaBlock": "Instantiated At Block" + "instaBlock": "Instantiated At Block", + "collateralTransactions": "Collateral Transactions" } diff --git a/public/locales/en/message_contents.json b/public/locales/en/message_contents.json index 427d91098f..413c4593ae 100644 --- a/public/locales/en/message_contents.json +++ b/public/locales/en/message_contents.json @@ -61,5 +61,6 @@ "txExecuteContract": "<0>{{user}} executed <1>{{method}} on <2>{{address}}", "txMigrateContract": "<0>{{admin}} migrated contract <1>{{contract}} to <1>{{newCodeId}}", "txUpdateContractAdmin": "<0>{{admin}} updated contract <1>{{contract}} admin to <2>{{newAdmin}}", - "txClearContractAdmin": "<0>{{admin}} cleared admin on contract <1>{{contract}}" + "txClearContractAdmin": "<0>{{admin}} cleared admin on contract <1>{{contract}}", + "MsgSendToCosmosClaim": "<0>{{ethSender}} sent <1>{{amount}} to <2>{{receiver}}" } diff --git a/public/locales/en/message_labels.json b/public/locales/en/message_labels.json index 9d604716a4..3aabfccb9e 100644 --- a/public/locales/en/message_labels.json +++ b/public/locales/en/message_labels.json @@ -62,5 +62,6 @@ "txExecuteContract": "Execute Contract", "txMigrateContract": "Migrate Contract", "txUpdateContractAdmin": "Update Contract Admin", - "txClearContractAdmin": "Clear Contract Admin" + "txClearContractAdmin": "Clear Contract Admin", + "MsgSendToCosmosClaim": "Gravity Bridge - Ethereum to Cosmos" } diff --git a/public/locales/en/transactions.json b/public/locales/en/transactions.json index 6797b8ce75..07e861ad18 100644 --- a/public/locales/en/transactions.json +++ b/public/locales/en/transactions.json @@ -35,5 +35,6 @@ "vesting": "Vesting", "logs": "Logs", "arguments": "Arguments", - "method": "Method" + "method": "Method", + "collateralTransactions": "Collateral Transactions" } diff --git a/src/components/msg/gravity/send_to_cosmos/index.tsx b/src/components/msg/gravity/send_to_cosmos/index.tsx new file mode 100644 index 0000000000..8ec93ec8df --- /dev/null +++ b/src/components/msg/gravity/send_to_cosmos/index.tsx @@ -0,0 +1,49 @@ +import React from 'react'; +import Trans from 'next-translate/Trans'; +import { Typography } from '@material-ui/core'; +import { Name } from '@components'; +import { MsgSendToCosmosClaim } from '@models'; +import { + useProfileRecoil, +} from '@recoil/profiles'; +import { + formatToken, formatNumber, +} from '@utils/format_token'; + +const SendToCosmos = (props: { + message: MsgSendToCosmosClaim; +}) => { + const { message } = props; + + const receiver = useProfileRecoil(message.receiver); + const receiverMoniker = receiver ? receiver?.name : message.receiver; + + const amount = formatToken(message.amount, 'acudos'); + const displayAmount = `${formatNumber(amount.value, amount.exponent)} ${amount.displayDenom.toUpperCase()}`; + + return ( + <> + + , + , + ( + + ), + ]} + values={{ + ethSender: message.ethSender, + amount: displayAmount, + }} + /> + + + ); +}; + +export default SendToCosmos; diff --git a/src/components/msg/gravity/send_to_cosmos/styles.tsx b/src/components/msg/gravity/send_to_cosmos/styles.tsx new file mode 100644 index 0000000000..6ff4af1f96 --- /dev/null +++ b/src/components/msg/gravity/send_to_cosmos/styles.tsx @@ -0,0 +1,29 @@ +import { + makeStyles, createStyles, +} from '@material-ui/styles'; + +export const useGetStyles = () => { + const useStyles = makeStyles((theme: any) => createStyles({ + root: { + overflow: 'hidden', + }, + header: { + paddingBottom: theme.spacing(2), + }, + pre: { + maxHeight: '400px', + overflow: 'auto', + padding: '1rem', + margin: '0', + background: theme.palette.background.default, + flex: 1, + '& code': { + whiteSpace: 'pre-wrap', + }, + }, + })); + + return { + classes: useStyles(), + }; +}; diff --git a/src/components/msg/index.ts b/src/components/msg/index.ts index f47204c2ba..0fbf4e5d50 100644 --- a/src/components/msg/index.ts +++ b/src/components/msg/index.ts @@ -74,6 +74,7 @@ import ExecuteContract from './cosmwasm/execute_contract'; import MigrateContract from './cosmwasm/migrate_contract'; import UpdateContractAdmin from './cosmwasm/update_contract_admin'; import ClearContractAdmin from './cosmwasm/clear_contract_admin'; +import SendToCosmos from './gravity/send_to_cosmos'; export { getMessageModelByType, @@ -146,4 +147,5 @@ export { MigrateContract, UpdateContractAdmin, ClearContractAdmin, + SendToCosmos, }; diff --git a/src/components/msg/utils.tsx b/src/components/msg/utils.tsx index f1b4c66777..deffbaf3a0 100644 --- a/src/components/msg/utils.tsx +++ b/src/components/msg/utils.tsx @@ -450,6 +450,12 @@ const getDataByType = (type: string) => { tagTheme: 'four', tagDisplay: 'txMsgSetMinFeeTransferToEth', }, + '/gravity.v1.MsgSendToCosmosClaim': { + model: MODELS.MsgSendToCosmosClaim, + content: COMPONENTS.SendToCosmos, + tagTheme: 'four', + tagDisplay: 'MsgSendToCosmosClaim', + }, }; if (defaultTypeToModel[type]) return defaultTypeToModel[type]; diff --git a/src/graphql/gravity_messages_by_address.graphql b/src/graphql/gravity_messages_by_address.graphql new file mode 100644 index 0000000000..d5eb21f41c --- /dev/null +++ b/src/graphql/gravity_messages_by_address.graphql @@ -0,0 +1,15 @@ +query GetGravityMessagesByAddress($address: String, $limit: bigint = 50, $offset: bigint = 0) { + messagesByAddress: gravity_messages_by_address(args: {receiver: $address, limit: $limit, offset: $offset}) { + transaction { + height + hash + success + messages + logs + block { + height + timestamp + } + } + } +} diff --git a/src/graphql/proposal_details_votes_weighted.ts b/src/graphql/proposal_details_votes_weighted.ts index 55f2b8fe8f..8d69d225f9 100644 --- a/src/graphql/proposal_details_votes_weighted.ts +++ b/src/graphql/proposal_details_votes_weighted.ts @@ -13,4 +13,4 @@ query ProposalDetailsVotesWeighted($proposalId: Int) { } } } -`; \ No newline at end of file +`; diff --git a/src/graphql/types.tsx b/src/graphql/types.tsx index dce41ad159..0ac26fc99c 100644 --- a/src/graphql/types.tsx +++ b/src/graphql/types.tsx @@ -3583,6 +3583,12 @@ export type Gov_Params_Variance_Fields = { height?: Maybe; }; +export type Gravity_Messages_By_Address_Args = { + limit?: Maybe; + offset?: Maybe; + receiver?: Maybe; +}; + /** columns and relationships of "inflation" */ export type Inflation = { __typename?: 'inflation'; @@ -6297,6 +6303,10 @@ export type Query_Root = { gov_params_aggregate: Gov_Params_Aggregate; /** fetch data from the table: "gov_params" using primary key columns */ gov_params_by_pk?: Maybe; + /** execute function "gravity_messages_by_address" which returns "message" */ + gravity_messages_by_address: Array; + /** execute function "gravity_messages_by_address" and query aggregates on result of table type "message" */ + gravity_messages_by_address_aggregate: Message_Aggregate; /** fetch data from the table: "inflation" */ inflation: Array; /** fetch aggregated fields from the table: "inflation" */ @@ -6978,6 +6988,26 @@ export type Query_RootGov_Params_By_PkArgs = { }; +export type Query_RootGravity_Messages_By_AddressArgs = { + args: Gravity_Messages_By_Address_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootGravity_Messages_By_Address_AggregateArgs = { + args: Gravity_Messages_By_Address_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Query_RootInflationArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -8156,6 +8186,10 @@ export type Subscription_Root = { gov_params_aggregate: Gov_Params_Aggregate; /** fetch data from the table: "gov_params" using primary key columns */ gov_params_by_pk?: Maybe; + /** execute function "gravity_messages_by_address" which returns "message" */ + gravity_messages_by_address: Array; + /** execute function "gravity_messages_by_address" and query aggregates on result of table type "message" */ + gravity_messages_by_address_aggregate: Message_Aggregate; /** fetch data from the table: "inflation" */ inflation: Array; /** fetch aggregated fields from the table: "inflation" */ @@ -8751,6 +8785,26 @@ export type Subscription_RootGov_Params_By_PkArgs = { }; +export type Subscription_RootGravity_Messages_By_AddressArgs = { + args: Gravity_Messages_By_Address_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootGravity_Messages_By_Address_AggregateArgs = { + args: Gravity_Messages_By_Address_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Subscription_RootInflationArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -13032,6 +13086,25 @@ export type ChainIdQuery = { genesis: Array<( & { chainId: Genesis['chain_id'] } )> }; +export type GetGravityMessagesByAddressQueryVariables = Exact<{ + address?: Maybe; + limit?: Maybe; + offset?: Maybe; +}>; + + +export type GetGravityMessagesByAddressQuery = { messagesByAddress: Array<( + { __typename?: 'message' } + & { transaction: ( + { __typename?: 'transaction' } + & Pick + & { block: ( + { __typename?: 'block' } + & Pick + ) } + ) } + )> }; + export type MarketDataQueryVariables = Exact<{ denom?: Maybe; }>; @@ -14118,6 +14191,55 @@ export function useChainIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions; export type ChainIdLazyQueryHookResult = ReturnType; export type ChainIdQueryResult = Apollo.QueryResult; +export const GetGravityMessagesByAddressDocument = gql` + query GetGravityMessagesByAddress($address: String, $limit: bigint = 50, $offset: bigint = 0) { + messagesByAddress: gravity_messages_by_address( + args: {receiver: $address, limit: $limit, offset: $offset} + ) { + transaction { + height + hash + success + messages + logs + block { + height + timestamp + } + } + } +} + `; + +/** + * __useGetGravityMessagesByAddressQuery__ + * + * To run a query within a React component, call `useGetGravityMessagesByAddressQuery` and pass it any options that fit your needs. + * When your component renders, `useGetGravityMessagesByAddressQuery` 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 } = useGetGravityMessagesByAddressQuery({ + * variables: { + * address: // value for 'address' + * limit: // value for 'limit' + * offset: // value for 'offset' + * }, + * }); + */ +export function useGetGravityMessagesByAddressQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetGravityMessagesByAddressDocument, options); + } +export function useGetGravityMessagesByAddressLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetGravityMessagesByAddressDocument, options); + } +export type GetGravityMessagesByAddressQueryHookResult = ReturnType; +export type GetGravityMessagesByAddressLazyQueryHookResult = ReturnType; +export type GetGravityMessagesByAddressQueryResult = Apollo.QueryResult; export const MarketDataDocument = gql` query MarketData($denom: String) { communityPool: community_pool(order_by: {height: desc}, limit: 1) { diff --git a/src/models/index.ts b/src/models/index.ts index 6cc77aca80..a847a7a2de 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -75,6 +75,7 @@ import MsgExecuteContract from './msg/cosmwasm/msg_execute_contract'; import MsgMigrateContract from './msg/cosmwasm/msg_migrate_contract'; import MsgUpdateContractAdmin from './msg/cosmwasm/msg_update_contract_admin'; import MsgClearContractAdmin from './msg/cosmwasm/msg_clear_contract_admin'; +import MsgSendToCosmosClaim from './msg/gravity/msg_send_to_cosmos_claim'; export { BigDipperNetwork, @@ -154,4 +155,5 @@ export { MsgMigrateContract, MsgUpdateContractAdmin, MsgClearContractAdmin, + MsgSendToCosmosClaim, }; diff --git a/src/models/msg/gravity/msg_send_to_cosmos_claim.ts b/src/models/msg/gravity/msg_send_to_cosmos_claim.ts new file mode 100644 index 0000000000..37196f277c --- /dev/null +++ b/src/models/msg/gravity/msg_send_to_cosmos_claim.ts @@ -0,0 +1,31 @@ +import { Categories } from '../types'; + +class MsgSendToCosmosClaim { + public category: Categories; + public ethSender: string; + public amount: string; + public receiver: string; + public type: string; + public json: JSON; + + constructor(payload: any) { + this.category = 'gravity'; + this.ethSender = payload.ethSender; + this.amount = payload.amount; + this.receiver = payload.receiver; + this.type = payload.type; + this.json = payload.json; + } + + static fromJson(json: any) { + return new MsgSendToCosmosClaim({ + ethSender: json.ethereum_sender, + amount: json.amount, + receiver: json.cosmos_receiver, + type: json['@type'], + json, + }); + } +} + +export default MsgSendToCosmosClaim; diff --git a/src/models/msg/types.ts b/src/models/msg/types.ts index 469586d7d6..9b6ef03819 100644 --- a/src/models/msg/types.ts +++ b/src/models/msg/types.ts @@ -1,3 +1,3 @@ export type BaseCategories = 'bank' | 'crisis' | 'distribution' | 'governance' | 'slashing' | 'staking' | 'profiles' | 'ibc' | 'ibc-transfer' | 'authz' | 'feegrant' | 'vesting' | 'others' -export type CustomCategories = 'cosmwasm'; // custom modules +export type CustomCategories = 'cosmwasm' | 'gravity'; // custom modules export type Categories = BaseCategories | CustomCategories diff --git a/src/screens/account_details/components/staking/components/tabs/index.tsx b/src/screens/account_details/components/staking/components/tabs/index.tsx index 812779ae6e..45bdec8b92 100644 --- a/src/screens/account_details/components/staking/components/tabs/index.tsx +++ b/src/screens/account_details/components/staking/components/tabs/index.tsx @@ -16,7 +16,7 @@ const TabsHeader: React.FC<{ tabs: { id: number; key: string; - count: number; + count?: number; component?: React.ReactNode; }[] }> = ({ diff --git a/src/screens/account_details/components/transactions/hooks.ts b/src/screens/account_details/components/transactions/hooks.ts index 3f7b0173bf..56bb34cfde 100644 --- a/src/screens/account_details/components/transactions/hooks.ts +++ b/src/screens/account_details/components/transactions/hooks.ts @@ -5,12 +5,13 @@ import * as R from 'ramda'; import { useGetMessagesByAddressQuery, GetMessagesByAddressQuery, + useGetGravityMessagesByAddressQuery, } from '@graphql/types'; import { TransactionState } from './types'; const LIMIT = 50; -export const useTransactions = () => { +export const useTransactions = (collateralTransactions: boolean) => { const router = useRouter(); const [state, setState] = useState({ data: [], @@ -23,11 +24,11 @@ export const useTransactions = () => { setState((prevState) => R.mergeDeepLeft(stateChange, prevState)); }; - const transactionQuery = useGetMessagesByAddressQuery({ + const queryOptions = { variables: { limit: LIMIT + 1, // to check if more exist offset: 0, - address: `{${R.pathOr('', ['query', 'address'], router)}}`, + address: collateralTransactions ? `${R.pathOr('', ['query', 'address'], router)}` : `{${R.pathOr('', ['query', 'address'], router)}}`, }, onCompleted: (data) => { const itemsLength = data.messagesByAddress.length; @@ -41,7 +42,15 @@ export const useTransactions = () => { handleSetState(stateChange); }, - }); + }; + + let transactionQuery; + + if (collateralTransactions) { + transactionQuery = useGetGravityMessagesByAddressQuery(queryOptions); + } else { + transactionQuery = useGetMessagesByAddressQuery(queryOptions); + } const loadNextPage = async () => { handleSetState({ diff --git a/src/screens/account_details/components/transactions/index.tsx b/src/screens/account_details/components/transactions/index.tsx index d11d0db22e..8f05148486 100644 --- a/src/screens/account_details/components/transactions/index.tsx +++ b/src/screens/account_details/components/transactions/index.tsx @@ -12,15 +12,20 @@ import { readTx } from '@recoil/settings'; import { useStyles } from './styles'; import { useTransactions } from './hooks'; -const Transactions: React.FC = (props) => { +type TransactionComponent = { + className?: string; + collateralTransactions: boolean +} + +const Transactions: React.FC = (props) => { const txListFormat = useRecoilValue(readTx); const classes = useStyles(); - const { t } = useTranslation('validators'); + const { t } = useTranslation('transactions'); const { state, loadNextPage, - } = useTransactions(); + } = useTransactions(props.collateralTransactions); const loadMoreItems = state.isNextPageLoading ? () => null : loadNextPage; const isItemLoaded = (index) => !state.hasNextPage || index < state.data.length; @@ -29,7 +34,7 @@ const Transactions: React.FC = (props) => { return ( - {t('transactions')} + {props.collateralTransactions ? t('collateralTransactions') : t('transactions')}
{txListFormat === 'compact' ? ( diff --git a/src/screens/account_details/hooks.ts b/src/screens/account_details/hooks.ts index 018604ecc3..0f148b9037 100644 --- a/src/screens/account_details/hooks.ts +++ b/src/screens/account_details/hooks.ts @@ -62,6 +62,7 @@ const initialState: AccountDetailState = { }, }, }, + tab: 0, }; export const useAccountDetails = () => { @@ -72,6 +73,13 @@ export const useAccountDetails = () => { setState((prevState) => R.mergeDeepLeft(stateChange, prevState)); }; + const handleTabChange = (_event: any, newValue: number) => { + setState((prevState) => ({ + ...prevState, + tab: newValue, + })); + }; + // ========================== // Desmos Profile // ========================== @@ -297,5 +305,6 @@ export const useAccountDetails = () => { return { state, + handleTabChange, }; }; diff --git a/src/screens/account_details/index.tsx b/src/screens/account_details/index.tsx index 2b1b7d4877..7e5843be52 100644 --- a/src/screens/account_details/index.tsx +++ b/src/screens/account_details/index.tsx @@ -6,8 +6,12 @@ import { DesmosProfile, ContractOverview, ContractMessages, + TabPanel, } from '@components'; import { NextSeo } from 'next-seo'; +import { + Tabs, +} from './components/staking/components'; import { useStyles } from './styles'; import { Overview, @@ -24,10 +28,34 @@ const AccountDetails = () => { const classes = useStyles(); const { state, + handleTabChange, } = useAccountDetails(); const isSmartContract = state.cosmwasm.result_contract_address === state.overview.address; + const tabs = [ + { + id: 0, + key: 'transactions', + component: ( + + ), + }, + { + id: 1, + key: 'collateralTransactions', + component: ( + + ), + }, + ]; + return ( <> { /> ) : ( - + <> + + {tabs.map((x) => { + return ( + + {x.component} + + ); + })} + )} diff --git a/src/screens/account_details/types.ts b/src/screens/account_details/types.ts index a8a6b81505..76f0aca447 100644 --- a/src/screens/account_details/types.ts +++ b/src/screens/account_details/types.ts @@ -45,4 +45,5 @@ export type AccountDetailState = { }; rewards: RewardsType; cosmwasm: CosmwasmType; + tab: number; } diff --git a/src/screens/proposal_details/components/votes/components/desktop/utils.ts b/src/screens/proposal_details/components/votes/components/desktop/utils.ts index 313b599564..c6407d416a 100644 --- a/src/screens/proposal_details/components/votes/components/desktop/utils.ts +++ b/src/screens/proposal_details/components/votes/components/desktop/utils.ts @@ -23,5 +23,5 @@ export const columns:{ key: 'weight', width: 33, align: 'right', - } + }, ]; diff --git a/src/screens/proposal_details/components/votes/hooks.ts b/src/screens/proposal_details/components/votes/hooks.ts index 324e48ae3d..7bdcb396fa 100644 --- a/src/screens/proposal_details/components/votes/hooks.ts +++ b/src/screens/proposal_details/components/votes/hooks.ts @@ -3,10 +3,10 @@ import { useRouter } from 'next/router'; import * as R from 'ramda'; import axios from 'axios'; import { - useProposalDetailsVotesQuery + useProposalDetailsVotesQuery, } from '@graphql/types'; import { - ProposalDetailsVotesWeightedDocument + ProposalDetailsVotesWeightedDocument, } from '@graphql/proposal_details_votes_weighted'; import { toValidatorAddress } from '@utils/prefix_convert'; import { VoteState } from './types'; @@ -51,22 +51,22 @@ export const useVotes = (resetPagination:any) => { const mergeRegularVotesWithWeighted = (votesData: any, votesWeightedData: any) => { const mergedVotesData = { validatorStatuses: votesData.validatorStatuses, - proposalVote: R.pathOr([], ['data', 'data', 'proposalVoteWeighted'], votesWeightedData) - } - - const proposalVote = R.pathOr([], ['proposalVote'], votesData); - - proposalVote.map((x: any) => { - x.weight = '100.00%'; - }); - - mergedVotesData.proposalVote.map((x: any) => { - x.weight = (parseFloat(x.weight) * 100.0).toFixed(2) + '%'; - }); - - mergedVotesData.proposalVote = [...proposalVote, ...mergedVotesData.proposalVote]; - - return mergedVotesData; + proposalVote: R.pathOr([], ['data', 'data', 'proposalVoteWeighted'], votesWeightedData), + }; + + const proposalVote = R.pathOr([], ['proposalVote'], votesData); + + proposalVote.map((x: any) => { + x.weight = '100.00%'; + }); + + mergedVotesData.proposalVote.map((x: any) => { + x.weight = `${(parseFloat(x.weight) * 100.0).toFixed(2)}%`; + }); + + mergedVotesData.proposalVote = [...proposalVote, ...mergedVotesData.proposalVote]; + + return mergedVotesData; }; useProposalDetailsVotesQuery({ @@ -75,7 +75,7 @@ export const useVotes = (resetPagination:any) => { }, onCompleted: (votesData) => { fetchWeightedVotes().then((votesWeightedData) => { - const mergedVotesData = mergeRegularVotesWithWeighted(votesData, votesWeightedData); + const mergedVotesData = mergeRegularVotesWithWeighted(votesData, votesWeightedData); handleSetState(formatVotes(mergedVotesData)); }); }, From 7b95368a5dbb70b764a6e8295d6963836dab917a Mon Sep 17 00:00:00 2001 From: avalkov Date: Wed, 4 May 2022 10:44:56 +0300 Subject: [PATCH 46/54] Split validators in 3 tabs according to their bonded and jail status --- .../validators/components/list/components/tabs/utils.ts | 1 + src/screens/validators/components/list/hooks.ts | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/screens/validators/components/list/components/tabs/utils.ts b/src/screens/validators/components/list/components/tabs/utils.ts index c6a809bec0..9f2cc7790a 100644 --- a/src/screens/validators/components/list/components/tabs/utils.ts +++ b/src/screens/validators/components/list/components/tabs/utils.ts @@ -1,5 +1,6 @@ export const tabLabels = [ 'active', 'inactive', + 'unbonded', 'allValidators', ]; diff --git a/src/screens/validators/components/list/hooks.ts b/src/screens/validators/components/list/hooks.ts index 10f45cad5f..a77a69145e 100644 --- a/src/screens/validators/components/list/hooks.ts +++ b/src/screens/validators/components/list/hooks.ts @@ -131,10 +131,14 @@ export const useValidators = () => { let sorted: ItemType[] = R.clone(items); if (state.tab === 0) { - sorted = sorted.filter((x) => x.status === 3); + sorted = sorted.filter((x) => x.status === 3 && x.jailed === false); } if (state.tab === 1) { + sorted = sorted.filter((x) => x.status === 3 && x.jailed === true); + } + + if (state.tab == 2) { sorted = sorted.filter((x) => x.status !== 3); } From 376e782f3dba67d167a22b965c35e57a031dc653 Mon Sep 17 00:00:00 2001 From: avalkov Date: Mon, 9 May 2022 09:43:20 +0300 Subject: [PATCH 47/54] Disable GraphQL metadata generation on build --- Dockerfile-dev | 2 +- Dockerfile-prod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile-dev b/Dockerfile-dev index 3e23a4c876..dce7f8fdb9 100644 --- a/Dockerfile-dev +++ b/Dockerfile-dev @@ -37,7 +37,7 @@ ENV PORT ${PORT} # # Update schema -RUN npm run graphql:codegen +# RUN npm run graphql:codegen # Building app EXPOSE 3000 diff --git a/Dockerfile-prod b/Dockerfile-prod index ed71f90747..71479ec7e9 100644 --- a/Dockerfile-prod +++ b/Dockerfile-prod @@ -42,7 +42,7 @@ ENV NODE_ENV ${NODE_ENV} ENV PORT ${PORT} # Update schema -RUN npm run graphql:codegen +# RUN npm run graphql:codegen # Building app RUN npm run build From 716de684f02a8dc0093a703dc164f001f1791300 Mon Sep 17 00:00:00 2001 From: avalkov Date: Wed, 11 May 2022 16:24:35 +0300 Subject: [PATCH 48/54] Rename Validators Unbonded tab to Exited --- public/locales/en/validators.json | 3 ++- .../validators/components/list/components/tabs/utils.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/locales/en/validators.json b/public/locales/en/validators.json index 6d002ebe20..c963bf3ab5 100644 --- a/public/locales/en/validators.json +++ b/public/locales/en/validators.json @@ -58,5 +58,6 @@ "votingPowerExplanation": "As the top 34% voting power can easily <0>decrease network security and <0>halt the network they will be highlighted differently in order to educate and encourage decentralization", "tombstoned": "Tombstoned", "votingPowerPercent": "Voting Power %", - "maxRate": "Max Commission Rate" + "maxRate": "Max Commission Rate", + "exited": "Exited" } diff --git a/src/screens/validators/components/list/components/tabs/utils.ts b/src/screens/validators/components/list/components/tabs/utils.ts index 9f2cc7790a..2b41fdc77b 100644 --- a/src/screens/validators/components/list/components/tabs/utils.ts +++ b/src/screens/validators/components/list/components/tabs/utils.ts @@ -1,6 +1,6 @@ export const tabLabels = [ 'active', 'inactive', - 'unbonded', + 'exited', 'allValidators', ]; From 70bd5eea2e07bdbfd5865bd47c53e9362f716dc0 Mon Sep 17 00:00:00 2001 From: SpaghettiOverload Date: Wed, 18 May 2022 18:17:18 +0300 Subject: [PATCH 49/54] Extend invariant check message --- public/locales/en/message_contents.json | 2 +- src/components/index.ts | 2 ++ src/components/invariant_holder/index.tsx | 21 +++++++++++++++++++ src/components/invariant_holder/styles.ts | 16 ++++++++++++++ .../msg/crisis/verify_invariant/index.tsx | 15 ++++++++++++- 5 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 src/components/invariant_holder/index.tsx create mode 100644 src/components/invariant_holder/styles.ts diff --git a/public/locales/en/message_contents.json b/public/locales/en/message_contents.json index 413c4593ae..3b519e2603 100644 --- a/public/locales/en/message_contents.json +++ b/public/locales/en/message_contents.json @@ -8,7 +8,7 @@ "txSendContent": "<0>{{user}} sent <1>{{amount}} to <2>{{address}}", "txMultisendContentOne": "<0>{{user}} sent <1>{{amount}} to the following recipients:", "txMultisendContentTwo": "<0>{{user}} received <1>{{amount}}", - "txVerifyInvariantContent": "<0>{{user}} verified invariant", + "txVerifyInvariantContent": "<0>{{user}} verified invariant for <1>{{invariantModuleName}} module with <2>{{invariantRoute}} route", "txFundContent": "<0>{{user}} funded <1>{{amount}} to the community pool", "txsetRewardAddressContent": "<0>{{user}} set reward address <1>{{address}}", "txWithdrawRewardContent": "<0>{{user}} withdrew <1>{{amount}} reward from <2>{{validator}}", diff --git a/src/components/index.ts b/src/components/index.ts index 92ca482452..9f8a8ff1ef 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -22,6 +22,7 @@ import CustomToolTip from './custom_tool_tip'; import NotFound from './not_found'; import LinearLoading from './linear_loading'; import Name from './name'; +import InvariantHolder from './invariant_holder'; import Markdown from './markdown'; import ConditionExplanation from './condition_explanation'; import TransactionsList from './transactions_list'; @@ -59,6 +60,7 @@ export { NotFound, LinearLoading, Name, + InvariantHolder, Markdown, ConditionExplanation, LoadAndExist, diff --git a/src/components/invariant_holder/index.tsx b/src/components/invariant_holder/index.tsx new file mode 100644 index 0000000000..89ce2c616b --- /dev/null +++ b/src/components/invariant_holder/index.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classnames from 'classnames'; +import { Typography } from '@material-ui/core'; +import { useStyles } from './styles'; + +const InvariantHolder: React.FC<{ + className?: string; + name: string; +}> = ({ + className, name, +}) => { + const classes = useStyles(); + + return ( + + {name} + + ); +}; + +export default InvariantHolder; diff --git a/src/components/invariant_holder/styles.ts b/src/components/invariant_holder/styles.ts new file mode 100644 index 0000000000..4c6d902f1d --- /dev/null +++ b/src/components/invariant_holder/styles.ts @@ -0,0 +1,16 @@ +import { makeStyles } from '@material-ui/core/styles'; + +export const useStyles = () => { + const styles = makeStyles( + (theme) => { + return ({ + root: { + color: theme.palette.custom.fonts.highlight, + wordBreak: 'break-all', + }, + }); + }, + )(); + + return styles; +}; diff --git a/src/components/msg/crisis/verify_invariant/index.tsx b/src/components/msg/crisis/verify_invariant/index.tsx index d23699ef35..d7c7c94af3 100644 --- a/src/components/msg/crisis/verify_invariant/index.tsx +++ b/src/components/msg/crisis/verify_invariant/index.tsx @@ -1,7 +1,10 @@ import React from 'react'; import Trans from 'next-translate/Trans'; import { Typography } from '@material-ui/core'; -import { Name } from '@components'; +import { + Name, + InvariantHolder, +} from '@components'; import { MsgVerifyInvariant } from '@models'; import { useProfileRecoil, @@ -26,6 +29,16 @@ const VerifyInvariant = (props: { name={userMoniker} /> ), + ( + + ), + ( + + ), ]} /> From 53e51eded389bbf69e7023a43bf509b5bfa58a9e Mon Sep 17 00:00:00 2001 From: avalkov Date: Mon, 30 May 2022 13:12:18 +0300 Subject: [PATCH 50/54] Increase Node RAM --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4d45ae72d9..bc48d1adfd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,3 +31,5 @@ jobs: run: npm ci - name: Run build check run: npm run build + env: + NODE_OPTIONS: "--max-old-space-size=8192" From 7ef986624e8660b4881f77e2e444726843ea3ec4 Mon Sep 17 00:00:00 2001 From: avalkov Date: Mon, 30 May 2022 17:42:27 +0300 Subject: [PATCH 51/54] Fix-MsgSendToCosmosClaim-exponent-formatting --- src/components/msg/gravity/send_to_cosmos/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/msg/gravity/send_to_cosmos/index.tsx b/src/components/msg/gravity/send_to_cosmos/index.tsx index 8ec93ec8df..7b6031cecb 100644 --- a/src/components/msg/gravity/send_to_cosmos/index.tsx +++ b/src/components/msg/gravity/send_to_cosmos/index.tsx @@ -7,7 +7,7 @@ import { useProfileRecoil, } from '@recoil/profiles'; import { - formatToken, formatNumber, + formatToken, formatTokenByExponent, } from '@utils/format_token'; const SendToCosmos = (props: { @@ -19,7 +19,7 @@ const SendToCosmos = (props: { const receiverMoniker = receiver ? receiver?.name : message.receiver; const amount = formatToken(message.amount, 'acudos'); - const displayAmount = `${formatNumber(amount.value, amount.exponent)} ${amount.displayDenom.toUpperCase()}`; + const displayAmount = `${formatTokenByExponent(amount.value, 25)} ${amount.displayDenom.toUpperCase()}`; return ( <> From 9e60ef7f1ea933ac2ae67981d69fc6cc6c21280b Mon Sep 17 00:00:00 2001 From: avalkov Date: Mon, 30 May 2022 22:11:24 +0300 Subject: [PATCH 52/54] Fix MsgSendToCosmosClaim exponent formatting --- src/components/msg/gravity/send_to_cosmos/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/msg/gravity/send_to_cosmos/index.tsx b/src/components/msg/gravity/send_to_cosmos/index.tsx index 7b6031cecb..eebd5a4ff7 100644 --- a/src/components/msg/gravity/send_to_cosmos/index.tsx +++ b/src/components/msg/gravity/send_to_cosmos/index.tsx @@ -7,7 +7,7 @@ import { useProfileRecoil, } from '@recoil/profiles'; import { - formatToken, formatTokenByExponent, + formatTokenByExponent, } from '@utils/format_token'; const SendToCosmos = (props: { @@ -18,8 +18,7 @@ const SendToCosmos = (props: { const receiver = useProfileRecoil(message.receiver); const receiverMoniker = receiver ? receiver?.name : message.receiver; - const amount = formatToken(message.amount, 'acudos'); - const displayAmount = `${formatTokenByExponent(amount.value, 25)} ${amount.displayDenom.toUpperCase()}`; + const displayAmount = `${formatTokenByExponent(message.amount, 25)} CUDOS`; return ( <> From e45f4d6a36c060956a68134d0a32ff02c04e225a Mon Sep 17 00:00:00 2001 From: avalkov Date: Tue, 31 May 2022 09:44:56 +0300 Subject: [PATCH 53/54] Fix MsgSendToCosmosClaim exponent formatting --- src/components/msg/gravity/send_to_cosmos/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/msg/gravity/send_to_cosmos/index.tsx b/src/components/msg/gravity/send_to_cosmos/index.tsx index eebd5a4ff7..1ddfe0d9e8 100644 --- a/src/components/msg/gravity/send_to_cosmos/index.tsx +++ b/src/components/msg/gravity/send_to_cosmos/index.tsx @@ -7,7 +7,7 @@ import { useProfileRecoil, } from '@recoil/profiles'; import { - formatTokenByExponent, + formatTokenByExponent, formatNumber, } from '@utils/format_token'; const SendToCosmos = (props: { @@ -17,8 +17,9 @@ const SendToCosmos = (props: { const receiver = useProfileRecoil(message.receiver); const receiverMoniker = receiver ? receiver?.name : message.receiver; + const amount = formatTokenByExponent(message.amount, 25); - const displayAmount = `${formatTokenByExponent(message.amount, 25)} CUDOS`; + const displayAmount = `${formatNumber(amount, 18)} CUDOS`; return ( <> From ee5946456a806320c6e836c755ad12c4535705ef Mon Sep 17 00:00:00 2001 From: avalkov Date: Tue, 31 May 2022 13:53:01 +0300 Subject: [PATCH 54/54] Fix MsgSendToCosmosClaim exponent formatting --- src/components/msg/gravity/send_to_cosmos/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/msg/gravity/send_to_cosmos/index.tsx b/src/components/msg/gravity/send_to_cosmos/index.tsx index 1ddfe0d9e8..8ec93ec8df 100644 --- a/src/components/msg/gravity/send_to_cosmos/index.tsx +++ b/src/components/msg/gravity/send_to_cosmos/index.tsx @@ -7,7 +7,7 @@ import { useProfileRecoil, } from '@recoil/profiles'; import { - formatTokenByExponent, formatNumber, + formatToken, formatNumber, } from '@utils/format_token'; const SendToCosmos = (props: { @@ -17,9 +17,9 @@ const SendToCosmos = (props: { const receiver = useProfileRecoil(message.receiver); const receiverMoniker = receiver ? receiver?.name : message.receiver; - const amount = formatTokenByExponent(message.amount, 25); - const displayAmount = `${formatNumber(amount, 18)} CUDOS`; + const amount = formatToken(message.amount, 'acudos'); + const displayAmount = `${formatNumber(amount.value, amount.exponent)} ${amount.displayDenom.toUpperCase()}`; return ( <>