diff --git a/.eslintignore b/.eslintignore index 7e639c0a8e..bb3dcdb03d 100644 --- a/.eslintignore +++ b/.eslintignore @@ -7,3 +7,4 @@ **/cypress/fixtures/* **/src/graphql/types.tsx **/src/graphql/desmos_profile.ts +**/src/pages/_document.tsx diff --git a/.eslintrc.json b/.eslintrc.json index 90d6141cea..b6dd299b4e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -64,6 +64,9 @@ } ], "rules": { + "max-len": "off", + "no-console": "off", + "camelcase": "off", "react/destructuring-assignment": "off", "no-bitwise": "off", "@typescript-eslint/ban-types": "warn", @@ -73,12 +76,15 @@ "@typescript-eslint/no-var-requires": "off", "@typescript-eslint/explicit-module-boundary-types": "off", "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": ["error", { - "ignoreRestSiblings": true, - "varsIgnorePattern": "^_", - "argsIgnorePattern": "^_" - }], - "no-param-reassign": "warn", + "@typescript-eslint/no-unused-vars": [ + "error", + { + "ignoreRestSiblings": true, + "varsIgnorePattern": "^_", + "argsIgnorePattern": "^_" + } + ], + "no-param-reassign": "off", "no-restricted-globals": "warn", "react/prop-types": "off", "jsx-a11y/interactive-supports-focus": "off", @@ -138,4 +144,4 @@ } ] } -} +} \ No newline at end of file diff --git a/.github/workflows/docker_production.yml b/.github/workflows/docker_production.yml deleted file mode 100644 index fcafdb8568..0000000000 --- a/.github/workflows/docker_production.yml +++ /dev/null @@ -1,90 +0,0 @@ -name: Docker-Production - -on: - push: - tags: - - desmos-morpheus-apollo-1-v* - -jobs: - Build-and-Publish: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Prepare tags - id: prep - run: | - DOCKER_IMAGE=forbole/big-dipper-2.0-cosmos - VERSION=edge - if [[ $GITHUB_REF == refs/tags/* ]]; then - VERSION=${GITHUB_REF#refs/tags/} - fi - TAGS="${DOCKER_IMAGE}:${VERSION}" - echo ::set-output name=version::${VERSION} - echo ::set-output name=tags::${TAGS} - echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') - - name: Prepare docker build env - id: dockerPrep - run: | - NEXT_PUBLIC_GRAPHQL_URL= - NEXT_PUBLIC_GRAPHQL_WS= - NEXT_PUBLIC_URL= - NEXT_PUBLIC_RPC_WEBSOCKET= - NEXT_PUBLIC_CHAIN_TYPE= - NODE_ENV="production" - PORT=3000 - if [[ $GITHUB_REF == refs/tags/desmos-morpheus-apollo-1* ]]; then - NEXT_PUBLIC_GRAPHQL_URL="https://gql.morpheus.desmos.network/v1/graphql" - NEXT_PUBLIC_GRAPHQL_WS="wss://gql.morpheus.desmos.network/v1/graphql" - NEXT_PUBLIC_URL="https://morpheus.desmos.network" - NEXT_PUBLIC_RPC_WEBSOCKET="wss://rpc.morpheus.desmos.network/websocket" - NEXT_PUBLIC_CHAIN_TYPE="testnet" - fi - echo ::set-output name=NEXT_PUBLIC_GRAPHQL_URL::${NEXT_PUBLIC_GRAPHQL_URL} - echo ::set-output name=NEXT_PUBLIC_GRAPHQL_WS::${NEXT_PUBLIC_GRAPHQL_WS} - echo ::set-output name=NEXT_PUBLIC_URL::${NEXT_PUBLIC_URL} - echo ::set-output name=NEXT_PUBLIC_RPC_WEBSOCKET::${NEXT_PUBLIC_RPC_WEBSOCKET} - echo ::set-output name=NEXT_PUBLIC_CHAIN_TYPE::${NEXT_PUBLIC_CHAIN_TYPE} - echo ::set-output name=NODE_ENV::${NODE_ENV} - echo ::set-output name=PORT::${PORT} - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Build and push - uses: docker/build-push-action@v2 - with: - context: . - file: ./Dockerfile - push: true - tags: ${{ steps.prep.outputs.tags }} - build-args: | - "NEXT_PUBLIC_GRAPHQL_URL=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_GRAPHQL_URL }}" - "NEXT_PUBLIC_GRAPHQL_WS=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_GRAPHQL_WS }}" - "NEXT_PUBLIC_URL=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_URL }}" - "NEXT_PUBLIC_RPC_WEBSOCKET=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_RPC_WEBSOCKET }}" - "NEXT_PUBLIC_CHAIN_TYPE=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_CHAIN_TYPE }}" - "NODE_ENV=${{ steps.dockerPrep.outputs.NODE_ENV }}" - "PORT=${{ steps.dockerPrep.outputs.PORT }}" - labels: | - org.opencontainers.image.source=${{ github.event.repository.html_url }} - org.opencontainers.image.created=${{ steps.prep.outputs.created }} - org.opencontainers.image.revision=${{ github.sha }} - - name: Deploy to Akash 🌐 - env: - DESMOS_AKASH_WEBHOOK_URL: ${{ secrets.DESMOS_AKASH_WEBHOOK_URL }} - AKASH_WEBHOOK_SECRET: ${{ secrets.AKASH_WEBHOOK_SECRET }} - run: | - BRANCH=${GITHUB_REF} - WEBHOOK_URL='' - if [[ $GITHUB_REF == refs/tags/desmos-morpheus-apollo-1* ]]; then - echo 'Deploying to Desmos morpheus-apollo-1' - WEBHOOK_URL=$DESMOS_AKASH_WEBHOOK_URL - fi - curl -i -X POST -H "Content-Type: application/json" -d '{"parameters":{"tag": "${{ steps.prep.outputs.version }}"}}' -k $WEBHOOK_URL -u "deploy:$AKASH_WEBHOOK_SECRET" - - diff --git a/.github/workflows/docker_staging.yml b/.github/workflows/docker_staging.yml deleted file mode 100644 index c635441100..0000000000 --- a/.github/workflows/docker_staging.yml +++ /dev/null @@ -1,69 +0,0 @@ -name: Docker-Staging - -on: - pull_request: - push: - branches: - - chains/desmos - -jobs: - Build-and-Publish: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Prepare tags - id: prep - run: | - BRANCH=${GITHUB_REF#refs/heads/} - if [[ $GITHUB_REF == refs/heads/chains/desmos ]]; then - BRANCH="desmos" - elif [[ $GITHUB_REF == refs/pull/* ]]; then - BRANCH="build-test" - fi - echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') - echo ::set-output name=branch::${BRANCH} - - name: Prepare docker build env - id: dockerPrep - run: | - NEXT_PUBLIC_GRAPHQL_URL="https://gql.morpheus.desmos.network/v1/graphql" - NEXT_PUBLIC_GRAPHQL_WS="wss://gql.morpheus.desmos.network/v1/graphql" - NEXT_PUBLIC_URL="https://morpheus.desmos.network" - NEXT_PUBLIC_RPC_WEBSOCKET="wss://rpc.morpheus.desmos.network/websocket" - NEXT_PUBLIC_CHAIN_TYPE="mainnet" - NODE_ENV="production" - PORT=3000 - echo ::set-output name=NEXT_PUBLIC_GRAPHQL_URL::${NEXT_PUBLIC_GRAPHQL_URL} - echo ::set-output name=NEXT_PUBLIC_GRAPHQL_WS::${NEXT_PUBLIC_GRAPHQL_WS} - echo ::set-output name=NEXT_PUBLIC_URL::${NEXT_PUBLIC_URL} - echo ::set-output name=NEXT_PUBLIC_RPC_WEBSOCKET::${NEXT_PUBLIC_RPC_WEBSOCKET} - echo ::set-output name=NEXT_PUBLIC_CHAIN_TYPE::${NEXT_PUBLIC_CHAIN_TYPE} - echo ::set-output name=NODE_ENV::${NODE_ENV} - echo ::set-output name=PORT::${PORT} - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - name: Login to DockerHub - if: github.event_name != 'pull_request' - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - name: Build and push - uses: docker/build-push-action@v2 - with: - context: . - file: ./Dockerfile - push: ${{ github.event_name != 'pull_request' }} - build-args: | - "NEXT_PUBLIC_GRAPHQL_URL=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_GRAPHQL_URL }}" - "NEXT_PUBLIC_GRAPHQL_WS=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_GRAPHQL_WS }}" - "NEXT_PUBLIC_URL=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_URL }}" - "NEXT_PUBLIC_RPC_WEBSOCKET=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_RPC_WEBSOCKET }}" - "NEXT_PUBLIC_CHAIN_TYPE=${{ steps.dockerPrep.outputs.NEXT_PUBLIC_CHAIN_TYPE }}" - "NODE_ENV=${{ steps.dockerPrep.outputs.NODE_ENV }}" - "PORT=${{ steps.dockerPrep.outputs.PORT }}" - tags: "forbole/big-dipper-2.0-cosmos:${{ steps.prep.outputs.branch }}-staging" - labels: | - org.opencontainers.image.source=${{ github.event.repository.html_url }} - org.opencontainers.image.created=${{ steps.prep.outputs.created }} - org.opencontainers.image.revision=${{ github.sha }} diff --git a/.gitignore b/.gitignore index 9e3c4b7fc0..8975c009bc 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ yarn-error.log* test.js +/.project diff --git a/README.md b/README.md index d6f9ce6dcd..b97699d348 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Big Dipper 2.0 ✨ (Cosmos Based Chains) -Big Dipper is an open-source block explorer and token management tool serving over 10 proof-of-stake blockchains. It has been forked more than 100 times on GitHub and has served audiences from 140 countries and regions. +The CUDOS explorer allows you to visualise blocks, network statistics & transaction history for the CUDOS network | Powering the Metaverse, NFTs, Web3, & gaming **This repo contains the UI of big dipper 2.0 only** diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 35618e1bf4..c1fdb7a35c 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -45,7 +45,10 @@ "nothingToShow": "Nothing to show", "notFound": "Not Found", "useValidatorAddress": "Please use a validator address instead", - "description": "Big Dipper is an open-source block explorer and token management tool serving over 10 proof-of-stake blockchains. It has been forked more than 100 times on GitHub and has served audiences from 140 countries and regions.", + "description": "The CUDOS explorer allows you to visualise blocks, network statistics & transaction history for the CUDOS network | Powering the Metaverse, NFTs, Web3, & gaming.", + "homeTitleDescription": "Visualise blocks, transactions & network metrics", + "transactionsTitle": "CUDOS Blockchain transactions | View & search transactions", + "transactionsDescription": "Use the CUDOS blockchain explorer to search for transactions on the network via tx hash, block height / address", "supply": "Supply", "blockTimeAgo": "Latest block displayed was {{time}}", "settings": "Settings", diff --git a/public/locales/en/message_contents.json b/public/locales/en/message_contents.json index 3b519e2603..e560817a9f 100644 --- a/public/locales/en/message_contents.json +++ b/public/locales/en/message_contents.json @@ -57,7 +57,7 @@ "MsgCreateVestingAccount": "Vesting account created for <0>{{toAddress}}", "MsgCreatePeriodicVestingAccount": "Periodic vesting account created for <0>{{toAddress}}", "txStoreCode": "<0>{{sender}} stored code", - "txInstantiateContract": "<0>{{sender}} initiated contract with code ID <1>{{codeId}}", + "txInstantiateContract": "<0>{{sender}} instantiated <1>{{contractType}}contract <2>{{contractAddress}} with code ID <3>{{codeId}}", "txExecuteContract": "<0>{{user}} executed <1>{{method}} on <2>{{address}}", "txMigrateContract": "<0>{{admin}} migrated contract <1>{{contract}} to <1>{{newCodeId}}", "txUpdateContractAdmin": "<0>{{admin}} updated contract <1>{{contract}} admin to <2>{{newAdmin}}", diff --git a/src/components/footer/__snapshots__/index.test.tsx.snap b/src/components/footer/__snapshots__/index.test.tsx.snap index f093f48ed1..d044677889 100644 --- a/src/components/footer/__snapshots__/index.test.tsx.snap +++ b/src/components/footer/__snapshots__/index.test.tsx.snap @@ -33,7 +33,7 @@ exports[`component: layout/footer matches snapshot 1`] = ` rel="noreferrer" target="_blank" > - common:Cudos + common:cudos - common:about + common:blog - common:blog + common:about

- common:bigDipper + common:policies

- common:about + common:privacyPolicy - common:faq + common:cookiesPolicy common:termsAndConditions - - common:privacyPolicy -
@@ -127,7 +120,7 @@ exports[`component: layout/footer matches snapshot 1`] = ` @@ -152,7 +145,7 @@ exports[`component: layout/footer matches snapshot 1`] = ` @@ -176,7 +169,7 @@ exports[`component: layout/footer matches snapshot 1`] = ` @@ -232,10 +225,80 @@ exports[`component: layout/footer matches snapshot 1`] = ` > common:donate +
+
+
+
+ We use cookies to enhance the user experience. Read our + + + Privacy Policy + +
+
+ +
+
+

@@ -30,7 +30,7 @@ exports[`component: layout/footer matches snapshot 1`] = ` @@ -55,7 +55,7 @@ exports[`component: layout/footer matches snapshot 1`] = ` @@ -79,7 +79,7 @@ exports[`component: layout/footer matches snapshot 1`] = ` diff --git a/src/components/msg/cosmwasm/instantiate_contract/index.tsx b/src/components/msg/cosmwasm/instantiate_contract/index.tsx index a3496e3804..1965069d6a 100644 --- a/src/components/msg/cosmwasm/instantiate_contract/index.tsx +++ b/src/components/msg/cosmwasm/instantiate_contract/index.tsx @@ -1,19 +1,38 @@ -import React from 'react'; +import React, { + useEffect, + useState, +} from 'react'; import numeral from 'numeral'; import Trans from 'next-translate/Trans'; import { Typography } from '@material-ui/core'; import { Name } from '@components'; import { MsgInstantiateContract } from '@models'; import { useProfileRecoil } from '@recoil/profiles'; +import { fetchCW20TokenInfo } from '@src/screens/token_details/utils'; const InstantiateContract = (props: { - message: MsgInstantiateContract; - }) => { + message: MsgInstantiateContract; +}) => { const { message } = props; - + const [isCW20, setIsCW20] = useState(false); const sender = useProfileRecoil(message.sender); const senderMoniker = sender ? sender?.name : message.sender; + useEffect(() => { + const setCW20 = async (address: string) => { + const result = await fetchCW20TokenInfo(address); + if (result.address === address) { + setIsCW20(true); + return; + } + setIsCW20(false); + }; + + if (message.contractAddress) { + setCW20(message.contractAddress); + } + }, []); + return ( ), , + ( + + ), + , ]} values={{ + contractType: isCW20 ? 'CW20 Token ' : '', codeId: numeral(message.codeId).format('0,0'), }} /> diff --git a/src/components/msg/utils.tsx b/src/components/msg/utils.tsx index deffbaf3a0..e65cd20b7a 100644 --- a/src/components/msg/utils.tsx +++ b/src/components/msg/utils.tsx @@ -521,7 +521,8 @@ export const convertMsgsToModels = (transaction: any) => { const messages = R.pathOr([], ['messages'], transaction).map((msg, i) => { const model = getMessageModelByType(msg?.['@type']); if (model === MODELS.MsgWithdrawDelegatorReward - || model === MODELS.MsgWithdrawValidatorCommission) { + || model === MODELS.MsgWithdrawValidatorCommission + || model === MODELS.MsgInstantiateContract) { const log = R.pathOr(null, ['logs', i], transaction); return model.fromJson(msg, log); } diff --git a/src/components/nav/__snapshots__/index.test.tsx.snap b/src/components/nav/__snapshots__/index.test.tsx.snap index 5c16dd8297..223d3a926b 100644 --- a/src/components/nav/__snapshots__/index.test.tsx.snap +++ b/src/components/nav/__snapshots__/index.test.tsx.snap @@ -1,8 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Component: Nav it renders 1`] = ` -
-`; +exports[`Component: Nav it renders 1`] = `null`; diff --git a/src/components/nav/components/desktop/__snapshots__/index.test.tsx.snap b/src/components/nav/components/desktop/__snapshots__/index.test.tsx.snap index b29df8a27d..e01a41d2de 100644 --- a/src/components/nav/components/desktop/__snapshots__/index.test.tsx.snap +++ b/src/components/nav/components/desktop/__snapshots__/index.test.tsx.snap @@ -3,8 +3,6 @@ exports[`screen: Nav/Desktop hook toggles correctly 1`] = `
< className="makeStyles-logo" diff --git a/src/components/nav/components/desktop/components/action_bar/__snapshots__/index.test.tsx.snap b/src/components/nav/components/desktop/components/action_bar/__snapshots__/index.test.tsx.snap index 07ade38b63..e8b3ef9503 100644 --- a/src/components/nav/components/desktop/components/action_bar/__snapshots__/index.test.tsx.snap +++ b/src/components/nav/components/desktop/components/action_bar/__snapshots__/index.test.tsx.snap @@ -31,14 +31,14 @@ exports[`screen: Nav/ActionBar displays network 1`] = `
@@ -92,14 +92,14 @@ exports[`screen: Nav/ActionBar it renders 1`] = `
diff --git a/src/components/nav/components/mobile/components/menu/__snapshots__/index.test.tsx.snap b/src/components/nav/components/mobile/components/menu/__snapshots__/index.test.tsx.snap index 199965f8a0..d1002d45fa 100644 --- a/src/components/nav/components/mobile/components/menu/__snapshots__/index.test.tsx.snap +++ b/src/components/nav/components/mobile/components/menu/__snapshots__/index.test.tsx.snap @@ -126,6 +126,31 @@ Array [ />
+
+ + cudos + + +
, {!!description && ( - - {description} - + )} {/* ================= */} diff --git a/src/configs/chain_config.mainnet.json b/src/configs/chain_config.mainnet.json index 817bfd2637..c86e8f895c 100644 --- a/src/configs/chain_config.mainnet.json +++ b/src/configs/chain_config.mainnet.json @@ -1,5 +1,5 @@ { - "title": "Cudos Block Explorer", + "title": "CUDOS Blockchain explorer", "network": "cudos-1", "icon": "https://wallet.cudos.org/img/logo-icon.cb505cad.svg?sanitize=true", "logo": { diff --git a/src/configs/chain_config.testnet.json b/src/configs/chain_config.testnet.json index 341cd4753b..fe6201eb87 100644 --- a/src/configs/chain_config.testnet.json +++ b/src/configs/chain_config.testnet.json @@ -1,5 +1,5 @@ { - "title": "Cudos Block Explorer", + "title": "CUDOS Blockchain explorer", "network": "cudos-testnet-public-3", "icon": "https://wallet.cudos.org/img/logo-icon.cb505cad.svg?sanitize=true", "logo": { diff --git a/src/graphql/block_details.graphql b/src/graphql/block_details.graphql index e9c1530a53..418aa19fe6 100644 --- a/src/graphql/block_details.graphql +++ b/src/graphql/block_details.graphql @@ -1,4 +1,4 @@ -query BlockDetails($height: bigint, $signatureHeight: bigint) { +query BlockDetails($height: bigint) { transaction(where: {height: {_eq: $height}}) { height hash @@ -16,19 +16,19 @@ query BlockDetails($height: bigint, $signatureHeight: bigint) { operatorAddress: operator_address } } - } - preCommitsAggregate: pre_commit_aggregate(where: {height: {_eq: $signatureHeight}}) { - aggregate{ - sum { - votingPower: voting_power - } - } - } - preCommits: pre_commit(where: {height: {_eq: $signatureHeight}}) { - validator { + preCommits: pre_commits { + validator { validatorInfo: validator_info { operatorAddress: operator_address } } + } + preCommitsAggregate: pre_commits_aggregate { + aggregate { + sum { + votingPower: voting_power + } + } + } } } diff --git a/src/graphql/types.tsx b/src/graphql/types.tsx index 5d0a42adf5..d1d38f8697 100644 --- a/src/graphql/types.tsx +++ b/src/graphql/types.tsx @@ -14,6 +14,7 @@ export type Scalars = { Float: number; ActionCoin: any; ActionDelegation: any; + ActionNftTransferEvent: any; ActionPagination: any; ActionRedelegation: any; ActionUnbondingDelegation: any; @@ -25,8 +26,11 @@ export type Scalars = { json: any; jsonb: any; numeric: any; + proposal_executor_result: any; + proposal_status: any; smallint: any; timestamp: any; + vote_option: any; }; @@ -55,6 +59,12 @@ export type ActionDelegationReward = { }; +export type ActionNftTransferEventsResponse = { + __typename?: 'ActionNftTransferEventsResponse'; + events?: Maybe>>; +}; + + export type ActionRedelegationResponse = { __typename?: 'ActionRedelegationResponse'; @@ -2576,6 +2586,376 @@ export type Cosmwasm_Update_Admin_Variance_Fields = { index?: Maybe; }; +/** columns and relationships of "cw20token_balance" */ +export type Cw20token_Balance = { + __typename?: 'cw20token_balance'; + address: Scalars['String']; + balance: Scalars['String']; + /** An object relationship */ + cw20token_info: Cw20token_Info; + token: Scalars['String']; +}; + +/** aggregated selection of "cw20token_balance" */ +export type Cw20token_Balance_Aggregate = { + __typename?: 'cw20token_balance_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "cw20token_balance" */ +export type Cw20token_Balance_Aggregate_Fields = { + __typename?: 'cw20token_balance_aggregate_fields'; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "cw20token_balance" */ +export type Cw20token_Balance_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "cw20token_balance" */ +export type Cw20token_Balance_Aggregate_Order_By = { + count?: Maybe; + max?: Maybe; + min?: Maybe; +}; + +/** Boolean expression to filter rows from the table "cw20token_balance". All fields are combined with a logical 'AND'. */ +export type Cw20token_Balance_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + address?: Maybe; + balance?: Maybe; + cw20token_info?: Maybe; + token?: Maybe; +}; + +/** aggregate max on columns */ +export type Cw20token_Balance_Max_Fields = { + __typename?: 'cw20token_balance_max_fields'; + address?: Maybe; + balance?: Maybe; + token?: Maybe; +}; + +/** order by max() on columns of table "cw20token_balance" */ +export type Cw20token_Balance_Max_Order_By = { + address?: Maybe; + balance?: Maybe; + token?: Maybe; +}; + +/** aggregate min on columns */ +export type Cw20token_Balance_Min_Fields = { + __typename?: 'cw20token_balance_min_fields'; + address?: Maybe; + balance?: Maybe; + token?: Maybe; +}; + +/** order by min() on columns of table "cw20token_balance" */ +export type Cw20token_Balance_Min_Order_By = { + address?: Maybe; + balance?: Maybe; + token?: Maybe; +}; + +/** Ordering options when selecting data from "cw20token_balance". */ +export type Cw20token_Balance_Order_By = { + address?: Maybe; + balance?: Maybe; + cw20token_info?: Maybe; + token?: Maybe; +}; + +/** select columns of table "cw20token_balance" */ +export enum Cw20token_Balance_Select_Column { + /** column name */ + Address = 'address', + /** column name */ + Balance = 'balance', + /** column name */ + Token = 'token' +} + +/** columns and relationships of "cw20token_code_id" */ +export type Cw20token_Code_Id = { + __typename?: 'cw20token_code_id'; + id: Scalars['Int']; +}; + +/** Boolean expression to filter rows from the table "cw20token_code_id". All fields are combined with a logical 'AND'. */ +export type Cw20token_Code_Id_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + id?: Maybe; +}; + +/** Ordering options when selecting data from "cw20token_code_id". */ +export type Cw20token_Code_Id_Order_By = { + id?: Maybe; +}; + +/** select columns of table "cw20token_code_id" */ +export enum Cw20token_Code_Id_Select_Column { + /** column name */ + Id = 'id' +} + +/** columns and relationships of "cw20token_info" */ +export type Cw20token_Info = { + __typename?: 'cw20token_info'; + address: Scalars['String']; + /** An array relationship */ + balances: Array; + /** An aggregate relationship */ + balances_aggregate: Cw20token_Balance_Aggregate; + circulating_supply: Scalars['String']; + code_id: Scalars['Int']; + creator: Scalars['String']; + decimals: Scalars['Int']; + description?: Maybe; + initial_supply: Scalars['String']; + logo?: Maybe; + marketing_admin?: Maybe; + max_supply?: Maybe; + minter?: Maybe; + name: Scalars['String']; + project_url?: Maybe; + symbol: Scalars['String']; + type?: Maybe; +}; + + +/** columns and relationships of "cw20token_info" */ +export type Cw20token_InfoBalancesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "cw20token_info" */ +export type Cw20token_InfoBalances_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + +/** aggregated selection of "cw20token_info" */ +export type Cw20token_Info_Aggregate = { + __typename?: 'cw20token_info_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "cw20token_info" */ +export type Cw20token_Info_Aggregate_Fields = { + __typename?: 'cw20token_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; +}; + + +/** aggregate fields of "cw20token_info" */ +export type Cw20token_Info_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Cw20token_Info_Avg_Fields = { + __typename?: 'cw20token_info_avg_fields'; + code_id?: Maybe; + decimals?: Maybe; +}; + +/** Boolean expression to filter rows from the table "cw20token_info". All fields are combined with a logical 'AND'. */ +export type Cw20token_Info_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + address?: Maybe; + balances?: Maybe; + circulating_supply?: Maybe; + code_id?: Maybe; + creator?: Maybe; + decimals?: Maybe; + description?: Maybe; + initial_supply?: Maybe; + logo?: Maybe; + marketing_admin?: Maybe; + max_supply?: Maybe; + minter?: Maybe; + name?: Maybe; + project_url?: Maybe; + symbol?: Maybe; + type?: Maybe; +}; + +/** aggregate max on columns */ +export type Cw20token_Info_Max_Fields = { + __typename?: 'cw20token_info_max_fields'; + address?: Maybe; + circulating_supply?: Maybe; + code_id?: Maybe; + creator?: Maybe; + decimals?: Maybe; + description?: Maybe; + initial_supply?: Maybe; + logo?: Maybe; + marketing_admin?: Maybe; + max_supply?: Maybe; + minter?: Maybe; + name?: Maybe; + project_url?: Maybe; + symbol?: Maybe; + type?: Maybe; +}; + +/** aggregate min on columns */ +export type Cw20token_Info_Min_Fields = { + __typename?: 'cw20token_info_min_fields'; + address?: Maybe; + circulating_supply?: Maybe; + code_id?: Maybe; + creator?: Maybe; + decimals?: Maybe; + description?: Maybe; + initial_supply?: Maybe; + logo?: Maybe; + marketing_admin?: Maybe; + max_supply?: Maybe; + minter?: Maybe; + name?: Maybe; + project_url?: Maybe; + symbol?: Maybe; + type?: Maybe; +}; + +/** Ordering options when selecting data from "cw20token_info". */ +export type Cw20token_Info_Order_By = { + address?: Maybe; + balances_aggregate?: Maybe; + circulating_supply?: Maybe; + code_id?: Maybe; + creator?: Maybe; + decimals?: Maybe; + description?: Maybe; + initial_supply?: Maybe; + logo?: Maybe; + marketing_admin?: Maybe; + max_supply?: Maybe; + minter?: Maybe; + name?: Maybe; + project_url?: Maybe; + symbol?: Maybe; + type?: Maybe; +}; + +/** select columns of table "cw20token_info" */ +export enum Cw20token_Info_Select_Column { + /** column name */ + Address = 'address', + /** column name */ + CirculatingSupply = 'circulating_supply', + /** column name */ + CodeId = 'code_id', + /** column name */ + Creator = 'creator', + /** column name */ + Decimals = 'decimals', + /** column name */ + Description = 'description', + /** column name */ + InitialSupply = 'initial_supply', + /** column name */ + Logo = 'logo', + /** column name */ + MarketingAdmin = 'marketing_admin', + /** column name */ + MaxSupply = 'max_supply', + /** column name */ + Minter = 'minter', + /** column name */ + Name = 'name', + /** column name */ + ProjectUrl = 'project_url', + /** column name */ + Symbol = 'symbol', + /** column name */ + Type = 'type' +} + +/** aggregate stddev on columns */ +export type Cw20token_Info_Stddev_Fields = { + __typename?: 'cw20token_info_stddev_fields'; + code_id?: Maybe; + decimals?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Cw20token_Info_Stddev_Pop_Fields = { + __typename?: 'cw20token_info_stddev_pop_fields'; + code_id?: Maybe; + decimals?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Cw20token_Info_Stddev_Samp_Fields = { + __typename?: 'cw20token_info_stddev_samp_fields'; + code_id?: Maybe; + decimals?: Maybe; +}; + +/** aggregate sum on columns */ +export type Cw20token_Info_Sum_Fields = { + __typename?: 'cw20token_info_sum_fields'; + code_id?: Maybe; + decimals?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Cw20token_Info_Var_Pop_Fields = { + __typename?: 'cw20token_info_var_pop_fields'; + code_id?: Maybe; + decimals?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Cw20token_Info_Var_Samp_Fields = { + __typename?: 'cw20token_info_var_samp_fields'; + code_id?: Maybe; + decimals?: Maybe; +}; + +/** aggregate variance on columns */ +export type Cw20token_Info_Variance_Fields = { + __typename?: 'cw20token_info_variance_fields'; + code_id?: Maybe; + decimals?: Maybe; +}; + /** columns and relationships of "delegation" */ export type Delegation = { __typename?: 'delegation'; @@ -2674,116 +3054,287 @@ export enum Delegation_Select_Column { ValidatorAddress = 'validator_address' } -/** columns and relationships of "distribution_params" */ -export type Distribution_Params = { - __typename?: 'distribution_params'; - height: Scalars['bigint']; - one_row_id: Scalars['Boolean']; - params: Scalars['jsonb']; +export type Denoms_By_Data_Property_Args = { + limit?: Maybe; + offset?: Maybe; + property_name?: Maybe; + property_value?: Maybe; +}; + +/** columns and relationships of "distinct_message" */ +export type Distinct_Message = { + __typename?: 'distinct_message'; + height?: Maybe; + index?: Maybe; + involved_accounts_addresses?: Maybe; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']; + type?: Maybe; + value?: Maybe; }; -/** columns and relationships of "distribution_params" */ -export type Distribution_ParamsParamsArgs = { +/** columns and relationships of "distinct_message" */ +export type Distinct_MessageValueArgs = { path?: Maybe; }; -/** aggregated selection of "distribution_params" */ -export type Distribution_Params_Aggregate = { - __typename?: 'distribution_params_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "distinct_message" */ +export type Distinct_Message_Aggregate = { + __typename?: 'distinct_message_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "distribution_params" */ -export type Distribution_Params_Aggregate_Fields = { - __typename?: 'distribution_params_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "distinct_message" */ +export type Distinct_Message_Aggregate_Fields = { + __typename?: 'distinct_message_aggregate_fields'; + avg?: Maybe; count: Scalars['Int']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; -/** aggregate fields of "distribution_params" */ -export type Distribution_Params_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "distinct_message" */ +export type Distinct_Message_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; /** aggregate avg on columns */ -export type Distribution_Params_Avg_Fields = { - __typename?: 'distribution_params_avg_fields'; +export type Distinct_Message_Avg_Fields = { + __typename?: 'distinct_message_avg_fields'; height?: Maybe; + index?: Maybe; }; -/** Boolean expression to filter rows from the table "distribution_params". All fields are combined with a logical 'AND'. */ -export type Distribution_Params_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; +/** Boolean expression to filter rows from the table "distinct_message". All fields are combined with a logical 'AND'. */ +export type Distinct_Message_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; + index?: Maybe; + involved_accounts_addresses?: Maybe<_Text_Comparison_Exp>; + transaction?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; + value?: Maybe; }; /** aggregate max on columns */ -export type Distribution_Params_Max_Fields = { - __typename?: 'distribution_params_max_fields'; +export type Distinct_Message_Max_Fields = { + __typename?: 'distinct_message_max_fields'; height?: Maybe; + index?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; }; /** aggregate min on columns */ -export type Distribution_Params_Min_Fields = { - __typename?: 'distribution_params_min_fields'; +export type Distinct_Message_Min_Fields = { + __typename?: 'distinct_message_min_fields'; height?: Maybe; + index?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; }; -/** Ordering options when selecting data from "distribution_params". */ -export type Distribution_Params_Order_By = { +/** Ordering options when selecting data from "distinct_message". */ +export type Distinct_Message_Order_By = { height?: Maybe; - one_row_id?: Maybe; - params?: Maybe; + index?: Maybe; + involved_accounts_addresses?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; + value?: Maybe; }; -/** select columns of table "distribution_params" */ -export enum Distribution_Params_Select_Column { +/** select columns of table "distinct_message" */ +export enum Distinct_Message_Select_Column { /** column name */ Height = 'height', /** column name */ - OneRowId = 'one_row_id', + Index = 'index', /** column name */ - Params = 'params' + InvolvedAccountsAddresses = 'involved_accounts_addresses', + /** column name */ + TransactionHash = 'transaction_hash', + /** column name */ + Type = 'type', + /** column name */ + Value = 'value' } /** aggregate stddev on columns */ -export type Distribution_Params_Stddev_Fields = { - __typename?: 'distribution_params_stddev_fields'; +export type Distinct_Message_Stddev_Fields = { + __typename?: 'distinct_message_stddev_fields'; height?: Maybe; + index?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Distribution_Params_Stddev_Pop_Fields = { - __typename?: 'distribution_params_stddev_pop_fields'; +export type Distinct_Message_Stddev_Pop_Fields = { + __typename?: 'distinct_message_stddev_pop_fields'; height?: Maybe; + index?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Distribution_Params_Stddev_Samp_Fields = { - __typename?: 'distribution_params_stddev_samp_fields'; +export type Distinct_Message_Stddev_Samp_Fields = { + __typename?: 'distinct_message_stddev_samp_fields'; height?: Maybe; + index?: Maybe; }; /** aggregate sum on columns */ -export type Distribution_Params_Sum_Fields = { - __typename?: 'distribution_params_sum_fields'; +export type Distinct_Message_Sum_Fields = { + __typename?: 'distinct_message_sum_fields'; + height?: Maybe; + index?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Distinct_Message_Var_Pop_Fields = { + __typename?: 'distinct_message_var_pop_fields'; + height?: Maybe; + index?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Distinct_Message_Var_Samp_Fields = { + __typename?: 'distinct_message_var_samp_fields'; + height?: Maybe; + index?: Maybe; +}; + +/** aggregate variance on columns */ +export type Distinct_Message_Variance_Fields = { + __typename?: 'distinct_message_variance_fields'; + height?: Maybe; + index?: Maybe; +}; + +/** columns and relationships of "distribution_params" */ +export type Distribution_Params = { + __typename?: 'distribution_params'; + height: Scalars['bigint']; + one_row_id: Scalars['Boolean']; + params: Scalars['jsonb']; +}; + + +/** columns and relationships of "distribution_params" */ +export type Distribution_ParamsParamsArgs = { + path?: Maybe; +}; + +/** aggregated selection of "distribution_params" */ +export type Distribution_Params_Aggregate = { + __typename?: 'distribution_params_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "distribution_params" */ +export type Distribution_Params_Aggregate_Fields = { + __typename?: 'distribution_params_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "distribution_params" */ +export type Distribution_Params_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Distribution_Params_Avg_Fields = { + __typename?: 'distribution_params_avg_fields'; + height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "distribution_params". All fields are combined with a logical 'AND'. */ +export type Distribution_Params_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + height?: Maybe; + one_row_id?: Maybe; + params?: Maybe; +}; + +/** aggregate max on columns */ +export type Distribution_Params_Max_Fields = { + __typename?: 'distribution_params_max_fields'; + height?: Maybe; +}; + +/** aggregate min on columns */ +export type Distribution_Params_Min_Fields = { + __typename?: 'distribution_params_min_fields'; + height?: Maybe; +}; + +/** Ordering options when selecting data from "distribution_params". */ +export type Distribution_Params_Order_By = { + height?: Maybe; + one_row_id?: Maybe; + params?: Maybe; +}; + +/** select columns of table "distribution_params" */ +export enum Distribution_Params_Select_Column { + /** column name */ + Height = 'height', + /** column name */ + OneRowId = 'one_row_id', + /** column name */ + Params = 'params' +} + +/** aggregate stddev on columns */ +export type Distribution_Params_Stddev_Fields = { + __typename?: 'distribution_params_stddev_fields'; + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Distribution_Params_Stddev_Pop_Fields = { + __typename?: 'distribution_params_stddev_pop_fields'; + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Distribution_Params_Stddev_Samp_Fields = { + __typename?: 'distribution_params_stddev_samp_fields'; + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type Distribution_Params_Sum_Fields = { + __typename?: 'distribution_params_sum_fields'; height?: Maybe; }; @@ -3849,172 +4400,1852 @@ export type Gravity_Messages_By_Address_Args = { receiver_addr?: Maybe; }; -/** columns and relationships of "inflation" */ -export type Inflation = { - __typename?: 'inflation'; - height: Scalars['bigint']; - value: Scalars['numeric']; +/** columns and relationships of "group_member" */ +export type Group_Member = { + __typename?: 'group_member'; + add_time: Scalars['timestamp']; + address: Scalars['String']; + group_id: Scalars['Int']; + /** An array relationship */ + group_proposal_votes: Array; + /** An aggregate relationship */ + group_proposal_votes_aggregate: Group_Proposal_Vote_Aggregate; + /** An object relationship */ + group_with_policy: Group_With_Policy; + metadata?: Maybe; + weight: Scalars['Int']; }; -/** aggregated selection of "inflation" */ -export type Inflation_Aggregate = { - __typename?: 'inflation_aggregate'; - aggregate?: Maybe; - nodes: Array; + +/** columns and relationships of "group_member" */ +export type Group_MemberGroup_Proposal_VotesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -/** aggregate fields of "inflation" */ -export type Inflation_Aggregate_Fields = { - __typename?: 'inflation_aggregate_fields'; - avg?: Maybe; + +/** columns and relationships of "group_member" */ +export type Group_MemberGroup_Proposal_Votes_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + +/** aggregated selection of "group_member" */ +export type Group_Member_Aggregate = { + __typename?: 'group_member_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "group_member" */ +export type Group_Member_Aggregate_Fields = { + __typename?: 'group_member_aggregate_fields'; + avg?: Maybe; count: Scalars['Int']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; -/** aggregate fields of "inflation" */ -export type Inflation_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "group_member" */ +export type Group_Member_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; +/** order by aggregate values of table "group_member" */ +export type Group_Member_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + /** aggregate avg on columns */ -export type Inflation_Avg_Fields = { - __typename?: 'inflation_avg_fields'; - height?: Maybe; - value?: Maybe; +export type Group_Member_Avg_Fields = { + __typename?: 'group_member_avg_fields'; + group_id?: Maybe; + weight?: Maybe; }; -/** Boolean expression to filter rows from the table "inflation". All fields are combined with a logical 'AND'. */ -export type Inflation_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; - height?: Maybe; - value?: Maybe; +/** order by avg() on columns of table "group_member" */ +export type Group_Member_Avg_Order_By = { + group_id?: Maybe; + weight?: Maybe; +}; + +/** Boolean expression to filter rows from the table "group_member". All fields are combined with a logical 'AND'. */ +export type Group_Member_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + add_time?: Maybe; + address?: Maybe; + group_id?: Maybe; + group_proposal_votes?: Maybe; + group_with_policy?: Maybe; + metadata?: Maybe; + weight?: Maybe; }; /** aggregate max on columns */ -export type Inflation_Max_Fields = { - __typename?: 'inflation_max_fields'; - height?: Maybe; - value?: Maybe; +export type Group_Member_Max_Fields = { + __typename?: 'group_member_max_fields'; + add_time?: Maybe; + address?: Maybe; + group_id?: Maybe; + metadata?: Maybe; + weight?: Maybe; +}; + +/** order by max() on columns of table "group_member" */ +export type Group_Member_Max_Order_By = { + add_time?: Maybe; + address?: Maybe; + group_id?: Maybe; + metadata?: Maybe; + weight?: Maybe; }; /** aggregate min on columns */ -export type Inflation_Min_Fields = { - __typename?: 'inflation_min_fields'; - height?: Maybe; - value?: Maybe; +export type Group_Member_Min_Fields = { + __typename?: 'group_member_min_fields'; + add_time?: Maybe; + address?: Maybe; + group_id?: Maybe; + metadata?: Maybe; + weight?: Maybe; }; -/** Ordering options when selecting data from "inflation". */ -export type Inflation_Order_By = { - height?: Maybe; - value?: Maybe; +/** order by min() on columns of table "group_member" */ +export type Group_Member_Min_Order_By = { + add_time?: Maybe; + address?: Maybe; + group_id?: Maybe; + metadata?: Maybe; + weight?: Maybe; }; -/** select columns of table "inflation" */ -export enum Inflation_Select_Column { +/** Ordering options when selecting data from "group_member". */ +export type Group_Member_Order_By = { + add_time?: Maybe; + address?: Maybe; + group_id?: Maybe; + group_proposal_votes_aggregate?: Maybe; + group_with_policy?: Maybe; + metadata?: Maybe; + weight?: Maybe; +}; + +/** select columns of table "group_member" */ +export enum Group_Member_Select_Column { /** column name */ - Height = 'height', + AddTime = 'add_time', /** column name */ - Value = 'value' + Address = 'address', + /** column name */ + GroupId = 'group_id', + /** column name */ + Metadata = 'metadata', + /** column name */ + Weight = 'weight' } /** aggregate stddev on columns */ -export type Inflation_Stddev_Fields = { - __typename?: 'inflation_stddev_fields'; - height?: Maybe; - value?: Maybe; +export type Group_Member_Stddev_Fields = { + __typename?: 'group_member_stddev_fields'; + group_id?: Maybe; + weight?: Maybe; +}; + +/** order by stddev() on columns of table "group_member" */ +export type Group_Member_Stddev_Order_By = { + group_id?: Maybe; + weight?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Inflation_Stddev_Pop_Fields = { - __typename?: 'inflation_stddev_pop_fields'; - height?: Maybe; - value?: Maybe; +export type Group_Member_Stddev_Pop_Fields = { + __typename?: 'group_member_stddev_pop_fields'; + group_id?: Maybe; + weight?: Maybe; +}; + +/** order by stddev_pop() on columns of table "group_member" */ +export type Group_Member_Stddev_Pop_Order_By = { + group_id?: Maybe; + weight?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Inflation_Stddev_Samp_Fields = { - __typename?: 'inflation_stddev_samp_fields'; - height?: Maybe; - value?: Maybe; +export type Group_Member_Stddev_Samp_Fields = { + __typename?: 'group_member_stddev_samp_fields'; + group_id?: Maybe; + weight?: Maybe; +}; + +/** order by stddev_samp() on columns of table "group_member" */ +export type Group_Member_Stddev_Samp_Order_By = { + group_id?: Maybe; + weight?: Maybe; }; /** aggregate sum on columns */ -export type Inflation_Sum_Fields = { - __typename?: 'inflation_sum_fields'; - height?: Maybe; - value?: Maybe; +export type Group_Member_Sum_Fields = { + __typename?: 'group_member_sum_fields'; + group_id?: Maybe; + weight?: Maybe; +}; + +/** order by sum() on columns of table "group_member" */ +export type Group_Member_Sum_Order_By = { + group_id?: Maybe; + weight?: Maybe; }; /** aggregate var_pop on columns */ -export type Inflation_Var_Pop_Fields = { - __typename?: 'inflation_var_pop_fields'; - height?: Maybe; - value?: Maybe; +export type Group_Member_Var_Pop_Fields = { + __typename?: 'group_member_var_pop_fields'; + group_id?: Maybe; + weight?: Maybe; +}; + +/** order by var_pop() on columns of table "group_member" */ +export type Group_Member_Var_Pop_Order_By = { + group_id?: Maybe; + weight?: Maybe; }; /** aggregate var_samp on columns */ -export type Inflation_Var_Samp_Fields = { - __typename?: 'inflation_var_samp_fields'; +export type Group_Member_Var_Samp_Fields = { + __typename?: 'group_member_var_samp_fields'; + group_id?: Maybe; + weight?: Maybe; +}; + +/** order by var_samp() on columns of table "group_member" */ +export type Group_Member_Var_Samp_Order_By = { + group_id?: Maybe; + weight?: Maybe; +}; + +/** aggregate variance on columns */ +export type Group_Member_Variance_Fields = { + __typename?: 'group_member_variance_fields'; + group_id?: Maybe; + weight?: Maybe; +}; + +/** order by variance() on columns of table "group_member" */ +export type Group_Member_Variance_Order_By = { + group_id?: Maybe; + weight?: Maybe; +}; + +/** columns and relationships of "group_proposal" */ +export type Group_Proposal = { + __typename?: 'group_proposal'; + /** An object relationship */ + block: Block; + execution_log?: Maybe; + execution_time?: Maybe; + executor?: Maybe; + executor_result: Scalars['proposal_executor_result']; + group_id: Scalars['Int']; + /** An array relationship */ + group_proposal_votes: Array; + /** An aggregate relationship */ + group_proposal_votes_aggregate: Group_Proposal_Vote_Aggregate; + /** An object relationship */ + group_with_policy: Group_With_Policy; + height: Scalars['bigint']; + id: Scalars['Int']; + member_count: Scalars['Int']; + messages: Scalars['jsonb']; + metadata?: Maybe; + proposer: Scalars['String']; + status: Scalars['proposal_status']; + submit_time: Scalars['timestamp']; + /** An object relationship */ + transaction?: Maybe; + transaction_hash?: Maybe; +}; + + +/** columns and relationships of "group_proposal" */ +export type Group_ProposalGroup_Proposal_VotesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "group_proposal" */ +export type Group_ProposalGroup_Proposal_Votes_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "group_proposal" */ +export type Group_ProposalMessagesArgs = { + path?: Maybe; +}; + +/** aggregated selection of "group_proposal" */ +export type Group_Proposal_Aggregate = { + __typename?: 'group_proposal_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "group_proposal" */ +export type Group_Proposal_Aggregate_Fields = { + __typename?: 'group_proposal_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "group_proposal" */ +export type Group_Proposal_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "group_proposal" */ +export type Group_Proposal_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Group_Proposal_Avg_Fields = { + __typename?: 'group_proposal_avg_fields'; + group_id?: Maybe; height?: Maybe; - value?: Maybe; + id?: Maybe; + member_count?: Maybe; +}; + +/** order by avg() on columns of table "group_proposal" */ +export type Group_Proposal_Avg_Order_By = { + group_id?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; +}; + +/** Boolean expression to filter rows from the table "group_proposal". All fields are combined with a logical 'AND'. */ +export type Group_Proposal_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + block?: Maybe; + execution_log?: Maybe; + execution_time?: Maybe; + executor?: Maybe; + executor_result?: Maybe; + group_id?: Maybe; + group_proposal_votes?: Maybe; + group_with_policy?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; + messages?: Maybe; + metadata?: Maybe; + proposer?: Maybe; + status?: Maybe; + submit_time?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; +}; + +/** aggregate max on columns */ +export type Group_Proposal_Max_Fields = { + __typename?: 'group_proposal_max_fields'; + execution_log?: Maybe; + execution_time?: Maybe; + executor?: Maybe; + group_id?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; + metadata?: Maybe; + proposer?: Maybe; + submit_time?: Maybe; + transaction_hash?: Maybe; +}; + +/** order by max() on columns of table "group_proposal" */ +export type Group_Proposal_Max_Order_By = { + execution_log?: Maybe; + execution_time?: Maybe; + executor?: Maybe; + group_id?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; + metadata?: Maybe; + proposer?: Maybe; + submit_time?: Maybe; + transaction_hash?: Maybe; +}; + +/** aggregate min on columns */ +export type Group_Proposal_Min_Fields = { + __typename?: 'group_proposal_min_fields'; + execution_log?: Maybe; + execution_time?: Maybe; + executor?: Maybe; + group_id?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; + metadata?: Maybe; + proposer?: Maybe; + submit_time?: Maybe; + transaction_hash?: Maybe; +}; + +/** order by min() on columns of table "group_proposal" */ +export type Group_Proposal_Min_Order_By = { + execution_log?: Maybe; + execution_time?: Maybe; + executor?: Maybe; + group_id?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; + metadata?: Maybe; + proposer?: Maybe; + submit_time?: Maybe; + transaction_hash?: Maybe; +}; + +/** Ordering options when selecting data from "group_proposal". */ +export type Group_Proposal_Order_By = { + block?: Maybe; + execution_log?: Maybe; + execution_time?: Maybe; + executor?: Maybe; + executor_result?: Maybe; + group_id?: Maybe; + group_proposal_votes_aggregate?: Maybe; + group_with_policy?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; + messages?: Maybe; + metadata?: Maybe; + proposer?: Maybe; + status?: Maybe; + submit_time?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; +}; + +/** select columns of table "group_proposal" */ +export enum Group_Proposal_Select_Column { + /** column name */ + ExecutionLog = 'execution_log', + /** column name */ + ExecutionTime = 'execution_time', + /** column name */ + Executor = 'executor', + /** column name */ + ExecutorResult = 'executor_result', + /** column name */ + GroupId = 'group_id', + /** column name */ + Height = 'height', + /** column name */ + Id = 'id', + /** column name */ + MemberCount = 'member_count', + /** column name */ + Messages = 'messages', + /** column name */ + Metadata = 'metadata', + /** column name */ + Proposer = 'proposer', + /** column name */ + Status = 'status', + /** column name */ + SubmitTime = 'submit_time', + /** column name */ + TransactionHash = 'transaction_hash' +} + +/** aggregate stddev on columns */ +export type Group_Proposal_Stddev_Fields = { + __typename?: 'group_proposal_stddev_fields'; + group_id?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; +}; + +/** order by stddev() on columns of table "group_proposal" */ +export type Group_Proposal_Stddev_Order_By = { + group_id?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Group_Proposal_Stddev_Pop_Fields = { + __typename?: 'group_proposal_stddev_pop_fields'; + group_id?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; +}; + +/** order by stddev_pop() on columns of table "group_proposal" */ +export type Group_Proposal_Stddev_Pop_Order_By = { + group_id?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Group_Proposal_Stddev_Samp_Fields = { + __typename?: 'group_proposal_stddev_samp_fields'; + group_id?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; +}; + +/** order by stddev_samp() on columns of table "group_proposal" */ +export type Group_Proposal_Stddev_Samp_Order_By = { + group_id?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; +}; + +/** aggregate sum on columns */ +export type Group_Proposal_Sum_Fields = { + __typename?: 'group_proposal_sum_fields'; + group_id?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; +}; + +/** order by sum() on columns of table "group_proposal" */ +export type Group_Proposal_Sum_Order_By = { + group_id?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Group_Proposal_Var_Pop_Fields = { + __typename?: 'group_proposal_var_pop_fields'; + group_id?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; +}; + +/** order by var_pop() on columns of table "group_proposal" */ +export type Group_Proposal_Var_Pop_Order_By = { + group_id?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Group_Proposal_Var_Samp_Fields = { + __typename?: 'group_proposal_var_samp_fields'; + group_id?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; +}; + +/** order by var_samp() on columns of table "group_proposal" */ +export type Group_Proposal_Var_Samp_Order_By = { + group_id?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; +}; + +/** aggregate variance on columns */ +export type Group_Proposal_Variance_Fields = { + __typename?: 'group_proposal_variance_fields'; + group_id?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; +}; + +/** order by variance() on columns of table "group_proposal" */ +export type Group_Proposal_Variance_Order_By = { + group_id?: Maybe; + height?: Maybe; + id?: Maybe; + member_count?: Maybe; +}; + +/** columns and relationships of "group_proposal_vote" */ +export type Group_Proposal_Vote = { + __typename?: 'group_proposal_vote'; + group_id: Scalars['Int']; + /** An object relationship */ + group_member?: Maybe; + /** An object relationship */ + group_proposal: Group_Proposal; + proposal_id: Scalars['Int']; + submit_time: Scalars['timestamp']; + vote_metadata?: Maybe; + vote_option: Scalars['vote_option']; + voter: Scalars['String']; +}; + +/** aggregated selection of "group_proposal_vote" */ +export type Group_Proposal_Vote_Aggregate = { + __typename?: 'group_proposal_vote_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "group_proposal_vote" */ +export type Group_Proposal_Vote_Aggregate_Fields = { + __typename?: 'group_proposal_vote_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "group_proposal_vote" */ +export type Group_Proposal_Vote_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** order by aggregate values of table "group_proposal_vote" */ +export type Group_Proposal_Vote_Aggregate_Order_By = { + avg?: Maybe; + count?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate avg on columns */ +export type Group_Proposal_Vote_Avg_Fields = { + __typename?: 'group_proposal_vote_avg_fields'; + group_id?: Maybe; + proposal_id?: Maybe; +}; + +/** order by avg() on columns of table "group_proposal_vote" */ +export type Group_Proposal_Vote_Avg_Order_By = { + group_id?: Maybe; + proposal_id?: Maybe; +}; + +/** Boolean expression to filter rows from the table "group_proposal_vote". All fields are combined with a logical 'AND'. */ +export type Group_Proposal_Vote_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + group_id?: Maybe; + group_member?: Maybe; + group_proposal?: Maybe; + proposal_id?: Maybe; + submit_time?: Maybe; + vote_metadata?: Maybe; + vote_option?: Maybe; + voter?: Maybe; +}; + +/** aggregate max on columns */ +export type Group_Proposal_Vote_Max_Fields = { + __typename?: 'group_proposal_vote_max_fields'; + group_id?: Maybe; + proposal_id?: Maybe; + submit_time?: Maybe; + vote_metadata?: Maybe; + voter?: Maybe; +}; + +/** order by max() on columns of table "group_proposal_vote" */ +export type Group_Proposal_Vote_Max_Order_By = { + group_id?: Maybe; + proposal_id?: Maybe; + submit_time?: Maybe; + vote_metadata?: Maybe; + voter?: Maybe; +}; + +/** aggregate min on columns */ +export type Group_Proposal_Vote_Min_Fields = { + __typename?: 'group_proposal_vote_min_fields'; + group_id?: Maybe; + proposal_id?: Maybe; + submit_time?: Maybe; + vote_metadata?: Maybe; + voter?: Maybe; +}; + +/** order by min() on columns of table "group_proposal_vote" */ +export type Group_Proposal_Vote_Min_Order_By = { + group_id?: Maybe; + proposal_id?: Maybe; + submit_time?: Maybe; + vote_metadata?: Maybe; + voter?: Maybe; +}; + +/** Ordering options when selecting data from "group_proposal_vote". */ +export type Group_Proposal_Vote_Order_By = { + group_id?: Maybe; + group_member?: Maybe; + group_proposal?: Maybe; + proposal_id?: Maybe; + submit_time?: Maybe; + vote_metadata?: Maybe; + vote_option?: Maybe; + voter?: Maybe; +}; + +/** select columns of table "group_proposal_vote" */ +export enum Group_Proposal_Vote_Select_Column { + /** column name */ + GroupId = 'group_id', + /** column name */ + ProposalId = 'proposal_id', + /** column name */ + SubmitTime = 'submit_time', + /** column name */ + VoteMetadata = 'vote_metadata', + /** column name */ + VoteOption = 'vote_option', + /** column name */ + Voter = 'voter' +} + +/** aggregate stddev on columns */ +export type Group_Proposal_Vote_Stddev_Fields = { + __typename?: 'group_proposal_vote_stddev_fields'; + group_id?: Maybe; + proposal_id?: Maybe; +}; + +/** order by stddev() on columns of table "group_proposal_vote" */ +export type Group_Proposal_Vote_Stddev_Order_By = { + group_id?: Maybe; + proposal_id?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Group_Proposal_Vote_Stddev_Pop_Fields = { + __typename?: 'group_proposal_vote_stddev_pop_fields'; + group_id?: Maybe; + proposal_id?: Maybe; +}; + +/** order by stddev_pop() on columns of table "group_proposal_vote" */ +export type Group_Proposal_Vote_Stddev_Pop_Order_By = { + group_id?: Maybe; + proposal_id?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Group_Proposal_Vote_Stddev_Samp_Fields = { + __typename?: 'group_proposal_vote_stddev_samp_fields'; + group_id?: Maybe; + proposal_id?: Maybe; +}; + +/** order by stddev_samp() on columns of table "group_proposal_vote" */ +export type Group_Proposal_Vote_Stddev_Samp_Order_By = { + group_id?: Maybe; + proposal_id?: Maybe; +}; + +/** aggregate sum on columns */ +export type Group_Proposal_Vote_Sum_Fields = { + __typename?: 'group_proposal_vote_sum_fields'; + group_id?: Maybe; + proposal_id?: Maybe; +}; + +/** order by sum() on columns of table "group_proposal_vote" */ +export type Group_Proposal_Vote_Sum_Order_By = { + group_id?: Maybe; + proposal_id?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Group_Proposal_Vote_Var_Pop_Fields = { + __typename?: 'group_proposal_vote_var_pop_fields'; + group_id?: Maybe; + proposal_id?: Maybe; +}; + +/** order by var_pop() on columns of table "group_proposal_vote" */ +export type Group_Proposal_Vote_Var_Pop_Order_By = { + group_id?: Maybe; + proposal_id?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Group_Proposal_Vote_Var_Samp_Fields = { + __typename?: 'group_proposal_vote_var_samp_fields'; + group_id?: Maybe; + proposal_id?: Maybe; +}; + +/** order by var_samp() on columns of table "group_proposal_vote" */ +export type Group_Proposal_Vote_Var_Samp_Order_By = { + group_id?: Maybe; + proposal_id?: Maybe; +}; + +/** aggregate variance on columns */ +export type Group_Proposal_Vote_Variance_Fields = { + __typename?: 'group_proposal_vote_variance_fields'; + group_id?: Maybe; + proposal_id?: Maybe; +}; + +/** order by variance() on columns of table "group_proposal_vote" */ +export type Group_Proposal_Vote_Variance_Order_By = { + group_id?: Maybe; + proposal_id?: Maybe; +}; + +/** columns and relationships of "group_with_policy" */ +export type Group_With_Policy = { + __typename?: 'group_with_policy'; + address: Scalars['String']; + /** An array relationship */ + group_members: Array; + /** An aggregate relationship */ + group_members_aggregate: Group_Member_Aggregate; + group_metadata?: Maybe; + /** An array relationship */ + group_proposals: Array; + /** An aggregate relationship */ + group_proposals_aggregate: Group_Proposal_Aggregate; + id: Scalars['Int']; + min_execution_period: Scalars['bigint']; + policy_metadata?: Maybe; + threshold: Scalars['Int']; + voting_period: Scalars['bigint']; +}; + + +/** columns and relationships of "group_with_policy" */ +export type Group_With_PolicyGroup_MembersArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "group_with_policy" */ +export type Group_With_PolicyGroup_Members_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "group_with_policy" */ +export type Group_With_PolicyGroup_ProposalsArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +/** columns and relationships of "group_with_policy" */ +export type Group_With_PolicyGroup_Proposals_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + +/** aggregated selection of "group_with_policy" */ +export type Group_With_Policy_Aggregate = { + __typename?: 'group_with_policy_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "group_with_policy" */ +export type Group_With_Policy_Aggregate_Fields = { + __typename?: 'group_with_policy_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 "group_with_policy" */ +export type Group_With_Policy_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Group_With_Policy_Avg_Fields = { + __typename?: 'group_with_policy_avg_fields'; + id?: Maybe; + min_execution_period?: Maybe; + threshold?: Maybe; + voting_period?: Maybe; +}; + +/** Boolean expression to filter rows from the table "group_with_policy". All fields are combined with a logical 'AND'. */ +export type Group_With_Policy_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + address?: Maybe; + group_members?: Maybe; + group_metadata?: Maybe; + group_proposals?: Maybe; + id?: Maybe; + min_execution_period?: Maybe; + policy_metadata?: Maybe; + threshold?: Maybe; + voting_period?: Maybe; +}; + +/** aggregate max on columns */ +export type Group_With_Policy_Max_Fields = { + __typename?: 'group_with_policy_max_fields'; + address?: Maybe; + group_metadata?: Maybe; + id?: Maybe; + min_execution_period?: Maybe; + policy_metadata?: Maybe; + threshold?: Maybe; + voting_period?: Maybe; +}; + +/** aggregate min on columns */ +export type Group_With_Policy_Min_Fields = { + __typename?: 'group_with_policy_min_fields'; + address?: Maybe; + group_metadata?: Maybe; + id?: Maybe; + min_execution_period?: Maybe; + policy_metadata?: Maybe; + threshold?: Maybe; + voting_period?: Maybe; +}; + +/** Ordering options when selecting data from "group_with_policy". */ +export type Group_With_Policy_Order_By = { + address?: Maybe; + group_members_aggregate?: Maybe; + group_metadata?: Maybe; + group_proposals_aggregate?: Maybe; + id?: Maybe; + min_execution_period?: Maybe; + policy_metadata?: Maybe; + threshold?: Maybe; + voting_period?: Maybe; +}; + +/** select columns of table "group_with_policy" */ +export enum Group_With_Policy_Select_Column { + /** column name */ + Address = 'address', + /** column name */ + GroupMetadata = 'group_metadata', + /** column name */ + Id = 'id', + /** column name */ + MinExecutionPeriod = 'min_execution_period', + /** column name */ + PolicyMetadata = 'policy_metadata', + /** column name */ + Threshold = 'threshold', + /** column name */ + VotingPeriod = 'voting_period' +} + +/** aggregate stddev on columns */ +export type Group_With_Policy_Stddev_Fields = { + __typename?: 'group_with_policy_stddev_fields'; + id?: Maybe; + min_execution_period?: Maybe; + threshold?: Maybe; + voting_period?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Group_With_Policy_Stddev_Pop_Fields = { + __typename?: 'group_with_policy_stddev_pop_fields'; + id?: Maybe; + min_execution_period?: Maybe; + threshold?: Maybe; + voting_period?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Group_With_Policy_Stddev_Samp_Fields = { + __typename?: 'group_with_policy_stddev_samp_fields'; + id?: Maybe; + min_execution_period?: Maybe; + threshold?: Maybe; + voting_period?: Maybe; +}; + +/** aggregate sum on columns */ +export type Group_With_Policy_Sum_Fields = { + __typename?: 'group_with_policy_sum_fields'; + id?: Maybe; + min_execution_period?: Maybe; + threshold?: Maybe; + voting_period?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Group_With_Policy_Var_Pop_Fields = { + __typename?: 'group_with_policy_var_pop_fields'; + id?: Maybe; + min_execution_period?: Maybe; + threshold?: Maybe; + voting_period?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Group_With_Policy_Var_Samp_Fields = { + __typename?: 'group_with_policy_var_samp_fields'; + id?: Maybe; + min_execution_period?: Maybe; + threshold?: Maybe; + voting_period?: Maybe; +}; + +/** aggregate variance on columns */ +export type Group_With_Policy_Variance_Fields = { + __typename?: 'group_with_policy_variance_fields'; + id?: Maybe; + min_execution_period?: Maybe; + threshold?: Maybe; + voting_period?: Maybe; +}; + +/** columns and relationships of "inflation" */ +export type Inflation = { + __typename?: 'inflation'; + height: Scalars['bigint']; + value: Scalars['numeric']; +}; + +/** aggregated selection of "inflation" */ +export type Inflation_Aggregate = { + __typename?: 'inflation_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "inflation" */ +export type Inflation_Aggregate_Fields = { + __typename?: 'inflation_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "inflation" */ +export type Inflation_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Inflation_Avg_Fields = { + __typename?: 'inflation_avg_fields'; + height?: Maybe; + value?: Maybe; +}; + +/** Boolean expression to filter rows from the table "inflation". All fields are combined with a logical 'AND'. */ +export type Inflation_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + height?: Maybe; + value?: Maybe; +}; + +/** aggregate max on columns */ +export type Inflation_Max_Fields = { + __typename?: 'inflation_max_fields'; + height?: Maybe; + value?: Maybe; +}; + +/** aggregate min on columns */ +export type Inflation_Min_Fields = { + __typename?: 'inflation_min_fields'; + height?: Maybe; + value?: Maybe; +}; + +/** Ordering options when selecting data from "inflation". */ +export type Inflation_Order_By = { + height?: Maybe; + value?: Maybe; +}; + +/** select columns of table "inflation" */ +export enum Inflation_Select_Column { + /** column name */ + Height = 'height', + /** column name */ + Value = 'value' +} + +/** aggregate stddev on columns */ +export type Inflation_Stddev_Fields = { + __typename?: 'inflation_stddev_fields'; + height?: Maybe; + value?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Inflation_Stddev_Pop_Fields = { + __typename?: 'inflation_stddev_pop_fields'; + height?: Maybe; + value?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Inflation_Stddev_Samp_Fields = { + __typename?: 'inflation_stddev_samp_fields'; + height?: Maybe; + value?: Maybe; +}; + +/** aggregate sum on columns */ +export type Inflation_Sum_Fields = { + __typename?: 'inflation_sum_fields'; + height?: Maybe; + value?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Inflation_Var_Pop_Fields = { + __typename?: 'inflation_var_pop_fields'; + height?: Maybe; + value?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Inflation_Var_Samp_Fields = { + __typename?: 'inflation_var_samp_fields'; + height?: Maybe; + value?: Maybe; +}; + +/** aggregate variance on columns */ +export type Inflation_Variance_Fields = { + __typename?: 'inflation_variance_fields'; + height?: Maybe; + value?: Maybe; +}; + + +/** Boolean expression to compare columns of type "json". All fields are combined with logical 'AND'. */ +export type Json_Comparison_Exp = { + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; +}; + + +/** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */ +export type Jsonb_Comparison_Exp = { + /** is the column contained in the given json value */ + _contained_in?: Maybe; + /** does the column contain the given json value at the top level */ + _contains?: Maybe; + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + /** does the string exist as a top-level key in the column */ + _has_key?: Maybe; + /** do all of these strings exist as top-level keys in the column */ + _has_keys_all?: Maybe>; + /** do any of these strings exist as top-level keys in the column */ + _has_keys_any?: Maybe>; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; +}; + +/** columns and relationships of "marketplace_collection" */ +export type Marketplace_Collection = { + __typename?: 'marketplace_collection'; + creator: Scalars['String']; + denom_id: Scalars['String']; + id: Scalars['bigint']; + mint_royalties: Scalars['String']; + /** An object relationship */ + nft_denom: Nft_Denom; + resale_royalties: Scalars['String']; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']; + verified: Scalars['Boolean']; +}; + +/** aggregated selection of "marketplace_collection" */ +export type Marketplace_Collection_Aggregate = { + __typename?: 'marketplace_collection_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "marketplace_collection" */ +export type Marketplace_Collection_Aggregate_Fields = { + __typename?: 'marketplace_collection_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 "marketplace_collection" */ +export type Marketplace_Collection_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Marketplace_Collection_Avg_Fields = { + __typename?: 'marketplace_collection_avg_fields'; + id?: Maybe; +}; + +/** Boolean expression to filter rows from the table "marketplace_collection". All fields are combined with a logical 'AND'. */ +export type Marketplace_Collection_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + creator?: Maybe; + denom_id?: Maybe; + id?: Maybe; + mint_royalties?: Maybe; + nft_denom?: Maybe; + resale_royalties?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; + verified?: Maybe; +}; + +/** aggregate max on columns */ +export type Marketplace_Collection_Max_Fields = { + __typename?: 'marketplace_collection_max_fields'; + creator?: Maybe; + denom_id?: Maybe; + id?: Maybe; + mint_royalties?: Maybe; + resale_royalties?: Maybe; + transaction_hash?: Maybe; +}; + +/** aggregate min on columns */ +export type Marketplace_Collection_Min_Fields = { + __typename?: 'marketplace_collection_min_fields'; + creator?: Maybe; + denom_id?: Maybe; + id?: Maybe; + mint_royalties?: Maybe; + resale_royalties?: Maybe; + transaction_hash?: Maybe; +}; + +/** Ordering options when selecting data from "marketplace_collection". */ +export type Marketplace_Collection_Order_By = { + creator?: Maybe; + denom_id?: Maybe; + id?: Maybe; + mint_royalties?: Maybe; + nft_denom?: Maybe; + resale_royalties?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; + verified?: Maybe; +}; + +/** select columns of table "marketplace_collection" */ +export enum Marketplace_Collection_Select_Column { + /** column name */ + Creator = 'creator', + /** column name */ + DenomId = 'denom_id', + /** column name */ + Id = 'id', + /** column name */ + MintRoyalties = 'mint_royalties', + /** column name */ + ResaleRoyalties = 'resale_royalties', + /** column name */ + TransactionHash = 'transaction_hash', + /** column name */ + Verified = 'verified' +} + +/** aggregate stddev on columns */ +export type Marketplace_Collection_Stddev_Fields = { + __typename?: 'marketplace_collection_stddev_fields'; + id?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Marketplace_Collection_Stddev_Pop_Fields = { + __typename?: 'marketplace_collection_stddev_pop_fields'; + id?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Marketplace_Collection_Stddev_Samp_Fields = { + __typename?: 'marketplace_collection_stddev_samp_fields'; + id?: Maybe; +}; + +/** aggregate sum on columns */ +export type Marketplace_Collection_Sum_Fields = { + __typename?: 'marketplace_collection_sum_fields'; + id?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Marketplace_Collection_Var_Pop_Fields = { + __typename?: 'marketplace_collection_var_pop_fields'; + id?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Marketplace_Collection_Var_Samp_Fields = { + __typename?: 'marketplace_collection_var_samp_fields'; + id?: Maybe; +}; + +/** aggregate variance on columns */ +export type Marketplace_Collection_Variance_Fields = { + __typename?: 'marketplace_collection_variance_fields'; + id?: Maybe; +}; + +/** columns and relationships of "marketplace_nft" */ +export type Marketplace_Nft = { + __typename?: 'marketplace_nft'; + creator: Scalars['String']; + denom_id: Scalars['String']; + id?: Maybe; + /** An object relationship */ + nft_denom: Nft_Denom; + /** An object relationship */ + nft_nft: Nft_Nft; + price?: Maybe; + token_id: Scalars['bigint']; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']; + uid?: Maybe; +}; + +/** aggregated selection of "marketplace_nft" */ +export type Marketplace_Nft_Aggregate = { + __typename?: 'marketplace_nft_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "marketplace_nft" */ +export type Marketplace_Nft_Aggregate_Fields = { + __typename?: 'marketplace_nft_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 "marketplace_nft" */ +export type Marketplace_Nft_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Marketplace_Nft_Avg_Fields = { + __typename?: 'marketplace_nft_avg_fields'; + id?: Maybe; + price?: Maybe; + token_id?: Maybe; +}; + +/** Boolean expression to filter rows from the table "marketplace_nft". All fields are combined with a logical 'AND'. */ +export type Marketplace_Nft_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + creator?: Maybe; + denom_id?: Maybe; + id?: Maybe; + nft_denom?: Maybe; + nft_nft?: Maybe; + price?: Maybe; + token_id?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; + uid?: Maybe; +}; + +/** columns and relationships of "marketplace_nft_buy_history" */ +export type Marketplace_Nft_Buy_History = { + __typename?: 'marketplace_nft_buy_history'; + btc_price: Scalars['numeric']; + buyer: Scalars['String']; + denom_id: Scalars['String']; + /** An object relationship */ + nft_denom: Nft_Denom; + /** An object relationship */ + nft_nft: Nft_Nft; + price: Scalars['numeric']; + seller: Scalars['String']; + timestamp: Scalars['bigint']; + token_id: Scalars['bigint']; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']; + usd_price: Scalars['numeric']; +}; + +/** aggregated selection of "marketplace_nft_buy_history" */ +export type Marketplace_Nft_Buy_History_Aggregate = { + __typename?: 'marketplace_nft_buy_history_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "marketplace_nft_buy_history" */ +export type Marketplace_Nft_Buy_History_Aggregate_Fields = { + __typename?: 'marketplace_nft_buy_history_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "marketplace_nft_buy_history" */ +export type Marketplace_Nft_Buy_History_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Marketplace_Nft_Buy_History_Avg_Fields = { + __typename?: 'marketplace_nft_buy_history_avg_fields'; + btc_price?: Maybe; + price?: Maybe; + timestamp?: Maybe; + token_id?: Maybe; + usd_price?: Maybe; +}; + +/** Boolean expression to filter rows from the table "marketplace_nft_buy_history". All fields are combined with a logical 'AND'. */ +export type Marketplace_Nft_Buy_History_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + btc_price?: Maybe; + buyer?: Maybe; + denom_id?: Maybe; + nft_denom?: Maybe; + nft_nft?: Maybe; + price?: Maybe; + seller?: Maybe; + timestamp?: Maybe; + token_id?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; + usd_price?: Maybe; +}; + +/** aggregate max on columns */ +export type Marketplace_Nft_Buy_History_Max_Fields = { + __typename?: 'marketplace_nft_buy_history_max_fields'; + btc_price?: Maybe; + buyer?: Maybe; + denom_id?: Maybe; + price?: Maybe; + seller?: Maybe; + timestamp?: Maybe; + token_id?: Maybe; + transaction_hash?: Maybe; + usd_price?: Maybe; +}; + +/** aggregate min on columns */ +export type Marketplace_Nft_Buy_History_Min_Fields = { + __typename?: 'marketplace_nft_buy_history_min_fields'; + btc_price?: Maybe; + buyer?: Maybe; + denom_id?: Maybe; + price?: Maybe; + seller?: Maybe; + timestamp?: Maybe; + token_id?: Maybe; + transaction_hash?: Maybe; + usd_price?: Maybe; +}; + +/** Ordering options when selecting data from "marketplace_nft_buy_history". */ +export type Marketplace_Nft_Buy_History_Order_By = { + btc_price?: Maybe; + buyer?: Maybe; + denom_id?: Maybe; + nft_denom?: Maybe; + nft_nft?: Maybe; + price?: Maybe; + seller?: Maybe; + timestamp?: Maybe; + token_id?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; + usd_price?: Maybe; +}; + +/** select columns of table "marketplace_nft_buy_history" */ +export enum Marketplace_Nft_Buy_History_Select_Column { + /** column name */ + BtcPrice = 'btc_price', + /** column name */ + Buyer = 'buyer', + /** column name */ + DenomId = 'denom_id', + /** column name */ + Price = 'price', + /** column name */ + Seller = 'seller', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + TokenId = 'token_id', + /** column name */ + TransactionHash = 'transaction_hash', + /** column name */ + UsdPrice = 'usd_price' +} + +/** aggregate stddev on columns */ +export type Marketplace_Nft_Buy_History_Stddev_Fields = { + __typename?: 'marketplace_nft_buy_history_stddev_fields'; + btc_price?: Maybe; + price?: Maybe; + timestamp?: Maybe; + token_id?: Maybe; + usd_price?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Marketplace_Nft_Buy_History_Stddev_Pop_Fields = { + __typename?: 'marketplace_nft_buy_history_stddev_pop_fields'; + btc_price?: Maybe; + price?: Maybe; + timestamp?: Maybe; + token_id?: Maybe; + usd_price?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Marketplace_Nft_Buy_History_Stddev_Samp_Fields = { + __typename?: 'marketplace_nft_buy_history_stddev_samp_fields'; + btc_price?: Maybe; + price?: Maybe; + timestamp?: Maybe; + token_id?: Maybe; + usd_price?: Maybe; +}; + +/** aggregate sum on columns */ +export type Marketplace_Nft_Buy_History_Sum_Fields = { + __typename?: 'marketplace_nft_buy_history_sum_fields'; + btc_price?: Maybe; + price?: Maybe; + timestamp?: Maybe; + token_id?: Maybe; + usd_price?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Marketplace_Nft_Buy_History_Var_Pop_Fields = { + __typename?: 'marketplace_nft_buy_history_var_pop_fields'; + btc_price?: Maybe; + price?: Maybe; + timestamp?: Maybe; + token_id?: Maybe; + usd_price?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Marketplace_Nft_Buy_History_Var_Samp_Fields = { + __typename?: 'marketplace_nft_buy_history_var_samp_fields'; + btc_price?: Maybe; + price?: Maybe; + timestamp?: Maybe; + token_id?: Maybe; + usd_price?: Maybe; +}; + +/** aggregate variance on columns */ +export type Marketplace_Nft_Buy_History_Variance_Fields = { + __typename?: 'marketplace_nft_buy_history_variance_fields'; + btc_price?: Maybe; + price?: Maybe; + timestamp?: Maybe; + token_id?: Maybe; + usd_price?: Maybe; +}; + +/** aggregate max on columns */ +export type Marketplace_Nft_Max_Fields = { + __typename?: 'marketplace_nft_max_fields'; + creator?: Maybe; + denom_id?: Maybe; + id?: Maybe; + price?: Maybe; + token_id?: Maybe; + transaction_hash?: Maybe; + uid?: Maybe; +}; + +/** aggregate min on columns */ +export type Marketplace_Nft_Min_Fields = { + __typename?: 'marketplace_nft_min_fields'; + creator?: Maybe; + denom_id?: Maybe; + id?: Maybe; + price?: Maybe; + token_id?: Maybe; + transaction_hash?: Maybe; + uid?: Maybe; +}; + +/** Ordering options when selecting data from "marketplace_nft". */ +export type Marketplace_Nft_Order_By = { + creator?: Maybe; + denom_id?: Maybe; + id?: Maybe; + nft_denom?: Maybe; + nft_nft?: Maybe; + price?: Maybe; + token_id?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; + uid?: Maybe; +}; + +/** select columns of table "marketplace_nft" */ +export enum Marketplace_Nft_Select_Column { + /** column name */ + Creator = 'creator', + /** column name */ + DenomId = 'denom_id', + /** column name */ + Id = 'id', + /** column name */ + Price = 'price', + /** column name */ + TokenId = 'token_id', + /** column name */ + TransactionHash = 'transaction_hash', + /** column name */ + Uid = 'uid' +} + +/** aggregate stddev on columns */ +export type Marketplace_Nft_Stddev_Fields = { + __typename?: 'marketplace_nft_stddev_fields'; + id?: Maybe; + price?: Maybe; + token_id?: Maybe; }; -/** aggregate variance on columns */ -export type Inflation_Variance_Fields = { - __typename?: 'inflation_variance_fields'; - height?: Maybe; - value?: Maybe; +/** aggregate stddev_pop on columns */ +export type Marketplace_Nft_Stddev_Pop_Fields = { + __typename?: 'marketplace_nft_stddev_pop_fields'; + id?: Maybe; + price?: Maybe; + token_id?: Maybe; }; +/** aggregate stddev_samp on columns */ +export type Marketplace_Nft_Stddev_Samp_Fields = { + __typename?: 'marketplace_nft_stddev_samp_fields'; + id?: Maybe; + price?: Maybe; + token_id?: Maybe; +}; -/** Boolean expression to compare columns of type "json". All fields are combined with logical 'AND'. */ -export type Json_Comparison_Exp = { - _eq?: Maybe; - _gt?: Maybe; - _gte?: Maybe; - _in?: Maybe>; - _is_null?: Maybe; - _lt?: Maybe; - _lte?: Maybe; - _neq?: Maybe; - _nin?: Maybe>; +/** aggregate sum on columns */ +export type Marketplace_Nft_Sum_Fields = { + __typename?: 'marketplace_nft_sum_fields'; + id?: Maybe; + price?: Maybe; + token_id?: Maybe; }; +/** aggregate var_pop on columns */ +export type Marketplace_Nft_Var_Pop_Fields = { + __typename?: 'marketplace_nft_var_pop_fields'; + id?: Maybe; + price?: Maybe; + token_id?: Maybe; +}; -/** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */ -export type Jsonb_Comparison_Exp = { - /** is the column contained in the given json value */ - _contained_in?: Maybe; - /** does the column contain the given json value at the top level */ - _contains?: Maybe; - _eq?: Maybe; - _gt?: Maybe; - _gte?: Maybe; - /** does the string exist as a top-level key in the column */ - _has_key?: Maybe; - /** do all of these strings exist as top-level keys in the column */ - _has_keys_all?: Maybe>; - /** do any of these strings exist as top-level keys in the column */ - _has_keys_any?: Maybe>; - _in?: Maybe>; - _is_null?: Maybe; - _lt?: Maybe; - _lte?: Maybe; - _neq?: Maybe; - _nin?: Maybe>; +/** aggregate var_samp on columns */ +export type Marketplace_Nft_Var_Samp_Fields = { + __typename?: 'marketplace_nft_var_samp_fields'; + id?: Maybe; + price?: Maybe; + token_id?: Maybe; +}; + +/** aggregate variance on columns */ +export type Marketplace_Nft_Variance_Fields = { + __typename?: 'marketplace_nft_variance_fields'; + id?: Maybe; + price?: Maybe; + token_id?: Maybe; }; /** columns and relationships of "message" */ @@ -4242,6 +6473,13 @@ export type Messages_By_Address_Args = { types?: Maybe; }; +export type Messages_By_Address_Distinct_On_Tx_Hash_Args = { + addresses?: Maybe; + limit?: Maybe; + offset?: Maybe; + types?: Maybe; +}; + /** columns and relationships of "mint_params" */ export type Mint_Params = { __typename?: 'mint_params'; @@ -4432,137 +6670,521 @@ export enum Modules_Select_Column { ModuleName = 'module_name' } -/** columns and relationships of "nft_mint" */ -export type Nft_Mint = { - __typename?: 'nft_mint'; +/** columns and relationships of "nft_denom" */ +export type Nft_Denom = { + __typename?: 'nft_denom'; + contract_address_signer: Scalars['String']; + data_json: Scalars['jsonb']; + data_text?: Maybe; + description?: Maybe; + id: Scalars['String']; + minter?: Maybe; + name: Scalars['String']; + owner: Scalars['String']; + schema: Scalars['String']; + symbol: Scalars['String']; + traits?: Maybe; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']; +}; + + +/** columns and relationships of "nft_denom" */ +export type Nft_DenomData_JsonArgs = { + path?: Maybe; +}; + +/** aggregated selection of "nft_denom" */ +export type Nft_Denom_Aggregate = { + __typename?: 'nft_denom_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "nft_denom" */ +export type Nft_Denom_Aggregate_Fields = { + __typename?: 'nft_denom_aggregate_fields'; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "nft_denom" */ +export type Nft_Denom_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** Boolean expression to filter rows from the table "nft_denom". All fields are combined with a logical 'AND'. */ +export type Nft_Denom_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + contract_address_signer?: Maybe; + data_json?: Maybe; + data_text?: Maybe; + description?: Maybe; + id?: Maybe; + minter?: Maybe; + name?: Maybe; + owner?: Maybe; + schema?: Maybe; + symbol?: Maybe; + traits?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; +}; + +/** aggregate max on columns */ +export type Nft_Denom_Max_Fields = { + __typename?: 'nft_denom_max_fields'; + contract_address_signer?: Maybe; + data_text?: Maybe; + description?: Maybe; + id?: Maybe; + minter?: Maybe; + name?: Maybe; + owner?: Maybe; + schema?: Maybe; + symbol?: Maybe; + traits?: Maybe; + transaction_hash?: Maybe; +}; + +/** aggregate min on columns */ +export type Nft_Denom_Min_Fields = { + __typename?: 'nft_denom_min_fields'; + contract_address_signer?: Maybe; + data_text?: Maybe; + description?: Maybe; + id?: Maybe; + minter?: Maybe; + name?: Maybe; + owner?: Maybe; + schema?: Maybe; + symbol?: Maybe; + traits?: Maybe; + transaction_hash?: Maybe; +}; + +/** Ordering options when selecting data from "nft_denom". */ +export type Nft_Denom_Order_By = { + contract_address_signer?: Maybe; + data_json?: Maybe; + data_text?: Maybe; + description?: Maybe; + id?: Maybe; + minter?: Maybe; + name?: Maybe; + owner?: Maybe; + schema?: Maybe; + symbol?: Maybe; + traits?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; +}; + +/** select columns of table "nft_denom" */ +export enum Nft_Denom_Select_Column { + /** column name */ + ContractAddressSigner = 'contract_address_signer', + /** column name */ + DataJson = 'data_json', + /** column name */ + DataText = 'data_text', + /** column name */ + Description = 'description', + /** column name */ + Id = 'id', + /** column name */ + Minter = 'minter', + /** column name */ + Name = 'name', + /** column name */ + Owner = 'owner', + /** column name */ + Schema = 'schema', + /** column name */ + Symbol = 'symbol', + /** column name */ + Traits = 'traits', + /** column name */ + TransactionHash = 'transaction_hash' +} + +/** columns and relationships of "nft_nft" */ +export type Nft_Nft = { + __typename?: 'nft_nft'; + burned?: Maybe; + contract_address_signer: Scalars['String']; + data_json: Scalars['jsonb']; + data_text: Scalars['String']; denom_id: Scalars['String']; - token_id: Scalars['bigint']; + id: Scalars['bigint']; + name: Scalars['String']; + /** An object relationship */ + nft_denom: Nft_Denom; + owner: Scalars['String']; + sender: Scalars['String']; /** An object relationship */ transaction: Transaction; transaction_hash: Scalars['String']; + uri: Scalars['String']; +}; + + +/** columns and relationships of "nft_nft" */ +export type Nft_NftData_JsonArgs = { + path?: Maybe; }; -/** aggregated selection of "nft_mint" */ -export type Nft_Mint_Aggregate = { - __typename?: 'nft_mint_aggregate'; - aggregate?: Maybe; - nodes: Array; +/** aggregated selection of "nft_nft" */ +export type Nft_Nft_Aggregate = { + __typename?: 'nft_nft_aggregate'; + aggregate?: Maybe; + nodes: Array; }; -/** aggregate fields of "nft_mint" */ -export type Nft_Mint_Aggregate_Fields = { - __typename?: 'nft_mint_aggregate_fields'; - avg?: Maybe; +/** aggregate fields of "nft_nft" */ +export type Nft_Nft_Aggregate_Fields = { + __typename?: 'nft_nft_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 "nft_mint" */ -export type Nft_Mint_Aggregate_FieldsCountArgs = { - columns?: Maybe>; +/** aggregate fields of "nft_nft" */ +export type Nft_Nft_Aggregate_FieldsCountArgs = { + columns?: Maybe>; distinct?: Maybe; }; /** aggregate avg on columns */ -export type Nft_Mint_Avg_Fields = { - __typename?: 'nft_mint_avg_fields'; - token_id?: Maybe; +export type Nft_Nft_Avg_Fields = { + __typename?: 'nft_nft_avg_fields'; + id?: Maybe; }; -/** Boolean expression to filter rows from the table "nft_mint". All fields are combined with a logical 'AND'. */ -export type Nft_Mint_Bool_Exp = { - _and?: Maybe>; - _not?: Maybe; - _or?: Maybe>; +/** Boolean expression to filter rows from the table "nft_nft". All fields are combined with a logical 'AND'. */ +export type Nft_Nft_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + burned?: Maybe; + contract_address_signer?: Maybe; + data_json?: Maybe; + data_text?: Maybe; denom_id?: Maybe; - token_id?: Maybe; + id?: Maybe; + name?: Maybe; + nft_denom?: Maybe; + owner?: Maybe; + sender?: Maybe; transaction?: Maybe; transaction_hash?: Maybe; + uri?: Maybe; }; /** aggregate max on columns */ -export type Nft_Mint_Max_Fields = { - __typename?: 'nft_mint_max_fields'; +export type Nft_Nft_Max_Fields = { + __typename?: 'nft_nft_max_fields'; + contract_address_signer?: Maybe; + data_text?: Maybe; denom_id?: Maybe; - token_id?: Maybe; + id?: Maybe; + name?: Maybe; + owner?: Maybe; + sender?: Maybe; transaction_hash?: Maybe; + uri?: Maybe; }; /** aggregate min on columns */ -export type Nft_Mint_Min_Fields = { - __typename?: 'nft_mint_min_fields'; +export type Nft_Nft_Min_Fields = { + __typename?: 'nft_nft_min_fields'; + contract_address_signer?: Maybe; + data_text?: Maybe; denom_id?: Maybe; - token_id?: Maybe; + id?: Maybe; + name?: Maybe; + owner?: Maybe; + sender?: Maybe; + transaction_hash?: Maybe; + uri?: Maybe; +}; + +/** Ordering options when selecting data from "nft_nft". */ +export type Nft_Nft_Order_By = { + burned?: Maybe; + contract_address_signer?: Maybe; + data_json?: Maybe; + data_text?: Maybe; + denom_id?: Maybe; + id?: Maybe; + name?: Maybe; + nft_denom?: Maybe; + owner?: Maybe; + sender?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; + uri?: Maybe; +}; + +/** select columns of table "nft_nft" */ +export enum Nft_Nft_Select_Column { + /** column name */ + Burned = 'burned', + /** column name */ + ContractAddressSigner = 'contract_address_signer', + /** column name */ + DataJson = 'data_json', + /** column name */ + DataText = 'data_text', + /** column name */ + DenomId = 'denom_id', + /** column name */ + Id = 'id', + /** column name */ + Name = 'name', + /** column name */ + Owner = 'owner', + /** column name */ + Sender = 'sender', + /** column name */ + TransactionHash = 'transaction_hash', + /** column name */ + Uri = 'uri' +} + +/** aggregate stddev on columns */ +export type Nft_Nft_Stddev_Fields = { + __typename?: 'nft_nft_stddev_fields'; + id?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Nft_Nft_Stddev_Pop_Fields = { + __typename?: 'nft_nft_stddev_pop_fields'; + id?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Nft_Nft_Stddev_Samp_Fields = { + __typename?: 'nft_nft_stddev_samp_fields'; + id?: Maybe; +}; + +/** aggregate sum on columns */ +export type Nft_Nft_Sum_Fields = { + __typename?: 'nft_nft_sum_fields'; + id?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Nft_Nft_Var_Pop_Fields = { + __typename?: 'nft_nft_var_pop_fields'; + id?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Nft_Nft_Var_Samp_Fields = { + __typename?: 'nft_nft_var_samp_fields'; + id?: Maybe; +}; + +/** aggregate variance on columns */ +export type Nft_Nft_Variance_Fields = { + __typename?: 'nft_nft_variance_fields'; + id?: Maybe; +}; + +/** columns and relationships of "nft_transfer_history" */ +export type Nft_Transfer_History = { + __typename?: 'nft_transfer_history'; + denom_id: Scalars['String']; + id: Scalars['bigint']; + new_owner: Scalars['String']; + /** An object relationship */ + nft_denom: Nft_Denom; + old_owner: Scalars['String']; + timestamp: Scalars['bigint']; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']; +}; + +/** aggregated selection of "nft_transfer_history" */ +export type Nft_Transfer_History_Aggregate = { + __typename?: 'nft_transfer_history_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "nft_transfer_history" */ +export type Nft_Transfer_History_Aggregate_Fields = { + __typename?: 'nft_transfer_history_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "nft_transfer_history" */ +export type Nft_Transfer_History_Aggregate_FieldsCountArgs = { + columns?: Maybe>; + distinct?: Maybe; +}; + +/** aggregate avg on columns */ +export type Nft_Transfer_History_Avg_Fields = { + __typename?: 'nft_transfer_history_avg_fields'; + id?: Maybe; + timestamp?: Maybe; +}; + +/** Boolean expression to filter rows from the table "nft_transfer_history". All fields are combined with a logical 'AND'. */ +export type Nft_Transfer_History_Bool_Exp = { + _and?: Maybe>; + _not?: Maybe; + _or?: Maybe>; + denom_id?: Maybe; + id?: Maybe; + new_owner?: Maybe; + nft_denom?: Maybe; + old_owner?: Maybe; + timestamp?: Maybe; + transaction?: Maybe; + transaction_hash?: Maybe; +}; + +/** aggregate max on columns */ +export type Nft_Transfer_History_Max_Fields = { + __typename?: 'nft_transfer_history_max_fields'; + denom_id?: Maybe; + id?: Maybe; + new_owner?: Maybe; + old_owner?: Maybe; + timestamp?: Maybe; + transaction_hash?: Maybe; +}; + +/** aggregate min on columns */ +export type Nft_Transfer_History_Min_Fields = { + __typename?: 'nft_transfer_history_min_fields'; + denom_id?: Maybe; + id?: Maybe; + new_owner?: Maybe; + old_owner?: Maybe; + timestamp?: Maybe; transaction_hash?: Maybe; }; -/** Ordering options when selecting data from "nft_mint". */ -export type Nft_Mint_Order_By = { +/** Ordering options when selecting data from "nft_transfer_history". */ +export type Nft_Transfer_History_Order_By = { denom_id?: Maybe; - token_id?: Maybe; + id?: Maybe; + new_owner?: Maybe; + nft_denom?: Maybe; + old_owner?: Maybe; + timestamp?: Maybe; transaction?: Maybe; transaction_hash?: Maybe; }; -/** select columns of table "nft_mint" */ -export enum Nft_Mint_Select_Column { +/** select columns of table "nft_transfer_history" */ +export enum Nft_Transfer_History_Select_Column { /** column name */ DenomId = 'denom_id', /** column name */ - TokenId = 'token_id', + Id = 'id', + /** column name */ + NewOwner = 'new_owner', + /** column name */ + OldOwner = 'old_owner', + /** column name */ + Timestamp = 'timestamp', /** column name */ TransactionHash = 'transaction_hash' } /** aggregate stddev on columns */ -export type Nft_Mint_Stddev_Fields = { - __typename?: 'nft_mint_stddev_fields'; - token_id?: Maybe; +export type Nft_Transfer_History_Stddev_Fields = { + __typename?: 'nft_transfer_history_stddev_fields'; + id?: Maybe; + timestamp?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Nft_Mint_Stddev_Pop_Fields = { - __typename?: 'nft_mint_stddev_pop_fields'; - token_id?: Maybe; +export type Nft_Transfer_History_Stddev_Pop_Fields = { + __typename?: 'nft_transfer_history_stddev_pop_fields'; + id?: Maybe; + timestamp?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Nft_Mint_Stddev_Samp_Fields = { - __typename?: 'nft_mint_stddev_samp_fields'; - token_id?: Maybe; +export type Nft_Transfer_History_Stddev_Samp_Fields = { + __typename?: 'nft_transfer_history_stddev_samp_fields'; + id?: Maybe; + timestamp?: Maybe; }; /** aggregate sum on columns */ -export type Nft_Mint_Sum_Fields = { - __typename?: 'nft_mint_sum_fields'; - token_id?: Maybe; +export type Nft_Transfer_History_Sum_Fields = { + __typename?: 'nft_transfer_history_sum_fields'; + id?: Maybe; + timestamp?: Maybe; }; /** aggregate var_pop on columns */ -export type Nft_Mint_Var_Pop_Fields = { - __typename?: 'nft_mint_var_pop_fields'; - token_id?: Maybe; +export type Nft_Transfer_History_Var_Pop_Fields = { + __typename?: 'nft_transfer_history_var_pop_fields'; + id?: Maybe; + timestamp?: Maybe; }; /** aggregate var_samp on columns */ -export type Nft_Mint_Var_Samp_Fields = { - __typename?: 'nft_mint_var_samp_fields'; - token_id?: Maybe; +export type Nft_Transfer_History_Var_Samp_Fields = { + __typename?: 'nft_transfer_history_var_samp_fields'; + id?: Maybe; + timestamp?: Maybe; }; /** aggregate variance on columns */ -export type Nft_Mint_Variance_Fields = { - __typename?: 'nft_mint_variance_fields'; - token_id?: Maybe; +export type Nft_Transfer_History_Variance_Fields = { + __typename?: 'nft_transfer_history_variance_fields'; + id?: Maybe; + timestamp?: Maybe; +}; + +export type Nfts_By_Data_Property_Args = { + limit?: Maybe; + offset?: Maybe; + property_name?: Maybe; +}; + +export type Nfts_By_Expiration_Date_Args = { + expiration_date?: Maybe; + limit?: Maybe; + offset?: Maybe; }; @@ -5285,6 +7907,20 @@ export type Proposal_Deposit_Variance_Order_By = { proposal_id?: Maybe; }; + +/** Boolean expression to compare columns of type "proposal_executor_result". All fields are combined with logical 'AND'. */ +export type Proposal_Executor_Result_Comparison_Exp = { + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; +}; + /** aggregate max on columns */ export type Proposal_Max_Fields = { __typename?: 'proposal_max_fields'; @@ -5562,6 +8198,20 @@ export type Proposal_Staking_Pool_Snapshot_Variance_Fields = { proposal_id?: Maybe; }; + +/** Boolean expression to compare columns of type "proposal_status". All fields are combined with logical 'AND'. */ +export type Proposal_Status_Comparison_Exp = { + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; +}; + /** aggregate stddev on columns */ export type Proposal_Stddev_Fields = { __typename?: 'proposal_stddev_fields'; @@ -6589,6 +9239,7 @@ export type Query_Root = { action_delegation_reward?: Maybe>>; action_delegation_total?: Maybe; action_delegator_withdraw_address: ActionAddress; + action_nft_transfer_events?: Maybe; action_redelegation?: Maybe; action_unbonding_delegation?: Maybe; action_unbonding_delegation_total?: Maybe; @@ -6666,12 +9317,34 @@ export type Query_Root = { cosmwasm_update_admin_aggregate: Cosmwasm_Update_Admin_Aggregate; /** fetch data from the table: "cosmwasm_update_admin" using primary key columns */ cosmwasm_update_admin_by_pk?: Maybe; + /** fetch data from the table: "cw20token_balance" */ + cw20token_balance: Array; + /** fetch aggregated fields from the table: "cw20token_balance" */ + cw20token_balance_aggregate: Cw20token_Balance_Aggregate; + /** fetch data from the table: "cw20token_balance" using primary key columns */ + cw20token_balance_by_pk?: Maybe; + /** fetch data from the table: "cw20token_code_id" */ + cw20token_code_id: Array; + /** fetch data from the table: "cw20token_code_id" using primary key columns */ + cw20token_code_id_by_pk?: Maybe; + /** fetch data from the table: "cw20token_info" */ + cw20token_info: Array; + /** fetch aggregated fields from the table: "cw20token_info" */ + cw20token_info_aggregate: Cw20token_Info_Aggregate; + /** fetch data from the table: "cw20token_info" using primary key columns */ + cw20token_info_by_pk?: Maybe; /** fetch data from the table: "delegation" */ delegation: Array; /** fetch aggregated fields from the table: "delegation" */ delegation_aggregate: Delegation_Aggregate; - /** fetch data from the table: "delegation" using primary key columns */ - delegation_by_pk?: Maybe; + /** execute function "denoms_by_data_property" which returns "nft_denom" */ + denoms_by_data_property: Array; + /** execute function "denoms_by_data_property" and query aggregates on result of table type "nft_denom" */ + denoms_by_data_property_aggregate: Nft_Denom_Aggregate; + /** fetch data from the table: "distinct_message" */ + distinct_message: Array; + /** fetch aggregated fields from the table: "distinct_message" */ + distinct_message_aggregate: Distinct_Message_Aggregate; /** fetch data from the table: "distribution_params" */ distribution_params: Array; /** fetch aggregated fields from the table: "distribution_params" */ @@ -6708,10 +9381,50 @@ export type Query_Root = { gravity_messages_by_address: Array; /** execute function "gravity_messages_by_address" and query aggregates on result of table type "message" */ gravity_messages_by_address_aggregate: Message_Aggregate; + /** fetch data from the table: "group_member" */ + group_member: Array; + /** fetch aggregated fields from the table: "group_member" */ + group_member_aggregate: Group_Member_Aggregate; + /** fetch data from the table: "group_member" using primary key columns */ + group_member_by_pk?: Maybe; + /** fetch data from the table: "group_proposal" */ + group_proposal: Array; + /** fetch aggregated fields from the table: "group_proposal" */ + group_proposal_aggregate: Group_Proposal_Aggregate; + /** fetch data from the table: "group_proposal" using primary key columns */ + group_proposal_by_pk?: Maybe; + /** fetch data from the table: "group_proposal_vote" */ + group_proposal_vote: Array; + /** fetch aggregated fields from the table: "group_proposal_vote" */ + group_proposal_vote_aggregate: Group_Proposal_Vote_Aggregate; + /** fetch data from the table: "group_proposal_vote" using primary key columns */ + group_proposal_vote_by_pk?: Maybe; + /** fetch data from the table: "group_with_policy" */ + group_with_policy: Array; + /** fetch aggregated fields from the table: "group_with_policy" */ + group_with_policy_aggregate: Group_With_Policy_Aggregate; + /** fetch data from the table: "group_with_policy" using primary key columns */ + group_with_policy_by_pk?: Maybe; /** fetch data from the table: "inflation" */ inflation: Array; /** fetch aggregated fields from the table: "inflation" */ inflation_aggregate: Inflation_Aggregate; + /** fetch data from the table: "marketplace_collection" */ + marketplace_collection: Array; + /** fetch aggregated fields from the table: "marketplace_collection" */ + marketplace_collection_aggregate: Marketplace_Collection_Aggregate; + /** fetch data from the table: "marketplace_collection" using primary key columns */ + marketplace_collection_by_pk?: Maybe; + /** fetch data from the table: "marketplace_nft" */ + marketplace_nft: Array; + /** fetch aggregated fields from the table: "marketplace_nft" */ + marketplace_nft_aggregate: Marketplace_Nft_Aggregate; + /** fetch data from the table: "marketplace_nft_buy_history" */ + marketplace_nft_buy_history: Array; + /** fetch aggregated fields from the table: "marketplace_nft_buy_history" */ + marketplace_nft_buy_history_aggregate: Marketplace_Nft_Buy_History_Aggregate; + /** fetch data from the table: "marketplace_nft" using primary key columns */ + marketplace_nft_by_pk?: Maybe; /** fetch data from the table: "message" */ message: Array; /** fetch aggregated fields from the table: "message" */ @@ -6720,6 +9433,10 @@ 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_address_distinct_on_tx_hash" which returns "distinct_message" */ + messages_by_address_distinct_on_tx_hash: Array; + /** execute function "messages_by_address_distinct_on_tx_hash" and query aggregates on result of table type "distinct_message" */ + messages_by_address_distinct_on_tx_hash_aggregate: Distinct_Message_Aggregate; /** fetch data from the table: "mint_params" */ mint_params: Array; /** fetch aggregated fields from the table: "mint_params" */ @@ -6732,12 +9449,30 @@ export type Query_Root = { modules_aggregate: Modules_Aggregate; /** fetch data from the table: "modules" using primary key columns */ modules_by_pk?: Maybe; - /** fetch data from the table: "nft_mint" */ - nft_mint: Array; - /** fetch aggregated fields from the table: "nft_mint" */ - nft_mint_aggregate: Nft_Mint_Aggregate; - /** fetch data from the table: "nft_mint" using primary key columns */ - nft_mint_by_pk?: Maybe; + /** fetch data from the table: "nft_denom" */ + nft_denom: Array; + /** fetch aggregated fields from the table: "nft_denom" */ + nft_denom_aggregate: Nft_Denom_Aggregate; + /** fetch data from the table: "nft_denom" using primary key columns */ + nft_denom_by_pk?: Maybe; + /** fetch data from the table: "nft_nft" */ + nft_nft: Array; + /** fetch aggregated fields from the table: "nft_nft" */ + nft_nft_aggregate: Nft_Nft_Aggregate; + /** fetch data from the table: "nft_nft" using primary key columns */ + nft_nft_by_pk?: Maybe; + /** fetch data from the table: "nft_transfer_history" */ + nft_transfer_history: Array; + /** fetch aggregated fields from the table: "nft_transfer_history" */ + nft_transfer_history_aggregate: Nft_Transfer_History_Aggregate; + /** execute function "nfts_by_data_property" which returns "nft_nft" */ + nfts_by_data_property: Array; + /** execute function "nfts_by_data_property" and query aggregates on result of table type "nft_nft" */ + nfts_by_data_property_aggregate: Nft_Nft_Aggregate; + /** execute function "nfts_by_expiration_date" which returns "nft_nft" */ + nfts_by_expiration_date: Array; + /** execute function "nfts_by_expiration_date" and query aggregates on result of table type "nft_nft" */ + nfts_by_expiration_date_aggregate: Nft_Nft_Aggregate; /** fetch data from the table: "pre_commit" */ pre_commit: Array; /** fetch aggregated fields from the table: "pre_commit" */ @@ -6932,6 +9667,14 @@ export type Query_RootAction_Delegator_Withdraw_AddressArgs = { }; +export type Query_RootAction_Nft_Transfer_EventsArgs = { + denom_id: Scalars['String']; + from_time?: Maybe; + to_time?: Maybe; + token_id: Scalars['Int']; +}; + + export type Query_RootAction_RedelegationArgs = { address: Scalars['String']; count_total?: Maybe; @@ -7279,6 +10022,67 @@ export type Query_RootCosmwasm_Update_Admin_By_PkArgs = { }; +export type Query_RootCw20token_BalanceArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootCw20token_Balance_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootCw20token_Balance_By_PkArgs = { + address: Scalars['String']; + token: Scalars['String']; +}; + + +export type Query_RootCw20token_Code_IdArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootCw20token_Code_Id_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Query_RootCw20token_InfoArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootCw20token_Info_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootCw20token_Info_By_PkArgs = { + address: Scalars['String']; +}; + + export type Query_RootDelegationArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -7297,9 +10101,41 @@ export type Query_RootDelegation_AggregateArgs = { }; -export type Query_RootDelegation_By_PkArgs = { - delegator_address: Scalars['String']; - validator_address: Scalars['String']; +export type Query_RootDenoms_By_Data_PropertyArgs = { + args: Denoms_By_Data_Property_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDenoms_By_Data_Property_AggregateArgs = { + args: Denoms_By_Data_Property_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDistinct_MessageArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootDistinct_Message_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; @@ -7451,6 +10287,100 @@ export type Query_RootGravity_Messages_By_Address_AggregateArgs = { }; +export type Query_RootGroup_MemberArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootGroup_Member_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootGroup_Member_By_PkArgs = { + address: Scalars['String']; + group_id: Scalars['Int']; +}; + + +export type Query_RootGroup_ProposalArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootGroup_Proposal_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootGroup_Proposal_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Query_RootGroup_Proposal_VoteArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootGroup_Proposal_Vote_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootGroup_Proposal_Vote_By_PkArgs = { + proposal_id: Scalars['Int']; + voter: Scalars['String']; +}; + + +export type Query_RootGroup_With_PolicyArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootGroup_With_Policy_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootGroup_With_Policy_By_PkArgs = { + id: Scalars['Int']; +}; + + export type Query_RootInflationArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -7469,6 +10399,71 @@ export type Query_RootInflation_AggregateArgs = { }; +export type Query_RootMarketplace_CollectionArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootMarketplace_Collection_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootMarketplace_Collection_By_PkArgs = { + id: Scalars['bigint']; +}; + + +export type Query_RootMarketplace_NftArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootMarketplace_Nft_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootMarketplace_Nft_Buy_HistoryArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootMarketplace_Nft_Buy_History_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootMarketplace_Nft_By_PkArgs = { + denom_id: Scalars['String']; + token_id: Scalars['bigint']; +}; + + export type Query_RootMessageArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -7507,6 +10502,26 @@ export type Query_RootMessages_By_Address_AggregateArgs = { }; +export type Query_RootMessages_By_Address_Distinct_On_Tx_HashArgs = { + args: Messages_By_Address_Distinct_On_Tx_Hash_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootMessages_By_Address_Distinct_On_Tx_Hash_AggregateArgs = { + args: Messages_By_Address_Distinct_On_Tx_Hash_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Query_RootMint_ParamsArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -7516,64 +10531,145 @@ export type Query_RootMint_ParamsArgs = { }; -export type Query_RootMint_Params_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootMint_Params_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootMint_Params_By_PkArgs = { + one_row_id: Scalars['Boolean']; +}; + + +export type Query_RootModulesArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootModules_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootModules_By_PkArgs = { + module_name: Scalars['String']; +}; + + +export type Query_RootNft_DenomArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootNft_Denom_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootNft_Denom_By_PkArgs = { + id: Scalars['String']; +}; + + +export type Query_RootNft_NftArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Query_RootNft_Nft_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Query_RootMint_Params_By_PkArgs = { - one_row_id: Scalars['Boolean']; +export type Query_RootNft_Nft_By_PkArgs = { + denom_id: Scalars['String']; + id: Scalars['bigint']; }; -export type Query_RootModulesArgs = { - distinct_on?: Maybe>; +export type Query_RootNft_Transfer_HistoryArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Query_RootModules_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootNft_Transfer_History_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Query_RootModules_By_PkArgs = { - module_name: Scalars['String']; +export type Query_RootNfts_By_Data_PropertyArgs = { + args: Nfts_By_Data_Property_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Query_RootNft_MintArgs = { - distinct_on?: Maybe>; +export type Query_RootNfts_By_Data_Property_AggregateArgs = { + args: Nfts_By_Data_Property_Args; + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Query_RootNft_Mint_AggregateArgs = { - distinct_on?: Maybe>; +export type Query_RootNfts_By_Expiration_DateArgs = { + args: Nfts_By_Expiration_Date_Args; + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Query_RootNft_Mint_By_PkArgs = { - denom_id: Scalars['String']; - token_id: Scalars['bigint']; +export type Query_RootNfts_By_Expiration_Date_AggregateArgs = { + args: Nfts_By_Expiration_Date_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; @@ -8623,12 +11719,34 @@ export type Subscription_Root = { cosmwasm_update_admin_aggregate: Cosmwasm_Update_Admin_Aggregate; /** fetch data from the table: "cosmwasm_update_admin" using primary key columns */ cosmwasm_update_admin_by_pk?: Maybe; + /** fetch data from the table: "cw20token_balance" */ + cw20token_balance: Array; + /** fetch aggregated fields from the table: "cw20token_balance" */ + cw20token_balance_aggregate: Cw20token_Balance_Aggregate; + /** fetch data from the table: "cw20token_balance" using primary key columns */ + cw20token_balance_by_pk?: Maybe; + /** fetch data from the table: "cw20token_code_id" */ + cw20token_code_id: Array; + /** fetch data from the table: "cw20token_code_id" using primary key columns */ + cw20token_code_id_by_pk?: Maybe; + /** fetch data from the table: "cw20token_info" */ + cw20token_info: Array; + /** fetch aggregated fields from the table: "cw20token_info" */ + cw20token_info_aggregate: Cw20token_Info_Aggregate; + /** fetch data from the table: "cw20token_info" using primary key columns */ + cw20token_info_by_pk?: Maybe; /** fetch data from the table: "delegation" */ delegation: Array; /** fetch aggregated fields from the table: "delegation" */ delegation_aggregate: Delegation_Aggregate; - /** fetch data from the table: "delegation" using primary key columns */ - delegation_by_pk?: Maybe; + /** execute function "denoms_by_data_property" which returns "nft_denom" */ + denoms_by_data_property: Array; + /** execute function "denoms_by_data_property" and query aggregates on result of table type "nft_denom" */ + denoms_by_data_property_aggregate: Nft_Denom_Aggregate; + /** fetch data from the table: "distinct_message" */ + distinct_message: Array; + /** fetch aggregated fields from the table: "distinct_message" */ + distinct_message_aggregate: Distinct_Message_Aggregate; /** fetch data from the table: "distribution_params" */ distribution_params: Array; /** fetch aggregated fields from the table: "distribution_params" */ @@ -8665,10 +11783,50 @@ export type Subscription_Root = { gravity_messages_by_address: Array; /** execute function "gravity_messages_by_address" and query aggregates on result of table type "message" */ gravity_messages_by_address_aggregate: Message_Aggregate; + /** fetch data from the table: "group_member" */ + group_member: Array; + /** fetch aggregated fields from the table: "group_member" */ + group_member_aggregate: Group_Member_Aggregate; + /** fetch data from the table: "group_member" using primary key columns */ + group_member_by_pk?: Maybe; + /** fetch data from the table: "group_proposal" */ + group_proposal: Array; + /** fetch aggregated fields from the table: "group_proposal" */ + group_proposal_aggregate: Group_Proposal_Aggregate; + /** fetch data from the table: "group_proposal" using primary key columns */ + group_proposal_by_pk?: Maybe; + /** fetch data from the table: "group_proposal_vote" */ + group_proposal_vote: Array; + /** fetch aggregated fields from the table: "group_proposal_vote" */ + group_proposal_vote_aggregate: Group_Proposal_Vote_Aggregate; + /** fetch data from the table: "group_proposal_vote" using primary key columns */ + group_proposal_vote_by_pk?: Maybe; + /** fetch data from the table: "group_with_policy" */ + group_with_policy: Array; + /** fetch aggregated fields from the table: "group_with_policy" */ + group_with_policy_aggregate: Group_With_Policy_Aggregate; + /** fetch data from the table: "group_with_policy" using primary key columns */ + group_with_policy_by_pk?: Maybe; /** fetch data from the table: "inflation" */ inflation: Array; /** fetch aggregated fields from the table: "inflation" */ inflation_aggregate: Inflation_Aggregate; + /** fetch data from the table: "marketplace_collection" */ + marketplace_collection: Array; + /** fetch aggregated fields from the table: "marketplace_collection" */ + marketplace_collection_aggregate: Marketplace_Collection_Aggregate; + /** fetch data from the table: "marketplace_collection" using primary key columns */ + marketplace_collection_by_pk?: Maybe; + /** fetch data from the table: "marketplace_nft" */ + marketplace_nft: Array; + /** fetch aggregated fields from the table: "marketplace_nft" */ + marketplace_nft_aggregate: Marketplace_Nft_Aggregate; + /** fetch data from the table: "marketplace_nft_buy_history" */ + marketplace_nft_buy_history: Array; + /** fetch aggregated fields from the table: "marketplace_nft_buy_history" */ + marketplace_nft_buy_history_aggregate: Marketplace_Nft_Buy_History_Aggregate; + /** fetch data from the table: "marketplace_nft" using primary key columns */ + marketplace_nft_by_pk?: Maybe; /** fetch data from the table: "message" */ message: Array; /** fetch aggregated fields from the table: "message" */ @@ -8677,6 +11835,10 @@ 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_address_distinct_on_tx_hash" which returns "distinct_message" */ + messages_by_address_distinct_on_tx_hash: Array; + /** execute function "messages_by_address_distinct_on_tx_hash" and query aggregates on result of table type "distinct_message" */ + messages_by_address_distinct_on_tx_hash_aggregate: Distinct_Message_Aggregate; /** fetch data from the table: "mint_params" */ mint_params: Array; /** fetch aggregated fields from the table: "mint_params" */ @@ -8689,12 +11851,30 @@ export type Subscription_Root = { modules_aggregate: Modules_Aggregate; /** fetch data from the table: "modules" using primary key columns */ modules_by_pk?: Maybe; - /** fetch data from the table: "nft_mint" */ - nft_mint: Array; - /** fetch aggregated fields from the table: "nft_mint" */ - nft_mint_aggregate: Nft_Mint_Aggregate; - /** fetch data from the table: "nft_mint" using primary key columns */ - nft_mint_by_pk?: Maybe; + /** fetch data from the table: "nft_denom" */ + nft_denom: Array; + /** fetch aggregated fields from the table: "nft_denom" */ + nft_denom_aggregate: Nft_Denom_Aggregate; + /** fetch data from the table: "nft_denom" using primary key columns */ + nft_denom_by_pk?: Maybe; + /** fetch data from the table: "nft_nft" */ + nft_nft: Array; + /** fetch aggregated fields from the table: "nft_nft" */ + nft_nft_aggregate: Nft_Nft_Aggregate; + /** fetch data from the table: "nft_nft" using primary key columns */ + nft_nft_by_pk?: Maybe; + /** fetch data from the table: "nft_transfer_history" */ + nft_transfer_history: Array; + /** fetch aggregated fields from the table: "nft_transfer_history" */ + nft_transfer_history_aggregate: Nft_Transfer_History_Aggregate; + /** execute function "nfts_by_data_property" which returns "nft_nft" */ + nfts_by_data_property: Array; + /** execute function "nfts_by_data_property" and query aggregates on result of table type "nft_nft" */ + nfts_by_data_property_aggregate: Nft_Nft_Aggregate; + /** execute function "nfts_by_expiration_date" which returns "nft_nft" */ + nfts_by_expiration_date: Array; + /** execute function "nfts_by_expiration_date" and query aggregates on result of table type "nft_nft" */ + nfts_by_expiration_date_aggregate: Nft_Nft_Aggregate; /** fetch data from the table: "pre_commit" */ pre_commit: Array; /** fetch aggregated fields from the table: "pre_commit" */ @@ -9150,6 +12330,67 @@ export type Subscription_RootCosmwasm_Update_Admin_By_PkArgs = { }; +export type Subscription_RootCw20token_BalanceArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootCw20token_Balance_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootCw20token_Balance_By_PkArgs = { + address: Scalars['String']; + token: Scalars['String']; +}; + + +export type Subscription_RootCw20token_Code_IdArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootCw20token_Code_Id_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Subscription_RootCw20token_InfoArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootCw20token_Info_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootCw20token_Info_By_PkArgs = { + address: Scalars['String']; +}; + + export type Subscription_RootDelegationArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -9168,9 +12409,41 @@ export type Subscription_RootDelegation_AggregateArgs = { }; -export type Subscription_RootDelegation_By_PkArgs = { - delegator_address: Scalars['String']; - validator_address: Scalars['String']; +export type Subscription_RootDenoms_By_Data_PropertyArgs = { + args: Denoms_By_Data_Property_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootDenoms_By_Data_Property_AggregateArgs = { + args: Denoms_By_Data_Property_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootDistinct_MessageArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootDistinct_Message_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; @@ -9322,6 +12595,100 @@ export type Subscription_RootGravity_Messages_By_Address_AggregateArgs = { }; +export type Subscription_RootGroup_MemberArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootGroup_Member_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootGroup_Member_By_PkArgs = { + address: Scalars['String']; + group_id: Scalars['Int']; +}; + + +export type Subscription_RootGroup_ProposalArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootGroup_Proposal_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootGroup_Proposal_By_PkArgs = { + id: Scalars['Int']; +}; + + +export type Subscription_RootGroup_Proposal_VoteArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootGroup_Proposal_Vote_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootGroup_Proposal_Vote_By_PkArgs = { + proposal_id: Scalars['Int']; + voter: Scalars['String']; +}; + + +export type Subscription_RootGroup_With_PolicyArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootGroup_With_Policy_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootGroup_With_Policy_By_PkArgs = { + id: Scalars['Int']; +}; + + export type Subscription_RootInflationArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -9340,6 +12707,71 @@ export type Subscription_RootInflation_AggregateArgs = { }; +export type Subscription_RootMarketplace_CollectionArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootMarketplace_Collection_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootMarketplace_Collection_By_PkArgs = { + id: Scalars['bigint']; +}; + + +export type Subscription_RootMarketplace_NftArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootMarketplace_Nft_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootMarketplace_Nft_Buy_HistoryArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootMarketplace_Nft_Buy_History_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootMarketplace_Nft_By_PkArgs = { + denom_id: Scalars['String']; + token_id: Scalars['bigint']; +}; + + export type Subscription_RootMessageArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -9378,6 +12810,26 @@ export type Subscription_RootMessages_By_Address_AggregateArgs = { }; +export type Subscription_RootMessages_By_Address_Distinct_On_Tx_HashArgs = { + args: Messages_By_Address_Distinct_On_Tx_Hash_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootMessages_By_Address_Distinct_On_Tx_Hash_AggregateArgs = { + args: Messages_By_Address_Distinct_On_Tx_Hash_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + export type Subscription_RootMint_ParamsArgs = { distinct_on?: Maybe>; limit?: Maybe; @@ -9424,27 +12876,108 @@ export type Subscription_RootModules_By_PkArgs = { }; -export type Subscription_RootNft_MintArgs = { - distinct_on?: Maybe>; +export type Subscription_RootNft_DenomArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootNft_Denom_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootNft_Denom_By_PkArgs = { + id: Scalars['String']; +}; + + +export type Subscription_RootNft_NftArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootNft_Mint_AggregateArgs = { - distinct_on?: Maybe>; +export type Subscription_RootNft_Nft_AggregateArgs = { + distinct_on?: Maybe>; limit?: Maybe; offset?: Maybe; - order_by?: Maybe>; - where?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; -export type Subscription_RootNft_Mint_By_PkArgs = { +export type Subscription_RootNft_Nft_By_PkArgs = { denom_id: Scalars['String']; - token_id: Scalars['bigint']; + id: Scalars['bigint']; +}; + + +export type Subscription_RootNft_Transfer_HistoryArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootNft_Transfer_History_AggregateArgs = { + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootNfts_By_Data_PropertyArgs = { + args: Nfts_By_Data_Property_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootNfts_By_Data_Property_AggregateArgs = { + args: Nfts_By_Data_Property_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootNfts_By_Expiration_DateArgs = { + args: Nfts_By_Expiration_Date_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; +}; + + +export type Subscription_RootNfts_By_Expiration_Date_AggregateArgs = { + args: Nfts_By_Expiration_Date_Args; + distinct_on?: Maybe>; + limit?: Maybe; + offset?: Maybe; + order_by?: Maybe>; + where?: Maybe; }; @@ -13387,6 +16920,20 @@ export type Vesting_Period_Variance_Order_By = { vesting_account_id?: Maybe; }; + +/** Boolean expression to compare columns of type "vote_option". All fields are combined with logical 'AND'. */ +export type Vote_Option_Comparison_Exp = { + _eq?: Maybe; + _gt?: Maybe; + _gte?: Maybe; + _in?: Maybe>; + _is_null?: Maybe; + _lt?: Maybe; + _lte?: Maybe; + _neq?: Maybe; + _nin?: Maybe>; +}; + export type AccountCommissionQueryVariables = Exact<{ validatorAddress: Scalars['String']; }>; @@ -13510,7 +17057,6 @@ export type ActiveValidatorCountQuery = { activeTotal: ( export type BlockDetailsQueryVariables = Exact<{ height?: Maybe; - signatureHeight?: Maybe; }>; @@ -13527,23 +17073,23 @@ export type BlockDetailsQuery = { transaction: Array<( { __typename?: 'validator_info' } & { operatorAddress: Validator_Info['operator_address'] } )> } - )> } - )>, preCommitsAggregate: ( - { __typename?: 'pre_commit_aggregate' } - & { aggregate?: Maybe<( - { __typename?: 'pre_commit_aggregate_fields' } - & { sum?: Maybe<( - { __typename?: 'pre_commit_sum_fields' } - & { votingPower: Pre_Commit_Sum_Fields['voting_power'] } - )> } - )> } - ), preCommits: Array<( - { __typename?: 'pre_commit' } - & { validator: ( - { __typename?: 'validator' } - & { validatorInfo?: Maybe<( - { __typename?: 'validator_info' } - & { operatorAddress: Validator_Info['operator_address'] } + )>, preCommits: Array<( + { __typename?: 'pre_commit' } + & { validator: ( + { __typename?: 'validator' } + & { validatorInfo?: Maybe<( + { __typename?: 'validator_info' } + & { operatorAddress: Validator_Info['operator_address'] } + )> } + ) } + )>, preCommitsAggregate: ( + { __typename?: 'pre_commit_aggregate' } + & { aggregate?: Maybe<( + { __typename?: 'pre_commit_aggregate_fields' } + & { sum?: Maybe<( + { __typename?: 'pre_commit_sum_fields' } + & { votingPower: Pre_Commit_Sum_Fields['voting_power'] } + )> } )> } ) } )> }; @@ -14458,7 +18004,7 @@ export type ActiveValidatorCountQueryHookResult = ReturnType; export type ActiveValidatorCountQueryResult = Apollo.QueryResult; export const BlockDetailsDocument = gql` - query BlockDetails($height: bigint, $signatureHeight: bigint) { + query BlockDetails($height: bigint) { transaction(where: {height: {_eq: $height}}) { height hash @@ -14476,20 +18022,18 @@ export const BlockDetailsDocument = gql` operatorAddress: operator_address } } - } - preCommitsAggregate: pre_commit_aggregate( - where: {height: {_eq: $signatureHeight}} - ) { - aggregate { - sum { - votingPower: voting_power + preCommits: pre_commits { + validator { + validatorInfo: validator_info { + operatorAddress: operator_address + } } } - } - preCommits: pre_commit(where: {height: {_eq: $signatureHeight}}) { - validator { - validatorInfo: validator_info { - operatorAddress: operator_address + preCommitsAggregate: pre_commits_aggregate { + aggregate { + sum { + votingPower: voting_power + } } } } @@ -14509,7 +18053,6 @@ export const BlockDetailsDocument = gql` * const { data, loading, error } = useBlockDetailsQuery({ * variables: { * height: // value for 'height' - * signatureHeight: // value for 'signatureHeight' * }, * }); */ diff --git a/src/models/msg/cosmwasm/msg_execute_contract.ts b/src/models/msg/cosmwasm/msg_execute_contract.ts index b38d78150c..5d49636c41 100644 --- a/src/models/msg/cosmwasm/msg_execute_contract.ts +++ b/src/models/msg/cosmwasm/msg_execute_contract.ts @@ -12,7 +12,7 @@ class MsgExecuteContract { constructor(payload: any) { this.category = 'cosmwasm'; this.contract = payload.contract; - const [method, args] = MsgExecuteContract.getMethodAndArguments(atob(payload.msg)); + const [method, args] = MsgExecuteContract.getMethodAndArguments(JSON.stringify(payload.msg)); this.method = method; this.arguments = args; this.sender = payload.sender; @@ -21,7 +21,7 @@ class MsgExecuteContract { } static fromJson(json: any) { - json.msg_decoded = atob(json.msg); + json.msg_decoded = json.msg; return new MsgExecuteContract({ contract: json.contract, msg: json.msg, diff --git a/src/models/msg/cosmwasm/msg_instantiate_contract.ts b/src/models/msg/cosmwasm/msg_instantiate_contract.ts index 0c57aa15ff..ec16b7c0f6 100644 --- a/src/models/msg/cosmwasm/msg_instantiate_contract.ts +++ b/src/models/msg/cosmwasm/msg_instantiate_contract.ts @@ -2,40 +2,53 @@ import * as R from 'ramda'; import { Categories } from '../types'; class MsgInstantiateContract { - public category: Categories; - public type: string; - public json: any; - public sender: string; - public admin: string; - public codeId: number; - public initMsg: JSON; - public initCoins: MsgCoin[]; + public category: Categories; + public type: string; + public json: any; + public sender: string; + public admin: string; + public codeId: number; + public initMsg: JSON; + public initCoins: MsgCoin[]; + public contractAddress: string | undefined; - constructor(payload: any) { - this.category = 'cosmwasm'; - this.type = payload.type; - this.json = payload.json; - this.sender = payload.sender; - this.admin = payload.admin; - this.codeId = payload.codeId; - this.initMsg = payload.initMsg; - this.initCoins = payload.initCoins; - } + constructor(payload: any) { + this.category = 'cosmwasm'; + this.type = payload.type; + this.json = payload.json; + this.sender = payload.sender; + this.admin = payload.admin; + this.codeId = payload.codeId; + this.initMsg = payload.initMsg; + this.initCoins = payload.initCoins; + this.contractAddress = payload.contractAddress; + } - static fromJson(json: any) { - return new MsgInstantiateContract({ - json, - type: json['@type'], - sender: json.sender, - admin: json.admin, - codeId: R.pathOr(0, ['code_id'], json), - initMsg: R.pathOr('', ['init_msg'], json), - initCoins: R.pathOr([], ['init_coins'], json).map((x) => ({ - denom: R.pathOr('', ['denom'], x), - amount: R.pathOr(0, ['amount'], x), - })), - }); - } + static getContractAddress(log: any) { + const contractAddress = log + .events.find((event: { type: string; }) => event.type === 'instantiate') + .attributes[0].value.replaceAll('"', '') || undefined; + + return contractAddress; + } + + static fromJson(json: any, log?: any) { + const contractAddress = this.getContractAddress(log); + + return new MsgInstantiateContract({ + json, + type: json['@type'], + sender: json.sender, + admin: json.admin, + codeId: R.pathOr(0, ['code_id'], json), + initMsg: R.pathOr('', ['init_msg'], json), + initCoins: R.pathOr([], ['init_coins'], json).map((x) => ({ + denom: R.pathOr('', ['denom'], x), + amount: R.pathOr(0, ['amount'], x), + })), + contractAddress, + }); + } } export default MsgInstantiateContract; diff --git a/src/recoil/market/hooks.ts b/src/recoil/market/hooks.ts index 79e2ba45d2..9ec3340c76 100644 --- a/src/recoil/market/hooks.ts +++ b/src/recoil/market/hooks.ts @@ -5,7 +5,6 @@ import { useRecoilState, SetterOrUpdater, } from 'recoil'; -import Big from 'big.js'; import { useMarketDataQuery, MarketDataQuery, @@ -15,7 +14,6 @@ import { writeMarket, } from '@recoil/market'; import { AtomState } from '@recoil/market/types'; -import { getDenom } from '@utils/get_denom'; import { formatToken } from '@utils/format_token'; export const useMarketRecoil = () => { diff --git a/src/screens/account_details/components/balance/index.tsx b/src/screens/account_details/components/balance/index.tsx index 2f287db7b6..f4746b99a1 100644 --- a/src/screens/account_details/components/balance/index.tsx +++ b/src/screens/account_details/components/balance/index.tsx @@ -3,8 +3,6 @@ import classnames from 'classnames'; import Big from 'big.js'; import numeral from 'numeral'; import * as R from 'ramda'; -import { useRecoilValue } from 'recoil'; -import { readMarket } from '@recoil/market'; import { Typography, Divider, @@ -19,6 +17,8 @@ import useTranslation from 'next-translate/useTranslation'; import { Box } from '@components'; import { chainConfig } from '@configs'; import { formatNumber } from '@utils/format_token'; +import { useDataBlocks } from '@src/screens/home/components/data_blocks/hooks'; +import { Tooltip } from '@mui/material'; import { useStyles } from './styles'; import { formatBalanceData } from './utils'; @@ -35,7 +35,8 @@ const Balance: React.FC<{ const { classes, theme, } = useStyles(); - const market = useRecoilValue(readMarket); + const { state } = useDataBlocks(); + const marketPrice = state.price; const formattedChartData = formatBalanceData(props); const empty = { @@ -63,7 +64,8 @@ const Balance: React.FC<{ const dataCount = formatData.filter((x) => Big(x.value).gt(0)).length; const data = notEmpty ? formatData : [...formatData, empty]; - const totalAmount = `$${numeral(Big(market.price || 0).times(props.total.value).toPrecision()).format('0,0.00')}`; + const rawTotalAmount = Big(marketPrice || 0).times(props.total.value).toPrecision(); + const formatedTotalAmount = `$${numeral(rawTotalAmount).format('0,0.00')}`; // format const totalDisplay = formatNumber(props.total.value, props.total.exponent); @@ -137,15 +139,17 @@ const Balance: React.FC<{
$ - {numeral(market.price).format('0,0.[00]', Math.floor)} + {marketPrice} {' '} / {' '} {R.pathOr('', ['tokenUnits', chainConfig.primaryTokenUnit, 'display'], chainConfig).toUpperCase()} - - {totalAmount} - + + + {formatedTotalAmount} + +
diff --git a/src/screens/app/index.tsx b/src/screens/app/index.tsx index 1b88869f83..9886d34877 100644 --- a/src/screens/app/index.tsx +++ b/src/screens/app/index.tsx @@ -26,11 +26,11 @@ function App(props: AppProps) { return ( <> { useBlockDetailsQuery({ variables: { height: numeral(router.query.height).value(), - signatureHeight: numeral(router.query.height).value() + 1, }, onCompleted: (data) => { handleSetState(formatRaws(data)); @@ -82,7 +81,7 @@ export const useBlockDetails = () => { // Signatures // ========================== const formatSignatures = () => { - const signatures = data.preCommits.filter((x) => x?.validator?.validatorInfo).map((x) => { + const signatures = data.block[0].preCommits.map((x) => { return x.validator.validatorInfo.operatorAddress; }); return signatures; diff --git a/src/screens/block_details/index.test.tsx b/src/screens/block_details/index.test.tsx index 8a061cb769..9f3d71f1a6 100644 --- a/src/screens/block_details/index.test.tsx +++ b/src/screens/block_details/index.test.tsx @@ -64,22 +64,22 @@ const mockAverageBlockTime = jest.fn().mockResolvedValue({ operatorAddress: 'desmosvaloper18kvwy5hzcu3ss08lcfcnx0eajuecg69uvk76c3', }, }, - }, - ], - preCommitsAggregate: { - aggregate: { - sum: { - votingPower: 7304, - }, - }, - }, - preCommits: [ - { - validator: { - validatorInfo: { - operatorAddress: 'desmosvaloper1qlh47ty9ah2d5e0xq6gsvqjvfulljl9602k7f9', + preCommitsAggregate: { + aggregate: { + sum: { + votingPower: 7304, + }, }, }, + preCommits: [ + { + validator: { + validatorInfo: { + operatorAddress: 'desmosvaloper1qlh47ty9ah2d5e0xq6gsvqjvfulljl9602k7f9', + }, + }, + }, + ], }, ], }, diff --git a/src/screens/home/__snapshots__/index.test.tsx.snap b/src/screens/home/__snapshots__/index.test.tsx.snap index a908cd52fc..89a887b456 100644 --- a/src/screens/home/__snapshots__/index.test.tsx.snap +++ b/src/screens/home/__snapshots__/index.test.tsx.snap @@ -11,7 +11,7 @@ exports[`screen: Home matches snapshot 1`] = ` />
- 76nwV8...hQ857 +
+ 76nwV8...hQ857 +
+ + + + + Copied + +
+
= (prop $ - {numeral(x.value).format('0,0.00')} + {x.value} ); diff --git a/src/screens/home/index.tsx b/src/screens/home/index.tsx index e97a9a0dce..935580be6d 100644 --- a/src/screens/home/index.tsx +++ b/src/screens/home/index.tsx @@ -1,4 +1,7 @@ import React from 'react'; +import { NextSeo } from 'next-seo'; +import useTranslation from 'next-translate/useTranslation'; +import { chainConfig } from '@configs'; import { Layout } from '@components'; import { useStyles } from './styles'; import { @@ -11,17 +14,27 @@ import { } from './components'; const Home = () => { + const { t } = useTranslation('transactions'); const classes = useStyles(); return ( - - - - - - - - + <> + + + + + + + + + + ); }; diff --git a/src/screens/proposal_details/__snapshots__/index.test.tsx.snap b/src/screens/proposal_details/__snapshots__/index.test.tsx.snap index dbbb7548d5..0046af1ad2 100644 --- a/src/screens/proposal_details/__snapshots__/index.test.tsx.snap +++ b/src/screens/proposal_details/__snapshots__/index.test.tsx.snap @@ -15,25 +15,21 @@ exports[`screen: ProposalDetails matches snapshot 1`] = ` >

proposals:

-

- proposals:proposer -

-
-

- proposals:submitTime -

-

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

-

- proposals:depositEndTime -

-

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

@@ -63,8 +31,10 @@ exports[`screen: BlockDetails/Overview matches snapshot 1`] = `

+
`; diff --git a/src/screens/proposal_details/components/overview/components/communitySpend/index.tsx b/src/screens/proposal_details/components/overview/components/communitySpend/index.tsx index f2d54deaaf..8df60b0342 100644 --- a/src/screens/proposal_details/components/overview/components/communitySpend/index.tsx +++ b/src/screens/proposal_details/components/overview/components/communitySpend/index.tsx @@ -1,5 +1,4 @@ import React from 'react'; -import numeral from 'numeral'; import useTranslation from 'next-translate/useTranslation'; import { Table, diff --git a/src/screens/proposal_details/components/votes/components/tabs/__snapshots__/index.test.tsx.snap b/src/screens/proposal_details/components/votes/components/tabs/__snapshots__/index.test.tsx.snap index 886bb9f678..88075913e3 100644 --- a/src/screens/proposal_details/components/votes/components/tabs/__snapshots__/index.test.tsx.snap +++ b/src/screens/proposal_details/components/votes/components/tabs/__snapshots__/index.test.tsx.snap @@ -178,34 +178,6 @@ exports[`screen: Validators/Tabs matches snapshot 1`] = ` proposals:abstain (0) -
diff --git a/src/screens/proposal_details/components/votes/hooks.ts b/src/screens/proposal_details/components/votes/hooks.ts index 7bdcb396fa..d96dc30b2d 100644 --- a/src/screens/proposal_details/components/votes/hooks.ts +++ b/src/screens/proposal_details/components/votes/hooks.ts @@ -56,11 +56,11 @@ export const useVotes = (resetPagination:any) => { const proposalVote = R.pathOr([], ['proposalVote'], votesData); - proposalVote.map((x: any) => { + proposalVote.forEach((x: any) => { x.weight = '100.00%'; }); - mergedVotesData.proposalVote.map((x: any) => { + mergedVotesData.proposalVote.forEach((x: any) => { x.weight = `${(parseFloat(x.weight) * 100.0).toFixed(2)}%`; }); diff --git a/src/screens/proposal_details/utils.ts b/src/screens/proposal_details/utils.ts index d5ece49694..5be2e5f9ac 100644 --- a/src/screens/proposal_details/utils.ts +++ b/src/screens/proposal_details/utils.ts @@ -12,7 +12,7 @@ export const getProposalType = (proposalType: string) => { type = 'communityPoolSpendProposal'; } - if (proposalType == '/ibc.core.client.v1.ClientUpdateProposal') { + if (proposalType === '/ibc.core.client.v1.ClientUpdateProposal') { type = 'IbcClientUpdateProposal'; } diff --git a/src/screens/transaction_details/components/overview/__snapshots__/index.test.tsx.snap b/src/screens/transaction_details/components/overview/__snapshots__/index.test.tsx.snap index 5d97014d99..a2bd4e3b9c 100644 --- a/src/screens/transaction_details/components/overview/__snapshots__/index.test.tsx.snap +++ b/src/screens/transaction_details/components/overview/__snapshots__/index.test.tsx.snap @@ -29,7 +29,7 @@ exports[`screen: BlockDetails/Overview matches snapshot 1`] = ` "label": "transactions:time", }, Object { - "detail": "5,000 DARIC", + "detail": "5000 DARIC", "label": "transactions:fee", }, Object { diff --git a/src/screens/transaction_details/components/overview/index.tsx b/src/screens/transaction_details/components/overview/index.tsx index 2faafa9df5..1cbd3b4ed2 100644 --- a/src/screens/transaction_details/components/overview/index.tsx +++ b/src/screens/transaction_details/components/overview/index.tsx @@ -11,7 +11,6 @@ import { BLOCK_DETAILS } from '@utils/go_to_page'; import { BoxDetails, Result, } from '@components'; -import { formatNumber } from '@utils/format_token'; import { useStyles } from './styles'; import { OverviewType } from '../../types'; diff --git a/src/screens/transaction_details/hooks.ts b/src/screens/transaction_details/hooks.ts index 8366af7ee6..fd75f44b51 100644 --- a/src/screens/transaction_details/hooks.ts +++ b/src/screens/transaction_details/hooks.ts @@ -117,8 +117,10 @@ export const useTransactionDetails = () => { stateChange.logs = formatLogs(); const [mutatedMessages, logs] = mutateMessages(data.transaction[0]); - data.transaction[0].messages = mutatedMessages; - data.transaction[0].logs = logs; + Object.defineProperties(data.transaction[0], { + messages: mutatedMessages, + logs, + }); // ============================= // messages diff --git a/src/screens/transactions/index.tsx b/src/screens/transactions/index.tsx index 814b389079..e8caaa1f71 100644 --- a/src/screens/transactions/index.tsx +++ b/src/screens/transactions/index.tsx @@ -27,9 +27,12 @@ const Transactions = () => { return ( <> - ), + />), commission: `${numeral(x.commission).format('0.[00]')}%`, condition: ( - + + {`${numeral(x.condition).format('0.[00]')}%`} + + )} + > + + + + ), votingPower: ( + {t('condition')} + } + /> + {!!sort && ( + + )} + + ); + } + if (key === 'votingPower') { formattedComponent = ( @@ -141,19 +173,19 @@ const Desktop: React.FC<{ role="button" > {formattedComponent || ( - - {t(key)} - {!!sort && ( - - )} - + + {t(key)} + {!!sort && ( + + )} + )}
); diff --git a/src/screens/validators/components/list/components/desktop/utils.tsx b/src/screens/validators/components/list/components/desktop/utils.tsx index 92bfbf216a..32f9c000e4 100644 --- a/src/screens/validators/components/list/components/desktop/utils.tsx +++ b/src/screens/validators/components/list/components/desktop/utils.tsx @@ -1,12 +1,7 @@ +import { Translate } from 'next-translate'; import React from 'react'; -import { - Typography, -} from '@material-ui/core'; -import { - InfoPopover, ConditionExplanation, -} from '@components'; -export const fetchColumns = (t): { +export const fetchColumns = (_t: Translate): { key: string; align?: 'left' | 'center' | 'right' | 'justify' | 'inherit'; width: number; @@ -40,16 +35,10 @@ export const fetchColumns = (t): { }, { key: 'condition', + sortKey: 'condition', align: 'center', width: 15, - component: ( - - {t('condition')} - } - /> - - ), + sort: true, }, { key: 'status', diff --git a/src/screens/validators/components/list/components/tabs/__snapshots__/index.test.tsx.snap b/src/screens/validators/components/list/components/tabs/__snapshots__/index.test.tsx.snap index 54e6dcda05..5812cef121 100644 --- a/src/screens/validators/components/list/components/tabs/__snapshots__/index.test.tsx.snap +++ b/src/screens/validators/components/list/components/tabs/__snapshots__/index.test.tsx.snap @@ -115,6 +115,34 @@ exports[`screen: Validators/Tabs matches snapshot 1`] = ` role="tab" tabIndex={-1} type="button" + > + + validators:exited + + +