From 6f53ac8a81dc54fb6da171efd163a8b49f777ca7 Mon Sep 17 00:00:00 2001 From: Magic Cat <37407870+MonikaCat@users.noreply.github.com> Date: Wed, 10 Jan 2024 17:10:35 +0700 Subject: [PATCH] feat: update osmosis proposal and params page to display v1 [web-osmosis] (#1317) ## Description Closes: #XXXX --- ### Author Checklist _All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues._ I have... - [x] ran linting via `yarn lint` - [ ] wrote tests where necessary - [x] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [x] targeted the correct branch - [ ] provided a link to the relevant issue or specification - [x] reviewed "Files changed" and left comments if necessary - [x] confirmed all CI checks have passed - [x] added a changeset via [`yarn && yarn changeset`](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md) --- .changeset/swift-monkeys-share.md | 5 + apps/web-osmosis/src/chain.json | 3 +- .../src/graphql/general/params.graphql | 7 +- .../graphql/general/proposal_details.graphql | 5 +- .../src/graphql/general/token_price.graphql | 1 - .../src/graphql/types/general_types.ts | 2349 +++++++++++------ .../src/models/gov_params/index.ts | 74 + .../src/models/mint_params/index.ts | 45 + apps/web-osmosis/src/screens/params/hooks.ts | 166 ++ apps/web-osmosis/src/screens/params/index.tsx | 79 + apps/web-osmosis/src/screens/params/types.ts | 50 + apps/web-osmosis/src/screens/params/utils.tsx | 162 ++ .../components/overview/index.tsx | 199 ++ .../components/overview/styles.ts | 77 + .../components/votes_graph/hooks.ts | 71 + .../src/screens/proposal_details/hooks.ts | 95 + .../src/screens/proposal_details/types.ts | 24 + packages/ui/public/locales/en/params.json | 7 +- packages/ui/public/locales/it/params.json | 7 +- packages/ui/public/locales/pl/params.json | 7 +- packages/ui/public/locales/zhs/params.json | 7 +- packages/ui/public/locales/zht/params.json | 7 +- 22 files changed, 2675 insertions(+), 772 deletions(-) create mode 100644 .changeset/swift-monkeys-share.md create mode 100644 apps/web-osmosis/src/models/gov_params/index.ts create mode 100644 apps/web-osmosis/src/models/mint_params/index.ts create mode 100644 apps/web-osmosis/src/screens/params/hooks.ts create mode 100644 apps/web-osmosis/src/screens/params/index.tsx create mode 100644 apps/web-osmosis/src/screens/params/types.ts create mode 100644 apps/web-osmosis/src/screens/params/utils.tsx create mode 100644 apps/web-osmosis/src/screens/proposal_details/components/overview/index.tsx create mode 100644 apps/web-osmosis/src/screens/proposal_details/components/overview/styles.ts create mode 100644 apps/web-osmosis/src/screens/proposal_details/components/votes_graph/hooks.ts create mode 100644 apps/web-osmosis/src/screens/proposal_details/hooks.ts create mode 100644 apps/web-osmosis/src/screens/proposal_details/types.ts diff --git a/.changeset/swift-monkeys-share.md b/.changeset/swift-monkeys-share.md new file mode 100644 index 0000000000..1127cb2953 --- /dev/null +++ b/.changeset/swift-monkeys-share.md @@ -0,0 +1,5 @@ +--- +'web-osmosis': major +--- + +update osmosis proposal and params page to display v1 diff --git a/apps/web-osmosis/src/chain.json b/apps/web-osmosis/src/chain.json index b2c198c7a1..ee5d0ba94a 100644 --- a/apps/web-osmosis/src/chain.json +++ b/apps/web-osmosis/src/chain.json @@ -3,7 +3,8 @@ "title": "Osmosis Block Explorer", "extra": { "profile": true, - "graphqlWs": false + "graphqlWs": false, + "votingPowerExponent": 6 }, "previewImage": "https://s3.bigdipper.live/osmosis.png", "themes": { diff --git a/apps/web-osmosis/src/graphql/general/params.graphql b/apps/web-osmosis/src/graphql/general/params.graphql index b5415d40e3..322ead5a1f 100644 --- a/apps/web-osmosis/src/graphql/general/params.graphql +++ b/apps/web-osmosis/src/graphql/general/params.graphql @@ -11,9 +11,8 @@ query Params { distributionParams: distribution_params(limit: 1, order_by: {height: desc}) { params } - govParams: gov_params (limit: 1, order_by: {height: desc}) { - depositParams: deposit_params - tallyParams: tally_params - votingParams: voting_params + govParams: gov_params(limit: 1, order_by: {height: desc}) { + params + height } } diff --git a/apps/web-osmosis/src/graphql/general/proposal_details.graphql b/apps/web-osmosis/src/graphql/general/proposal_details.graphql index 82ddef911b..231f3fdfee 100644 --- a/apps/web-osmosis/src/graphql/general/proposal_details.graphql +++ b/apps/web-osmosis/src/graphql/general/proposal_details.graphql @@ -7,7 +7,8 @@ query ProposalDetails($proposalId: Int) { content proposalId: id submitTime: submit_time - proposalType: proposal_type + metadata + summary depositEndTime: deposit_end_time votingStartTime: voting_start_time votingEndTime: voting_end_time @@ -25,7 +26,7 @@ query ProposalDetailsTally($proposalId: Int) { bondedTokens: bonded_tokens } quorum: gov_params (limit: 1, order_by: {height: desc}) { - tallyParams: tally_params + tallyParams: params } } diff --git a/apps/web-osmosis/src/graphql/general/token_price.graphql b/apps/web-osmosis/src/graphql/general/token_price.graphql index 8c11321b98..3ed50b2348 100644 --- a/apps/web-osmosis/src/graphql/general/token_price.graphql +++ b/apps/web-osmosis/src/graphql/general/token_price.graphql @@ -1,6 +1,5 @@ subscription TokenPriceListener($denom: String) { tokenPrice: token_price(where: {unit_name: {_eq: $denom}}) { - id price timestamp marketCap: market_cap diff --git a/apps/web-osmosis/src/graphql/types/general_types.ts b/apps/web-osmosis/src/graphql/types/general_types.ts index 9c44459080..aca260939f 100644 --- a/apps/web-osmosis/src/graphql/types/general_types.ts +++ b/apps/web-osmosis/src/graphql/types/general_types.ts @@ -21,7 +21,9 @@ export type Scalars = { _coin: any; _dec_coin: any; _text: any; + access_config: any; bigint: any; + bytea: any; jsonb: any; numeric: any; smallint: any; @@ -57,6 +59,14 @@ export type ActionRedelegationResponse = { redelegations?: Maybe>>; }; +export type ActionSuperfluidDelegationResponse = { + __typename?: 'ActionSuperfluidDelegationResponse'; + delegation_amount?: Maybe; + delegator_address: Scalars['String']; + equivalent_staked_amount?: Maybe; + validator_address: Scalars['String']; +}; + export type ActionUnbondingDelegationResponse = { __typename?: 'ActionUnbondingDelegationResponse'; pagination?: Maybe; @@ -166,6 +176,19 @@ export type _Text_Comparison_Exp = { _nin?: InputMaybe>; }; +/** Boolean expression to compare columns of type "access_config". All fields are combined with logical 'AND'. */ +export type Access_Config_Comparison_Exp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + /** columns and relationships of "account" */ export type Account = { __typename?: 'account'; @@ -200,6 +223,10 @@ export type Account = { vesting_accounts: Array; /** An aggregate relationship */ vesting_accounts_aggregate: Vesting_Account_Aggregate; + /** An array relationship */ + wasm_contracts: Array; + /** An aggregate relationship */ + wasm_contracts_aggregate: Wasm_Contract_Aggregate; }; @@ -342,6 +369,26 @@ export type AccountVesting_Accounts_AggregateArgs = { where?: InputMaybe; }; + +/** columns and relationships of "account" */ +export type AccountWasm_ContractsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account" */ +export type AccountWasm_Contracts_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + /** aggregated selection of "account" */ export type Account_Aggregate = { __typename?: 'account_aggregate'; @@ -378,6 +425,7 @@ export type Account_Bool_Exp = { validator_infos?: InputMaybe; vesting_account?: InputMaybe; vesting_accounts?: InputMaybe; + wasm_contracts?: InputMaybe; }; /** aggregate max on columns */ @@ -403,6 +451,7 @@ export type Account_Order_By = { validator_infos_aggregate?: InputMaybe; vesting_account?: InputMaybe; vesting_accounts_aggregate?: InputMaybe; + wasm_contracts_aggregate?: InputMaybe; }; /** select columns of table "account" */ @@ -1335,6 +1384,19 @@ export type Block_Variance_Order_By = { total_gas?: InputMaybe; }; +/** Boolean expression to compare columns of type "bytea". All fields are combined with logical 'AND'. */ +export type Bytea_Comparison_Exp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + /** columns and relationships of "community_pool" */ export type Community_Pool = { __typename?: 'community_pool'; @@ -1459,7 +1521,6 @@ export type Community_Pool_Variance_Fields = { export type Distribution_Params = { __typename?: 'distribution_params'; height: Scalars['bigint']; - one_row_id: Scalars['Boolean']; params: Scalars['jsonb']; }; @@ -1511,7 +1572,6 @@ export type Distribution_Params_Bool_Exp = { _not?: InputMaybe; _or?: InputMaybe>; height?: InputMaybe; - one_row_id?: InputMaybe; params?: InputMaybe; }; @@ -1530,7 +1590,6 @@ export type Distribution_Params_Min_Fields = { /** Ordering options when selecting data from "distribution_params". */ export type Distribution_Params_Order_By = { height?: InputMaybe; - one_row_id?: InputMaybe; params?: InputMaybe; }; @@ -1539,8 +1598,6 @@ export enum Distribution_Params_Select_Column { /** column name */ Height = 'height', /** column name */ - OneRowId = 'one_row_id', - /** column name */ Params = 'params' } @@ -1837,7 +1894,6 @@ export type Double_Sign_Vote = { /** 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']; @@ -1936,7 +1992,6 @@ export type Double_Sign_Vote_Aggregate_Order_By = { export type Double_Sign_Vote_Avg_Fields = { __typename?: 'double_sign_vote_avg_fields'; height?: Maybe; - id?: Maybe; round?: Maybe; type?: Maybe; validator_index?: Maybe; @@ -1945,7 +2000,6 @@ export type Double_Sign_Vote_Avg_Fields = { /** order by avg() on columns of table "double_sign_vote" */ export type Double_Sign_Vote_Avg_Order_By = { height?: InputMaybe; - id?: InputMaybe; round?: InputMaybe; type?: InputMaybe; validator_index?: InputMaybe; @@ -1960,7 +2014,6 @@ export type Double_Sign_Vote_Bool_Exp = { doubleSignEvidencesByVoteBId?: InputMaybe; double_sign_evidences?: InputMaybe; height?: InputMaybe; - id?: InputMaybe; round?: InputMaybe; signature?: InputMaybe; type?: InputMaybe; @@ -1974,7 +2027,6 @@ 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; @@ -1986,7 +2038,6 @@ export type Double_Sign_Vote_Max_Fields = { export type Double_Sign_Vote_Max_Order_By = { block_id?: InputMaybe; height?: InputMaybe; - id?: InputMaybe; round?: InputMaybe; signature?: InputMaybe; type?: InputMaybe; @@ -1999,7 +2050,6 @@ 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; @@ -2011,7 +2061,6 @@ export type Double_Sign_Vote_Min_Fields = { export type Double_Sign_Vote_Min_Order_By = { block_id?: InputMaybe; height?: InputMaybe; - id?: InputMaybe; round?: InputMaybe; signature?: InputMaybe; type?: InputMaybe; @@ -2025,7 +2074,6 @@ export type Double_Sign_Vote_Order_By = { doubleSignEvidencesByVoteBId_aggregate?: InputMaybe; double_sign_evidences_aggregate?: InputMaybe; height?: InputMaybe; - id?: InputMaybe; round?: InputMaybe; signature?: InputMaybe; type?: InputMaybe; @@ -2041,8 +2089,6 @@ export enum Double_Sign_Vote_Select_Column { /** column name */ Height = 'height', /** column name */ - Id = 'id', - /** column name */ Round = 'round', /** column name */ Signature = 'signature', @@ -2058,7 +2104,6 @@ export enum Double_Sign_Vote_Select_Column { export type Double_Sign_Vote_Stddev_Fields = { __typename?: 'double_sign_vote_stddev_fields'; height?: Maybe; - id?: Maybe; round?: Maybe; type?: Maybe; validator_index?: Maybe; @@ -2067,7 +2112,6 @@ export type Double_Sign_Vote_Stddev_Fields = { /** order by stddev() on columns of table "double_sign_vote" */ export type Double_Sign_Vote_Stddev_Order_By = { height?: InputMaybe; - id?: InputMaybe; round?: InputMaybe; type?: InputMaybe; validator_index?: InputMaybe; @@ -2077,7 +2121,6 @@ export type Double_Sign_Vote_Stddev_Order_By = { 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; @@ -2086,7 +2129,6 @@ export type Double_Sign_Vote_Stddev_Pop_Fields = { /** order by stddev_pop() on columns of table "double_sign_vote" */ export type Double_Sign_Vote_Stddev_Pop_Order_By = { height?: InputMaybe; - id?: InputMaybe; round?: InputMaybe; type?: InputMaybe; validator_index?: InputMaybe; @@ -2096,7 +2138,6 @@ export type Double_Sign_Vote_Stddev_Pop_Order_By = { 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; @@ -2105,7 +2146,6 @@ export type Double_Sign_Vote_Stddev_Samp_Fields = { /** order by stddev_samp() on columns of table "double_sign_vote" */ export type Double_Sign_Vote_Stddev_Samp_Order_By = { height?: InputMaybe; - id?: InputMaybe; round?: InputMaybe; type?: InputMaybe; validator_index?: InputMaybe; @@ -2115,7 +2155,6 @@ export type Double_Sign_Vote_Stddev_Samp_Order_By = { export type Double_Sign_Vote_Sum_Fields = { __typename?: 'double_sign_vote_sum_fields'; height?: Maybe; - id?: Maybe; round?: Maybe; type?: Maybe; validator_index?: Maybe; @@ -2124,7 +2163,6 @@ export type Double_Sign_Vote_Sum_Fields = { /** order by sum() on columns of table "double_sign_vote" */ export type Double_Sign_Vote_Sum_Order_By = { height?: InputMaybe; - id?: InputMaybe; round?: InputMaybe; type?: InputMaybe; validator_index?: InputMaybe; @@ -2134,7 +2172,6 @@ export type Double_Sign_Vote_Sum_Order_By = { 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; @@ -2143,7 +2180,6 @@ export type Double_Sign_Vote_Var_Pop_Fields = { /** order by var_pop() on columns of table "double_sign_vote" */ export type Double_Sign_Vote_Var_Pop_Order_By = { height?: InputMaybe; - id?: InputMaybe; round?: InputMaybe; type?: InputMaybe; validator_index?: InputMaybe; @@ -2153,7 +2189,6 @@ export type Double_Sign_Vote_Var_Pop_Order_By = { 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; @@ -2162,7 +2197,6 @@ export type Double_Sign_Vote_Var_Samp_Fields = { /** order by var_samp() on columns of table "double_sign_vote" */ export type Double_Sign_Vote_Var_Samp_Order_By = { height?: InputMaybe; - id?: InputMaybe; round?: InputMaybe; type?: InputMaybe; validator_index?: InputMaybe; @@ -2172,7 +2206,6 @@ export type Double_Sign_Vote_Var_Samp_Order_By = { export type Double_Sign_Vote_Variance_Fields = { __typename?: 'double_sign_vote_variance_fields'; height?: Maybe; - id?: Maybe; round?: Maybe; type?: Maybe; validator_index?: Maybe; @@ -2181,7 +2214,6 @@ export type Double_Sign_Vote_Variance_Fields = { /** order by variance() on columns of table "double_sign_vote" */ export type Double_Sign_Vote_Variance_Order_By = { height?: InputMaybe; - id?: InputMaybe; round?: InputMaybe; type?: InputMaybe; validator_index?: InputMaybe; @@ -2198,7 +2230,6 @@ export type Fee_Grant_Allowance = { granter: Account; granter_address: Scalars['String']; height: Scalars['bigint']; - id: Scalars['Int']; }; @@ -2256,13 +2287,11 @@ export type Fee_Grant_Allowance_Aggregate_Order_By = { 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?: InputMaybe; - id?: InputMaybe; }; /** Boolean expression to filter rows from the table "fee_grant_allowance". All fields are combined with a logical 'AND'. */ @@ -2276,7 +2305,6 @@ export type Fee_Grant_Allowance_Bool_Exp = { granter?: InputMaybe; granter_address?: InputMaybe; height?: InputMaybe; - id?: InputMaybe; }; /** aggregate max on columns */ @@ -2285,7 +2313,6 @@ export type 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" */ @@ -2293,7 +2320,6 @@ export type Fee_Grant_Allowance_Max_Order_By = { grantee_address?: InputMaybe; granter_address?: InputMaybe; height?: InputMaybe; - id?: InputMaybe; }; /** aggregate min on columns */ @@ -2302,7 +2328,6 @@ export type 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" */ @@ -2310,7 +2335,6 @@ export type Fee_Grant_Allowance_Min_Order_By = { grantee_address?: InputMaybe; granter_address?: InputMaybe; height?: InputMaybe; - id?: InputMaybe; }; /** Ordering options when selecting data from "fee_grant_allowance". */ @@ -2321,7 +2345,6 @@ export type Fee_Grant_Allowance_Order_By = { granter?: InputMaybe; granter_address?: InputMaybe; height?: InputMaybe; - id?: InputMaybe; }; /** select columns of table "fee_grant_allowance" */ @@ -2333,100 +2356,84 @@ export enum Fee_Grant_Allowance_Select_Column { /** column name */ GranterAddress = 'granter_address', /** column name */ - Height = 'height', - /** column name */ - Id = 'id' + Height = 'height' } /** 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?: InputMaybe; - id?: InputMaybe; }; /** 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?: InputMaybe; - id?: InputMaybe; }; /** 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?: InputMaybe; - id?: InputMaybe; }; /** 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?: InputMaybe; - id?: InputMaybe; }; /** 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?: InputMaybe; - id?: InputMaybe; }; /** 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?: InputMaybe; - id?: InputMaybe; }; /** 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?: InputMaybe; - id?: InputMaybe; }; /** columns and relationships of "genesis" */ @@ -2561,28 +2568,13 @@ export type Genesis_Variance_Fields = { /** 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?: InputMaybe; -}; - - -/** columns and relationships of "gov_params" */ -export type Gov_ParamsTally_ParamsArgs = { - path?: InputMaybe; + params: Scalars['jsonb']; }; /** columns and relationships of "gov_params" */ -export type Gov_ParamsVoting_ParamsArgs = { +export type Gov_ParamsParamsArgs = { path?: InputMaybe; }; @@ -2627,11 +2619,8 @@ export type Gov_Params_Bool_Exp = { _and?: InputMaybe>; _not?: InputMaybe; _or?: InputMaybe>; - deposit_params?: InputMaybe; height?: InputMaybe; - one_row_id?: InputMaybe; - tally_params?: InputMaybe; - voting_params?: InputMaybe; + params?: InputMaybe; }; /** aggregate max on columns */ @@ -2648,25 +2637,16 @@ export type Gov_Params_Min_Fields = { /** Ordering options when selecting data from "gov_params". */ export type Gov_Params_Order_By = { - deposit_params?: InputMaybe; height?: InputMaybe; - one_row_id?: InputMaybe; - tally_params?: InputMaybe; - voting_params?: InputMaybe; + params?: InputMaybe; }; /** 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' + Params = 'params' } /** aggregate stddev on columns */ @@ -2862,7 +2842,6 @@ export type Message = { height: Scalars['bigint']; index: Scalars['bigint']; involved_accounts_addresses: Scalars['_text']; - partition_id: Scalars['bigint']; /** An object relationship */ transaction?: Maybe; /** An object relationship */ @@ -2928,14 +2907,12 @@ export type Message_Avg_Fields = { __typename?: 'message_avg_fields'; height?: Maybe; index?: Maybe; - partition_id?: Maybe; }; /** order by avg() on columns of table "message" */ export type Message_Avg_Order_By = { height?: InputMaybe; index?: InputMaybe; - partition_id?: InputMaybe; }; /** Boolean expression to filter rows from the table "message". All fields are combined with a logical 'AND'. */ @@ -2946,7 +2923,6 @@ export type Message_Bool_Exp = { height?: InputMaybe; index?: InputMaybe; involved_accounts_addresses?: InputMaybe<_Text_Comparison_Exp>; - partition_id?: InputMaybe; transaction?: InputMaybe; transactionByPartitionIdTransactionHash?: InputMaybe; transaction_hash?: InputMaybe; @@ -2959,7 +2935,6 @@ export type Message_Max_Fields = { __typename?: 'message_max_fields'; height?: Maybe; index?: Maybe; - partition_id?: Maybe; transaction_hash?: Maybe; type?: Maybe; }; @@ -2968,7 +2943,6 @@ export type Message_Max_Fields = { export type Message_Max_Order_By = { height?: InputMaybe; index?: InputMaybe; - partition_id?: InputMaybe; transaction_hash?: InputMaybe; type?: InputMaybe; }; @@ -2978,7 +2952,6 @@ export type Message_Min_Fields = { __typename?: 'message_min_fields'; height?: Maybe; index?: Maybe; - partition_id?: Maybe; transaction_hash?: Maybe; type?: Maybe; }; @@ -2987,7 +2960,6 @@ export type Message_Min_Fields = { export type Message_Min_Order_By = { height?: InputMaybe; index?: InputMaybe; - partition_id?: InputMaybe; transaction_hash?: InputMaybe; type?: InputMaybe; }; @@ -2997,7 +2969,6 @@ export type Message_Order_By = { height?: InputMaybe; index?: InputMaybe; involved_accounts_addresses?: InputMaybe; - partition_id?: InputMaybe; transaction?: InputMaybe; transactionByPartitionIdTransactionHash?: InputMaybe; transaction_hash?: InputMaybe; @@ -3014,8 +2985,6 @@ 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', @@ -3028,14 +2997,12 @@ export type Message_Stddev_Fields = { __typename?: 'message_stddev_fields'; height?: Maybe; index?: Maybe; - partition_id?: Maybe; }; /** order by stddev() on columns of table "message" */ export type Message_Stddev_Order_By = { height?: InputMaybe; index?: InputMaybe; - partition_id?: InputMaybe; }; /** aggregate stddev_pop on columns */ @@ -3043,14 +3010,12 @@ export type Message_Stddev_Pop_Fields = { __typename?: 'message_stddev_pop_fields'; height?: Maybe; index?: Maybe; - partition_id?: Maybe; }; /** order by stddev_pop() on columns of table "message" */ export type Message_Stddev_Pop_Order_By = { height?: InputMaybe; index?: InputMaybe; - partition_id?: InputMaybe; }; /** aggregate stddev_samp on columns */ @@ -3058,14 +3023,12 @@ export type Message_Stddev_Samp_Fields = { __typename?: 'message_stddev_samp_fields'; height?: Maybe; index?: Maybe; - partition_id?: Maybe; }; /** order by stddev_samp() on columns of table "message" */ export type Message_Stddev_Samp_Order_By = { height?: InputMaybe; index?: InputMaybe; - partition_id?: InputMaybe; }; /** aggregate sum on columns */ @@ -3073,14 +3036,12 @@ export type Message_Sum_Fields = { __typename?: 'message_sum_fields'; height?: Maybe; index?: Maybe; - partition_id?: Maybe; }; /** order by sum() on columns of table "message" */ export type Message_Sum_Order_By = { height?: InputMaybe; index?: InputMaybe; - partition_id?: InputMaybe; }; /** aggregate var_pop on columns */ @@ -3088,14 +3049,12 @@ export type Message_Var_Pop_Fields = { __typename?: 'message_var_pop_fields'; height?: Maybe; index?: Maybe; - partition_id?: Maybe; }; /** order by var_pop() on columns of table "message" */ export type Message_Var_Pop_Order_By = { height?: InputMaybe; index?: InputMaybe; - partition_id?: InputMaybe; }; /** aggregate var_samp on columns */ @@ -3103,14 +3062,12 @@ export type Message_Var_Samp_Fields = { __typename?: 'message_var_samp_fields'; height?: Maybe; index?: Maybe; - partition_id?: Maybe; }; /** order by var_samp() on columns of table "message" */ export type Message_Var_Samp_Order_By = { height?: InputMaybe; index?: InputMaybe; - partition_id?: InputMaybe; }; /** aggregate variance on columns */ @@ -3118,14 +3075,12 @@ export type Message_Variance_Fields = { __typename?: 'message_variance_fields'; height?: Maybe; index?: Maybe; - partition_id?: Maybe; }; /** order by variance() on columns of table "message" */ export type Message_Variance_Order_By = { height?: InputMaybe; index?: InputMaybe; - partition_id?: InputMaybe; }; export type Messages_By_Address_Args = { @@ -3135,11 +3090,18 @@ export type Messages_By_Address_Args = { types?: InputMaybe; }; +export type Messages_By_Single_Address_Args = { + address?: InputMaybe; + apikey?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; + types?: InputMaybe; +}; + /** columns and relationships of "mint_params" */ export type Mint_Params = { __typename?: 'mint_params'; height: Scalars['bigint']; - one_row_id: Scalars['Boolean']; params: Scalars['jsonb']; }; @@ -3191,7 +3153,6 @@ export type Mint_Params_Bool_Exp = { _not?: InputMaybe; _or?: InputMaybe>; height?: InputMaybe; - one_row_id?: InputMaybe; params?: InputMaybe; }; @@ -3210,7 +3171,6 @@ export type Mint_Params_Min_Fields = { /** Ordering options when selecting data from "mint_params". */ export type Mint_Params_Order_By = { height?: InputMaybe; - one_row_id?: InputMaybe; params?: InputMaybe; }; @@ -3219,8 +3179,6 @@ export enum Mint_Params_Select_Column { /** column name */ Height = 'height', /** column name */ - OneRowId = 'one_row_id', - /** column name */ Params = 'params' } @@ -3272,28 +3230,6 @@ export type Modules = { module_name: Scalars['String']; }; -/** aggregated selection of "modules" */ -export type Modules_Aggregate = { - __typename?: 'modules_aggregate'; - aggregate?: Maybe; - nodes: Array; -}; - -/** aggregate fields of "modules" */ -export type Modules_Aggregate_Fields = { - __typename?: 'modules_aggregate_fields'; - count: Scalars['Int']; - max?: Maybe; - min?: Maybe; -}; - - -/** aggregate fields of "modules" */ -export type Modules_Aggregate_FieldsCountArgs = { - columns?: InputMaybe>; - distinct?: InputMaybe; -}; - /** Boolean expression to filter rows from the table "modules". All fields are combined with a logical 'AND'. */ export type Modules_Bool_Exp = { _and?: InputMaybe>; @@ -3302,18 +3238,6 @@ export type Modules_Bool_Exp = { module_name?: InputMaybe; }; -/** 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?: InputMaybe; @@ -3613,18 +3537,17 @@ export type Proposal = { deposit_end_time?: Maybe; description: Scalars['String']; id: Scalars['Int']; + metadata?: Maybe; /** 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 */ @@ -3636,6 +3559,7 @@ export type Proposal = { staking_pool_snapshot?: Maybe; status?: Maybe; submit_time: Scalars['timestamp']; + summary?: Maybe; title: Scalars['String']; /** An array relationship */ validator_status_snapshots: Array; @@ -3796,17 +3720,17 @@ export type Proposal_Bool_Exp = { deposit_end_time?: InputMaybe; description?: InputMaybe; id?: InputMaybe; + metadata?: InputMaybe; proposal_deposits?: InputMaybe; - proposal_route?: InputMaybe; proposal_tally_result?: InputMaybe; proposal_tally_results?: InputMaybe; - proposal_type?: InputMaybe; proposal_votes?: InputMaybe; proposer?: InputMaybe; proposer_address?: InputMaybe; staking_pool_snapshot?: InputMaybe; status?: InputMaybe; submit_time?: InputMaybe; + summary?: InputMaybe; title?: InputMaybe; validator_status_snapshots?: InputMaybe; voting_end_time?: InputMaybe; @@ -3827,6 +3751,7 @@ export type Proposal_Deposit = { proposal: Proposal; proposal_id: Scalars['Int']; timestamp?: Maybe; + transaction_hash: Scalars['String']; }; /** aggregated selection of "proposal_deposit" */ @@ -3900,6 +3825,7 @@ export type Proposal_Deposit_Bool_Exp = { proposal?: InputMaybe; proposal_id?: InputMaybe; timestamp?: InputMaybe; + transaction_hash?: InputMaybe; }; /** aggregate max on columns */ @@ -3909,6 +3835,7 @@ export type Proposal_Deposit_Max_Fields = { height?: Maybe; proposal_id?: Maybe; timestamp?: Maybe; + transaction_hash?: Maybe; }; /** order by max() on columns of table "proposal_deposit" */ @@ -3917,6 +3844,7 @@ export type Proposal_Deposit_Max_Order_By = { height?: InputMaybe; proposal_id?: InputMaybe; timestamp?: InputMaybe; + transaction_hash?: InputMaybe; }; /** aggregate min on columns */ @@ -3926,6 +3854,7 @@ export type Proposal_Deposit_Min_Fields = { height?: Maybe; proposal_id?: Maybe; timestamp?: Maybe; + transaction_hash?: Maybe; }; /** order by min() on columns of table "proposal_deposit" */ @@ -3934,6 +3863,7 @@ export type Proposal_Deposit_Min_Order_By = { height?: InputMaybe; proposal_id?: InputMaybe; timestamp?: InputMaybe; + transaction_hash?: InputMaybe; }; /** Ordering options when selecting data from "proposal_deposit". */ @@ -3946,6 +3876,7 @@ export type Proposal_Deposit_Order_By = { proposal?: InputMaybe; proposal_id?: InputMaybe; timestamp?: InputMaybe; + transaction_hash?: InputMaybe; }; /** select columns of table "proposal_deposit" */ @@ -3959,7 +3890,9 @@ export enum Proposal_Deposit_Select_Column { /** column name */ ProposalId = 'proposal_id', /** column name */ - Timestamp = 'timestamp' + Timestamp = 'timestamp', + /** column name */ + TransactionHash = 'transaction_hash' } /** aggregate stddev on columns */ @@ -4059,11 +3992,11 @@ export type Proposal_Max_Fields = { deposit_end_time?: Maybe; description?: Maybe; id?: Maybe; - proposal_route?: Maybe; - proposal_type?: Maybe; + metadata?: Maybe; proposer_address?: Maybe; status?: Maybe; submit_time?: Maybe; + summary?: Maybe; title?: Maybe; voting_end_time?: Maybe; voting_start_time?: Maybe; @@ -4074,11 +4007,11 @@ export type Proposal_Max_Order_By = { deposit_end_time?: InputMaybe; description?: InputMaybe; id?: InputMaybe; - proposal_route?: InputMaybe; - proposal_type?: InputMaybe; + metadata?: InputMaybe; proposer_address?: InputMaybe; status?: InputMaybe; submit_time?: InputMaybe; + summary?: InputMaybe; title?: InputMaybe; voting_end_time?: InputMaybe; voting_start_time?: InputMaybe; @@ -4090,11 +4023,11 @@ export type Proposal_Min_Fields = { deposit_end_time?: Maybe; description?: Maybe; id?: Maybe; - proposal_route?: Maybe; - proposal_type?: Maybe; + metadata?: Maybe; proposer_address?: Maybe; status?: Maybe; submit_time?: Maybe; + summary?: Maybe; title?: Maybe; voting_end_time?: Maybe; voting_start_time?: Maybe; @@ -4105,11 +4038,11 @@ export type Proposal_Min_Order_By = { deposit_end_time?: InputMaybe; description?: InputMaybe; id?: InputMaybe; - proposal_route?: InputMaybe; - proposal_type?: InputMaybe; + metadata?: InputMaybe; proposer_address?: InputMaybe; status?: InputMaybe; submit_time?: InputMaybe; + summary?: InputMaybe; title?: InputMaybe; voting_end_time?: InputMaybe; voting_start_time?: InputMaybe; @@ -4121,17 +4054,17 @@ export type Proposal_Order_By = { deposit_end_time?: InputMaybe; description?: InputMaybe; id?: InputMaybe; + metadata?: InputMaybe; proposal_deposits_aggregate?: InputMaybe; - proposal_route?: InputMaybe; proposal_tally_result?: InputMaybe; proposal_tally_results_aggregate?: InputMaybe; - proposal_type?: InputMaybe; proposal_votes_aggregate?: InputMaybe; proposer?: InputMaybe; proposer_address?: InputMaybe; staking_pool_snapshot?: InputMaybe; status?: InputMaybe; submit_time?: InputMaybe; + summary?: InputMaybe; title?: InputMaybe; validator_status_snapshots_aggregate?: InputMaybe; voting_end_time?: InputMaybe; @@ -4149,9 +4082,7 @@ export enum Proposal_Select_Column { /** column name */ Id = 'id', /** column name */ - ProposalRoute = 'proposal_route', - /** column name */ - ProposalType = 'proposal_type', + Metadata = 'metadata', /** column name */ ProposerAddress = 'proposer_address', /** column name */ @@ -4159,6 +4090,8 @@ export enum Proposal_Select_Column { /** column name */ SubmitTime = 'submit_time', /** column name */ + Summary = 'summary', + /** column name */ Title = 'title', /** column name */ VotingEndTime = 'voting_end_time', @@ -4607,7 +4540,6 @@ export type Proposal_Tally_Result_Variance_Order_By = { 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; @@ -4668,7 +4600,6 @@ export type Proposal_Validator_Status_Snapshot_Aggregate_Order_By = { 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; @@ -4677,7 +4608,6 @@ export type Proposal_Validator_Status_Snapshot_Avg_Fields = { /** order by avg() on columns of table "proposal_validator_status_snapshot" */ export type Proposal_Validator_Status_Snapshot_Avg_Order_By = { height?: InputMaybe; - id?: InputMaybe; proposal_id?: InputMaybe; status?: InputMaybe; voting_power?: InputMaybe; @@ -4689,7 +4619,6 @@ export type Proposal_Validator_Status_Snapshot_Bool_Exp = { _not?: InputMaybe; _or?: InputMaybe>; height?: InputMaybe; - id?: InputMaybe; jailed?: InputMaybe; proposal?: InputMaybe; proposal_id?: InputMaybe; @@ -4703,7 +4632,6 @@ export type Proposal_Validator_Status_Snapshot_Bool_Exp = { 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; @@ -4713,7 +4641,6 @@ export type Proposal_Validator_Status_Snapshot_Max_Fields = { /** order by max() on columns of table "proposal_validator_status_snapshot" */ export type Proposal_Validator_Status_Snapshot_Max_Order_By = { height?: InputMaybe; - id?: InputMaybe; proposal_id?: InputMaybe; status?: InputMaybe; validator_address?: InputMaybe; @@ -4724,7 +4651,6 @@ export type Proposal_Validator_Status_Snapshot_Max_Order_By = { 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; @@ -4734,7 +4660,6 @@ export type Proposal_Validator_Status_Snapshot_Min_Fields = { /** order by min() on columns of table "proposal_validator_status_snapshot" */ export type Proposal_Validator_Status_Snapshot_Min_Order_By = { height?: InputMaybe; - id?: InputMaybe; proposal_id?: InputMaybe; status?: InputMaybe; validator_address?: InputMaybe; @@ -4744,7 +4669,6 @@ export type Proposal_Validator_Status_Snapshot_Min_Order_By = { /** Ordering options when selecting data from "proposal_validator_status_snapshot". */ export type Proposal_Validator_Status_Snapshot_Order_By = { height?: InputMaybe; - id?: InputMaybe; jailed?: InputMaybe; proposal?: InputMaybe; proposal_id?: InputMaybe; @@ -4759,8 +4683,6 @@ 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', @@ -4776,7 +4698,6 @@ export enum Proposal_Validator_Status_Snapshot_Select_Column { 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; @@ -4785,7 +4706,6 @@ export type Proposal_Validator_Status_Snapshot_Stddev_Fields = { /** order by stddev() on columns of table "proposal_validator_status_snapshot" */ export type Proposal_Validator_Status_Snapshot_Stddev_Order_By = { height?: InputMaybe; - id?: InputMaybe; proposal_id?: InputMaybe; status?: InputMaybe; voting_power?: InputMaybe; @@ -4795,7 +4715,6 @@ export type Proposal_Validator_Status_Snapshot_Stddev_Order_By = { 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; @@ -4804,7 +4723,6 @@ export type Proposal_Validator_Status_Snapshot_Stddev_Pop_Fields = { /** order by stddev_pop() on columns of table "proposal_validator_status_snapshot" */ export type Proposal_Validator_Status_Snapshot_Stddev_Pop_Order_By = { height?: InputMaybe; - id?: InputMaybe; proposal_id?: InputMaybe; status?: InputMaybe; voting_power?: InputMaybe; @@ -4814,7 +4732,6 @@ export type Proposal_Validator_Status_Snapshot_Stddev_Pop_Order_By = { 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; @@ -4823,7 +4740,6 @@ export type Proposal_Validator_Status_Snapshot_Stddev_Samp_Fields = { /** order by stddev_samp() on columns of table "proposal_validator_status_snapshot" */ export type Proposal_Validator_Status_Snapshot_Stddev_Samp_Order_By = { height?: InputMaybe; - id?: InputMaybe; proposal_id?: InputMaybe; status?: InputMaybe; voting_power?: InputMaybe; @@ -4833,7 +4749,6 @@ export type Proposal_Validator_Status_Snapshot_Stddev_Samp_Order_By = { 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; @@ -4842,7 +4757,6 @@ export type Proposal_Validator_Status_Snapshot_Sum_Fields = { /** order by sum() on columns of table "proposal_validator_status_snapshot" */ export type Proposal_Validator_Status_Snapshot_Sum_Order_By = { height?: InputMaybe; - id?: InputMaybe; proposal_id?: InputMaybe; status?: InputMaybe; voting_power?: InputMaybe; @@ -4852,7 +4766,6 @@ export type Proposal_Validator_Status_Snapshot_Sum_Order_By = { 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; @@ -4861,7 +4774,6 @@ export type Proposal_Validator_Status_Snapshot_Var_Pop_Fields = { /** order by var_pop() on columns of table "proposal_validator_status_snapshot" */ export type Proposal_Validator_Status_Snapshot_Var_Pop_Order_By = { height?: InputMaybe; - id?: InputMaybe; proposal_id?: InputMaybe; status?: InputMaybe; voting_power?: InputMaybe; @@ -4871,7 +4783,6 @@ export type Proposal_Validator_Status_Snapshot_Var_Pop_Order_By = { 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; @@ -4880,7 +4791,6 @@ export type Proposal_Validator_Status_Snapshot_Var_Samp_Fields = { /** order by var_samp() on columns of table "proposal_validator_status_snapshot" */ export type Proposal_Validator_Status_Snapshot_Var_Samp_Order_By = { height?: InputMaybe; - id?: InputMaybe; proposal_id?: InputMaybe; status?: InputMaybe; voting_power?: InputMaybe; @@ -4890,7 +4800,6 @@ export type Proposal_Validator_Status_Snapshot_Var_Samp_Order_By = { 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; @@ -4899,7 +4808,6 @@ export type Proposal_Validator_Status_Snapshot_Variance_Fields = { /** order by variance() on columns of table "proposal_validator_status_snapshot" */ export type Proposal_Validator_Status_Snapshot_Variance_Order_By = { height?: InputMaybe; - id?: InputMaybe; proposal_id?: InputMaybe; status?: InputMaybe; voting_power?: InputMaybe; @@ -4944,7 +4852,7 @@ export type Proposal_Vote = { /** An object relationship */ account: Account; /** An object relationship */ - block: Block; + block?: Maybe; height: Scalars['bigint']; option: Scalars['String']; /** An object relationship */ @@ -5196,6 +5104,8 @@ export type Query_Root = { action_delegation_total?: Maybe; action_delegator_withdraw_address: ActionAddress; action_redelegation?: Maybe; + action_superfluid_delegation?: Maybe>>; + action_superfluid_delegation_total?: Maybe; action_unbonding_delegation?: Maybe; action_unbonding_delegation_total?: Maybe; action_validator_commission_amount?: Maybe; @@ -5232,8 +5142,6 @@ export type Query_Root = { 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" */ @@ -5242,14 +5150,10 @@ export type Query_Root = { 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" */ @@ -5258,8 +5162,6 @@ export type Query_Root = { 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" */ @@ -5272,16 +5174,16 @@ export type Query_Root = { messages_by_address: Array; /** execute function "messages_by_address" and query aggregates on result of table type "message" */ messages_by_address_aggregate: Message_Aggregate; + /** execute function "messages_by_single_address" which returns "message" */ + messages_by_single_address: Array; + /** execute function "messages_by_single_address" and query aggregates on result of table type "message" */ + messages_by_single_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" */ @@ -5314,8 +5216,6 @@ export type Query_Root = { 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" */ @@ -5324,8 +5224,6 @@ export type Query_Root = { 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: "software_upgrade_plan" */ software_upgrade_plan: Array; /** fetch aggregated fields from the table: "software_upgrade_plan" */ @@ -5334,8 +5232,6 @@ export type Query_Root = { 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" */ @@ -5344,6 +5240,7 @@ export type Query_Root = { supply: Array; /** fetch aggregated fields from the table: "supply" */ supply_aggregate: Supply_Aggregate; + test_action_account_balance?: Maybe; /** fetch data from the table: "token" */ token: Array; /** fetch aggregated fields from the table: "token" */ @@ -5352,8 +5249,6 @@ export type Query_Root = { 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" */ @@ -5412,12 +5307,28 @@ export type Query_Root = { 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; + /** fetch data from the table: "wasm_code" */ + wasm_code: Array; + /** fetch aggregated fields from the table: "wasm_code" */ + wasm_code_aggregate: Wasm_Code_Aggregate; + /** fetch data from the table: "wasm_contract" */ + wasm_contract: Array; + /** fetch aggregated fields from the table: "wasm_contract" */ + wasm_contract_aggregate: Wasm_Contract_Aggregate; + /** fetch data from the table: "wasm_execute_contract" */ + wasm_execute_contract: Array; + /** fetch aggregated fields from the table: "wasm_execute_contract" */ + wasm_execute_contract_aggregate: Wasm_Execute_Contract_Aggregate; + /** fetch data from the table: "wasm_params" */ + wasm_params: Array; + /** fetch aggregated fields from the table: "wasm_params" */ + wasm_params_aggregate: Wasm_Params_Aggregate; + /** fetch data from the table: "wasm_params" using primary key columns */ + wasm_params_by_pk?: Maybe; }; @@ -5485,6 +5396,18 @@ export type Query_RootAction_RedelegationArgs = { }; +export type Query_RootAction_Superfluid_DelegationArgs = { + address: Scalars['String']; + height?: InputMaybe; +}; + + +export type Query_RootAction_Superfluid_Delegation_TotalArgs = { + address: Scalars['String']; + height?: InputMaybe; +}; + + export type Query_RootAction_Unbonding_DelegationArgs = { address: Scalars['String']; count_total?: InputMaybe; @@ -5661,11 +5584,6 @@ export type Query_RootDistribution_Params_AggregateArgs = { }; -export type Query_RootDistribution_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - export type Query_RootDouble_Sign_EvidenceArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -5702,11 +5620,6 @@ export type Query_RootDouble_Sign_Vote_AggregateArgs = { }; -export type Query_RootDouble_Sign_Vote_By_PkArgs = { - id: Scalars['Int']; -}; - - export type Query_RootFee_Grant_AllowanceArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -5725,11 +5638,6 @@ export type Query_RootFee_Grant_Allowance_AggregateArgs = { }; -export type Query_RootFee_Grant_Allowance_By_PkArgs = { - id: Scalars['Int']; -}; - - export type Query_RootGenesisArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -5766,11 +5674,6 @@ export type Query_RootGov_Params_AggregateArgs = { }; -export type Query_RootGov_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - export type Query_RootInflationArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -5827,6 +5730,26 @@ export type Query_RootMessages_By_Address_AggregateArgs = { }; +export type Query_RootMessages_By_Single_AddressArgs = { + args: Messages_By_Single_Address_Args; + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootMessages_By_Single_Address_AggregateArgs = { + args: Messages_By_Single_Address_Args; + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + export type Query_RootMint_ParamsArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -5845,11 +5768,6 @@ export type Query_RootMint_Params_AggregateArgs = { }; -export type Query_RootMint_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - export type Query_RootModulesArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -5859,15 +5777,6 @@ export type Query_RootModulesArgs = { }; -export type Query_RootModules_AggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - export type Query_RootModules_By_PkArgs = { module_name: Scalars['String']; }; @@ -5996,11 +5905,6 @@ export type Query_RootProposal_Validator_Status_Snapshot_AggregateArgs = { }; -export type Query_RootProposal_Validator_Status_Snapshot_By_PkArgs = { - id: Scalars['Int']; -}; - - export type Query_RootProposal_VoteArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6037,11 +5941,6 @@ export type Query_RootSlashing_Params_AggregateArgs = { }; -export type Query_RootSlashing_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - export type Query_RootSoftware_Upgrade_PlanArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6078,11 +5977,6 @@ export type Query_RootStaking_Params_AggregateArgs = { }; -export type Query_RootStaking_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - export type Query_RootStaking_PoolArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6119,6 +6013,13 @@ export type Query_RootSupply_AggregateArgs = { }; +export type Query_RootTest_Action_Account_BalanceArgs = { + address: Scalars['String']; + apikey?: InputMaybe; + height?: InputMaybe; +}; + + export type Query_RootTokenArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6155,11 +6056,6 @@ export type Query_RootToken_Price_AggregateArgs = { }; -export type Query_RootToken_Price_By_PkArgs = { - id: Scalars['Int']; -}; - - export type Query_RootToken_Price_HistoryArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6393,11 +6289,6 @@ export type Query_RootVesting_Account_AggregateArgs = { }; -export type Query_RootVesting_Account_By_PkArgs = { - id: Scalars['Int']; -}; - - export type Query_RootVesting_PeriodArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6415,21 +6306,97 @@ export type Query_RootVesting_Period_AggregateArgs = { where?: InputMaybe; }; -/** 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_RootWasm_CodeArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -/** columns and relationships of "slashing_params" */ -export type Slashing_ParamsParamsArgs = { - path?: InputMaybe; +export type Query_RootWasm_Code_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -/** aggregated selection of "slashing_params" */ + +export type Query_RootWasm_ContractArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootWasm_Contract_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootWasm_Execute_ContractArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootWasm_Execute_Contract_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootWasm_ParamsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootWasm_Params_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootWasm_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; +}; + +/** columns and relationships of "slashing_params" */ +export type Slashing_Params = { + __typename?: 'slashing_params'; + height: Scalars['bigint']; + params: Scalars['jsonb']; +}; + + +/** columns and relationships of "slashing_params" */ +export type Slashing_ParamsParamsArgs = { + path?: InputMaybe; +}; + +/** aggregated selection of "slashing_params" */ export type Slashing_Params_Aggregate = { __typename?: 'slashing_params_aggregate'; aggregate?: Maybe; @@ -6471,7 +6438,6 @@ export type Slashing_Params_Bool_Exp = { _not?: InputMaybe; _or?: InputMaybe>; height?: InputMaybe; - one_row_id?: InputMaybe; params?: InputMaybe; }; @@ -6490,7 +6456,6 @@ export type Slashing_Params_Min_Fields = { /** Ordering options when selecting data from "slashing_params". */ export type Slashing_Params_Order_By = { height?: InputMaybe; - one_row_id?: InputMaybe; params?: InputMaybe; }; @@ -6499,8 +6464,6 @@ export enum Slashing_Params_Select_Column { /** column name */ Height = 'height', /** column name */ - OneRowId = 'one_row_id', - /** column name */ Params = 'params' } @@ -6565,6 +6528,8 @@ export type Software_Upgrade_Plan = { height: Scalars['bigint']; info: Scalars['String']; plan_name: Scalars['String']; + /** An object relationship */ + proposal?: Maybe; proposal_id?: Maybe; upgrade_height: Scalars['bigint']; }; @@ -6615,6 +6580,7 @@ export type Software_Upgrade_Plan_Bool_Exp = { height?: InputMaybe; info?: InputMaybe; plan_name?: InputMaybe; + proposal?: InputMaybe; proposal_id?: InputMaybe; upgrade_height?: InputMaybe; }; @@ -6644,6 +6610,7 @@ export type Software_Upgrade_Plan_Order_By = { height?: InputMaybe; info?: InputMaybe; plan_name?: InputMaybe; + proposal?: InputMaybe; proposal_id?: InputMaybe; upgrade_height?: InputMaybe; }; @@ -6722,7 +6689,6 @@ export type Software_Upgrade_Plan_Variance_Fields = { export type Staking_Params = { __typename?: 'staking_params'; height: Scalars['bigint']; - one_row_id: Scalars['Boolean']; params: Scalars['jsonb']; }; @@ -6774,7 +6740,6 @@ export type Staking_Params_Bool_Exp = { _not?: InputMaybe; _or?: InputMaybe>; height?: InputMaybe; - one_row_id?: InputMaybe; params?: InputMaybe; }; @@ -6793,7 +6758,6 @@ export type Staking_Params_Min_Fields = { /** Ordering options when selecting data from "staking_params". */ export type Staking_Params_Order_By = { height?: InputMaybe; - one_row_id?: InputMaybe; params?: InputMaybe; }; @@ -6802,8 +6766,6 @@ export enum Staking_Params_Select_Column { /** column name */ Height = 'height', /** column name */ - OneRowId = 'one_row_id', - /** column name */ Params = 'params' } @@ -7030,8 +6992,6 @@ export type Subscription_Root = { 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" */ @@ -7040,14 +7000,10 @@ export type Subscription_Root = { 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" */ @@ -7056,8 +7012,6 @@ export type Subscription_Root = { 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" */ @@ -7070,16 +7024,16 @@ export type Subscription_Root = { messages_by_address: Array; /** execute function "messages_by_address" and query aggregates on result of table type "message" */ messages_by_address_aggregate: Message_Aggregate; + /** execute function "messages_by_single_address" which returns "message" */ + messages_by_single_address: Array; + /** execute function "messages_by_single_address" and query aggregates on result of table type "message" */ + messages_by_single_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" */ @@ -7112,8 +7066,6 @@ export type Subscription_Root = { 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" */ @@ -7122,8 +7074,6 @@ export type Subscription_Root = { 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: "software_upgrade_plan" */ software_upgrade_plan: Array; /** fetch aggregated fields from the table: "software_upgrade_plan" */ @@ -7132,8 +7082,6 @@ export type Subscription_Root = { 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" */ @@ -7150,8 +7098,6 @@ export type Subscription_Root = { 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" */ @@ -7210,12 +7156,28 @@ export type Subscription_Root = { 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; + /** fetch data from the table: "wasm_code" */ + wasm_code: Array; + /** fetch aggregated fields from the table: "wasm_code" */ + wasm_code_aggregate: Wasm_Code_Aggregate; + /** fetch data from the table: "wasm_contract" */ + wasm_contract: Array; + /** fetch aggregated fields from the table: "wasm_contract" */ + wasm_contract_aggregate: Wasm_Contract_Aggregate; + /** fetch data from the table: "wasm_execute_contract" */ + wasm_execute_contract: Array; + /** fetch aggregated fields from the table: "wasm_execute_contract" */ + wasm_execute_contract_aggregate: Wasm_Execute_Contract_Aggregate; + /** fetch data from the table: "wasm_params" */ + wasm_params: Array; + /** fetch aggregated fields from the table: "wasm_params" */ + wasm_params_aggregate: Wasm_Params_Aggregate; + /** fetch data from the table: "wasm_params" using primary key columns */ + wasm_params_by_pk?: Maybe; }; @@ -7373,11 +7335,6 @@ export type Subscription_RootDistribution_Params_AggregateArgs = { }; -export type Subscription_RootDistribution_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - export type Subscription_RootDouble_Sign_EvidenceArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7414,11 +7371,6 @@ export type Subscription_RootDouble_Sign_Vote_AggregateArgs = { }; -export type Subscription_RootDouble_Sign_Vote_By_PkArgs = { - id: Scalars['Int']; -}; - - export type Subscription_RootFee_Grant_AllowanceArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7437,11 +7389,6 @@ export type Subscription_RootFee_Grant_Allowance_AggregateArgs = { }; -export type Subscription_RootFee_Grant_Allowance_By_PkArgs = { - id: Scalars['Int']; -}; - - export type Subscription_RootGenesisArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7478,11 +7425,6 @@ export type Subscription_RootGov_Params_AggregateArgs = { }; -export type Subscription_RootGov_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - export type Subscription_RootInflationArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7539,6 +7481,26 @@ export type Subscription_RootMessages_By_Address_AggregateArgs = { }; +export type Subscription_RootMessages_By_Single_AddressArgs = { + args: Messages_By_Single_Address_Args; + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootMessages_By_Single_Address_AggregateArgs = { + args: Messages_By_Single_Address_Args; + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + export type Subscription_RootMint_ParamsArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7557,11 +7519,6 @@ export type Subscription_RootMint_Params_AggregateArgs = { }; -export type Subscription_RootMint_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - export type Subscription_RootModulesArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7571,15 +7528,6 @@ export type Subscription_RootModulesArgs = { }; -export type Subscription_RootModules_AggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - export type Subscription_RootModules_By_PkArgs = { module_name: Scalars['String']; }; @@ -7708,11 +7656,6 @@ export type Subscription_RootProposal_Validator_Status_Snapshot_AggregateArgs = }; -export type Subscription_RootProposal_Validator_Status_Snapshot_By_PkArgs = { - id: Scalars['Int']; -}; - - export type Subscription_RootProposal_VoteArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7749,11 +7692,6 @@ export type Subscription_RootSlashing_Params_AggregateArgs = { }; -export type Subscription_RootSlashing_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - export type Subscription_RootSoftware_Upgrade_PlanArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7790,11 +7728,6 @@ export type Subscription_RootStaking_Params_AggregateArgs = { }; -export type Subscription_RootStaking_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; -}; - - export type Subscription_RootStaking_PoolArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7867,11 +7800,6 @@ export type Subscription_RootToken_Price_AggregateArgs = { }; -export type Subscription_RootToken_Price_By_PkArgs = { - id: Scalars['Int']; -}; - - export type Subscription_RootToken_Price_HistoryArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8105,11 +8033,6 @@ export type Subscription_RootVesting_Account_AggregateArgs = { }; -export type Subscription_RootVesting_Account_By_PkArgs = { - id: Scalars['Int']; -}; - - export type Subscription_RootVesting_PeriodArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8127,6 +8050,83 @@ export type Subscription_RootVesting_Period_AggregateArgs = { where?: InputMaybe; }; + +export type Subscription_RootWasm_CodeArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootWasm_Code_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootWasm_ContractArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootWasm_Contract_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootWasm_Execute_ContractArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootWasm_Execute_Contract_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootWasm_ParamsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootWasm_Params_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootWasm_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; +}; + /** columns and relationships of "supply" */ export type Supply = { __typename?: 'supply'; @@ -8355,7 +8355,6 @@ export type Token_Order_By = { /** 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']; @@ -8412,14 +8411,12 @@ export type Token_Price_Aggregate_Order_By = { /** aggregate avg on columns */ export type Token_Price_Avg_Fields = { __typename?: 'token_price_avg_fields'; - id?: Maybe; market_cap?: Maybe; price?: Maybe; }; /** order by avg() on columns of table "token_price" */ export type Token_Price_Avg_Order_By = { - id?: InputMaybe; market_cap?: InputMaybe; price?: InputMaybe; }; @@ -8429,7 +8426,6 @@ export type Token_Price_Bool_Exp = { _and?: InputMaybe>; _not?: InputMaybe; _or?: InputMaybe>; - id?: InputMaybe; market_cap?: InputMaybe; price?: InputMaybe; timestamp?: InputMaybe; @@ -8667,7 +8663,6 @@ export type Token_Price_History_Variance_Order_By = { /** aggregate max on columns */ export type Token_Price_Max_Fields = { __typename?: 'token_price_max_fields'; - id?: Maybe; market_cap?: Maybe; price?: Maybe; timestamp?: Maybe; @@ -8676,7 +8671,6 @@ export type Token_Price_Max_Fields = { /** order by max() on columns of table "token_price" */ export type Token_Price_Max_Order_By = { - id?: InputMaybe; market_cap?: InputMaybe; price?: InputMaybe; timestamp?: InputMaybe; @@ -8686,7 +8680,6 @@ export type Token_Price_Max_Order_By = { /** aggregate min on columns */ export type Token_Price_Min_Fields = { __typename?: 'token_price_min_fields'; - id?: Maybe; market_cap?: Maybe; price?: Maybe; timestamp?: Maybe; @@ -8695,7 +8688,6 @@ export type Token_Price_Min_Fields = { /** order by min() on columns of table "token_price" */ export type Token_Price_Min_Order_By = { - id?: InputMaybe; market_cap?: InputMaybe; price?: InputMaybe; timestamp?: InputMaybe; @@ -8704,7 +8696,6 @@ export type Token_Price_Min_Order_By = { /** Ordering options when selecting data from "token_price". */ export type Token_Price_Order_By = { - id?: InputMaybe; market_cap?: InputMaybe; price?: InputMaybe; timestamp?: InputMaybe; @@ -8714,8 +8705,6 @@ export type Token_Price_Order_By = { /** select columns of table "token_price" */ export enum Token_Price_Select_Column { - /** column name */ - Id = 'id', /** column name */ MarketCap = 'market_cap', /** column name */ @@ -8729,14 +8718,12 @@ export enum Token_Price_Select_Column { /** 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?: InputMaybe; market_cap?: InputMaybe; price?: InputMaybe; }; @@ -8744,14 +8731,12 @@ export type Token_Price_Stddev_Order_By = { /** 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?: InputMaybe; market_cap?: InputMaybe; price?: InputMaybe; }; @@ -8759,14 +8744,12 @@ export type Token_Price_Stddev_Pop_Order_By = { /** 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?: InputMaybe; market_cap?: InputMaybe; price?: InputMaybe; }; @@ -8774,14 +8757,12 @@ export type Token_Price_Stddev_Samp_Order_By = { /** 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?: InputMaybe; market_cap?: InputMaybe; price?: InputMaybe; }; @@ -8789,14 +8770,12 @@ export type Token_Price_Sum_Order_By = { /** 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?: InputMaybe; market_cap?: InputMaybe; price?: InputMaybe; }; @@ -8804,14 +8783,12 @@ export type Token_Price_Var_Pop_Order_By = { /** 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?: InputMaybe; market_cap?: InputMaybe; price?: InputMaybe; }; @@ -8819,14 +8796,12 @@ export type Token_Price_Var_Samp_Order_By = { /** 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?: InputMaybe; market_cap?: InputMaybe; price?: InputMaybe; }; @@ -9123,10 +9098,9 @@ export type Transaction = { memo?: Maybe; messages: Scalars['jsonb']; /** An array relationship */ - messagesByPartitionIdTransactionHash: Array; + messagesByTransactionHashPartitionId: Array; /** An aggregate relationship */ - messagesByPartitionIdTransactionHash_aggregate: Message_Aggregate; - partition_id: Scalars['bigint']; + messagesByTransactionHashPartitionId_aggregate: Message_Aggregate; raw_log?: Maybe; signatures: Scalars['_text']; signer_infos: Scalars['jsonb']; @@ -9153,7 +9127,7 @@ export type TransactionMessagesArgs = { /** columns and relationships of "transaction" */ -export type TransactionMessagesByPartitionIdTransactionHashArgs = { +export type TransactionMessagesByTransactionHashPartitionIdArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; @@ -9163,7 +9137,7 @@ export type TransactionMessagesByPartitionIdTransactionHashArgs = { /** columns and relationships of "transaction" */ -export type TransactionMessagesByPartitionIdTransactionHash_AggregateArgs = { +export type TransactionMessagesByTransactionHashPartitionId_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; @@ -9228,7 +9202,6 @@ export type Transaction_Avg_Fields = { gas_used?: Maybe; gas_wanted?: Maybe; height?: Maybe; - partition_id?: Maybe; }; /** order by avg() on columns of table "transaction" */ @@ -9236,7 +9209,6 @@ export type Transaction_Avg_Order_By = { gas_used?: InputMaybe; gas_wanted?: InputMaybe; height?: InputMaybe; - partition_id?: InputMaybe; }; /** Boolean expression to filter rows from the table "transaction". All fields are combined with a logical 'AND'. */ @@ -9253,8 +9225,7 @@ export type Transaction_Bool_Exp = { logs?: InputMaybe; memo?: InputMaybe; messages?: InputMaybe; - messagesByPartitionIdTransactionHash?: InputMaybe; - partition_id?: InputMaybe; + messagesByTransactionHashPartitionId?: InputMaybe; raw_log?: InputMaybe; signatures?: InputMaybe<_Text_Comparison_Exp>; signer_infos?: InputMaybe; @@ -9269,7 +9240,6 @@ export type Transaction_Max_Fields = { hash?: Maybe; height?: Maybe; memo?: Maybe; - partition_id?: Maybe; raw_log?: Maybe; }; @@ -9280,7 +9250,6 @@ export type Transaction_Max_Order_By = { hash?: InputMaybe; height?: InputMaybe; memo?: InputMaybe; - partition_id?: InputMaybe; raw_log?: InputMaybe; }; @@ -9292,7 +9261,6 @@ export type Transaction_Min_Fields = { hash?: Maybe; height?: Maybe; memo?: Maybe; - partition_id?: Maybe; raw_log?: Maybe; }; @@ -9303,7 +9271,6 @@ export type Transaction_Min_Order_By = { hash?: InputMaybe; height?: InputMaybe; memo?: InputMaybe; - partition_id?: InputMaybe; raw_log?: InputMaybe; }; @@ -9318,8 +9285,7 @@ export type Transaction_Order_By = { logs?: InputMaybe; memo?: InputMaybe; messages?: InputMaybe; - messagesByPartitionIdTransactionHash_aggregate?: InputMaybe; - partition_id?: InputMaybe; + messagesByTransactionHashPartitionId_aggregate?: InputMaybe; raw_log?: InputMaybe; signatures?: InputMaybe; signer_infos?: InputMaybe; @@ -9345,8 +9311,6 @@ export enum Transaction_Select_Column { /** column name */ Messages = 'messages', /** column name */ - PartitionId = 'partition_id', - /** column name */ RawLog = 'raw_log', /** column name */ Signatures = 'signatures', @@ -9362,7 +9326,6 @@ export type Transaction_Stddev_Fields = { gas_used?: Maybe; gas_wanted?: Maybe; height?: Maybe; - partition_id?: Maybe; }; /** order by stddev() on columns of table "transaction" */ @@ -9370,7 +9333,6 @@ export type Transaction_Stddev_Order_By = { gas_used?: InputMaybe; gas_wanted?: InputMaybe; height?: InputMaybe; - partition_id?: InputMaybe; }; /** aggregate stddev_pop on columns */ @@ -9379,7 +9341,6 @@ 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" */ @@ -9387,7 +9348,6 @@ export type Transaction_Stddev_Pop_Order_By = { gas_used?: InputMaybe; gas_wanted?: InputMaybe; height?: InputMaybe; - partition_id?: InputMaybe; }; /** aggregate stddev_samp on columns */ @@ -9396,7 +9356,6 @@ 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" */ @@ -9404,7 +9363,6 @@ export type Transaction_Stddev_Samp_Order_By = { gas_used?: InputMaybe; gas_wanted?: InputMaybe; height?: InputMaybe; - partition_id?: InputMaybe; }; /** aggregate sum on columns */ @@ -9413,7 +9371,6 @@ export type Transaction_Sum_Fields = { gas_used?: Maybe; gas_wanted?: Maybe; height?: Maybe; - partition_id?: Maybe; }; /** order by sum() on columns of table "transaction" */ @@ -9421,7 +9378,6 @@ export type Transaction_Sum_Order_By = { gas_used?: InputMaybe; gas_wanted?: InputMaybe; height?: InputMaybe; - partition_id?: InputMaybe; }; /** aggregate var_pop on columns */ @@ -9430,7 +9386,6 @@ 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" */ @@ -9438,7 +9393,6 @@ export type Transaction_Var_Pop_Order_By = { gas_used?: InputMaybe; gas_wanted?: InputMaybe; height?: InputMaybe; - partition_id?: InputMaybe; }; /** aggregate var_samp on columns */ @@ -9447,7 +9401,6 @@ 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" */ @@ -9455,7 +9408,6 @@ export type Transaction_Var_Samp_Order_By = { gas_used?: InputMaybe; gas_wanted?: InputMaybe; height?: InputMaybe; - partition_id?: InputMaybe; }; /** aggregate variance on columns */ @@ -9464,7 +9416,6 @@ export type Transaction_Variance_Fields = { gas_used?: Maybe; gas_wanted?: Maybe; height?: Maybe; - partition_id?: Maybe; }; /** order by variance() on columns of table "transaction" */ @@ -9472,7 +9423,6 @@ export type Transaction_Variance_Order_By = { gas_used?: InputMaybe; gas_wanted?: InputMaybe; height?: InputMaybe; - partition_id?: InputMaybe; }; /** columns and relationships of "validator" */ @@ -10265,6 +10215,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']; @@ -10283,9 +10234,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; }; @@ -10297,9 +10256,28 @@ export type Validator_Info_Aggregate_FieldsCountArgs = { /** order by aggregate values of table "validator_info" */ export type Validator_Info_Aggregate_Order_By = { + avg?: InputMaybe; count?: InputMaybe; max?: InputMaybe; min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** 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?: InputMaybe; }; /** Boolean expression to filter rows from the table "validator_info". All fields are combined with a logical 'AND'. */ @@ -10309,6 +10287,7 @@ export type Validator_Info_Bool_Exp = { _or?: InputMaybe>; account?: InputMaybe; consensus_address?: InputMaybe; + height?: InputMaybe; max_change_rate?: InputMaybe; max_rate?: InputMaybe; operator_address?: InputMaybe; @@ -10320,6 +10299,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; @@ -10329,6 +10309,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?: InputMaybe; + height?: InputMaybe; max_change_rate?: InputMaybe; max_rate?: InputMaybe; operator_address?: InputMaybe; @@ -10339,6 +10320,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; @@ -10348,6 +10330,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?: InputMaybe; + height?: InputMaybe; max_change_rate?: InputMaybe; max_rate?: InputMaybe; operator_address?: InputMaybe; @@ -10358,6 +10341,7 @@ export type Validator_Info_Min_Order_By = { export type Validator_Info_Order_By = { account?: InputMaybe; consensus_address?: InputMaybe; + height?: InputMaybe; max_change_rate?: InputMaybe; max_rate?: InputMaybe; operator_address?: InputMaybe; @@ -10370,6 +10354,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', @@ -10379,53 +10365,130 @@ export enum Validator_Info_Select_Column { SelfDelegateAddress = 'self_delegate_address' } -/** aggregate max on columns */ -export type Validator_Max_Fields = { - __typename?: 'validator_max_fields'; - consensus_address?: Maybe; - consensus_pubkey?: Maybe; +/** aggregate stddev on columns */ +export type Validator_Info_Stddev_Fields = { + __typename?: 'validator_info_stddev_fields'; + height?: Maybe; }; -/** aggregate min on columns */ -export type Validator_Min_Fields = { - __typename?: 'validator_min_fields'; - consensus_address?: Maybe; - consensus_pubkey?: Maybe; +/** order by stddev() on columns of table "validator_info" */ +export type Validator_Info_Stddev_Order_By = { + height?: InputMaybe; }; -/** Ordering options when selecting data from "validator". */ -export type Validator_Order_By = { - blocks_aggregate?: InputMaybe; - consensus_address?: InputMaybe; - consensus_pubkey?: InputMaybe; - double_sign_votes_aggregate?: InputMaybe; - pre_commits_aggregate?: InputMaybe; - proposal_validator_status_snapshot?: InputMaybe; - proposal_validator_status_snapshots_aggregate?: InputMaybe; - validator_commissions_aggregate?: InputMaybe; - validator_descriptions_aggregate?: InputMaybe; - validator_info?: InputMaybe; - validator_infos_aggregate?: InputMaybe; - validator_signing_infos_aggregate?: InputMaybe; - validator_statuses_aggregate?: InputMaybe; - validator_voting_powers_aggregate?: InputMaybe; +/** aggregate stddev_pop on columns */ +export type Validator_Info_Stddev_Pop_Fields = { + __typename?: 'validator_info_stddev_pop_fields'; + height?: Maybe; }; -/** select columns of table "validator" */ -export enum Validator_Select_Column { - /** column name */ - ConsensusAddress = 'consensus_address', - /** column name */ - ConsensusPubkey = 'consensus_pubkey' -} +/** order by stddev_pop() on columns of table "validator_info" */ +export type Validator_Info_Stddev_Pop_Order_By = { + height?: InputMaybe; +}; -/** columns and relationships of "validator_signing_info" */ -export type Validator_Signing_Info = { - __typename?: 'validator_signing_info'; - height: Scalars['bigint']; - index_offset: Scalars['bigint']; - jailed_until: Scalars['timestamp']; - missed_blocks_counter: Scalars['bigint']; +/** 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?: InputMaybe; +}; + +/** 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?: InputMaybe; +}; + +/** 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?: InputMaybe; +}; + +/** 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?: InputMaybe; +}; + +/** 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?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Validator_Max_Fields = { + __typename?: 'validator_max_fields'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; +}; + +/** aggregate min on columns */ +export type Validator_Min_Fields = { + __typename?: 'validator_min_fields'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; +}; + +/** Ordering options when selecting data from "validator". */ +export type Validator_Order_By = { + blocks_aggregate?: InputMaybe; + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + double_sign_votes_aggregate?: InputMaybe; + pre_commits_aggregate?: InputMaybe; + proposal_validator_status_snapshot?: InputMaybe; + proposal_validator_status_snapshots_aggregate?: InputMaybe; + validator_commissions_aggregate?: InputMaybe; + validator_descriptions_aggregate?: InputMaybe; + validator_info?: InputMaybe; + validator_infos_aggregate?: InputMaybe; + validator_signing_infos_aggregate?: InputMaybe; + validator_statuses_aggregate?: InputMaybe; + validator_voting_powers_aggregate?: InputMaybe; +}; + +/** select columns of table "validator" */ +export enum Validator_Select_Column { + /** column name */ + ConsensusAddress = 'consensus_address', + /** column name */ + ConsensusPubkey = 'consensus_pubkey' +} + +/** columns and relationships of "validator_signing_info" */ +export type Validator_Signing_Info = { + __typename?: 'validator_signing_info'; + height: Scalars['bigint']; + index_offset: Scalars['bigint']; + jailed_until: Scalars['timestamp']; + missed_blocks_counter: Scalars['bigint']; start_height: Scalars['bigint']; tombstoned: Scalars['Boolean']; validator_address: Scalars['String']; @@ -11154,7 +11217,6 @@ export type Vesting_Account = { account: Account; address: Scalars['String']; end_time: Scalars['timestamp']; - id: Scalars['Int']; original_vesting: Scalars['_coin']; start_time?: Maybe; type: Scalars['String']; @@ -11194,17 +11256,9 @@ export type Vesting_Account_Aggregate = { /** aggregate fields of "vesting_account" */ export type Vesting_Account_Aggregate_Fields = { __typename?: 'vesting_account_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; }; @@ -11216,28 +11270,9 @@ export type Vesting_Account_Aggregate_FieldsCountArgs = { /** order by aggregate values of table "vesting_account" */ export type Vesting_Account_Aggregate_Order_By = { - avg?: InputMaybe; count?: InputMaybe; max?: InputMaybe; min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** aggregate avg on columns */ -export type 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?: InputMaybe; }; /** Boolean expression to filter rows from the table "vesting_account". All fields are combined with a logical 'AND'. */ @@ -11248,7 +11283,6 @@ export type Vesting_Account_Bool_Exp = { account?: InputMaybe; address?: InputMaybe; end_time?: InputMaybe; - id?: InputMaybe; original_vesting?: InputMaybe<_Coin_Comparison_Exp>; start_time?: InputMaybe; type?: InputMaybe; @@ -11260,7 +11294,6 @@ export type Vesting_Account_Max_Fields = { __typename?: 'vesting_account_max_fields'; address?: Maybe; end_time?: Maybe; - id?: Maybe; start_time?: Maybe; type?: Maybe; }; @@ -11269,7 +11302,6 @@ export type Vesting_Account_Max_Fields = { export type Vesting_Account_Max_Order_By = { address?: InputMaybe; end_time?: InputMaybe; - id?: InputMaybe; start_time?: InputMaybe; type?: InputMaybe; }; @@ -11279,7 +11311,6 @@ export type Vesting_Account_Min_Fields = { __typename?: 'vesting_account_min_fields'; address?: Maybe; end_time?: Maybe; - id?: Maybe; start_time?: Maybe; type?: Maybe; }; @@ -11288,7 +11319,6 @@ export type Vesting_Account_Min_Fields = { export type Vesting_Account_Min_Order_By = { address?: InputMaybe; end_time?: InputMaybe; - id?: InputMaybe; start_time?: InputMaybe; type?: InputMaybe; }; @@ -11298,343 +11328,1150 @@ export type Vesting_Account_Order_By = { account?: InputMaybe; address?: InputMaybe; end_time?: InputMaybe; - id?: InputMaybe; original_vesting?: InputMaybe; start_time?: InputMaybe; type?: InputMaybe; vesting_periods_aggregate?: InputMaybe; }; -/** select columns of table "vesting_account" */ -export enum Vesting_Account_Select_Column { +/** select columns of table "vesting_account" */ +export enum Vesting_Account_Select_Column { + /** column name */ + Address = 'address', + /** column name */ + EndTime = 'end_time', + /** column name */ + OriginalVesting = 'original_vesting', + /** column name */ + StartTime = 'start_time', + /** column name */ + Type = 'type' +} + +/** columns and relationships of "vesting_period" */ +export type Vesting_Period = { + __typename?: 'vesting_period'; + amount: Scalars['_coin']; + length: Scalars['bigint']; + period_order: Scalars['bigint']; + /** An object relationship */ + vesting_account: Vesting_Account; + vesting_account_id: Scalars['bigint']; +}; + +/** aggregated selection of "vesting_period" */ +export type Vesting_Period_Aggregate = { + __typename?: 'vesting_period_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "vesting_period" */ +export type Vesting_Period_Aggregate_Fields = { + __typename?: 'vesting_period_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 "vesting_period" */ +export type Vesting_Period_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "vesting_period" */ +export type Vesting_Period_Aggregate_Order_By = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type Vesting_Period_Avg_Fields = { + __typename?: 'vesting_period_avg_fields'; + length?: Maybe; + period_order?: Maybe; + vesting_account_id?: Maybe; +}; + +/** order by avg() on columns of table "vesting_period" */ +export type Vesting_Period_Avg_Order_By = { + length?: InputMaybe; + period_order?: InputMaybe; + vesting_account_id?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "vesting_period". All fields are combined with a logical 'AND'. */ +export type Vesting_Period_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + amount?: InputMaybe<_Coin_Comparison_Exp>; + length?: InputMaybe; + period_order?: InputMaybe; + vesting_account?: InputMaybe; + vesting_account_id?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Vesting_Period_Max_Fields = { + __typename?: 'vesting_period_max_fields'; + length?: Maybe; + period_order?: Maybe; + vesting_account_id?: Maybe; +}; + +/** order by max() on columns of table "vesting_period" */ +export type Vesting_Period_Max_Order_By = { + length?: InputMaybe; + period_order?: InputMaybe; + vesting_account_id?: InputMaybe; +}; + +/** aggregate min on columns */ +export type Vesting_Period_Min_Fields = { + __typename?: 'vesting_period_min_fields'; + length?: Maybe; + period_order?: Maybe; + vesting_account_id?: Maybe; +}; + +/** order by min() on columns of table "vesting_period" */ +export type Vesting_Period_Min_Order_By = { + length?: InputMaybe; + period_order?: InputMaybe; + vesting_account_id?: InputMaybe; +}; + +/** Ordering options when selecting data from "vesting_period". */ +export type Vesting_Period_Order_By = { + amount?: InputMaybe; + length?: InputMaybe; + period_order?: InputMaybe; + vesting_account?: InputMaybe; + vesting_account_id?: InputMaybe; +}; + +/** select columns of table "vesting_period" */ +export enum Vesting_Period_Select_Column { + /** column name */ + Amount = 'amount', + /** column name */ + Length = 'length', + /** column name */ + PeriodOrder = 'period_order', + /** column name */ + VestingAccountId = 'vesting_account_id' +} + +/** aggregate stddev on columns */ +export type Vesting_Period_Stddev_Fields = { + __typename?: 'vesting_period_stddev_fields'; + length?: Maybe; + period_order?: Maybe; + vesting_account_id?: Maybe; +}; + +/** order by stddev() on columns of table "vesting_period" */ +export type Vesting_Period_Stddev_Order_By = { + length?: InputMaybe; + period_order?: InputMaybe; + vesting_account_id?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type Vesting_Period_Stddev_Pop_Fields = { + __typename?: 'vesting_period_stddev_pop_fields'; + length?: Maybe; + period_order?: Maybe; + vesting_account_id?: Maybe; +}; + +/** order by stddev_pop() on columns of table "vesting_period" */ +export type Vesting_Period_Stddev_Pop_Order_By = { + length?: InputMaybe; + period_order?: InputMaybe; + vesting_account_id?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type Vesting_Period_Stddev_Samp_Fields = { + __typename?: 'vesting_period_stddev_samp_fields'; + length?: Maybe; + period_order?: Maybe; + vesting_account_id?: Maybe; +}; + +/** order by stddev_samp() on columns of table "vesting_period" */ +export type Vesting_Period_Stddev_Samp_Order_By = { + length?: InputMaybe; + period_order?: InputMaybe; + vesting_account_id?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type Vesting_Period_Sum_Fields = { + __typename?: 'vesting_period_sum_fields'; + length?: Maybe; + period_order?: Maybe; + vesting_account_id?: Maybe; +}; + +/** order by sum() on columns of table "vesting_period" */ +export type Vesting_Period_Sum_Order_By = { + length?: InputMaybe; + period_order?: InputMaybe; + vesting_account_id?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type Vesting_Period_Var_Pop_Fields = { + __typename?: 'vesting_period_var_pop_fields'; + length?: Maybe; + period_order?: Maybe; + vesting_account_id?: Maybe; +}; + +/** order by var_pop() on columns of table "vesting_period" */ +export type Vesting_Period_Var_Pop_Order_By = { + length?: InputMaybe; + period_order?: InputMaybe; + vesting_account_id?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type Vesting_Period_Var_Samp_Fields = { + __typename?: 'vesting_period_var_samp_fields'; + length?: Maybe; + period_order?: Maybe; + vesting_account_id?: Maybe; +}; + +/** order by var_samp() on columns of table "vesting_period" */ +export type Vesting_Period_Var_Samp_Order_By = { + length?: InputMaybe; + period_order?: InputMaybe; + vesting_account_id?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type Vesting_Period_Variance_Fields = { + __typename?: 'vesting_period_variance_fields'; + length?: Maybe; + period_order?: Maybe; + vesting_account_id?: Maybe; +}; + +/** order by variance() on columns of table "vesting_period" */ +export type Vesting_Period_Variance_Order_By = { + length?: InputMaybe; + period_order?: InputMaybe; + vesting_account_id?: InputMaybe; +}; + +/** columns and relationships of "wasm_code" */ +export type Wasm_Code = { + __typename?: 'wasm_code'; + byte_code: Scalars['bytea']; + code_id: Scalars['bigint']; + height: Scalars['bigint']; + instantiate_permission?: Maybe; + sender?: Maybe; + /** An array relationship */ + wasm_contracts: Array; + /** An aggregate relationship */ + wasm_contracts_aggregate: Wasm_Contract_Aggregate; +}; + + +/** columns and relationships of "wasm_code" */ +export type Wasm_CodeWasm_ContractsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "wasm_code" */ +export type Wasm_CodeWasm_Contracts_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "wasm_code" */ +export type Wasm_Code_Aggregate = { + __typename?: 'wasm_code_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "wasm_code" */ +export type Wasm_Code_Aggregate_Fields = { + __typename?: 'wasm_code_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 "wasm_code" */ +export type Wasm_Code_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type Wasm_Code_Avg_Fields = { + __typename?: 'wasm_code_avg_fields'; + code_id?: Maybe; + height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "wasm_code". All fields are combined with a logical 'AND'. */ +export type Wasm_Code_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + byte_code?: InputMaybe; + code_id?: InputMaybe; + height?: InputMaybe; + instantiate_permission?: InputMaybe; + sender?: InputMaybe; + wasm_contracts?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Wasm_Code_Max_Fields = { + __typename?: 'wasm_code_max_fields'; + code_id?: Maybe; + height?: Maybe; + sender?: Maybe; +}; + +/** aggregate min on columns */ +export type Wasm_Code_Min_Fields = { + __typename?: 'wasm_code_min_fields'; + code_id?: Maybe; + height?: Maybe; + sender?: Maybe; +}; + +/** Ordering options when selecting data from "wasm_code". */ +export type Wasm_Code_Order_By = { + byte_code?: InputMaybe; + code_id?: InputMaybe; + height?: InputMaybe; + instantiate_permission?: InputMaybe; + sender?: InputMaybe; + wasm_contracts_aggregate?: InputMaybe; +}; + +/** select columns of table "wasm_code" */ +export enum Wasm_Code_Select_Column { + /** column name */ + ByteCode = 'byte_code', + /** column name */ + CodeId = 'code_id', + /** column name */ + Height = 'height', + /** column name */ + InstantiatePermission = 'instantiate_permission', + /** column name */ + Sender = 'sender' +} + +/** aggregate stddev on columns */ +export type Wasm_Code_Stddev_Fields = { + __typename?: 'wasm_code_stddev_fields'; + code_id?: Maybe; + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Wasm_Code_Stddev_Pop_Fields = { + __typename?: 'wasm_code_stddev_pop_fields'; + code_id?: Maybe; + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Wasm_Code_Stddev_Samp_Fields = { + __typename?: 'wasm_code_stddev_samp_fields'; + code_id?: Maybe; + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Wasm_Code_Sum_Fields = { + __typename?: 'wasm_code_sum_fields'; + code_id?: Maybe; + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Wasm_Code_Var_Pop_Fields = { + __typename?: 'wasm_code_var_pop_fields'; + code_id?: Maybe; + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Wasm_Code_Var_Samp_Fields = { + __typename?: 'wasm_code_var_samp_fields'; + code_id?: Maybe; + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type Wasm_Code_Variance_Fields = { + __typename?: 'wasm_code_variance_fields'; + code_id?: Maybe; + height?: Maybe; +}; + +/** columns and relationships of "wasm_contract" */ +export type Wasm_Contract = { + __typename?: 'wasm_contract'; + /** An object relationship */ + account: Account; + admin?: Maybe; + code_id: Scalars['bigint']; + contract_address: Scalars['String']; + contract_info_extension?: Maybe; + contract_states: Scalars['jsonb']; + creator: Scalars['String']; + data?: Maybe; + funds: Scalars['_coin']; + height: Scalars['bigint']; + instantiated_at: Scalars['timestamp']; + label?: Maybe; + raw_contract_message: Scalars['jsonb']; + sender?: Maybe; + /** An object relationship */ + wasm_code: Wasm_Code; + /** An array relationship */ + wasm_execute_contracts: Array; + /** An aggregate relationship */ + wasm_execute_contracts_aggregate: Wasm_Execute_Contract_Aggregate; +}; + + +/** columns and relationships of "wasm_contract" */ +export type Wasm_ContractContract_StatesArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "wasm_contract" */ +export type Wasm_ContractRaw_Contract_MessageArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "wasm_contract" */ +export type Wasm_ContractWasm_Execute_ContractsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "wasm_contract" */ +export type Wasm_ContractWasm_Execute_Contracts_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "wasm_contract" */ +export type Wasm_Contract_Aggregate = { + __typename?: 'wasm_contract_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "wasm_contract" */ +export type Wasm_Contract_Aggregate_Fields = { + __typename?: 'wasm_contract_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 "wasm_contract" */ +export type Wasm_Contract_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "wasm_contract" */ +export type Wasm_Contract_Aggregate_Order_By = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type Wasm_Contract_Avg_Fields = { + __typename?: 'wasm_contract_avg_fields'; + code_id?: Maybe; + height?: Maybe; +}; + +/** order by avg() on columns of table "wasm_contract" */ +export type Wasm_Contract_Avg_Order_By = { + code_id?: InputMaybe; + height?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "wasm_contract". All fields are combined with a logical 'AND'. */ +export type Wasm_Contract_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account?: InputMaybe; + admin?: InputMaybe; + code_id?: InputMaybe; + contract_address?: InputMaybe; + contract_info_extension?: InputMaybe; + contract_states?: InputMaybe; + creator?: InputMaybe; + data?: InputMaybe; + funds?: InputMaybe<_Coin_Comparison_Exp>; + height?: InputMaybe; + instantiated_at?: InputMaybe; + label?: InputMaybe; + raw_contract_message?: InputMaybe; + sender?: InputMaybe; + wasm_code?: InputMaybe; + wasm_execute_contracts?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Wasm_Contract_Max_Fields = { + __typename?: 'wasm_contract_max_fields'; + admin?: Maybe; + code_id?: Maybe; + contract_address?: Maybe; + contract_info_extension?: Maybe; + creator?: Maybe; + data?: Maybe; + height?: Maybe; + instantiated_at?: Maybe; + label?: Maybe; + sender?: Maybe; +}; + +/** order by max() on columns of table "wasm_contract" */ +export type Wasm_Contract_Max_Order_By = { + admin?: InputMaybe; + code_id?: InputMaybe; + contract_address?: InputMaybe; + contract_info_extension?: InputMaybe; + creator?: InputMaybe; + data?: InputMaybe; + height?: InputMaybe; + instantiated_at?: InputMaybe; + label?: InputMaybe; + sender?: InputMaybe; +}; + +/** aggregate min on columns */ +export type Wasm_Contract_Min_Fields = { + __typename?: 'wasm_contract_min_fields'; + admin?: Maybe; + code_id?: Maybe; + contract_address?: Maybe; + contract_info_extension?: Maybe; + creator?: Maybe; + data?: Maybe; + height?: Maybe; + instantiated_at?: Maybe; + label?: Maybe; + sender?: Maybe; +}; + +/** order by min() on columns of table "wasm_contract" */ +export type Wasm_Contract_Min_Order_By = { + admin?: InputMaybe; + code_id?: InputMaybe; + contract_address?: InputMaybe; + contract_info_extension?: InputMaybe; + creator?: InputMaybe; + data?: InputMaybe; + height?: InputMaybe; + instantiated_at?: InputMaybe; + label?: InputMaybe; + sender?: InputMaybe; +}; + +/** Ordering options when selecting data from "wasm_contract". */ +export type Wasm_Contract_Order_By = { + account?: InputMaybe; + admin?: InputMaybe; + code_id?: InputMaybe; + contract_address?: InputMaybe; + contract_info_extension?: InputMaybe; + contract_states?: InputMaybe; + creator?: InputMaybe; + data?: InputMaybe; + funds?: InputMaybe; + height?: InputMaybe; + instantiated_at?: InputMaybe; + label?: InputMaybe; + raw_contract_message?: InputMaybe; + sender?: InputMaybe; + wasm_code?: InputMaybe; + wasm_execute_contracts_aggregate?: InputMaybe; +}; + +/** select columns of table "wasm_contract" */ +export enum Wasm_Contract_Select_Column { + /** column name */ + Admin = 'admin', + /** column name */ + CodeId = 'code_id', + /** column name */ + ContractAddress = 'contract_address', + /** column name */ + ContractInfoExtension = 'contract_info_extension', + /** column name */ + ContractStates = 'contract_states', + /** column name */ + Creator = 'creator', + /** column name */ + Data = 'data', + /** column name */ + Funds = 'funds', + /** column name */ + Height = 'height', + /** column name */ + InstantiatedAt = 'instantiated_at', + /** column name */ + Label = 'label', + /** column name */ + RawContractMessage = 'raw_contract_message', + /** column name */ + Sender = 'sender' +} + +/** aggregate stddev on columns */ +export type Wasm_Contract_Stddev_Fields = { + __typename?: 'wasm_contract_stddev_fields'; + code_id?: Maybe; + height?: Maybe; +}; + +/** order by stddev() on columns of table "wasm_contract" */ +export type Wasm_Contract_Stddev_Order_By = { + code_id?: InputMaybe; + height?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type Wasm_Contract_Stddev_Pop_Fields = { + __typename?: 'wasm_contract_stddev_pop_fields'; + code_id?: Maybe; + height?: Maybe; +}; + +/** order by stddev_pop() on columns of table "wasm_contract" */ +export type Wasm_Contract_Stddev_Pop_Order_By = { + code_id?: InputMaybe; + height?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type Wasm_Contract_Stddev_Samp_Fields = { + __typename?: 'wasm_contract_stddev_samp_fields'; + code_id?: Maybe; + height?: Maybe; +}; + +/** order by stddev_samp() on columns of table "wasm_contract" */ +export type Wasm_Contract_Stddev_Samp_Order_By = { + code_id?: InputMaybe; + height?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type Wasm_Contract_Sum_Fields = { + __typename?: 'wasm_contract_sum_fields'; + code_id?: Maybe; + height?: Maybe; +}; + +/** order by sum() on columns of table "wasm_contract" */ +export type Wasm_Contract_Sum_Order_By = { + code_id?: InputMaybe; + height?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type Wasm_Contract_Var_Pop_Fields = { + __typename?: 'wasm_contract_var_pop_fields'; + code_id?: Maybe; + height?: Maybe; +}; + +/** order by var_pop() on columns of table "wasm_contract" */ +export type Wasm_Contract_Var_Pop_Order_By = { + code_id?: InputMaybe; + height?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type Wasm_Contract_Var_Samp_Fields = { + __typename?: 'wasm_contract_var_samp_fields'; + code_id?: Maybe; + height?: Maybe; +}; + +/** order by var_samp() on columns of table "wasm_contract" */ +export type Wasm_Contract_Var_Samp_Order_By = { + code_id?: InputMaybe; + height?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type Wasm_Contract_Variance_Fields = { + __typename?: 'wasm_contract_variance_fields'; + code_id?: Maybe; + height?: Maybe; +}; + +/** order by variance() on columns of table "wasm_contract" */ +export type Wasm_Contract_Variance_Order_By = { + code_id?: InputMaybe; + height?: InputMaybe; +}; + +/** columns and relationships of "wasm_execute_contract" */ +export type Wasm_Execute_Contract = { + __typename?: 'wasm_execute_contract'; + contract_address: Scalars['String']; + data?: Maybe; + executed_at: Scalars['timestamp']; + funds: Scalars['_coin']; + height: Scalars['bigint']; + raw_contract_message: Scalars['jsonb']; + sender: Scalars['String']; + /** An object relationship */ + wasm_contract: Wasm_Contract; +}; + + +/** columns and relationships of "wasm_execute_contract" */ +export type Wasm_Execute_ContractRaw_Contract_MessageArgs = { + path?: InputMaybe; +}; + +/** aggregated selection of "wasm_execute_contract" */ +export type Wasm_Execute_Contract_Aggregate = { + __typename?: 'wasm_execute_contract_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "wasm_execute_contract" */ +export type Wasm_Execute_Contract_Aggregate_Fields = { + __typename?: 'wasm_execute_contract_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 "wasm_execute_contract" */ +export type Wasm_Execute_Contract_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "wasm_execute_contract" */ +export type Wasm_Execute_Contract_Aggregate_Order_By = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type Wasm_Execute_Contract_Avg_Fields = { + __typename?: 'wasm_execute_contract_avg_fields'; + height?: Maybe; +}; + +/** order by avg() on columns of table "wasm_execute_contract" */ +export type Wasm_Execute_Contract_Avg_Order_By = { + height?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "wasm_execute_contract". All fields are combined with a logical 'AND'. */ +export type Wasm_Execute_Contract_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + contract_address?: InputMaybe; + data?: InputMaybe; + executed_at?: InputMaybe; + funds?: InputMaybe<_Coin_Comparison_Exp>; + height?: InputMaybe; + raw_contract_message?: InputMaybe; + sender?: InputMaybe; + wasm_contract?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Wasm_Execute_Contract_Max_Fields = { + __typename?: 'wasm_execute_contract_max_fields'; + contract_address?: Maybe; + data?: Maybe; + executed_at?: Maybe; + height?: Maybe; + sender?: Maybe; +}; + +/** order by max() on columns of table "wasm_execute_contract" */ +export type Wasm_Execute_Contract_Max_Order_By = { + contract_address?: InputMaybe; + data?: InputMaybe; + executed_at?: InputMaybe; + height?: InputMaybe; + sender?: InputMaybe; +}; + +/** aggregate min on columns */ +export type Wasm_Execute_Contract_Min_Fields = { + __typename?: 'wasm_execute_contract_min_fields'; + contract_address?: Maybe; + data?: Maybe; + executed_at?: Maybe; + height?: Maybe; + sender?: Maybe; +}; + +/** order by min() on columns of table "wasm_execute_contract" */ +export type Wasm_Execute_Contract_Min_Order_By = { + contract_address?: InputMaybe; + data?: InputMaybe; + executed_at?: InputMaybe; + height?: InputMaybe; + sender?: InputMaybe; +}; + +/** Ordering options when selecting data from "wasm_execute_contract". */ +export type Wasm_Execute_Contract_Order_By = { + contract_address?: InputMaybe; + data?: InputMaybe; + executed_at?: InputMaybe; + funds?: InputMaybe; + height?: InputMaybe; + raw_contract_message?: InputMaybe; + sender?: InputMaybe; + wasm_contract?: InputMaybe; +}; + +/** select columns of table "wasm_execute_contract" */ +export enum Wasm_Execute_Contract_Select_Column { /** column name */ - Address = 'address', + ContractAddress = 'contract_address', /** column name */ - EndTime = 'end_time', + Data = 'data', /** column name */ - Id = 'id', + ExecutedAt = 'executed_at', /** column name */ - OriginalVesting = 'original_vesting', + Funds = 'funds', /** column name */ - StartTime = 'start_time', + Height = 'height', /** column name */ - Type = 'type' + RawContractMessage = 'raw_contract_message', + /** column name */ + Sender = 'sender' } /** aggregate stddev on columns */ -export type Vesting_Account_Stddev_Fields = { - __typename?: 'vesting_account_stddev_fields'; - id?: Maybe; +export type Wasm_Execute_Contract_Stddev_Fields = { + __typename?: 'wasm_execute_contract_stddev_fields'; + height?: Maybe; }; -/** order by stddev() on columns of table "vesting_account" */ -export type Vesting_Account_Stddev_Order_By = { - id?: InputMaybe; +/** order by stddev() on columns of table "wasm_execute_contract" */ +export type Wasm_Execute_Contract_Stddev_Order_By = { + height?: InputMaybe; }; /** aggregate stddev_pop on columns */ -export type Vesting_Account_Stddev_Pop_Fields = { - __typename?: 'vesting_account_stddev_pop_fields'; - id?: Maybe; +export type Wasm_Execute_Contract_Stddev_Pop_Fields = { + __typename?: 'wasm_execute_contract_stddev_pop_fields'; + height?: Maybe; }; -/** order by stddev_pop() on columns of table "vesting_account" */ -export type Vesting_Account_Stddev_Pop_Order_By = { - id?: InputMaybe; +/** order by stddev_pop() on columns of table "wasm_execute_contract" */ +export type Wasm_Execute_Contract_Stddev_Pop_Order_By = { + height?: InputMaybe; }; /** aggregate stddev_samp on columns */ -export type Vesting_Account_Stddev_Samp_Fields = { - __typename?: 'vesting_account_stddev_samp_fields'; - id?: Maybe; +export type Wasm_Execute_Contract_Stddev_Samp_Fields = { + __typename?: 'wasm_execute_contract_stddev_samp_fields'; + height?: Maybe; }; -/** order by stddev_samp() on columns of table "vesting_account" */ -export type Vesting_Account_Stddev_Samp_Order_By = { - id?: InputMaybe; +/** order by stddev_samp() on columns of table "wasm_execute_contract" */ +export type Wasm_Execute_Contract_Stddev_Samp_Order_By = { + height?: InputMaybe; }; /** aggregate sum on columns */ -export type Vesting_Account_Sum_Fields = { - __typename?: 'vesting_account_sum_fields'; - id?: Maybe; +export type Wasm_Execute_Contract_Sum_Fields = { + __typename?: 'wasm_execute_contract_sum_fields'; + height?: Maybe; }; -/** order by sum() on columns of table "vesting_account" */ -export type Vesting_Account_Sum_Order_By = { - id?: InputMaybe; +/** order by sum() on columns of table "wasm_execute_contract" */ +export type Wasm_Execute_Contract_Sum_Order_By = { + height?: InputMaybe; }; /** aggregate var_pop on columns */ -export type Vesting_Account_Var_Pop_Fields = { - __typename?: 'vesting_account_var_pop_fields'; - id?: Maybe; +export type Wasm_Execute_Contract_Var_Pop_Fields = { + __typename?: 'wasm_execute_contract_var_pop_fields'; + height?: Maybe; }; -/** order by var_pop() on columns of table "vesting_account" */ -export type Vesting_Account_Var_Pop_Order_By = { - id?: InputMaybe; +/** order by var_pop() on columns of table "wasm_execute_contract" */ +export type Wasm_Execute_Contract_Var_Pop_Order_By = { + height?: InputMaybe; }; /** aggregate var_samp on columns */ -export type Vesting_Account_Var_Samp_Fields = { - __typename?: 'vesting_account_var_samp_fields'; - id?: Maybe; +export type Wasm_Execute_Contract_Var_Samp_Fields = { + __typename?: 'wasm_execute_contract_var_samp_fields'; + height?: Maybe; }; -/** order by var_samp() on columns of table "vesting_account" */ -export type Vesting_Account_Var_Samp_Order_By = { - id?: InputMaybe; +/** order by var_samp() on columns of table "wasm_execute_contract" */ +export type Wasm_Execute_Contract_Var_Samp_Order_By = { + height?: InputMaybe; }; /** aggregate variance on columns */ -export type Vesting_Account_Variance_Fields = { - __typename?: 'vesting_account_variance_fields'; - id?: Maybe; +export type Wasm_Execute_Contract_Variance_Fields = { + __typename?: 'wasm_execute_contract_variance_fields'; + height?: Maybe; }; -/** order by variance() on columns of table "vesting_account" */ -export type Vesting_Account_Variance_Order_By = { - id?: InputMaybe; +/** order by variance() on columns of table "wasm_execute_contract" */ +export type Wasm_Execute_Contract_Variance_Order_By = { + height?: InputMaybe; }; -/** columns and relationships of "vesting_period" */ -export type Vesting_Period = { - __typename?: 'vesting_period'; - amount: Scalars['_coin']; - length: Scalars['bigint']; - period_order: Scalars['bigint']; - /** An object relationship */ - vesting_account: Vesting_Account; - vesting_account_id: Scalars['bigint']; +/** columns and relationships of "wasm_params" */ +export type Wasm_Params = { + __typename?: 'wasm_params'; + code_upload_access: Scalars['access_config']; + height: Scalars['bigint']; + instantiate_default_permission: Scalars['Int']; + one_row_id: Scalars['Boolean']; }; -/** aggregated selection of "vesting_period" */ -export type Vesting_Period_Aggregate = { - __typename?: 'vesting_period_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "wasm_params" */ +export type Wasm_Params_Aggregate = { + __typename?: 'wasm_params_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "vesting_period" */ -export type Vesting_Period_Aggregate_Fields = { - __typename?: 'vesting_period_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "wasm_params" */ +export type Wasm_Params_Aggregate_Fields = { + __typename?: 'wasm_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 "vesting_period" */ -export type Vesting_Period_Aggregate_FieldsCountArgs = { - columns?: InputMaybe>; +/** aggregate fields of "wasm_params" */ +export type Wasm_Params_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; -/** order by aggregate values of table "vesting_period" */ -export type Vesting_Period_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - /** aggregate avg on columns */ -export type Vesting_Period_Avg_Fields = { - __typename?: 'vesting_period_avg_fields'; - length?: Maybe; - period_order?: Maybe; - vesting_account_id?: Maybe; -}; - -/** order by avg() on columns of table "vesting_period" */ -export type Vesting_Period_Avg_Order_By = { - length?: InputMaybe; - period_order?: InputMaybe; - vesting_account_id?: InputMaybe; +export type Wasm_Params_Avg_Fields = { + __typename?: 'wasm_params_avg_fields'; + height?: Maybe; + instantiate_default_permission?: Maybe; }; -/** Boolean expression to filter rows from the table "vesting_period". All fields are combined with a logical 'AND'. */ -export type Vesting_Period_Bool_Exp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - amount?: InputMaybe<_Coin_Comparison_Exp>; - length?: InputMaybe; - period_order?: InputMaybe; - vesting_account?: InputMaybe; - vesting_account_id?: InputMaybe; +/** Boolean expression to filter rows from the table "wasm_params". All fields are combined with a logical 'AND'. */ +export type Wasm_Params_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + code_upload_access?: InputMaybe; + height?: InputMaybe; + instantiate_default_permission?: InputMaybe; + one_row_id?: InputMaybe; }; /** aggregate max on columns */ -export type Vesting_Period_Max_Fields = { - __typename?: 'vesting_period_max_fields'; - length?: Maybe; - period_order?: Maybe; - vesting_account_id?: Maybe; -}; - -/** order by max() on columns of table "vesting_period" */ -export type Vesting_Period_Max_Order_By = { - length?: InputMaybe; - period_order?: InputMaybe; - vesting_account_id?: InputMaybe; +export type Wasm_Params_Max_Fields = { + __typename?: 'wasm_params_max_fields'; + height?: Maybe; + instantiate_default_permission?: Maybe; }; /** aggregate min on columns */ -export type Vesting_Period_Min_Fields = { - __typename?: 'vesting_period_min_fields'; - length?: Maybe; - period_order?: Maybe; - vesting_account_id?: Maybe; -}; - -/** order by min() on columns of table "vesting_period" */ -export type Vesting_Period_Min_Order_By = { - length?: InputMaybe; - period_order?: InputMaybe; - vesting_account_id?: InputMaybe; +export type Wasm_Params_Min_Fields = { + __typename?: 'wasm_params_min_fields'; + height?: Maybe; + instantiate_default_permission?: Maybe; }; -/** Ordering options when selecting data from "vesting_period". */ -export type Vesting_Period_Order_By = { - amount?: InputMaybe; - length?: InputMaybe; - period_order?: InputMaybe; - vesting_account?: InputMaybe; - vesting_account_id?: InputMaybe; +/** Ordering options when selecting data from "wasm_params". */ +export type Wasm_Params_Order_By = { + code_upload_access?: InputMaybe; + height?: InputMaybe; + instantiate_default_permission?: InputMaybe; + one_row_id?: InputMaybe; }; -/** select columns of table "vesting_period" */ -export enum Vesting_Period_Select_Column { +/** select columns of table "wasm_params" */ +export enum Wasm_Params_Select_Column { /** column name */ - Amount = 'amount', + CodeUploadAccess = 'code_upload_access', /** column name */ - Length = 'length', + Height = 'height', /** column name */ - PeriodOrder = 'period_order', + InstantiateDefaultPermission = 'instantiate_default_permission', /** column name */ - VestingAccountId = 'vesting_account_id' + OneRowId = 'one_row_id' } /** aggregate stddev on columns */ -export type Vesting_Period_Stddev_Fields = { - __typename?: 'vesting_period_stddev_fields'; - length?: Maybe; - period_order?: Maybe; - vesting_account_id?: Maybe; -}; - -/** order by stddev() on columns of table "vesting_period" */ -export type Vesting_Period_Stddev_Order_By = { - length?: InputMaybe; - period_order?: InputMaybe; - vesting_account_id?: InputMaybe; +export type Wasm_Params_Stddev_Fields = { + __typename?: 'wasm_params_stddev_fields'; + height?: Maybe; + instantiate_default_permission?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Vesting_Period_Stddev_Pop_Fields = { - __typename?: 'vesting_period_stddev_pop_fields'; - length?: Maybe; - period_order?: Maybe; - vesting_account_id?: Maybe; -}; - -/** order by stddev_pop() on columns of table "vesting_period" */ -export type Vesting_Period_Stddev_Pop_Order_By = { - length?: InputMaybe; - period_order?: InputMaybe; - vesting_account_id?: InputMaybe; +export type Wasm_Params_Stddev_Pop_Fields = { + __typename?: 'wasm_params_stddev_pop_fields'; + height?: Maybe; + instantiate_default_permission?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Vesting_Period_Stddev_Samp_Fields = { - __typename?: 'vesting_period_stddev_samp_fields'; - length?: Maybe; - period_order?: Maybe; - vesting_account_id?: Maybe; -}; - -/** order by stddev_samp() on columns of table "vesting_period" */ -export type Vesting_Period_Stddev_Samp_Order_By = { - length?: InputMaybe; - period_order?: InputMaybe; - vesting_account_id?: InputMaybe; +export type Wasm_Params_Stddev_Samp_Fields = { + __typename?: 'wasm_params_stddev_samp_fields'; + height?: Maybe; + instantiate_default_permission?: Maybe; }; /** aggregate sum on columns */ -export type Vesting_Period_Sum_Fields = { - __typename?: 'vesting_period_sum_fields'; - length?: Maybe; - period_order?: Maybe; - vesting_account_id?: Maybe; -}; - -/** order by sum() on columns of table "vesting_period" */ -export type Vesting_Period_Sum_Order_By = { - length?: InputMaybe; - period_order?: InputMaybe; - vesting_account_id?: InputMaybe; +export type Wasm_Params_Sum_Fields = { + __typename?: 'wasm_params_sum_fields'; + height?: Maybe; + instantiate_default_permission?: Maybe; }; /** aggregate var_pop on columns */ -export type Vesting_Period_Var_Pop_Fields = { - __typename?: 'vesting_period_var_pop_fields'; - length?: Maybe; - period_order?: Maybe; - vesting_account_id?: Maybe; -}; - -/** order by var_pop() on columns of table "vesting_period" */ -export type Vesting_Period_Var_Pop_Order_By = { - length?: InputMaybe; - period_order?: InputMaybe; - vesting_account_id?: InputMaybe; +export type Wasm_Params_Var_Pop_Fields = { + __typename?: 'wasm_params_var_pop_fields'; + height?: Maybe; + instantiate_default_permission?: Maybe; }; /** aggregate var_samp on columns */ -export type Vesting_Period_Var_Samp_Fields = { - __typename?: 'vesting_period_var_samp_fields'; - length?: Maybe; - period_order?: Maybe; - vesting_account_id?: Maybe; -}; - -/** order by var_samp() on columns of table "vesting_period" */ -export type Vesting_Period_Var_Samp_Order_By = { - length?: InputMaybe; - period_order?: InputMaybe; - vesting_account_id?: InputMaybe; +export type Wasm_Params_Var_Samp_Fields = { + __typename?: 'wasm_params_var_samp_fields'; + height?: Maybe; + instantiate_default_permission?: Maybe; }; /** aggregate variance on columns */ -export type Vesting_Period_Variance_Fields = { - __typename?: 'vesting_period_variance_fields'; - length?: Maybe; - period_order?: Maybe; - vesting_account_id?: Maybe; -}; - -/** order by variance() on columns of table "vesting_period" */ -export type Vesting_Period_Variance_Order_By = { - length?: InputMaybe; - period_order?: InputMaybe; - vesting_account_id?: InputMaybe; +export type Wasm_Params_Variance_Fields = { + __typename?: 'wasm_params_variance_fields'; + height?: Maybe; + instantiate_default_permission?: Maybe; }; export type AccountCommissionQueryVariables = Exact<{ @@ -11787,14 +12624,14 @@ export type OnlineVotingPowerQuery = { activeTotal: { __typename?: 'validator_st export type ParamsQueryVariables = Exact<{ [key: string]: never; }>; -export type ParamsQuery = { stakingParams: Array<{ __typename?: 'staking_params', params: any }>, slashingParams: Array<{ __typename?: 'slashing_params', params: any }>, mintParams: Array<{ __typename?: 'mint_params', params: any }>, distributionParams: Array<{ __typename?: 'distribution_params', params: any }>, govParams: Array<{ __typename?: 'gov_params', depositParams: any, tallyParams: any, votingParams: any }> }; +export type ParamsQuery = { stakingParams: Array<{ __typename?: 'staking_params', params: any }>, slashingParams: Array<{ __typename?: 'slashing_params', params: any }>, mintParams: Array<{ __typename?: 'mint_params', params: any }>, distributionParams: Array<{ __typename?: 'distribution_params', params: any }>, govParams: Array<{ __typename?: 'gov_params', params: any, height: any }> }; export type ProposalDetailsQueryVariables = Exact<{ proposalId?: InputMaybe; }>; -export type ProposalDetailsQuery = { proposal: Array<{ __typename?: 'proposal', title: string, description: string, status?: string | null, content: any, proposer: string, proposalId: number, submitTime: any, proposalType: string, depositEndTime?: any | null, votingStartTime?: any | null, votingEndTime?: any | null }> }; +export type ProposalDetailsQuery = { proposal: Array<{ __typename?: 'proposal', title: string, description: string, status?: string | null, content: any, metadata?: string | null, summary?: string | null, proposer: string, proposalId: number, submitTime: any, depositEndTime?: any | null, votingStartTime?: any | null, votingEndTime?: any | null }> }; export type ProposalDetailsTallyQueryVariables = Exact<{ proposalId?: InputMaybe; @@ -11830,7 +12667,7 @@ export type TokenPriceListenerSubscriptionVariables = Exact<{ }>; -export type TokenPriceListenerSubscription = { tokenPrice: Array<{ __typename?: 'token_price', id: number, price: any, timestamp: any, marketCap: any, unitName: string }> }; +export type TokenPriceListenerSubscription = { tokenPrice: Array<{ __typename?: 'token_price', price: any, timestamp: any, marketCap: any, unitName: string }> }; export type TokenPriceHistoryQueryVariables = Exact<{ denom?: InputMaybe; @@ -11924,11 +12761,6 @@ export type ValidatorsQueryVariables = Exact<{ [key: string]: never; }>; export type ValidatorsQuery = { stakingPool: Array<{ __typename?: 'staking_pool', bondedTokens: string }>, validator: Array<{ __typename?: 'validator', validatorStatuses: Array<{ __typename?: 'validator_status', status: number, jailed: boolean, height: any }>, validatorSigningInfos: Array<{ __typename?: 'validator_signing_info', tombstoned: boolean, missedBlocksCounter: any }>, validatorInfo?: { __typename?: 'validator_info', operatorAddress: string, selfDelegateAddress?: string | null } | null, validatorVotingPowers: Array<{ __typename?: 'validator_voting_power', votingPower: any }>, validatorCommissions: Array<{ __typename?: 'validator_commission', commission: any }> }>, slashingParams: Array<{ __typename?: 'slashing_params', params: any }> }; -export type ValidatorsAddressListQueryVariables = Exact<{ [key: string]: never; }>; - - -export type ValidatorsAddressListQuery = { validator: Array<{ __typename?: 'validator', validatorInfo?: { __typename?: 'validator_info', operatorAddress: string, selfDelegateAddress?: string | null, consensusAddress: string } | null, validatorDescriptions: Array<{ __typename?: 'validator_description', moniker?: string | null, identity?: string | null, avatarUrl?: string | null }> }> }; - export type ValidatorAddressesQueryVariables = Exact<{ [key: string]: never; }>; @@ -12789,9 +13621,8 @@ export const ParamsDocument = gql` params } govParams: gov_params(limit: 1, order_by: {height: desc}) { - depositParams: deposit_params - tallyParams: tally_params - votingParams: voting_params + params + height } } `; @@ -12832,7 +13663,8 @@ export const ProposalDetailsDocument = gql` content proposalId: id submitTime: submit_time - proposalType: proposal_type + metadata + summary depositEndTime: deposit_end_time votingStartTime: voting_start_time votingEndTime: voting_end_time @@ -12883,7 +13715,7 @@ export const ProposalDetailsTallyDocument = gql` bondedTokens: bonded_tokens } quorum: gov_params(limit: 1, order_by: {height: desc}) { - tallyParams: tally_params + tallyParams: params } } `; @@ -13052,7 +13884,6 @@ export type ProposalsQueryResult = Apollo.QueryResult; + maxDepositPeriod: number; + }; + + public tallyParams: { + quorum: string; + threshold: string; + vetoThreshold: string; + }; + + public votingParams: { + votingPeriod: number; + }; + + constructor(payload: object) { + this.depositParams = R.pathOr( + { + minDeposit: [], + maxDepositPeriod: 0, + }, + ['depositParams'], + payload + ); + this.tallyParams = R.pathOr( + { + quorum: '', + threshold: '', + vetoThreshold: '', + }, + ['tallyParams'], + payload + ); + this.votingParams = R.pathOr( + { + votingPeriod: 0, + }, + ['votingParams'], + payload + ); + } + + static fromJson(data: object): GovParams { + return { + depositParams: { + minDeposit: R.pathOr( + [], + ['params', 'min_deposit'], + data + ).map((x) => ({ + denom: x.denom, + amount: String(x.amount), + })), + maxDepositPeriod: R.pathOr(0, ['params', 'max_deposit_period'], data), + }, + tallyParams: { + quorum: R.pathOr('0', ['params', 'quorum'], data), + threshold: R.pathOr('0', ['params', 'threshold'], data), + vetoThreshold: R.pathOr('0', ['params', 'veto_threshold'], data), + }, + votingParams: { + votingPeriod: R.pathOr(0, ['params', 'voting_period'], data), + }, + }; + } +} + +export default GovParams; diff --git a/apps/web-osmosis/src/models/mint_params/index.ts b/apps/web-osmosis/src/models/mint_params/index.ts new file mode 100644 index 0000000000..bd76d53dab --- /dev/null +++ b/apps/web-osmosis/src/models/mint_params/index.ts @@ -0,0 +1,45 @@ +import * as R from 'ramda'; + +class MintParams { + public mintDenom: string; + + public epochIdentifier: string; + + public reductionFactor: string; + + public genesisEpochProvisions: string; + + public reductionPeriodInEpochs: number; + + public mintingRewardsDistributionStartEpoch: number; + + constructor(payload: object) { + this.epochIdentifier = R.pathOr('', ['epoch_identifier'], payload); + this.reductionFactor = R.pathOr('', ['reduction_factor'], payload); + this.genesisEpochProvisions = R.pathOr('', ['genesis_epoch_provisions'], payload); + this.reductionPeriodInEpochs = R.pathOr(0, ['reduction_period_in_epochs'], payload); + this.mintingRewardsDistributionStartEpoch = R.pathOr( + 0, + ['minting_rewards_distribution_start_epoch'], + payload + ); + this.mintDenom = R.pathOr('', ['mintDenom'], payload); + } + + static fromJson(data: object): MintParams { + return { + epochIdentifier: R.pathOr('', ['epoch_identifier'], data), + reductionFactor: R.pathOr('', ['reduction_factor'], data), + genesisEpochProvisions: R.pathOr('', ['genesis_epoch_provisions'], data), + reductionPeriodInEpochs: R.pathOr(0, ['reduction_period_in_epochs'], data), + mintingRewardsDistributionStartEpoch: R.pathOr( + 0, + ['minting_rewards_distribution_start_epoch'], + data + ), + mintDenom: R.pathOr('0', ['mint_denom'], data), + }; + } +} + +export default MintParams; diff --git a/apps/web-osmosis/src/screens/params/hooks.ts b/apps/web-osmosis/src/screens/params/hooks.ts new file mode 100644 index 0000000000..8a24910c7e --- /dev/null +++ b/apps/web-osmosis/src/screens/params/hooks.ts @@ -0,0 +1,166 @@ +import numeral from 'numeral'; +import * as R from 'ramda'; +import { useCallback, useState } from 'react'; +import chainConfig from '@/chainConfig'; +import { ParamsQuery, useParamsQuery } from '@/graphql/types/general_types'; +import { DistributionParams, GovParams, MintParams, SlashingParams, StakingParams } from '@/models'; +import type { ParamsState } from '@/screens/params/types'; +import { formatToken } from '@/utils/format_token'; + +const { primaryTokenUnit } = chainConfig(); + +const initialState: ParamsState = { + loading: true, + exists: true, + staking: null, + slashing: null, + minting: null, + distribution: null, + gov: null, +}; + +// ================================ +// staking +// ================================ +const formatStaking = (data: ParamsQuery) => { + if (data.stakingParams.length) { + const stakingParamsRaw = StakingParams.fromJson(data?.stakingParams?.[0]?.params ?? {}); + return { + bondDenom: stakingParamsRaw.bondDenom, + unbondingTime: stakingParamsRaw.unbondingTime, + maxEntries: stakingParamsRaw.maxEntries, + historicalEntries: stakingParamsRaw.historicalEntries, + maxValidators: stakingParamsRaw.maxValidators, + }; + } + + return null; +}; + +// ================================ +// slashing +// ================================ +const formatSlashing = (data: ParamsQuery) => { + if (data.slashingParams.length) { + const slashingParamsRaw = SlashingParams.fromJson(data?.slashingParams?.[0]?.params ?? {}); + return { + downtimeJailDuration: slashingParamsRaw.downtimeJailDuration, + minSignedPerWindow: slashingParamsRaw.minSignedPerWindow, + signedBlockWindow: slashingParamsRaw.signedBlockWindow, + slashFractionDoubleSign: slashingParamsRaw.slashFractionDoubleSign, + slashFractionDowntime: slashingParamsRaw.slashFractionDowntime, + }; + } + return null; +}; + +// ================================ +// minting +// ================================ +const formatMint = (data: ParamsQuery) => { + if (data.mintParams.length) { + const mintParamsRaw = MintParams.fromJson(data?.mintParams?.[0]?.params ?? {}); + + return { + epochIdentifier: mintParamsRaw.epochIdentifier, + reductionFactor: mintParamsRaw.reductionFactor, + genesisEpochProvisions: mintParamsRaw.genesisEpochProvisions, + reductionPeriodInEpochs: mintParamsRaw.reductionPeriodInEpochs, + mintingRewardsDistributionStartEpoch: mintParamsRaw.mintingRewardsDistributionStartEpoch, + mintDenom: mintParamsRaw.mintDenom, + }; + } + + return null; +}; + +// ================================ +// distribution +// ================================ + +const formatDistribution = (data: ParamsQuery) => { + if (data.distributionParams.length) { + const distributionParamsRaw = DistributionParams.fromJson( + data?.distributionParams?.[0]?.params ?? {} + ); + return { + baseProposerReward: distributionParamsRaw.baseProposerReward, + bonusProposerReward: distributionParamsRaw.bonusProposerReward, + communityTax: distributionParamsRaw.communityTax, + withdrawAddressEnabled: distributionParamsRaw.withdrawAddressEnabled, + }; + } + + return null; +}; + +// ================================ +// distribution +// ================================ + +const formatGov = (data: ParamsQuery) => { + if (data.govParams.length) { + const govParamsRaw = GovParams.fromJson(data?.govParams?.[0] ?? {}); + return { + minDeposit: formatToken( + govParamsRaw.depositParams.minDeposit?.[0]?.amount ?? 0, + govParamsRaw.depositParams.minDeposit?.[0]?.denom ?? primaryTokenUnit + ), + maxDepositPeriod: govParamsRaw.depositParams.maxDepositPeriod, + quorum: numeral(numeral(govParamsRaw.tallyParams.quorum).format('0.[00]')).value() ?? 0, + threshold: numeral(numeral(govParamsRaw.tallyParams.threshold).format('0.[00]')).value() ?? 0, + vetoThreshold: + numeral(numeral(govParamsRaw.tallyParams.vetoThreshold).format('0.[00]')).value() ?? 0, + votingPeriod: govParamsRaw.votingParams.votingPeriod, + }; + } + + return null; +}; + +const formatParam = (data: ParamsQuery) => { + const results: Partial = {}; + + results.staking = formatStaking(data); + + results.slashing = formatSlashing(data); + + results.minting = formatMint(data); + + results.distribution = formatDistribution(data); + + results.gov = formatGov(data); + + return results; +}; + +export const useParams = () => { + const [state, setState] = useState(initialState); + + const handleSetState = useCallback((stateChange: (prevState: ParamsState) => ParamsState) => { + setState((prevState) => { + const newState = stateChange(prevState); + return R.equals(prevState, newState) ? prevState : newState; + }); + }, []); + + // ================================ + // param query + // ================================ + useParamsQuery({ + onCompleted: (data) => { + handleSetState((prevState) => ({ + ...prevState, + loading: false, + ...formatParam(data), + })); + }, + onError: () => { + handleSetState((prevState) => ({ ...prevState, loading: false })); + }, + }); + + return { + state, + }; +}; diff --git a/apps/web-osmosis/src/screens/params/index.tsx b/apps/web-osmosis/src/screens/params/index.tsx new file mode 100644 index 0000000000..6b2a18f4b6 --- /dev/null +++ b/apps/web-osmosis/src/screens/params/index.tsx @@ -0,0 +1,79 @@ +import { NextSeo } from 'next-seo'; +import useAppTranslation from '@/hooks/useAppTranslation'; +import BoxDetails from '@/components/box_details'; +import Layout from '@/components/layout'; +import LoadAndExist from '@/components/load_and_exist'; +import { useParams } from '@/screens/params/hooks'; +import useStyles from '@/screens/params/styles'; +import { + formatDistribution, + formatGov, + formatMinting, + formatSlashing, + formatStaking, +} from '@/screens/params/utils'; + +const Params = () => { + const { t } = useAppTranslation('params'); + const { classes } = useStyles(); + const { state } = useParams(); + + const staking = state.staking + ? { + title: t('staking') ?? undefined, + details: formatStaking(state.staking, t), + } + : null; + + const slashing = state.slashing + ? { + title: t('slashing') ?? undefined, + details: formatSlashing(state.slashing, t), + } + : null; + + const minting = state.minting + ? { + title: t('minting') ?? undefined, + details: formatMinting(state.minting, t), + } + : null; + + const distribution = state.distribution + ? { + title: t('distribution') ?? undefined, + details: formatDistribution(state.distribution, t), + } + : null; + + const gov = state.gov + ? { + title: t('gov') ?? undefined, + details: formatGov(state.gov, t), + } + : null; + + return ( + <> + + + + + {staking && } + {slashing && } + {minting && } + {distribution && } + {gov && } + + + + + ); +}; + +export default Params; diff --git a/apps/web-osmosis/src/screens/params/types.ts b/apps/web-osmosis/src/screens/params/types.ts new file mode 100644 index 0000000000..00e132c796 --- /dev/null +++ b/apps/web-osmosis/src/screens/params/types.ts @@ -0,0 +1,50 @@ +export interface Staking { + bondDenom: string; + unbondingTime: number; + maxEntries: number; + historicalEntries: number; + maxValidators: number; +} + +export interface Slashing { + downtimeJailDuration: number; + minSignedPerWindow: number; + signedBlockWindow: number; + slashFractionDoubleSign: number; + slashFractionDowntime: number; +} + +export interface Minting { + mintDenom: string; + epochIdentifier: string; + reductionFactor: string; + genesisEpochProvisions: string; + reductionPeriodInEpochs: number; + mintingRewardsDistributionStartEpoch: number; +} + +export interface Distribution { + baseProposerReward: number; + bonusProposerReward: number; + communityTax: number; + withdrawAddressEnabled: boolean; +} + +export interface Gov { + minDeposit: TokenUnit; + maxDepositPeriod: number; + quorum: number; + threshold: number; + vetoThreshold: number; + votingPeriod: number; +} + +export interface ParamsState { + loading: boolean; + exists: boolean; + staking: Staking | null; + slashing: Slashing | null; + minting: Minting | null; + distribution: Distribution | null; + gov: Gov | null; +} diff --git a/apps/web-osmosis/src/screens/params/utils.tsx b/apps/web-osmosis/src/screens/params/utils.tsx new file mode 100644 index 0000000000..c19ecf7954 --- /dev/null +++ b/apps/web-osmosis/src/screens/params/utils.tsx @@ -0,0 +1,162 @@ +import type { Distribution, Gov, Minting, Slashing, Staking } from '@/screens/params/types'; +import { nanoToSeconds, secondsToDays } from '@/utils/time'; +import type { TFunction } from '@/hooks/useAppTranslation'; +import numeral from 'numeral'; + +const convertBySeconds = (seconds: number, t: TFunction) => { + const SECONDS_IN_DAY = 86400; + return seconds >= SECONDS_IN_DAY + ? t('days', { + day: secondsToDays(seconds), + }) + : t('seconds', { + second: seconds, + }); +}; + +export const formatStaking = (data: Staking, t: TFunction) => [ + { + key: 'bondDenom', + label: t('bondDenom'), + detail: data.bondDenom, + }, + { + key: 'unbondingTime', + label: t('unbondingTime'), + detail: convertBySeconds(nanoToSeconds(data.unbondingTime), t), + }, + { + key: 'maxEntries', + label: t('maxEntries'), + detail: numeral(data.maxEntries).format('0,0'), + }, + { + key: 'historicalEntries', + label: t('historicalEntries'), + detail: numeral(data.historicalEntries).format('0,0'), + }, + { + key: 'maxValidators', + label: t('maxValidators'), + detail: numeral(data.maxValidators).format('0,0'), + }, +]; + +export const formatSlashing = (data: Slashing, t: TFunction) => [ + { + key: 'downtimeJailDuration', + label: t('downtimeJailDuration'), + detail: t('seconds', { + second: numeral(nanoToSeconds(data.downtimeJailDuration)).format('0,0'), + }), + }, + { + key: 'minSignedPerWindow', + label: t('minSignedPerWindow'), + detail: `${numeral(data.minSignedPerWindow * 100).format('0.[00]')}%`, + }, + { + key: 'signedBlockWindow', + label: t('signedBlockWindow'), + detail: numeral(data.signedBlockWindow).format('0,0'), + }, + { + key: 'slashFractionDoubleSign', + label: t('slashFractionDoubleSign'), + detail: `${data.slashFractionDoubleSign * 100} / 100`, + }, + { + key: 'slashFractionDowntime', + label: t('slashFractionDowntime'), + detail: `${data.slashFractionDowntime * 10000} / ${numeral(10000).format('0,0')}`, + }, +]; + +export const formatMinting = (data: Minting, t: TFunction) => [ + { + key: 'epochIdentifier', + label: t('epochIdentifier'), + detail: data.epochIdentifier, + }, + { + key: 'reductionFactor', + label: t('reductionFactor'), + detail: data.reductionFactor, + }, + { + key: 'genesisEpochProvisions', + label: t('genesisEpochProvisions'), + detail: data.genesisEpochProvisions, + }, + { + key: 'reductionPeriodInEpochs', + label: t('reductionPeriodInEpochs'), + detail: `${numeral(data.reductionPeriodInEpochs).format('0.[00]')}`, + }, + { + key: 'mintingRewardsDistributionStartEpoch', + label: t('mintingRewardsDistributionStartEpoch'), + detail: `${numeral(data.mintingRewardsDistributionStartEpoch).format('0.[00]')}`, + }, + { + key: 'mintDenom', + label: t('mintDenom'), + detail: data.mintDenom, + }, +]; + +export const formatDistribution = (data: Distribution, t: TFunction) => [ + { + key: 'baseProposerReward', + label: t('baseProposerReward'), + detail: `${numeral(data.baseProposerReward * 100).format('0.[00]')}%`, + }, + { + key: 'bonusProposerReward', + label: t('bonusProposerReward'), + detail: `${numeral(data.bonusProposerReward * 100).format('0.[00]')}%`, + }, + { + key: 'communityTax', + label: t('communityTax'), + detail: `${numeral(data.communityTax * 100).format('0.[00]')}%`, + }, + { + key: 'withdrawAddressEnabled', + label: t('withdrawAddressEnabled'), + detail: `${data.withdrawAddressEnabled}`.toUpperCase(), + }, +]; + +export const formatGov = (data: Gov, t: TFunction) => [ + { + key: 'minDeposit', + label: t('minDeposit'), + detail: `${data.minDeposit.value} ${data.minDeposit.displayDenom.toUpperCase()}`, + }, + { + key: 'maxDepositPeriod', + label: t('maxDepositPeriod'), + detail: convertBySeconds(nanoToSeconds(data.maxDepositPeriod), t), + }, + { + key: 'quorum', + label: t('quorum'), + detail: `${numeral(data.quorum * 100).format('0.[00]')}%`, + }, + { + key: 'threshold', + label: t('threshold'), + detail: `${numeral(data.threshold * 100).format('0.[00]')}%`, + }, + { + key: 'vetoThreshold', + label: t('vetoThreshold'), + detail: `${numeral(data.vetoThreshold * 100).format('0.[00]')}%`, + }, + { + key: 'votingPeriod', + label: t('votingPeriod'), + detail: convertBySeconds(nanoToSeconds(data.votingPeriod), t), + }, +]; diff --git a/apps/web-osmosis/src/screens/proposal_details/components/overview/index.tsx b/apps/web-osmosis/src/screens/proposal_details/components/overview/index.tsx new file mode 100644 index 0000000000..5aa355329b --- /dev/null +++ b/apps/web-osmosis/src/screens/proposal_details/components/overview/index.tsx @@ -0,0 +1,199 @@ +import Divider from '@mui/material/Divider'; +import Typography from '@mui/material/Typography'; +import useAppTranslation from '@/hooks/useAppTranslation'; +import numeral from 'numeral'; +import * as R from 'ramda'; +import { FC, useCallback, useMemo } from 'react'; +import { useRecoilValue } from 'recoil'; +import Box from '@/components/box'; +import Markdown from '@/components/markdown'; +import Name from '@/components/name'; +import SingleProposal from '@/components/single_proposal'; +import { useProfileRecoil } from '@/recoil/profiles/hooks'; +import { readDate, readTimeFormat } from '@/recoil/settings'; +import CommunityPoolSpend from '@/screens/proposal_details/components/overview/components/community_pool_spend'; +import UpdateParams from '@/screens/proposal_details/components/overview/components/update_params'; +import ParamsChange from '@/screens/proposal_details/components/overview/components/params_change'; +import SoftwareUpgrade from '@/screens/proposal_details/components/overview/components/software_upgrade'; +import type { OverviewType } from '@/screens/proposal_details/types'; +import { getProposalType } from '@/screens/proposal_details/utils'; +import dayjs, { formatDayJs } from '@/utils/dayjs'; +import { formatNumber, formatToken } from '@/utils/format_token'; +import useStyles from './styles'; + +const Overview: FC<{ className?: string; overview: OverviewType }> = ({ className, overview }) => { + const dateFormat = useRecoilValue(readDate); + const timeFormat = useRecoilValue(readTimeFormat); + const { classes, cx } = useStyles(); + const { t } = useAppTranslation('proposals'); + + const types = useMemo(() => { + if (Array.isArray(overview.content)) { + const typeArray: string[] = []; + overview.content.forEach((type: { params: JSON; type: string }) => + typeArray.push(getProposalType(R.pathOr('', ['@type'], type))) + ); + return typeArray; + } + const typeArray: string[] = []; + typeArray.push(getProposalType(R.pathOr('', ['@type'], overview.content))); + return typeArray; + }, [overview.content]); + + const changes = useMemo(() => { + const changeList: any[] = []; + if (Array.isArray(overview.content)) { + overview.content.forEach((type: { params: JSON; type: string }) => { + changeList.push({ params: type.params, type: R.pathOr('', ['@type'], type) }); + }); + + return changeList; + } + return changeList; + }, [overview.content]); + + const { address: proposerAddress, name: proposerName } = useProfileRecoil(overview.proposer); + const { name: recipientName } = useProfileRecoil(overview?.content?.recipient); + const proposerMoniker = proposerName || overview.proposer; + const recipientMoniker = recipientName || overview?.content?.recipient; + const amountRequested = overview.content?.amount + ? formatToken(overview.content?.amount[0]?.amount, overview.content?.amount[0]?.denom) + : null; + const parsedAmountRequested = amountRequested + ? `${formatNumber( + amountRequested.value, + amountRequested.exponent + )} ${amountRequested.displayDenom.toUpperCase()}` + : ''; + + const getExtraDetails = useCallback(() => { + let extraDetails = null; + types.forEach((type: string) => { + if (type === 'parameterChangeProposal') { + extraDetails = ( + <> + + {t('changes')} + + + + ); + } + if (type === 'softwareUpgradeProposal') { + extraDetails = ( + <> + + {t('plan')} + + + + ); + } + if (type === 'communityPoolSpendProposal') { + extraDetails = ( + <> + + {t('content')} + + + + ); + } + + if (type.includes('MsgUpdateParams')) { + extraDetails = ( + <> + {changes.map((change) => ( + + ))} + + ); + } + }); + return extraDetails; + }, [changes, overview.content, parsedAmountRequested, recipientMoniker, t, types]); + + const extra = getExtraDetails(); + + return ( + + + +
+ + {t('type')} + + + {types.map((type: string) => ( + + {t(type)} + + ))} + + + {t('proposer')} + + + {!!overview.submitTime && ( + <> + + {t('submitTime')} + + + {formatDayJs(dayjs.utc(overview.submitTime), dateFormat, timeFormat)} + + + )} + {!!overview.depositEndTime && ( + <> + + {t('depositEndTime')} + + + {formatDayJs(dayjs.utc(overview.depositEndTime), dateFormat, timeFormat)} + + + )} + {!!overview.votingStartTime && ( + <> + + {t('votingStartTime')} + + + {formatDayJs(dayjs.utc(overview.votingStartTime), dateFormat, timeFormat)} + + + )} + {!!overview.votingEndTime && ( + <> + + {t('votingEndTime')} + + + {formatDayJs(dayjs.utc(overview.votingEndTime), dateFormat, timeFormat)} + + + )} + + {t('description')} + + + {extra} +
+
+ ); +}; + +export default Overview; diff --git a/apps/web-osmosis/src/screens/proposal_details/components/overview/styles.ts b/apps/web-osmosis/src/screens/proposal_details/components/overview/styles.ts new file mode 100644 index 0000000000..55ec30709d --- /dev/null +++ b/apps/web-osmosis/src/screens/proposal_details/components/overview/styles.ts @@ -0,0 +1,77 @@ +import { makeStyles } from 'tss-react/mui'; + +const useStyles = makeStyles()((theme) => ({ + root: { + '& .label': { + color: theme.palette.custom.fonts.fontThree, + }, + '& .content': { + marginBottom: theme.spacing(2), + display: 'block', + [theme.breakpoints.up('lg')]: { + display: 'flex', + }, + }, + '& .recipient': { + marginBottom: theme.spacing(2), + [theme.breakpoints.up('lg')]: { + display: 'block', + }, + }, + '& .amountRequested': { + marginBottom: theme.spacing(2), + display: 'block', + padding: '0', + [theme.breakpoints.up('lg')]: { + display: 'block', + paddingLeft: '30px', + }, + }, + '& .accordion': { + background: '#151519', + }, + }, + content: { + marginTop: theme.spacing(2), + display: 'grid', + p: { + lineHeight: 1.8, + }, + '& ul': { + padding: '0.25rem 0.5rem', + [theme.breakpoints.up('lg')]: { + padding: '0.5rem 1rem', + }, + }, + '& li': { + padding: '0.25rem 0.5rem', + [theme.breakpoints.up('lg')]: { + padding: '0.5rem 1rem', + }, + }, + '& > *': { + marginBottom: theme.spacing(1), + [theme.breakpoints.up('lg')]: { + marginBottom: theme.spacing(2), + }, + }, + [theme.breakpoints.up('lg')]: { + gridTemplateColumns: '200px auto', + }, + }, + time: { + marginTop: theme.spacing(2), + display: 'grid', + '& > *': { + marginBottom: theme.spacing(1), + [theme.breakpoints.up('md')]: { + marginBottom: theme.spacing(2), + }, + }, + [theme.breakpoints.up('md')]: { + gridTemplateColumns: 'repeat(2, 1fr)', + }, + }, +})); + +export default useStyles; diff --git a/apps/web-osmosis/src/screens/proposal_details/components/votes_graph/hooks.ts b/apps/web-osmosis/src/screens/proposal_details/components/votes_graph/hooks.ts new file mode 100644 index 0000000000..f086ae829d --- /dev/null +++ b/apps/web-osmosis/src/screens/proposal_details/components/votes_graph/hooks.ts @@ -0,0 +1,71 @@ +import Big from 'big.js'; +import { useRouter } from 'next/router'; +import * as R from 'ramda'; +import { useCallback, useState } from 'react'; +import chainConfig from '@/chainConfig'; +import { + ProposalDetailsTallyQuery, + useProposalDetailsTallyQuery, +} from '@/graphql/types/general_types'; +import type { VotesGraphState } from '@/screens/proposal_details/components/votes_graph/types'; +import { formatToken } from '@/utils/format_token'; + +const { votingPowerTokenUnit } = chainConfig(); + +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, + quorum: '0', + }); + + const handleSetState = useCallback( + (stateChange: (prevState: VotesGraphState) => VotesGraphState) => { + setState((prevState) => { + const newState = stateChange(prevState); + return R.equals(prevState, newState) ? prevState : newState; + }); + }, + [] + ); + + useProposalDetailsTallyQuery({ + variables: { + proposalId: parseFloat((router?.query?.id as string) ?? '0'), + }, + onCompleted: (data) => { + handleSetState((prevState) => ({ ...prevState, ...foramtProposalTally(data) })); + }, + }); + + const foramtProposalTally = (data: ProposalDetailsTallyQuery) => { + const quorumRaw = data.quorum?.[0]?.tallyParams?.quorum ?? '0'; + return { + votes: { + yes: formatToken(data?.proposalTallyResult?.[0]?.yes ?? '0', votingPowerTokenUnit), + no: formatToken(data?.proposalTallyResult?.[0]?.no ?? '0', votingPowerTokenUnit), + veto: formatToken(data?.proposalTallyResult?.[0]?.noWithVeto ?? '0', votingPowerTokenUnit), + abstain: formatToken(data?.proposalTallyResult?.[0]?.abstain ?? '0', votingPowerTokenUnit), + }, + bonded: formatToken(data?.stakingPool?.[0]?.bondedTokens ?? '0', votingPowerTokenUnit), + quorum: Big(quorumRaw)?.times(100).toFixed(2), + }; + }; + + return { + state, + }; +}; diff --git a/apps/web-osmosis/src/screens/proposal_details/hooks.ts b/apps/web-osmosis/src/screens/proposal_details/hooks.ts new file mode 100644 index 0000000000..43de7d33f2 --- /dev/null +++ b/apps/web-osmosis/src/screens/proposal_details/hooks.ts @@ -0,0 +1,95 @@ +import { useRouter } from 'next/router'; +import * as R from 'ramda'; +import { useCallback, useState } from 'react'; +import type { ProposalState } from '@/screens/proposal_details/types'; +import { ProposalDetailsQuery, useProposalDetailsQuery } from '@/graphql/types/general_types'; + +// ========================= +// overview +// ========================= +const formatOverview = (data: ProposalDetailsQuery) => { + const DEFAULT_TIME = '0001-01-01T00:00:00'; + let votingStartTime = data?.proposal?.[0]?.votingStartTime ?? DEFAULT_TIME; + votingStartTime = votingStartTime === DEFAULT_TIME ? '' : votingStartTime; + let votingEndTime = data?.proposal?.[0]?.votingEndTime ?? DEFAULT_TIME; + votingEndTime = votingEndTime === DEFAULT_TIME ? '' : votingEndTime; + + const overview = { + proposer: data?.proposal?.[0]?.proposer ?? '', + content: data?.proposal?.[0]?.content ?? '', + 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, + votingEndTime, + }; + + return overview; +}; + +// ========================== +// parsers +// ========================== +const formatProposalQuery = (data: ProposalDetailsQuery) => { + const stateChange: Partial = { + loading: false, + }; + + if (!data.proposal.length) { + stateChange.exists = false; + return stateChange; + } + + stateChange.overview = formatOverview(data); + + return stateChange; +}; + +export const useProposalDetails = () => { + const router = useRouter(); + const [state, setState] = useState({ + loading: true, + exists: true, + overview: { + proposer: '', + content: { + recipient: '', + amount: [], + }, + title: '', + id: 0, + description: '', + status: '', + submitTime: '', + depositEndTime: '', + votingStartTime: '', + votingEndTime: '', + }, + }); + + const handleSetState = useCallback((stateChange: (prevState: ProposalState) => ProposalState) => { + setState((prevState) => { + const newState = stateChange(prevState); + return R.equals(prevState, newState) ? prevState : newState; + }); + }, []); + + // ========================== + // fetch data + // ========================== + useProposalDetailsQuery({ + variables: { + proposalId: parseFloat((router?.query?.id as string) ?? '0'), + }, + onCompleted: (data) => { + handleSetState((prevState) => ({ ...prevState, ...formatProposalQuery(data) })); + }, + }); + + return { + state, + }; +}; diff --git a/apps/web-osmosis/src/screens/proposal_details/types.ts b/apps/web-osmosis/src/screens/proposal_details/types.ts new file mode 100644 index 0000000000..2055522c4b --- /dev/null +++ b/apps/web-osmosis/src/screens/proposal_details/types.ts @@ -0,0 +1,24 @@ +export interface OverviewType { + title: string; + id: number; + proposer: string; + description: string; + status: string; + submitTime: string; + depositEndTime: string; + votingStartTime: string | null; + votingEndTime: string | null; + content: { + recipient: string; + amount: Array<{ + amount: string; + denom: string; + }>; + }; +} + +export interface ProposalState { + loading: boolean; + exists: boolean; + overview: OverviewType; +} diff --git a/packages/ui/public/locales/en/params.json b/packages/ui/public/locales/en/params.json index 7a63b5706d..467728affe 100644 --- a/packages/ui/public/locales/en/params.json +++ b/packages/ui/public/locales/en/params.json @@ -32,5 +32,10 @@ "quorum": "Quorum", "threshold": "Threshold", "vetoThreshold": "Veto Threshold", - "votingPeriod": "Voting Period" + "votingPeriod": "Voting Period", + "epochIdentifier": "Epoch Identifier", + "reductionFactor": "Reduction Factor", + "genesisEpochProvisions": "Genesis Epoch Provisions", + "reductionPeriodInEpochs": "Reduction Period In Epochs", + "mintingRewardsDistributionStartEpoch": "Minting Rewards Distribution Start Epoch" } diff --git a/packages/ui/public/locales/it/params.json b/packages/ui/public/locales/it/params.json index 7ab24f4c35..f505b0bddd 100644 --- a/packages/ui/public/locales/it/params.json +++ b/packages/ui/public/locales/it/params.json @@ -32,5 +32,10 @@ "quorum": "Quorum", "threshold": "Soglia", "vetoThreshold": "Soglia di veto", - "votingPeriod": "Periodo di votazione" + "votingPeriod": "Periodo di votazione", + "epochIdentifier": "Identificatore dell'epoca", + "reductionFactor": "Fattore di riduzione", + "genesisEpochProvisions": "Disposizioni di Genesis Epoch", + "reductionPeriodInEpochs": "Periodo di riduzione in epoche", + "mintingRewardsDistributionStartEpoch": "Epoca iniziale distribuzione premi conio" } diff --git a/packages/ui/public/locales/pl/params.json b/packages/ui/public/locales/pl/params.json index 7da00e1280..4e003aa443 100644 --- a/packages/ui/public/locales/pl/params.json +++ b/packages/ui/public/locales/pl/params.json @@ -32,5 +32,10 @@ "quorum": "Kworum", "threshold": "Próg", "vetoThreshold": "Próg weta", - "votingPeriod": "Okres głosowania" + "votingPeriod": "Okres głosowania", + "epochIdentifier": "Identyfikator epoki", + "reductionFactor": "Współczynnik redukcji", + "genesisEpochProvisions": "Zaopatrzenie epoki genesis", + "reductionPeriodInEpochs": "Okres redukcji w epokach", + "mintingRewardsDistributionStartEpoch": "Epoka rozpoczęcia dystrybucji mint nagród" } diff --git a/packages/ui/public/locales/zhs/params.json b/packages/ui/public/locales/zhs/params.json index cf43d824ed..5e5d8ba072 100644 --- a/packages/ui/public/locales/zhs/params.json +++ b/packages/ui/public/locales/zhs/params.json @@ -32,5 +32,10 @@ "quorum": "法定人数", "threshold": "门槛", "vetoThreshold": "否决门槛", - "votingPeriod": "投票期" + "votingPeriod": "投票期", + "epochIdentifier": "纪元标识符", + "reductionFactor": "缩减因子", + "genesisEpochProvisions": "创世纪元规定", + "reductionPeriodInEpochs": "减少纪元的周期", + "mintingRewardsDistributionStartEpoch": "铸造奖励分配开始纪元" } diff --git a/packages/ui/public/locales/zht/params.json b/packages/ui/public/locales/zht/params.json index d842697b64..508af2f12a 100644 --- a/packages/ui/public/locales/zht/params.json +++ b/packages/ui/public/locales/zht/params.json @@ -32,5 +32,10 @@ "quorum": "法定人數", "threshold": "門檻", "vetoThreshold": "否決門檻", - "votingPeriod": "投票期" + "votingPeriod": "投票期", + "epochIdentifier": "紀元標識符", + "reductionFactor": "縮減因子", + "genesisEpochProvisions": "創世紀元規定", + "reductionPeriodInEpochs": "減少紀元的週期", + "mintingRewardsDistributionStartEpoch": "鑄造獎勵分配開始紀元" }