diff --git a/src/__generated__/fragment-masking.ts b/src/__generated__/fragment-masking.ts index aca71b1..e2e932e 100644 --- a/src/__generated__/fragment-masking.ts +++ b/src/__generated__/fragment-masking.ts @@ -1,19 +1,22 @@ /* eslint-disable */ -import { ResultOf, DocumentTypeDecoration, TypedDocumentNode } from '@graphql-typed-document-node/core'; +import { + ResultOf, + DocumentTypeDecoration, + TypedDocumentNode +} from '@graphql-typed-document-node/core'; import { FragmentDefinitionNode } from 'graphql'; import { Incremental } from './graphql'; - -export type FragmentType> = TDocumentType extends DocumentTypeDecoration< - infer TType, - any -> - ? [TType] extends [{ ' $fragmentName'?: infer TKey }] - ? TKey extends string - ? { ' $fragmentRefs'?: { [key in TKey]: TType } } +export type FragmentType< + TDocumentType extends DocumentTypeDecoration +> = + TDocumentType extends DocumentTypeDecoration + ? [TType] extends [{ ' $fragmentName'?: infer TKey }] + ? TKey extends string + ? { ' $fragmentRefs'?: { [key in TKey]: TType } } + : never : never - : never - : never; + : never; // return non-nullable if `fragmentType` is non-nullable export function useFragment( @@ -33,7 +36,10 @@ export function useFragment( // return nullable if `fragmentType` is nullable or undefined export function useFragment( _documentNode: DocumentTypeDecoration, - fragmentType: FragmentType> | null | undefined + fragmentType: + | FragmentType> + | null + | undefined ): TType | null | undefined; // return array of non-nullable if `fragmentType` is array of non-nullable export function useFragment( @@ -43,7 +49,10 @@ export function useFragment( // return array of nullable if `fragmentType` is array of nullable export function useFragment( _documentNode: DocumentTypeDecoration, - fragmentType: Array>> | null | undefined + fragmentType: + | Array>> + | null + | undefined ): Array | null | undefined; // return readonly array of non-nullable if `fragmentType` is array of non-nullable export function useFragment( @@ -53,16 +62,23 @@ export function useFragment( // return readonly array of nullable if `fragmentType` is array of nullable export function useFragment( _documentNode: DocumentTypeDecoration, - fragmentType: ReadonlyArray>> | null | undefined + fragmentType: + | ReadonlyArray>> + | null + | undefined ): ReadonlyArray | null | undefined; export function useFragment( _documentNode: DocumentTypeDecoration, - fragmentType: FragmentType> | Array>> | ReadonlyArray>> | null | undefined + fragmentType: + | FragmentType> + | Array>> + | ReadonlyArray>> + | null + | undefined ): TType | Array | ReadonlyArray | null | undefined { return fragmentType as any; } - export function makeFragmentData< F extends DocumentTypeDecoration, FT extends ResultOf @@ -72,16 +88,24 @@ export function makeFragmentData< export function isFragmentReady( queryNode: DocumentTypeDecoration, fragmentNode: TypedDocumentNode, - data: FragmentType, any>> | null | undefined + data: + | FragmentType, any>> + | null + | undefined ): data is FragmentType { - const deferredFields = (queryNode as { __meta__?: { deferredFields: Record } }).__meta__ - ?.deferredFields; + const deferredFields = ( + queryNode as { + __meta__?: { deferredFields: Record }; + } + ).__meta__?.deferredFields; if (!deferredFields) return true; - const fragDef = fragmentNode.definitions[0] as FragmentDefinitionNode | undefined; + const fragDef = fragmentNode.definitions[0] as + | FragmentDefinitionNode + | undefined; const fragName = fragDef?.name?.value; const fields = (fragName && deferredFields[fragName]) || []; - return fields.length > 0 && fields.every(field => data && field in data); + return fields.length > 0 && fields.every((field) => data && field in data); } diff --git a/src/__generated__/gql.ts b/src/__generated__/gql.ts index 0de743a..a127ef6 100644 --- a/src/__generated__/gql.ts +++ b/src/__generated__/gql.ts @@ -14,158 +14,287 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/ * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size */ type Documents = { - "\n query GetAccounts(\n $limit: Int\n $offset: Int\n $orderBy: [account_order_by!]\n ) {\n accounts: account(limit: $limit, offset: $offset, order_by: $orderBy) {\n id\n free\n frozen\n reserved\n is_high_security\n is_guardian\n is_multisig\n }\n meta: chain_stats_by_pk(id: \"global\") {\n totalCount: total_accounts\n }\n }\n ": typeof types.GetAccountsDocument, - "\n query GetAccountById($id: String!) {\n account: account_by_pk(id: $id) {\n id\n free\n frozen\n reserved\n }\n accountStats: account_stats_by_pk(id: $id) {\n total_cancelled_transfers\n total_executed_transfers\n total_immediate_transfers\n total_mined_blocks\n total_rewards\n total_scheduled_transfers\n }\n multisig: multisig_by_pk(id: $id) {\n id\n }\n guardian: high_security_set_aggregate(\n where: { who: { id: { _eq: $id } } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n beneficiaries: high_security_set_aggregate(\n where: { guardian: { id: { _eq: $id } } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": typeof types.GetAccountByIdDocument, - "\n query GetAccountsStats($startDate: timestamptz!, $endDate: timestamptz!) {\n all: chain_stats_by_pk(id: \"global\") {\n total_accounts\n }\n\n recentlyActive: daily_active_account_aggregate(\n where: {\n date: { _gte: $startDate, _lte: $endDate }\n sent: { _eq: true }\n }\n ) {\n aggregate {\n count(columns: account_id, distinct: true)\n }\n }\n\n recentlyDeposited: daily_active_account_aggregate(\n where: {\n date: { _gte: $startDate, _lte: $endDate }\n received: { _eq: true }\n }\n ) {\n aggregate {\n count(columns: account_id, distinct: true)\n }\n }\n }\n ": typeof types.GetAccountsStatsDocument, - "\n query GetBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [block_order_by!]!\n $where: block_bool_exp\n ) {\n blocks: block(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n hash\n height\n reward\n timestamp\n mined_by_id\n extrinsics {\n id\n }\n }\n meta: chain_stats_by_pk(id: \"global\") {\n totalCount: block_height\n }\n }\n ": typeof types.GetBlocksDocument, - "\n query GetBlockById($height: Int!, $hash: String!) {\n blocks: block(\n where: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics(order_by: { index_in_block: asc }) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock: index_in_block\n signer {\n id\n }\n }\n }\n minerRewards: miner_reward(\n where: {\n block: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n }\n ) {\n reward\n timestamp\n miner {\n id\n }\n block {\n height\n hash\n }\n }\n rewardTransfers: unified_transaction(\n where: {\n type: { _eq: \"IMMEDIATE\" }\n hash: { _is_null: true }\n block: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n }\n ) {\n amount\n detail_id\n from {\n id\n }\n to {\n id\n }\n }\n }\n ": typeof types.GetBlockByIdDocument, - "\n query GetBlockStats($startDate: timestamptz!, $endDate: timestamptz!) {\n chain: chain_stats_by_pk(id: \"global\") {\n block_height\n finalized_block_height\n }\n minedIn24Hours: block_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": typeof types.GetBlockStatsDocument, - "\n query GetCancelledReversibleTransactionByTxId($tx_id: String!) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n extrinsic {\n id\n pallet\n call\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ": typeof types.GetCancelledReversibleTransactionByTxIdDocument, - "\n query GetHomeChainStats(\n $last24HourWhere: unified_transaction_bool_exp!\n $dayLimit: Int!\n ) {\n status: chain_stats_by_pk(id: \"global\") {\n block_height\n total_accounts\n total_deposit_accounts\n total_immediate_transfers\n total_scheduled_transfers\n total_executed_transfers\n total_cancelled_transfers\n }\n last24Hour: unified_transaction_aggregate(where: $last24HourWhere) {\n aggregate {\n count\n }\n }\n dailyStats: daily_chain_stats(order_by: { date: desc }, limit: $dayLimit) {\n id\n date\n blocks_count\n tx_count\n active_accounts\n }\n }\n": typeof types.GetHomeChainStatsDocument, - "\n query GetStatus {\n status: chain_stats_by_pk(id: \"global\") {\n block_height\n total_accounts\n total_deposit_accounts\n total_executed_transfers\n total_immediate_transfers\n total_scheduled_transfers\n total_cancelled_transfers\n }\n }\n ": typeof types.GetStatusDocument, - "\n query GetErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [error_event_order_by!]\n $where: error_event_bool_exp\n ) {\n errorEvents: error_event(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n meta: error_event_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": typeof types.GetErrorEventsDocument, - "\n query GetErrorEventsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: error_event_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_error_events\n }\n }\n ": typeof types.GetErrorEventsStatsDocument, - "\n query GetErrorEventByHash($hash: String!) {\n errorEvents: error_event(where: { extrinsic: { id: { _eq: $hash } } }) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ": typeof types.GetErrorEventByHashDocument, - "\n query GetExecutedReversibleTransactionByTxId($tx_id: String!) {\n executedReversibleTransactions: executed_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ": typeof types.GetExecutedReversibleTransactionByTxIdDocument, - "\n query GetHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [high_security_set_order_by!]\n $where: high_security_set_bool_exp\n ) {\n highSecuritySets: high_security_set(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n guardian {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n meta: high_security_set_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": typeof types.GetHighSecuritySetsDocument, - "\n query GetHighSecuritySetsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: high_security_set_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_high_security_sets\n }\n }\n ": typeof types.GetHighSecuritySetsStatsDocument, - "\n query GetHighSecuritySetByHash($hash: String!) {\n highSecuritySets: high_security_set(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n guardian {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ": typeof types.GetHighSecuritySetByHashDocument, - "\n query GetMinerLeaderboardStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n chain: chain_stats_by_pk(id: \"global\") {\n block_height\n total_miners\n }\n last24Hour: miner_reward_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": typeof types.GetMinerLeaderboardStatsDocument, - "\n query GetMinerLeaderboardChart($limit: Int) {\n topMiners: account_stats(\n limit: $limit\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n id\n total_mined_blocks\n }\n blocks: chain_stats_by_pk(id: \"global\") {\n totalCount: block_height\n }\n }\n ": typeof types.GetMinerLeaderboardChartDocument, - "\n query GetMinerLeaderboard($limit: Int, $offset: Int) {\n leaderboardEntries: account_stats(\n limit: $limit\n offset: $offset\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n id\n total_mined_blocks\n total_rewards\n }\n meta: chain_stats_by_pk(id: \"global\") {\n totalCount: total_miners\n block_height\n }\n topMiner: account_stats(\n limit: 1\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n total_mined_blocks\n }\n }\n ": typeof types.GetMinerLeaderboardDocument, - "\n query GetMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: miner_reward_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n": typeof types.GetMinerRewardsDocument, - "\n query GetMinerRewardsWithChainTotal(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: chain_stats_by_pk(id: \"global\") {\n totalCount: total_miner_rewards\n }\n }\n": typeof types.GetMinerRewardsWithChainTotalDocument, - "\n query GetMinerRewardsWithMinerTotal(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n $minerId: String!\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: account_stats_by_pk(id: $minerId) {\n totalCount: total_mined_blocks\n }\n }\n": typeof types.GetMinerRewardsWithMinerTotalDocument, - "\n query GetMinerRewardsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: miner_reward_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_miner_rewards\n }\n }\n ": typeof types.GetMinerRewardsStatsDocument, - "\n query GetMinerRewardByHash($hash: String!) {\n minerRewards: miner_reward(where: { block: { hash: { _eq: $hash } } }) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ": typeof types.GetMinerRewardByHashDocument, - "\n fragment MultisigCreatedFields on multisig {\n id\n timestamp\n threshold\n nonce\n signers\n creator {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n": typeof types.MultisigCreatedFieldsFragmentDoc, - "\n \n query GetMultisigCreated(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_order_by!]\n $where: multisig_bool_exp\n ) {\n multisigCreatedEvents: multisig(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigCreatedFields\n }\n meta: multisig_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": typeof types.GetMultisigCreatedDocument, - "\n query GetMultisigCreatedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisigs_created\n }\n }\n ": typeof types.GetMultisigCreatedStatsDocument, - "\n \n query GetMultisigCreatedByHash($hash: String!) {\n multisigCreatedEvents: multisig(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigCreatedFields\n }\n }\n ": typeof types.GetMultisigCreatedByHashDocument, - "\n \n query GetMultisigById($id: String!) {\n multisig: multisig_by_pk(id: $id) {\n ...MultisigCreatedFields\n }\n }\n ": typeof types.GetMultisigByIdDocument, - "\n fragment MultisigDepositsClaimedFields on multisig_deposits_claimed {\n id\n timestamp\n total_returned\n proposals_removed\n claimer {\n id\n }\n multisig {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n": typeof types.MultisigDepositsClaimedFieldsFragmentDoc, - "\n \n query GetMultisigDepositsClaimed(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_deposits_claimed_order_by!]\n $where: multisig_deposits_claimed_bool_exp\n ) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigDepositsClaimedFields\n }\n meta: multisig_deposits_claimed_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": typeof types.GetMultisigDepositsClaimedDocument, - "\n query GetMultisigDepositsClaimedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_deposits_claimed_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_deposits_claimed\n }\n }\n ": typeof types.GetMultisigDepositsClaimedStatsDocument, - "\n \n query GetMultisigDepositsClaimedByHash($hash: String!) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigDepositsClaimedFields\n }\n }\n ": typeof types.GetMultisigDepositsClaimedByHashDocument, - "\n fragment MultisigProposalCancelledFields on cancelled_multisig_proposal {\n id\n timestamp\n cancelledBy {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n": typeof types.MultisigProposalCancelledFieldsFragmentDoc, - "\n \n query GetMultisigProposalCancelled(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_multisig_proposal_order_by!]\n $where: cancelled_multisig_proposal_bool_exp\n ) {\n multisigProposalCancelledEvents: cancelled_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalCancelledFields\n }\n meta: cancelled_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": typeof types.GetMultisigProposalCancelledDocument, - "\n query GetMultisigProposalCancelledStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: cancelled_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposals_cancelled\n }\n }\n ": typeof types.GetMultisigProposalCancelledStatsDocument, - "\n \n query GetMultisigProposalCancelledByHash($hash: String!) {\n multisigProposalCancelledEvents: cancelled_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalCancelledFields\n }\n }\n ": typeof types.GetMultisigProposalCancelledByHashDocument, - "\n fragment MultisigProposalRefFields on multisig_proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n": typeof types.MultisigProposalRefFieldsFragmentDoc, - "\n \n fragment MultisigProposalCreatedFields on multisig_proposal_created {\n id\n timestamp\n proposal {\n ...MultisigProposalRefFields\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n": typeof types.MultisigProposalCreatedFieldsFragmentDoc, - "\n \n query GetMultisigProposalCreated(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_created_order_by!]\n $where: multisig_proposal_created_bool_exp\n ) {\n multisigProposalCreatedEvents: multisig_proposal_created(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalCreatedFields\n }\n meta: multisig_proposal_created_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": typeof types.GetMultisigProposalCreatedDocument, - "\n query GetMultisigProposalCreatedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_created_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposals\n }\n }\n ": typeof types.GetMultisigProposalCreatedStatsDocument, - "\n \n query GetMultisigProposalCreatedByHash($hash: String!) {\n multisigProposalCreatedEvents: multisig_proposal_created(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalCreatedFields\n }\n }\n ": typeof types.GetMultisigProposalCreatedByHashDocument, - "\n fragment MultisigProposalExecutedFields on executed_multisig_proposal {\n id\n timestamp\n approvers\n result\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n": typeof types.MultisigProposalExecutedFieldsFragmentDoc, - "\n \n query GetMultisigProposalExecuted(\n $limit: Int\n $offset: Int\n $orderBy: [executed_multisig_proposal_order_by!]\n $where: executed_multisig_proposal_bool_exp\n ) {\n multisigProposalExecutedEvents: executed_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalExecutedFields\n }\n meta: executed_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": typeof types.GetMultisigProposalExecutedDocument, - "\n query GetMultisigProposalExecutedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: executed_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposals_executed\n }\n }\n ": typeof types.GetMultisigProposalExecutedStatsDocument, - "\n \n query GetMultisigProposalExecutedByHash($hash: String!) {\n multisigProposalExecutedEvents: executed_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalExecutedFields\n }\n }\n ": typeof types.GetMultisigProposalExecutedByHashDocument, - "\n fragment MultisigProposalReadyFields on multisig_proposal_ready {\n id\n timestamp\n approvals_count\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n": typeof types.MultisigProposalReadyFieldsFragmentDoc, - "\n \n query GetMultisigProposalReady(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_ready_order_by!]\n $where: multisig_proposal_ready_bool_exp\n ) {\n multisigProposalReadyEvents: multisig_proposal_ready(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalReadyFields\n }\n meta: multisig_proposal_ready_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": typeof types.GetMultisigProposalReadyDocument, - "\n query GetMultisigProposalReadyStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_ready_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposal_ready\n }\n }\n ": typeof types.GetMultisigProposalReadyStatsDocument, - "\n \n query GetMultisigProposalReadyByHash($hash: String!) {\n multisigProposalReadyEvents: multisig_proposal_ready(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalReadyFields\n }\n }\n ": typeof types.GetMultisigProposalReadyByHashDocument, - "\n fragment MultisigProposalRemovedFields on removed_multisig_proposal {\n id\n timestamp\n removedBy {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n": typeof types.MultisigProposalRemovedFieldsFragmentDoc, - "\n \n query GetMultisigProposalRemoved(\n $limit: Int\n $offset: Int\n $orderBy: [removed_multisig_proposal_order_by!]\n $where: removed_multisig_proposal_bool_exp\n ) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalRemovedFields\n }\n meta: removed_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": typeof types.GetMultisigProposalRemovedDocument, - "\n query GetMultisigProposalRemovedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: removed_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposals_removed\n }\n }\n ": typeof types.GetMultisigProposalRemovedStatsDocument, - "\n \n query GetMultisigProposalRemovedByHash($hash: String!) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalRemovedFields\n }\n }\n ": typeof types.GetMultisigProposalRemovedByHashDocument, - "\n fragment MultisigProposalListFields on multisig_proposal {\n id\n status\n deposit\n expiry_block\n approvals\n created_at\n multisig {\n id\n }\n proposer {\n id\n }\n }\n": typeof types.MultisigProposalListFieldsFragmentDoc, - "\n fragment MultisigProposalDetailFields on multisig_proposal {\n id\n status\n deposit\n expiry_block\n approvals\n pallet\n call\n call_raw\n decode_error\n created_at\n tx_id\n transfer_amount\n schedule_amount\n delay_kind\n delay_value\n schedule_asset_id\n multisig {\n id\n }\n proposer {\n id\n }\n guardian {\n id\n }\n transferTo {\n id\n }\n scheduleTo {\n id\n }\n recoverAccount {\n id\n }\n createdExtrinsic {\n id\n pallet\n call\n }\n createdAtBlock {\n height\n }\n }\n": typeof types.MultisigProposalDetailFieldsFragmentDoc, - "\n fragment MultisigProposalLifecycleEventFields on multisig_proposal_created {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n": typeof types.MultisigProposalLifecycleEventFieldsFragmentDoc, - "\n \n query GetMultisigProposals(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_order_by!]\n $where: multisig_proposal_bool_exp\n ) {\n multisigProposals: multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalListFields\n }\n meta: multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": typeof types.GetMultisigProposalsDocument, - "\n query GetMultisigProposalStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_aggregate(\n where: { created_at: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposals\n }\n }\n ": typeof types.GetMultisigProposalStatsDocument, - "\n \n \n query GetMultisigProposalById($id: String!) {\n multisigProposal: multisig_proposal_by_pk(id: $id) {\n ...MultisigProposalDetailFields\n }\n createdEvents: multisig_proposal_created(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n ...MultisigProposalLifecycleEventFields\n }\n signerApprovedEvents: multisig_signer_approved(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n readyEvents: multisig_proposal_ready(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n executedEvents: executed_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n cancelledEvents: cancelled_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n removedEvents: removed_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n }\n ": typeof types.GetMultisigProposalByIdDocument, - "\n fragment MultisigSignerApprovedFields on multisig_signer_approved {\n id\n timestamp\n approvals_count\n approver {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n": typeof types.MultisigSignerApprovedFieldsFragmentDoc, - "\n \n query GetMultisigSignerApproved(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_signer_approved_order_by!]\n $where: multisig_signer_approved_bool_exp\n ) {\n multisigSignerApprovedEvents: multisig_signer_approved(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigSignerApprovedFields\n }\n meta: multisig_signer_approved_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": typeof types.GetMultisigSignerApprovedDocument, - "\n query GetMultisigSignerApprovedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_signer_approved_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_signer_approved\n }\n }\n ": typeof types.GetMultisigSignerApprovedStatsDocument, - "\n \n query GetMultisigSignerApprovedByHash($hash: String!) {\n multisigSignerApprovedEvents: multisig_signer_approved(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigSignerApprovedFields\n }\n }\n ": typeof types.GetMultisigSignerApprovedByHashDocument, - "\n query GetScheduledReversibleTransactionByTxId($tx_id: String!) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ": typeof types.GetScheduledReversibleTransactionByTxIdDocument, - "\n query SearchHex($keyword: String, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: {\n _or: [{ hash: { _like: $keyword } }, { detail_id: { _like: $keyword } }]\n }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n blocks: block(limit: $limit, where: { hash: { _like: $keyword } }) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _like: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n": typeof types.SearchHexDocument, - "\n query SearchNumeric($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: { detail_id: { _like: $keyword } }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n blocks: block(limit: $limit, where: { height: { _eq: $keyword_number } }) {\n height\n }\n }\n": typeof types.SearchNumericDocument, - "\n query SearchText($keyword: String, $limit: Int) {\n accounts: account(limit: $limit, where: { id: { _like: $keyword } }) {\n id\n }\n errorEvents: error_event(\n limit: $limit\n where: {\n _or: [\n { error_type: { _ilike: $keyword } }\n { error_name: { _ilike: $keyword } }\n ]\n }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n": typeof types.SearchTextDocument, - "\n query GetExtrinsicByHash($hash: String!) {\n extrinsics: extrinsic(where: { id: { _eq: $hash } }) {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n transfersByExtrinsic: transfer(\n where: { extrinsic: { id: { _eq: $hash } } }\n order_by: { timestamp: asc }\n ) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n }\n transfersById: transfer(where: { id: { _eq: $hash } }) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n }\n }\n ": typeof types.GetExtrinsicByHashDocument, - "\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById: wormhole_extrinsic_by_pk(id: $id) {\n id\n extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n privacy_score\n privacy_score01_pct\n privacy_score1_pct\n privacy_score5_pct\n privacy_label\n pool_snapshot\n block {\n id\n height\n hash\n timestamp\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n wormholeNullifiers: wormhole_nullifier(\n where: { wormholeExtrinsic: { id: { _eq: $id } } }\n ) {\n nullifier\n nullifier_hash\n }\n }\n": typeof types.GetWormholeExtrinsicByIdDocument, - "\n query GetTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [transfer_order_by!]\n $where: transfer_bool_exp\n ) {\n transactions: transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n extrinsic {\n id\n }\n }\n }\n": typeof types.GetTransactionsDocument, - "\n query GetCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_reversible_transfer_order_by!]\n $where: cancelled_reversible_transfer_bool_exp\n ) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n": typeof types.GetCancelledReversibleTransactionsDocument, - "\n query GetExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [executed_reversible_transfer_order_by!]\n $where: executed_reversible_transfer_bool_exp\n ) {\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n": typeof types.GetExecutedReversibleTransactionsDocument, - "\n query GetScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n $where: scheduled_reversible_transfer_bool_exp\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n": typeof types.GetScheduledReversibleTransactionsDocument, - "\n query GetWormholeExtrinsics(\n $limit: Int\n $offset: Int\n $orderBy: [wormhole_extrinsic_order_by!]!\n $where: wormhole_extrinsic_bool_exp\n ) {\n wormholeExtrinsics: wormhole_extrinsic(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n }\n }\n": typeof types.GetWormholeExtrinsicsDocument, + '\n query GetAccounts(\n $limit: Int\n $offset: Int\n $orderBy: [account_order_by!]\n ) {\n accounts: account(limit: $limit, offset: $offset, order_by: $orderBy) {\n id\n free\n frozen\n reserved\n is_high_security\n is_guardian\n is_multisig\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_accounts\n }\n }\n ': typeof types.GetAccountsDocument; + '\n query GetAccountById($id: String!) {\n account: account_by_pk(id: $id) {\n id\n free\n frozen\n reserved\n }\n accountStats: account_stats_by_pk(id: $id) {\n total_cancelled_transfers\n total_executed_transfers\n total_immediate_transfers\n total_mined_blocks\n total_rewards\n total_scheduled_transfers\n }\n multisig: multisig_by_pk(id: $id) {\n id\n }\n guardian: high_security_set_aggregate(\n where: { who: { id: { _eq: $id } } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n beneficiaries: high_security_set_aggregate(\n where: { guardian: { id: { _eq: $id } } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetAccountByIdDocument; + '\n query GetAccountsStats($startDate: timestamptz!, $endDate: timestamptz!) {\n all: chain_stats_by_pk(id: "global") {\n total_accounts\n }\n\n recentlyActive: daily_active_account_aggregate(\n where: {\n date: { _gte: $startDate, _lte: $endDate }\n sent: { _eq: true }\n }\n ) {\n aggregate {\n count(columns: account_id, distinct: true)\n }\n }\n\n recentlyDeposited: daily_active_account_aggregate(\n where: {\n date: { _gte: $startDate, _lte: $endDate }\n received: { _eq: true }\n }\n ) {\n aggregate {\n count(columns: account_id, distinct: true)\n }\n }\n }\n ': typeof types.GetAccountsStatsDocument; + '\n query GetBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [block_order_by!]!\n $where: block_bool_exp\n ) {\n blocks: block(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n hash\n height\n reward\n timestamp\n mined_by_id\n extrinsics {\n id\n }\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: block_height\n }\n }\n ': typeof types.GetBlocksDocument; + '\n query GetBlockById($height: Int!, $hash: String!) {\n blocks: block(\n where: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics(order_by: { index_in_block: asc }) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock: index_in_block\n signer {\n id\n }\n }\n }\n minerRewards: miner_reward(\n where: {\n block: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n }\n ) {\n reward\n timestamp\n miner {\n id\n }\n block {\n height\n hash\n }\n }\n rewardTransfers: unified_transaction(\n where: {\n type: { _eq: "IMMEDIATE" }\n hash: { _is_null: true }\n block: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n }\n ) {\n amount\n detail_id\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetBlockByIdDocument; + '\n query GetBlockStats($startDate: timestamptz!, $endDate: timestamptz!) {\n chain: chain_stats_by_pk(id: "global") {\n block_height\n finalized_block_height\n }\n minedIn24Hours: block_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetBlockStatsDocument; + '\n query GetCancelledReversibleTransactionByTxId($tx_id: String!) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n extrinsic {\n id\n pallet\n call\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': typeof types.GetCancelledReversibleTransactionByTxIdDocument; + '\n query GetHomeChainStats(\n $last24HourWhere: unified_transaction_bool_exp!\n $dayLimit: Int!\n ) {\n status: chain_stats_by_pk(id: "global") {\n block_height\n total_accounts\n total_deposit_accounts\n total_immediate_transfers\n total_scheduled_transfers\n total_executed_transfers\n total_cancelled_transfers\n circulating_supply\n max_supply\n total_supply\n }\n last24Hour: unified_transaction_aggregate(where: $last24HourWhere) {\n aggregate {\n count\n }\n }\n dailyStats: daily_chain_stats(order_by: { date: desc }, limit: $dayLimit) {\n id\n date\n blocks_count\n tx_count\n active_accounts\n }\n }\n': typeof types.GetHomeChainStatsDocument; + '\n query GetStatus {\n status: chain_stats_by_pk(id: "global") {\n block_height\n total_accounts\n total_deposit_accounts\n total_executed_transfers\n total_immediate_transfers\n total_scheduled_transfers\n total_cancelled_transfers\n }\n }\n ': typeof types.GetStatusDocument; + '\n query GetErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [error_event_order_by!]\n $where: error_event_bool_exp\n ) {\n errorEvents: error_event(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n meta: error_event_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetErrorEventsDocument; + '\n query GetErrorEventsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: error_event_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_error_events\n }\n }\n ': typeof types.GetErrorEventsStatsDocument; + '\n query GetErrorEventByHash($hash: String!) {\n errorEvents: error_event(where: { extrinsic: { id: { _eq: $hash } } }) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ': typeof types.GetErrorEventByHashDocument; + '\n query GetExecutedReversibleTransactionByTxId($tx_id: String!) {\n executedReversibleTransactions: executed_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': typeof types.GetExecutedReversibleTransactionByTxIdDocument; + '\n query GetHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [high_security_set_order_by!]\n $where: high_security_set_bool_exp\n ) {\n highSecuritySets: high_security_set(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n guardian {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n meta: high_security_set_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetHighSecuritySetsDocument; + '\n query GetHighSecuritySetsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: high_security_set_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_high_security_sets\n }\n }\n ': typeof types.GetHighSecuritySetsStatsDocument; + '\n query GetHighSecuritySetByHash($hash: String!) {\n highSecuritySets: high_security_set(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n guardian {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ': typeof types.GetHighSecuritySetByHashDocument; + '\n query GetMinerLeaderboardStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n chain: chain_stats_by_pk(id: "global") {\n block_height\n total_miners\n }\n last24Hour: miner_reward_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetMinerLeaderboardStatsDocument; + '\n query GetMinerLeaderboardChart($limit: Int) {\n topMiners: account_stats(\n limit: $limit\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n id\n total_mined_blocks\n }\n blocks: chain_stats_by_pk(id: "global") {\n totalCount: block_height\n }\n }\n ': typeof types.GetMinerLeaderboardChartDocument; + '\n query GetMinerLeaderboard($limit: Int, $offset: Int) {\n leaderboardEntries: account_stats(\n limit: $limit\n offset: $offset\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n id\n total_mined_blocks\n total_rewards\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_miners\n block_height\n }\n topMiner: account_stats(\n limit: 1\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n total_mined_blocks\n }\n }\n ': typeof types.GetMinerLeaderboardDocument; + '\n query GetMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: miner_reward_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n': typeof types.GetMinerRewardsDocument; + '\n query GetMinerRewardsWithChainTotal(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_miner_rewards\n }\n }\n': typeof types.GetMinerRewardsWithChainTotalDocument; + '\n query GetMinerRewardsWithMinerTotal(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n $minerId: String!\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: account_stats_by_pk(id: $minerId) {\n totalCount: total_mined_blocks\n }\n }\n': typeof types.GetMinerRewardsWithMinerTotalDocument; + '\n query GetMinerRewardsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: miner_reward_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_miner_rewards\n }\n }\n ': typeof types.GetMinerRewardsStatsDocument; + '\n query GetMinerRewardByHash($hash: String!) {\n minerRewards: miner_reward(where: { block: { hash: { _eq: $hash } } }) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ': typeof types.GetMinerRewardByHashDocument; + '\n fragment MultisigCreatedFields on multisig {\n id\n timestamp\n threshold\n nonce\n signers\n creator {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n': typeof types.MultisigCreatedFieldsFragmentDoc; + '\n \n query GetMultisigCreated(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_order_by!]\n $where: multisig_bool_exp\n ) {\n multisigCreatedEvents: multisig(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigCreatedFields\n }\n meta: multisig_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetMultisigCreatedDocument; + '\n query GetMultisigCreatedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisigs_created\n }\n }\n ': typeof types.GetMultisigCreatedStatsDocument; + '\n \n query GetMultisigCreatedByHash($hash: String!) {\n multisigCreatedEvents: multisig(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigCreatedFields\n }\n }\n ': typeof types.GetMultisigCreatedByHashDocument; + '\n \n query GetMultisigById($id: String!) {\n multisig: multisig_by_pk(id: $id) {\n ...MultisigCreatedFields\n }\n }\n ': typeof types.GetMultisigByIdDocument; + '\n fragment MultisigDepositsClaimedFields on multisig_deposits_claimed {\n id\n timestamp\n total_returned\n proposals_removed\n claimer {\n id\n }\n multisig {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n': typeof types.MultisigDepositsClaimedFieldsFragmentDoc; + '\n \n query GetMultisigDepositsClaimed(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_deposits_claimed_order_by!]\n $where: multisig_deposits_claimed_bool_exp\n ) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigDepositsClaimedFields\n }\n meta: multisig_deposits_claimed_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetMultisigDepositsClaimedDocument; + '\n query GetMultisigDepositsClaimedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_deposits_claimed_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_deposits_claimed\n }\n }\n ': typeof types.GetMultisigDepositsClaimedStatsDocument; + '\n \n query GetMultisigDepositsClaimedByHash($hash: String!) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigDepositsClaimedFields\n }\n }\n ': typeof types.GetMultisigDepositsClaimedByHashDocument; + '\n fragment MultisigProposalCancelledFields on cancelled_multisig_proposal {\n id\n timestamp\n cancelledBy {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n': typeof types.MultisigProposalCancelledFieldsFragmentDoc; + '\n \n query GetMultisigProposalCancelled(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_multisig_proposal_order_by!]\n $where: cancelled_multisig_proposal_bool_exp\n ) {\n multisigProposalCancelledEvents: cancelled_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalCancelledFields\n }\n meta: cancelled_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetMultisigProposalCancelledDocument; + '\n query GetMultisigProposalCancelledStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: cancelled_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposals_cancelled\n }\n }\n ': typeof types.GetMultisigProposalCancelledStatsDocument; + '\n \n query GetMultisigProposalCancelledByHash($hash: String!) {\n multisigProposalCancelledEvents: cancelled_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalCancelledFields\n }\n }\n ': typeof types.GetMultisigProposalCancelledByHashDocument; + '\n fragment MultisigProposalRefFields on multisig_proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n': typeof types.MultisigProposalRefFieldsFragmentDoc; + '\n \n fragment MultisigProposalCreatedFields on multisig_proposal_created {\n id\n timestamp\n proposal {\n ...MultisigProposalRefFields\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n': typeof types.MultisigProposalCreatedFieldsFragmentDoc; + '\n \n query GetMultisigProposalCreated(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_created_order_by!]\n $where: multisig_proposal_created_bool_exp\n ) {\n multisigProposalCreatedEvents: multisig_proposal_created(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalCreatedFields\n }\n meta: multisig_proposal_created_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetMultisigProposalCreatedDocument; + '\n query GetMultisigProposalCreatedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_created_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposals\n }\n }\n ': typeof types.GetMultisigProposalCreatedStatsDocument; + '\n \n query GetMultisigProposalCreatedByHash($hash: String!) {\n multisigProposalCreatedEvents: multisig_proposal_created(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalCreatedFields\n }\n }\n ': typeof types.GetMultisigProposalCreatedByHashDocument; + '\n fragment MultisigProposalExecutedFields on executed_multisig_proposal {\n id\n timestamp\n approvers\n result\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n': typeof types.MultisigProposalExecutedFieldsFragmentDoc; + '\n \n query GetMultisigProposalExecuted(\n $limit: Int\n $offset: Int\n $orderBy: [executed_multisig_proposal_order_by!]\n $where: executed_multisig_proposal_bool_exp\n ) {\n multisigProposalExecutedEvents: executed_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalExecutedFields\n }\n meta: executed_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetMultisigProposalExecutedDocument; + '\n query GetMultisigProposalExecutedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: executed_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposals_executed\n }\n }\n ': typeof types.GetMultisigProposalExecutedStatsDocument; + '\n \n query GetMultisigProposalExecutedByHash($hash: String!) {\n multisigProposalExecutedEvents: executed_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalExecutedFields\n }\n }\n ': typeof types.GetMultisigProposalExecutedByHashDocument; + '\n fragment MultisigProposalReadyFields on multisig_proposal_ready {\n id\n timestamp\n approvals_count\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n': typeof types.MultisigProposalReadyFieldsFragmentDoc; + '\n \n query GetMultisigProposalReady(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_ready_order_by!]\n $where: multisig_proposal_ready_bool_exp\n ) {\n multisigProposalReadyEvents: multisig_proposal_ready(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalReadyFields\n }\n meta: multisig_proposal_ready_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetMultisigProposalReadyDocument; + '\n query GetMultisigProposalReadyStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_ready_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposal_ready\n }\n }\n ': typeof types.GetMultisigProposalReadyStatsDocument; + '\n \n query GetMultisigProposalReadyByHash($hash: String!) {\n multisigProposalReadyEvents: multisig_proposal_ready(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalReadyFields\n }\n }\n ': typeof types.GetMultisigProposalReadyByHashDocument; + '\n fragment MultisigProposalRemovedFields on removed_multisig_proposal {\n id\n timestamp\n removedBy {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n': typeof types.MultisigProposalRemovedFieldsFragmentDoc; + '\n \n query GetMultisigProposalRemoved(\n $limit: Int\n $offset: Int\n $orderBy: [removed_multisig_proposal_order_by!]\n $where: removed_multisig_proposal_bool_exp\n ) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalRemovedFields\n }\n meta: removed_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetMultisigProposalRemovedDocument; + '\n query GetMultisigProposalRemovedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: removed_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposals_removed\n }\n }\n ': typeof types.GetMultisigProposalRemovedStatsDocument; + '\n \n query GetMultisigProposalRemovedByHash($hash: String!) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalRemovedFields\n }\n }\n ': typeof types.GetMultisigProposalRemovedByHashDocument; + '\n fragment MultisigProposalListFields on multisig_proposal {\n id\n status\n deposit\n expiry_block\n approvals\n created_at\n multisig {\n id\n }\n proposer {\n id\n }\n }\n': typeof types.MultisigProposalListFieldsFragmentDoc; + '\n fragment MultisigProposalDetailFields on multisig_proposal {\n id\n status\n deposit\n expiry_block\n approvals\n pallet\n call\n call_raw\n decode_error\n created_at\n tx_id\n transfer_amount\n schedule_amount\n delay_kind\n delay_value\n schedule_asset_id\n multisig {\n id\n }\n proposer {\n id\n }\n guardian {\n id\n }\n transferTo {\n id\n }\n scheduleTo {\n id\n }\n recoverAccount {\n id\n }\n createdExtrinsic {\n id\n pallet\n call\n }\n createdAtBlock {\n height\n }\n }\n': typeof types.MultisigProposalDetailFieldsFragmentDoc; + '\n fragment MultisigProposalLifecycleEventFields on multisig_proposal_created {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n': typeof types.MultisigProposalLifecycleEventFieldsFragmentDoc; + '\n \n query GetMultisigProposals(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_order_by!]\n $where: multisig_proposal_bool_exp\n ) {\n multisigProposals: multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalListFields\n }\n meta: multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetMultisigProposalsDocument; + '\n query GetMultisigProposalStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_aggregate(\n where: { created_at: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposals\n }\n }\n ': typeof types.GetMultisigProposalStatsDocument; + '\n \n \n query GetMultisigProposalById($id: String!) {\n multisigProposal: multisig_proposal_by_pk(id: $id) {\n ...MultisigProposalDetailFields\n }\n createdEvents: multisig_proposal_created(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n ...MultisigProposalLifecycleEventFields\n }\n signerApprovedEvents: multisig_signer_approved(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n readyEvents: multisig_proposal_ready(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n executedEvents: executed_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n cancelledEvents: cancelled_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n removedEvents: removed_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n }\n ': typeof types.GetMultisigProposalByIdDocument; + '\n fragment MultisigSignerApprovedFields on multisig_signer_approved {\n id\n timestamp\n approvals_count\n approver {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n': typeof types.MultisigSignerApprovedFieldsFragmentDoc; + '\n \n query GetMultisigSignerApproved(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_signer_approved_order_by!]\n $where: multisig_signer_approved_bool_exp\n ) {\n multisigSignerApprovedEvents: multisig_signer_approved(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigSignerApprovedFields\n }\n meta: multisig_signer_approved_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetMultisigSignerApprovedDocument; + '\n query GetMultisigSignerApprovedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_signer_approved_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_signer_approved\n }\n }\n ': typeof types.GetMultisigSignerApprovedStatsDocument; + '\n \n query GetMultisigSignerApprovedByHash($hash: String!) {\n multisigSignerApprovedEvents: multisig_signer_approved(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigSignerApprovedFields\n }\n }\n ': typeof types.GetMultisigSignerApprovedByHashDocument; + '\n query GetScheduledReversibleTransactionByTxId($tx_id: String!) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetScheduledReversibleTransactionByTxIdDocument; + '\n query SearchHex($keyword: String, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: {\n _or: [{ hash: { _like: $keyword } }, { detail_id: { _like: $keyword } }]\n }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n blocks: block(limit: $limit, where: { hash: { _like: $keyword } }) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _like: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n': typeof types.SearchHexDocument; + '\n query SearchNumeric($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: { detail_id: { _like: $keyword } }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n blocks: block(limit: $limit, where: { height: { _eq: $keyword_number } }) {\n height\n }\n }\n': typeof types.SearchNumericDocument; + '\n query SearchText($keyword: String, $limit: Int) {\n accounts: account(limit: $limit, where: { id: { _like: $keyword } }) {\n id\n }\n errorEvents: error_event(\n limit: $limit\n where: {\n _or: [\n { error_type: { _ilike: $keyword } }\n { error_name: { _ilike: $keyword } }\n ]\n }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n': typeof types.SearchTextDocument; + '\n query GetExtrinsicByHash($hash: String!) {\n extrinsics: extrinsic(where: { id: { _eq: $hash } }) {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n transfersByExtrinsic: transfer(\n where: { extrinsic: { id: { _eq: $hash } } }\n order_by: { timestamp: asc }\n ) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n }\n transfersById: transfer(where: { id: { _eq: $hash } }) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n }\n }\n ': typeof types.GetExtrinsicByHashDocument; + '\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById: wormhole_extrinsic_by_pk(id: $id) {\n id\n extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n privacy_score\n privacy_score01_pct\n privacy_score1_pct\n privacy_score5_pct\n privacy_label\n pool_snapshot\n block {\n id\n height\n hash\n timestamp\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n wormholeNullifiers: wormhole_nullifier(\n where: { wormholeExtrinsic: { id: { _eq: $id } } }\n ) {\n nullifier\n nullifier_hash\n }\n }\n': typeof types.GetWormholeExtrinsicByIdDocument; + '\n query BusyAccounts($limit: Int!) {\n account_stats(\n limit: $limit\n order_by: { total_immediate_transfers: desc }\n ) {\n id\n total_immediate_transfers\n total_mined_blocks\n }\n }\n ': typeof types.BusyAccountsDocument; + '\n query MinerAccount {\n account_stats(limit: 1, order_by: { total_mined_blocks: desc }) {\n id\n total_mined_blocks\n }\n }\n ': typeof types.MinerAccountDocument; + '\n query DiscoveryIds($limit: Int!) {\n account(limit: $limit, order_by: { id: desc }) {\n id\n }\n }\n ': typeof types.DiscoveryIdsDocument; + '\n query HistoryCursor($accounts: [String!]!, $limit: Int!) {\n account_event(\n limit: $limit\n where: {\n _and: [\n { account_id: { _in: $accounts } }\n { scheduled_reversible_transfer_id: { _is_null: true } }\n ]\n }\n order_by: [{ timestamp: desc }, { id: desc }]\n ) {\n id\n timestamp\n }\n }\n ': typeof types.HistoryCursorDocument; + '\n query HistoryDeepCursor($accounts: [String!]!) {\n account_event(\n limit: 1\n offset: 2000\n where: {\n _and: [\n { account_id: { _in: $accounts } }\n { scheduled_reversible_transfer_id: { _is_null: true } }\n ]\n }\n order_by: [{ timestamp: desc }, { id: desc }]\n ) {\n id\n timestamp\n }\n }\n ': typeof types.HistoryDeepCursorDocument; + '\n query MinerHistoryCursor($accounts: [String!]!, $limit: Int!) {\n account_event(\n limit: $limit\n where: {\n _and: [\n { account_id: { _in: $accounts } }\n { scheduled_reversible_transfer_id: { _is_null: true } }\n ]\n }\n order_by: [{ timestamp: desc }, { id: desc }]\n ) {\n id\n timestamp\n }\n }\n ': typeof types.MinerHistoryCursorDocument; + '\n query SampleTransfer {\n transfer(\n limit: 1\n where: { extrinsic_id: { _is_null: false } }\n order_by: { timestamp: desc }\n ) {\n from_id\n to_id\n amount\n block_height\n extrinsic {\n id\n }\n }\n }\n ': typeof types.SampleTransferDocument; + '\n query SampleScheduled {\n scheduled_reversible_transfer(\n limit: 1\n order_by: { timestamp: desc }\n ) {\n from {\n id\n }\n to {\n id\n }\n amount\n block {\n height\n }\n extrinsic {\n id\n }\n }\n }\n ': typeof types.SampleScheduledDocument; + '\n query SampleExecuted {\n executed_reversible_transfer(\n limit: 1\n order_by: { timestamp: desc }\n ) {\n tx_id\n }\n }\n ': typeof types.SampleExecutedDocument; + '\n query SampleWormholeRecipient {\n transfer(\n limit: 1\n where: { leaf_index: { _gt: "0" } }\n order_by: { transfer_count: desc }\n ) {\n to_id\n }\n }\n ': typeof types.SampleWormholeRecipientDocument; + '\n query WormholeCursor($tos: [String!]!, $limit: Int!) {\n transfer(\n where: { to_id: { _in: $tos }, block_height: { _gt: 0 } }\n order_by: [{ block_height: asc }, { id: asc }]\n limit: $limit\n ) {\n id\n block_height\n }\n }\n ': typeof types.WormholeCursorDocument; + '\n query SampleNullifiers($limit: Int!) {\n wormhole_nullifier(limit: $limit, order_by: { timestamp: desc }) {\n nullifier_hash\n }\n }\n ': typeof types.SampleNullifiersDocument; + '\n query SampleMultisig {\n multisig(limit: 1, order_by: { timestamp: desc }) {\n id\n signers\n }\n }\n ': typeof types.SampleMultisigDocument; + '\n query SampleProposal {\n multisig_proposal(limit: 1, order_by: { updated_at: desc }) {\n proposal_id\n multisig_id\n }\n }\n ': typeof types.SampleProposalDocument; + '\n query SampleProposalCreated {\n multisig_proposal_created(limit: 1, order_by: { timestamp: desc }) {\n extrinsic {\n id\n }\n }\n }\n ': typeof types.SampleProposalCreatedDocument; + '\n query SampleSignerApproved {\n multisig_signer_approved(limit: 1, order_by: { timestamp: desc }) {\n extrinsic {\n id\n }\n }\n }\n ': typeof types.SampleSignerApprovedDocument; + '\n query SampleProposalExecuted {\n executed_multisig_proposal(limit: 1, order_by: { timestamp: desc }) {\n extrinsic {\n id\n }\n }\n }\n ': typeof types.SampleProposalExecutedDocument; + '\n query SampleProposalCancelled {\n cancelled_multisig_proposal(limit: 1, order_by: { timestamp: desc }) {\n extrinsic {\n id\n }\n }\n }\n ': typeof types.SampleProposalCancelledDocument; + '\n query GetTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [transfer_order_by!]\n $where: transfer_bool_exp\n ) {\n transactions: transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n extrinsic {\n id\n }\n }\n }\n': typeof types.GetTransactionsDocument; + '\n query GetCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_reversible_transfer_order_by!]\n $where: cancelled_reversible_transfer_bool_exp\n ) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n': typeof types.GetCancelledReversibleTransactionsDocument; + '\n query GetExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [executed_reversible_transfer_order_by!]\n $where: executed_reversible_transfer_bool_exp\n ) {\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n': typeof types.GetExecutedReversibleTransactionsDocument; + '\n query GetScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n $where: scheduled_reversible_transfer_bool_exp\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n': typeof types.GetScheduledReversibleTransactionsDocument; + '\n query GetWormholeExtrinsics(\n $limit: Int\n $offset: Int\n $orderBy: [wormhole_extrinsic_order_by!]!\n $where: wormhole_extrinsic_bool_exp\n ) {\n wormholeExtrinsics: wormhole_extrinsic(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n }\n }\n': typeof types.GetWormholeExtrinsicsDocument; }; const documents: Documents = { - "\n query GetAccounts(\n $limit: Int\n $offset: Int\n $orderBy: [account_order_by!]\n ) {\n accounts: account(limit: $limit, offset: $offset, order_by: $orderBy) {\n id\n free\n frozen\n reserved\n is_high_security\n is_guardian\n is_multisig\n }\n meta: chain_stats_by_pk(id: \"global\") {\n totalCount: total_accounts\n }\n }\n ": types.GetAccountsDocument, - "\n query GetAccountById($id: String!) {\n account: account_by_pk(id: $id) {\n id\n free\n frozen\n reserved\n }\n accountStats: account_stats_by_pk(id: $id) {\n total_cancelled_transfers\n total_executed_transfers\n total_immediate_transfers\n total_mined_blocks\n total_rewards\n total_scheduled_transfers\n }\n multisig: multisig_by_pk(id: $id) {\n id\n }\n guardian: high_security_set_aggregate(\n where: { who: { id: { _eq: $id } } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n beneficiaries: high_security_set_aggregate(\n where: { guardian: { id: { _eq: $id } } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": types.GetAccountByIdDocument, - "\n query GetAccountsStats($startDate: timestamptz!, $endDate: timestamptz!) {\n all: chain_stats_by_pk(id: \"global\") {\n total_accounts\n }\n\n recentlyActive: daily_active_account_aggregate(\n where: {\n date: { _gte: $startDate, _lte: $endDate }\n sent: { _eq: true }\n }\n ) {\n aggregate {\n count(columns: account_id, distinct: true)\n }\n }\n\n recentlyDeposited: daily_active_account_aggregate(\n where: {\n date: { _gte: $startDate, _lte: $endDate }\n received: { _eq: true }\n }\n ) {\n aggregate {\n count(columns: account_id, distinct: true)\n }\n }\n }\n ": types.GetAccountsStatsDocument, - "\n query GetBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [block_order_by!]!\n $where: block_bool_exp\n ) {\n blocks: block(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n hash\n height\n reward\n timestamp\n mined_by_id\n extrinsics {\n id\n }\n }\n meta: chain_stats_by_pk(id: \"global\") {\n totalCount: block_height\n }\n }\n ": types.GetBlocksDocument, - "\n query GetBlockById($height: Int!, $hash: String!) {\n blocks: block(\n where: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics(order_by: { index_in_block: asc }) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock: index_in_block\n signer {\n id\n }\n }\n }\n minerRewards: miner_reward(\n where: {\n block: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n }\n ) {\n reward\n timestamp\n miner {\n id\n }\n block {\n height\n hash\n }\n }\n rewardTransfers: unified_transaction(\n where: {\n type: { _eq: \"IMMEDIATE\" }\n hash: { _is_null: true }\n block: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n }\n ) {\n amount\n detail_id\n from {\n id\n }\n to {\n id\n }\n }\n }\n ": types.GetBlockByIdDocument, - "\n query GetBlockStats($startDate: timestamptz!, $endDate: timestamptz!) {\n chain: chain_stats_by_pk(id: \"global\") {\n block_height\n finalized_block_height\n }\n minedIn24Hours: block_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": types.GetBlockStatsDocument, - "\n query GetCancelledReversibleTransactionByTxId($tx_id: String!) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n extrinsic {\n id\n pallet\n call\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ": types.GetCancelledReversibleTransactionByTxIdDocument, - "\n query GetHomeChainStats(\n $last24HourWhere: unified_transaction_bool_exp!\n $dayLimit: Int!\n ) {\n status: chain_stats_by_pk(id: \"global\") {\n block_height\n total_accounts\n total_deposit_accounts\n total_immediate_transfers\n total_scheduled_transfers\n total_executed_transfers\n total_cancelled_transfers\n }\n last24Hour: unified_transaction_aggregate(where: $last24HourWhere) {\n aggregate {\n count\n }\n }\n dailyStats: daily_chain_stats(order_by: { date: desc }, limit: $dayLimit) {\n id\n date\n blocks_count\n tx_count\n active_accounts\n }\n }\n": types.GetHomeChainStatsDocument, - "\n query GetStatus {\n status: chain_stats_by_pk(id: \"global\") {\n block_height\n total_accounts\n total_deposit_accounts\n total_executed_transfers\n total_immediate_transfers\n total_scheduled_transfers\n total_cancelled_transfers\n }\n }\n ": types.GetStatusDocument, - "\n query GetErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [error_event_order_by!]\n $where: error_event_bool_exp\n ) {\n errorEvents: error_event(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n meta: error_event_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": types.GetErrorEventsDocument, - "\n query GetErrorEventsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: error_event_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_error_events\n }\n }\n ": types.GetErrorEventsStatsDocument, - "\n query GetErrorEventByHash($hash: String!) {\n errorEvents: error_event(where: { extrinsic: { id: { _eq: $hash } } }) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ": types.GetErrorEventByHashDocument, - "\n query GetExecutedReversibleTransactionByTxId($tx_id: String!) {\n executedReversibleTransactions: executed_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ": types.GetExecutedReversibleTransactionByTxIdDocument, - "\n query GetHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [high_security_set_order_by!]\n $where: high_security_set_bool_exp\n ) {\n highSecuritySets: high_security_set(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n guardian {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n meta: high_security_set_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": types.GetHighSecuritySetsDocument, - "\n query GetHighSecuritySetsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: high_security_set_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_high_security_sets\n }\n }\n ": types.GetHighSecuritySetsStatsDocument, - "\n query GetHighSecuritySetByHash($hash: String!) {\n highSecuritySets: high_security_set(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n guardian {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ": types.GetHighSecuritySetByHashDocument, - "\n query GetMinerLeaderboardStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n chain: chain_stats_by_pk(id: \"global\") {\n block_height\n total_miners\n }\n last24Hour: miner_reward_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": types.GetMinerLeaderboardStatsDocument, - "\n query GetMinerLeaderboardChart($limit: Int) {\n topMiners: account_stats(\n limit: $limit\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n id\n total_mined_blocks\n }\n blocks: chain_stats_by_pk(id: \"global\") {\n totalCount: block_height\n }\n }\n ": types.GetMinerLeaderboardChartDocument, - "\n query GetMinerLeaderboard($limit: Int, $offset: Int) {\n leaderboardEntries: account_stats(\n limit: $limit\n offset: $offset\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n id\n total_mined_blocks\n total_rewards\n }\n meta: chain_stats_by_pk(id: \"global\") {\n totalCount: total_miners\n block_height\n }\n topMiner: account_stats(\n limit: 1\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n total_mined_blocks\n }\n }\n ": types.GetMinerLeaderboardDocument, - "\n query GetMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: miner_reward_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n": types.GetMinerRewardsDocument, - "\n query GetMinerRewardsWithChainTotal(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: chain_stats_by_pk(id: \"global\") {\n totalCount: total_miner_rewards\n }\n }\n": types.GetMinerRewardsWithChainTotalDocument, - "\n query GetMinerRewardsWithMinerTotal(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n $minerId: String!\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: account_stats_by_pk(id: $minerId) {\n totalCount: total_mined_blocks\n }\n }\n": types.GetMinerRewardsWithMinerTotalDocument, - "\n query GetMinerRewardsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: miner_reward_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_miner_rewards\n }\n }\n ": types.GetMinerRewardsStatsDocument, - "\n query GetMinerRewardByHash($hash: String!) {\n minerRewards: miner_reward(where: { block: { hash: { _eq: $hash } } }) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ": types.GetMinerRewardByHashDocument, - "\n fragment MultisigCreatedFields on multisig {\n id\n timestamp\n threshold\n nonce\n signers\n creator {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n": types.MultisigCreatedFieldsFragmentDoc, - "\n \n query GetMultisigCreated(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_order_by!]\n $where: multisig_bool_exp\n ) {\n multisigCreatedEvents: multisig(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigCreatedFields\n }\n meta: multisig_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": types.GetMultisigCreatedDocument, - "\n query GetMultisigCreatedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisigs_created\n }\n }\n ": types.GetMultisigCreatedStatsDocument, - "\n \n query GetMultisigCreatedByHash($hash: String!) {\n multisigCreatedEvents: multisig(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigCreatedFields\n }\n }\n ": types.GetMultisigCreatedByHashDocument, - "\n \n query GetMultisigById($id: String!) {\n multisig: multisig_by_pk(id: $id) {\n ...MultisigCreatedFields\n }\n }\n ": types.GetMultisigByIdDocument, - "\n fragment MultisigDepositsClaimedFields on multisig_deposits_claimed {\n id\n timestamp\n total_returned\n proposals_removed\n claimer {\n id\n }\n multisig {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n": types.MultisigDepositsClaimedFieldsFragmentDoc, - "\n \n query GetMultisigDepositsClaimed(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_deposits_claimed_order_by!]\n $where: multisig_deposits_claimed_bool_exp\n ) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigDepositsClaimedFields\n }\n meta: multisig_deposits_claimed_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": types.GetMultisigDepositsClaimedDocument, - "\n query GetMultisigDepositsClaimedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_deposits_claimed_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_deposits_claimed\n }\n }\n ": types.GetMultisigDepositsClaimedStatsDocument, - "\n \n query GetMultisigDepositsClaimedByHash($hash: String!) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigDepositsClaimedFields\n }\n }\n ": types.GetMultisigDepositsClaimedByHashDocument, - "\n fragment MultisigProposalCancelledFields on cancelled_multisig_proposal {\n id\n timestamp\n cancelledBy {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n": types.MultisigProposalCancelledFieldsFragmentDoc, - "\n \n query GetMultisigProposalCancelled(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_multisig_proposal_order_by!]\n $where: cancelled_multisig_proposal_bool_exp\n ) {\n multisigProposalCancelledEvents: cancelled_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalCancelledFields\n }\n meta: cancelled_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": types.GetMultisigProposalCancelledDocument, - "\n query GetMultisigProposalCancelledStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: cancelled_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposals_cancelled\n }\n }\n ": types.GetMultisigProposalCancelledStatsDocument, - "\n \n query GetMultisigProposalCancelledByHash($hash: String!) {\n multisigProposalCancelledEvents: cancelled_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalCancelledFields\n }\n }\n ": types.GetMultisigProposalCancelledByHashDocument, - "\n fragment MultisigProposalRefFields on multisig_proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n": types.MultisigProposalRefFieldsFragmentDoc, - "\n \n fragment MultisigProposalCreatedFields on multisig_proposal_created {\n id\n timestamp\n proposal {\n ...MultisigProposalRefFields\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n": types.MultisigProposalCreatedFieldsFragmentDoc, - "\n \n query GetMultisigProposalCreated(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_created_order_by!]\n $where: multisig_proposal_created_bool_exp\n ) {\n multisigProposalCreatedEvents: multisig_proposal_created(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalCreatedFields\n }\n meta: multisig_proposal_created_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": types.GetMultisigProposalCreatedDocument, - "\n query GetMultisigProposalCreatedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_created_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposals\n }\n }\n ": types.GetMultisigProposalCreatedStatsDocument, - "\n \n query GetMultisigProposalCreatedByHash($hash: String!) {\n multisigProposalCreatedEvents: multisig_proposal_created(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalCreatedFields\n }\n }\n ": types.GetMultisigProposalCreatedByHashDocument, - "\n fragment MultisigProposalExecutedFields on executed_multisig_proposal {\n id\n timestamp\n approvers\n result\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n": types.MultisigProposalExecutedFieldsFragmentDoc, - "\n \n query GetMultisigProposalExecuted(\n $limit: Int\n $offset: Int\n $orderBy: [executed_multisig_proposal_order_by!]\n $where: executed_multisig_proposal_bool_exp\n ) {\n multisigProposalExecutedEvents: executed_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalExecutedFields\n }\n meta: executed_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": types.GetMultisigProposalExecutedDocument, - "\n query GetMultisigProposalExecutedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: executed_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposals_executed\n }\n }\n ": types.GetMultisigProposalExecutedStatsDocument, - "\n \n query GetMultisigProposalExecutedByHash($hash: String!) {\n multisigProposalExecutedEvents: executed_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalExecutedFields\n }\n }\n ": types.GetMultisigProposalExecutedByHashDocument, - "\n fragment MultisigProposalReadyFields on multisig_proposal_ready {\n id\n timestamp\n approvals_count\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n": types.MultisigProposalReadyFieldsFragmentDoc, - "\n \n query GetMultisigProposalReady(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_ready_order_by!]\n $where: multisig_proposal_ready_bool_exp\n ) {\n multisigProposalReadyEvents: multisig_proposal_ready(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalReadyFields\n }\n meta: multisig_proposal_ready_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": types.GetMultisigProposalReadyDocument, - "\n query GetMultisigProposalReadyStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_ready_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposal_ready\n }\n }\n ": types.GetMultisigProposalReadyStatsDocument, - "\n \n query GetMultisigProposalReadyByHash($hash: String!) {\n multisigProposalReadyEvents: multisig_proposal_ready(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalReadyFields\n }\n }\n ": types.GetMultisigProposalReadyByHashDocument, - "\n fragment MultisigProposalRemovedFields on removed_multisig_proposal {\n id\n timestamp\n removedBy {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n": types.MultisigProposalRemovedFieldsFragmentDoc, - "\n \n query GetMultisigProposalRemoved(\n $limit: Int\n $offset: Int\n $orderBy: [removed_multisig_proposal_order_by!]\n $where: removed_multisig_proposal_bool_exp\n ) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalRemovedFields\n }\n meta: removed_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": types.GetMultisigProposalRemovedDocument, - "\n query GetMultisigProposalRemovedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: removed_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposals_removed\n }\n }\n ": types.GetMultisigProposalRemovedStatsDocument, - "\n \n query GetMultisigProposalRemovedByHash($hash: String!) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalRemovedFields\n }\n }\n ": types.GetMultisigProposalRemovedByHashDocument, - "\n fragment MultisigProposalListFields on multisig_proposal {\n id\n status\n deposit\n expiry_block\n approvals\n created_at\n multisig {\n id\n }\n proposer {\n id\n }\n }\n": types.MultisigProposalListFieldsFragmentDoc, - "\n fragment MultisigProposalDetailFields on multisig_proposal {\n id\n status\n deposit\n expiry_block\n approvals\n pallet\n call\n call_raw\n decode_error\n created_at\n tx_id\n transfer_amount\n schedule_amount\n delay_kind\n delay_value\n schedule_asset_id\n multisig {\n id\n }\n proposer {\n id\n }\n guardian {\n id\n }\n transferTo {\n id\n }\n scheduleTo {\n id\n }\n recoverAccount {\n id\n }\n createdExtrinsic {\n id\n pallet\n call\n }\n createdAtBlock {\n height\n }\n }\n": types.MultisigProposalDetailFieldsFragmentDoc, - "\n fragment MultisigProposalLifecycleEventFields on multisig_proposal_created {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n": types.MultisigProposalLifecycleEventFieldsFragmentDoc, - "\n \n query GetMultisigProposals(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_order_by!]\n $where: multisig_proposal_bool_exp\n ) {\n multisigProposals: multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalListFields\n }\n meta: multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": types.GetMultisigProposalsDocument, - "\n query GetMultisigProposalStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_aggregate(\n where: { created_at: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposals\n }\n }\n ": types.GetMultisigProposalStatsDocument, - "\n \n \n query GetMultisigProposalById($id: String!) {\n multisigProposal: multisig_proposal_by_pk(id: $id) {\n ...MultisigProposalDetailFields\n }\n createdEvents: multisig_proposal_created(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n ...MultisigProposalLifecycleEventFields\n }\n signerApprovedEvents: multisig_signer_approved(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n readyEvents: multisig_proposal_ready(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n executedEvents: executed_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n cancelledEvents: cancelled_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n removedEvents: removed_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n }\n ": types.GetMultisigProposalByIdDocument, - "\n fragment MultisigSignerApprovedFields on multisig_signer_approved {\n id\n timestamp\n approvals_count\n approver {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n": types.MultisigSignerApprovedFieldsFragmentDoc, - "\n \n query GetMultisigSignerApproved(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_signer_approved_order_by!]\n $where: multisig_signer_approved_bool_exp\n ) {\n multisigSignerApprovedEvents: multisig_signer_approved(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigSignerApprovedFields\n }\n meta: multisig_signer_approved_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ": types.GetMultisigSignerApprovedDocument, - "\n query GetMultisigSignerApprovedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_signer_approved_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_signer_approved\n }\n }\n ": types.GetMultisigSignerApprovedStatsDocument, - "\n \n query GetMultisigSignerApprovedByHash($hash: String!) {\n multisigSignerApprovedEvents: multisig_signer_approved(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigSignerApprovedFields\n }\n }\n ": types.GetMultisigSignerApprovedByHashDocument, - "\n query GetScheduledReversibleTransactionByTxId($tx_id: String!) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ": types.GetScheduledReversibleTransactionByTxIdDocument, - "\n query SearchHex($keyword: String, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: {\n _or: [{ hash: { _like: $keyword } }, { detail_id: { _like: $keyword } }]\n }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n blocks: block(limit: $limit, where: { hash: { _like: $keyword } }) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _like: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n": types.SearchHexDocument, - "\n query SearchNumeric($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: { detail_id: { _like: $keyword } }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n blocks: block(limit: $limit, where: { height: { _eq: $keyword_number } }) {\n height\n }\n }\n": types.SearchNumericDocument, - "\n query SearchText($keyword: String, $limit: Int) {\n accounts: account(limit: $limit, where: { id: { _like: $keyword } }) {\n id\n }\n errorEvents: error_event(\n limit: $limit\n where: {\n _or: [\n { error_type: { _ilike: $keyword } }\n { error_name: { _ilike: $keyword } }\n ]\n }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n": types.SearchTextDocument, - "\n query GetExtrinsicByHash($hash: String!) {\n extrinsics: extrinsic(where: { id: { _eq: $hash } }) {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n transfersByExtrinsic: transfer(\n where: { extrinsic: { id: { _eq: $hash } } }\n order_by: { timestamp: asc }\n ) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n }\n transfersById: transfer(where: { id: { _eq: $hash } }) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n }\n }\n ": types.GetExtrinsicByHashDocument, - "\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById: wormhole_extrinsic_by_pk(id: $id) {\n id\n extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n privacy_score\n privacy_score01_pct\n privacy_score1_pct\n privacy_score5_pct\n privacy_label\n pool_snapshot\n block {\n id\n height\n hash\n timestamp\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n wormholeNullifiers: wormhole_nullifier(\n where: { wormholeExtrinsic: { id: { _eq: $id } } }\n ) {\n nullifier\n nullifier_hash\n }\n }\n": types.GetWormholeExtrinsicByIdDocument, - "\n query GetTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [transfer_order_by!]\n $where: transfer_bool_exp\n ) {\n transactions: transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n extrinsic {\n id\n }\n }\n }\n": types.GetTransactionsDocument, - "\n query GetCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_reversible_transfer_order_by!]\n $where: cancelled_reversible_transfer_bool_exp\n ) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n": types.GetCancelledReversibleTransactionsDocument, - "\n query GetExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [executed_reversible_transfer_order_by!]\n $where: executed_reversible_transfer_bool_exp\n ) {\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n": types.GetExecutedReversibleTransactionsDocument, - "\n query GetScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n $where: scheduled_reversible_transfer_bool_exp\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n": types.GetScheduledReversibleTransactionsDocument, - "\n query GetWormholeExtrinsics(\n $limit: Int\n $offset: Int\n $orderBy: [wormhole_extrinsic_order_by!]!\n $where: wormhole_extrinsic_bool_exp\n ) {\n wormholeExtrinsics: wormhole_extrinsic(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n }\n }\n": types.GetWormholeExtrinsicsDocument, + '\n query GetAccounts(\n $limit: Int\n $offset: Int\n $orderBy: [account_order_by!]\n ) {\n accounts: account(limit: $limit, offset: $offset, order_by: $orderBy) {\n id\n free\n frozen\n reserved\n is_high_security\n is_guardian\n is_multisig\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_accounts\n }\n }\n ': + types.GetAccountsDocument, + '\n query GetAccountById($id: String!) {\n account: account_by_pk(id: $id) {\n id\n free\n frozen\n reserved\n }\n accountStats: account_stats_by_pk(id: $id) {\n total_cancelled_transfers\n total_executed_transfers\n total_immediate_transfers\n total_mined_blocks\n total_rewards\n total_scheduled_transfers\n }\n multisig: multisig_by_pk(id: $id) {\n id\n }\n guardian: high_security_set_aggregate(\n where: { who: { id: { _eq: $id } } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n beneficiaries: high_security_set_aggregate(\n where: { guardian: { id: { _eq: $id } } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': + types.GetAccountByIdDocument, + '\n query GetAccountsStats($startDate: timestamptz!, $endDate: timestamptz!) {\n all: chain_stats_by_pk(id: "global") {\n total_accounts\n }\n\n recentlyActive: daily_active_account_aggregate(\n where: {\n date: { _gte: $startDate, _lte: $endDate }\n sent: { _eq: true }\n }\n ) {\n aggregate {\n count(columns: account_id, distinct: true)\n }\n }\n\n recentlyDeposited: daily_active_account_aggregate(\n where: {\n date: { _gte: $startDate, _lte: $endDate }\n received: { _eq: true }\n }\n ) {\n aggregate {\n count(columns: account_id, distinct: true)\n }\n }\n }\n ': + types.GetAccountsStatsDocument, + '\n query GetBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [block_order_by!]!\n $where: block_bool_exp\n ) {\n blocks: block(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n hash\n height\n reward\n timestamp\n mined_by_id\n extrinsics {\n id\n }\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: block_height\n }\n }\n ': + types.GetBlocksDocument, + '\n query GetBlockById($height: Int!, $hash: String!) {\n blocks: block(\n where: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics(order_by: { index_in_block: asc }) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock: index_in_block\n signer {\n id\n }\n }\n }\n minerRewards: miner_reward(\n where: {\n block: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n }\n ) {\n reward\n timestamp\n miner {\n id\n }\n block {\n height\n hash\n }\n }\n rewardTransfers: unified_transaction(\n where: {\n type: { _eq: "IMMEDIATE" }\n hash: { _is_null: true }\n block: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n }\n ) {\n amount\n detail_id\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': + types.GetBlockByIdDocument, + '\n query GetBlockStats($startDate: timestamptz!, $endDate: timestamptz!) {\n chain: chain_stats_by_pk(id: "global") {\n block_height\n finalized_block_height\n }\n minedIn24Hours: block_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': + types.GetBlockStatsDocument, + '\n query GetCancelledReversibleTransactionByTxId($tx_id: String!) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n extrinsic {\n id\n pallet\n call\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': + types.GetCancelledReversibleTransactionByTxIdDocument, + '\n query GetHomeChainStats(\n $last24HourWhere: unified_transaction_bool_exp!\n $dayLimit: Int!\n ) {\n status: chain_stats_by_pk(id: "global") {\n block_height\n total_accounts\n total_deposit_accounts\n total_immediate_transfers\n total_scheduled_transfers\n total_executed_transfers\n total_cancelled_transfers\n circulating_supply\n max_supply\n total_supply\n }\n last24Hour: unified_transaction_aggregate(where: $last24HourWhere) {\n aggregate {\n count\n }\n }\n dailyStats: daily_chain_stats(order_by: { date: desc }, limit: $dayLimit) {\n id\n date\n blocks_count\n tx_count\n active_accounts\n }\n }\n': + types.GetHomeChainStatsDocument, + '\n query GetStatus {\n status: chain_stats_by_pk(id: "global") {\n block_height\n total_accounts\n total_deposit_accounts\n total_executed_transfers\n total_immediate_transfers\n total_scheduled_transfers\n total_cancelled_transfers\n }\n }\n ': + types.GetStatusDocument, + '\n query GetErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [error_event_order_by!]\n $where: error_event_bool_exp\n ) {\n errorEvents: error_event(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n meta: error_event_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': + types.GetErrorEventsDocument, + '\n query GetErrorEventsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: error_event_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_error_events\n }\n }\n ': + types.GetErrorEventsStatsDocument, + '\n query GetErrorEventByHash($hash: String!) {\n errorEvents: error_event(where: { extrinsic: { id: { _eq: $hash } } }) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ': + types.GetErrorEventByHashDocument, + '\n query GetExecutedReversibleTransactionByTxId($tx_id: String!) {\n executedReversibleTransactions: executed_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ': + types.GetExecutedReversibleTransactionByTxIdDocument, + '\n query GetHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [high_security_set_order_by!]\n $where: high_security_set_bool_exp\n ) {\n highSecuritySets: high_security_set(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n guardian {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n meta: high_security_set_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': + types.GetHighSecuritySetsDocument, + '\n query GetHighSecuritySetsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: high_security_set_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_high_security_sets\n }\n }\n ': + types.GetHighSecuritySetsStatsDocument, + '\n query GetHighSecuritySetByHash($hash: String!) {\n highSecuritySets: high_security_set(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n guardian {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ': + types.GetHighSecuritySetByHashDocument, + '\n query GetMinerLeaderboardStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n chain: chain_stats_by_pk(id: "global") {\n block_height\n total_miners\n }\n last24Hour: miner_reward_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': + types.GetMinerLeaderboardStatsDocument, + '\n query GetMinerLeaderboardChart($limit: Int) {\n topMiners: account_stats(\n limit: $limit\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n id\n total_mined_blocks\n }\n blocks: chain_stats_by_pk(id: "global") {\n totalCount: block_height\n }\n }\n ': + types.GetMinerLeaderboardChartDocument, + '\n query GetMinerLeaderboard($limit: Int, $offset: Int) {\n leaderboardEntries: account_stats(\n limit: $limit\n offset: $offset\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n id\n total_mined_blocks\n total_rewards\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_miners\n block_height\n }\n topMiner: account_stats(\n limit: 1\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n total_mined_blocks\n }\n }\n ': + types.GetMinerLeaderboardDocument, + '\n query GetMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: miner_reward_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n': + types.GetMinerRewardsDocument, + '\n query GetMinerRewardsWithChainTotal(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_miner_rewards\n }\n }\n': + types.GetMinerRewardsWithChainTotalDocument, + '\n query GetMinerRewardsWithMinerTotal(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n $minerId: String!\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: account_stats_by_pk(id: $minerId) {\n totalCount: total_mined_blocks\n }\n }\n': + types.GetMinerRewardsWithMinerTotalDocument, + '\n query GetMinerRewardsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: miner_reward_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_miner_rewards\n }\n }\n ': + types.GetMinerRewardsStatsDocument, + '\n query GetMinerRewardByHash($hash: String!) {\n minerRewards: miner_reward(where: { block: { hash: { _eq: $hash } } }) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ': + types.GetMinerRewardByHashDocument, + '\n fragment MultisigCreatedFields on multisig {\n id\n timestamp\n threshold\n nonce\n signers\n creator {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n': + types.MultisigCreatedFieldsFragmentDoc, + '\n \n query GetMultisigCreated(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_order_by!]\n $where: multisig_bool_exp\n ) {\n multisigCreatedEvents: multisig(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigCreatedFields\n }\n meta: multisig_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': + types.GetMultisigCreatedDocument, + '\n query GetMultisigCreatedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisigs_created\n }\n }\n ': + types.GetMultisigCreatedStatsDocument, + '\n \n query GetMultisigCreatedByHash($hash: String!) {\n multisigCreatedEvents: multisig(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigCreatedFields\n }\n }\n ': + types.GetMultisigCreatedByHashDocument, + '\n \n query GetMultisigById($id: String!) {\n multisig: multisig_by_pk(id: $id) {\n ...MultisigCreatedFields\n }\n }\n ': + types.GetMultisigByIdDocument, + '\n fragment MultisigDepositsClaimedFields on multisig_deposits_claimed {\n id\n timestamp\n total_returned\n proposals_removed\n claimer {\n id\n }\n multisig {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n': + types.MultisigDepositsClaimedFieldsFragmentDoc, + '\n \n query GetMultisigDepositsClaimed(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_deposits_claimed_order_by!]\n $where: multisig_deposits_claimed_bool_exp\n ) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigDepositsClaimedFields\n }\n meta: multisig_deposits_claimed_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': + types.GetMultisigDepositsClaimedDocument, + '\n query GetMultisigDepositsClaimedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_deposits_claimed_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_deposits_claimed\n }\n }\n ': + types.GetMultisigDepositsClaimedStatsDocument, + '\n \n query GetMultisigDepositsClaimedByHash($hash: String!) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigDepositsClaimedFields\n }\n }\n ': + types.GetMultisigDepositsClaimedByHashDocument, + '\n fragment MultisigProposalCancelledFields on cancelled_multisig_proposal {\n id\n timestamp\n cancelledBy {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n': + types.MultisigProposalCancelledFieldsFragmentDoc, + '\n \n query GetMultisigProposalCancelled(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_multisig_proposal_order_by!]\n $where: cancelled_multisig_proposal_bool_exp\n ) {\n multisigProposalCancelledEvents: cancelled_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalCancelledFields\n }\n meta: cancelled_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': + types.GetMultisigProposalCancelledDocument, + '\n query GetMultisigProposalCancelledStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: cancelled_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposals_cancelled\n }\n }\n ': + types.GetMultisigProposalCancelledStatsDocument, + '\n \n query GetMultisigProposalCancelledByHash($hash: String!) {\n multisigProposalCancelledEvents: cancelled_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalCancelledFields\n }\n }\n ': + types.GetMultisigProposalCancelledByHashDocument, + '\n fragment MultisigProposalRefFields on multisig_proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n': + types.MultisigProposalRefFieldsFragmentDoc, + '\n \n fragment MultisigProposalCreatedFields on multisig_proposal_created {\n id\n timestamp\n proposal {\n ...MultisigProposalRefFields\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n': + types.MultisigProposalCreatedFieldsFragmentDoc, + '\n \n query GetMultisigProposalCreated(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_created_order_by!]\n $where: multisig_proposal_created_bool_exp\n ) {\n multisigProposalCreatedEvents: multisig_proposal_created(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalCreatedFields\n }\n meta: multisig_proposal_created_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': + types.GetMultisigProposalCreatedDocument, + '\n query GetMultisigProposalCreatedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_created_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposals\n }\n }\n ': + types.GetMultisigProposalCreatedStatsDocument, + '\n \n query GetMultisigProposalCreatedByHash($hash: String!) {\n multisigProposalCreatedEvents: multisig_proposal_created(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalCreatedFields\n }\n }\n ': + types.GetMultisigProposalCreatedByHashDocument, + '\n fragment MultisigProposalExecutedFields on executed_multisig_proposal {\n id\n timestamp\n approvers\n result\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n': + types.MultisigProposalExecutedFieldsFragmentDoc, + '\n \n query GetMultisigProposalExecuted(\n $limit: Int\n $offset: Int\n $orderBy: [executed_multisig_proposal_order_by!]\n $where: executed_multisig_proposal_bool_exp\n ) {\n multisigProposalExecutedEvents: executed_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalExecutedFields\n }\n meta: executed_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': + types.GetMultisigProposalExecutedDocument, + '\n query GetMultisigProposalExecutedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: executed_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposals_executed\n }\n }\n ': + types.GetMultisigProposalExecutedStatsDocument, + '\n \n query GetMultisigProposalExecutedByHash($hash: String!) {\n multisigProposalExecutedEvents: executed_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalExecutedFields\n }\n }\n ': + types.GetMultisigProposalExecutedByHashDocument, + '\n fragment MultisigProposalReadyFields on multisig_proposal_ready {\n id\n timestamp\n approvals_count\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n': + types.MultisigProposalReadyFieldsFragmentDoc, + '\n \n query GetMultisigProposalReady(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_ready_order_by!]\n $where: multisig_proposal_ready_bool_exp\n ) {\n multisigProposalReadyEvents: multisig_proposal_ready(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalReadyFields\n }\n meta: multisig_proposal_ready_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': + types.GetMultisigProposalReadyDocument, + '\n query GetMultisigProposalReadyStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_ready_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposal_ready\n }\n }\n ': + types.GetMultisigProposalReadyStatsDocument, + '\n \n query GetMultisigProposalReadyByHash($hash: String!) {\n multisigProposalReadyEvents: multisig_proposal_ready(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalReadyFields\n }\n }\n ': + types.GetMultisigProposalReadyByHashDocument, + '\n fragment MultisigProposalRemovedFields on removed_multisig_proposal {\n id\n timestamp\n removedBy {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n': + types.MultisigProposalRemovedFieldsFragmentDoc, + '\n \n query GetMultisigProposalRemoved(\n $limit: Int\n $offset: Int\n $orderBy: [removed_multisig_proposal_order_by!]\n $where: removed_multisig_proposal_bool_exp\n ) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalRemovedFields\n }\n meta: removed_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': + types.GetMultisigProposalRemovedDocument, + '\n query GetMultisigProposalRemovedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: removed_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposals_removed\n }\n }\n ': + types.GetMultisigProposalRemovedStatsDocument, + '\n \n query GetMultisigProposalRemovedByHash($hash: String!) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalRemovedFields\n }\n }\n ': + types.GetMultisigProposalRemovedByHashDocument, + '\n fragment MultisigProposalListFields on multisig_proposal {\n id\n status\n deposit\n expiry_block\n approvals\n created_at\n multisig {\n id\n }\n proposer {\n id\n }\n }\n': + types.MultisigProposalListFieldsFragmentDoc, + '\n fragment MultisigProposalDetailFields on multisig_proposal {\n id\n status\n deposit\n expiry_block\n approvals\n pallet\n call\n call_raw\n decode_error\n created_at\n tx_id\n transfer_amount\n schedule_amount\n delay_kind\n delay_value\n schedule_asset_id\n multisig {\n id\n }\n proposer {\n id\n }\n guardian {\n id\n }\n transferTo {\n id\n }\n scheduleTo {\n id\n }\n recoverAccount {\n id\n }\n createdExtrinsic {\n id\n pallet\n call\n }\n createdAtBlock {\n height\n }\n }\n': + types.MultisigProposalDetailFieldsFragmentDoc, + '\n fragment MultisigProposalLifecycleEventFields on multisig_proposal_created {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n': + types.MultisigProposalLifecycleEventFieldsFragmentDoc, + '\n \n query GetMultisigProposals(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_order_by!]\n $where: multisig_proposal_bool_exp\n ) {\n multisigProposals: multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalListFields\n }\n meta: multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': + types.GetMultisigProposalsDocument, + '\n query GetMultisigProposalStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_aggregate(\n where: { created_at: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposals\n }\n }\n ': + types.GetMultisigProposalStatsDocument, + '\n \n \n query GetMultisigProposalById($id: String!) {\n multisigProposal: multisig_proposal_by_pk(id: $id) {\n ...MultisigProposalDetailFields\n }\n createdEvents: multisig_proposal_created(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n ...MultisigProposalLifecycleEventFields\n }\n signerApprovedEvents: multisig_signer_approved(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n readyEvents: multisig_proposal_ready(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n executedEvents: executed_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n cancelledEvents: cancelled_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n removedEvents: removed_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n }\n ': + types.GetMultisigProposalByIdDocument, + '\n fragment MultisigSignerApprovedFields on multisig_signer_approved {\n id\n timestamp\n approvals_count\n approver {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n': + types.MultisigSignerApprovedFieldsFragmentDoc, + '\n \n query GetMultisigSignerApproved(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_signer_approved_order_by!]\n $where: multisig_signer_approved_bool_exp\n ) {\n multisigSignerApprovedEvents: multisig_signer_approved(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigSignerApprovedFields\n }\n meta: multisig_signer_approved_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': + types.GetMultisigSignerApprovedDocument, + '\n query GetMultisigSignerApprovedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_signer_approved_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_signer_approved\n }\n }\n ': + types.GetMultisigSignerApprovedStatsDocument, + '\n \n query GetMultisigSignerApprovedByHash($hash: String!) {\n multisigSignerApprovedEvents: multisig_signer_approved(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigSignerApprovedFields\n }\n }\n ': + types.GetMultisigSignerApprovedByHashDocument, + '\n query GetScheduledReversibleTransactionByTxId($tx_id: String!) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': + types.GetScheduledReversibleTransactionByTxIdDocument, + '\n query SearchHex($keyword: String, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: {\n _or: [{ hash: { _like: $keyword } }, { detail_id: { _like: $keyword } }]\n }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n blocks: block(limit: $limit, where: { hash: { _like: $keyword } }) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _like: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n': + types.SearchHexDocument, + '\n query SearchNumeric($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: { detail_id: { _like: $keyword } }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n blocks: block(limit: $limit, where: { height: { _eq: $keyword_number } }) {\n height\n }\n }\n': + types.SearchNumericDocument, + '\n query SearchText($keyword: String, $limit: Int) {\n accounts: account(limit: $limit, where: { id: { _like: $keyword } }) {\n id\n }\n errorEvents: error_event(\n limit: $limit\n where: {\n _or: [\n { error_type: { _ilike: $keyword } }\n { error_name: { _ilike: $keyword } }\n ]\n }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n': + types.SearchTextDocument, + '\n query GetExtrinsicByHash($hash: String!) {\n extrinsics: extrinsic(where: { id: { _eq: $hash } }) {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n transfersByExtrinsic: transfer(\n where: { extrinsic: { id: { _eq: $hash } } }\n order_by: { timestamp: asc }\n ) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n }\n transfersById: transfer(where: { id: { _eq: $hash } }) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n }\n }\n ': + types.GetExtrinsicByHashDocument, + '\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById: wormhole_extrinsic_by_pk(id: $id) {\n id\n extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n privacy_score\n privacy_score01_pct\n privacy_score1_pct\n privacy_score5_pct\n privacy_label\n pool_snapshot\n block {\n id\n height\n hash\n timestamp\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n wormholeNullifiers: wormhole_nullifier(\n where: { wormholeExtrinsic: { id: { _eq: $id } } }\n ) {\n nullifier\n nullifier_hash\n }\n }\n': + types.GetWormholeExtrinsicByIdDocument, + '\n query BusyAccounts($limit: Int!) {\n account_stats(\n limit: $limit\n order_by: { total_immediate_transfers: desc }\n ) {\n id\n total_immediate_transfers\n total_mined_blocks\n }\n }\n ': + types.BusyAccountsDocument, + '\n query MinerAccount {\n account_stats(limit: 1, order_by: { total_mined_blocks: desc }) {\n id\n total_mined_blocks\n }\n }\n ': + types.MinerAccountDocument, + '\n query DiscoveryIds($limit: Int!) {\n account(limit: $limit, order_by: { id: desc }) {\n id\n }\n }\n ': + types.DiscoveryIdsDocument, + '\n query HistoryCursor($accounts: [String!]!, $limit: Int!) {\n account_event(\n limit: $limit\n where: {\n _and: [\n { account_id: { _in: $accounts } }\n { scheduled_reversible_transfer_id: { _is_null: true } }\n ]\n }\n order_by: [{ timestamp: desc }, { id: desc }]\n ) {\n id\n timestamp\n }\n }\n ': + types.HistoryCursorDocument, + '\n query HistoryDeepCursor($accounts: [String!]!) {\n account_event(\n limit: 1\n offset: 2000\n where: {\n _and: [\n { account_id: { _in: $accounts } }\n { scheduled_reversible_transfer_id: { _is_null: true } }\n ]\n }\n order_by: [{ timestamp: desc }, { id: desc }]\n ) {\n id\n timestamp\n }\n }\n ': + types.HistoryDeepCursorDocument, + '\n query MinerHistoryCursor($accounts: [String!]!, $limit: Int!) {\n account_event(\n limit: $limit\n where: {\n _and: [\n { account_id: { _in: $accounts } }\n { scheduled_reversible_transfer_id: { _is_null: true } }\n ]\n }\n order_by: [{ timestamp: desc }, { id: desc }]\n ) {\n id\n timestamp\n }\n }\n ': + types.MinerHistoryCursorDocument, + '\n query SampleTransfer {\n transfer(\n limit: 1\n where: { extrinsic_id: { _is_null: false } }\n order_by: { timestamp: desc }\n ) {\n from_id\n to_id\n amount\n block_height\n extrinsic {\n id\n }\n }\n }\n ': + types.SampleTransferDocument, + '\n query SampleScheduled {\n scheduled_reversible_transfer(\n limit: 1\n order_by: { timestamp: desc }\n ) {\n from {\n id\n }\n to {\n id\n }\n amount\n block {\n height\n }\n extrinsic {\n id\n }\n }\n }\n ': + types.SampleScheduledDocument, + '\n query SampleExecuted {\n executed_reversible_transfer(\n limit: 1\n order_by: { timestamp: desc }\n ) {\n tx_id\n }\n }\n ': + types.SampleExecutedDocument, + '\n query SampleWormholeRecipient {\n transfer(\n limit: 1\n where: { leaf_index: { _gt: "0" } }\n order_by: { transfer_count: desc }\n ) {\n to_id\n }\n }\n ': + types.SampleWormholeRecipientDocument, + '\n query WormholeCursor($tos: [String!]!, $limit: Int!) {\n transfer(\n where: { to_id: { _in: $tos }, block_height: { _gt: 0 } }\n order_by: [{ block_height: asc }, { id: asc }]\n limit: $limit\n ) {\n id\n block_height\n }\n }\n ': + types.WormholeCursorDocument, + '\n query SampleNullifiers($limit: Int!) {\n wormhole_nullifier(limit: $limit, order_by: { timestamp: desc }) {\n nullifier_hash\n }\n }\n ': + types.SampleNullifiersDocument, + '\n query SampleMultisig {\n multisig(limit: 1, order_by: { timestamp: desc }) {\n id\n signers\n }\n }\n ': + types.SampleMultisigDocument, + '\n query SampleProposal {\n multisig_proposal(limit: 1, order_by: { updated_at: desc }) {\n proposal_id\n multisig_id\n }\n }\n ': + types.SampleProposalDocument, + '\n query SampleProposalCreated {\n multisig_proposal_created(limit: 1, order_by: { timestamp: desc }) {\n extrinsic {\n id\n }\n }\n }\n ': + types.SampleProposalCreatedDocument, + '\n query SampleSignerApproved {\n multisig_signer_approved(limit: 1, order_by: { timestamp: desc }) {\n extrinsic {\n id\n }\n }\n }\n ': + types.SampleSignerApprovedDocument, + '\n query SampleProposalExecuted {\n executed_multisig_proposal(limit: 1, order_by: { timestamp: desc }) {\n extrinsic {\n id\n }\n }\n }\n ': + types.SampleProposalExecutedDocument, + '\n query SampleProposalCancelled {\n cancelled_multisig_proposal(limit: 1, order_by: { timestamp: desc }) {\n extrinsic {\n id\n }\n }\n }\n ': + types.SampleProposalCancelledDocument, + '\n query GetTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [transfer_order_by!]\n $where: transfer_bool_exp\n ) {\n transactions: transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n extrinsic {\n id\n }\n }\n }\n': + types.GetTransactionsDocument, + '\n query GetCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_reversible_transfer_order_by!]\n $where: cancelled_reversible_transfer_bool_exp\n ) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n': + types.GetCancelledReversibleTransactionsDocument, + '\n query GetExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [executed_reversible_transfer_order_by!]\n $where: executed_reversible_transfer_bool_exp\n ) {\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n': + types.GetExecutedReversibleTransactionsDocument, + '\n query GetScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n $where: scheduled_reversible_transfer_bool_exp\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n': + types.GetScheduledReversibleTransactionsDocument, + '\n query GetWormholeExtrinsics(\n $limit: Int\n $offset: Int\n $orderBy: [wormhole_extrinsic_order_by!]!\n $where: wormhole_extrinsic_bool_exp\n ) {\n wormholeExtrinsics: wormhole_extrinsic(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n }\n }\n': + types.GetWormholeExtrinsicsDocument }; /** @@ -185,306 +314,565 @@ export function gql(source: string): unknown; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetAccounts(\n $limit: Int\n $offset: Int\n $orderBy: [account_order_by!]\n ) {\n accounts: account(limit: $limit, offset: $offset, order_by: $orderBy) {\n id\n free\n frozen\n reserved\n is_high_security\n is_guardian\n is_multisig\n }\n meta: chain_stats_by_pk(id: \"global\") {\n totalCount: total_accounts\n }\n }\n "): (typeof documents)["\n query GetAccounts(\n $limit: Int\n $offset: Int\n $orderBy: [account_order_by!]\n ) {\n accounts: account(limit: $limit, offset: $offset, order_by: $orderBy) {\n id\n free\n frozen\n reserved\n is_high_security\n is_guardian\n is_multisig\n }\n meta: chain_stats_by_pk(id: \"global\") {\n totalCount: total_accounts\n }\n }\n "]; +export function gql( + source: '\n query GetAccounts(\n $limit: Int\n $offset: Int\n $orderBy: [account_order_by!]\n ) {\n accounts: account(limit: $limit, offset: $offset, order_by: $orderBy) {\n id\n free\n frozen\n reserved\n is_high_security\n is_guardian\n is_multisig\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_accounts\n }\n }\n ' +): (typeof documents)['\n query GetAccounts(\n $limit: Int\n $offset: Int\n $orderBy: [account_order_by!]\n ) {\n accounts: account(limit: $limit, offset: $offset, order_by: $orderBy) {\n id\n free\n frozen\n reserved\n is_high_security\n is_guardian\n is_multisig\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_accounts\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetAccountById($id: String!) {\n account: account_by_pk(id: $id) {\n id\n free\n frozen\n reserved\n }\n accountStats: account_stats_by_pk(id: $id) {\n total_cancelled_transfers\n total_executed_transfers\n total_immediate_transfers\n total_mined_blocks\n total_rewards\n total_scheduled_transfers\n }\n multisig: multisig_by_pk(id: $id) {\n id\n }\n guardian: high_security_set_aggregate(\n where: { who: { id: { _eq: $id } } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n beneficiaries: high_security_set_aggregate(\n where: { guardian: { id: { _eq: $id } } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n "): (typeof documents)["\n query GetAccountById($id: String!) {\n account: account_by_pk(id: $id) {\n id\n free\n frozen\n reserved\n }\n accountStats: account_stats_by_pk(id: $id) {\n total_cancelled_transfers\n total_executed_transfers\n total_immediate_transfers\n total_mined_blocks\n total_rewards\n total_scheduled_transfers\n }\n multisig: multisig_by_pk(id: $id) {\n id\n }\n guardian: high_security_set_aggregate(\n where: { who: { id: { _eq: $id } } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n beneficiaries: high_security_set_aggregate(\n where: { guardian: { id: { _eq: $id } } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n "]; +export function gql( + source: '\n query GetAccountById($id: String!) {\n account: account_by_pk(id: $id) {\n id\n free\n frozen\n reserved\n }\n accountStats: account_stats_by_pk(id: $id) {\n total_cancelled_transfers\n total_executed_transfers\n total_immediate_transfers\n total_mined_blocks\n total_rewards\n total_scheduled_transfers\n }\n multisig: multisig_by_pk(id: $id) {\n id\n }\n guardian: high_security_set_aggregate(\n where: { who: { id: { _eq: $id } } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n beneficiaries: high_security_set_aggregate(\n where: { guardian: { id: { _eq: $id } } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n query GetAccountById($id: String!) {\n account: account_by_pk(id: $id) {\n id\n free\n frozen\n reserved\n }\n accountStats: account_stats_by_pk(id: $id) {\n total_cancelled_transfers\n total_executed_transfers\n total_immediate_transfers\n total_mined_blocks\n total_rewards\n total_scheduled_transfers\n }\n multisig: multisig_by_pk(id: $id) {\n id\n }\n guardian: high_security_set_aggregate(\n where: { who: { id: { _eq: $id } } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n beneficiaries: high_security_set_aggregate(\n where: { guardian: { id: { _eq: $id } } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetAccountsStats($startDate: timestamptz!, $endDate: timestamptz!) {\n all: chain_stats_by_pk(id: \"global\") {\n total_accounts\n }\n\n recentlyActive: daily_active_account_aggregate(\n where: {\n date: { _gte: $startDate, _lte: $endDate }\n sent: { _eq: true }\n }\n ) {\n aggregate {\n count(columns: account_id, distinct: true)\n }\n }\n\n recentlyDeposited: daily_active_account_aggregate(\n where: {\n date: { _gte: $startDate, _lte: $endDate }\n received: { _eq: true }\n }\n ) {\n aggregate {\n count(columns: account_id, distinct: true)\n }\n }\n }\n "): (typeof documents)["\n query GetAccountsStats($startDate: timestamptz!, $endDate: timestamptz!) {\n all: chain_stats_by_pk(id: \"global\") {\n total_accounts\n }\n\n recentlyActive: daily_active_account_aggregate(\n where: {\n date: { _gte: $startDate, _lte: $endDate }\n sent: { _eq: true }\n }\n ) {\n aggregate {\n count(columns: account_id, distinct: true)\n }\n }\n\n recentlyDeposited: daily_active_account_aggregate(\n where: {\n date: { _gte: $startDate, _lte: $endDate }\n received: { _eq: true }\n }\n ) {\n aggregate {\n count(columns: account_id, distinct: true)\n }\n }\n }\n "]; +export function gql( + source: '\n query GetAccountsStats($startDate: timestamptz!, $endDate: timestamptz!) {\n all: chain_stats_by_pk(id: "global") {\n total_accounts\n }\n\n recentlyActive: daily_active_account_aggregate(\n where: {\n date: { _gte: $startDate, _lte: $endDate }\n sent: { _eq: true }\n }\n ) {\n aggregate {\n count(columns: account_id, distinct: true)\n }\n }\n\n recentlyDeposited: daily_active_account_aggregate(\n where: {\n date: { _gte: $startDate, _lte: $endDate }\n received: { _eq: true }\n }\n ) {\n aggregate {\n count(columns: account_id, distinct: true)\n }\n }\n }\n ' +): (typeof documents)['\n query GetAccountsStats($startDate: timestamptz!, $endDate: timestamptz!) {\n all: chain_stats_by_pk(id: "global") {\n total_accounts\n }\n\n recentlyActive: daily_active_account_aggregate(\n where: {\n date: { _gte: $startDate, _lte: $endDate }\n sent: { _eq: true }\n }\n ) {\n aggregate {\n count(columns: account_id, distinct: true)\n }\n }\n\n recentlyDeposited: daily_active_account_aggregate(\n where: {\n date: { _gte: $startDate, _lte: $endDate }\n received: { _eq: true }\n }\n ) {\n aggregate {\n count(columns: account_id, distinct: true)\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [block_order_by!]!\n $where: block_bool_exp\n ) {\n blocks: block(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n hash\n height\n reward\n timestamp\n mined_by_id\n extrinsics {\n id\n }\n }\n meta: chain_stats_by_pk(id: \"global\") {\n totalCount: block_height\n }\n }\n "): (typeof documents)["\n query GetBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [block_order_by!]!\n $where: block_bool_exp\n ) {\n blocks: block(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n hash\n height\n reward\n timestamp\n mined_by_id\n extrinsics {\n id\n }\n }\n meta: chain_stats_by_pk(id: \"global\") {\n totalCount: block_height\n }\n }\n "]; +export function gql( + source: '\n query GetBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [block_order_by!]!\n $where: block_bool_exp\n ) {\n blocks: block(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n hash\n height\n reward\n timestamp\n mined_by_id\n extrinsics {\n id\n }\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: block_height\n }\n }\n ' +): (typeof documents)['\n query GetBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [block_order_by!]!\n $where: block_bool_exp\n ) {\n blocks: block(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n hash\n height\n reward\n timestamp\n mined_by_id\n extrinsics {\n id\n }\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: block_height\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetBlockById($height: Int!, $hash: String!) {\n blocks: block(\n where: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics(order_by: { index_in_block: asc }) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock: index_in_block\n signer {\n id\n }\n }\n }\n minerRewards: miner_reward(\n where: {\n block: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n }\n ) {\n reward\n timestamp\n miner {\n id\n }\n block {\n height\n hash\n }\n }\n rewardTransfers: unified_transaction(\n where: {\n type: { _eq: \"IMMEDIATE\" }\n hash: { _is_null: true }\n block: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n }\n ) {\n amount\n detail_id\n from {\n id\n }\n to {\n id\n }\n }\n }\n "): (typeof documents)["\n query GetBlockById($height: Int!, $hash: String!) {\n blocks: block(\n where: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics(order_by: { index_in_block: asc }) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock: index_in_block\n signer {\n id\n }\n }\n }\n minerRewards: miner_reward(\n where: {\n block: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n }\n ) {\n reward\n timestamp\n miner {\n id\n }\n block {\n height\n hash\n }\n }\n rewardTransfers: unified_transaction(\n where: {\n type: { _eq: \"IMMEDIATE\" }\n hash: { _is_null: true }\n block: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n }\n ) {\n amount\n detail_id\n from {\n id\n }\n to {\n id\n }\n }\n }\n "]; +export function gql( + source: '\n query GetBlockById($height: Int!, $hash: String!) {\n blocks: block(\n where: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics(order_by: { index_in_block: asc }) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock: index_in_block\n signer {\n id\n }\n }\n }\n minerRewards: miner_reward(\n where: {\n block: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n }\n ) {\n reward\n timestamp\n miner {\n id\n }\n block {\n height\n hash\n }\n }\n rewardTransfers: unified_transaction(\n where: {\n type: { _eq: "IMMEDIATE" }\n hash: { _is_null: true }\n block: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n }\n ) {\n amount\n detail_id\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query GetBlockById($height: Int!, $hash: String!) {\n blocks: block(\n where: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n ) {\n id\n hash\n height\n reward\n timestamp\n extrinsics(order_by: { index_in_block: asc }) {\n id\n pallet\n call\n success\n fee\n timestamp\n indexInBlock: index_in_block\n signer {\n id\n }\n }\n }\n minerRewards: miner_reward(\n where: {\n block: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n }\n ) {\n reward\n timestamp\n miner {\n id\n }\n block {\n height\n hash\n }\n }\n rewardTransfers: unified_transaction(\n where: {\n type: { _eq: "IMMEDIATE" }\n hash: { _is_null: true }\n block: {\n _or: [{ height: { _eq: $height } }, { hash: { _eq: $hash } }]\n }\n }\n ) {\n amount\n detail_id\n from {\n id\n }\n to {\n id\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetBlockStats($startDate: timestamptz!, $endDate: timestamptz!) {\n chain: chain_stats_by_pk(id: \"global\") {\n block_height\n finalized_block_height\n }\n minedIn24Hours: block_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n "): (typeof documents)["\n query GetBlockStats($startDate: timestamptz!, $endDate: timestamptz!) {\n chain: chain_stats_by_pk(id: \"global\") {\n block_height\n finalized_block_height\n }\n minedIn24Hours: block_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n "]; +export function gql( + source: '\n query GetBlockStats($startDate: timestamptz!, $endDate: timestamptz!) {\n chain: chain_stats_by_pk(id: "global") {\n block_height\n finalized_block_height\n }\n minedIn24Hours: block_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n query GetBlockStats($startDate: timestamptz!, $endDate: timestamptz!) {\n chain: chain_stats_by_pk(id: "global") {\n block_height\n finalized_block_height\n }\n minedIn24Hours: block_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetCancelledReversibleTransactionByTxId($tx_id: String!) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n extrinsic {\n id\n pallet\n call\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n "): (typeof documents)["\n query GetCancelledReversibleTransactionByTxId($tx_id: String!) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n extrinsic {\n id\n pallet\n call\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n "]; +export function gql( + source: '\n query GetCancelledReversibleTransactionByTxId($tx_id: String!) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n extrinsic {\n id\n pallet\n call\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ' +): (typeof documents)['\n query GetCancelledReversibleTransactionByTxId($tx_id: String!) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n extrinsic {\n id\n pallet\n call\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetHomeChainStats(\n $last24HourWhere: unified_transaction_bool_exp!\n $dayLimit: Int!\n ) {\n status: chain_stats_by_pk(id: \"global\") {\n block_height\n total_accounts\n total_deposit_accounts\n total_immediate_transfers\n total_scheduled_transfers\n total_executed_transfers\n total_cancelled_transfers\n }\n last24Hour: unified_transaction_aggregate(where: $last24HourWhere) {\n aggregate {\n count\n }\n }\n dailyStats: daily_chain_stats(order_by: { date: desc }, limit: $dayLimit) {\n id\n date\n blocks_count\n tx_count\n active_accounts\n }\n }\n"): (typeof documents)["\n query GetHomeChainStats(\n $last24HourWhere: unified_transaction_bool_exp!\n $dayLimit: Int!\n ) {\n status: chain_stats_by_pk(id: \"global\") {\n block_height\n total_accounts\n total_deposit_accounts\n total_immediate_transfers\n total_scheduled_transfers\n total_executed_transfers\n total_cancelled_transfers\n }\n last24Hour: unified_transaction_aggregate(where: $last24HourWhere) {\n aggregate {\n count\n }\n }\n dailyStats: daily_chain_stats(order_by: { date: desc }, limit: $dayLimit) {\n id\n date\n blocks_count\n tx_count\n active_accounts\n }\n }\n"]; +export function gql( + source: '\n query GetHomeChainStats(\n $last24HourWhere: unified_transaction_bool_exp!\n $dayLimit: Int!\n ) {\n status: chain_stats_by_pk(id: "global") {\n block_height\n total_accounts\n total_deposit_accounts\n total_immediate_transfers\n total_scheduled_transfers\n total_executed_transfers\n total_cancelled_transfers\n circulating_supply\n max_supply\n total_supply\n }\n last24Hour: unified_transaction_aggregate(where: $last24HourWhere) {\n aggregate {\n count\n }\n }\n dailyStats: daily_chain_stats(order_by: { date: desc }, limit: $dayLimit) {\n id\n date\n blocks_count\n tx_count\n active_accounts\n }\n }\n' +): (typeof documents)['\n query GetHomeChainStats(\n $last24HourWhere: unified_transaction_bool_exp!\n $dayLimit: Int!\n ) {\n status: chain_stats_by_pk(id: "global") {\n block_height\n total_accounts\n total_deposit_accounts\n total_immediate_transfers\n total_scheduled_transfers\n total_executed_transfers\n total_cancelled_transfers\n circulating_supply\n max_supply\n total_supply\n }\n last24Hour: unified_transaction_aggregate(where: $last24HourWhere) {\n aggregate {\n count\n }\n }\n dailyStats: daily_chain_stats(order_by: { date: desc }, limit: $dayLimit) {\n id\n date\n blocks_count\n tx_count\n active_accounts\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetStatus {\n status: chain_stats_by_pk(id: \"global\") {\n block_height\n total_accounts\n total_deposit_accounts\n total_executed_transfers\n total_immediate_transfers\n total_scheduled_transfers\n total_cancelled_transfers\n }\n }\n "): (typeof documents)["\n query GetStatus {\n status: chain_stats_by_pk(id: \"global\") {\n block_height\n total_accounts\n total_deposit_accounts\n total_executed_transfers\n total_immediate_transfers\n total_scheduled_transfers\n total_cancelled_transfers\n }\n }\n "]; +export function gql( + source: '\n query GetStatus {\n status: chain_stats_by_pk(id: "global") {\n block_height\n total_accounts\n total_deposit_accounts\n total_executed_transfers\n total_immediate_transfers\n total_scheduled_transfers\n total_cancelled_transfers\n }\n }\n ' +): (typeof documents)['\n query GetStatus {\n status: chain_stats_by_pk(id: "global") {\n block_height\n total_accounts\n total_deposit_accounts\n total_executed_transfers\n total_immediate_transfers\n total_scheduled_transfers\n total_cancelled_transfers\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [error_event_order_by!]\n $where: error_event_bool_exp\n ) {\n errorEvents: error_event(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n meta: error_event_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "): (typeof documents)["\n query GetErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [error_event_order_by!]\n $where: error_event_bool_exp\n ) {\n errorEvents: error_event(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n meta: error_event_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "]; +export function gql( + source: '\n query GetErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [error_event_order_by!]\n $where: error_event_bool_exp\n ) {\n errorEvents: error_event(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n meta: error_event_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n query GetErrorEvents(\n $limit: Int\n $offset: Int\n $orderBy: [error_event_order_by!]\n $where: error_event_bool_exp\n ) {\n errorEvents: error_event(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n meta: error_event_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetErrorEventsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: error_event_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_error_events\n }\n }\n "): (typeof documents)["\n query GetErrorEventsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: error_event_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_error_events\n }\n }\n "]; +export function gql( + source: '\n query GetErrorEventsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: error_event_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_error_events\n }\n }\n ' +): (typeof documents)['\n query GetErrorEventsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: error_event_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_error_events\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetErrorEventByHash($hash: String!) {\n errorEvents: error_event(where: { extrinsic: { id: { _eq: $hash } } }) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n "): (typeof documents)["\n query GetErrorEventByHash($hash: String!) {\n errorEvents: error_event(where: { extrinsic: { id: { _eq: $hash } } }) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n "]; +export function gql( + source: '\n query GetErrorEventByHash($hash: String!) {\n errorEvents: error_event(where: { extrinsic: { id: { _eq: $hash } } }) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ' +): (typeof documents)['\n query GetErrorEventByHash($hash: String!) {\n errorEvents: error_event(where: { extrinsic: { id: { _eq: $hash } } }) {\n error_docs\n error_module\n error_name\n error_type\n extrinsic {\n id\n pallet\n call\n }\n id\n timestamp\n block {\n height\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetExecutedReversibleTransactionByTxId($tx_id: String!) {\n executedReversibleTransactions: executed_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n "): (typeof documents)["\n query GetExecutedReversibleTransactionByTxId($tx_id: String!) {\n executedReversibleTransactions: executed_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n "]; +export function gql( + source: '\n query GetExecutedReversibleTransactionByTxId($tx_id: String!) {\n executedReversibleTransactions: executed_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ' +): (typeof documents)['\n query GetExecutedReversibleTransactionByTxId($tx_id: String!) {\n executedReversibleTransactions: executed_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\n amount\n scheduled_at\n fee\n from {\n id\n }\n to {\n id\n }\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [high_security_set_order_by!]\n $where: high_security_set_bool_exp\n ) {\n highSecuritySets: high_security_set(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n guardian {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n meta: high_security_set_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "): (typeof documents)["\n query GetHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [high_security_set_order_by!]\n $where: high_security_set_bool_exp\n ) {\n highSecuritySets: high_security_set(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n guardian {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n meta: high_security_set_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "]; +export function gql( + source: '\n query GetHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [high_security_set_order_by!]\n $where: high_security_set_bool_exp\n ) {\n highSecuritySets: high_security_set(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n guardian {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n meta: high_security_set_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n query GetHighSecuritySets(\n $limit: Int\n $offset: Int\n $orderBy: [high_security_set_order_by!]\n $where: high_security_set_bool_exp\n ) {\n highSecuritySets: high_security_set(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n guardian {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n meta: high_security_set_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetHighSecuritySetsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: high_security_set_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_high_security_sets\n }\n }\n "): (typeof documents)["\n query GetHighSecuritySetsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: high_security_set_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_high_security_sets\n }\n }\n "]; +export function gql( + source: '\n query GetHighSecuritySetsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: high_security_set_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_high_security_sets\n }\n }\n ' +): (typeof documents)['\n query GetHighSecuritySetsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: high_security_set_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_high_security_sets\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetHighSecuritySetByHash($hash: String!) {\n highSecuritySets: high_security_set(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n guardian {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n "): (typeof documents)["\n query GetHighSecuritySetByHash($hash: String!) {\n highSecuritySets: high_security_set(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n guardian {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n "]; +export function gql( + source: '\n query GetHighSecuritySetByHash($hash: String!) {\n highSecuritySets: high_security_set(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n guardian {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ' +): (typeof documents)['\n query GetHighSecuritySetByHash($hash: String!) {\n highSecuritySets: high_security_set(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n id\n extrinsic {\n id\n pallet\n call\n }\n who {\n id\n }\n guardian {\n id\n }\n timestamp\n delay\n block {\n height\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetMinerLeaderboardStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n chain: chain_stats_by_pk(id: \"global\") {\n block_height\n total_miners\n }\n last24Hour: miner_reward_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n "): (typeof documents)["\n query GetMinerLeaderboardStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n chain: chain_stats_by_pk(id: \"global\") {\n block_height\n total_miners\n }\n last24Hour: miner_reward_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n "]; +export function gql( + source: '\n query GetMinerLeaderboardStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n chain: chain_stats_by_pk(id: "global") {\n block_height\n total_miners\n }\n last24Hour: miner_reward_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n query GetMinerLeaderboardStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n chain: chain_stats_by_pk(id: "global") {\n block_height\n total_miners\n }\n last24Hour: miner_reward_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetMinerLeaderboardChart($limit: Int) {\n topMiners: account_stats(\n limit: $limit\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n id\n total_mined_blocks\n }\n blocks: chain_stats_by_pk(id: \"global\") {\n totalCount: block_height\n }\n }\n "): (typeof documents)["\n query GetMinerLeaderboardChart($limit: Int) {\n topMiners: account_stats(\n limit: $limit\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n id\n total_mined_blocks\n }\n blocks: chain_stats_by_pk(id: \"global\") {\n totalCount: block_height\n }\n }\n "]; +export function gql( + source: '\n query GetMinerLeaderboardChart($limit: Int) {\n topMiners: account_stats(\n limit: $limit\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n id\n total_mined_blocks\n }\n blocks: chain_stats_by_pk(id: "global") {\n totalCount: block_height\n }\n }\n ' +): (typeof documents)['\n query GetMinerLeaderboardChart($limit: Int) {\n topMiners: account_stats(\n limit: $limit\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n id\n total_mined_blocks\n }\n blocks: chain_stats_by_pk(id: "global") {\n totalCount: block_height\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetMinerLeaderboard($limit: Int, $offset: Int) {\n leaderboardEntries: account_stats(\n limit: $limit\n offset: $offset\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n id\n total_mined_blocks\n total_rewards\n }\n meta: chain_stats_by_pk(id: \"global\") {\n totalCount: total_miners\n block_height\n }\n topMiner: account_stats(\n limit: 1\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n total_mined_blocks\n }\n }\n "): (typeof documents)["\n query GetMinerLeaderboard($limit: Int, $offset: Int) {\n leaderboardEntries: account_stats(\n limit: $limit\n offset: $offset\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n id\n total_mined_blocks\n total_rewards\n }\n meta: chain_stats_by_pk(id: \"global\") {\n totalCount: total_miners\n block_height\n }\n topMiner: account_stats(\n limit: 1\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n total_mined_blocks\n }\n }\n "]; +export function gql( + source: '\n query GetMinerLeaderboard($limit: Int, $offset: Int) {\n leaderboardEntries: account_stats(\n limit: $limit\n offset: $offset\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n id\n total_mined_blocks\n total_rewards\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_miners\n block_height\n }\n topMiner: account_stats(\n limit: 1\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n total_mined_blocks\n }\n }\n ' +): (typeof documents)['\n query GetMinerLeaderboard($limit: Int, $offset: Int) {\n leaderboardEntries: account_stats(\n limit: $limit\n offset: $offset\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n id\n total_mined_blocks\n total_rewards\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_miners\n block_height\n }\n topMiner: account_stats(\n limit: 1\n order_by: { total_mined_blocks: desc }\n where: { total_mined_blocks: { _gt: 0 } }\n ) {\n total_mined_blocks\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: miner_reward_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n"): (typeof documents)["\n query GetMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: miner_reward_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n"]; +export function gql( + source: '\n query GetMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: miner_reward_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n' +): (typeof documents)['\n query GetMinerRewards(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: miner_reward_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetMinerRewardsWithChainTotal(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: chain_stats_by_pk(id: \"global\") {\n totalCount: total_miner_rewards\n }\n }\n"): (typeof documents)["\n query GetMinerRewardsWithChainTotal(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: chain_stats_by_pk(id: \"global\") {\n totalCount: total_miner_rewards\n }\n }\n"]; +export function gql( + source: '\n query GetMinerRewardsWithChainTotal(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_miner_rewards\n }\n }\n' +): (typeof documents)['\n query GetMinerRewardsWithChainTotal(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_miner_rewards\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetMinerRewardsWithMinerTotal(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n $minerId: String!\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: account_stats_by_pk(id: $minerId) {\n totalCount: total_mined_blocks\n }\n }\n"): (typeof documents)["\n query GetMinerRewardsWithMinerTotal(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n $minerId: String!\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: account_stats_by_pk(id: $minerId) {\n totalCount: total_mined_blocks\n }\n }\n"]; +export function gql( + source: '\n query GetMinerRewardsWithMinerTotal(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n $minerId: String!\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: account_stats_by_pk(id: $minerId) {\n totalCount: total_mined_blocks\n }\n }\n' +): (typeof documents)['\n query GetMinerRewardsWithMinerTotal(\n $limit: Int\n $offset: Int\n $orderBy: [miner_reward_order_by!]\n $where: miner_reward_bool_exp\n $minerId: String!\n ) {\n minerRewards: miner_reward(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n meta: account_stats_by_pk(id: $minerId) {\n totalCount: total_mined_blocks\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetMinerRewardsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: miner_reward_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_miner_rewards\n }\n }\n "): (typeof documents)["\n query GetMinerRewardsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: miner_reward_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_miner_rewards\n }\n }\n "]; +export function gql( + source: '\n query GetMinerRewardsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: miner_reward_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_miner_rewards\n }\n }\n ' +): (typeof documents)['\n query GetMinerRewardsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: miner_reward_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_miner_rewards\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetMinerRewardByHash($hash: String!) {\n minerRewards: miner_reward(where: { block: { hash: { _eq: $hash } } }) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n "): (typeof documents)["\n query GetMinerRewardByHash($hash: String!) {\n minerRewards: miner_reward(where: { block: { hash: { _eq: $hash } } }) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n "]; +export function gql( + source: '\n query GetMinerRewardByHash($hash: String!) {\n minerRewards: miner_reward(where: { block: { hash: { _eq: $hash } } }) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ' +): (typeof documents)['\n query GetMinerRewardByHash($hash: String!) {\n minerRewards: miner_reward(where: { block: { hash: { _eq: $hash } } }) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n fragment MultisigCreatedFields on multisig {\n id\n timestamp\n threshold\n nonce\n signers\n creator {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n"): (typeof documents)["\n fragment MultisigCreatedFields on multisig {\n id\n timestamp\n threshold\n nonce\n signers\n creator {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n"]; +export function gql( + source: '\n fragment MultisigCreatedFields on multisig {\n id\n timestamp\n threshold\n nonce\n signers\n creator {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n' +): (typeof documents)['\n fragment MultisigCreatedFields on multisig {\n id\n timestamp\n threshold\n nonce\n signers\n creator {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n \n query GetMultisigCreated(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_order_by!]\n $where: multisig_bool_exp\n ) {\n multisigCreatedEvents: multisig(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigCreatedFields\n }\n meta: multisig_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "): (typeof documents)["\n \n query GetMultisigCreated(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_order_by!]\n $where: multisig_bool_exp\n ) {\n multisigCreatedEvents: multisig(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigCreatedFields\n }\n meta: multisig_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "]; +export function gql( + source: '\n \n query GetMultisigCreated(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_order_by!]\n $where: multisig_bool_exp\n ) {\n multisigCreatedEvents: multisig(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigCreatedFields\n }\n meta: multisig_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n \n query GetMultisigCreated(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_order_by!]\n $where: multisig_bool_exp\n ) {\n multisigCreatedEvents: multisig(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigCreatedFields\n }\n meta: multisig_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetMultisigCreatedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisigs_created\n }\n }\n "): (typeof documents)["\n query GetMultisigCreatedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisigs_created\n }\n }\n "]; +export function gql( + source: '\n query GetMultisigCreatedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisigs_created\n }\n }\n ' +): (typeof documents)['\n query GetMultisigCreatedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisigs_created\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n \n query GetMultisigCreatedByHash($hash: String!) {\n multisigCreatedEvents: multisig(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigCreatedFields\n }\n }\n "): (typeof documents)["\n \n query GetMultisigCreatedByHash($hash: String!) {\n multisigCreatedEvents: multisig(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigCreatedFields\n }\n }\n "]; +export function gql( + source: '\n \n query GetMultisigCreatedByHash($hash: String!) {\n multisigCreatedEvents: multisig(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigCreatedFields\n }\n }\n ' +): (typeof documents)['\n \n query GetMultisigCreatedByHash($hash: String!) {\n multisigCreatedEvents: multisig(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigCreatedFields\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n \n query GetMultisigById($id: String!) {\n multisig: multisig_by_pk(id: $id) {\n ...MultisigCreatedFields\n }\n }\n "): (typeof documents)["\n \n query GetMultisigById($id: String!) {\n multisig: multisig_by_pk(id: $id) {\n ...MultisigCreatedFields\n }\n }\n "]; +export function gql( + source: '\n \n query GetMultisigById($id: String!) {\n multisig: multisig_by_pk(id: $id) {\n ...MultisigCreatedFields\n }\n }\n ' +): (typeof documents)['\n \n query GetMultisigById($id: String!) {\n multisig: multisig_by_pk(id: $id) {\n ...MultisigCreatedFields\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n fragment MultisigDepositsClaimedFields on multisig_deposits_claimed {\n id\n timestamp\n total_returned\n proposals_removed\n claimer {\n id\n }\n multisig {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n"): (typeof documents)["\n fragment MultisigDepositsClaimedFields on multisig_deposits_claimed {\n id\n timestamp\n total_returned\n proposals_removed\n claimer {\n id\n }\n multisig {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n"]; +export function gql( + source: '\n fragment MultisigDepositsClaimedFields on multisig_deposits_claimed {\n id\n timestamp\n total_returned\n proposals_removed\n claimer {\n id\n }\n multisig {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n' +): (typeof documents)['\n fragment MultisigDepositsClaimedFields on multisig_deposits_claimed {\n id\n timestamp\n total_returned\n proposals_removed\n claimer {\n id\n }\n multisig {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n \n query GetMultisigDepositsClaimed(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_deposits_claimed_order_by!]\n $where: multisig_deposits_claimed_bool_exp\n ) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigDepositsClaimedFields\n }\n meta: multisig_deposits_claimed_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "): (typeof documents)["\n \n query GetMultisigDepositsClaimed(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_deposits_claimed_order_by!]\n $where: multisig_deposits_claimed_bool_exp\n ) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigDepositsClaimedFields\n }\n meta: multisig_deposits_claimed_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "]; +export function gql( + source: '\n \n query GetMultisigDepositsClaimed(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_deposits_claimed_order_by!]\n $where: multisig_deposits_claimed_bool_exp\n ) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigDepositsClaimedFields\n }\n meta: multisig_deposits_claimed_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n \n query GetMultisigDepositsClaimed(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_deposits_claimed_order_by!]\n $where: multisig_deposits_claimed_bool_exp\n ) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigDepositsClaimedFields\n }\n meta: multisig_deposits_claimed_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetMultisigDepositsClaimedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_deposits_claimed_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_deposits_claimed\n }\n }\n "): (typeof documents)["\n query GetMultisigDepositsClaimedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_deposits_claimed_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_deposits_claimed\n }\n }\n "]; +export function gql( + source: '\n query GetMultisigDepositsClaimedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_deposits_claimed_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_deposits_claimed\n }\n }\n ' +): (typeof documents)['\n query GetMultisigDepositsClaimedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_deposits_claimed_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_deposits_claimed\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n \n query GetMultisigDepositsClaimedByHash($hash: String!) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigDepositsClaimedFields\n }\n }\n "): (typeof documents)["\n \n query GetMultisigDepositsClaimedByHash($hash: String!) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigDepositsClaimedFields\n }\n }\n "]; +export function gql( + source: '\n \n query GetMultisigDepositsClaimedByHash($hash: String!) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigDepositsClaimedFields\n }\n }\n ' +): (typeof documents)['\n \n query GetMultisigDepositsClaimedByHash($hash: String!) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigDepositsClaimedFields\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n fragment MultisigProposalCancelledFields on cancelled_multisig_proposal {\n id\n timestamp\n cancelledBy {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n"): (typeof documents)["\n fragment MultisigProposalCancelledFields on cancelled_multisig_proposal {\n id\n timestamp\n cancelledBy {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n"]; +export function gql( + source: '\n fragment MultisigProposalCancelledFields on cancelled_multisig_proposal {\n id\n timestamp\n cancelledBy {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n' +): (typeof documents)['\n fragment MultisigProposalCancelledFields on cancelled_multisig_proposal {\n id\n timestamp\n cancelledBy {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n \n query GetMultisigProposalCancelled(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_multisig_proposal_order_by!]\n $where: cancelled_multisig_proposal_bool_exp\n ) {\n multisigProposalCancelledEvents: cancelled_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalCancelledFields\n }\n meta: cancelled_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "): (typeof documents)["\n \n query GetMultisigProposalCancelled(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_multisig_proposal_order_by!]\n $where: cancelled_multisig_proposal_bool_exp\n ) {\n multisigProposalCancelledEvents: cancelled_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalCancelledFields\n }\n meta: cancelled_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "]; +export function gql( + source: '\n \n query GetMultisigProposalCancelled(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_multisig_proposal_order_by!]\n $where: cancelled_multisig_proposal_bool_exp\n ) {\n multisigProposalCancelledEvents: cancelled_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalCancelledFields\n }\n meta: cancelled_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n \n query GetMultisigProposalCancelled(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_multisig_proposal_order_by!]\n $where: cancelled_multisig_proposal_bool_exp\n ) {\n multisigProposalCancelledEvents: cancelled_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalCancelledFields\n }\n meta: cancelled_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetMultisigProposalCancelledStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: cancelled_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposals_cancelled\n }\n }\n "): (typeof documents)["\n query GetMultisigProposalCancelledStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: cancelled_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposals_cancelled\n }\n }\n "]; +export function gql( + source: '\n query GetMultisigProposalCancelledStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: cancelled_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposals_cancelled\n }\n }\n ' +): (typeof documents)['\n query GetMultisigProposalCancelledStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: cancelled_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposals_cancelled\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n \n query GetMultisigProposalCancelledByHash($hash: String!) {\n multisigProposalCancelledEvents: cancelled_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalCancelledFields\n }\n }\n "): (typeof documents)["\n \n query GetMultisigProposalCancelledByHash($hash: String!) {\n multisigProposalCancelledEvents: cancelled_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalCancelledFields\n }\n }\n "]; +export function gql( + source: '\n \n query GetMultisigProposalCancelledByHash($hash: String!) {\n multisigProposalCancelledEvents: cancelled_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalCancelledFields\n }\n }\n ' +): (typeof documents)['\n \n query GetMultisigProposalCancelledByHash($hash: String!) {\n multisigProposalCancelledEvents: cancelled_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalCancelledFields\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n fragment MultisigProposalRefFields on multisig_proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n"): (typeof documents)["\n fragment MultisigProposalRefFields on multisig_proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n"]; +export function gql( + source: '\n fragment MultisigProposalRefFields on multisig_proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n' +): (typeof documents)['\n fragment MultisigProposalRefFields on multisig_proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n \n fragment MultisigProposalCreatedFields on multisig_proposal_created {\n id\n timestamp\n proposal {\n ...MultisigProposalRefFields\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n"): (typeof documents)["\n \n fragment MultisigProposalCreatedFields on multisig_proposal_created {\n id\n timestamp\n proposal {\n ...MultisigProposalRefFields\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n"]; +export function gql( + source: '\n \n fragment MultisigProposalCreatedFields on multisig_proposal_created {\n id\n timestamp\n proposal {\n ...MultisigProposalRefFields\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n' +): (typeof documents)['\n \n fragment MultisigProposalCreatedFields on multisig_proposal_created {\n id\n timestamp\n proposal {\n ...MultisigProposalRefFields\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n \n query GetMultisigProposalCreated(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_created_order_by!]\n $where: multisig_proposal_created_bool_exp\n ) {\n multisigProposalCreatedEvents: multisig_proposal_created(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalCreatedFields\n }\n meta: multisig_proposal_created_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "): (typeof documents)["\n \n query GetMultisigProposalCreated(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_created_order_by!]\n $where: multisig_proposal_created_bool_exp\n ) {\n multisigProposalCreatedEvents: multisig_proposal_created(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalCreatedFields\n }\n meta: multisig_proposal_created_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "]; +export function gql( + source: '\n \n query GetMultisigProposalCreated(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_created_order_by!]\n $where: multisig_proposal_created_bool_exp\n ) {\n multisigProposalCreatedEvents: multisig_proposal_created(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalCreatedFields\n }\n meta: multisig_proposal_created_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n \n query GetMultisigProposalCreated(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_created_order_by!]\n $where: multisig_proposal_created_bool_exp\n ) {\n multisigProposalCreatedEvents: multisig_proposal_created(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalCreatedFields\n }\n meta: multisig_proposal_created_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetMultisigProposalCreatedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_created_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposals\n }\n }\n "): (typeof documents)["\n query GetMultisigProposalCreatedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_created_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposals\n }\n }\n "]; +export function gql( + source: '\n query GetMultisigProposalCreatedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_created_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposals\n }\n }\n ' +): (typeof documents)['\n query GetMultisigProposalCreatedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_created_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposals\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n \n query GetMultisigProposalCreatedByHash($hash: String!) {\n multisigProposalCreatedEvents: multisig_proposal_created(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalCreatedFields\n }\n }\n "): (typeof documents)["\n \n query GetMultisigProposalCreatedByHash($hash: String!) {\n multisigProposalCreatedEvents: multisig_proposal_created(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalCreatedFields\n }\n }\n "]; +export function gql( + source: '\n \n query GetMultisigProposalCreatedByHash($hash: String!) {\n multisigProposalCreatedEvents: multisig_proposal_created(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalCreatedFields\n }\n }\n ' +): (typeof documents)['\n \n query GetMultisigProposalCreatedByHash($hash: String!) {\n multisigProposalCreatedEvents: multisig_proposal_created(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalCreatedFields\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n fragment MultisigProposalExecutedFields on executed_multisig_proposal {\n id\n timestamp\n approvers\n result\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n"): (typeof documents)["\n fragment MultisigProposalExecutedFields on executed_multisig_proposal {\n id\n timestamp\n approvers\n result\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n"]; +export function gql( + source: '\n fragment MultisigProposalExecutedFields on executed_multisig_proposal {\n id\n timestamp\n approvers\n result\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n' +): (typeof documents)['\n fragment MultisigProposalExecutedFields on executed_multisig_proposal {\n id\n timestamp\n approvers\n result\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n \n query GetMultisigProposalExecuted(\n $limit: Int\n $offset: Int\n $orderBy: [executed_multisig_proposal_order_by!]\n $where: executed_multisig_proposal_bool_exp\n ) {\n multisigProposalExecutedEvents: executed_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalExecutedFields\n }\n meta: executed_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "): (typeof documents)["\n \n query GetMultisigProposalExecuted(\n $limit: Int\n $offset: Int\n $orderBy: [executed_multisig_proposal_order_by!]\n $where: executed_multisig_proposal_bool_exp\n ) {\n multisigProposalExecutedEvents: executed_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalExecutedFields\n }\n meta: executed_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "]; +export function gql( + source: '\n \n query GetMultisigProposalExecuted(\n $limit: Int\n $offset: Int\n $orderBy: [executed_multisig_proposal_order_by!]\n $where: executed_multisig_proposal_bool_exp\n ) {\n multisigProposalExecutedEvents: executed_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalExecutedFields\n }\n meta: executed_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n \n query GetMultisigProposalExecuted(\n $limit: Int\n $offset: Int\n $orderBy: [executed_multisig_proposal_order_by!]\n $where: executed_multisig_proposal_bool_exp\n ) {\n multisigProposalExecutedEvents: executed_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalExecutedFields\n }\n meta: executed_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetMultisigProposalExecutedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: executed_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposals_executed\n }\n }\n "): (typeof documents)["\n query GetMultisigProposalExecutedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: executed_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposals_executed\n }\n }\n "]; +export function gql( + source: '\n query GetMultisigProposalExecutedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: executed_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposals_executed\n }\n }\n ' +): (typeof documents)['\n query GetMultisigProposalExecutedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: executed_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposals_executed\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n \n query GetMultisigProposalExecutedByHash($hash: String!) {\n multisigProposalExecutedEvents: executed_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalExecutedFields\n }\n }\n "): (typeof documents)["\n \n query GetMultisigProposalExecutedByHash($hash: String!) {\n multisigProposalExecutedEvents: executed_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalExecutedFields\n }\n }\n "]; +export function gql( + source: '\n \n query GetMultisigProposalExecutedByHash($hash: String!) {\n multisigProposalExecutedEvents: executed_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalExecutedFields\n }\n }\n ' +): (typeof documents)['\n \n query GetMultisigProposalExecutedByHash($hash: String!) {\n multisigProposalExecutedEvents: executed_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalExecutedFields\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n fragment MultisigProposalReadyFields on multisig_proposal_ready {\n id\n timestamp\n approvals_count\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n"): (typeof documents)["\n fragment MultisigProposalReadyFields on multisig_proposal_ready {\n id\n timestamp\n approvals_count\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n"]; +export function gql( + source: '\n fragment MultisigProposalReadyFields on multisig_proposal_ready {\n id\n timestamp\n approvals_count\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n' +): (typeof documents)['\n fragment MultisigProposalReadyFields on multisig_proposal_ready {\n id\n timestamp\n approvals_count\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n \n query GetMultisigProposalReady(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_ready_order_by!]\n $where: multisig_proposal_ready_bool_exp\n ) {\n multisigProposalReadyEvents: multisig_proposal_ready(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalReadyFields\n }\n meta: multisig_proposal_ready_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "): (typeof documents)["\n \n query GetMultisigProposalReady(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_ready_order_by!]\n $where: multisig_proposal_ready_bool_exp\n ) {\n multisigProposalReadyEvents: multisig_proposal_ready(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalReadyFields\n }\n meta: multisig_proposal_ready_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "]; +export function gql( + source: '\n \n query GetMultisigProposalReady(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_ready_order_by!]\n $where: multisig_proposal_ready_bool_exp\n ) {\n multisigProposalReadyEvents: multisig_proposal_ready(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalReadyFields\n }\n meta: multisig_proposal_ready_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n \n query GetMultisigProposalReady(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_ready_order_by!]\n $where: multisig_proposal_ready_bool_exp\n ) {\n multisigProposalReadyEvents: multisig_proposal_ready(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalReadyFields\n }\n meta: multisig_proposal_ready_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetMultisigProposalReadyStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_ready_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposal_ready\n }\n }\n "): (typeof documents)["\n query GetMultisigProposalReadyStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_ready_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposal_ready\n }\n }\n "]; +export function gql( + source: '\n query GetMultisigProposalReadyStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_ready_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposal_ready\n }\n }\n ' +): (typeof documents)['\n query GetMultisigProposalReadyStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_ready_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposal_ready\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n \n query GetMultisigProposalReadyByHash($hash: String!) {\n multisigProposalReadyEvents: multisig_proposal_ready(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalReadyFields\n }\n }\n "): (typeof documents)["\n \n query GetMultisigProposalReadyByHash($hash: String!) {\n multisigProposalReadyEvents: multisig_proposal_ready(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalReadyFields\n }\n }\n "]; +export function gql( + source: '\n \n query GetMultisigProposalReadyByHash($hash: String!) {\n multisigProposalReadyEvents: multisig_proposal_ready(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalReadyFields\n }\n }\n ' +): (typeof documents)['\n \n query GetMultisigProposalReadyByHash($hash: String!) {\n multisigProposalReadyEvents: multisig_proposal_ready(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalReadyFields\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n fragment MultisigProposalRemovedFields on removed_multisig_proposal {\n id\n timestamp\n removedBy {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n"): (typeof documents)["\n fragment MultisigProposalRemovedFields on removed_multisig_proposal {\n id\n timestamp\n removedBy {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n"]; +export function gql( + source: '\n fragment MultisigProposalRemovedFields on removed_multisig_proposal {\n id\n timestamp\n removedBy {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n' +): (typeof documents)['\n fragment MultisigProposalRemovedFields on removed_multisig_proposal {\n id\n timestamp\n removedBy {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n \n query GetMultisigProposalRemoved(\n $limit: Int\n $offset: Int\n $orderBy: [removed_multisig_proposal_order_by!]\n $where: removed_multisig_proposal_bool_exp\n ) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalRemovedFields\n }\n meta: removed_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "): (typeof documents)["\n \n query GetMultisigProposalRemoved(\n $limit: Int\n $offset: Int\n $orderBy: [removed_multisig_proposal_order_by!]\n $where: removed_multisig_proposal_bool_exp\n ) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalRemovedFields\n }\n meta: removed_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "]; +export function gql( + source: '\n \n query GetMultisigProposalRemoved(\n $limit: Int\n $offset: Int\n $orderBy: [removed_multisig_proposal_order_by!]\n $where: removed_multisig_proposal_bool_exp\n ) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalRemovedFields\n }\n meta: removed_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n \n query GetMultisigProposalRemoved(\n $limit: Int\n $offset: Int\n $orderBy: [removed_multisig_proposal_order_by!]\n $where: removed_multisig_proposal_bool_exp\n ) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalRemovedFields\n }\n meta: removed_multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetMultisigProposalRemovedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: removed_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposals_removed\n }\n }\n "): (typeof documents)["\n query GetMultisigProposalRemovedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: removed_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposals_removed\n }\n }\n "]; +export function gql( + source: '\n query GetMultisigProposalRemovedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: removed_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposals_removed\n }\n }\n ' +): (typeof documents)['\n query GetMultisigProposalRemovedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: removed_multisig_proposal_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposals_removed\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n \n query GetMultisigProposalRemovedByHash($hash: String!) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalRemovedFields\n }\n }\n "): (typeof documents)["\n \n query GetMultisigProposalRemovedByHash($hash: String!) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalRemovedFields\n }\n }\n "]; +export function gql( + source: '\n \n query GetMultisigProposalRemovedByHash($hash: String!) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalRemovedFields\n }\n }\n ' +): (typeof documents)['\n \n query GetMultisigProposalRemovedByHash($hash: String!) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigProposalRemovedFields\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n fragment MultisigProposalListFields on multisig_proposal {\n id\n status\n deposit\n expiry_block\n approvals\n created_at\n multisig {\n id\n }\n proposer {\n id\n }\n }\n"): (typeof documents)["\n fragment MultisigProposalListFields on multisig_proposal {\n id\n status\n deposit\n expiry_block\n approvals\n created_at\n multisig {\n id\n }\n proposer {\n id\n }\n }\n"]; +export function gql( + source: '\n fragment MultisigProposalListFields on multisig_proposal {\n id\n status\n deposit\n expiry_block\n approvals\n created_at\n multisig {\n id\n }\n proposer {\n id\n }\n }\n' +): (typeof documents)['\n fragment MultisigProposalListFields on multisig_proposal {\n id\n status\n deposit\n expiry_block\n approvals\n created_at\n multisig {\n id\n }\n proposer {\n id\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n fragment MultisigProposalDetailFields on multisig_proposal {\n id\n status\n deposit\n expiry_block\n approvals\n pallet\n call\n call_raw\n decode_error\n created_at\n tx_id\n transfer_amount\n schedule_amount\n delay_kind\n delay_value\n schedule_asset_id\n multisig {\n id\n }\n proposer {\n id\n }\n guardian {\n id\n }\n transferTo {\n id\n }\n scheduleTo {\n id\n }\n recoverAccount {\n id\n }\n createdExtrinsic {\n id\n pallet\n call\n }\n createdAtBlock {\n height\n }\n }\n"): (typeof documents)["\n fragment MultisigProposalDetailFields on multisig_proposal {\n id\n status\n deposit\n expiry_block\n approvals\n pallet\n call\n call_raw\n decode_error\n created_at\n tx_id\n transfer_amount\n schedule_amount\n delay_kind\n delay_value\n schedule_asset_id\n multisig {\n id\n }\n proposer {\n id\n }\n guardian {\n id\n }\n transferTo {\n id\n }\n scheduleTo {\n id\n }\n recoverAccount {\n id\n }\n createdExtrinsic {\n id\n pallet\n call\n }\n createdAtBlock {\n height\n }\n }\n"]; +export function gql( + source: '\n fragment MultisigProposalDetailFields on multisig_proposal {\n id\n status\n deposit\n expiry_block\n approvals\n pallet\n call\n call_raw\n decode_error\n created_at\n tx_id\n transfer_amount\n schedule_amount\n delay_kind\n delay_value\n schedule_asset_id\n multisig {\n id\n }\n proposer {\n id\n }\n guardian {\n id\n }\n transferTo {\n id\n }\n scheduleTo {\n id\n }\n recoverAccount {\n id\n }\n createdExtrinsic {\n id\n pallet\n call\n }\n createdAtBlock {\n height\n }\n }\n' +): (typeof documents)['\n fragment MultisigProposalDetailFields on multisig_proposal {\n id\n status\n deposit\n expiry_block\n approvals\n pallet\n call\n call_raw\n decode_error\n created_at\n tx_id\n transfer_amount\n schedule_amount\n delay_kind\n delay_value\n schedule_asset_id\n multisig {\n id\n }\n proposer {\n id\n }\n guardian {\n id\n }\n transferTo {\n id\n }\n scheduleTo {\n id\n }\n recoverAccount {\n id\n }\n createdExtrinsic {\n id\n pallet\n call\n }\n createdAtBlock {\n height\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n fragment MultisigProposalLifecycleEventFields on multisig_proposal_created {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n"): (typeof documents)["\n fragment MultisigProposalLifecycleEventFields on multisig_proposal_created {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n"]; +export function gql( + source: '\n fragment MultisigProposalLifecycleEventFields on multisig_proposal_created {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n' +): (typeof documents)['\n fragment MultisigProposalLifecycleEventFields on multisig_proposal_created {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n \n query GetMultisigProposals(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_order_by!]\n $where: multisig_proposal_bool_exp\n ) {\n multisigProposals: multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalListFields\n }\n meta: multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "): (typeof documents)["\n \n query GetMultisigProposals(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_order_by!]\n $where: multisig_proposal_bool_exp\n ) {\n multisigProposals: multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalListFields\n }\n meta: multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "]; +export function gql( + source: '\n \n query GetMultisigProposals(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_order_by!]\n $where: multisig_proposal_bool_exp\n ) {\n multisigProposals: multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalListFields\n }\n meta: multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n \n query GetMultisigProposals(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_proposal_order_by!]\n $where: multisig_proposal_bool_exp\n ) {\n multisigProposals: multisig_proposal(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigProposalListFields\n }\n meta: multisig_proposal_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetMultisigProposalStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_aggregate(\n where: { created_at: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposals\n }\n }\n "): (typeof documents)["\n query GetMultisigProposalStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_aggregate(\n where: { created_at: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_proposals\n }\n }\n "]; +export function gql( + source: '\n query GetMultisigProposalStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_aggregate(\n where: { created_at: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposals\n }\n }\n ' +): (typeof documents)['\n query GetMultisigProposalStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_proposal_aggregate(\n where: { created_at: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_proposals\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n \n \n query GetMultisigProposalById($id: String!) {\n multisigProposal: multisig_proposal_by_pk(id: $id) {\n ...MultisigProposalDetailFields\n }\n createdEvents: multisig_proposal_created(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n ...MultisigProposalLifecycleEventFields\n }\n signerApprovedEvents: multisig_signer_approved(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n readyEvents: multisig_proposal_ready(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n executedEvents: executed_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n cancelledEvents: cancelled_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n removedEvents: removed_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n }\n "): (typeof documents)["\n \n \n query GetMultisigProposalById($id: String!) {\n multisigProposal: multisig_proposal_by_pk(id: $id) {\n ...MultisigProposalDetailFields\n }\n createdEvents: multisig_proposal_created(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n ...MultisigProposalLifecycleEventFields\n }\n signerApprovedEvents: multisig_signer_approved(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n readyEvents: multisig_proposal_ready(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n executedEvents: executed_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n cancelledEvents: cancelled_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n removedEvents: removed_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n }\n "]; +export function gql( + source: '\n \n \n query GetMultisigProposalById($id: String!) {\n multisigProposal: multisig_proposal_by_pk(id: $id) {\n ...MultisigProposalDetailFields\n }\n createdEvents: multisig_proposal_created(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n ...MultisigProposalLifecycleEventFields\n }\n signerApprovedEvents: multisig_signer_approved(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n readyEvents: multisig_proposal_ready(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n executedEvents: executed_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n cancelledEvents: cancelled_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n removedEvents: removed_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n }\n ' +): (typeof documents)['\n \n \n query GetMultisigProposalById($id: String!) {\n multisigProposal: multisig_proposal_by_pk(id: $id) {\n ...MultisigProposalDetailFields\n }\n createdEvents: multisig_proposal_created(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n ...MultisigProposalLifecycleEventFields\n }\n signerApprovedEvents: multisig_signer_approved(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n readyEvents: multisig_proposal_ready(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n executedEvents: executed_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n cancelledEvents: cancelled_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n removedEvents: removed_multisig_proposal(\n where: { proposal_id: { _eq: $id } }\n order_by: { timestamp: asc }\n ) {\n id\n timestamp\n extrinsic {\n id\n }\n block {\n height\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n fragment MultisigSignerApprovedFields on multisig_signer_approved {\n id\n timestamp\n approvals_count\n approver {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n"): (typeof documents)["\n fragment MultisigSignerApprovedFields on multisig_signer_approved {\n id\n timestamp\n approvals_count\n approver {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n"]; +export function gql( + source: '\n fragment MultisigSignerApprovedFields on multisig_signer_approved {\n id\n timestamp\n approvals_count\n approver {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n' +): (typeof documents)['\n fragment MultisigSignerApprovedFields on multisig_signer_approved {\n id\n timestamp\n approvals_count\n approver {\n id\n }\n proposal {\n id\n multisig {\n id\n }\n proposer {\n id\n }\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n \n query GetMultisigSignerApproved(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_signer_approved_order_by!]\n $where: multisig_signer_approved_bool_exp\n ) {\n multisigSignerApprovedEvents: multisig_signer_approved(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigSignerApprovedFields\n }\n meta: multisig_signer_approved_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "): (typeof documents)["\n \n query GetMultisigSignerApproved(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_signer_approved_order_by!]\n $where: multisig_signer_approved_bool_exp\n ) {\n multisigSignerApprovedEvents: multisig_signer_approved(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigSignerApprovedFields\n }\n meta: multisig_signer_approved_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n "]; +export function gql( + source: '\n \n query GetMultisigSignerApproved(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_signer_approved_order_by!]\n $where: multisig_signer_approved_bool_exp\n ) {\n multisigSignerApprovedEvents: multisig_signer_approved(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigSignerApprovedFields\n }\n meta: multisig_signer_approved_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n \n query GetMultisigSignerApproved(\n $limit: Int\n $offset: Int\n $orderBy: [multisig_signer_approved_order_by!]\n $where: multisig_signer_approved_bool_exp\n ) {\n multisigSignerApprovedEvents: multisig_signer_approved(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n ...MultisigSignerApprovedFields\n }\n meta: multisig_signer_approved_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetMultisigSignerApprovedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_signer_approved_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_signer_approved\n }\n }\n "): (typeof documents)["\n query GetMultisigSignerApprovedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_signer_approved_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: \"global\") {\n total_multisig_signer_approved\n }\n }\n "]; +export function gql( + source: '\n query GetMultisigSignerApprovedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_signer_approved_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_signer_approved\n }\n }\n ' +): (typeof documents)['\n query GetMultisigSignerApprovedStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: multisig_signer_approved_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_multisig_signer_approved\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n \n query GetMultisigSignerApprovedByHash($hash: String!) {\n multisigSignerApprovedEvents: multisig_signer_approved(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigSignerApprovedFields\n }\n }\n "): (typeof documents)["\n \n query GetMultisigSignerApprovedByHash($hash: String!) {\n multisigSignerApprovedEvents: multisig_signer_approved(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigSignerApprovedFields\n }\n }\n "]; +export function gql( + source: '\n \n query GetMultisigSignerApprovedByHash($hash: String!) {\n multisigSignerApprovedEvents: multisig_signer_approved(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigSignerApprovedFields\n }\n }\n ' +): (typeof documents)['\n \n query GetMultisigSignerApprovedByHash($hash: String!) {\n multisigSignerApprovedEvents: multisig_signer_approved(\n where: { extrinsic: { id: { _eq: $hash } } }\n ) {\n ...MultisigSignerApprovedFields\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetScheduledReversibleTransactionByTxId($tx_id: String!) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n "): (typeof documents)["\n query GetScheduledReversibleTransactionByTxId($tx_id: String!) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n "]; +export function gql( + source: '\n query GetScheduledReversibleTransactionByTxId($tx_id: String!) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query GetScheduledReversibleTransactionByTxId($tx_id: String!) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n where: { tx_id: { _eq: $tx_id } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n amount\n timestamp\n scheduled_at\n tx_id\n fee\n block {\n height\n }\n from {\n id\n }\n to {\n id\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query SearchHex($keyword: String, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: {\n _or: [{ hash: { _like: $keyword } }, { detail_id: { _like: $keyword } }]\n }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n blocks: block(limit: $limit, where: { hash: { _like: $keyword } }) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _like: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n"): (typeof documents)["\n query SearchHex($keyword: String, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: {\n _or: [{ hash: { _like: $keyword } }, { detail_id: { _like: $keyword } }]\n }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n blocks: block(limit: $limit, where: { hash: { _like: $keyword } }) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _like: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n"]; +export function gql( + source: '\n query SearchHex($keyword: String, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: {\n _or: [{ hash: { _like: $keyword } }, { detail_id: { _like: $keyword } }]\n }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n blocks: block(limit: $limit, where: { hash: { _like: $keyword } }) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _like: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n' +): (typeof documents)['\n query SearchHex($keyword: String, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: {\n _or: [{ hash: { _like: $keyword } }, { detail_id: { _like: $keyword } }]\n }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n blocks: block(limit: $limit, where: { hash: { _like: $keyword } }) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _like: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query SearchNumeric($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: { detail_id: { _like: $keyword } }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n blocks: block(limit: $limit, where: { height: { _eq: $keyword_number } }) {\n height\n }\n }\n"): (typeof documents)["\n query SearchNumeric($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: { detail_id: { _like: $keyword } }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n blocks: block(limit: $limit, where: { height: { _eq: $keyword_number } }) {\n height\n }\n }\n"]; +export function gql( + source: '\n query SearchNumeric($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: { detail_id: { _like: $keyword } }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n blocks: block(limit: $limit, where: { height: { _eq: $keyword_number } }) {\n height\n }\n }\n' +): (typeof documents)['\n query SearchNumeric($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: { detail_id: { _like: $keyword } }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n blocks: block(limit: $limit, where: { height: { _eq: $keyword_number } }) {\n height\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query SearchText($keyword: String, $limit: Int) {\n accounts: account(limit: $limit, where: { id: { _like: $keyword } }) {\n id\n }\n errorEvents: error_event(\n limit: $limit\n where: {\n _or: [\n { error_type: { _ilike: $keyword } }\n { error_name: { _ilike: $keyword } }\n ]\n }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n"): (typeof documents)["\n query SearchText($keyword: String, $limit: Int) {\n accounts: account(limit: $limit, where: { id: { _like: $keyword } }) {\n id\n }\n errorEvents: error_event(\n limit: $limit\n where: {\n _or: [\n { error_type: { _ilike: $keyword } }\n { error_name: { _ilike: $keyword } }\n ]\n }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n"]; +export function gql( + source: '\n query SearchText($keyword: String, $limit: Int) {\n accounts: account(limit: $limit, where: { id: { _like: $keyword } }) {\n id\n }\n errorEvents: error_event(\n limit: $limit\n where: {\n _or: [\n { error_type: { _ilike: $keyword } }\n { error_name: { _ilike: $keyword } }\n ]\n }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n' +): (typeof documents)['\n query SearchText($keyword: String, $limit: Int) {\n accounts: account(limit: $limit, where: { id: { _like: $keyword } }) {\n id\n }\n errorEvents: error_event(\n limit: $limit\n where: {\n _or: [\n { error_type: { _ilike: $keyword } }\n { error_name: { _ilike: $keyword } }\n ]\n }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetExtrinsicByHash($hash: String!) {\n extrinsics: extrinsic(where: { id: { _eq: $hash } }) {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n transfersByExtrinsic: transfer(\n where: { extrinsic: { id: { _eq: $hash } } }\n order_by: { timestamp: asc }\n ) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n }\n transfersById: transfer(where: { id: { _eq: $hash } }) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n }\n }\n "): (typeof documents)["\n query GetExtrinsicByHash($hash: String!) {\n extrinsics: extrinsic(where: { id: { _eq: $hash } }) {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n transfersByExtrinsic: transfer(\n where: { extrinsic: { id: { _eq: $hash } } }\n order_by: { timestamp: asc }\n ) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n }\n transfersById: transfer(where: { id: { _eq: $hash } }) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n }\n }\n "]; +export function gql( + source: '\n query GetExtrinsicByHash($hash: String!) {\n extrinsics: extrinsic(where: { id: { _eq: $hash } }) {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n transfersByExtrinsic: transfer(\n where: { extrinsic: { id: { _eq: $hash } } }\n order_by: { timestamp: asc }\n ) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n }\n transfersById: transfer(where: { id: { _eq: $hash } }) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n }\n }\n ' +): (typeof documents)['\n query GetExtrinsicByHash($hash: String!) {\n extrinsics: extrinsic(where: { id: { _eq: $hash } }) {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n transfersByExtrinsic: transfer(\n where: { extrinsic: { id: { _eq: $hash } } }\n order_by: { timestamp: asc }\n ) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n }\n transfersById: transfer(where: { id: { _eq: $hash } }) {\n id\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n block {\n height\n }\n extrinsic {\n id\n pallet\n call\n success\n fee\n timestamp\n index_in_block\n signer {\n id\n }\n block {\n height\n }\n }\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById: wormhole_extrinsic_by_pk(id: $id) {\n id\n extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n privacy_score\n privacy_score01_pct\n privacy_score1_pct\n privacy_score5_pct\n privacy_label\n pool_snapshot\n block {\n id\n height\n hash\n timestamp\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n wormholeNullifiers: wormhole_nullifier(\n where: { wormholeExtrinsic: { id: { _eq: $id } } }\n ) {\n nullifier\n nullifier_hash\n }\n }\n"): (typeof documents)["\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById: wormhole_extrinsic_by_pk(id: $id) {\n id\n extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n privacy_score\n privacy_score01_pct\n privacy_score1_pct\n privacy_score5_pct\n privacy_label\n pool_snapshot\n block {\n id\n height\n hash\n timestamp\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n wormholeNullifiers: wormhole_nullifier(\n where: { wormholeExtrinsic: { id: { _eq: $id } } }\n ) {\n nullifier\n nullifier_hash\n }\n }\n"]; +export function gql( + source: '\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById: wormhole_extrinsic_by_pk(id: $id) {\n id\n extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n privacy_score\n privacy_score01_pct\n privacy_score1_pct\n privacy_score5_pct\n privacy_label\n pool_snapshot\n block {\n id\n height\n hash\n timestamp\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n wormholeNullifiers: wormhole_nullifier(\n where: { wormholeExtrinsic: { id: { _eq: $id } } }\n ) {\n nullifier\n nullifier_hash\n }\n }\n' +): (typeof documents)['\n query GetWormholeExtrinsicById($id: String!) {\n wormholeExtrinsicById: wormhole_extrinsic_by_pk(id: $id) {\n id\n extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n privacy_score\n privacy_score01_pct\n privacy_score1_pct\n privacy_score5_pct\n privacy_label\n pool_snapshot\n block {\n id\n height\n hash\n timestamp\n }\n outputs {\n id\n exitAccount {\n id\n }\n amount\n }\n }\n wormholeNullifiers: wormhole_nullifier(\n where: { wormholeExtrinsic: { id: { _eq: $id } } }\n ) {\n nullifier\n nullifier_hash\n }\n }\n']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [transfer_order_by!]\n $where: transfer_bool_exp\n ) {\n transactions: transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n extrinsic {\n id\n }\n }\n }\n"): (typeof documents)["\n query GetTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [transfer_order_by!]\n $where: transfer_bool_exp\n ) {\n transactions: transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n extrinsic {\n id\n }\n }\n }\n"]; +export function gql( + source: '\n query BusyAccounts($limit: Int!) {\n account_stats(\n limit: $limit\n order_by: { total_immediate_transfers: desc }\n ) {\n id\n total_immediate_transfers\n total_mined_blocks\n }\n }\n ' +): (typeof documents)['\n query BusyAccounts($limit: Int!) {\n account_stats(\n limit: $limit\n order_by: { total_immediate_transfers: desc }\n ) {\n id\n total_immediate_transfers\n total_mined_blocks\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_reversible_transfer_order_by!]\n $where: cancelled_reversible_transfer_bool_exp\n ) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n"): (typeof documents)["\n query GetCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_reversible_transfer_order_by!]\n $where: cancelled_reversible_transfer_bool_exp\n ) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n"]; +export function gql( + source: '\n query MinerAccount {\n account_stats(limit: 1, order_by: { total_mined_blocks: desc }) {\n id\n total_mined_blocks\n }\n }\n ' +): (typeof documents)['\n query MinerAccount {\n account_stats(limit: 1, order_by: { total_mined_blocks: desc }) {\n id\n total_mined_blocks\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [executed_reversible_transfer_order_by!]\n $where: executed_reversible_transfer_bool_exp\n ) {\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n"): (typeof documents)["\n query GetExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [executed_reversible_transfer_order_by!]\n $where: executed_reversible_transfer_bool_exp\n ) {\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n"]; +export function gql( + source: '\n query DiscoveryIds($limit: Int!) {\n account(limit: $limit, order_by: { id: desc }) {\n id\n }\n }\n ' +): (typeof documents)['\n query DiscoveryIds($limit: Int!) {\n account(limit: $limit, order_by: { id: desc }) {\n id\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n $where: scheduled_reversible_transfer_bool_exp\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n"): (typeof documents)["\n query GetScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n $where: scheduled_reversible_transfer_bool_exp\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n"]; +export function gql( + source: '\n query HistoryCursor($accounts: [String!]!, $limit: Int!) {\n account_event(\n limit: $limit\n where: {\n _and: [\n { account_id: { _in: $accounts } }\n { scheduled_reversible_transfer_id: { _is_null: true } }\n ]\n }\n order_by: [{ timestamp: desc }, { id: desc }]\n ) {\n id\n timestamp\n }\n }\n ' +): (typeof documents)['\n query HistoryCursor($accounts: [String!]!, $limit: Int!) {\n account_event(\n limit: $limit\n where: {\n _and: [\n { account_id: { _in: $accounts } }\n { scheduled_reversible_transfer_id: { _is_null: true } }\n ]\n }\n order_by: [{ timestamp: desc }, { id: desc }]\n ) {\n id\n timestamp\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query GetWormholeExtrinsics(\n $limit: Int\n $offset: Int\n $orderBy: [wormhole_extrinsic_order_by!]!\n $where: wormhole_extrinsic_bool_exp\n ) {\n wormholeExtrinsics: wormhole_extrinsic(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n }\n }\n"): (typeof documents)["\n query GetWormholeExtrinsics(\n $limit: Int\n $offset: Int\n $orderBy: [wormhole_extrinsic_order_by!]!\n $where: wormhole_extrinsic_bool_exp\n ) {\n wormholeExtrinsics: wormhole_extrinsic(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n }\n }\n"]; +export function gql( + source: '\n query HistoryDeepCursor($accounts: [String!]!) {\n account_event(\n limit: 1\n offset: 2000\n where: {\n _and: [\n { account_id: { _in: $accounts } }\n { scheduled_reversible_transfer_id: { _is_null: true } }\n ]\n }\n order_by: [{ timestamp: desc }, { id: desc }]\n ) {\n id\n timestamp\n }\n }\n ' +): (typeof documents)['\n query HistoryDeepCursor($accounts: [String!]!) {\n account_event(\n limit: 1\n offset: 2000\n where: {\n _and: [\n { account_id: { _in: $accounts } }\n { scheduled_reversible_transfer_id: { _is_null: true } }\n ]\n }\n order_by: [{ timestamp: desc }, { id: desc }]\n ) {\n id\n timestamp\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query MinerHistoryCursor($accounts: [String!]!, $limit: Int!) {\n account_event(\n limit: $limit\n where: {\n _and: [\n { account_id: { _in: $accounts } }\n { scheduled_reversible_transfer_id: { _is_null: true } }\n ]\n }\n order_by: [{ timestamp: desc }, { id: desc }]\n ) {\n id\n timestamp\n }\n }\n ' +): (typeof documents)['\n query MinerHistoryCursor($accounts: [String!]!, $limit: Int!) {\n account_event(\n limit: $limit\n where: {\n _and: [\n { account_id: { _in: $accounts } }\n { scheduled_reversible_transfer_id: { _is_null: true } }\n ]\n }\n order_by: [{ timestamp: desc }, { id: desc }]\n ) {\n id\n timestamp\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query SampleTransfer {\n transfer(\n limit: 1\n where: { extrinsic_id: { _is_null: false } }\n order_by: { timestamp: desc }\n ) {\n from_id\n to_id\n amount\n block_height\n extrinsic {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query SampleTransfer {\n transfer(\n limit: 1\n where: { extrinsic_id: { _is_null: false } }\n order_by: { timestamp: desc }\n ) {\n from_id\n to_id\n amount\n block_height\n extrinsic {\n id\n }\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query SampleScheduled {\n scheduled_reversible_transfer(\n limit: 1\n order_by: { timestamp: desc }\n ) {\n from {\n id\n }\n to {\n id\n }\n amount\n block {\n height\n }\n extrinsic {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query SampleScheduled {\n scheduled_reversible_transfer(\n limit: 1\n order_by: { timestamp: desc }\n ) {\n from {\n id\n }\n to {\n id\n }\n amount\n block {\n height\n }\n extrinsic {\n id\n }\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query SampleExecuted {\n executed_reversible_transfer(\n limit: 1\n order_by: { timestamp: desc }\n ) {\n tx_id\n }\n }\n ' +): (typeof documents)['\n query SampleExecuted {\n executed_reversible_transfer(\n limit: 1\n order_by: { timestamp: desc }\n ) {\n tx_id\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query SampleWormholeRecipient {\n transfer(\n limit: 1\n where: { leaf_index: { _gt: "0" } }\n order_by: { transfer_count: desc }\n ) {\n to_id\n }\n }\n ' +): (typeof documents)['\n query SampleWormholeRecipient {\n transfer(\n limit: 1\n where: { leaf_index: { _gt: "0" } }\n order_by: { transfer_count: desc }\n ) {\n to_id\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query WormholeCursor($tos: [String!]!, $limit: Int!) {\n transfer(\n where: { to_id: { _in: $tos }, block_height: { _gt: 0 } }\n order_by: [{ block_height: asc }, { id: asc }]\n limit: $limit\n ) {\n id\n block_height\n }\n }\n ' +): (typeof documents)['\n query WormholeCursor($tos: [String!]!, $limit: Int!) {\n transfer(\n where: { to_id: { _in: $tos }, block_height: { _gt: 0 } }\n order_by: [{ block_height: asc }, { id: asc }]\n limit: $limit\n ) {\n id\n block_height\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query SampleNullifiers($limit: Int!) {\n wormhole_nullifier(limit: $limit, order_by: { timestamp: desc }) {\n nullifier_hash\n }\n }\n ' +): (typeof documents)['\n query SampleNullifiers($limit: Int!) {\n wormhole_nullifier(limit: $limit, order_by: { timestamp: desc }) {\n nullifier_hash\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query SampleMultisig {\n multisig(limit: 1, order_by: { timestamp: desc }) {\n id\n signers\n }\n }\n ' +): (typeof documents)['\n query SampleMultisig {\n multisig(limit: 1, order_by: { timestamp: desc }) {\n id\n signers\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query SampleProposal {\n multisig_proposal(limit: 1, order_by: { updated_at: desc }) {\n proposal_id\n multisig_id\n }\n }\n ' +): (typeof documents)['\n query SampleProposal {\n multisig_proposal(limit: 1, order_by: { updated_at: desc }) {\n proposal_id\n multisig_id\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query SampleProposalCreated {\n multisig_proposal_created(limit: 1, order_by: { timestamp: desc }) {\n extrinsic {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query SampleProposalCreated {\n multisig_proposal_created(limit: 1, order_by: { timestamp: desc }) {\n extrinsic {\n id\n }\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query SampleSignerApproved {\n multisig_signer_approved(limit: 1, order_by: { timestamp: desc }) {\n extrinsic {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query SampleSignerApproved {\n multisig_signer_approved(limit: 1, order_by: { timestamp: desc }) {\n extrinsic {\n id\n }\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query SampleProposalExecuted {\n executed_multisig_proposal(limit: 1, order_by: { timestamp: desc }) {\n extrinsic {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query SampleProposalExecuted {\n executed_multisig_proposal(limit: 1, order_by: { timestamp: desc }) {\n extrinsic {\n id\n }\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query SampleProposalCancelled {\n cancelled_multisig_proposal(limit: 1, order_by: { timestamp: desc }) {\n extrinsic {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query SampleProposalCancelled {\n cancelled_multisig_proposal(limit: 1, order_by: { timestamp: desc }) {\n extrinsic {\n id\n }\n }\n }\n ']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [transfer_order_by!]\n $where: transfer_bool_exp\n ) {\n transactions: transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n extrinsic {\n id\n }\n }\n }\n' +): (typeof documents)['\n query GetTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [transfer_order_by!]\n $where: transfer_bool_exp\n ) {\n transactions: transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n extrinsic {\n id\n }\n }\n }\n']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_reversible_transfer_order_by!]\n $where: cancelled_reversible_transfer_bool_exp\n ) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n' +): (typeof documents)['\n query GetCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_reversible_transfer_order_by!]\n $where: cancelled_reversible_transfer_bool_exp\n ) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [executed_reversible_transfer_order_by!]\n $where: executed_reversible_transfer_bool_exp\n ) {\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n' +): (typeof documents)['\n query GetExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [executed_reversible_transfer_order_by!]\n $where: executed_reversible_transfer_bool_exp\n ) {\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n $where: scheduled_reversible_transfer_bool_exp\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n' +): (typeof documents)['\n query GetScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n $where: scheduled_reversible_transfer_bool_exp\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n tx_id\n }\n }\n']; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql( + source: '\n query GetWormholeExtrinsics(\n $limit: Int\n $offset: Int\n $orderBy: [wormhole_extrinsic_order_by!]!\n $where: wormhole_extrinsic_bool_exp\n ) {\n wormholeExtrinsics: wormhole_extrinsic(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n }\n }\n' +): (typeof documents)['\n query GetWormholeExtrinsics(\n $limit: Int\n $offset: Int\n $orderBy: [wormhole_extrinsic_order_by!]!\n $where: wormhole_extrinsic_bool_exp\n ) {\n wormholeExtrinsics: wormhole_extrinsic(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n }\n }\n']; export function gql(source: string) { return (documents as any)[source] ?? {}; } -export type DocumentType> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never; \ No newline at end of file +export type DocumentType> = + TDocumentNode extends DocumentNode ? TType : never; diff --git a/src/__generated__/graphql.ts b/src/__generated__/graphql.ts index 76a0b3e..753bd9f 100644 --- a/src/__generated__/graphql.ts +++ b/src/__generated__/graphql.ts @@ -2,20 +2,33 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type Maybe = T | null; export type InputMaybe = Maybe; -export type Exact = { [K in keyof T]: T[K] }; -export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; -export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; -export type MakeEmpty = { [_ in K]?: never }; -export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; +export type Exact = { + [K in keyof T]: T[K]; +}; +export type MakeOptional = Omit & { + [SubKey in K]?: Maybe; +}; +export type MakeMaybe = Omit & { + [SubKey in K]: Maybe; +}; +export type MakeEmpty< + T extends { [key: string]: unknown }, + K extends keyof T +> = { [_ in K]?: never }; +export type Incremental = + | T + | { + [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never; + }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: { input: string; output: string; } - String: { input: string; output: string; } - Boolean: { input: boolean; output: boolean; } - Int: { input: number; output: number; } - Float: { input: number; output: number; } - numeric: { input: any; output: any; } - timestamptz: { input: any; output: any; } + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; + numeric: { input: any; output: any }; + timestamptz: { input: any; output: any }; }; /** Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'. */ @@ -129,7 +142,6 @@ export type Account = { transfersTo_aggregate: Transfer_Aggregate; }; - /** columns and relationships of "account" */ export type AccountAccountEventsArgs = { distinct_on?: InputMaybe>; @@ -139,7 +151,6 @@ export type AccountAccountEventsArgs = { where?: InputMaybe; }; - /** columns and relationships of "account" */ export type AccountAccountEvents_AggregateArgs = { distinct_on?: InputMaybe>; @@ -149,7 +160,6 @@ export type AccountAccountEvents_AggregateArgs = { where?: InputMaybe; }; - /** columns and relationships of "account" */ export type AccountExtrinsicsArgs = { distinct_on?: InputMaybe>; @@ -159,7 +169,6 @@ export type AccountExtrinsicsArgs = { where?: InputMaybe; }; - /** columns and relationships of "account" */ export type AccountExtrinsics_AggregateArgs = { distinct_on?: InputMaybe>; @@ -169,7 +178,6 @@ export type AccountExtrinsics_AggregateArgs = { where?: InputMaybe; }; - /** columns and relationships of "account" */ export type AccountMinedBlocksArgs = { distinct_on?: InputMaybe>; @@ -179,7 +187,6 @@ export type AccountMinedBlocksArgs = { where?: InputMaybe; }; - /** columns and relationships of "account" */ export type AccountMinedBlocks_AggregateArgs = { distinct_on?: InputMaybe>; @@ -189,7 +196,6 @@ export type AccountMinedBlocks_AggregateArgs = { where?: InputMaybe; }; - /** columns and relationships of "account" */ export type AccountTransfersFromArgs = { distinct_on?: InputMaybe>; @@ -199,7 +205,6 @@ export type AccountTransfersFromArgs = { where?: InputMaybe; }; - /** columns and relationships of "account" */ export type AccountTransfersFrom_AggregateArgs = { distinct_on?: InputMaybe>; @@ -209,7 +214,6 @@ export type AccountTransfersFrom_AggregateArgs = { where?: InputMaybe; }; - /** columns and relationships of "account" */ export type AccountTransfersToArgs = { distinct_on?: InputMaybe>; @@ -219,7 +223,6 @@ export type AccountTransfersToArgs = { where?: InputMaybe; }; - /** columns and relationships of "account" */ export type AccountTransfersTo_AggregateArgs = { distinct_on?: InputMaybe>; @@ -252,7 +255,6 @@ export type Account_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "account" */ export type Account_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -394,7 +396,6 @@ export type Account_Event_Aggregate_Fields = { min?: Maybe; }; - /** aggregate fields of "account_event" */ export type Account_Event_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -773,7 +774,6 @@ export type Account_Stats_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "account_stats" */ export type Account_Stats_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -1064,7 +1064,6 @@ export type Block = { transactions_aggregate: Transfer_Aggregate; }; - /** columns and relationships of "block" */ export type BlockEventsArgs = { distinct_on?: InputMaybe>; @@ -1074,7 +1073,6 @@ export type BlockEventsArgs = { where?: InputMaybe; }; - /** columns and relationships of "block" */ export type BlockEvents_AggregateArgs = { distinct_on?: InputMaybe>; @@ -1084,7 +1082,6 @@ export type BlockEvents_AggregateArgs = { where?: InputMaybe; }; - /** columns and relationships of "block" */ export type BlockExtrinsicsArgs = { distinct_on?: InputMaybe>; @@ -1094,7 +1091,6 @@ export type BlockExtrinsicsArgs = { where?: InputMaybe; }; - /** columns and relationships of "block" */ export type BlockExtrinsics_AggregateArgs = { distinct_on?: InputMaybe>; @@ -1104,7 +1100,6 @@ export type BlockExtrinsics_AggregateArgs = { where?: InputMaybe; }; - /** columns and relationships of "block" */ export type BlockTransactionsArgs = { distinct_on?: InputMaybe>; @@ -1114,7 +1109,6 @@ export type BlockTransactionsArgs = { where?: InputMaybe; }; - /** columns and relationships of "block" */ export type BlockTransactions_AggregateArgs = { distinct_on?: InputMaybe>; @@ -1158,7 +1152,6 @@ export type Block_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "block" */ export type Block_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -1439,7 +1432,6 @@ export type Cancelled_Multisig_Proposal_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "cancelled_multisig_proposal" */ export type Cancelled_Multisig_Proposal_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -1627,7 +1619,6 @@ export type Cancelled_Reversible_Transfer_Aggregate_Fields = { min?: Maybe; }; - /** aggregate fields of "cancelled_reversible_transfer" */ export type Cancelled_Reversible_Transfer_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -1734,8 +1725,10 @@ export type Cancelled_Reversible_Transfer_Stream_Cursor_Value_Input = { export type Chain_Stats = { __typename?: 'chain_stats'; block_height: Scalars['Int']['output']; + circulating_supply: Scalars['numeric']['output']; finalized_block_height: Scalars['Int']['output']; id: Scalars['String']['output']; + max_supply: Scalars['numeric']['output']; total_accounts: Scalars['Int']['output']; total_cancelled_transfers: Scalars['Int']['output']; total_deposit_accounts: Scalars['Int']['output']; @@ -1755,6 +1748,7 @@ export type Chain_Stats = { total_multisigs_created: Scalars['Int']['output']; total_runtime_upgrades: Scalars['Int']['output']; total_scheduled_transfers: Scalars['Int']['output']; + total_supply: Scalars['numeric']['output']; total_tech_referenda: Scalars['Int']['output']; }; @@ -1781,7 +1775,6 @@ export type Chain_Stats_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "chain_stats" */ export type Chain_Stats_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -1792,7 +1785,9 @@ export type Chain_Stats_Aggregate_FieldsCountArgs = { export type Chain_Stats_Avg_Fields = { __typename?: 'chain_stats_avg_fields'; block_height?: Maybe; + circulating_supply?: Maybe; finalized_block_height?: Maybe; + max_supply?: Maybe; total_accounts?: Maybe; total_cancelled_transfers?: Maybe; total_deposit_accounts?: Maybe; @@ -1812,6 +1807,7 @@ export type Chain_Stats_Avg_Fields = { total_multisigs_created?: Maybe; total_runtime_upgrades?: Maybe; total_scheduled_transfers?: Maybe; + total_supply?: Maybe; total_tech_referenda?: Maybe; }; @@ -1821,8 +1817,10 @@ export type Chain_Stats_Bool_Exp = { _not?: InputMaybe; _or?: InputMaybe>; block_height?: InputMaybe; + circulating_supply?: InputMaybe; finalized_block_height?: InputMaybe; id?: InputMaybe; + max_supply?: InputMaybe; total_accounts?: InputMaybe; total_cancelled_transfers?: InputMaybe; total_deposit_accounts?: InputMaybe; @@ -1842,6 +1840,7 @@ export type Chain_Stats_Bool_Exp = { total_multisigs_created?: InputMaybe; total_runtime_upgrades?: InputMaybe; total_scheduled_transfers?: InputMaybe; + total_supply?: InputMaybe; total_tech_referenda?: InputMaybe; }; @@ -1849,8 +1848,10 @@ export type Chain_Stats_Bool_Exp = { export type Chain_Stats_Max_Fields = { __typename?: 'chain_stats_max_fields'; block_height?: Maybe; + circulating_supply?: Maybe; finalized_block_height?: Maybe; id?: Maybe; + max_supply?: Maybe; total_accounts?: Maybe; total_cancelled_transfers?: Maybe; total_deposit_accounts?: Maybe; @@ -1870,6 +1871,7 @@ export type Chain_Stats_Max_Fields = { total_multisigs_created?: Maybe; total_runtime_upgrades?: Maybe; total_scheduled_transfers?: Maybe; + total_supply?: Maybe; total_tech_referenda?: Maybe; }; @@ -1877,8 +1879,10 @@ export type Chain_Stats_Max_Fields = { export type Chain_Stats_Min_Fields = { __typename?: 'chain_stats_min_fields'; block_height?: Maybe; + circulating_supply?: Maybe; finalized_block_height?: Maybe; id?: Maybe; + max_supply?: Maybe; total_accounts?: Maybe; total_cancelled_transfers?: Maybe; total_deposit_accounts?: Maybe; @@ -1898,14 +1902,17 @@ export type Chain_Stats_Min_Fields = { total_multisigs_created?: Maybe; total_runtime_upgrades?: Maybe; total_scheduled_transfers?: Maybe; + total_supply?: Maybe; total_tech_referenda?: Maybe; }; /** Ordering options when selecting data from "chain_stats". */ export type Chain_Stats_Order_By = { block_height?: InputMaybe; + circulating_supply?: InputMaybe; finalized_block_height?: InputMaybe; id?: InputMaybe; + max_supply?: InputMaybe; total_accounts?: InputMaybe; total_cancelled_transfers?: InputMaybe; total_deposit_accounts?: InputMaybe; @@ -1925,6 +1932,7 @@ export type Chain_Stats_Order_By = { total_multisigs_created?: InputMaybe; total_runtime_upgrades?: InputMaybe; total_scheduled_transfers?: InputMaybe; + total_supply?: InputMaybe; total_tech_referenda?: InputMaybe; }; @@ -1933,10 +1941,14 @@ export enum Chain_Stats_Select_Column { /** column name */ BlockHeight = 'block_height', /** column name */ + CirculatingSupply = 'circulating_supply', + /** column name */ FinalizedBlockHeight = 'finalized_block_height', /** column name */ Id = 'id', /** column name */ + MaxSupply = 'max_supply', + /** column name */ TotalAccounts = 'total_accounts', /** column name */ TotalCancelledTransfers = 'total_cancelled_transfers', @@ -1975,6 +1987,8 @@ export enum Chain_Stats_Select_Column { /** column name */ TotalScheduledTransfers = 'total_scheduled_transfers', /** column name */ + TotalSupply = 'total_supply', + /** column name */ TotalTechReferenda = 'total_tech_referenda' } @@ -1982,7 +1996,9 @@ export enum Chain_Stats_Select_Column { export type Chain_Stats_Stddev_Fields = { __typename?: 'chain_stats_stddev_fields'; block_height?: Maybe; + circulating_supply?: Maybe; finalized_block_height?: Maybe; + max_supply?: Maybe; total_accounts?: Maybe; total_cancelled_transfers?: Maybe; total_deposit_accounts?: Maybe; @@ -2002,6 +2018,7 @@ export type Chain_Stats_Stddev_Fields = { total_multisigs_created?: Maybe; total_runtime_upgrades?: Maybe; total_scheduled_transfers?: Maybe; + total_supply?: Maybe; total_tech_referenda?: Maybe; }; @@ -2009,7 +2026,9 @@ export type Chain_Stats_Stddev_Fields = { export type Chain_Stats_Stddev_Pop_Fields = { __typename?: 'chain_stats_stddev_pop_fields'; block_height?: Maybe; + circulating_supply?: Maybe; finalized_block_height?: Maybe; + max_supply?: Maybe; total_accounts?: Maybe; total_cancelled_transfers?: Maybe; total_deposit_accounts?: Maybe; @@ -2029,6 +2048,7 @@ export type Chain_Stats_Stddev_Pop_Fields = { total_multisigs_created?: Maybe; total_runtime_upgrades?: Maybe; total_scheduled_transfers?: Maybe; + total_supply?: Maybe; total_tech_referenda?: Maybe; }; @@ -2036,7 +2056,9 @@ export type Chain_Stats_Stddev_Pop_Fields = { export type Chain_Stats_Stddev_Samp_Fields = { __typename?: 'chain_stats_stddev_samp_fields'; block_height?: Maybe; + circulating_supply?: Maybe; finalized_block_height?: Maybe; + max_supply?: Maybe; total_accounts?: Maybe; total_cancelled_transfers?: Maybe; total_deposit_accounts?: Maybe; @@ -2056,6 +2078,7 @@ export type Chain_Stats_Stddev_Samp_Fields = { total_multisigs_created?: Maybe; total_runtime_upgrades?: Maybe; total_scheduled_transfers?: Maybe; + total_supply?: Maybe; total_tech_referenda?: Maybe; }; @@ -2070,8 +2093,10 @@ export type Chain_Stats_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Chain_Stats_Stream_Cursor_Value_Input = { block_height?: InputMaybe; + circulating_supply?: InputMaybe; finalized_block_height?: InputMaybe; id?: InputMaybe; + max_supply?: InputMaybe; total_accounts?: InputMaybe; total_cancelled_transfers?: InputMaybe; total_deposit_accounts?: InputMaybe; @@ -2091,6 +2116,7 @@ export type Chain_Stats_Stream_Cursor_Value_Input = { total_multisigs_created?: InputMaybe; total_runtime_upgrades?: InputMaybe; total_scheduled_transfers?: InputMaybe; + total_supply?: InputMaybe; total_tech_referenda?: InputMaybe; }; @@ -2098,7 +2124,9 @@ export type Chain_Stats_Stream_Cursor_Value_Input = { export type Chain_Stats_Sum_Fields = { __typename?: 'chain_stats_sum_fields'; block_height?: Maybe; + circulating_supply?: Maybe; finalized_block_height?: Maybe; + max_supply?: Maybe; total_accounts?: Maybe; total_cancelled_transfers?: Maybe; total_deposit_accounts?: Maybe; @@ -2118,6 +2146,7 @@ export type Chain_Stats_Sum_Fields = { total_multisigs_created?: Maybe; total_runtime_upgrades?: Maybe; total_scheduled_transfers?: Maybe; + total_supply?: Maybe; total_tech_referenda?: Maybe; }; @@ -2125,7 +2154,9 @@ export type Chain_Stats_Sum_Fields = { export type Chain_Stats_Var_Pop_Fields = { __typename?: 'chain_stats_var_pop_fields'; block_height?: Maybe; + circulating_supply?: Maybe; finalized_block_height?: Maybe; + max_supply?: Maybe; total_accounts?: Maybe; total_cancelled_transfers?: Maybe; total_deposit_accounts?: Maybe; @@ -2145,6 +2176,7 @@ export type Chain_Stats_Var_Pop_Fields = { total_multisigs_created?: Maybe; total_runtime_upgrades?: Maybe; total_scheduled_transfers?: Maybe; + total_supply?: Maybe; total_tech_referenda?: Maybe; }; @@ -2152,7 +2184,9 @@ export type Chain_Stats_Var_Pop_Fields = { export type Chain_Stats_Var_Samp_Fields = { __typename?: 'chain_stats_var_samp_fields'; block_height?: Maybe; + circulating_supply?: Maybe; finalized_block_height?: Maybe; + max_supply?: Maybe; total_accounts?: Maybe; total_cancelled_transfers?: Maybe; total_deposit_accounts?: Maybe; @@ -2172,6 +2206,7 @@ export type Chain_Stats_Var_Samp_Fields = { total_multisigs_created?: Maybe; total_runtime_upgrades?: Maybe; total_scheduled_transfers?: Maybe; + total_supply?: Maybe; total_tech_referenda?: Maybe; }; @@ -2179,7 +2214,9 @@ export type Chain_Stats_Var_Samp_Fields = { export type Chain_Stats_Variance_Fields = { __typename?: 'chain_stats_variance_fields'; block_height?: Maybe; + circulating_supply?: Maybe; finalized_block_height?: Maybe; + max_supply?: Maybe; total_accounts?: Maybe; total_cancelled_transfers?: Maybe; total_deposit_accounts?: Maybe; @@ -2199,6 +2236,7 @@ export type Chain_Stats_Variance_Fields = { total_multisigs_created?: Maybe; total_runtime_upgrades?: Maybe; total_scheduled_transfers?: Maybe; + total_supply?: Maybe; total_tech_referenda?: Maybe; }; @@ -2236,7 +2274,6 @@ export type Daily_Active_Account_Aggregate_Fields = { min?: Maybe; }; - /** aggregate fields of "daily_active_account" */ export type Daily_Active_Account_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -2349,7 +2386,6 @@ export type Daily_Chain_Stats_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "daily_chain_stats" */ export type Daily_Chain_Stats_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -2523,7 +2559,6 @@ export type Deposit_Pool_Stats_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "deposit_pool_stats" */ export type Deposit_Pool_Stats_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -2670,7 +2705,6 @@ export type Error_Event_Aggregate_Fields = { min?: Maybe; }; - /** aggregate fields of "error_event" */ export type Error_Event_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -2867,7 +2901,6 @@ export type Event_Aggregate_Fields = { min?: Maybe; }; - /** aggregate fields of "event" */ export type Event_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -3206,7 +3239,6 @@ export type Executed_Multisig_Proposal_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "executed_multisig_proposal" */ export type Executed_Multisig_Proposal_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -3396,7 +3428,6 @@ export type Executed_Reversible_Transfer_Aggregate_Fields = { min?: Maybe; }; - /** aggregate fields of "executed_reversible_transfer" */ export type Executed_Reversible_Transfer_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -3513,7 +3544,6 @@ export type Extrinsic = { timestamp: Scalars['timestamptz']['output']; }; - /** columns and relationships of "extrinsic" */ export type ExtrinsicEventsArgs = { distinct_on?: InputMaybe>; @@ -3523,7 +3553,6 @@ export type ExtrinsicEventsArgs = { where?: InputMaybe; }; - /** columns and relationships of "extrinsic" */ export type ExtrinsicEvents_AggregateArgs = { distinct_on?: InputMaybe>; @@ -3583,7 +3612,6 @@ export type Extrinsic_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "extrinsic" */ export type Extrinsic_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -3904,7 +3932,6 @@ export type High_Security_Set_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "high_security_set" */ export type High_Security_Set_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -4094,7 +4121,6 @@ export type Miner_Reward_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "miner_reward" */ export type Miner_Reward_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -4272,7 +4298,6 @@ export type Multisig_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "multisig" */ export type Multisig_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -4354,7 +4379,6 @@ export type Multisig_Deposits_Claimed_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "multisig_deposits_claimed" */ export type Multisig_Deposits_Claimed_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -4652,7 +4676,6 @@ export type Multisig_Proposal_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "multisig_proposal" */ export type Multisig_Proposal_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -4760,7 +4783,6 @@ export type Multisig_Proposal_Created_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "multisig_proposal_created" */ export type Multisig_Proposal_Created_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -5081,7 +5103,6 @@ export type Multisig_Proposal_Ready_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "multisig_proposal_ready" */ export type Multisig_Proposal_Ready_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -5504,7 +5525,6 @@ export type Multisig_Signer_Approved_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "multisig_signer_approved" */ export type Multisig_Signer_Approved_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -5952,6 +5972,12 @@ export type Query_Root = { unified_transaction_aggregate: Unified_Transaction_Aggregate; /** fetch data from the table: "unified_transaction" using primary key columns */ unified_transaction_by_pk?: Maybe; + /** fetch data from the table: "vesting_schedule" */ + vesting_schedule: Array; + /** fetch aggregated fields from the table: "vesting_schedule" */ + vesting_schedule_aggregate: Vesting_Schedule_Aggregate; + /** fetch data from the table: "vesting_schedule" using primary key columns */ + vesting_schedule_by_pk?: Maybe; /** fetch data from the table: "wormhole_extrinsic" */ wormhole_extrinsic: Array; /** fetch aggregated fields from the table: "wormhole_extrinsic" */ @@ -5972,7 +5998,6 @@ export type Query_Root = { wormhole_output_by_pk?: Maybe; }; - export type Query_RootAccountArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -5981,7 +6006,6 @@ export type Query_RootAccountArgs = { where?: InputMaybe; }; - export type Query_RootAccount_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -5990,12 +6014,10 @@ export type Query_RootAccount_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootAccount_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootAccount_EventArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6004,7 +6026,6 @@ export type Query_RootAccount_EventArgs = { where?: InputMaybe; }; - export type Query_RootAccount_Event_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6013,12 +6034,10 @@ export type Query_RootAccount_Event_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootAccount_Event_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootAccount_StatsArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6027,7 +6046,6 @@ export type Query_RootAccount_StatsArgs = { where?: InputMaybe; }; - export type Query_RootAccount_Stats_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6036,12 +6054,10 @@ export type Query_RootAccount_Stats_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootAccount_Stats_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootBlockArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6050,7 +6066,6 @@ export type Query_RootBlockArgs = { where?: InputMaybe; }; - export type Query_RootBlock_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6059,12 +6074,10 @@ export type Query_RootBlock_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootBlock_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootCancelled_Multisig_ProposalArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6073,7 +6086,6 @@ export type Query_RootCancelled_Multisig_ProposalArgs = { where?: InputMaybe; }; - export type Query_RootCancelled_Multisig_Proposal_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6082,12 +6094,10 @@ export type Query_RootCancelled_Multisig_Proposal_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootCancelled_Multisig_Proposal_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootCancelled_Reversible_TransferArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6096,7 +6106,6 @@ export type Query_RootCancelled_Reversible_TransferArgs = { where?: InputMaybe; }; - export type Query_RootCancelled_Reversible_Transfer_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6105,12 +6114,10 @@ export type Query_RootCancelled_Reversible_Transfer_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootCancelled_Reversible_Transfer_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootChain_StatsArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6119,7 +6126,6 @@ export type Query_RootChain_StatsArgs = { where?: InputMaybe; }; - export type Query_RootChain_Stats_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6128,12 +6134,10 @@ export type Query_RootChain_Stats_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootChain_Stats_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootDaily_Active_AccountArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6142,7 +6146,6 @@ export type Query_RootDaily_Active_AccountArgs = { where?: InputMaybe; }; - export type Query_RootDaily_Active_Account_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6151,12 +6154,10 @@ export type Query_RootDaily_Active_Account_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootDaily_Active_Account_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootDaily_Chain_StatsArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6165,7 +6166,6 @@ export type Query_RootDaily_Chain_StatsArgs = { where?: InputMaybe; }; - export type Query_RootDaily_Chain_Stats_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6174,12 +6174,10 @@ export type Query_RootDaily_Chain_Stats_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootDaily_Chain_Stats_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootDeposit_Pool_StatsArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6188,7 +6186,6 @@ export type Query_RootDeposit_Pool_StatsArgs = { where?: InputMaybe; }; - export type Query_RootDeposit_Pool_Stats_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6197,12 +6194,10 @@ export type Query_RootDeposit_Pool_Stats_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootDeposit_Pool_Stats_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootError_EventArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6211,7 +6206,6 @@ export type Query_RootError_EventArgs = { where?: InputMaybe; }; - export type Query_RootError_Event_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6220,12 +6214,10 @@ export type Query_RootError_Event_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootError_Event_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootEventArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6234,7 +6226,6 @@ export type Query_RootEventArgs = { where?: InputMaybe; }; - export type Query_RootEvent_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6243,12 +6234,10 @@ export type Query_RootEvent_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootEvent_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootExecuted_Multisig_ProposalArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6257,7 +6246,6 @@ export type Query_RootExecuted_Multisig_ProposalArgs = { where?: InputMaybe; }; - export type Query_RootExecuted_Multisig_Proposal_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6266,12 +6254,10 @@ export type Query_RootExecuted_Multisig_Proposal_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootExecuted_Multisig_Proposal_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootExecuted_Reversible_TransferArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6280,7 +6266,6 @@ export type Query_RootExecuted_Reversible_TransferArgs = { where?: InputMaybe; }; - export type Query_RootExecuted_Reversible_Transfer_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6289,12 +6274,10 @@ export type Query_RootExecuted_Reversible_Transfer_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootExecuted_Reversible_Transfer_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootExtrinsicArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6303,7 +6286,6 @@ export type Query_RootExtrinsicArgs = { where?: InputMaybe; }; - export type Query_RootExtrinsic_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6312,12 +6294,10 @@ export type Query_RootExtrinsic_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootExtrinsic_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootHigh_Security_SetArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6326,7 +6306,6 @@ export type Query_RootHigh_Security_SetArgs = { where?: InputMaybe; }; - export type Query_RootHigh_Security_Set_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6335,12 +6314,10 @@ export type Query_RootHigh_Security_Set_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootHigh_Security_Set_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootMiner_RewardArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6349,7 +6326,6 @@ export type Query_RootMiner_RewardArgs = { where?: InputMaybe; }; - export type Query_RootMiner_Reward_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6358,12 +6334,10 @@ export type Query_RootMiner_Reward_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootMiner_Reward_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootMultisigArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6372,7 +6346,6 @@ export type Query_RootMultisigArgs = { where?: InputMaybe; }; - export type Query_RootMultisig_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6381,12 +6354,10 @@ export type Query_RootMultisig_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootMultisig_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootMultisig_Deposits_ClaimedArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6395,7 +6366,6 @@ export type Query_RootMultisig_Deposits_ClaimedArgs = { where?: InputMaybe; }; - export type Query_RootMultisig_Deposits_Claimed_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6404,12 +6374,10 @@ export type Query_RootMultisig_Deposits_Claimed_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootMultisig_Deposits_Claimed_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootMultisig_ProposalArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6418,7 +6386,6 @@ export type Query_RootMultisig_ProposalArgs = { where?: InputMaybe; }; - export type Query_RootMultisig_Proposal_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6427,12 +6394,10 @@ export type Query_RootMultisig_Proposal_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootMultisig_Proposal_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootMultisig_Proposal_CreatedArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6441,7 +6406,6 @@ export type Query_RootMultisig_Proposal_CreatedArgs = { where?: InputMaybe; }; - export type Query_RootMultisig_Proposal_Created_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6450,12 +6414,10 @@ export type Query_RootMultisig_Proposal_Created_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootMultisig_Proposal_Created_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootMultisig_Proposal_ReadyArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6464,7 +6426,6 @@ export type Query_RootMultisig_Proposal_ReadyArgs = { where?: InputMaybe; }; - export type Query_RootMultisig_Proposal_Ready_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6473,12 +6434,10 @@ export type Query_RootMultisig_Proposal_Ready_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootMultisig_Proposal_Ready_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootMultisig_Signer_ApprovedArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6487,7 +6446,6 @@ export type Query_RootMultisig_Signer_ApprovedArgs = { where?: InputMaybe; }; - export type Query_RootMultisig_Signer_Approved_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6496,12 +6454,10 @@ export type Query_RootMultisig_Signer_Approved_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootMultisig_Signer_Approved_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootRemoved_Multisig_ProposalArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6510,7 +6466,6 @@ export type Query_RootRemoved_Multisig_ProposalArgs = { where?: InputMaybe; }; - export type Query_RootRemoved_Multisig_Proposal_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6519,12 +6474,10 @@ export type Query_RootRemoved_Multisig_Proposal_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootRemoved_Multisig_Proposal_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootRuntime_UpgradeArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6533,7 +6486,6 @@ export type Query_RootRuntime_UpgradeArgs = { where?: InputMaybe; }; - export type Query_RootRuntime_Upgrade_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6542,12 +6494,10 @@ export type Query_RootRuntime_Upgrade_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootRuntime_Upgrade_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootScheduled_Reversible_TransferArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6556,7 +6506,6 @@ export type Query_RootScheduled_Reversible_TransferArgs = { where?: InputMaybe; }; - export type Query_RootScheduled_Reversible_Transfer_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6565,12 +6514,10 @@ export type Query_RootScheduled_Reversible_Transfer_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootScheduled_Reversible_Transfer_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootTech_Referendum_EventArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6579,7 +6526,6 @@ export type Query_RootTech_Referendum_EventArgs = { where?: InputMaybe; }; - export type Query_RootTech_Referendum_Event_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6588,12 +6534,10 @@ export type Query_RootTech_Referendum_Event_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootTech_Referendum_Event_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootTransferArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6602,7 +6546,6 @@ export type Query_RootTransferArgs = { where?: InputMaybe; }; - export type Query_RootTransfer_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6611,12 +6554,10 @@ export type Query_RootTransfer_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootTransfer_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootUnified_TransactionArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6625,7 +6566,6 @@ export type Query_RootUnified_TransactionArgs = { where?: InputMaybe; }; - export type Query_RootUnified_Transaction_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6634,11 +6574,29 @@ export type Query_RootUnified_Transaction_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootUnified_Transaction_By_PkArgs = { id: Scalars['String']['input']; }; +export type Query_RootVesting_ScheduleArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +export type Query_RootVesting_Schedule_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +export type Query_RootVesting_Schedule_By_PkArgs = { + id: Scalars['String']['input']; +}; export type Query_RootWormhole_ExtrinsicArgs = { distinct_on?: InputMaybe>; @@ -6648,7 +6606,6 @@ export type Query_RootWormhole_ExtrinsicArgs = { where?: InputMaybe; }; - export type Query_RootWormhole_Extrinsic_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6657,12 +6614,10 @@ export type Query_RootWormhole_Extrinsic_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootWormhole_Extrinsic_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootWormhole_NullifierArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6671,7 +6626,6 @@ export type Query_RootWormhole_NullifierArgs = { where?: InputMaybe; }; - export type Query_RootWormhole_Nullifier_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6680,12 +6634,10 @@ export type Query_RootWormhole_Nullifier_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootWormhole_Nullifier_By_PkArgs = { id: Scalars['String']['input']; }; - export type Query_RootWormhole_OutputArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6694,7 +6646,6 @@ export type Query_RootWormhole_OutputArgs = { where?: InputMaybe; }; - export type Query_RootWormhole_Output_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -6703,7 +6654,6 @@ export type Query_RootWormhole_Output_AggregateArgs = { where?: InputMaybe; }; - export type Query_RootWormhole_Output_By_PkArgs = { id: Scalars['String']['input']; }; @@ -6753,7 +6703,6 @@ export type Removed_Multisig_Proposal_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "removed_multisig_proposal" */ export type Removed_Multisig_Proposal_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -6943,7 +6892,6 @@ export type Runtime_Upgrade_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "runtime_upgrade" */ export type Runtime_Upgrade_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -7124,7 +7072,6 @@ export type Scheduled_Reversible_Transfer_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "scheduled_reversible_transfer" */ export type Scheduled_Reversible_Transfer_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -7538,6 +7485,14 @@ export type Subscription_Root = { unified_transaction_by_pk?: Maybe; /** fetch data from the table in a streaming manner: "unified_transaction" */ unified_transaction_stream: Array; + /** fetch data from the table: "vesting_schedule" */ + vesting_schedule: Array; + /** fetch aggregated fields from the table: "vesting_schedule" */ + vesting_schedule_aggregate: Vesting_Schedule_Aggregate; + /** fetch data from the table: "vesting_schedule" using primary key columns */ + vesting_schedule_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "vesting_schedule" */ + vesting_schedule_stream: Array; /** fetch data from the table: "wormhole_extrinsic" */ wormhole_extrinsic: Array; /** fetch aggregated fields from the table: "wormhole_extrinsic" */ @@ -7564,7 +7519,6 @@ export type Subscription_Root = { wormhole_output_stream: Array; }; - export type Subscription_RootAccountArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7573,7 +7527,6 @@ export type Subscription_RootAccountArgs = { where?: InputMaybe; }; - export type Subscription_RootAccount_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7582,12 +7535,10 @@ export type Subscription_RootAccount_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootAccount_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootAccount_EventArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7596,7 +7547,6 @@ export type Subscription_RootAccount_EventArgs = { where?: InputMaybe; }; - export type Subscription_RootAccount_Event_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7605,19 +7555,16 @@ export type Subscription_RootAccount_Event_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootAccount_Event_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootAccount_Event_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootAccount_StatsArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7626,7 +7573,6 @@ export type Subscription_RootAccount_StatsArgs = { where?: InputMaybe; }; - export type Subscription_RootAccount_Stats_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7635,26 +7581,22 @@ export type Subscription_RootAccount_Stats_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootAccount_Stats_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootAccount_Stats_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootAccount_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootBlockArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7663,7 +7605,6 @@ export type Subscription_RootBlockArgs = { where?: InputMaybe; }; - export type Subscription_RootBlock_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7672,19 +7613,16 @@ export type Subscription_RootBlock_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootBlock_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootBlock_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootCancelled_Multisig_ProposalArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7693,7 +7631,6 @@ export type Subscription_RootCancelled_Multisig_ProposalArgs = { where?: InputMaybe; }; - export type Subscription_RootCancelled_Multisig_Proposal_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7702,19 +7639,16 @@ export type Subscription_RootCancelled_Multisig_Proposal_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootCancelled_Multisig_Proposal_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootCancelled_Multisig_Proposal_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootCancelled_Reversible_TransferArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7723,7 +7657,6 @@ export type Subscription_RootCancelled_Reversible_TransferArgs = { where?: InputMaybe; }; - export type Subscription_RootCancelled_Reversible_Transfer_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7732,19 +7665,16 @@ export type Subscription_RootCancelled_Reversible_Transfer_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootCancelled_Reversible_Transfer_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootCancelled_Reversible_Transfer_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootChain_StatsArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7753,7 +7683,6 @@ export type Subscription_RootChain_StatsArgs = { where?: InputMaybe; }; - export type Subscription_RootChain_Stats_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7762,19 +7691,16 @@ export type Subscription_RootChain_Stats_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootChain_Stats_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootChain_Stats_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootDaily_Active_AccountArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7783,7 +7709,6 @@ export type Subscription_RootDaily_Active_AccountArgs = { where?: InputMaybe; }; - export type Subscription_RootDaily_Active_Account_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7792,19 +7717,16 @@ export type Subscription_RootDaily_Active_Account_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootDaily_Active_Account_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootDaily_Active_Account_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootDaily_Chain_StatsArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7813,7 +7735,6 @@ export type Subscription_RootDaily_Chain_StatsArgs = { where?: InputMaybe; }; - export type Subscription_RootDaily_Chain_Stats_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7822,19 +7743,16 @@ export type Subscription_RootDaily_Chain_Stats_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootDaily_Chain_Stats_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootDaily_Chain_Stats_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootDeposit_Pool_StatsArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7843,7 +7761,6 @@ export type Subscription_RootDeposit_Pool_StatsArgs = { where?: InputMaybe; }; - export type Subscription_RootDeposit_Pool_Stats_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7852,19 +7769,16 @@ export type Subscription_RootDeposit_Pool_Stats_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootDeposit_Pool_Stats_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootDeposit_Pool_Stats_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootError_EventArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7873,7 +7787,6 @@ export type Subscription_RootError_EventArgs = { where?: InputMaybe; }; - export type Subscription_RootError_Event_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7882,19 +7795,16 @@ export type Subscription_RootError_Event_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootError_Event_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootError_Event_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootEventArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7903,7 +7813,6 @@ export type Subscription_RootEventArgs = { where?: InputMaybe; }; - export type Subscription_RootEvent_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7912,19 +7821,16 @@ export type Subscription_RootEvent_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootEvent_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootEvent_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootExecuted_Multisig_ProposalArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7933,7 +7839,6 @@ export type Subscription_RootExecuted_Multisig_ProposalArgs = { where?: InputMaybe; }; - export type Subscription_RootExecuted_Multisig_Proposal_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7942,19 +7847,16 @@ export type Subscription_RootExecuted_Multisig_Proposal_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootExecuted_Multisig_Proposal_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootExecuted_Multisig_Proposal_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootExecuted_Reversible_TransferArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7963,7 +7865,6 @@ export type Subscription_RootExecuted_Reversible_TransferArgs = { where?: InputMaybe; }; - export type Subscription_RootExecuted_Reversible_Transfer_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7972,19 +7873,16 @@ export type Subscription_RootExecuted_Reversible_Transfer_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootExecuted_Reversible_Transfer_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootExecuted_Reversible_Transfer_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootExtrinsicArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -7993,7 +7891,6 @@ export type Subscription_RootExtrinsicArgs = { where?: InputMaybe; }; - export type Subscription_RootExtrinsic_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8002,19 +7899,16 @@ export type Subscription_RootExtrinsic_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootExtrinsic_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootExtrinsic_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootHigh_Security_SetArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8023,7 +7917,6 @@ export type Subscription_RootHigh_Security_SetArgs = { where?: InputMaybe; }; - export type Subscription_RootHigh_Security_Set_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8032,19 +7925,16 @@ export type Subscription_RootHigh_Security_Set_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootHigh_Security_Set_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootHigh_Security_Set_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootMiner_RewardArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8053,7 +7943,6 @@ export type Subscription_RootMiner_RewardArgs = { where?: InputMaybe; }; - export type Subscription_RootMiner_Reward_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8062,19 +7951,16 @@ export type Subscription_RootMiner_Reward_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootMiner_Reward_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootMiner_Reward_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootMultisigArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8083,7 +7969,6 @@ export type Subscription_RootMultisigArgs = { where?: InputMaybe; }; - export type Subscription_RootMultisig_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8092,12 +7977,10 @@ export type Subscription_RootMultisig_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootMultisig_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootMultisig_Deposits_ClaimedArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8106,7 +7989,6 @@ export type Subscription_RootMultisig_Deposits_ClaimedArgs = { where?: InputMaybe; }; - export type Subscription_RootMultisig_Deposits_Claimed_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8115,19 +7997,16 @@ export type Subscription_RootMultisig_Deposits_Claimed_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootMultisig_Deposits_Claimed_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootMultisig_Deposits_Claimed_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootMultisig_ProposalArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8136,7 +8015,6 @@ export type Subscription_RootMultisig_ProposalArgs = { where?: InputMaybe; }; - export type Subscription_RootMultisig_Proposal_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8145,12 +8023,10 @@ export type Subscription_RootMultisig_Proposal_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootMultisig_Proposal_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootMultisig_Proposal_CreatedArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8159,7 +8035,6 @@ export type Subscription_RootMultisig_Proposal_CreatedArgs = { where?: InputMaybe; }; - export type Subscription_RootMultisig_Proposal_Created_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8168,19 +8043,16 @@ export type Subscription_RootMultisig_Proposal_Created_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootMultisig_Proposal_Created_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootMultisig_Proposal_Created_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootMultisig_Proposal_ReadyArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8189,7 +8061,6 @@ export type Subscription_RootMultisig_Proposal_ReadyArgs = { where?: InputMaybe; }; - export type Subscription_RootMultisig_Proposal_Ready_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8198,26 +8069,22 @@ export type Subscription_RootMultisig_Proposal_Ready_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootMultisig_Proposal_Ready_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootMultisig_Proposal_Ready_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootMultisig_Proposal_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootMultisig_Signer_ApprovedArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8226,7 +8093,6 @@ export type Subscription_RootMultisig_Signer_ApprovedArgs = { where?: InputMaybe; }; - export type Subscription_RootMultisig_Signer_Approved_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8235,26 +8101,22 @@ export type Subscription_RootMultisig_Signer_Approved_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootMultisig_Signer_Approved_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootMultisig_Signer_Approved_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootMultisig_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootRemoved_Multisig_ProposalArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8263,7 +8125,6 @@ export type Subscription_RootRemoved_Multisig_ProposalArgs = { where?: InputMaybe; }; - export type Subscription_RootRemoved_Multisig_Proposal_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8272,19 +8133,16 @@ export type Subscription_RootRemoved_Multisig_Proposal_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootRemoved_Multisig_Proposal_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootRemoved_Multisig_Proposal_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootRuntime_UpgradeArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8293,7 +8151,6 @@ export type Subscription_RootRuntime_UpgradeArgs = { where?: InputMaybe; }; - export type Subscription_RootRuntime_Upgrade_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8302,19 +8159,16 @@ export type Subscription_RootRuntime_Upgrade_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootRuntime_Upgrade_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootRuntime_Upgrade_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootScheduled_Reversible_TransferArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8323,7 +8177,6 @@ export type Subscription_RootScheduled_Reversible_TransferArgs = { where?: InputMaybe; }; - export type Subscription_RootScheduled_Reversible_Transfer_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8332,19 +8185,16 @@ export type Subscription_RootScheduled_Reversible_Transfer_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootScheduled_Reversible_Transfer_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootScheduled_Reversible_Transfer_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootTech_Referendum_EventArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8353,7 +8203,6 @@ export type Subscription_RootTech_Referendum_EventArgs = { where?: InputMaybe; }; - export type Subscription_RootTech_Referendum_Event_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8362,19 +8211,16 @@ export type Subscription_RootTech_Referendum_Event_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootTech_Referendum_Event_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootTech_Referendum_Event_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootTransferArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8383,7 +8229,6 @@ export type Subscription_RootTransferArgs = { where?: InputMaybe; }; - export type Subscription_RootTransfer_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8392,19 +8237,16 @@ export type Subscription_RootTransfer_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootTransfer_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootTransfer_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootUnified_TransactionArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8413,7 +8255,6 @@ export type Subscription_RootUnified_TransactionArgs = { where?: InputMaybe; }; - export type Subscription_RootUnified_Transaction_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8422,18 +8263,41 @@ export type Subscription_RootUnified_Transaction_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootUnified_Transaction_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootUnified_Transaction_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; +export type Subscription_RootVesting_ScheduleArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +export type Subscription_RootVesting_Schedule_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +export type Subscription_RootVesting_Schedule_By_PkArgs = { + id: Scalars['String']['input']; +}; + +export type Subscription_RootVesting_Schedule_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; export type Subscription_RootWormhole_ExtrinsicArgs = { distinct_on?: InputMaybe>; @@ -8443,7 +8307,6 @@ export type Subscription_RootWormhole_ExtrinsicArgs = { where?: InputMaybe; }; - export type Subscription_RootWormhole_Extrinsic_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8452,19 +8315,16 @@ export type Subscription_RootWormhole_Extrinsic_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootWormhole_Extrinsic_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootWormhole_Extrinsic_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootWormhole_NullifierArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8473,7 +8333,6 @@ export type Subscription_RootWormhole_NullifierArgs = { where?: InputMaybe; }; - export type Subscription_RootWormhole_Nullifier_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8482,19 +8341,16 @@ export type Subscription_RootWormhole_Nullifier_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootWormhole_Nullifier_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootWormhole_Nullifier_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; where?: InputMaybe; }; - export type Subscription_RootWormhole_OutputArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8503,7 +8359,6 @@ export type Subscription_RootWormhole_OutputArgs = { where?: InputMaybe; }; - export type Subscription_RootWormhole_Output_AggregateArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -8512,12 +8367,10 @@ export type Subscription_RootWormhole_Output_AggregateArgs = { where?: InputMaybe; }; - export type Subscription_RootWormhole_Output_By_PkArgs = { id: Scalars['String']['input']; }; - export type Subscription_RootWormhole_Output_StreamArgs = { batch_size: Scalars['Int']['input']; cursor: Array>; @@ -8581,7 +8434,6 @@ export type Tech_Referendum_Event_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "tech_referendum_event" */ export type Tech_Referendum_Event_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -8943,7 +8795,6 @@ export type Transfer_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "transfer" */ export type Transfer_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -9337,7 +9188,6 @@ export type Unified_Transaction_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "unified_transaction" */ export type Unified_Transaction_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -9535,6 +9385,245 @@ export type Unified_Transaction_Variance_Fields = { fee?: Maybe; }; +/** columns and relationships of "vesting_schedule" */ +export type Vesting_Schedule = { + __typename?: 'vesting_schedule'; + beneficiary: Scalars['String']['output']; + block_height: Scalars['Int']['output']; + claimed: Scalars['numeric']['output']; + cliff: Scalars['numeric']['output']; + end: Scalars['numeric']['output']; + id: Scalars['String']['output']; + last_claim_at?: Maybe; + start: Scalars['numeric']['output']; + total: Scalars['numeric']['output']; +}; + +/** aggregated selection of "vesting_schedule" */ +export type Vesting_Schedule_Aggregate = { + __typename?: 'vesting_schedule_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "vesting_schedule" */ +export type Vesting_Schedule_Aggregate_Fields = { + __typename?: 'vesting_schedule_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + +/** aggregate fields of "vesting_schedule" */ +export type Vesting_Schedule_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type Vesting_Schedule_Avg_Fields = { + __typename?: 'vesting_schedule_avg_fields'; + block_height?: Maybe; + claimed?: Maybe; + cliff?: Maybe; + end?: Maybe; + last_claim_at?: Maybe; + start?: Maybe; + total?: Maybe; +}; + +/** Boolean expression to filter rows from the table "vesting_schedule". All fields are combined with a logical 'AND'. */ +export type Vesting_Schedule_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + beneficiary?: InputMaybe; + block_height?: InputMaybe; + claimed?: InputMaybe; + cliff?: InputMaybe; + end?: InputMaybe; + id?: InputMaybe; + last_claim_at?: InputMaybe; + start?: InputMaybe; + total?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Vesting_Schedule_Max_Fields = { + __typename?: 'vesting_schedule_max_fields'; + beneficiary?: Maybe; + block_height?: Maybe; + claimed?: Maybe; + cliff?: Maybe; + end?: Maybe; + id?: Maybe; + last_claim_at?: Maybe; + start?: Maybe; + total?: Maybe; +}; + +/** aggregate min on columns */ +export type Vesting_Schedule_Min_Fields = { + __typename?: 'vesting_schedule_min_fields'; + beneficiary?: Maybe; + block_height?: Maybe; + claimed?: Maybe; + cliff?: Maybe; + end?: Maybe; + id?: Maybe; + last_claim_at?: Maybe; + start?: Maybe; + total?: Maybe; +}; + +/** Ordering options when selecting data from "vesting_schedule". */ +export type Vesting_Schedule_Order_By = { + beneficiary?: InputMaybe; + block_height?: InputMaybe; + claimed?: InputMaybe; + cliff?: InputMaybe; + end?: InputMaybe; + id?: InputMaybe; + last_claim_at?: InputMaybe; + start?: InputMaybe; + total?: InputMaybe; +}; + +/** select columns of table "vesting_schedule" */ +export enum Vesting_Schedule_Select_Column { + /** column name */ + Beneficiary = 'beneficiary', + /** column name */ + BlockHeight = 'block_height', + /** column name */ + Claimed = 'claimed', + /** column name */ + Cliff = 'cliff', + /** column name */ + End = 'end', + /** column name */ + Id = 'id', + /** column name */ + LastClaimAt = 'last_claim_at', + /** column name */ + Start = 'start', + /** column name */ + Total = 'total' +} + +/** aggregate stddev on columns */ +export type Vesting_Schedule_Stddev_Fields = { + __typename?: 'vesting_schedule_stddev_fields'; + block_height?: Maybe; + claimed?: Maybe; + cliff?: Maybe; + end?: Maybe; + last_claim_at?: Maybe; + start?: Maybe; + total?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Vesting_Schedule_Stddev_Pop_Fields = { + __typename?: 'vesting_schedule_stddev_pop_fields'; + block_height?: Maybe; + claimed?: Maybe; + cliff?: Maybe; + end?: Maybe; + last_claim_at?: Maybe; + start?: Maybe; + total?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Vesting_Schedule_Stddev_Samp_Fields = { + __typename?: 'vesting_schedule_stddev_samp_fields'; + block_height?: Maybe; + claimed?: Maybe; + cliff?: Maybe; + end?: Maybe; + last_claim_at?: Maybe; + start?: Maybe; + total?: Maybe; +}; + +/** Streaming cursor of the table "vesting_schedule" */ +export type Vesting_Schedule_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Vesting_Schedule_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Vesting_Schedule_Stream_Cursor_Value_Input = { + beneficiary?: InputMaybe; + block_height?: InputMaybe; + claimed?: InputMaybe; + cliff?: InputMaybe; + end?: InputMaybe; + id?: InputMaybe; + last_claim_at?: InputMaybe; + start?: InputMaybe; + total?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type Vesting_Schedule_Sum_Fields = { + __typename?: 'vesting_schedule_sum_fields'; + block_height?: Maybe; + claimed?: Maybe; + cliff?: Maybe; + end?: Maybe; + last_claim_at?: Maybe; + start?: Maybe; + total?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Vesting_Schedule_Var_Pop_Fields = { + __typename?: 'vesting_schedule_var_pop_fields'; + block_height?: Maybe; + claimed?: Maybe; + cliff?: Maybe; + end?: Maybe; + last_claim_at?: Maybe; + start?: Maybe; + total?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Vesting_Schedule_Var_Samp_Fields = { + __typename?: 'vesting_schedule_var_samp_fields'; + block_height?: Maybe; + claimed?: Maybe; + cliff?: Maybe; + end?: Maybe; + last_claim_at?: Maybe; + start?: Maybe; + total?: Maybe; +}; + +/** aggregate variance on columns */ +export type Vesting_Schedule_Variance_Fields = { + __typename?: 'vesting_schedule_variance_fields'; + block_height?: Maybe; + claimed?: Maybe; + cliff?: Maybe; + end?: Maybe; + last_claim_at?: Maybe; + start?: Maybe; + total?: Maybe; +}; + /** columns and relationships of "wormhole_extrinsic" */ export type Wormhole_Extrinsic = { __typename?: 'wormhole_extrinsic'; @@ -9560,7 +9649,6 @@ export type Wormhole_Extrinsic = { total_amount: Scalars['numeric']['output']; }; - /** columns and relationships of "wormhole_extrinsic" */ export type Wormhole_ExtrinsicOutputsArgs = { distinct_on?: InputMaybe>; @@ -9570,7 +9658,6 @@ export type Wormhole_ExtrinsicOutputsArgs = { where?: InputMaybe; }; - /** columns and relationships of "wormhole_extrinsic" */ export type Wormhole_ExtrinsicOutputs_AggregateArgs = { distinct_on?: InputMaybe>; @@ -9603,7 +9690,6 @@ export type Wormhole_Extrinsic_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "wormhole_extrinsic" */ export type Wormhole_Extrinsic_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -9856,7 +9942,6 @@ export type Wormhole_Nullifier_Aggregate_Fields = { min?: Maybe; }; - /** aggregate fields of "wormhole_nullifier" */ export type Wormhole_Nullifier_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -9993,7 +10078,6 @@ export type Wormhole_Output_Aggregate_Fields = { variance?: Maybe; }; - /** aggregate fields of "wormhole_output" */ export type Wormhole_Output_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -10194,23 +10278,83 @@ export type GetAccountsQueryVariables = Exact<{ orderBy?: InputMaybe | Account_Order_By>; }>; - -export type GetAccountsQuery = { __typename?: 'query_root', accounts: Array<{ __typename?: 'account', id: string, free: any, frozen: any, reserved: any, is_high_security: boolean, is_guardian: boolean, is_multisig: boolean }>, meta?: { __typename?: 'chain_stats', totalCount: number } | null }; +export type GetAccountsQuery = { + __typename?: 'query_root'; + accounts: Array<{ + __typename?: 'account'; + id: string; + free: any; + frozen: any; + reserved: any; + is_high_security: boolean; + is_guardian: boolean; + is_multisig: boolean; + }>; + meta?: { __typename?: 'chain_stats'; totalCount: number } | null; +}; export type GetAccountByIdQueryVariables = Exact<{ id: Scalars['String']['input']; }>; - -export type GetAccountByIdQuery = { __typename?: 'query_root', account?: { __typename?: 'account', id: string, free: any, frozen: any, reserved: any } | null, accountStats?: { __typename?: 'account_stats', total_cancelled_transfers: number, total_executed_transfers: number, total_immediate_transfers: number, total_mined_blocks: number, total_rewards: any, total_scheduled_transfers: number } | null, multisig?: { __typename?: 'multisig', id: string } | null, guardian: { __typename?: 'high_security_set_aggregate', aggregate?: { __typename?: 'high_security_set_aggregate_fields', totalCount: number } | null }, beneficiaries: { __typename?: 'high_security_set_aggregate', aggregate?: { __typename?: 'high_security_set_aggregate_fields', totalCount: number } | null } }; +export type GetAccountByIdQuery = { + __typename?: 'query_root'; + account?: { + __typename?: 'account'; + id: string; + free: any; + frozen: any; + reserved: any; + } | null; + accountStats?: { + __typename?: 'account_stats'; + total_cancelled_transfers: number; + total_executed_transfers: number; + total_immediate_transfers: number; + total_mined_blocks: number; + total_rewards: any; + total_scheduled_transfers: number; + } | null; + multisig?: { __typename?: 'multisig'; id: string } | null; + guardian: { + __typename?: 'high_security_set_aggregate'; + aggregate?: { + __typename?: 'high_security_set_aggregate_fields'; + totalCount: number; + } | null; + }; + beneficiaries: { + __typename?: 'high_security_set_aggregate'; + aggregate?: { + __typename?: 'high_security_set_aggregate_fields'; + totalCount: number; + } | null; + }; +}; export type GetAccountsStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; }>; - -export type GetAccountsStatsQuery = { __typename?: 'query_root', all?: { __typename?: 'chain_stats', total_accounts: number } | null, recentlyActive: { __typename?: 'daily_active_account_aggregate', aggregate?: { __typename?: 'daily_active_account_aggregate_fields', count: number } | null }, recentlyDeposited: { __typename?: 'daily_active_account_aggregate', aggregate?: { __typename?: 'daily_active_account_aggregate_fields', count: number } | null } }; +export type GetAccountsStatsQuery = { + __typename?: 'query_root'; + all?: { __typename?: 'chain_stats'; total_accounts: number } | null; + recentlyActive: { + __typename?: 'daily_active_account_aggregate'; + aggregate?: { + __typename?: 'daily_active_account_aggregate_fields'; + count: number; + } | null; + }; + recentlyDeposited: { + __typename?: 'daily_active_account_aggregate'; + aggregate?: { + __typename?: 'daily_active_account_aggregate_fields'; + count: number; + } | null; + }; +}; export type GetBlocksQueryVariables = Exact<{ limit?: InputMaybe; @@ -10219,44 +10363,165 @@ export type GetBlocksQueryVariables = Exact<{ where?: InputMaybe; }>; - -export type GetBlocksQuery = { __typename?: 'query_root', blocks: Array<{ __typename?: 'block', id: string, hash: string, height: number, reward: any, timestamp: any, mined_by_id?: string | null, extrinsics: Array<{ __typename?: 'extrinsic', id: string }> }>, meta?: { __typename?: 'chain_stats', totalCount: number } | null }; +export type GetBlocksQuery = { + __typename?: 'query_root'; + blocks: Array<{ + __typename?: 'block'; + id: string; + hash: string; + height: number; + reward: any; + timestamp: any; + mined_by_id?: string | null; + extrinsics: Array<{ __typename?: 'extrinsic'; id: string }>; + }>; + meta?: { __typename?: 'chain_stats'; totalCount: number } | null; +}; export type GetBlockByIdQueryVariables = Exact<{ height: Scalars['Int']['input']; hash: Scalars['String']['input']; }>; - -export type GetBlockByIdQuery = { __typename?: 'query_root', blocks: Array<{ __typename?: 'block', id: string, hash: string, height: number, reward: any, timestamp: any, extrinsics: Array<{ __typename?: 'extrinsic', id: string, pallet: string, call: string, success: boolean, fee: any, timestamp: any, indexInBlock: number, signer?: { __typename?: 'account', id: string } | null }> }>, minerRewards: Array<{ __typename?: 'miner_reward', reward: any, timestamp: any, miner?: { __typename?: 'account', id: string } | null, block?: { __typename?: 'block', height: number, hash: string } | null }>, rewardTransfers: Array<{ __typename?: 'unified_transaction', amount?: any | null, detail_id: string, from?: { __typename?: 'account', id: string } | null, to?: { __typename?: 'account', id: string } | null }> }; +export type GetBlockByIdQuery = { + __typename?: 'query_root'; + blocks: Array<{ + __typename?: 'block'; + id: string; + hash: string; + height: number; + reward: any; + timestamp: any; + extrinsics: Array<{ + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + success: boolean; + fee: any; + timestamp: any; + indexInBlock: number; + signer?: { __typename?: 'account'; id: string } | null; + }>; + }>; + minerRewards: Array<{ + __typename?: 'miner_reward'; + reward: any; + timestamp: any; + miner?: { __typename?: 'account'; id: string } | null; + block?: { __typename?: 'block'; height: number; hash: string } | null; + }>; + rewardTransfers: Array<{ + __typename?: 'unified_transaction'; + amount?: any | null; + detail_id: string; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + }>; +}; export type GetBlockStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; }>; - -export type GetBlockStatsQuery = { __typename?: 'query_root', chain?: { __typename?: 'chain_stats', block_height: number, finalized_block_height: number } | null, minedIn24Hours: { __typename?: 'block_aggregate', aggregate?: { __typename?: 'block_aggregate_fields', totalCount: number } | null } }; +export type GetBlockStatsQuery = { + __typename?: 'query_root'; + chain?: { + __typename?: 'chain_stats'; + block_height: number; + finalized_block_height: number; + } | null; + minedIn24Hours: { + __typename?: 'block_aggregate'; + aggregate?: { + __typename?: 'block_aggregate_fields'; + totalCount: number; + } | null; + }; +}; export type GetCancelledReversibleTransactionByTxIdQueryVariables = Exact<{ tx_id: Scalars['String']['input']; }>; - -export type GetCancelledReversibleTransactionByTxIdQuery = { __typename?: 'query_root', cancelledReversibleTransactions: Array<{ __typename?: 'cancelled_reversible_transfer', timestamp: any, tx_id: string, block?: { __typename?: 'block', height: number } | null, cancelledBy?: { __typename?: 'account', id: string } | null, extrinsic?: { __typename?: 'extrinsic', id: string, pallet: string, call: string } | null, scheduledTransfer?: { __typename?: 'scheduled_reversible_transfer', amount: any, scheduled_at: any, fee: any, from?: { __typename?: 'account', id: string } | null, to?: { __typename?: 'account', id: string } | null } | null }> }; +export type GetCancelledReversibleTransactionByTxIdQuery = { + __typename?: 'query_root'; + cancelledReversibleTransactions: Array<{ + __typename?: 'cancelled_reversible_transfer'; + timestamp: any; + tx_id: string; + block?: { __typename?: 'block'; height: number } | null; + cancelledBy?: { __typename?: 'account'; id: string } | null; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + scheduledTransfer?: { + __typename?: 'scheduled_reversible_transfer'; + amount: any; + scheduled_at: any; + fee: any; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + } | null; + }>; +}; export type GetHomeChainStatsQueryVariables = Exact<{ last24HourWhere: Unified_Transaction_Bool_Exp; dayLimit: Scalars['Int']['input']; }>; - -export type GetHomeChainStatsQuery = { __typename?: 'query_root', status?: { __typename?: 'chain_stats', block_height: number, total_accounts: number, total_deposit_accounts: number, total_immediate_transfers: number, total_scheduled_transfers: number, total_executed_transfers: number, total_cancelled_transfers: number } | null, last24Hour: { __typename?: 'unified_transaction_aggregate', aggregate?: { __typename?: 'unified_transaction_aggregate_fields', count: number } | null }, dailyStats: Array<{ __typename?: 'daily_chain_stats', id: string, date: any, blocks_count: number, tx_count: number, active_accounts: number }> }; - -export type GetStatusQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetStatusQuery = { __typename?: 'query_root', status?: { __typename?: 'chain_stats', block_height: number, total_accounts: number, total_deposit_accounts: number, total_executed_transfers: number, total_immediate_transfers: number, total_scheduled_transfers: number, total_cancelled_transfers: number } | null }; +export type GetHomeChainStatsQuery = { + __typename?: 'query_root'; + status?: { + __typename?: 'chain_stats'; + block_height: number; + total_accounts: number; + total_deposit_accounts: number; + total_immediate_transfers: number; + total_scheduled_transfers: number; + total_executed_transfers: number; + total_cancelled_transfers: number; + circulating_supply: any; + max_supply: any; + total_supply: any; + } | null; + last24Hour: { + __typename?: 'unified_transaction_aggregate'; + aggregate?: { + __typename?: 'unified_transaction_aggregate_fields'; + count: number; + } | null; + }; + dailyStats: Array<{ + __typename?: 'daily_chain_stats'; + id: string; + date: any; + blocks_count: number; + tx_count: number; + active_accounts: number; + }>; +}; + +export type GetStatusQueryVariables = Exact<{ [key: string]: never }>; + +export type GetStatusQuery = { + __typename?: 'query_root'; + status?: { + __typename?: 'chain_stats'; + block_height: number; + total_accounts: number; + total_deposit_accounts: number; + total_executed_transfers: number; + total_immediate_transfers: number; + total_scheduled_transfers: number; + total_cancelled_transfers: number; + } | null; +}; export type GetErrorEventsQueryVariables = Exact<{ limit?: InputMaybe; @@ -10265,78 +10530,229 @@ export type GetErrorEventsQueryVariables = Exact<{ where?: InputMaybe; }>; - -export type GetErrorEventsQuery = { __typename?: 'query_root', errorEvents: Array<{ __typename?: 'error_event', error_docs?: string | null, error_module?: string | null, error_name?: string | null, error_type: string, id: string, timestamp: any, extrinsic?: { __typename?: 'extrinsic', id: string, pallet: string, call: string } | null, block?: { __typename?: 'block', height: number } | null }>, meta: { __typename?: 'error_event_aggregate', aggregate?: { __typename?: 'error_event_aggregate_fields', totalCount: number } | null } }; +export type GetErrorEventsQuery = { + __typename?: 'query_root'; + errorEvents: Array<{ + __typename?: 'error_event'; + error_docs?: string | null; + error_module?: string | null; + error_name?: string | null; + error_type: string; + id: string; + timestamp: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + }>; + meta: { + __typename?: 'error_event_aggregate'; + aggregate?: { + __typename?: 'error_event_aggregate_fields'; + totalCount: number; + } | null; + }; +}; export type GetErrorEventsStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; }>; - -export type GetErrorEventsStatsQuery = { __typename?: 'query_root', last24Hour: { __typename?: 'error_event_aggregate', aggregate?: { __typename?: 'error_event_aggregate_fields', totalCount: number } | null }, allTime?: { __typename?: 'chain_stats', total_error_events: number } | null }; +export type GetErrorEventsStatsQuery = { + __typename?: 'query_root'; + last24Hour: { + __typename?: 'error_event_aggregate'; + aggregate?: { + __typename?: 'error_event_aggregate_fields'; + totalCount: number; + } | null; + }; + allTime?: { __typename?: 'chain_stats'; total_error_events: number } | null; +}; export type GetErrorEventByHashQueryVariables = Exact<{ hash: Scalars['String']['input']; }>; - -export type GetErrorEventByHashQuery = { __typename?: 'query_root', errorEvents: Array<{ __typename?: 'error_event', error_docs?: string | null, error_module?: string | null, error_name?: string | null, error_type: string, id: string, timestamp: any, extrinsic?: { __typename?: 'extrinsic', id: string, pallet: string, call: string } | null, block?: { __typename?: 'block', height: number } | null }> }; +export type GetErrorEventByHashQuery = { + __typename?: 'query_root'; + errorEvents: Array<{ + __typename?: 'error_event'; + error_docs?: string | null; + error_module?: string | null; + error_name?: string | null; + error_type: string; + id: string; + timestamp: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + }>; +}; export type GetExecutedReversibleTransactionByTxIdQueryVariables = Exact<{ tx_id: Scalars['String']['input']; }>; - -export type GetExecutedReversibleTransactionByTxIdQuery = { __typename?: 'query_root', executedReversibleTransactions: Array<{ __typename?: 'executed_reversible_transfer', timestamp: any, tx_id: string, block?: { __typename?: 'block', height: number } | null, scheduledTransfer?: { __typename?: 'scheduled_reversible_transfer', amount: any, scheduled_at: any, fee: any, from?: { __typename?: 'account', id: string } | null, to?: { __typename?: 'account', id: string } | null } | null }> }; +export type GetExecutedReversibleTransactionByTxIdQuery = { + __typename?: 'query_root'; + executedReversibleTransactions: Array<{ + __typename?: 'executed_reversible_transfer'; + timestamp: any; + tx_id: string; + block?: { __typename?: 'block'; height: number } | null; + scheduledTransfer?: { + __typename?: 'scheduled_reversible_transfer'; + amount: any; + scheduled_at: any; + fee: any; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + } | null; + }>; +}; export type GetHighSecuritySetsQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | High_Security_Set_Order_By>; + orderBy?: InputMaybe< + Array | High_Security_Set_Order_By + >; where?: InputMaybe; }>; - -export type GetHighSecuritySetsQuery = { __typename?: 'query_root', highSecuritySets: Array<{ __typename?: 'high_security_set', id: string, timestamp: any, delay: any, extrinsic?: { __typename?: 'extrinsic', id: string, pallet: string, call: string } | null, who?: { __typename?: 'account', id: string } | null, guardian?: { __typename?: 'account', id: string } | null, block?: { __typename?: 'block', height: number } | null }>, meta: { __typename?: 'high_security_set_aggregate', aggregate?: { __typename?: 'high_security_set_aggregate_fields', totalCount: number } | null } }; +export type GetHighSecuritySetsQuery = { + __typename?: 'query_root'; + highSecuritySets: Array<{ + __typename?: 'high_security_set'; + id: string; + timestamp: any; + delay: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + who?: { __typename?: 'account'; id: string } | null; + guardian?: { __typename?: 'account'; id: string } | null; + block?: { __typename?: 'block'; height: number } | null; + }>; + meta: { + __typename?: 'high_security_set_aggregate'; + aggregate?: { + __typename?: 'high_security_set_aggregate_fields'; + totalCount: number; + } | null; + }; +}; export type GetHighSecuritySetsStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; }>; - -export type GetHighSecuritySetsStatsQuery = { __typename?: 'query_root', last24Hour: { __typename?: 'high_security_set_aggregate', aggregate?: { __typename?: 'high_security_set_aggregate_fields', totalCount: number } | null }, allTime?: { __typename?: 'chain_stats', total_high_security_sets: number } | null }; +export type GetHighSecuritySetsStatsQuery = { + __typename?: 'query_root'; + last24Hour: { + __typename?: 'high_security_set_aggregate'; + aggregate?: { + __typename?: 'high_security_set_aggregate_fields'; + totalCount: number; + } | null; + }; + allTime?: { + __typename?: 'chain_stats'; + total_high_security_sets: number; + } | null; +}; export type GetHighSecuritySetByHashQueryVariables = Exact<{ hash: Scalars['String']['input']; }>; - -export type GetHighSecuritySetByHashQuery = { __typename?: 'query_root', highSecuritySets: Array<{ __typename?: 'high_security_set', id: string, timestamp: any, delay: any, extrinsic?: { __typename?: 'extrinsic', id: string, pallet: string, call: string } | null, who?: { __typename?: 'account', id: string } | null, guardian?: { __typename?: 'account', id: string } | null, block?: { __typename?: 'block', height: number } | null }> }; +export type GetHighSecuritySetByHashQuery = { + __typename?: 'query_root'; + highSecuritySets: Array<{ + __typename?: 'high_security_set'; + id: string; + timestamp: any; + delay: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + who?: { __typename?: 'account'; id: string } | null; + guardian?: { __typename?: 'account'; id: string } | null; + block?: { __typename?: 'block'; height: number } | null; + }>; +}; export type GetMinerLeaderboardStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; }>; - -export type GetMinerLeaderboardStatsQuery = { __typename?: 'query_root', chain?: { __typename?: 'chain_stats', block_height: number, total_miners: number } | null, last24Hour: { __typename?: 'miner_reward_aggregate', aggregate?: { __typename?: 'miner_reward_aggregate_fields', totalCount: number } | null } }; +export type GetMinerLeaderboardStatsQuery = { + __typename?: 'query_root'; + chain?: { + __typename?: 'chain_stats'; + block_height: number; + total_miners: number; + } | null; + last24Hour: { + __typename?: 'miner_reward_aggregate'; + aggregate?: { + __typename?: 'miner_reward_aggregate_fields'; + totalCount: number; + } | null; + }; +}; export type GetMinerLeaderboardChartQueryVariables = Exact<{ limit?: InputMaybe; }>; - -export type GetMinerLeaderboardChartQuery = { __typename?: 'query_root', topMiners: Array<{ __typename?: 'account_stats', id: string, total_mined_blocks: number }>, blocks?: { __typename?: 'chain_stats', totalCount: number } | null }; +export type GetMinerLeaderboardChartQuery = { + __typename?: 'query_root'; + topMiners: Array<{ + __typename?: 'account_stats'; + id: string; + total_mined_blocks: number; + }>; + blocks?: { __typename?: 'chain_stats'; totalCount: number } | null; +}; export type GetMinerLeaderboardQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; }>; - -export type GetMinerLeaderboardQuery = { __typename?: 'query_root', leaderboardEntries: Array<{ __typename?: 'account_stats', id: string, total_mined_blocks: number, total_rewards: any }>, meta?: { __typename?: 'chain_stats', block_height: number, totalCount: number } | null, topMiner: Array<{ __typename?: 'account_stats', total_mined_blocks: number }> }; +export type GetMinerLeaderboardQuery = { + __typename?: 'query_root'; + leaderboardEntries: Array<{ + __typename?: 'account_stats'; + id: string; + total_mined_blocks: number; + total_rewards: any; + }>; + meta?: { + __typename?: 'chain_stats'; + block_height: number; + totalCount: number; + } | null; + topMiner: Array<{ __typename?: 'account_stats'; total_mined_blocks: number }>; +}; export type GetMinerRewardsQueryVariables = Exact<{ limit?: InputMaybe; @@ -10345,8 +10761,23 @@ export type GetMinerRewardsQueryVariables = Exact<{ where?: InputMaybe; }>; - -export type GetMinerRewardsQuery = { __typename?: 'query_root', minerRewards: Array<{ __typename?: 'miner_reward', reward: any, timestamp: any, block?: { __typename?: 'block', height: number, hash: string } | null, miner?: { __typename?: 'account', id: string } | null }>, meta: { __typename?: 'miner_reward_aggregate', aggregate?: { __typename?: 'miner_reward_aggregate_fields', totalCount: number } | null } }; +export type GetMinerRewardsQuery = { + __typename?: 'query_root'; + minerRewards: Array<{ + __typename?: 'miner_reward'; + reward: any; + timestamp: any; + block?: { __typename?: 'block'; height: number; hash: string } | null; + miner?: { __typename?: 'account'; id: string } | null; + }>; + meta: { + __typename?: 'miner_reward_aggregate'; + aggregate?: { + __typename?: 'miner_reward_aggregate_fields'; + totalCount: number; + } | null; + }; +}; export type GetMinerRewardsWithChainTotalQueryVariables = Exact<{ limit?: InputMaybe; @@ -10355,8 +10786,17 @@ export type GetMinerRewardsWithChainTotalQueryVariables = Exact<{ where?: InputMaybe; }>; - -export type GetMinerRewardsWithChainTotalQuery = { __typename?: 'query_root', minerRewards: Array<{ __typename?: 'miner_reward', reward: any, timestamp: any, block?: { __typename?: 'block', height: number, hash: string } | null, miner?: { __typename?: 'account', id: string } | null }>, meta?: { __typename?: 'chain_stats', totalCount: number } | null }; +export type GetMinerRewardsWithChainTotalQuery = { + __typename?: 'query_root'; + minerRewards: Array<{ + __typename?: 'miner_reward'; + reward: any; + timestamp: any; + block?: { __typename?: 'block'; height: number; hash: string } | null; + miner?: { __typename?: 'account'; id: string } | null; + }>; + meta?: { __typename?: 'chain_stats'; totalCount: number } | null; +}; export type GetMinerRewardsWithMinerTotalQueryVariables = Exact<{ limit?: InputMaybe; @@ -10366,25 +10806,66 @@ export type GetMinerRewardsWithMinerTotalQueryVariables = Exact<{ minerId: Scalars['String']['input']; }>; - -export type GetMinerRewardsWithMinerTotalQuery = { __typename?: 'query_root', minerRewards: Array<{ __typename?: 'miner_reward', reward: any, timestamp: any, block?: { __typename?: 'block', height: number, hash: string } | null, miner?: { __typename?: 'account', id: string } | null }>, meta?: { __typename?: 'account_stats', totalCount: number } | null }; +export type GetMinerRewardsWithMinerTotalQuery = { + __typename?: 'query_root'; + minerRewards: Array<{ + __typename?: 'miner_reward'; + reward: any; + timestamp: any; + block?: { __typename?: 'block'; height: number; hash: string } | null; + miner?: { __typename?: 'account'; id: string } | null; + }>; + meta?: { __typename?: 'account_stats'; totalCount: number } | null; +}; export type GetMinerRewardsStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; }>; - -export type GetMinerRewardsStatsQuery = { __typename?: 'query_root', last24Hour: { __typename?: 'miner_reward_aggregate', aggregate?: { __typename?: 'miner_reward_aggregate_fields', totalCount: number } | null }, allTime?: { __typename?: 'chain_stats', total_miner_rewards: number } | null }; +export type GetMinerRewardsStatsQuery = { + __typename?: 'query_root'; + last24Hour: { + __typename?: 'miner_reward_aggregate'; + aggregate?: { + __typename?: 'miner_reward_aggregate_fields'; + totalCount: number; + } | null; + }; + allTime?: { __typename?: 'chain_stats'; total_miner_rewards: number } | null; +}; export type GetMinerRewardByHashQueryVariables = Exact<{ hash: Scalars['String']['input']; }>; +export type GetMinerRewardByHashQuery = { + __typename?: 'query_root'; + minerRewards: Array<{ + __typename?: 'miner_reward'; + reward: any; + timestamp: any; + block?: { __typename?: 'block'; height: number; hash: string } | null; + miner?: { __typename?: 'account'; id: string } | null; + }>; +}; -export type GetMinerRewardByHashQuery = { __typename?: 'query_root', minerRewards: Array<{ __typename?: 'miner_reward', reward: any, timestamp: any, block?: { __typename?: 'block', height: number, hash: string } | null, miner?: { __typename?: 'account', id: string } | null }> }; - -export type MultisigCreatedFieldsFragment = { __typename?: 'multisig', id: string, timestamp: any, threshold: number, nonce: any, signers: Array, creator?: { __typename?: 'account', id: string } | null, block?: { __typename?: 'block', height: number } | null, extrinsic?: { __typename?: 'extrinsic', id: string, pallet: string, call: string } | null } & { ' $fragmentName'?: 'MultisigCreatedFieldsFragment' }; +export type MultisigCreatedFieldsFragment = { + __typename?: 'multisig'; + id: string; + timestamp: any; + threshold: number; + nonce: any; + signers: Array; + creator?: { __typename?: 'account'; id: string } | null; + block?: { __typename?: 'block'; height: number } | null; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; +} & { ' $fragmentName'?: 'MultisigCreatedFieldsFragment' }; export type GetMultisigCreatedQueryVariables = Exact<{ limit?: InputMaybe; @@ -10393,330 +10874,867 @@ export type GetMultisigCreatedQueryVariables = Exact<{ where?: InputMaybe; }>; - -export type GetMultisigCreatedQuery = { __typename?: 'query_root', multisigCreatedEvents: Array<( - { __typename?: 'multisig' } - & { ' $fragmentRefs'?: { 'MultisigCreatedFieldsFragment': MultisigCreatedFieldsFragment } } - )>, meta: { __typename?: 'multisig_aggregate', aggregate?: { __typename?: 'multisig_aggregate_fields', totalCount: number } | null } }; +export type GetMultisigCreatedQuery = { + __typename?: 'query_root'; + multisigCreatedEvents: Array< + { __typename?: 'multisig' } & { + ' $fragmentRefs'?: { + MultisigCreatedFieldsFragment: MultisigCreatedFieldsFragment; + }; + } + >; + meta: { + __typename?: 'multisig_aggregate'; + aggregate?: { + __typename?: 'multisig_aggregate_fields'; + totalCount: number; + } | null; + }; +}; export type GetMultisigCreatedStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; }>; - -export type GetMultisigCreatedStatsQuery = { __typename?: 'query_root', last24Hour: { __typename?: 'multisig_aggregate', aggregate?: { __typename?: 'multisig_aggregate_fields', totalCount: number } | null }, allTime?: { __typename?: 'chain_stats', total_multisigs_created: number } | null }; +export type GetMultisigCreatedStatsQuery = { + __typename?: 'query_root'; + last24Hour: { + __typename?: 'multisig_aggregate'; + aggregate?: { + __typename?: 'multisig_aggregate_fields'; + totalCount: number; + } | null; + }; + allTime?: { + __typename?: 'chain_stats'; + total_multisigs_created: number; + } | null; +}; export type GetMultisigCreatedByHashQueryVariables = Exact<{ hash: Scalars['String']['input']; }>; - -export type GetMultisigCreatedByHashQuery = { __typename?: 'query_root', multisigCreatedEvents: Array<( - { __typename?: 'multisig' } - & { ' $fragmentRefs'?: { 'MultisigCreatedFieldsFragment': MultisigCreatedFieldsFragment } } - )> }; +export type GetMultisigCreatedByHashQuery = { + __typename?: 'query_root'; + multisigCreatedEvents: Array< + { __typename?: 'multisig' } & { + ' $fragmentRefs'?: { + MultisigCreatedFieldsFragment: MultisigCreatedFieldsFragment; + }; + } + >; +}; export type GetMultisigByIdQueryVariables = Exact<{ id: Scalars['String']['input']; }>; +export type GetMultisigByIdQuery = { + __typename?: 'query_root'; + multisig?: + | ({ __typename?: 'multisig' } & { + ' $fragmentRefs'?: { + MultisigCreatedFieldsFragment: MultisigCreatedFieldsFragment; + }; + }) + | null; +}; -export type GetMultisigByIdQuery = { __typename?: 'query_root', multisig?: ( - { __typename?: 'multisig' } - & { ' $fragmentRefs'?: { 'MultisigCreatedFieldsFragment': MultisigCreatedFieldsFragment } } - ) | null }; - -export type MultisigDepositsClaimedFieldsFragment = { __typename?: 'multisig_deposits_claimed', id: string, timestamp: any, total_returned: any, proposals_removed: number, claimer?: { __typename?: 'account', id: string } | null, multisig?: { __typename?: 'multisig', id: string } | null, block?: { __typename?: 'block', height: number } | null, extrinsic?: { __typename?: 'extrinsic', id: string, pallet: string, call: string } | null } & { ' $fragmentName'?: 'MultisigDepositsClaimedFieldsFragment' }; +export type MultisigDepositsClaimedFieldsFragment = { + __typename?: 'multisig_deposits_claimed'; + id: string; + timestamp: any; + total_returned: any; + proposals_removed: number; + claimer?: { __typename?: 'account'; id: string } | null; + multisig?: { __typename?: 'multisig'; id: string } | null; + block?: { __typename?: 'block'; height: number } | null; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; +} & { ' $fragmentName'?: 'MultisigDepositsClaimedFieldsFragment' }; export type GetMultisigDepositsClaimedQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | Multisig_Deposits_Claimed_Order_By>; + orderBy?: InputMaybe< + | Array + | Multisig_Deposits_Claimed_Order_By + >; where?: InputMaybe; }>; - -export type GetMultisigDepositsClaimedQuery = { __typename?: 'query_root', multisigDepositsClaimedEvents: Array<( - { __typename?: 'multisig_deposits_claimed' } - & { ' $fragmentRefs'?: { 'MultisigDepositsClaimedFieldsFragment': MultisigDepositsClaimedFieldsFragment } } - )>, meta: { __typename?: 'multisig_deposits_claimed_aggregate', aggregate?: { __typename?: 'multisig_deposits_claimed_aggregate_fields', totalCount: number } | null } }; +export type GetMultisigDepositsClaimedQuery = { + __typename?: 'query_root'; + multisigDepositsClaimedEvents: Array< + { __typename?: 'multisig_deposits_claimed' } & { + ' $fragmentRefs'?: { + MultisigDepositsClaimedFieldsFragment: MultisigDepositsClaimedFieldsFragment; + }; + } + >; + meta: { + __typename?: 'multisig_deposits_claimed_aggregate'; + aggregate?: { + __typename?: 'multisig_deposits_claimed_aggregate_fields'; + totalCount: number; + } | null; + }; +}; export type GetMultisigDepositsClaimedStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; }>; - -export type GetMultisigDepositsClaimedStatsQuery = { __typename?: 'query_root', last24Hour: { __typename?: 'multisig_deposits_claimed_aggregate', aggregate?: { __typename?: 'multisig_deposits_claimed_aggregate_fields', totalCount: number } | null }, allTime?: { __typename?: 'chain_stats', total_multisig_deposits_claimed: number } | null }; +export type GetMultisigDepositsClaimedStatsQuery = { + __typename?: 'query_root'; + last24Hour: { + __typename?: 'multisig_deposits_claimed_aggregate'; + aggregate?: { + __typename?: 'multisig_deposits_claimed_aggregate_fields'; + totalCount: number; + } | null; + }; + allTime?: { + __typename?: 'chain_stats'; + total_multisig_deposits_claimed: number; + } | null; +}; export type GetMultisigDepositsClaimedByHashQueryVariables = Exact<{ hash: Scalars['String']['input']; }>; +export type GetMultisigDepositsClaimedByHashQuery = { + __typename?: 'query_root'; + multisigDepositsClaimedEvents: Array< + { __typename?: 'multisig_deposits_claimed' } & { + ' $fragmentRefs'?: { + MultisigDepositsClaimedFieldsFragment: MultisigDepositsClaimedFieldsFragment; + }; + } + >; +}; -export type GetMultisigDepositsClaimedByHashQuery = { __typename?: 'query_root', multisigDepositsClaimedEvents: Array<( - { __typename?: 'multisig_deposits_claimed' } - & { ' $fragmentRefs'?: { 'MultisigDepositsClaimedFieldsFragment': MultisigDepositsClaimedFieldsFragment } } - )> }; - -export type MultisigProposalCancelledFieldsFragment = { __typename?: 'cancelled_multisig_proposal', id: string, timestamp: any, cancelledBy?: { __typename?: 'account', id: string } | null, proposal?: { __typename?: 'multisig_proposal', id: string, multisig?: { __typename?: 'multisig', id: string } | null, proposer?: { __typename?: 'account', id: string } | null } | null, block?: { __typename?: 'block', height: number } | null, extrinsic?: { __typename?: 'extrinsic', id: string, pallet: string, call: string } | null } & { ' $fragmentName'?: 'MultisigProposalCancelledFieldsFragment' }; +export type MultisigProposalCancelledFieldsFragment = { + __typename?: 'cancelled_multisig_proposal'; + id: string; + timestamp: any; + cancelledBy?: { __typename?: 'account'; id: string } | null; + proposal?: { + __typename?: 'multisig_proposal'; + id: string; + multisig?: { __typename?: 'multisig'; id: string } | null; + proposer?: { __typename?: 'account'; id: string } | null; + } | null; + block?: { __typename?: 'block'; height: number } | null; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; +} & { ' $fragmentName'?: 'MultisigProposalCancelledFieldsFragment' }; export type GetMultisigProposalCancelledQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | Cancelled_Multisig_Proposal_Order_By>; + orderBy?: InputMaybe< + | Array + | Cancelled_Multisig_Proposal_Order_By + >; where?: InputMaybe; }>; - -export type GetMultisigProposalCancelledQuery = { __typename?: 'query_root', multisigProposalCancelledEvents: Array<( - { __typename?: 'cancelled_multisig_proposal' } - & { ' $fragmentRefs'?: { 'MultisigProposalCancelledFieldsFragment': MultisigProposalCancelledFieldsFragment } } - )>, meta: { __typename?: 'cancelled_multisig_proposal_aggregate', aggregate?: { __typename?: 'cancelled_multisig_proposal_aggregate_fields', totalCount: number } | null } }; +export type GetMultisigProposalCancelledQuery = { + __typename?: 'query_root'; + multisigProposalCancelledEvents: Array< + { __typename?: 'cancelled_multisig_proposal' } & { + ' $fragmentRefs'?: { + MultisigProposalCancelledFieldsFragment: MultisigProposalCancelledFieldsFragment; + }; + } + >; + meta: { + __typename?: 'cancelled_multisig_proposal_aggregate'; + aggregate?: { + __typename?: 'cancelled_multisig_proposal_aggregate_fields'; + totalCount: number; + } | null; + }; +}; export type GetMultisigProposalCancelledStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; }>; - -export type GetMultisigProposalCancelledStatsQuery = { __typename?: 'query_root', last24Hour: { __typename?: 'cancelled_multisig_proposal_aggregate', aggregate?: { __typename?: 'cancelled_multisig_proposal_aggregate_fields', totalCount: number } | null }, allTime?: { __typename?: 'chain_stats', total_multisig_proposals_cancelled: number } | null }; +export type GetMultisigProposalCancelledStatsQuery = { + __typename?: 'query_root'; + last24Hour: { + __typename?: 'cancelled_multisig_proposal_aggregate'; + aggregate?: { + __typename?: 'cancelled_multisig_proposal_aggregate_fields'; + totalCount: number; + } | null; + }; + allTime?: { + __typename?: 'chain_stats'; + total_multisig_proposals_cancelled: number; + } | null; +}; export type GetMultisigProposalCancelledByHashQueryVariables = Exact<{ hash: Scalars['String']['input']; }>; +export type GetMultisigProposalCancelledByHashQuery = { + __typename?: 'query_root'; + multisigProposalCancelledEvents: Array< + { __typename?: 'cancelled_multisig_proposal' } & { + ' $fragmentRefs'?: { + MultisigProposalCancelledFieldsFragment: MultisigProposalCancelledFieldsFragment; + }; + } + >; +}; -export type GetMultisigProposalCancelledByHashQuery = { __typename?: 'query_root', multisigProposalCancelledEvents: Array<( - { __typename?: 'cancelled_multisig_proposal' } - & { ' $fragmentRefs'?: { 'MultisigProposalCancelledFieldsFragment': MultisigProposalCancelledFieldsFragment } } - )> }; - -export type MultisigProposalRefFieldsFragment = { __typename?: 'multisig_proposal', id: string, multisig?: { __typename?: 'multisig', id: string } | null, proposer?: { __typename?: 'account', id: string } | null } & { ' $fragmentName'?: 'MultisigProposalRefFieldsFragment' }; +export type MultisigProposalRefFieldsFragment = { + __typename?: 'multisig_proposal'; + id: string; + multisig?: { __typename?: 'multisig'; id: string } | null; + proposer?: { __typename?: 'account'; id: string } | null; +} & { ' $fragmentName'?: 'MultisigProposalRefFieldsFragment' }; -export type MultisigProposalCreatedFieldsFragment = { __typename?: 'multisig_proposal_created', id: string, timestamp: any, proposal?: ( - { __typename?: 'multisig_proposal' } - & { ' $fragmentRefs'?: { 'MultisigProposalRefFieldsFragment': MultisigProposalRefFieldsFragment } } - ) | null, block?: { __typename?: 'block', height: number } | null, extrinsic?: { __typename?: 'extrinsic', id: string, pallet: string, call: string } | null } & { ' $fragmentName'?: 'MultisigProposalCreatedFieldsFragment' }; +export type MultisigProposalCreatedFieldsFragment = { + __typename?: 'multisig_proposal_created'; + id: string; + timestamp: any; + proposal?: + | ({ __typename?: 'multisig_proposal' } & { + ' $fragmentRefs'?: { + MultisigProposalRefFieldsFragment: MultisigProposalRefFieldsFragment; + }; + }) + | null; + block?: { __typename?: 'block'; height: number } | null; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; +} & { ' $fragmentName'?: 'MultisigProposalCreatedFieldsFragment' }; export type GetMultisigProposalCreatedQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | Multisig_Proposal_Created_Order_By>; + orderBy?: InputMaybe< + | Array + | Multisig_Proposal_Created_Order_By + >; where?: InputMaybe; }>; - -export type GetMultisigProposalCreatedQuery = { __typename?: 'query_root', multisigProposalCreatedEvents: Array<( - { __typename?: 'multisig_proposal_created' } - & { ' $fragmentRefs'?: { 'MultisigProposalCreatedFieldsFragment': MultisigProposalCreatedFieldsFragment } } - )>, meta: { __typename?: 'multisig_proposal_created_aggregate', aggregate?: { __typename?: 'multisig_proposal_created_aggregate_fields', totalCount: number } | null } }; +export type GetMultisigProposalCreatedQuery = { + __typename?: 'query_root'; + multisigProposalCreatedEvents: Array< + { __typename?: 'multisig_proposal_created' } & { + ' $fragmentRefs'?: { + MultisigProposalCreatedFieldsFragment: MultisigProposalCreatedFieldsFragment; + }; + } + >; + meta: { + __typename?: 'multisig_proposal_created_aggregate'; + aggregate?: { + __typename?: 'multisig_proposal_created_aggregate_fields'; + totalCount: number; + } | null; + }; +}; export type GetMultisigProposalCreatedStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; }>; - -export type GetMultisigProposalCreatedStatsQuery = { __typename?: 'query_root', last24Hour: { __typename?: 'multisig_proposal_created_aggregate', aggregate?: { __typename?: 'multisig_proposal_created_aggregate_fields', totalCount: number } | null }, allTime?: { __typename?: 'chain_stats', total_multisig_proposals: number } | null }; +export type GetMultisigProposalCreatedStatsQuery = { + __typename?: 'query_root'; + last24Hour: { + __typename?: 'multisig_proposal_created_aggregate'; + aggregate?: { + __typename?: 'multisig_proposal_created_aggregate_fields'; + totalCount: number; + } | null; + }; + allTime?: { + __typename?: 'chain_stats'; + total_multisig_proposals: number; + } | null; +}; export type GetMultisigProposalCreatedByHashQueryVariables = Exact<{ hash: Scalars['String']['input']; }>; +export type GetMultisigProposalCreatedByHashQuery = { + __typename?: 'query_root'; + multisigProposalCreatedEvents: Array< + { __typename?: 'multisig_proposal_created' } & { + ' $fragmentRefs'?: { + MultisigProposalCreatedFieldsFragment: MultisigProposalCreatedFieldsFragment; + }; + } + >; +}; -export type GetMultisigProposalCreatedByHashQuery = { __typename?: 'query_root', multisigProposalCreatedEvents: Array<( - { __typename?: 'multisig_proposal_created' } - & { ' $fragmentRefs'?: { 'MultisigProposalCreatedFieldsFragment': MultisigProposalCreatedFieldsFragment } } - )> }; - -export type MultisigProposalExecutedFieldsFragment = { __typename?: 'executed_multisig_proposal', id: string, timestamp: any, approvers: Array, result: string, proposal?: { __typename?: 'multisig_proposal', id: string, multisig?: { __typename?: 'multisig', id: string } | null, proposer?: { __typename?: 'account', id: string } | null } | null, block?: { __typename?: 'block', height: number } | null, extrinsic?: { __typename?: 'extrinsic', id: string, pallet: string, call: string } | null } & { ' $fragmentName'?: 'MultisigProposalExecutedFieldsFragment' }; +export type MultisigProposalExecutedFieldsFragment = { + __typename?: 'executed_multisig_proposal'; + id: string; + timestamp: any; + approvers: Array; + result: string; + proposal?: { + __typename?: 'multisig_proposal'; + id: string; + multisig?: { __typename?: 'multisig'; id: string } | null; + proposer?: { __typename?: 'account'; id: string } | null; + } | null; + block?: { __typename?: 'block'; height: number } | null; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; +} & { ' $fragmentName'?: 'MultisigProposalExecutedFieldsFragment' }; export type GetMultisigProposalExecutedQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | Executed_Multisig_Proposal_Order_By>; + orderBy?: InputMaybe< + | Array + | Executed_Multisig_Proposal_Order_By + >; where?: InputMaybe; }>; - -export type GetMultisigProposalExecutedQuery = { __typename?: 'query_root', multisigProposalExecutedEvents: Array<( - { __typename?: 'executed_multisig_proposal' } - & { ' $fragmentRefs'?: { 'MultisigProposalExecutedFieldsFragment': MultisigProposalExecutedFieldsFragment } } - )>, meta: { __typename?: 'executed_multisig_proposal_aggregate', aggregate?: { __typename?: 'executed_multisig_proposal_aggregate_fields', totalCount: number } | null } }; +export type GetMultisigProposalExecutedQuery = { + __typename?: 'query_root'; + multisigProposalExecutedEvents: Array< + { __typename?: 'executed_multisig_proposal' } & { + ' $fragmentRefs'?: { + MultisigProposalExecutedFieldsFragment: MultisigProposalExecutedFieldsFragment; + }; + } + >; + meta: { + __typename?: 'executed_multisig_proposal_aggregate'; + aggregate?: { + __typename?: 'executed_multisig_proposal_aggregate_fields'; + totalCount: number; + } | null; + }; +}; export type GetMultisigProposalExecutedStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; }>; - -export type GetMultisigProposalExecutedStatsQuery = { __typename?: 'query_root', last24Hour: { __typename?: 'executed_multisig_proposal_aggregate', aggregate?: { __typename?: 'executed_multisig_proposal_aggregate_fields', totalCount: number } | null }, allTime?: { __typename?: 'chain_stats', total_multisig_proposals_executed: number } | null }; +export type GetMultisigProposalExecutedStatsQuery = { + __typename?: 'query_root'; + last24Hour: { + __typename?: 'executed_multisig_proposal_aggregate'; + aggregate?: { + __typename?: 'executed_multisig_proposal_aggregate_fields'; + totalCount: number; + } | null; + }; + allTime?: { + __typename?: 'chain_stats'; + total_multisig_proposals_executed: number; + } | null; +}; export type GetMultisigProposalExecutedByHashQueryVariables = Exact<{ hash: Scalars['String']['input']; }>; +export type GetMultisigProposalExecutedByHashQuery = { + __typename?: 'query_root'; + multisigProposalExecutedEvents: Array< + { __typename?: 'executed_multisig_proposal' } & { + ' $fragmentRefs'?: { + MultisigProposalExecutedFieldsFragment: MultisigProposalExecutedFieldsFragment; + }; + } + >; +}; -export type GetMultisigProposalExecutedByHashQuery = { __typename?: 'query_root', multisigProposalExecutedEvents: Array<( - { __typename?: 'executed_multisig_proposal' } - & { ' $fragmentRefs'?: { 'MultisigProposalExecutedFieldsFragment': MultisigProposalExecutedFieldsFragment } } - )> }; - -export type MultisigProposalReadyFieldsFragment = { __typename?: 'multisig_proposal_ready', id: string, timestamp: any, approvals_count: number, proposal?: { __typename?: 'multisig_proposal', id: string, multisig?: { __typename?: 'multisig', id: string } | null, proposer?: { __typename?: 'account', id: string } | null } | null, block?: { __typename?: 'block', height: number } | null, extrinsic?: { __typename?: 'extrinsic', id: string, pallet: string, call: string } | null } & { ' $fragmentName'?: 'MultisigProposalReadyFieldsFragment' }; +export type MultisigProposalReadyFieldsFragment = { + __typename?: 'multisig_proposal_ready'; + id: string; + timestamp: any; + approvals_count: number; + proposal?: { + __typename?: 'multisig_proposal'; + id: string; + multisig?: { __typename?: 'multisig'; id: string } | null; + proposer?: { __typename?: 'account'; id: string } | null; + } | null; + block?: { __typename?: 'block'; height: number } | null; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; +} & { ' $fragmentName'?: 'MultisigProposalReadyFieldsFragment' }; export type GetMultisigProposalReadyQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | Multisig_Proposal_Ready_Order_By>; + orderBy?: InputMaybe< + Array | Multisig_Proposal_Ready_Order_By + >; where?: InputMaybe; }>; - -export type GetMultisigProposalReadyQuery = { __typename?: 'query_root', multisigProposalReadyEvents: Array<( - { __typename?: 'multisig_proposal_ready' } - & { ' $fragmentRefs'?: { 'MultisigProposalReadyFieldsFragment': MultisigProposalReadyFieldsFragment } } - )>, meta: { __typename?: 'multisig_proposal_ready_aggregate', aggregate?: { __typename?: 'multisig_proposal_ready_aggregate_fields', totalCount: number } | null } }; +export type GetMultisigProposalReadyQuery = { + __typename?: 'query_root'; + multisigProposalReadyEvents: Array< + { __typename?: 'multisig_proposal_ready' } & { + ' $fragmentRefs'?: { + MultisigProposalReadyFieldsFragment: MultisigProposalReadyFieldsFragment; + }; + } + >; + meta: { + __typename?: 'multisig_proposal_ready_aggregate'; + aggregate?: { + __typename?: 'multisig_proposal_ready_aggregate_fields'; + totalCount: number; + } | null; + }; +}; export type GetMultisigProposalReadyStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; }>; - -export type GetMultisigProposalReadyStatsQuery = { __typename?: 'query_root', last24Hour: { __typename?: 'multisig_proposal_ready_aggregate', aggregate?: { __typename?: 'multisig_proposal_ready_aggregate_fields', totalCount: number } | null }, allTime?: { __typename?: 'chain_stats', total_multisig_proposal_ready: number } | null }; +export type GetMultisigProposalReadyStatsQuery = { + __typename?: 'query_root'; + last24Hour: { + __typename?: 'multisig_proposal_ready_aggregate'; + aggregate?: { + __typename?: 'multisig_proposal_ready_aggregate_fields'; + totalCount: number; + } | null; + }; + allTime?: { + __typename?: 'chain_stats'; + total_multisig_proposal_ready: number; + } | null; +}; export type GetMultisigProposalReadyByHashQueryVariables = Exact<{ hash: Scalars['String']['input']; }>; +export type GetMultisigProposalReadyByHashQuery = { + __typename?: 'query_root'; + multisigProposalReadyEvents: Array< + { __typename?: 'multisig_proposal_ready' } & { + ' $fragmentRefs'?: { + MultisigProposalReadyFieldsFragment: MultisigProposalReadyFieldsFragment; + }; + } + >; +}; -export type GetMultisigProposalReadyByHashQuery = { __typename?: 'query_root', multisigProposalReadyEvents: Array<( - { __typename?: 'multisig_proposal_ready' } - & { ' $fragmentRefs'?: { 'MultisigProposalReadyFieldsFragment': MultisigProposalReadyFieldsFragment } } - )> }; - -export type MultisigProposalRemovedFieldsFragment = { __typename?: 'removed_multisig_proposal', id: string, timestamp: any, removedBy?: { __typename?: 'account', id: string } | null, proposal?: { __typename?: 'multisig_proposal', id: string, multisig?: { __typename?: 'multisig', id: string } | null, proposer?: { __typename?: 'account', id: string } | null } | null, block?: { __typename?: 'block', height: number } | null, extrinsic?: { __typename?: 'extrinsic', id: string, pallet: string, call: string } | null } & { ' $fragmentName'?: 'MultisigProposalRemovedFieldsFragment' }; +export type MultisigProposalRemovedFieldsFragment = { + __typename?: 'removed_multisig_proposal'; + id: string; + timestamp: any; + removedBy?: { __typename?: 'account'; id: string } | null; + proposal?: { + __typename?: 'multisig_proposal'; + id: string; + multisig?: { __typename?: 'multisig'; id: string } | null; + proposer?: { __typename?: 'account'; id: string } | null; + } | null; + block?: { __typename?: 'block'; height: number } | null; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; +} & { ' $fragmentName'?: 'MultisigProposalRemovedFieldsFragment' }; export type GetMultisigProposalRemovedQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | Removed_Multisig_Proposal_Order_By>; + orderBy?: InputMaybe< + | Array + | Removed_Multisig_Proposal_Order_By + >; where?: InputMaybe; }>; - -export type GetMultisigProposalRemovedQuery = { __typename?: 'query_root', multisigProposalRemovedEvents: Array<( - { __typename?: 'removed_multisig_proposal' } - & { ' $fragmentRefs'?: { 'MultisigProposalRemovedFieldsFragment': MultisigProposalRemovedFieldsFragment } } - )>, meta: { __typename?: 'removed_multisig_proposal_aggregate', aggregate?: { __typename?: 'removed_multisig_proposal_aggregate_fields', totalCount: number } | null } }; +export type GetMultisigProposalRemovedQuery = { + __typename?: 'query_root'; + multisigProposalRemovedEvents: Array< + { __typename?: 'removed_multisig_proposal' } & { + ' $fragmentRefs'?: { + MultisigProposalRemovedFieldsFragment: MultisigProposalRemovedFieldsFragment; + }; + } + >; + meta: { + __typename?: 'removed_multisig_proposal_aggregate'; + aggregate?: { + __typename?: 'removed_multisig_proposal_aggregate_fields'; + totalCount: number; + } | null; + }; +}; export type GetMultisigProposalRemovedStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; }>; - -export type GetMultisigProposalRemovedStatsQuery = { __typename?: 'query_root', last24Hour: { __typename?: 'removed_multisig_proposal_aggregate', aggregate?: { __typename?: 'removed_multisig_proposal_aggregate_fields', totalCount: number } | null }, allTime?: { __typename?: 'chain_stats', total_multisig_proposals_removed: number } | null }; +export type GetMultisigProposalRemovedStatsQuery = { + __typename?: 'query_root'; + last24Hour: { + __typename?: 'removed_multisig_proposal_aggregate'; + aggregate?: { + __typename?: 'removed_multisig_proposal_aggregate_fields'; + totalCount: number; + } | null; + }; + allTime?: { + __typename?: 'chain_stats'; + total_multisig_proposals_removed: number; + } | null; +}; export type GetMultisigProposalRemovedByHashQueryVariables = Exact<{ hash: Scalars['String']['input']; }>; +export type GetMultisigProposalRemovedByHashQuery = { + __typename?: 'query_root'; + multisigProposalRemovedEvents: Array< + { __typename?: 'removed_multisig_proposal' } & { + ' $fragmentRefs'?: { + MultisigProposalRemovedFieldsFragment: MultisigProposalRemovedFieldsFragment; + }; + } + >; +}; -export type GetMultisigProposalRemovedByHashQuery = { __typename?: 'query_root', multisigProposalRemovedEvents: Array<( - { __typename?: 'removed_multisig_proposal' } - & { ' $fragmentRefs'?: { 'MultisigProposalRemovedFieldsFragment': MultisigProposalRemovedFieldsFragment } } - )> }; - -export type MultisigProposalListFieldsFragment = { __typename?: 'multisig_proposal', id: string, status: string, deposit: any, expiry_block: number, approvals: Array, created_at: any, multisig?: { __typename?: 'multisig', id: string } | null, proposer?: { __typename?: 'account', id: string } | null } & { ' $fragmentName'?: 'MultisigProposalListFieldsFragment' }; - -export type MultisigProposalDetailFieldsFragment = { __typename?: 'multisig_proposal', id: string, status: string, deposit: any, expiry_block: number, approvals: Array, pallet: string, call: string, call_raw: string, decode_error?: string | null, created_at: any, tx_id?: string | null, transfer_amount?: any | null, schedule_amount?: any | null, delay_kind?: string | null, delay_value?: any | null, schedule_asset_id?: number | null, multisig?: { __typename?: 'multisig', id: string } | null, proposer?: { __typename?: 'account', id: string } | null, guardian?: { __typename?: 'account', id: string } | null, transferTo?: { __typename?: 'account', id: string } | null, scheduleTo?: { __typename?: 'account', id: string } | null, recoverAccount?: { __typename?: 'account', id: string } | null, createdExtrinsic?: { __typename?: 'extrinsic', id: string, pallet: string, call: string } | null, createdAtBlock?: { __typename?: 'block', height: number } | null } & { ' $fragmentName'?: 'MultisigProposalDetailFieldsFragment' }; - -export type MultisigProposalLifecycleEventFieldsFragment = { __typename?: 'multisig_proposal_created', id: string, timestamp: any, extrinsic?: { __typename?: 'extrinsic', id: string } | null, block?: { __typename?: 'block', height: number } | null } & { ' $fragmentName'?: 'MultisigProposalLifecycleEventFieldsFragment' }; +export type MultisigProposalListFieldsFragment = { + __typename?: 'multisig_proposal'; + id: string; + status: string; + deposit: any; + expiry_block: number; + approvals: Array; + created_at: any; + multisig?: { __typename?: 'multisig'; id: string } | null; + proposer?: { __typename?: 'account'; id: string } | null; +} & { ' $fragmentName'?: 'MultisigProposalListFieldsFragment' }; + +export type MultisigProposalDetailFieldsFragment = { + __typename?: 'multisig_proposal'; + id: string; + status: string; + deposit: any; + expiry_block: number; + approvals: Array; + pallet: string; + call: string; + call_raw: string; + decode_error?: string | null; + created_at: any; + tx_id?: string | null; + transfer_amount?: any | null; + schedule_amount?: any | null; + delay_kind?: string | null; + delay_value?: any | null; + schedule_asset_id?: number | null; + multisig?: { __typename?: 'multisig'; id: string } | null; + proposer?: { __typename?: 'account'; id: string } | null; + guardian?: { __typename?: 'account'; id: string } | null; + transferTo?: { __typename?: 'account'; id: string } | null; + scheduleTo?: { __typename?: 'account'; id: string } | null; + recoverAccount?: { __typename?: 'account'; id: string } | null; + createdExtrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + createdAtBlock?: { __typename?: 'block'; height: number } | null; +} & { ' $fragmentName'?: 'MultisigProposalDetailFieldsFragment' }; + +export type MultisigProposalLifecycleEventFieldsFragment = { + __typename?: 'multisig_proposal_created'; + id: string; + timestamp: any; + extrinsic?: { __typename?: 'extrinsic'; id: string } | null; + block?: { __typename?: 'block'; height: number } | null; +} & { ' $fragmentName'?: 'MultisigProposalLifecycleEventFieldsFragment' }; export type GetMultisigProposalsQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | Multisig_Proposal_Order_By>; + orderBy?: InputMaybe< + Array | Multisig_Proposal_Order_By + >; where?: InputMaybe; }>; - -export type GetMultisigProposalsQuery = { __typename?: 'query_root', multisigProposals: Array<( - { __typename?: 'multisig_proposal' } - & { ' $fragmentRefs'?: { 'MultisigProposalListFieldsFragment': MultisigProposalListFieldsFragment } } - )>, meta: { __typename?: 'multisig_proposal_aggregate', aggregate?: { __typename?: 'multisig_proposal_aggregate_fields', totalCount: number } | null } }; +export type GetMultisigProposalsQuery = { + __typename?: 'query_root'; + multisigProposals: Array< + { __typename?: 'multisig_proposal' } & { + ' $fragmentRefs'?: { + MultisigProposalListFieldsFragment: MultisigProposalListFieldsFragment; + }; + } + >; + meta: { + __typename?: 'multisig_proposal_aggregate'; + aggregate?: { + __typename?: 'multisig_proposal_aggregate_fields'; + totalCount: number; + } | null; + }; +}; export type GetMultisigProposalStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; }>; - -export type GetMultisigProposalStatsQuery = { __typename?: 'query_root', last24Hour: { __typename?: 'multisig_proposal_aggregate', aggregate?: { __typename?: 'multisig_proposal_aggregate_fields', totalCount: number } | null }, allTime?: { __typename?: 'chain_stats', total_multisig_proposals: number } | null }; +export type GetMultisigProposalStatsQuery = { + __typename?: 'query_root'; + last24Hour: { + __typename?: 'multisig_proposal_aggregate'; + aggregate?: { + __typename?: 'multisig_proposal_aggregate_fields'; + totalCount: number; + } | null; + }; + allTime?: { + __typename?: 'chain_stats'; + total_multisig_proposals: number; + } | null; +}; export type GetMultisigProposalByIdQueryVariables = Exact<{ id: Scalars['String']['input']; }>; - -export type GetMultisigProposalByIdQuery = { __typename?: 'query_root', multisigProposal?: ( - { __typename?: 'multisig_proposal' } - & { ' $fragmentRefs'?: { 'MultisigProposalDetailFieldsFragment': MultisigProposalDetailFieldsFragment } } - ) | null, createdEvents: Array<( - { __typename?: 'multisig_proposal_created' } - & { ' $fragmentRefs'?: { 'MultisigProposalLifecycleEventFieldsFragment': MultisigProposalLifecycleEventFieldsFragment } } - )>, signerApprovedEvents: Array<{ __typename?: 'multisig_signer_approved', id: string, timestamp: any, extrinsic?: { __typename?: 'extrinsic', id: string } | null, block?: { __typename?: 'block', height: number } | null }>, readyEvents: Array<{ __typename?: 'multisig_proposal_ready', id: string, timestamp: any, extrinsic?: { __typename?: 'extrinsic', id: string } | null, block?: { __typename?: 'block', height: number } | null }>, executedEvents: Array<{ __typename?: 'executed_multisig_proposal', id: string, timestamp: any, extrinsic?: { __typename?: 'extrinsic', id: string } | null, block?: { __typename?: 'block', height: number } | null }>, cancelledEvents: Array<{ __typename?: 'cancelled_multisig_proposal', id: string, timestamp: any, extrinsic?: { __typename?: 'extrinsic', id: string } | null, block?: { __typename?: 'block', height: number } | null }>, removedEvents: Array<{ __typename?: 'removed_multisig_proposal', id: string, timestamp: any, extrinsic?: { __typename?: 'extrinsic', id: string } | null, block?: { __typename?: 'block', height: number } | null }> }; - -export type MultisigSignerApprovedFieldsFragment = { __typename?: 'multisig_signer_approved', id: string, timestamp: any, approvals_count: number, approver?: { __typename?: 'account', id: string } | null, proposal?: { __typename?: 'multisig_proposal', id: string, multisig?: { __typename?: 'multisig', id: string } | null, proposer?: { __typename?: 'account', id: string } | null } | null, block?: { __typename?: 'block', height: number } | null, extrinsic?: { __typename?: 'extrinsic', id: string, pallet: string, call: string } | null } & { ' $fragmentName'?: 'MultisigSignerApprovedFieldsFragment' }; +export type GetMultisigProposalByIdQuery = { + __typename?: 'query_root'; + multisigProposal?: + | ({ __typename?: 'multisig_proposal' } & { + ' $fragmentRefs'?: { + MultisigProposalDetailFieldsFragment: MultisigProposalDetailFieldsFragment; + }; + }) + | null; + createdEvents: Array< + { __typename?: 'multisig_proposal_created' } & { + ' $fragmentRefs'?: { + MultisigProposalLifecycleEventFieldsFragment: MultisigProposalLifecycleEventFieldsFragment; + }; + } + >; + signerApprovedEvents: Array<{ + __typename?: 'multisig_signer_approved'; + id: string; + timestamp: any; + extrinsic?: { __typename?: 'extrinsic'; id: string } | null; + block?: { __typename?: 'block'; height: number } | null; + }>; + readyEvents: Array<{ + __typename?: 'multisig_proposal_ready'; + id: string; + timestamp: any; + extrinsic?: { __typename?: 'extrinsic'; id: string } | null; + block?: { __typename?: 'block'; height: number } | null; + }>; + executedEvents: Array<{ + __typename?: 'executed_multisig_proposal'; + id: string; + timestamp: any; + extrinsic?: { __typename?: 'extrinsic'; id: string } | null; + block?: { __typename?: 'block'; height: number } | null; + }>; + cancelledEvents: Array<{ + __typename?: 'cancelled_multisig_proposal'; + id: string; + timestamp: any; + extrinsic?: { __typename?: 'extrinsic'; id: string } | null; + block?: { __typename?: 'block'; height: number } | null; + }>; + removedEvents: Array<{ + __typename?: 'removed_multisig_proposal'; + id: string; + timestamp: any; + extrinsic?: { __typename?: 'extrinsic'; id: string } | null; + block?: { __typename?: 'block'; height: number } | null; + }>; +}; + +export type MultisigSignerApprovedFieldsFragment = { + __typename?: 'multisig_signer_approved'; + id: string; + timestamp: any; + approvals_count: number; + approver?: { __typename?: 'account'; id: string } | null; + proposal?: { + __typename?: 'multisig_proposal'; + id: string; + multisig?: { __typename?: 'multisig'; id: string } | null; + proposer?: { __typename?: 'account'; id: string } | null; + } | null; + block?: { __typename?: 'block'; height: number } | null; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; +} & { ' $fragmentName'?: 'MultisigSignerApprovedFieldsFragment' }; export type GetMultisigSignerApprovedQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | Multisig_Signer_Approved_Order_By>; + orderBy?: InputMaybe< + Array | Multisig_Signer_Approved_Order_By + >; where?: InputMaybe; }>; - -export type GetMultisigSignerApprovedQuery = { __typename?: 'query_root', multisigSignerApprovedEvents: Array<( - { __typename?: 'multisig_signer_approved' } - & { ' $fragmentRefs'?: { 'MultisigSignerApprovedFieldsFragment': MultisigSignerApprovedFieldsFragment } } - )>, meta: { __typename?: 'multisig_signer_approved_aggregate', aggregate?: { __typename?: 'multisig_signer_approved_aggregate_fields', totalCount: number } | null } }; +export type GetMultisigSignerApprovedQuery = { + __typename?: 'query_root'; + multisigSignerApprovedEvents: Array< + { __typename?: 'multisig_signer_approved' } & { + ' $fragmentRefs'?: { + MultisigSignerApprovedFieldsFragment: MultisigSignerApprovedFieldsFragment; + }; + } + >; + meta: { + __typename?: 'multisig_signer_approved_aggregate'; + aggregate?: { + __typename?: 'multisig_signer_approved_aggregate_fields'; + totalCount: number; + } | null; + }; +}; export type GetMultisigSignerApprovedStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; }>; - -export type GetMultisigSignerApprovedStatsQuery = { __typename?: 'query_root', last24Hour: { __typename?: 'multisig_signer_approved_aggregate', aggregate?: { __typename?: 'multisig_signer_approved_aggregate_fields', totalCount: number } | null }, allTime?: { __typename?: 'chain_stats', total_multisig_signer_approved: number } | null }; +export type GetMultisigSignerApprovedStatsQuery = { + __typename?: 'query_root'; + last24Hour: { + __typename?: 'multisig_signer_approved_aggregate'; + aggregate?: { + __typename?: 'multisig_signer_approved_aggregate_fields'; + totalCount: number; + } | null; + }; + allTime?: { + __typename?: 'chain_stats'; + total_multisig_signer_approved: number; + } | null; +}; export type GetMultisigSignerApprovedByHashQueryVariables = Exact<{ hash: Scalars['String']['input']; }>; - -export type GetMultisigSignerApprovedByHashQuery = { __typename?: 'query_root', multisigSignerApprovedEvents: Array<( - { __typename?: 'multisig_signer_approved' } - & { ' $fragmentRefs'?: { 'MultisigSignerApprovedFieldsFragment': MultisigSignerApprovedFieldsFragment } } - )> }; +export type GetMultisigSignerApprovedByHashQuery = { + __typename?: 'query_root'; + multisigSignerApprovedEvents: Array< + { __typename?: 'multisig_signer_approved' } & { + ' $fragmentRefs'?: { + MultisigSignerApprovedFieldsFragment: MultisigSignerApprovedFieldsFragment; + }; + } + >; +}; export type GetScheduledReversibleTransactionByTxIdQueryVariables = Exact<{ tx_id: Scalars['String']['input']; }>; - -export type GetScheduledReversibleTransactionByTxIdQuery = { __typename?: 'query_root', scheduledReversibleTransactions: Array<{ __typename?: 'scheduled_reversible_transfer', amount: any, timestamp: any, scheduled_at: any, tx_id: string, fee: any, extrinsic?: { __typename?: 'extrinsic', id: string, pallet: string, call: string } | null, block?: { __typename?: 'block', height: number } | null, from?: { __typename?: 'account', id: string } | null, to?: { __typename?: 'account', id: string } | null }> }; +export type GetScheduledReversibleTransactionByTxIdQuery = { + __typename?: 'query_root'; + scheduledReversibleTransactions: Array<{ + __typename?: 'scheduled_reversible_transfer'; + amount: any; + timestamp: any; + scheduled_at: any; + tx_id: string; + fee: any; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { __typename?: 'block'; height: number } | null; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + }>; +}; export type SearchHexQueryVariables = Exact<{ keyword?: InputMaybe; limit?: InputMaybe; }>; - -export type SearchHexQuery = { __typename?: 'query_root', transactions: Array<{ __typename?: 'unified_transaction', id: string, type: string, hash?: string | null, detail_id: string, block?: { __typename?: 'block', height: number, hash: string } | null }>, blocks: Array<{ __typename?: 'block', height: number }>, highSecuritySets: Array<{ __typename?: 'high_security_set', extrinsic?: { __typename?: 'extrinsic', id: string, pallet: string, call: string } | null }> }; +export type SearchHexQuery = { + __typename?: 'query_root'; + transactions: Array<{ + __typename?: 'unified_transaction'; + id: string; + type: string; + hash?: string | null; + detail_id: string; + block?: { __typename?: 'block'; height: number; hash: string } | null; + }>; + blocks: Array<{ __typename?: 'block'; height: number }>; + highSecuritySets: Array<{ + __typename?: 'high_security_set'; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + }>; +}; export type SearchNumericQueryVariables = Exact<{ keyword?: InputMaybe; @@ -10724,30 +11742,362 @@ export type SearchNumericQueryVariables = Exact<{ limit?: InputMaybe; }>; - -export type SearchNumericQuery = { __typename?: 'query_root', transactions: Array<{ __typename?: 'unified_transaction', id: string, type: string, hash?: string | null, detail_id: string, block?: { __typename?: 'block', height: number, hash: string } | null }>, blocks: Array<{ __typename?: 'block', height: number }> }; +export type SearchNumericQuery = { + __typename?: 'query_root'; + transactions: Array<{ + __typename?: 'unified_transaction'; + id: string; + type: string; + hash?: string | null; + detail_id: string; + block?: { __typename?: 'block'; height: number; hash: string } | null; + }>; + blocks: Array<{ __typename?: 'block'; height: number }>; +}; export type SearchTextQueryVariables = Exact<{ keyword?: InputMaybe; limit?: InputMaybe; }>; - -export type SearchTextQuery = { __typename?: 'query_root', accounts: Array<{ __typename?: 'account', id: string }>, errorEvents: Array<{ __typename?: 'error_event', extrinsic?: { __typename?: 'extrinsic', id: string, pallet: string, call: string } | null }> }; +export type SearchTextQuery = { + __typename?: 'query_root'; + accounts: Array<{ __typename?: 'account'; id: string }>; + errorEvents: Array<{ + __typename?: 'error_event'; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + }>; +}; export type GetExtrinsicByHashQueryVariables = Exact<{ hash: Scalars['String']['input']; }>; - -export type GetExtrinsicByHashQuery = { __typename?: 'query_root', extrinsics: Array<{ __typename?: 'extrinsic', id: string, pallet: string, call: string, success: boolean, fee: any, timestamp: any, index_in_block: number, signer?: { __typename?: 'account', id: string } | null, block?: { __typename?: 'block', height: number } | null }>, transfersByExtrinsic: Array<{ __typename?: 'transfer', id: string, amount: any, timestamp: any, from?: { __typename?: 'account', id: string } | null, to?: { __typename?: 'account', id: string } | null, block?: { __typename?: 'block', height: number } | null, extrinsic?: { __typename?: 'extrinsic', id: string, pallet: string, call: string, success: boolean, fee: any, timestamp: any, index_in_block: number, signer?: { __typename?: 'account', id: string } | null, block?: { __typename?: 'block', height: number } | null } | null }>, transfersById: Array<{ __typename?: 'transfer', id: string, amount: any, timestamp: any, from?: { __typename?: 'account', id: string } | null, to?: { __typename?: 'account', id: string } | null, block?: { __typename?: 'block', height: number } | null, extrinsic?: { __typename?: 'extrinsic', id: string, pallet: string, call: string, success: boolean, fee: any, timestamp: any, index_in_block: number, signer?: { __typename?: 'account', id: string } | null, block?: { __typename?: 'block', height: number } | null } | null }> }; +export type GetExtrinsicByHashQuery = { + __typename?: 'query_root'; + extrinsics: Array<{ + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + success: boolean; + fee: any; + timestamp: any; + index_in_block: number; + signer?: { __typename?: 'account'; id: string } | null; + block?: { __typename?: 'block'; height: number } | null; + }>; + transfersByExtrinsic: Array<{ + __typename?: 'transfer'; + id: string; + amount: any; + timestamp: any; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + block?: { __typename?: 'block'; height: number } | null; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + success: boolean; + fee: any; + timestamp: any; + index_in_block: number; + signer?: { __typename?: 'account'; id: string } | null; + block?: { __typename?: 'block'; height: number } | null; + } | null; + }>; + transfersById: Array<{ + __typename?: 'transfer'; + id: string; + amount: any; + timestamp: any; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + block?: { __typename?: 'block'; height: number } | null; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + success: boolean; + fee: any; + timestamp: any; + index_in_block: number; + signer?: { __typename?: 'account'; id: string } | null; + block?: { __typename?: 'block'; height: number } | null; + } | null; + }>; +}; export type GetWormholeExtrinsicByIdQueryVariables = Exact<{ id: Scalars['String']['input']; }>; +export type GetWormholeExtrinsicByIdQuery = { + __typename?: 'query_root'; + wormholeExtrinsicById?: { + __typename?: 'wormhole_extrinsic'; + id: string; + total_amount: any; + output_count: number; + timestamp: any; + privacy_score: any; + privacy_score01_pct: any; + privacy_score1_pct: any; + privacy_score5_pct: any; + privacy_label: string; + pool_snapshot: string; + extrinsic?: { + __typename?: 'extrinsic'; + id: string; + pallet: string; + call: string; + } | null; + block?: { + __typename?: 'block'; + id: string; + height: number; + hash: string; + timestamp: any; + } | null; + outputs: Array<{ + __typename?: 'wormhole_output'; + id: string; + amount: any; + exitAccount?: { __typename?: 'account'; id: string } | null; + }>; + } | null; + wormholeNullifiers: Array<{ + __typename?: 'wormhole_nullifier'; + nullifier: string; + nullifier_hash: string; + }>; +}; + +export type BusyAccountsQueryVariables = Exact<{ + limit: Scalars['Int']['input']; +}>; + +export type BusyAccountsQuery = { + __typename?: 'query_root'; + account_stats: Array<{ + __typename?: 'account_stats'; + id: string; + total_immediate_transfers: number; + total_mined_blocks: number; + }>; +}; + +export type MinerAccountQueryVariables = Exact<{ [key: string]: never }>; + +export type MinerAccountQuery = { + __typename?: 'query_root'; + account_stats: Array<{ + __typename?: 'account_stats'; + id: string; + total_mined_blocks: number; + }>; +}; + +export type DiscoveryIdsQueryVariables = Exact<{ + limit: Scalars['Int']['input']; +}>; + +export type DiscoveryIdsQuery = { + __typename?: 'query_root'; + account: Array<{ __typename?: 'account'; id: string }>; +}; + +export type HistoryCursorQueryVariables = Exact<{ + accounts: Array | Scalars['String']['input']; + limit: Scalars['Int']['input']; +}>; + +export type HistoryCursorQuery = { + __typename?: 'query_root'; + account_event: Array<{ + __typename?: 'account_event'; + id: string; + timestamp: any; + }>; +}; + +export type HistoryDeepCursorQueryVariables = Exact<{ + accounts: Array | Scalars['String']['input']; +}>; + +export type HistoryDeepCursorQuery = { + __typename?: 'query_root'; + account_event: Array<{ + __typename?: 'account_event'; + id: string; + timestamp: any; + }>; +}; + +export type MinerHistoryCursorQueryVariables = Exact<{ + accounts: Array | Scalars['String']['input']; + limit: Scalars['Int']['input']; +}>; + +export type MinerHistoryCursorQuery = { + __typename?: 'query_root'; + account_event: Array<{ + __typename?: 'account_event'; + id: string; + timestamp: any; + }>; +}; + +export type SampleTransferQueryVariables = Exact<{ [key: string]: never }>; + +export type SampleTransferQuery = { + __typename?: 'query_root'; + transfer: Array<{ + __typename?: 'transfer'; + from_id?: string | null; + to_id?: string | null; + amount: any; + block_height: number; + extrinsic?: { __typename?: 'extrinsic'; id: string } | null; + }>; +}; + +export type SampleScheduledQueryVariables = Exact<{ [key: string]: never }>; + +export type SampleScheduledQuery = { + __typename?: 'query_root'; + scheduled_reversible_transfer: Array<{ + __typename?: 'scheduled_reversible_transfer'; + amount: any; + from?: { __typename?: 'account'; id: string } | null; + to?: { __typename?: 'account'; id: string } | null; + block?: { __typename?: 'block'; height: number } | null; + extrinsic?: { __typename?: 'extrinsic'; id: string } | null; + }>; +}; + +export type SampleExecutedQueryVariables = Exact<{ [key: string]: never }>; + +export type SampleExecutedQuery = { + __typename?: 'query_root'; + executed_reversible_transfer: Array<{ + __typename?: 'executed_reversible_transfer'; + tx_id: string; + }>; +}; + +export type SampleWormholeRecipientQueryVariables = Exact<{ + [key: string]: never; +}>; + +export type SampleWormholeRecipientQuery = { + __typename?: 'query_root'; + transfer: Array<{ __typename?: 'transfer'; to_id?: string | null }>; +}; + +export type WormholeCursorQueryVariables = Exact<{ + tos: Array | Scalars['String']['input']; + limit: Scalars['Int']['input']; +}>; + +export type WormholeCursorQuery = { + __typename?: 'query_root'; + transfer: Array<{ + __typename?: 'transfer'; + id: string; + block_height: number; + }>; +}; + +export type SampleNullifiersQueryVariables = Exact<{ + limit: Scalars['Int']['input']; +}>; + +export type SampleNullifiersQuery = { + __typename?: 'query_root'; + wormhole_nullifier: Array<{ + __typename?: 'wormhole_nullifier'; + nullifier_hash: string; + }>; +}; + +export type SampleMultisigQueryVariables = Exact<{ [key: string]: never }>; + +export type SampleMultisigQuery = { + __typename?: 'query_root'; + multisig: Array<{ + __typename?: 'multisig'; + id: string; + signers: Array; + }>; +}; + +export type SampleProposalQueryVariables = Exact<{ [key: string]: never }>; + +export type SampleProposalQuery = { + __typename?: 'query_root'; + multisig_proposal: Array<{ + __typename?: 'multisig_proposal'; + proposal_id: number; + multisig_id?: string | null; + }>; +}; + +export type SampleProposalCreatedQueryVariables = Exact<{ + [key: string]: never; +}>; + +export type SampleProposalCreatedQuery = { + __typename?: 'query_root'; + multisig_proposal_created: Array<{ + __typename?: 'multisig_proposal_created'; + extrinsic?: { __typename?: 'extrinsic'; id: string } | null; + }>; +}; -export type GetWormholeExtrinsicByIdQuery = { __typename?: 'query_root', wormholeExtrinsicById?: { __typename?: 'wormhole_extrinsic', id: string, total_amount: any, output_count: number, timestamp: any, privacy_score: any, privacy_score01_pct: any, privacy_score1_pct: any, privacy_score5_pct: any, privacy_label: string, pool_snapshot: string, extrinsic?: { __typename?: 'extrinsic', id: string, pallet: string, call: string } | null, block?: { __typename?: 'block', id: string, height: number, hash: string, timestamp: any } | null, outputs: Array<{ __typename?: 'wormhole_output', id: string, amount: any, exitAccount?: { __typename?: 'account', id: string } | null }> } | null, wormholeNullifiers: Array<{ __typename?: 'wormhole_nullifier', nullifier: string, nullifier_hash: string }> }; +export type SampleSignerApprovedQueryVariables = Exact<{ + [key: string]: never; +}>; + +export type SampleSignerApprovedQuery = { + __typename?: 'query_root'; + multisig_signer_approved: Array<{ + __typename?: 'multisig_signer_approved'; + extrinsic?: { __typename?: 'extrinsic'; id: string } | null; + }>; +}; + +export type SampleProposalExecutedQueryVariables = Exact<{ + [key: string]: never; +}>; + +export type SampleProposalExecutedQuery = { + __typename?: 'query_root'; + executed_multisig_proposal: Array<{ + __typename?: 'executed_multisig_proposal'; + extrinsic?: { __typename?: 'extrinsic'; id: string } | null; + }>; +}; + +export type SampleProposalCancelledQueryVariables = Exact<{ + [key: string]: never; +}>; + +export type SampleProposalCancelledQuery = { + __typename?: 'query_root'; + cancelled_multisig_proposal: Array<{ + __typename?: 'cancelled_multisig_proposal'; + extrinsic?: { __typename?: 'extrinsic'; id: string } | null; + }>; +}; export type GetTransactionsQueryVariables = Exact<{ limit?: InputMaybe; @@ -10756,38 +12106,67 @@ export type GetTransactionsQueryVariables = Exact<{ where?: InputMaybe; }>; - -export type GetTransactionsQuery = { __typename?: 'query_root', transactions: Array<{ __typename?: 'transfer', extrinsic?: { __typename?: 'extrinsic', id: string } | null }> }; +export type GetTransactionsQuery = { + __typename?: 'query_root'; + transactions: Array<{ + __typename?: 'transfer'; + extrinsic?: { __typename?: 'extrinsic'; id: string } | null; + }>; +}; export type GetCancelledReversibleTransactionsQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | Cancelled_Reversible_Transfer_Order_By>; + orderBy?: InputMaybe< + | Array + | Cancelled_Reversible_Transfer_Order_By + >; where?: InputMaybe; }>; - -export type GetCancelledReversibleTransactionsQuery = { __typename?: 'query_root', cancelledReversibleTransactions: Array<{ __typename?: 'cancelled_reversible_transfer', tx_id: string }> }; +export type GetCancelledReversibleTransactionsQuery = { + __typename?: 'query_root'; + cancelledReversibleTransactions: Array<{ + __typename?: 'cancelled_reversible_transfer'; + tx_id: string; + }>; +}; export type GetExecutedReversibleTransactionsQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | Executed_Reversible_Transfer_Order_By>; + orderBy?: InputMaybe< + | Array + | Executed_Reversible_Transfer_Order_By + >; where?: InputMaybe; }>; - -export type GetExecutedReversibleTransactionsQuery = { __typename?: 'query_root', executedReversibleTransactions: Array<{ __typename?: 'executed_reversible_transfer', tx_id: string }> }; +export type GetExecutedReversibleTransactionsQuery = { + __typename?: 'query_root'; + executedReversibleTransactions: Array<{ + __typename?: 'executed_reversible_transfer'; + tx_id: string; + }>; +}; export type GetScheduledReversibleTransactionsQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; - orderBy?: InputMaybe | Scheduled_Reversible_Transfer_Order_By>; + orderBy?: InputMaybe< + | Array + | Scheduled_Reversible_Transfer_Order_By + >; where?: InputMaybe; }>; - -export type GetScheduledReversibleTransactionsQuery = { __typename?: 'query_root', scheduledReversibleTransactions: Array<{ __typename?: 'scheduled_reversible_transfer', tx_id: string }> }; +export type GetScheduledReversibleTransactionsQuery = { + __typename?: 'query_root'; + scheduledReversibleTransactions: Array<{ + __typename?: 'scheduled_reversible_transfer'; + tx_id: string; + }>; +}; export type GetWormholeExtrinsicsQueryVariables = Exact<{ limit?: InputMaybe; @@ -10796,81 +12175,13090 @@ export type GetWormholeExtrinsicsQueryVariables = Exact<{ where?: InputMaybe; }>; - -export type GetWormholeExtrinsicsQuery = { __typename?: 'query_root', wormholeExtrinsics: Array<{ __typename?: 'wormhole_extrinsic', id: string }> }; - -export const MultisigCreatedFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigCreatedFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"threshold"}},{"kind":"Field","name":{"kind":"Name","value":"nonce"}},{"kind":"Field","name":{"kind":"Name","value":"signers"}},{"kind":"Field","name":{"kind":"Name","value":"creator"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const MultisigDepositsClaimedFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigDepositsClaimedFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_deposits_claimed"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"total_returned"}},{"kind":"Field","name":{"kind":"Name","value":"proposals_removed"}},{"kind":"Field","name":{"kind":"Name","value":"claimer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const MultisigProposalCancelledFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalCancelledFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"cancelled_multisig_proposal"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"cancelledBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposal"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const MultisigProposalRefFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalRefFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; -export const MultisigProposalCreatedFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalCreatedFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal_created"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"proposal"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigProposalRefFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalRefFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; -export const MultisigProposalExecutedFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalExecutedFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"executed_multisig_proposal"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"approvers"}},{"kind":"Field","name":{"kind":"Name","value":"result"}},{"kind":"Field","name":{"kind":"Name","value":"proposal"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const MultisigProposalReadyFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalReadyFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal_ready"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"approvals_count"}},{"kind":"Field","name":{"kind":"Name","value":"proposal"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const MultisigProposalRemovedFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalRemovedFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"removed_multisig_proposal"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"removedBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposal"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const MultisigProposalListFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalListFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"deposit"}},{"kind":"Field","name":{"kind":"Name","value":"expiry_block"}},{"kind":"Field","name":{"kind":"Name","value":"approvals"}},{"kind":"Field","name":{"kind":"Name","value":"created_at"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; -export const MultisigProposalDetailFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"deposit"}},{"kind":"Field","name":{"kind":"Name","value":"expiry_block"}},{"kind":"Field","name":{"kind":"Name","value":"approvals"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}},{"kind":"Field","name":{"kind":"Name","value":"call_raw"}},{"kind":"Field","name":{"kind":"Name","value":"decode_error"}},{"kind":"Field","name":{"kind":"Name","value":"created_at"}},{"kind":"Field","name":{"kind":"Name","value":"tx_id"}},{"kind":"Field","name":{"kind":"Name","value":"transfer_amount"}},{"kind":"Field","name":{"kind":"Name","value":"schedule_amount"}},{"kind":"Field","name":{"kind":"Name","value":"delay_kind"}},{"kind":"Field","name":{"kind":"Name","value":"delay_value"}},{"kind":"Field","name":{"kind":"Name","value":"schedule_asset_id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"guardian"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"transferTo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"scheduleTo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"recoverAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdExtrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAtBlock"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}}]}}]} as unknown as DocumentNode; -export const MultisigProposalLifecycleEventFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalLifecycleEventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal_created"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}}]}}]} as unknown as DocumentNode; -export const MultisigSignerApprovedFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigSignerApprovedFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_signer_approved"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"approvals_count"}},{"kind":"Field","name":{"kind":"Name","value":"approver"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposal"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const GetAccountsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAccounts"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"account_order_by"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"accounts"},"name":{"kind":"Name","value":"account"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"free"}},{"kind":"Field","name":{"kind":"Name","value":"frozen"}},{"kind":"Field","name":{"kind":"Name","value":"reserved"}},{"kind":"Field","name":{"kind":"Name","value":"is_high_security"}},{"kind":"Field","name":{"kind":"Name","value":"is_guardian"}},{"kind":"Field","name":{"kind":"Name","value":"is_multisig"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"meta"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"total_accounts"}}]}}]}}]} as unknown as DocumentNode; -export const GetAccountByIdDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAccountById"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"account"},"name":{"kind":"Name","value":"account_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"free"}},{"kind":"Field","name":{"kind":"Name","value":"frozen"}},{"kind":"Field","name":{"kind":"Name","value":"reserved"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"accountStats"},"name":{"kind":"Name","value":"account_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"total_cancelled_transfers"}},{"kind":"Field","name":{"kind":"Name","value":"total_executed_transfers"}},{"kind":"Field","name":{"kind":"Name","value":"total_immediate_transfers"}},{"kind":"Field","name":{"kind":"Name","value":"total_mined_blocks"}},{"kind":"Field","name":{"kind":"Name","value":"total_rewards"}},{"kind":"Field","name":{"kind":"Name","value":"total_scheduled_transfers"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"multisig"},"name":{"kind":"Name","value":"multisig_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"guardian"},"name":{"kind":"Name","value":"high_security_set_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"who"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"beneficiaries"},"name":{"kind":"Name","value":"high_security_set_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"guardian"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}}]}}]} as unknown as DocumentNode; -export const GetAccountsStatsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAccountsStats"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"all"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"total_accounts"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"recentlyActive"},"name":{"kind":"Name","value":"daily_active_account_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"date"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}}}]}},{"kind":"ObjectField","name":{"kind":"Name","value":"sent"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"BooleanValue","value":true}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"count"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"columns"},"value":{"kind":"EnumValue","value":"account_id"}},{"kind":"Argument","name":{"kind":"Name","value":"distinct"},"value":{"kind":"BooleanValue","value":true}}]}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"recentlyDeposited"},"name":{"kind":"Name","value":"daily_active_account_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"date"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}}}]}},{"kind":"ObjectField","name":{"kind":"Name","value":"received"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"BooleanValue","value":true}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"count"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"columns"},"value":{"kind":"EnumValue","value":"account_id"}},{"kind":"Argument","name":{"kind":"Name","value":"distinct"},"value":{"kind":"BooleanValue","value":true}}]}]}}]}}]}}]} as unknown as DocumentNode; -export const GetBlocksDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetBlocks"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"block_order_by"}}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"block_bool_exp"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"blocks"},"name":{"kind":"Name","value":"block"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hash"}},{"kind":"Field","name":{"kind":"Name","value":"height"}},{"kind":"Field","name":{"kind":"Name","value":"reward"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"mined_by_id"}},{"kind":"Field","name":{"kind":"Name","value":"extrinsics"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"meta"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"block_height"}}]}}]}}]} as unknown as DocumentNode; -export const GetBlockByIdDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetBlockById"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"height"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hash"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"blocks"},"name":{"kind":"Name","value":"block"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_or"},"value":{"kind":"ListValue","values":[{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"height"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"height"}}}]}}]},{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"hash"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hash"}}}]}}]}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hash"}},{"kind":"Field","name":{"kind":"Name","value":"height"}},{"kind":"Field","name":{"kind":"Name","value":"reward"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"extrinsics"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"index_in_block"},"value":{"kind":"EnumValue","value":"asc"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}},{"kind":"Field","name":{"kind":"Name","value":"success"}},{"kind":"Field","name":{"kind":"Name","value":"fee"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","alias":{"kind":"Name","value":"indexInBlock"},"name":{"kind":"Name","value":"index_in_block"}},{"kind":"Field","name":{"kind":"Name","value":"signer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"minerRewards"},"name":{"kind":"Name","value":"miner_reward"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"block"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_or"},"value":{"kind":"ListValue","values":[{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"height"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"height"}}}]}}]},{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"hash"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hash"}}}]}}]}]}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"reward"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"miner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}},{"kind":"Field","name":{"kind":"Name","value":"hash"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"rewardTransfers"},"name":{"kind":"Name","value":"unified_transaction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"type"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"StringValue","value":"IMMEDIATE","block":false}}]}},{"kind":"ObjectField","name":{"kind":"Name","value":"hash"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_is_null"},"value":{"kind":"BooleanValue","value":true}}]}},{"kind":"ObjectField","name":{"kind":"Name","value":"block"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_or"},"value":{"kind":"ListValue","values":[{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"height"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"height"}}}]}}]},{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"hash"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hash"}}}]}}]}]}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"detail_id"}},{"kind":"Field","name":{"kind":"Name","value":"from"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"to"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode; -export const GetBlockStatsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetBlockStats"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"chain"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"block_height"}},{"kind":"Field","name":{"kind":"Name","value":"finalized_block_height"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"minedIn24Hours"},"name":{"kind":"Name","value":"block_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timestamp"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}}]}}]} as unknown as DocumentNode; -export const GetCancelledReversibleTransactionByTxIdDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetCancelledReversibleTransactionByTxId"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tx_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"cancelledReversibleTransactions"},"name":{"kind":"Name","value":"cancelled_reversible_transfer"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"tx_id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"tx_id"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"tx_id"}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"cancelledBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}},{"kind":"Field","name":{"kind":"Name","value":"scheduledTransfer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"scheduled_at"}},{"kind":"Field","name":{"kind":"Name","value":"fee"}},{"kind":"Field","name":{"kind":"Name","value":"from"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"to"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]}}]} as unknown as DocumentNode; -export const GetHomeChainStatsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetHomeChainStats"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"last24HourWhere"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"unified_transaction_bool_exp"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"dayLimit"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"status"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"block_height"}},{"kind":"Field","name":{"kind":"Name","value":"total_accounts"}},{"kind":"Field","name":{"kind":"Name","value":"total_deposit_accounts"}},{"kind":"Field","name":{"kind":"Name","value":"total_immediate_transfers"}},{"kind":"Field","name":{"kind":"Name","value":"total_scheduled_transfers"}},{"kind":"Field","name":{"kind":"Name","value":"total_executed_transfers"}},{"kind":"Field","name":{"kind":"Name","value":"total_cancelled_transfers"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"last24Hour"},"name":{"kind":"Name","value":"unified_transaction_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"last24HourWhere"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"count"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"dailyStats"},"name":{"kind":"Name","value":"daily_chain_stats"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"date"},"value":{"kind":"EnumValue","value":"desc"}}]}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"dayLimit"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"blocks_count"}},{"kind":"Field","name":{"kind":"Name","value":"tx_count"}},{"kind":"Field","name":{"kind":"Name","value":"active_accounts"}}]}}]}}]} as unknown as DocumentNode; -export const GetStatusDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetStatus"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"status"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"block_height"}},{"kind":"Field","name":{"kind":"Name","value":"total_accounts"}},{"kind":"Field","name":{"kind":"Name","value":"total_deposit_accounts"}},{"kind":"Field","name":{"kind":"Name","value":"total_executed_transfers"}},{"kind":"Field","name":{"kind":"Name","value":"total_immediate_transfers"}},{"kind":"Field","name":{"kind":"Name","value":"total_scheduled_transfers"}},{"kind":"Field","name":{"kind":"Name","value":"total_cancelled_transfers"}}]}}]}}]} as unknown as DocumentNode; -export const GetErrorEventsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetErrorEvents"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"error_event_order_by"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"error_event_bool_exp"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"errorEvents"},"name":{"kind":"Name","value":"error_event"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"error_docs"}},{"kind":"Field","name":{"kind":"Name","value":"error_module"}},{"kind":"Field","name":{"kind":"Name","value":"error_name"}},{"kind":"Field","name":{"kind":"Name","value":"error_type"}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"meta"},"name":{"kind":"Name","value":"error_event_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}}]}}]} as unknown as DocumentNode; -export const GetErrorEventsStatsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetErrorEventsStats"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"last24Hour"},"name":{"kind":"Name","value":"error_event_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timestamp"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"allTime"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"total_error_events"}}]}}]}}]} as unknown as DocumentNode; -export const GetErrorEventByHashDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetErrorEventByHash"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hash"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"errorEvents"},"name":{"kind":"Name","value":"error_event"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"extrinsic"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hash"}}}]}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"error_docs"}},{"kind":"Field","name":{"kind":"Name","value":"error_module"}},{"kind":"Field","name":{"kind":"Name","value":"error_name"}},{"kind":"Field","name":{"kind":"Name","value":"error_type"}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}}]}}]}}]} as unknown as DocumentNode; -export const GetExecutedReversibleTransactionByTxIdDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetExecutedReversibleTransactionByTxId"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tx_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"executedReversibleTransactions"},"name":{"kind":"Name","value":"executed_reversible_transfer"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"tx_id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"tx_id"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"tx_id"}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"scheduledTransfer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"scheduled_at"}},{"kind":"Field","name":{"kind":"Name","value":"fee"}},{"kind":"Field","name":{"kind":"Name","value":"from"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"to"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]}}]} as unknown as DocumentNode; -export const GetHighSecuritySetsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetHighSecuritySets"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"high_security_set_order_by"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"high_security_set_bool_exp"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"highSecuritySets"},"name":{"kind":"Name","value":"high_security_set"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}},{"kind":"Field","name":{"kind":"Name","value":"who"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"guardian"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"delay"}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"meta"},"name":{"kind":"Name","value":"high_security_set_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}}]}}]} as unknown as DocumentNode; -export const GetHighSecuritySetsStatsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetHighSecuritySetsStats"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"last24Hour"},"name":{"kind":"Name","value":"high_security_set_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timestamp"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"allTime"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"total_high_security_sets"}}]}}]}}]} as unknown as DocumentNode; -export const GetHighSecuritySetByHashDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetHighSecuritySetByHash"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hash"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"highSecuritySets"},"name":{"kind":"Name","value":"high_security_set"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"extrinsic"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hash"}}}]}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}},{"kind":"Field","name":{"kind":"Name","value":"who"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"guardian"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"delay"}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}}]}}]}}]} as unknown as DocumentNode; -export const GetMinerLeaderboardStatsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMinerLeaderboardStats"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"chain"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"block_height"}},{"kind":"Field","name":{"kind":"Name","value":"total_miners"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"last24Hour"},"name":{"kind":"Name","value":"miner_reward_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timestamp"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}}]}}]} as unknown as DocumentNode; -export const GetMinerLeaderboardChartDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMinerLeaderboardChart"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"topMiners"},"name":{"kind":"Name","value":"account_stats"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"total_mined_blocks"},"value":{"kind":"EnumValue","value":"desc"}}]}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"total_mined_blocks"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_gt"},"value":{"kind":"IntValue","value":"0"}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"total_mined_blocks"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"blocks"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"block_height"}}]}}]}}]} as unknown as DocumentNode; -export const GetMinerLeaderboardDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMinerLeaderboard"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"leaderboardEntries"},"name":{"kind":"Name","value":"account_stats"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"total_mined_blocks"},"value":{"kind":"EnumValue","value":"desc"}}]}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"total_mined_blocks"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_gt"},"value":{"kind":"IntValue","value":"0"}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"total_mined_blocks"}},{"kind":"Field","name":{"kind":"Name","value":"total_rewards"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"meta"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"total_miners"}},{"kind":"Field","name":{"kind":"Name","value":"block_height"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"topMiner"},"name":{"kind":"Name","value":"account_stats"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"1"}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"total_mined_blocks"},"value":{"kind":"EnumValue","value":"desc"}}]}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"total_mined_blocks"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_gt"},"value":{"kind":"IntValue","value":"0"}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"total_mined_blocks"}}]}}]}}]} as unknown as DocumentNode; -export const GetMinerRewardsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMinerRewards"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"miner_reward_order_by"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"miner_reward_bool_exp"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"minerRewards"},"name":{"kind":"Name","value":"miner_reward"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}},{"kind":"Field","name":{"kind":"Name","value":"hash"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reward"}},{"kind":"Field","name":{"kind":"Name","value":"miner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"meta"},"name":{"kind":"Name","value":"miner_reward_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}}]}}]} as unknown as DocumentNode; -export const GetMinerRewardsWithChainTotalDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMinerRewardsWithChainTotal"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"miner_reward_order_by"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"miner_reward_bool_exp"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"minerRewards"},"name":{"kind":"Name","value":"miner_reward"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}},{"kind":"Field","name":{"kind":"Name","value":"hash"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reward"}},{"kind":"Field","name":{"kind":"Name","value":"miner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"meta"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"total_miner_rewards"}}]}}]}}]} as unknown as DocumentNode; -export const GetMinerRewardsWithMinerTotalDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMinerRewardsWithMinerTotal"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"miner_reward_order_by"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"miner_reward_bool_exp"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"minerId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"minerRewards"},"name":{"kind":"Name","value":"miner_reward"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}},{"kind":"Field","name":{"kind":"Name","value":"hash"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reward"}},{"kind":"Field","name":{"kind":"Name","value":"miner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"meta"},"name":{"kind":"Name","value":"account_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"minerId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"total_mined_blocks"}}]}}]}}]} as unknown as DocumentNode; -export const GetMinerRewardsStatsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMinerRewardsStats"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"last24Hour"},"name":{"kind":"Name","value":"miner_reward_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timestamp"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"allTime"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"total_miner_rewards"}}]}}]}}]} as unknown as DocumentNode; -export const GetMinerRewardByHashDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMinerRewardByHash"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hash"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"minerRewards"},"name":{"kind":"Name","value":"miner_reward"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"block"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"hash"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hash"}}}]}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}},{"kind":"Field","name":{"kind":"Name","value":"hash"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reward"}},{"kind":"Field","name":{"kind":"Name","value":"miner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigCreatedDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigCreated"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_order_by"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_bool_exp"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"multisigCreatedEvents"},"name":{"kind":"Name","value":"multisig"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigCreatedFields"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"meta"},"name":{"kind":"Name","value":"multisig_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigCreatedFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"threshold"}},{"kind":"Field","name":{"kind":"Name","value":"nonce"}},{"kind":"Field","name":{"kind":"Name","value":"signers"}},{"kind":"Field","name":{"kind":"Name","value":"creator"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigCreatedStatsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigCreatedStats"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"last24Hour"},"name":{"kind":"Name","value":"multisig_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timestamp"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"allTime"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"total_multisigs_created"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigCreatedByHashDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigCreatedByHash"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hash"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"multisigCreatedEvents"},"name":{"kind":"Name","value":"multisig"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"extrinsic"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hash"}}}]}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigCreatedFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigCreatedFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"threshold"}},{"kind":"Field","name":{"kind":"Name","value":"nonce"}},{"kind":"Field","name":{"kind":"Name","value":"signers"}},{"kind":"Field","name":{"kind":"Name","value":"creator"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigByIdDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigById"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"multisig"},"name":{"kind":"Name","value":"multisig_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigCreatedFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigCreatedFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"threshold"}},{"kind":"Field","name":{"kind":"Name","value":"nonce"}},{"kind":"Field","name":{"kind":"Name","value":"signers"}},{"kind":"Field","name":{"kind":"Name","value":"creator"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigDepositsClaimedDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigDepositsClaimed"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_deposits_claimed_order_by"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_deposits_claimed_bool_exp"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"multisigDepositsClaimedEvents"},"name":{"kind":"Name","value":"multisig_deposits_claimed"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigDepositsClaimedFields"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"meta"},"name":{"kind":"Name","value":"multisig_deposits_claimed_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigDepositsClaimedFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_deposits_claimed"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"total_returned"}},{"kind":"Field","name":{"kind":"Name","value":"proposals_removed"}},{"kind":"Field","name":{"kind":"Name","value":"claimer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigDepositsClaimedStatsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigDepositsClaimedStats"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"last24Hour"},"name":{"kind":"Name","value":"multisig_deposits_claimed_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timestamp"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"allTime"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"total_multisig_deposits_claimed"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigDepositsClaimedByHashDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigDepositsClaimedByHash"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hash"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"multisigDepositsClaimedEvents"},"name":{"kind":"Name","value":"multisig_deposits_claimed"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"extrinsic"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hash"}}}]}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigDepositsClaimedFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigDepositsClaimedFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_deposits_claimed"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"total_returned"}},{"kind":"Field","name":{"kind":"Name","value":"proposals_removed"}},{"kind":"Field","name":{"kind":"Name","value":"claimer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigProposalCancelledDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigProposalCancelled"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"cancelled_multisig_proposal_order_by"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"cancelled_multisig_proposal_bool_exp"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"multisigProposalCancelledEvents"},"name":{"kind":"Name","value":"cancelled_multisig_proposal"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigProposalCancelledFields"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"meta"},"name":{"kind":"Name","value":"cancelled_multisig_proposal_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalCancelledFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"cancelled_multisig_proposal"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"cancelledBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposal"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigProposalCancelledStatsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigProposalCancelledStats"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"last24Hour"},"name":{"kind":"Name","value":"cancelled_multisig_proposal_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timestamp"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"allTime"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"total_multisig_proposals_cancelled"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigProposalCancelledByHashDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigProposalCancelledByHash"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hash"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"multisigProposalCancelledEvents"},"name":{"kind":"Name","value":"cancelled_multisig_proposal"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"extrinsic"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hash"}}}]}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigProposalCancelledFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalCancelledFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"cancelled_multisig_proposal"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"cancelledBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposal"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigProposalCreatedDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigProposalCreated"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal_created_order_by"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal_created_bool_exp"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"multisigProposalCreatedEvents"},"name":{"kind":"Name","value":"multisig_proposal_created"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigProposalCreatedFields"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"meta"},"name":{"kind":"Name","value":"multisig_proposal_created_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalRefFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalCreatedFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal_created"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"proposal"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigProposalRefFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigProposalCreatedStatsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigProposalCreatedStats"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"last24Hour"},"name":{"kind":"Name","value":"multisig_proposal_created_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timestamp"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"allTime"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"total_multisig_proposals"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigProposalCreatedByHashDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigProposalCreatedByHash"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hash"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"multisigProposalCreatedEvents"},"name":{"kind":"Name","value":"multisig_proposal_created"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"extrinsic"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hash"}}}]}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigProposalCreatedFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalRefFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalCreatedFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal_created"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"proposal"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigProposalRefFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigProposalExecutedDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigProposalExecuted"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"executed_multisig_proposal_order_by"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"executed_multisig_proposal_bool_exp"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"multisigProposalExecutedEvents"},"name":{"kind":"Name","value":"executed_multisig_proposal"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigProposalExecutedFields"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"meta"},"name":{"kind":"Name","value":"executed_multisig_proposal_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalExecutedFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"executed_multisig_proposal"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"approvers"}},{"kind":"Field","name":{"kind":"Name","value":"result"}},{"kind":"Field","name":{"kind":"Name","value":"proposal"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigProposalExecutedStatsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigProposalExecutedStats"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"last24Hour"},"name":{"kind":"Name","value":"executed_multisig_proposal_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timestamp"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"allTime"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"total_multisig_proposals_executed"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigProposalExecutedByHashDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigProposalExecutedByHash"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hash"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"multisigProposalExecutedEvents"},"name":{"kind":"Name","value":"executed_multisig_proposal"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"extrinsic"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hash"}}}]}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigProposalExecutedFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalExecutedFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"executed_multisig_proposal"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"approvers"}},{"kind":"Field","name":{"kind":"Name","value":"result"}},{"kind":"Field","name":{"kind":"Name","value":"proposal"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigProposalReadyDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigProposalReady"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal_ready_order_by"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal_ready_bool_exp"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"multisigProposalReadyEvents"},"name":{"kind":"Name","value":"multisig_proposal_ready"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigProposalReadyFields"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"meta"},"name":{"kind":"Name","value":"multisig_proposal_ready_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalReadyFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal_ready"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"approvals_count"}},{"kind":"Field","name":{"kind":"Name","value":"proposal"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigProposalReadyStatsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigProposalReadyStats"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"last24Hour"},"name":{"kind":"Name","value":"multisig_proposal_ready_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timestamp"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"allTime"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"total_multisig_proposal_ready"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigProposalReadyByHashDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigProposalReadyByHash"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hash"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"multisigProposalReadyEvents"},"name":{"kind":"Name","value":"multisig_proposal_ready"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"extrinsic"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hash"}}}]}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigProposalReadyFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalReadyFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal_ready"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"approvals_count"}},{"kind":"Field","name":{"kind":"Name","value":"proposal"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigProposalRemovedDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigProposalRemoved"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"removed_multisig_proposal_order_by"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"removed_multisig_proposal_bool_exp"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"multisigProposalRemovedEvents"},"name":{"kind":"Name","value":"removed_multisig_proposal"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigProposalRemovedFields"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"meta"},"name":{"kind":"Name","value":"removed_multisig_proposal_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalRemovedFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"removed_multisig_proposal"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"removedBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposal"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigProposalRemovedStatsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigProposalRemovedStats"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"last24Hour"},"name":{"kind":"Name","value":"removed_multisig_proposal_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timestamp"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"allTime"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"total_multisig_proposals_removed"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigProposalRemovedByHashDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigProposalRemovedByHash"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hash"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"multisigProposalRemovedEvents"},"name":{"kind":"Name","value":"removed_multisig_proposal"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"extrinsic"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hash"}}}]}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigProposalRemovedFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalRemovedFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"removed_multisig_proposal"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"removedBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposal"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigProposalsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigProposals"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal_order_by"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal_bool_exp"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"multisigProposals"},"name":{"kind":"Name","value":"multisig_proposal"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigProposalListFields"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"meta"},"name":{"kind":"Name","value":"multisig_proposal_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalListFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"deposit"}},{"kind":"Field","name":{"kind":"Name","value":"expiry_block"}},{"kind":"Field","name":{"kind":"Name","value":"approvals"}},{"kind":"Field","name":{"kind":"Name","value":"created_at"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigProposalStatsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigProposalStats"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"last24Hour"},"name":{"kind":"Name","value":"multisig_proposal_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"created_at"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"allTime"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"total_multisig_proposals"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigProposalByIdDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigProposalById"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"multisigProposal"},"name":{"kind":"Name","value":"multisig_proposal_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigProposalDetailFields"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"createdEvents"},"name":{"kind":"Name","value":"multisig_proposal_created"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"proposal_id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}}]}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timestamp"},"value":{"kind":"EnumValue","value":"asc"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigProposalLifecycleEventFields"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"signerApprovedEvents"},"name":{"kind":"Name","value":"multisig_signer_approved"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"proposal_id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}}]}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timestamp"},"value":{"kind":"EnumValue","value":"asc"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"readyEvents"},"name":{"kind":"Name","value":"multisig_proposal_ready"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"proposal_id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}}]}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timestamp"},"value":{"kind":"EnumValue","value":"asc"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"executedEvents"},"name":{"kind":"Name","value":"executed_multisig_proposal"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"proposal_id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}}]}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timestamp"},"value":{"kind":"EnumValue","value":"asc"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"cancelledEvents"},"name":{"kind":"Name","value":"cancelled_multisig_proposal"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"proposal_id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}}]}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timestamp"},"value":{"kind":"EnumValue","value":"asc"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"removedEvents"},"name":{"kind":"Name","value":"removed_multisig_proposal"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"proposal_id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}}]}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timestamp"},"value":{"kind":"EnumValue","value":"asc"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"deposit"}},{"kind":"Field","name":{"kind":"Name","value":"expiry_block"}},{"kind":"Field","name":{"kind":"Name","value":"approvals"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}},{"kind":"Field","name":{"kind":"Name","value":"call_raw"}},{"kind":"Field","name":{"kind":"Name","value":"decode_error"}},{"kind":"Field","name":{"kind":"Name","value":"created_at"}},{"kind":"Field","name":{"kind":"Name","value":"tx_id"}},{"kind":"Field","name":{"kind":"Name","value":"transfer_amount"}},{"kind":"Field","name":{"kind":"Name","value":"schedule_amount"}},{"kind":"Field","name":{"kind":"Name","value":"delay_kind"}},{"kind":"Field","name":{"kind":"Name","value":"delay_value"}},{"kind":"Field","name":{"kind":"Name","value":"schedule_asset_id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"guardian"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"transferTo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"scheduleTo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"recoverAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdExtrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAtBlock"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigProposalLifecycleEventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_proposal_created"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigSignerApprovedDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigSignerApproved"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_signer_approved_order_by"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_signer_approved_bool_exp"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"multisigSignerApprovedEvents"},"name":{"kind":"Name","value":"multisig_signer_approved"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigSignerApprovedFields"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"meta"},"name":{"kind":"Name","value":"multisig_signer_approved_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigSignerApprovedFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_signer_approved"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"approvals_count"}},{"kind":"Field","name":{"kind":"Name","value":"approver"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposal"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigSignerApprovedStatsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigSignerApprovedStats"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"timestamptz"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"last24Hour"},"name":{"kind":"Name","value":"multisig_signer_approved_aggregate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timestamp"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"startDate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"_lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"endDate"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aggregate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"totalCount"},"name":{"kind":"Name","value":"count"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"allTime"},"name":{"kind":"Name","value":"chain_stats_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"StringValue","value":"global","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"total_multisig_signer_approved"}}]}}]}}]} as unknown as DocumentNode; -export const GetMultisigSignerApprovedByHashDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMultisigSignerApprovedByHash"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hash"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"multisigSignerApprovedEvents"},"name":{"kind":"Name","value":"multisig_signer_approved"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"extrinsic"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hash"}}}]}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MultisigSignerApprovedFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MultisigSignerApprovedFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"multisig_signer_approved"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"approvals_count"}},{"kind":"Field","name":{"kind":"Name","value":"approver"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposal"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"proposer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]} as unknown as DocumentNode; -export const GetScheduledReversibleTransactionByTxIdDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetScheduledReversibleTransactionByTxId"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tx_id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"scheduledReversibleTransactions"},"name":{"kind":"Name","value":"scheduled_reversible_transfer"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"tx_id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"tx_id"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"scheduled_at"}},{"kind":"Field","name":{"kind":"Name","value":"tx_id"}},{"kind":"Field","name":{"kind":"Name","value":"fee"}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"from"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"to"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode; -export const SearchHexDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"SearchHex"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"keyword"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"transactions"},"name":{"kind":"Name","value":"unified_transaction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_or"},"value":{"kind":"ListValue","values":[{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"hash"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_like"},"value":{"kind":"Variable","name":{"kind":"Name","value":"keyword"}}}]}}]},{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"detail_id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_like"},"value":{"kind":"Variable","name":{"kind":"Name","value":"keyword"}}}]}}]}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"hash"}},{"kind":"Field","name":{"kind":"Name","value":"detail_id"}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}},{"kind":"Field","name":{"kind":"Name","value":"hash"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"blocks"},"name":{"kind":"Name","value":"block"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"hash"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_like"},"value":{"kind":"Variable","name":{"kind":"Name","value":"keyword"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"highSecuritySets"},"name":{"kind":"Name","value":"high_security_set"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"extrinsic"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_like"},"value":{"kind":"Variable","name":{"kind":"Name","value":"keyword"}}}]}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]}}]} as unknown as DocumentNode; -export const SearchNumericDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"SearchNumeric"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"keyword"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"keyword_number"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"transactions"},"name":{"kind":"Name","value":"unified_transaction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"detail_id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_like"},"value":{"kind":"Variable","name":{"kind":"Name","value":"keyword"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"hash"}},{"kind":"Field","name":{"kind":"Name","value":"detail_id"}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}},{"kind":"Field","name":{"kind":"Name","value":"hash"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"blocks"},"name":{"kind":"Name","value":"block"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"height"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"keyword_number"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}}]}}]} as unknown as DocumentNode; -export const SearchTextDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"SearchText"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"keyword"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"accounts"},"name":{"kind":"Name","value":"account"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_like"},"value":{"kind":"Variable","name":{"kind":"Name","value":"keyword"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"errorEvents"},"name":{"kind":"Name","value":"error_event"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_or"},"value":{"kind":"ListValue","values":[{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"error_type"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_ilike"},"value":{"kind":"Variable","name":{"kind":"Name","value":"keyword"}}}]}}]},{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"error_name"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_ilike"},"value":{"kind":"Variable","name":{"kind":"Name","value":"keyword"}}}]}}]}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}}]}}]}}]} as unknown as DocumentNode; -export const GetExtrinsicByHashDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetExtrinsicByHash"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hash"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"extrinsics"},"name":{"kind":"Name","value":"extrinsic"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hash"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}},{"kind":"Field","name":{"kind":"Name","value":"success"}},{"kind":"Field","name":{"kind":"Name","value":"fee"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"index_in_block"}},{"kind":"Field","name":{"kind":"Name","value":"signer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"transfersByExtrinsic"},"name":{"kind":"Name","value":"transfer"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"extrinsic"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hash"}}}]}}]}}]}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timestamp"},"value":{"kind":"EnumValue","value":"asc"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"from"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"to"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}},{"kind":"Field","name":{"kind":"Name","value":"success"}},{"kind":"Field","name":{"kind":"Name","value":"fee"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"index_in_block"}},{"kind":"Field","name":{"kind":"Name","value":"signer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"transfersById"},"name":{"kind":"Name","value":"transfer"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hash"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"from"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"to"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}},{"kind":"Field","name":{"kind":"Name","value":"success"}},{"kind":"Field","name":{"kind":"Name","value":"fee"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"index_in_block"}},{"kind":"Field","name":{"kind":"Name","value":"signer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"height"}}]}}]}}]}}]}}]} as unknown as DocumentNode; -export const GetWormholeExtrinsicByIdDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetWormholeExtrinsicById"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"wormholeExtrinsicById"},"name":{"kind":"Name","value":"wormhole_extrinsic_by_pk"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pallet"}},{"kind":"Field","name":{"kind":"Name","value":"call"}}]}},{"kind":"Field","name":{"kind":"Name","value":"total_amount"}},{"kind":"Field","name":{"kind":"Name","value":"output_count"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"privacy_score"}},{"kind":"Field","name":{"kind":"Name","value":"privacy_score01_pct"}},{"kind":"Field","name":{"kind":"Name","value":"privacy_score1_pct"}},{"kind":"Field","name":{"kind":"Name","value":"privacy_score5_pct"}},{"kind":"Field","name":{"kind":"Name","value":"privacy_label"}},{"kind":"Field","name":{"kind":"Name","value":"pool_snapshot"}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"height"}},{"kind":"Field","name":{"kind":"Name","value":"hash"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}}]}},{"kind":"Field","name":{"kind":"Name","value":"outputs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"exitAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amount"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"wormholeNullifiers"},"name":{"kind":"Name","value":"wormhole_nullifier"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"wormholeExtrinsic"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nullifier"}},{"kind":"Field","name":{"kind":"Name","value":"nullifier_hash"}}]}}]}}]} as unknown as DocumentNode; -export const GetTransactionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetTransactions"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"transfer_order_by"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"transfer_bool_exp"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"transactions"},"name":{"kind":"Name","value":"transfer"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"extrinsic"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode; -export const GetCancelledReversibleTransactionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetCancelledReversibleTransactions"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"cancelled_reversible_transfer_order_by"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"cancelled_reversible_transfer_bool_exp"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"cancelledReversibleTransactions"},"name":{"kind":"Name","value":"cancelled_reversible_transfer"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tx_id"}}]}}]}}]} as unknown as DocumentNode; -export const GetExecutedReversibleTransactionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetExecutedReversibleTransactions"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"executed_reversible_transfer_order_by"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"executed_reversible_transfer_bool_exp"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"executedReversibleTransactions"},"name":{"kind":"Name","value":"executed_reversible_transfer"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tx_id"}}]}}]}}]} as unknown as DocumentNode; -export const GetScheduledReversibleTransactionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetScheduledReversibleTransactions"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"scheduled_reversible_transfer_order_by"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"scheduled_reversible_transfer_bool_exp"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"scheduledReversibleTransactions"},"name":{"kind":"Name","value":"scheduled_reversible_transfer"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tx_id"}}]}}]}}]} as unknown as DocumentNode; -export const GetWormholeExtrinsicsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetWormholeExtrinsics"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"wormhole_extrinsic_order_by"}}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"wormhole_extrinsic_bool_exp"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"wormholeExtrinsics"},"name":{"kind":"Name","value":"wormhole_extrinsic"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"order_by"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file +export type GetWormholeExtrinsicsQuery = { + __typename?: 'query_root'; + wormholeExtrinsics: Array<{ __typename?: 'wormhole_extrinsic'; id: string }>; +}; + +export const MultisigCreatedFieldsFragmentDoc = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigCreatedFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'threshold' } }, + { kind: 'Field', name: { kind: 'Name', value: 'nonce' } }, + { kind: 'Field', name: { kind: 'Name', value: 'signers' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const MultisigDepositsClaimedFieldsFragmentDoc = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigDepositsClaimedFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_deposits_claimed' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'total_returned' } }, + { kind: 'Field', name: { kind: 'Name', value: 'proposals_removed' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'claimer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const MultisigProposalCancelledFieldsFragmentDoc = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalCancelledFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'cancelled_multisig_proposal' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'cancelledBy' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposal' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const MultisigProposalRefFieldsFragmentDoc = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalRefFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_proposal' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const MultisigProposalCreatedFieldsFragmentDoc = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalCreatedFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_proposal_created' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposal' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigProposalRefFields' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalRefFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_proposal' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const MultisigProposalExecutedFieldsFragmentDoc = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalExecutedFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'executed_multisig_proposal' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'approvers' } }, + { kind: 'Field', name: { kind: 'Name', value: 'result' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposal' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const MultisigProposalReadyFieldsFragmentDoc = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalReadyFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_proposal_ready' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'approvals_count' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposal' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const MultisigProposalRemovedFieldsFragmentDoc = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalRemovedFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'removed_multisig_proposal' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'removedBy' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposal' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const MultisigProposalListFieldsFragmentDoc = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalListFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_proposal' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'status' } }, + { kind: 'Field', name: { kind: 'Name', value: 'deposit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'expiry_block' } }, + { kind: 'Field', name: { kind: 'Name', value: 'approvals' } }, + { kind: 'Field', name: { kind: 'Name', value: 'created_at' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const MultisigProposalDetailFieldsFragmentDoc = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalDetailFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_proposal' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'status' } }, + { kind: 'Field', name: { kind: 'Name', value: 'deposit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'expiry_block' } }, + { kind: 'Field', name: { kind: 'Name', value: 'approvals' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call_raw' } }, + { kind: 'Field', name: { kind: 'Name', value: 'decode_error' } }, + { kind: 'Field', name: { kind: 'Name', value: 'created_at' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'transfer_amount' } }, + { kind: 'Field', name: { kind: 'Name', value: 'schedule_amount' } }, + { kind: 'Field', name: { kind: 'Name', value: 'delay_kind' } }, + { kind: 'Field', name: { kind: 'Name', value: 'delay_value' } }, + { kind: 'Field', name: { kind: 'Name', value: 'schedule_asset_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'guardian' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'transferTo' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduleTo' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'recoverAccount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'createdExtrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'createdAtBlock' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const MultisigProposalLifecycleEventFieldsFragmentDoc = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalLifecycleEventFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_proposal_created' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + MultisigProposalLifecycleEventFieldsFragment, + unknown +>; +export const MultisigSignerApprovedFieldsFragmentDoc = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigSignerApprovedFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_signer_approved' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'approvals_count' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'approver' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposal' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const GetAccountsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetAccounts' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'account_order_by' } + } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'accounts' }, + name: { kind: 'Name', value: 'account' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'free' } }, + { kind: 'Field', name: { kind: 'Name', value: 'frozen' } }, + { kind: 'Field', name: { kind: 'Name', value: 'reserved' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'is_high_security' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'is_guardian' } }, + { kind: 'Field', name: { kind: 'Name', value: 'is_multisig' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'total_accounts' } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const GetAccountByIdDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetAccountById' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'account' }, + name: { kind: 'Name', value: 'account_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'free' } }, + { kind: 'Field', name: { kind: 'Name', value: 'frozen' } }, + { kind: 'Field', name: { kind: 'Name', value: 'reserved' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'accountStats' }, + name: { kind: 'Name', value: 'account_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_cancelled_transfers' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_executed_transfers' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_immediate_transfers' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_mined_blocks' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_rewards' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_scheduled_transfers' } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'multisig' }, + name: { kind: 'Name', value: 'multisig_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'guardian' }, + name: { kind: 'Name', value: 'high_security_set_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'who' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'beneficiaries' }, + name: { kind: 'Name', value: 'high_security_set_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'guardian' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const GetAccountsStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetAccountsStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'all' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_accounts' } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'recentlyActive' }, + name: { kind: 'Name', value: 'daily_active_account_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'date' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'sent' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { kind: 'BooleanValue', value: true } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'count' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'columns' }, + value: { kind: 'EnumValue', value: 'account_id' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'distinct' }, + value: { kind: 'BooleanValue', value: true } + } + ] + } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'recentlyDeposited' }, + name: { kind: 'Name', value: 'daily_active_account_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'date' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'received' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { kind: 'BooleanValue', value: true } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'count' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'columns' }, + value: { kind: 'EnumValue', value: 'account_id' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'distinct' }, + value: { kind: 'BooleanValue', value: true } + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetAccountsStatsQuery, + GetAccountsStatsQueryVariables +>; +export const GetBlocksDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetBlocks' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'block_order_by' } + } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'block_bool_exp' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'blocks' }, + name: { kind: 'Name', value: 'block' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'mined_by_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsics' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'block_height' } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const GetBlockByIdDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetBlockById' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'height' } + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + } + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'blocks' }, + name: { kind: 'Name', value: 'block' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_or' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'height' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'height' } + } + } + ] + } + } + ] + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'hash' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] + } + } + ] + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'height' } }, + { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsics' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'index_in_block' }, + value: { kind: 'EnumValue', value: 'asc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'success' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'indexInBlock' }, + name: { kind: 'Name', value: 'index_in_block' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'signer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'minerRewards' }, + name: { kind: 'Name', value: 'miner_reward' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'block' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_or' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'height' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: '_eq' + }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'height' + } + } + } + ] + } + } + ] + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'hash' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: '_eq' + }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'hash' + } + } + } + ] + } + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'miner' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'rewardTransfers' }, + name: { kind: 'Name', value: 'unified_transaction' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'type' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'StringValue', + value: 'IMMEDIATE', + block: false + } + } + ] + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'hash' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_is_null' }, + value: { kind: 'BooleanValue', value: true } + } + ] + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'block' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_or' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'height' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: '_eq' + }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'height' + } + } + } + ] + } + } + ] + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'hash' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: '_eq' + }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'hash' + } + } + } + ] + } + } + ] + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'amount' } }, + { kind: 'Field', name: { kind: 'Name', value: 'detail_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const GetBlockStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetBlockStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'chain' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'block_height' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'finalized_block_height' } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'minedIn24Hours' }, + name: { kind: 'Name', value: 'block_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const GetCancelledReversibleTransactionByTxIdDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetCancelledReversibleTransactionByTxId' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'tx_id' } + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'cancelledReversibleTransactions' }, + name: { kind: 'Name', value: 'cancelled_reversible_transfer' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'tx_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'tx_id' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'cancelledBy' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledTransfer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduled_at' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetCancelledReversibleTransactionByTxIdQuery, + GetCancelledReversibleTransactionByTxIdQueryVariables +>; +export const GetHomeChainStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetHomeChainStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'last24HourWhere' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'unified_transaction_bool_exp' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'dayLimit' } + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'status' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'block_height' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_accounts' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_deposit_accounts' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_immediate_transfers' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_scheduled_transfers' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_executed_transfers' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_cancelled_transfers' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'circulating_supply' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'max_supply' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_supply' } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'last24Hour' }, + name: { kind: 'Name', value: 'unified_transaction_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'last24HourWhere' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'dailyStats' }, + name: { kind: 'Name', value: 'daily_chain_stats' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'date' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'dayLimit' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'date' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'blocks_count' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_count' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'active_accounts' } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetHomeChainStatsQuery, + GetHomeChainStatsQueryVariables +>; +export const GetStatusDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetStatus' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'status' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'block_height' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_accounts' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_deposit_accounts' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_executed_transfers' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_immediate_transfers' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_scheduled_transfers' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_cancelled_transfers' } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const GetErrorEventsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetErrorEvents' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'error_event_order_by' } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'error_event_bool_exp' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'errorEvents' }, + name: { kind: 'Name', value: 'error_event' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'error_docs' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'error_module' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'error_name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'error_type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'error_event_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const GetErrorEventsStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetErrorEventsStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'last24Hour' }, + name: { kind: 'Name', value: 'error_event_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allTime' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_error_events' } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetErrorEventsStatsQuery, + GetErrorEventsStatsQueryVariables +>; +export const GetErrorEventByHashDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetErrorEventByHash' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'errorEvents' }, + name: { kind: 'Name', value: 'error_event' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'error_docs' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'error_module' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'error_name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'error_type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetErrorEventByHashQuery, + GetErrorEventByHashQueryVariables +>; +export const GetExecutedReversibleTransactionByTxIdDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetExecutedReversibleTransactionByTxId' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'tx_id' } + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'executedReversibleTransactions' }, + name: { kind: 'Name', value: 'executed_reversible_transfer' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'tx_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'tx_id' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduledTransfer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduled_at' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetExecutedReversibleTransactionByTxIdQuery, + GetExecutedReversibleTransactionByTxIdQueryVariables +>; +export const GetHighSecuritySetsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetHighSecuritySets' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'high_security_set_order_by' } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'high_security_set_bool_exp' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'highSecuritySets' }, + name: { kind: 'Name', value: 'high_security_set' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'who' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'guardian' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'delay' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'high_security_set_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetHighSecuritySetsQuery, + GetHighSecuritySetsQueryVariables +>; +export const GetHighSecuritySetsStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetHighSecuritySetsStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'last24Hour' }, + name: { kind: 'Name', value: 'high_security_set_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allTime' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_high_security_sets' } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetHighSecuritySetsStatsQuery, + GetHighSecuritySetsStatsQueryVariables +>; +export const GetHighSecuritySetByHashDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetHighSecuritySetByHash' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'highSecuritySets' }, + name: { kind: 'Name', value: 'high_security_set' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'who' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'guardian' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'delay' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetHighSecuritySetByHashQuery, + GetHighSecuritySetByHashQueryVariables +>; +export const GetMinerLeaderboardStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMinerLeaderboardStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'chain' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'block_height' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'total_miners' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'last24Hour' }, + name: { kind: 'Name', value: 'miner_reward_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMinerLeaderboardStatsQuery, + GetMinerLeaderboardStatsQueryVariables +>; +export const GetMinerLeaderboardChartDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMinerLeaderboardChart' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'topMiners' }, + name: { kind: 'Name', value: 'account_stats' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'total_mined_blocks' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'total_mined_blocks' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gt' }, + value: { kind: 'IntValue', value: '0' } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_mined_blocks' } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'blocks' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'block_height' } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMinerLeaderboardChartQuery, + GetMinerLeaderboardChartQueryVariables +>; +export const GetMinerLeaderboardDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMinerLeaderboard' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'leaderboardEntries' }, + name: { kind: 'Name', value: 'account_stats' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'total_mined_blocks' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'total_mined_blocks' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gt' }, + value: { kind: 'IntValue', value: '0' } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_mined_blocks' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_rewards' } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'total_miners' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'block_height' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'topMiner' }, + name: { kind: 'Name', value: 'account_stats' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { kind: 'IntValue', value: '1' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'total_mined_blocks' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'total_mined_blocks' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gt' }, + value: { kind: 'IntValue', value: '0' } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_mined_blocks' } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMinerLeaderboardQuery, + GetMinerLeaderboardQueryVariables +>; +export const GetMinerRewardsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMinerRewards' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'miner_reward_order_by' } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'miner_reward_bool_exp' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'minerRewards' }, + name: { kind: 'Name', value: 'miner_reward' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'miner' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'miner_reward_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMinerRewardsQuery, + GetMinerRewardsQueryVariables +>; +export const GetMinerRewardsWithChainTotalDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMinerRewardsWithChainTotal' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'miner_reward_order_by' } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'miner_reward_bool_exp' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'minerRewards' }, + name: { kind: 'Name', value: 'miner_reward' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'miner' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'total_miner_rewards' } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMinerRewardsWithChainTotalQuery, + GetMinerRewardsWithChainTotalQueryVariables +>; +export const GetMinerRewardsWithMinerTotalDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMinerRewardsWithMinerTotal' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'miner_reward_order_by' } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'miner_reward_bool_exp' } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'minerId' } + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'minerRewards' }, + name: { kind: 'Name', value: 'miner_reward' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'miner' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'account_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'minerId' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'total_mined_blocks' } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMinerRewardsWithMinerTotalQuery, + GetMinerRewardsWithMinerTotalQueryVariables +>; +export const GetMinerRewardsStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMinerRewardsStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'last24Hour' }, + name: { kind: 'Name', value: 'miner_reward_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allTime' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_miner_rewards' } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMinerRewardsStatsQuery, + GetMinerRewardsStatsQueryVariables +>; +export const GetMinerRewardByHashDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMinerRewardByHash' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'minerRewards' }, + name: { kind: 'Name', value: 'miner_reward' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'block' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'hash' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'miner' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMinerRewardByHashQuery, + GetMinerRewardByHashQueryVariables +>; +export const GetMultisigCreatedDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigCreated' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_order_by' } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_bool_exp' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'multisigCreatedEvents' }, + name: { kind: 'Name', value: 'multisig' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigCreatedFields' } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'multisig_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigCreatedFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'threshold' } }, + { kind: 'Field', name: { kind: 'Name', value: 'nonce' } }, + { kind: 'Field', name: { kind: 'Name', value: 'signers' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigCreatedQuery, + GetMultisigCreatedQueryVariables +>; +export const GetMultisigCreatedStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigCreatedStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'last24Hour' }, + name: { kind: 'Name', value: 'multisig_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allTime' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_multisigs_created' } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigCreatedStatsQuery, + GetMultisigCreatedStatsQueryVariables +>; +export const GetMultisigCreatedByHashDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigCreatedByHash' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'multisigCreatedEvents' }, + name: { kind: 'Name', value: 'multisig' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigCreatedFields' } + } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigCreatedFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'threshold' } }, + { kind: 'Field', name: { kind: 'Name', value: 'nonce' } }, + { kind: 'Field', name: { kind: 'Name', value: 'signers' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigCreatedByHashQuery, + GetMultisigCreatedByHashQueryVariables +>; +export const GetMultisigByIdDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigById' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'multisig' }, + name: { kind: 'Name', value: 'multisig_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigCreatedFields' } + } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigCreatedFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'threshold' } }, + { kind: 'Field', name: { kind: 'Name', value: 'nonce' } }, + { kind: 'Field', name: { kind: 'Name', value: 'signers' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'creator' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigByIdQuery, + GetMultisigByIdQueryVariables +>; +export const GetMultisigDepositsClaimedDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigDepositsClaimed' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'multisig_deposits_claimed_order_by' + } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_deposits_claimed_bool_exp' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'multisigDepositsClaimedEvents' }, + name: { kind: 'Name', value: 'multisig_deposits_claimed' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigDepositsClaimedFields' } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { + kind: 'Name', + value: 'multisig_deposits_claimed_aggregate' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigDepositsClaimedFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_deposits_claimed' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'total_returned' } }, + { kind: 'Field', name: { kind: 'Name', value: 'proposals_removed' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'claimer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigDepositsClaimedQuery, + GetMultisigDepositsClaimedQueryVariables +>; +export const GetMultisigDepositsClaimedStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigDepositsClaimedStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'last24Hour' }, + name: { + kind: 'Name', + value: 'multisig_deposits_claimed_aggregate' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allTime' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'total_multisig_deposits_claimed' + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigDepositsClaimedStatsQuery, + GetMultisigDepositsClaimedStatsQueryVariables +>; +export const GetMultisigDepositsClaimedByHashDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigDepositsClaimedByHash' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'multisigDepositsClaimedEvents' }, + name: { kind: 'Name', value: 'multisig_deposits_claimed' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigDepositsClaimedFields' } + } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigDepositsClaimedFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_deposits_claimed' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'total_returned' } }, + { kind: 'Field', name: { kind: 'Name', value: 'proposals_removed' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'claimer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigDepositsClaimedByHashQuery, + GetMultisigDepositsClaimedByHashQueryVariables +>; +export const GetMultisigProposalCancelledDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigProposalCancelled' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'cancelled_multisig_proposal_order_by' + } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'cancelled_multisig_proposal_bool_exp' + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'multisigProposalCancelledEvents' }, + name: { kind: 'Name', value: 'cancelled_multisig_proposal' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'MultisigProposalCancelledFields' + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { + kind: 'Name', + value: 'cancelled_multisig_proposal_aggregate' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalCancelledFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'cancelled_multisig_proposal' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'cancelledBy' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposal' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigProposalCancelledQuery, + GetMultisigProposalCancelledQueryVariables +>; +export const GetMultisigProposalCancelledStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigProposalCancelledStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'last24Hour' }, + name: { + kind: 'Name', + value: 'cancelled_multisig_proposal_aggregate' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allTime' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'total_multisig_proposals_cancelled' + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigProposalCancelledStatsQuery, + GetMultisigProposalCancelledStatsQueryVariables +>; +export const GetMultisigProposalCancelledByHashDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigProposalCancelledByHash' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'multisigProposalCancelledEvents' }, + name: { kind: 'Name', value: 'cancelled_multisig_proposal' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'MultisigProposalCancelledFields' + } + } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalCancelledFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'cancelled_multisig_proposal' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'cancelledBy' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposal' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigProposalCancelledByHashQuery, + GetMultisigProposalCancelledByHashQueryVariables +>; +export const GetMultisigProposalCreatedDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigProposalCreated' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'multisig_proposal_created_order_by' + } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_proposal_created_bool_exp' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'multisigProposalCreatedEvents' }, + name: { kind: 'Name', value: 'multisig_proposal_created' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigProposalCreatedFields' } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { + kind: 'Name', + value: 'multisig_proposal_created_aggregate' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalRefFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_proposal' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalCreatedFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_proposal_created' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposal' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigProposalRefFields' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigProposalCreatedQuery, + GetMultisigProposalCreatedQueryVariables +>; +export const GetMultisigProposalCreatedStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigProposalCreatedStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'last24Hour' }, + name: { + kind: 'Name', + value: 'multisig_proposal_created_aggregate' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allTime' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_multisig_proposals' } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigProposalCreatedStatsQuery, + GetMultisigProposalCreatedStatsQueryVariables +>; +export const GetMultisigProposalCreatedByHashDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigProposalCreatedByHash' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'multisigProposalCreatedEvents' }, + name: { kind: 'Name', value: 'multisig_proposal_created' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigProposalCreatedFields' } + } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalRefFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_proposal' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalCreatedFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_proposal_created' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposal' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigProposalRefFields' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigProposalCreatedByHashQuery, + GetMultisigProposalCreatedByHashQueryVariables +>; +export const GetMultisigProposalExecutedDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigProposalExecuted' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'executed_multisig_proposal_order_by' + } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'executed_multisig_proposal_bool_exp' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'multisigProposalExecutedEvents' }, + name: { kind: 'Name', value: 'executed_multisig_proposal' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'MultisigProposalExecutedFields' + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { + kind: 'Name', + value: 'executed_multisig_proposal_aggregate' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalExecutedFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'executed_multisig_proposal' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'approvers' } }, + { kind: 'Field', name: { kind: 'Name', value: 'result' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposal' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigProposalExecutedQuery, + GetMultisigProposalExecutedQueryVariables +>; +export const GetMultisigProposalExecutedStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigProposalExecutedStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'last24Hour' }, + name: { + kind: 'Name', + value: 'executed_multisig_proposal_aggregate' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allTime' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'total_multisig_proposals_executed' + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigProposalExecutedStatsQuery, + GetMultisigProposalExecutedStatsQueryVariables +>; +export const GetMultisigProposalExecutedByHashDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigProposalExecutedByHash' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'multisigProposalExecutedEvents' }, + name: { kind: 'Name', value: 'executed_multisig_proposal' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'MultisigProposalExecutedFields' + } + } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalExecutedFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'executed_multisig_proposal' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'approvers' } }, + { kind: 'Field', name: { kind: 'Name', value: 'result' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposal' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigProposalExecutedByHashQuery, + GetMultisigProposalExecutedByHashQueryVariables +>; +export const GetMultisigProposalReadyDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigProposalReady' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'multisig_proposal_ready_order_by' + } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_proposal_ready_bool_exp' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'multisigProposalReadyEvents' }, + name: { kind: 'Name', value: 'multisig_proposal_ready' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigProposalReadyFields' } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'multisig_proposal_ready_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalReadyFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_proposal_ready' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'approvals_count' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposal' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigProposalReadyQuery, + GetMultisigProposalReadyQueryVariables +>; +export const GetMultisigProposalReadyStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigProposalReadyStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'last24Hour' }, + name: { kind: 'Name', value: 'multisig_proposal_ready_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allTime' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_multisig_proposal_ready' } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigProposalReadyStatsQuery, + GetMultisigProposalReadyStatsQueryVariables +>; +export const GetMultisigProposalReadyByHashDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigProposalReadyByHash' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'multisigProposalReadyEvents' }, + name: { kind: 'Name', value: 'multisig_proposal_ready' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigProposalReadyFields' } + } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalReadyFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_proposal_ready' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'approvals_count' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposal' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigProposalReadyByHashQuery, + GetMultisigProposalReadyByHashQueryVariables +>; +export const GetMultisigProposalRemovedDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigProposalRemoved' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'removed_multisig_proposal_order_by' + } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'removed_multisig_proposal_bool_exp' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'multisigProposalRemovedEvents' }, + name: { kind: 'Name', value: 'removed_multisig_proposal' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigProposalRemovedFields' } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { + kind: 'Name', + value: 'removed_multisig_proposal_aggregate' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalRemovedFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'removed_multisig_proposal' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'removedBy' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposal' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigProposalRemovedQuery, + GetMultisigProposalRemovedQueryVariables +>; +export const GetMultisigProposalRemovedStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigProposalRemovedStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'last24Hour' }, + name: { + kind: 'Name', + value: 'removed_multisig_proposal_aggregate' + }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allTime' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'total_multisig_proposals_removed' + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigProposalRemovedStatsQuery, + GetMultisigProposalRemovedStatsQueryVariables +>; +export const GetMultisigProposalRemovedByHashDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigProposalRemovedByHash' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'multisigProposalRemovedEvents' }, + name: { kind: 'Name', value: 'removed_multisig_proposal' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigProposalRemovedFields' } + } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalRemovedFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'removed_multisig_proposal' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'removedBy' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposal' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigProposalRemovedByHashQuery, + GetMultisigProposalRemovedByHashQueryVariables +>; +export const GetMultisigProposalsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigProposals' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_proposal_order_by' } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_proposal_bool_exp' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'multisigProposals' }, + name: { kind: 'Name', value: 'multisig_proposal' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigProposalListFields' } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'multisig_proposal_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalListFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_proposal' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'status' } }, + { kind: 'Field', name: { kind: 'Name', value: 'deposit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'expiry_block' } }, + { kind: 'Field', name: { kind: 'Name', value: 'approvals' } }, + { kind: 'Field', name: { kind: 'Name', value: 'created_at' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigProposalsQuery, + GetMultisigProposalsQueryVariables +>; +export const GetMultisigProposalStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigProposalStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'last24Hour' }, + name: { kind: 'Name', value: 'multisig_proposal_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'created_at' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allTime' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'total_multisig_proposals' } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigProposalStatsQuery, + GetMultisigProposalStatsQueryVariables +>; +export const GetMultisigProposalByIdDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigProposalById' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'multisigProposal' }, + name: { kind: 'Name', value: 'multisig_proposal_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigProposalDetailFields' } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'createdEvents' }, + name: { kind: 'Name', value: 'multisig_proposal_created' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'proposal_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + } + ] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'asc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'MultisigProposalLifecycleEventFields' + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'signerApprovedEvents' }, + name: { kind: 'Name', value: 'multisig_signer_approved' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'proposal_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + } + ] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'asc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'readyEvents' }, + name: { kind: 'Name', value: 'multisig_proposal_ready' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'proposal_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + } + ] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'asc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'executedEvents' }, + name: { kind: 'Name', value: 'executed_multisig_proposal' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'proposal_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + } + ] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'asc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'cancelledEvents' }, + name: { kind: 'Name', value: 'cancelled_multisig_proposal' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'proposal_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + } + ] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'asc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'removedEvents' }, + name: { kind: 'Name', value: 'removed_multisig_proposal' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'proposal_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + } + ] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'asc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalDetailFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_proposal' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'status' } }, + { kind: 'Field', name: { kind: 'Name', value: 'deposit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'expiry_block' } }, + { kind: 'Field', name: { kind: 'Name', value: 'approvals' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call_raw' } }, + { kind: 'Field', name: { kind: 'Name', value: 'decode_error' } }, + { kind: 'Field', name: { kind: 'Name', value: 'created_at' } }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'transfer_amount' } }, + { kind: 'Field', name: { kind: 'Name', value: 'schedule_amount' } }, + { kind: 'Field', name: { kind: 'Name', value: 'delay_kind' } }, + { kind: 'Field', name: { kind: 'Name', value: 'delay_value' } }, + { kind: 'Field', name: { kind: 'Name', value: 'schedule_asset_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'guardian' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'transferTo' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduleTo' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'recoverAccount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'createdExtrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'createdAtBlock' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigProposalLifecycleEventFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_proposal_created' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigProposalByIdQuery, + GetMultisigProposalByIdQueryVariables +>; +export const GetMultisigSignerApprovedDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigSignerApproved' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'multisig_signer_approved_order_by' + } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_signer_approved_bool_exp' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'multisigSignerApprovedEvents' }, + name: { kind: 'Name', value: 'multisig_signer_approved' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigSignerApprovedFields' } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'multisig_signer_approved_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigSignerApprovedFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_signer_approved' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'approvals_count' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'approver' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposal' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigSignerApprovedQuery, + GetMultisigSignerApprovedQueryVariables +>; +export const GetMultisigSignerApprovedStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigSignerApprovedStats' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'last24Hour' }, + name: { kind: 'Name', value: 'multisig_signer_approved_aggregate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allTime' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { + kind: 'Name', + value: 'total_multisig_signer_approved' + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigSignerApprovedStatsQuery, + GetMultisigSignerApprovedStatsQueryVariables +>; +export const GetMultisigSignerApprovedByHashDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetMultisigSignerApprovedByHash' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'multisigSignerApprovedEvents' }, + name: { kind: 'Name', value: 'multisig_signer_approved' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigSignerApprovedFields' } + } + ] + } + } + ] + } + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultisigSignerApprovedFields' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'multisig_signer_approved' } + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'approvals_count' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'approver' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposal' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'proposer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetMultisigSignerApprovedByHashQuery, + GetMultisigSignerApprovedByHashQueryVariables +>; +export const GetScheduledReversibleTransactionByTxIdDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetScheduledReversibleTransactionByTxId' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'tx_id' } + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'scheduledReversibleTransactions' }, + name: { kind: 'Name', value: 'scheduled_reversible_transfer' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'tx_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'tx_id' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'amount' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduled_at' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetScheduledReversibleTransactionByTxIdQuery, + GetScheduledReversibleTransactionByTxIdQueryVariables +>; +export const SearchHexDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'SearchHex' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'transactions' }, + name: { kind: 'Name', value: 'unified_transaction' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_or' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'hash' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_like' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] + } + } + ] + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'detail_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_like' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] + } + } + ] + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'detail_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'blocks' }, + name: { kind: 'Name', value: 'block' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'hash' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_like' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'highSecuritySets' }, + name: { kind: 'Name', value: 'high_security_set' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_like' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const SearchNumericDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'SearchNumeric' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword_number' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'transactions' }, + name: { kind: 'Name', value: 'unified_transaction' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'detail_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_like' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } }, + { kind: 'Field', name: { kind: 'Name', value: 'detail_id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'blocks' }, + name: { kind: 'Name', value: 'block' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'height' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword_number' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const SearchTextDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'SearchText' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'accounts' }, + name: { kind: 'Name', value: 'account' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_like' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'errorEvents' }, + name: { kind: 'Name', value: 'error_event' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_or' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'error_type' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_ilike' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] + } + } + ] + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'error_name' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_ilike' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] + } + } + ] + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const GetExtrinsicByHashDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetExtrinsicByHash' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'extrinsics' }, + name: { kind: 'Name', value: 'extrinsic' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } }, + { kind: 'Field', name: { kind: 'Name', value: 'success' } }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'index_in_block' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'signer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'transfersByExtrinsic' }, + name: { kind: 'Name', value: 'transfer' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] + } + } + ] + } + } + ] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'asc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'amount' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'success' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'index_in_block' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'signer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'transfersById' }, + name: { kind: 'Name', value: 'transfer' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'amount' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'success' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'index_in_block' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'signer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetExtrinsicByHashQuery, + GetExtrinsicByHashQueryVariables +>; +export const GetWormholeExtrinsicByIdDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetWormholeExtrinsicById' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'wormholeExtrinsicById' }, + name: { kind: 'Name', value: 'wormhole_extrinsic_by_pk' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pallet' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'call' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_amount' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'output_count' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'privacy_score' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'privacy_score01_pct' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'privacy_score1_pct' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'privacy_score5_pct' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'privacy_label' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'pool_snapshot' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'height' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'timestamp' } + } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'outputs' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'exitAccount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'id' } + } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'amount' } } + ] + } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'wormholeNullifiers' }, + name: { kind: 'Name', value: 'wormhole_nullifier' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'wormholeExtrinsic' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'id' } + } + } + ] + } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'nullifier' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'nullifier_hash' } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetWormholeExtrinsicByIdQuery, + GetWormholeExtrinsicByIdQueryVariables +>; +export const BusyAccountsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'BusyAccounts' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account_stats' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: 'total_immediate_transfers' + }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_immediate_transfers' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_mined_blocks' } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const MinerAccountDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'MinerAccount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account_stats' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { kind: 'IntValue', value: '1' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'total_mined_blocks' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_mined_blocks' } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const DiscoveryIdsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'DiscoveryIds' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const HistoryCursorDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'HistoryCursor' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'accounts' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'String' } + } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account_event' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_and' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'account_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_in' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'accounts' + } + } + } + ] + } + } + ] + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: 'scheduled_reversible_transfer_id' + }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_is_null' }, + value: { + kind: 'BooleanValue', + value: true + } + } + ] + } + } + ] + } + ] + } + } + ] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const HistoryDeepCursorDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'HistoryDeepCursor' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'accounts' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'String' } + } + } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account_event' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { kind: 'IntValue', value: '1' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { kind: 'IntValue', value: '2000' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_and' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'account_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_in' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'accounts' + } + } + } + ] + } + } + ] + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: 'scheduled_reversible_transfer_id' + }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_is_null' }, + value: { + kind: 'BooleanValue', + value: true + } + } + ] + } + } + ] + } + ] + } + } + ] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + HistoryDeepCursorQuery, + HistoryDeepCursorQueryVariables +>; +export const MinerHistoryCursorDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'MinerHistoryCursor' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'accounts' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'String' } + } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'account_event' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_and' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'account_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_in' }, + value: { + kind: 'Variable', + name: { + kind: 'Name', + value: 'accounts' + } + } + } + ] + } + } + ] + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { + kind: 'Name', + value: 'scheduled_reversible_transfer_id' + }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_is_null' }, + value: { + kind: 'BooleanValue', + value: true + } + } + ] + } + } + ] + } + ] + } + } + ] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + MinerHistoryCursorQuery, + MinerHistoryCursorQueryVariables +>; +export const SampleTransferDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'SampleTransfer' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'transfer' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { kind: 'IntValue', value: '1' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'extrinsic_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_is_null' }, + value: { kind: 'BooleanValue', value: false } + } + ] + } + } + ] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'from_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'to_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'amount' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block_height' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const SampleScheduledDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'SampleScheduled' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'scheduled_reversible_transfer' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { kind: 'IntValue', value: '1' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'from' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'to' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + }, + { kind: 'Field', name: { kind: 'Name', value: 'amount' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'block' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'height' } } + ] + } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + SampleScheduledQuery, + SampleScheduledQueryVariables +>; +export const SampleExecutedDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'SampleExecuted' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'executed_reversible_transfer' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { kind: 'IntValue', value: '1' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const SampleWormholeRecipientDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'SampleWormholeRecipient' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'transfer' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { kind: 'IntValue', value: '1' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'leaf_index' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gt' }, + value: { + kind: 'StringValue', + value: '0', + block: false + } + } + ] + } + } + ] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'transfer_count' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'to_id' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + SampleWormholeRecipientQuery, + SampleWormholeRecipientQueryVariables +>; +export const WormholeCursorDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'WormholeCursor' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', name: { kind: 'Name', value: 'tos' } }, + type: { + kind: 'NonNullType', + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'String' } + } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'transfer' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'to_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_in' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'tos' } + } + } + ] + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'block_height' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gt' }, + value: { kind: 'IntValue', value: '0' } + } + ] + } + } + ] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ListValue', + values: [ + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'block_height' }, + value: { kind: 'EnumValue', value: 'asc' } + } + ] + }, + { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'id' }, + value: { kind: 'EnumValue', value: 'asc' } + } + ] + } + ] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'block_height' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const SampleNullifiersDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'SampleNullifiers' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'wormhole_nullifier' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'nullifier_hash' } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + SampleNullifiersQuery, + SampleNullifiersQueryVariables +>; +export const SampleMultisigDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'SampleMultisig' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { kind: 'IntValue', value: '1' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'signers' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const SampleProposalDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'SampleProposal' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig_proposal' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { kind: 'IntValue', value: '1' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'updated_at' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'proposal_id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'multisig_id' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode; +export const SampleProposalCreatedDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'SampleProposalCreated' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig_proposal_created' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { kind: 'IntValue', value: '1' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + SampleProposalCreatedQuery, + SampleProposalCreatedQueryVariables +>; +export const SampleSignerApprovedDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'SampleSignerApproved' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'multisig_signer_approved' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { kind: 'IntValue', value: '1' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + SampleSignerApprovedQuery, + SampleSignerApprovedQueryVariables +>; +export const SampleProposalExecutedDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'SampleProposalExecuted' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'executed_multisig_proposal' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { kind: 'IntValue', value: '1' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + SampleProposalExecutedQuery, + SampleProposalExecutedQueryVariables +>; +export const SampleProposalCancelledDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'SampleProposalCancelled' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'cancelled_multisig_proposal' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { kind: 'IntValue', value: '1' } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'desc' } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + SampleProposalCancelledQuery, + SampleProposalCancelledQueryVariables +>; +export const GetTransactionsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetTransactions' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'transfer_order_by' } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'transfer_bool_exp' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'transactions' }, + name: { kind: 'Name', value: 'transfer' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'extrinsic' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetTransactionsQuery, + GetTransactionsQueryVariables +>; +export const GetCancelledReversibleTransactionsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetCancelledReversibleTransactions' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'cancelled_reversible_transfer_order_by' + } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'cancelled_reversible_transfer_bool_exp' + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'cancelledReversibleTransactions' }, + name: { kind: 'Name', value: 'cancelled_reversible_transfer' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetCancelledReversibleTransactionsQuery, + GetCancelledReversibleTransactionsQueryVariables +>; +export const GetExecutedReversibleTransactionsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetExecutedReversibleTransactions' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'executed_reversible_transfer_order_by' + } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'executed_reversible_transfer_bool_exp' + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'executedReversibleTransactions' }, + name: { kind: 'Name', value: 'executed_reversible_transfer' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetExecutedReversibleTransactionsQuery, + GetExecutedReversibleTransactionsQueryVariables +>; +export const GetScheduledReversibleTransactionsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetScheduledReversibleTransactions' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'scheduled_reversible_transfer_order_by' + } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { + kind: 'Name', + value: 'scheduled_reversible_transfer_bool_exp' + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'scheduledReversibleTransactions' }, + name: { kind: 'Name', value: 'scheduled_reversible_transfer' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetScheduledReversibleTransactionsQuery, + GetScheduledReversibleTransactionsQueryVariables +>; +export const GetWormholeExtrinsicsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetWormholeExtrinsics' }, + variableDefinitions: [ + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + }, + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'ListType', + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'wormhole_extrinsic_order_by' } + } + } + } + } + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + }, + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'wormhole_extrinsic_bool_exp' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'wormholeExtrinsics' }, + name: { kind: 'Name', value: 'wormhole_extrinsic' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'limit' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'limit' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'offset' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'offset' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'order_by' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } } + ] + } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetWormholeExtrinsicsQuery, + GetWormholeExtrinsicsQueryVariables +>; diff --git a/src/__generated__/index.ts b/src/__generated__/index.ts index f515991..c682b1e 100644 --- a/src/__generated__/index.ts +++ b/src/__generated__/index.ts @@ -1,2 +1,2 @@ -export * from "./fragment-masking"; -export * from "./gql"; \ No newline at end of file +export * from './fragment-masking'; +export * from './gql'; diff --git a/src/api/accounts.tsx b/src/api/accounts.tsx index 046bb50..0a3a35c 100644 --- a/src/api/accounts.tsx +++ b/src/api/accounts.tsx @@ -29,6 +29,7 @@ export const accounts = { free frozen reserved + is_deposit_only is_high_security is_guardian is_multisig @@ -59,6 +60,7 @@ export const accounts = { free frozen reserved + is_deposit_only } accountStats: account_stats_by_pk(id: $id) { total_cancelled_transfers diff --git a/src/api/chain-status.tsx b/src/api/chain-status.tsx index 15bb8f3..12da33e 100644 --- a/src/api/chain-status.tsx +++ b/src/api/chain-status.tsx @@ -9,11 +9,15 @@ import type { } from '@/schemas'; import { HOME_STATS_DAY_COUNT } from '@/utils/get-home-stats-day-windows'; import { useGetRecentDateRange } from '@/utils/get-recent-date-range'; -import { withExcludedRewardTransfers } from '@/utils/unified-transaction-filters'; +import { + last24HourTransferredWhere, + withExcludedRewardTransfers +} from '@/utils/unified-transaction-filters'; const GET_HOME_STATS = gql` query GetHomeChainStats( $last24HourWhere: unified_transaction_bool_exp! + $last24HourTransferredWhere: unified_transaction_bool_exp! $dayLimit: Int! ) { status: chain_stats_by_pk(id: "global") { @@ -24,18 +28,32 @@ const GET_HOME_STATS = gql` total_scheduled_transfers total_executed_transfers total_cancelled_transfers + circulating_supply + max_supply + total_supply + total_transferred_amount } last24Hour: unified_transaction_aggregate(where: $last24HourWhere) { aggregate { count } } + last24HourTransferred: unified_transaction_aggregate( + where: $last24HourTransferredWhere + ) { + aggregate { + sum { + amount + } + } + } dailyStats: daily_chain_stats(order_by: { date: desc }, limit: $dayLimit) { id date blocks_count tx_count active_accounts + transferred_amount } } `; @@ -74,7 +92,12 @@ export const chainStatus = { last24HourWhere: withExcludedRewardTransfers({ timestamp: { _gte: startDate, _lte: endDate } }), - dayLimit: HOME_STATS_DAY_COUNT + last24HourTransferredWhere: last24HourTransferredWhere( + startDate, + endDate + ), + // One extra row covers the in-progress UTC day, which the sparkline drops. + dayLimit: HOME_STATS_DAY_COUNT + 1 }), [endDate, startDate] ); diff --git a/src/api/index.tsx b/src/api/index.tsx index 4a399b6..3daa095 100644 --- a/src/api/index.tsx +++ b/src/api/index.tsx @@ -22,6 +22,7 @@ import { scheduledReversibleTransactions } from './scheduled-reversible-transact import { search } from './search'; import { transactions } from './transactions'; import { unifiedTransactions } from './unified-transactions'; +import { vestingSchedules } from './vesting-schedules'; import { wormhole } from './wormhole'; const useApiClient = () => { @@ -50,7 +51,8 @@ const useApiClient = () => { multisigProposalExecuted, multisigProposalCancelled, multisigProposalRemoved, - multisigDepositsClaimed + multisigDepositsClaimed, + vestingSchedules }; return api; diff --git a/src/api/vesting-schedules.tsx b/src/api/vesting-schedules.tsx new file mode 100644 index 0000000..5dcf0b4 --- /dev/null +++ b/src/api/vesting-schedules.tsx @@ -0,0 +1,133 @@ +import type { QueryHookOptions } from '@apollo/client'; +import { gql, useQuery } from '@apollo/client'; + +import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; +import type { VestingScheduleSorts } from '@/constants/query-sorts'; +import type { + VestingScheduleChartResponse, + VestingScheduleListResponse, + VestingScheduleStatsResponse +} from '@/schemas'; +import type { PaginatedQueryVariables } from '@/types/query'; + +const GET_VESTING_SCHEDULE_STATS = gql` + query GetVestingScheduleStats { + meta: vesting_schedule_aggregate { + aggregate { + count + sum { + total + claimed + } + } + } + } +`; + +const GET_VESTING_SCHEDULE_CHART = gql` + query GetVestingScheduleChart($limit: Int!) { + schedules: vesting_schedule(limit: $limit) { + id + start + cliff + end + total + } + } +`; + +const GET_VESTING_SCHEDULES = gql` + query GetVestingSchedules( + $limit: Int + $offset: Int + $orderBy: [vesting_schedule_order_by!] + ) { + schedules: vesting_schedule( + limit: $limit + offset: $offset + order_by: $orderBy + ) { + id + beneficiary + total + claimed + start + cliff + end + last_claim_at + } + meta: vesting_schedule_aggregate { + aggregate { + totalCount: count + } + } + } +`; + +export const vestingSchedules = { + useGetStats: ( + config?: Omit, 'variables'> + ) => + useQuery(GET_VESTING_SCHEDULE_STATS, config), + + useGetChartData: ( + config?: Omit, 'variables'> + ) => { + const stats = useQuery( + GET_VESTING_SCHEDULE_STATS, + config + ); + const count = stats.data?.meta.aggregate?.count; + const rows = useQuery( + GET_VESTING_SCHEDULE_CHART, + { + pollInterval: config?.pollInterval, + skip: typeof count !== 'number' || config?.skip, + variables: { limit: count ?? 0 } + } + ); + + const schedules = rows.data?.schedules; + const incomplete = + typeof count === 'number' && + schedules !== undefined && + schedules.length !== count; + + const error = + stats.error ?? + rows.error ?? + (incomplete + ? new Error( + `Vesting chart loaded ${schedules.length} of ${count} schedules` + ) + : undefined); + + const loading = + stats.loading || + (typeof count === 'number' && rows.loading && schedules === undefined); + + return { + schedules: incomplete ? undefined : schedules, + loading, + error + }; + }, + + useGetAll: ( + config?: QueryHookOptions< + VestingScheduleListResponse, + PaginatedQueryVariables + > + ) => + useQuery< + VestingScheduleListResponse, + PaginatedQueryVariables + >(GET_VESTING_SCHEDULES, { + ...config, + variables: { + orderBy: config?.variables?.orderBy ?? { cliff: 'desc' }, + limit: config?.variables?.limit ?? QUERY_DEFAULT_LIMIT, + offset: config?.variables?.offset ?? 0 + } + }) +}; diff --git a/src/components/common/table-columns/ACCOUNT_COLUMNS.tsx b/src/components/common/table-columns/ACCOUNT_COLUMNS.tsx index 86911ef..16dc13c 100644 --- a/src/components/common/table-columns/ACCOUNT_COLUMNS.tsx +++ b/src/components/common/table-columns/ACCOUNT_COLUMNS.tsx @@ -1,7 +1,8 @@ import { createColumnHelper } from '@tanstack/react-table'; import { Badge } from '@/components/ui/badge'; -import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; +import { AccountAddressLabel } from '@/components/ui/composites/account-address-label/AccountAddressLabel'; import { RESOURCES } from '@/constants/resources'; import type { AccountListItem } from '@/schemas'; import { formatMonetaryValue } from '@/utils/formatter'; @@ -13,10 +14,10 @@ export const ACCOUNT_COLUMNS = [ id: 'id', header: 'Address', cell: (props) => ( - ), enableSorting: false @@ -28,16 +29,21 @@ export const ACCOUNT_COLUMNS = [ const { is_high_security: isHighSec, is_guardian: isGuardian, - is_multisig: isMultisig + is_multisig: isMultisig, + is_deposit_only: isDepositOnly } = props.row.original; const hasFlags = isHighSec || isGuardian || isMultisig; + const addressLabel = ( + + ); if (!hasFlags) { - return ( - - Standard - - ); + return addressLabel; } return ( @@ -45,6 +51,7 @@ export const ACCOUNT_COLUMNS = [ {isHighSec && High Sec} {isGuardian && Guardian} {isMultisig && Multisig} + {addressLabel} ); }, diff --git a/src/components/common/table-columns/BLOCK_COLUMNS.tsx b/src/components/common/table-columns/BLOCK_COLUMNS.tsx index 253d790..4fd790b 100644 --- a/src/components/common/table-columns/BLOCK_COLUMNS.tsx +++ b/src/components/common/table-columns/BLOCK_COLUMNS.tsx @@ -1,5 +1,6 @@ import { createColumnHelper } from '@tanstack/react-table'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; import { RESOURCES } from '@/constants/resources'; @@ -63,10 +64,10 @@ export const BLOCK_COLUMNS = [ const id = props.getValue(); if (!id) return —; return ( - ); diff --git a/src/components/common/table-columns/ERROR_EVENT_COLUMNS.test.tsx b/src/components/common/table-columns/ERROR_EVENT_COLUMNS.test.tsx new file mode 100644 index 0000000..1faa577 --- /dev/null +++ b/src/components/common/table-columns/ERROR_EVENT_COLUMNS.test.tsx @@ -0,0 +1,38 @@ +import type { CellContext } from '@tanstack/react-table'; + +import type { ErrorEvent } from '@/schemas'; + +import { ERROR_EVENT_COLUMNS } from './ERROR_EVENT_COLUMNS'; + +type DocsCell = ( + props: CellContext +) => string; + +function docsColumn() { + const column = ERROR_EVENT_COLUMNS.find((col) => col.id === 'errorDocs'); + if (!column || typeof column.cell !== 'function') { + throw new Error('errorDocs column is missing'); + } + return column; +} + +function docsCell(errorDocs: string | null | undefined) { + const cell = docsColumn().cell as DocsCell; + + return cell({ + getValue: () => errorDocs + } as CellContext); +} + +describe('ERROR_EVENT_COLUMNS error docs', () => { + it('shows the error docs value', () => { + expect(docsColumn().header).toBe('Docs'); + expect(docsCell('The account balance is too low.')).toBe( + 'The account balance is too low.' + ); + }); + + it('shows a dash when error docs are missing', () => { + expect(docsCell(null)).toBe('-'); + }); +}); diff --git a/src/components/common/table-columns/ERROR_EVENT_COLUMNS.tsx b/src/components/common/table-columns/ERROR_EVENT_COLUMNS.tsx index 03c846a..9281173 100644 --- a/src/components/common/table-columns/ERROR_EVENT_COLUMNS.tsx +++ b/src/components/common/table-columns/ERROR_EVENT_COLUMNS.tsx @@ -49,6 +49,12 @@ export const ERROR_EVENT_COLUMNS = [ cell: (props) => props.getValue() ?? '-', enableSorting: true }), + columnHelper.accessor('error_docs', { + id: 'errorDocs', + header: 'Docs', + cell: (props) => props.getValue() ?? '-', + enableSorting: false + }), columnHelper.accessor('timestamp', { id: 'timestamp', header: 'Timestamp', diff --git a/src/components/common/table-columns/EXTRINSIC_COLUMNS.tsx b/src/components/common/table-columns/EXTRINSIC_COLUMNS.tsx index 34723a1..fc0b77f 100644 --- a/src/components/common/table-columns/EXTRINSIC_COLUMNS.tsx +++ b/src/components/common/table-columns/EXTRINSIC_COLUMNS.tsx @@ -1,6 +1,7 @@ import { createColumnHelper } from '@tanstack/react-table'; import { Badge } from '@/components/ui/badge'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; import { RESOURCES } from '@/constants/resources'; @@ -66,10 +67,10 @@ export const createExtrinsicColumns = () => { ); } return ( - ); }, diff --git a/src/components/common/table-columns/EXTRINSIC_TRANSACTION_COLUMNS.tsx b/src/components/common/table-columns/EXTRINSIC_TRANSACTION_COLUMNS.tsx index 7f63b47..30cff4c 100644 --- a/src/components/common/table-columns/EXTRINSIC_TRANSACTION_COLUMNS.tsx +++ b/src/components/common/table-columns/EXTRINSIC_TRANSACTION_COLUMNS.tsx @@ -1,6 +1,6 @@ import { createColumnHelper } from '@tanstack/react-table'; -import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { RESOURCES } from '@/constants/resources'; import type { ExtrinsicTransfer } from '@/schemas'; import { formatMonetaryValue } from '@/utils/formatter'; @@ -15,11 +15,10 @@ export const EXTRINSIC_TRANSACTION_COLUMNS = [ const { id } = getValue(); return ( - ); }, @@ -32,11 +31,10 @@ export const EXTRINSIC_TRANSACTION_COLUMNS = [ const { id } = getValue(); return ( - ); }, diff --git a/src/components/common/table-columns/HIGH_SECURITY_SET_COLUMNS.tsx b/src/components/common/table-columns/HIGH_SECURITY_SET_COLUMNS.tsx index a7950f4..0ca8ac7 100644 --- a/src/components/common/table-columns/HIGH_SECURITY_SET_COLUMNS.tsx +++ b/src/components/common/table-columns/HIGH_SECURITY_SET_COLUMNS.tsx @@ -1,5 +1,6 @@ import { createColumnHelper } from '@tanstack/react-table'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; import { RESOURCES } from '@/constants/resources'; @@ -50,10 +51,10 @@ export const HIGH_SECURITY_SET_COLUMNS = [ id: 'who', header: 'Beneficiary', cell: (props) => ( - ), enableSorting: false @@ -62,10 +63,10 @@ export const HIGH_SECURITY_SET_COLUMNS = [ id: 'guardian', header: 'Guardian', cell: (props) => ( - ), enableSorting: false diff --git a/src/components/common/table-columns/MINER_LEADERBOARD_COLUMNS.tsx b/src/components/common/table-columns/MINER_LEADERBOARD_COLUMNS.tsx index 97787df..0facab1 100644 --- a/src/components/common/table-columns/MINER_LEADERBOARD_COLUMNS.tsx +++ b/src/components/common/table-columns/MINER_LEADERBOARD_COLUMNS.tsx @@ -1,6 +1,6 @@ import { createColumnHelper } from '@tanstack/react-table'; -import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { MINER_DISTRIBUTION_COLORS, MINER_DISTRIBUTION_OTHERS_COLOR @@ -72,9 +72,9 @@ export const getMinerLeaderboardColumns = ({ id: 'miner', header: 'Miner', cell: (props) => ( - ), diff --git a/src/components/common/table-columns/MINER_REWARD_COLUMNS.tsx b/src/components/common/table-columns/MINER_REWARD_COLUMNS.tsx index 6e11c82..81a79ba 100644 --- a/src/components/common/table-columns/MINER_REWARD_COLUMNS.tsx +++ b/src/components/common/table-columns/MINER_REWARD_COLUMNS.tsx @@ -1,5 +1,6 @@ import { createColumnHelper } from '@tanstack/react-table'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; import { RESOURCES } from '@/constants/resources'; @@ -40,9 +41,10 @@ export const MINER_REWARD_COLUMNS = [ id: 'miner', header: 'Mined by', cell: (props) => ( - ), enableSorting: false diff --git a/src/components/common/table-columns/MULTISIG_CREATED_COLUMNS.tsx b/src/components/common/table-columns/MULTISIG_CREATED_COLUMNS.tsx index 71aec3b..4c10856 100644 --- a/src/components/common/table-columns/MULTISIG_CREATED_COLUMNS.tsx +++ b/src/components/common/table-columns/MULTISIG_CREATED_COLUMNS.tsx @@ -1,5 +1,6 @@ import { createColumnHelper } from '@tanstack/react-table'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; import { RESOURCES } from '@/constants/resources'; @@ -16,10 +17,10 @@ export const MULTISIG_CREATED_COLUMNS = [ cell: (props) => { const walletId = props.getValue(); return walletId ? ( - ) : ( '-' @@ -61,10 +62,10 @@ export const MULTISIG_CREATED_COLUMNS = [ header: 'Creator', cell: (props) => props.getValue() ? ( - ) : ( '-' diff --git a/src/components/common/table-columns/MULTISIG_DEPOSITS_CLAIMED_COLUMNS.tsx b/src/components/common/table-columns/MULTISIG_DEPOSITS_CLAIMED_COLUMNS.tsx index af407d6..e5b7577 100644 --- a/src/components/common/table-columns/MULTISIG_DEPOSITS_CLAIMED_COLUMNS.tsx +++ b/src/components/common/table-columns/MULTISIG_DEPOSITS_CLAIMED_COLUMNS.tsx @@ -1,5 +1,6 @@ import { createColumnHelper } from '@tanstack/react-table'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; import { RESOURCES } from '@/constants/resources'; @@ -48,10 +49,10 @@ export const MULTISIG_DEPOSITS_CLAIMED_COLUMNS = [ header: 'Multisig', cell: (props) => props.getValue() ? ( - ) : ( '-' @@ -63,10 +64,10 @@ export const MULTISIG_DEPOSITS_CLAIMED_COLUMNS = [ header: 'Claimer', cell: (props) => props.getValue() ? ( - ) : ( '-' diff --git a/src/components/common/table-columns/MULTISIG_PROPOSAL_CANCELLED_COLUMNS.tsx b/src/components/common/table-columns/MULTISIG_PROPOSAL_CANCELLED_COLUMNS.tsx index 40687bd..b846204 100644 --- a/src/components/common/table-columns/MULTISIG_PROPOSAL_CANCELLED_COLUMNS.tsx +++ b/src/components/common/table-columns/MULTISIG_PROPOSAL_CANCELLED_COLUMNS.tsx @@ -1,5 +1,6 @@ import { createColumnHelper } from '@tanstack/react-table'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { ProposalIdLink } from '@/components/ui/composites/proposal-id-link/ProposalIdLink'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; @@ -51,10 +52,10 @@ export const MULTISIG_PROPOSAL_CANCELLED_COLUMNS = [ header: 'Cancelled By', cell: (props) => props.getValue() ? ( - ) : ( '-' diff --git a/src/components/common/table-columns/MULTISIG_PROPOSAL_COLUMNS.tsx b/src/components/common/table-columns/MULTISIG_PROPOSAL_COLUMNS.tsx index f3a305c..87aef44 100644 --- a/src/components/common/table-columns/MULTISIG_PROPOSAL_COLUMNS.tsx +++ b/src/components/common/table-columns/MULTISIG_PROPOSAL_COLUMNS.tsx @@ -1,6 +1,7 @@ import { createColumnHelper } from '@tanstack/react-table'; import { Badge, type BadgeProps } from '@/components/ui/badge'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; import { RESOURCES } from '@/constants/resources'; @@ -66,10 +67,10 @@ export const MULTISIG_PROPOSAL_COLUMNS = [ header: 'Wallet', cell: (props) => props.getValue() ? ( - ) : ( '-' @@ -81,10 +82,10 @@ export const MULTISIG_PROPOSAL_COLUMNS = [ header: 'Proposer', cell: (props) => props.getValue() ? ( - ) : ( '-' diff --git a/src/components/common/table-columns/MULTISIG_PROPOSAL_CREATED_COLUMNS.tsx b/src/components/common/table-columns/MULTISIG_PROPOSAL_CREATED_COLUMNS.tsx index 250c10c..3a27927 100644 --- a/src/components/common/table-columns/MULTISIG_PROPOSAL_CREATED_COLUMNS.tsx +++ b/src/components/common/table-columns/MULTISIG_PROPOSAL_CREATED_COLUMNS.tsx @@ -1,5 +1,6 @@ import { createColumnHelper } from '@tanstack/react-table'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { ProposalIdLink } from '@/components/ui/composites/proposal-id-link/ProposalIdLink'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; @@ -52,10 +53,10 @@ export const MULTISIG_PROPOSAL_CREATED_COLUMNS = [ header: 'Multisig', cell: (props) => props.getValue() ? ( - ) : ( '-' @@ -67,10 +68,10 @@ export const MULTISIG_PROPOSAL_CREATED_COLUMNS = [ header: 'Proposer', cell: (props) => props.getValue() ? ( - ) : ( '-' diff --git a/src/components/common/table-columns/MULTISIG_PROPOSAL_REMOVED_COLUMNS.tsx b/src/components/common/table-columns/MULTISIG_PROPOSAL_REMOVED_COLUMNS.tsx index 6edb57b..fa575f1 100644 --- a/src/components/common/table-columns/MULTISIG_PROPOSAL_REMOVED_COLUMNS.tsx +++ b/src/components/common/table-columns/MULTISIG_PROPOSAL_REMOVED_COLUMNS.tsx @@ -1,5 +1,6 @@ import { createColumnHelper } from '@tanstack/react-table'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { ProposalIdLink } from '@/components/ui/composites/proposal-id-link/ProposalIdLink'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; @@ -52,10 +53,10 @@ export const MULTISIG_PROPOSAL_REMOVED_COLUMNS = [ header: 'Removed By', cell: (props) => props.getValue() ? ( - ) : ( '-' diff --git a/src/components/common/table-columns/MULTISIG_SIGNER_APPROVED_COLUMNS.tsx b/src/components/common/table-columns/MULTISIG_SIGNER_APPROVED_COLUMNS.tsx index c37f135..4aa2bb1 100644 --- a/src/components/common/table-columns/MULTISIG_SIGNER_APPROVED_COLUMNS.tsx +++ b/src/components/common/table-columns/MULTISIG_SIGNER_APPROVED_COLUMNS.tsx @@ -1,5 +1,6 @@ import { createColumnHelper } from '@tanstack/react-table'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { ProposalIdLink } from '@/components/ui/composites/proposal-id-link/ProposalIdLink'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; @@ -44,10 +45,10 @@ export const MULTISIG_SIGNER_APPROVED_COLUMNS = [ header: 'Approver', cell: (props) => props.getValue() ? ( - ) : ( '-' diff --git a/src/components/common/table-columns/TRANSACTION_COLUMNS.tsx b/src/components/common/table-columns/TRANSACTION_COLUMNS.tsx index 888e89e..3b73cd8 100644 --- a/src/components/common/table-columns/TRANSACTION_COLUMNS.tsx +++ b/src/components/common/table-columns/TRANSACTION_COLUMNS.tsx @@ -1,15 +1,16 @@ import { createColumnHelper } from '@tanstack/react-table'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; import { RESOURCES } from '@/constants/resources'; import type { Transaction } from '@/schemas'; -import { getExtrinsicDetailPath } from '@/utils/get-extrinsic-detail-path'; import { formatBlockHeight, formatMonetaryValue, formatTxAddress } from '@/utils/formatter'; +import { getExtrinsicDetailPath } from '@/utils/get-extrinsic-detail-path'; const columnHelper = createColumnHelper(); @@ -19,7 +20,7 @@ export const TRANSACTION_COLUMNS = [ header: 'Hash', cell: (props) => { const extrinsicId = props.getValue(); - const extrinsic = props.row.original.extrinsic; + const { extrinsic } = props.row.original; if (!extrinsicId || !extrinsic?.pallet || !extrinsic?.call) { return 'Is not available'; @@ -61,10 +62,10 @@ export const TRANSACTION_COLUMNS = [ id: 'from', header: 'From', cell: (props) => ( - ), enableSorting: false @@ -73,10 +74,10 @@ export const TRANSACTION_COLUMNS = [ id: 'to', header: 'To', cell: (props) => ( - ), enableSorting: false diff --git a/src/components/common/table-columns/UNIFIED_LIST_TRANSACTION_COLUMNS.tsx b/src/components/common/table-columns/UNIFIED_LIST_TRANSACTION_COLUMNS.tsx index 66170b0..c2d38e1 100644 --- a/src/components/common/table-columns/UNIFIED_LIST_TRANSACTION_COLUMNS.tsx +++ b/src/components/common/table-columns/UNIFIED_LIST_TRANSACTION_COLUMNS.tsx @@ -2,6 +2,7 @@ import { createColumnHelper } from '@tanstack/react-table'; import type { VariantProps } from 'class-variance-authority'; import { Badge, type badgeVariants } from '@/components/ui/badge'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; import { RESOURCES } from '@/constants/resources'; @@ -78,10 +79,10 @@ export const UNIFIED_LIST_TRANSACTION_COLUMNS = [ const id = props.getValue(); if (!id) return —; return ( - ); @@ -95,10 +96,10 @@ export const UNIFIED_LIST_TRANSACTION_COLUMNS = [ const id = props.getValue(); if (!id) return —; return ( - ); diff --git a/src/components/common/table-columns/VESTING_SCHEDULE_COLUMNS.tsx b/src/components/common/table-columns/VESTING_SCHEDULE_COLUMNS.tsx new file mode 100644 index 0000000..b7daacb --- /dev/null +++ b/src/components/common/table-columns/VESTING_SCHEDULE_COLUMNS.tsx @@ -0,0 +1,98 @@ +import { createColumnHelper } from '@tanstack/react-table'; + +import { InlineFetchError } from '@/components/ui/composites/fetch-error/FetchError'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; +import { TimestampDisplay } from '@/components/ui/timestamp-display'; +import { RESOURCES } from '@/constants/resources'; +import type { VestingScheduleListItem } from '@/schemas'; +import { formatMonetaryValue } from '@/utils/formatter'; +import { vestedAmount, vestingMsToDate } from '@/utils/vesting-schedule'; + +const columnHelper = createColumnHelper(); + +const timestampCell = (value: string | null | undefined, format?: string) => { + if (!value) return '—'; + + try { + return ( + + ); + } catch (error) { + return ( + + ); + } +}; + +export const VESTING_SCHEDULE_COLUMNS = [ + columnHelper.accessor('beneficiary', { + id: 'beneficiary', + header: 'Beneficiary', + cell: (props) => { + const address = props.getValue(); + if (!address) return '-'; + return ( + + ); + }, + enableSorting: true + }), + columnHelper.accessor('total', { + id: 'total', + header: 'Total', + cell: (props) => formatMonetaryValue(props.getValue(), 2), + enableSorting: true + }), + columnHelper.accessor('claimed', { + id: 'claimed', + header: 'Claimed', + cell: (props) => formatMonetaryValue(props.getValue(), 2), + enableSorting: true + }), + columnHelper.display({ + id: 'unlocked', + header: 'Unlocked', + cell: ({ row }) => { + try { + return formatMonetaryValue( + vestedAmount(row.original, BigInt(Date.now())), + 2 + ); + } catch (error) { + return ( + + ); + } + }, + enableSorting: false + }), + columnHelper.accessor('cliff', { + id: 'cliff', + header: 'Cliff', + cell: (props) => timestampCell(props.getValue(), 'MM/dd/yyyy'), + enableSorting: true + }), + columnHelper.accessor('end', { + id: 'end', + header: 'End', + cell: (props) => timestampCell(props.getValue(), 'MM/dd/yyyy'), + enableSorting: true + }), + columnHelper.accessor('last_claim_at', { + id: 'last_claim_at', + header: 'Last claim', + cell: (props) => timestampCell(props.getValue()), + enableSorting: true + }) +]; diff --git a/src/components/features/account-details/account-information/AccountInformation.tsx b/src/components/features/account-details/account-information/AccountInformation.tsx index 537ee3e..81dd637 100644 --- a/src/components/features/account-details/account-information/AccountInformation.tsx +++ b/src/components/features/account-details/account-information/AccountInformation.tsx @@ -3,7 +3,9 @@ import { Link } from '@tanstack/react-router'; import * as React from 'react'; import { Badge } from '@/components/ui/badge'; +import { AccountAddressLabel } from '@/components/ui/composites/account-address-label/AccountAddressLabel'; import { DataList } from '@/components/ui/composites/data-list/DataList'; +import { InlineFetchError } from '@/components/ui/composites/fetch-error/FetchError'; import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; import { Skeleton } from '@/components/ui/skeleton'; import { useChecksum } from '@/hooks/useChecksum'; @@ -11,6 +13,8 @@ import type { AccountResponse } from '@/schemas'; import { formatMonetaryValue } from '@/utils/formatter'; import { getMultisigWalletHref } from '@/utils/get-multisig-wallet-href'; +import { accountBalanceOrZero } from './account-balance-or-zero'; + export interface AccountInformationProps { accountId: string; query: QueryResult; @@ -18,15 +22,16 @@ export interface AccountInformationProps { interface AccountDetailsInfo { id: string; - free: number; - frozen: number; - reserved: number; + free: string; + frozen: string; + reserved: string; transactions: number; miningRewards: number; checksum: string; isHighSecurity: boolean; isGuardian: boolean; isMultisig: boolean; + isDepositOnly: boolean | null; } export const AccountInformation: React.FC = ({ @@ -36,10 +41,11 @@ export const AccountInformation: React.FC = ({ const { data, loading } = query; const account = data?.account; - const { checksum, loading: checksumLoading } = useChecksum( - loading, - accountId - ); + const { + checksum, + loading: checksumLoading, + error: checksumError + } = useChecksum(loading, accountId); const stats = data?.accountStats; const transactions = @@ -55,15 +61,16 @@ export const AccountInformation: React.FC = ({ const information: AccountDetailsInfo[] = [ { id: accountId, - free: account?.free ?? 0, - frozen: account?.frozen ?? 0, - reserved: account?.reserved ?? 0, + free: accountBalanceOrZero(account?.free), + frozen: accountBalanceOrZero(account?.frozen), + reserved: accountBalanceOrZero(account?.reserved), transactions, miningRewards, checksum: checksum ?? '', isHighSecurity, isGuardian, - isMultisig + isMultisig, + isDepositOnly: account?.is_deposit_only ?? null } ]; @@ -80,12 +87,18 @@ export const AccountInformation: React.FC = ({ { label: 'Check Phrase', key: 'checksum', - render: (value) => - checksumLoading ? ( - - ) : ( - - ) + render: (value) => { + if (checksumLoading) return ; + if (checksumError) { + return ( + + ); + } + return ; + } }, { label: 'Account type', @@ -117,15 +130,22 @@ export const AccountInformation: React.FC = ({ ); } + const addressLabel = ( + + ); if (badges.length === 0) { - return ( - - Standard - - ); + return addressLabel; } return ( -
{badges}
+
+ {badges} + {addressLabel} +
); } }, diff --git a/src/components/features/account-details/account-information/account-balance-or-zero.test.ts b/src/components/features/account-details/account-information/account-balance-or-zero.test.ts new file mode 100644 index 0000000..78dd26b --- /dev/null +++ b/src/components/features/account-details/account-information/account-balance-or-zero.test.ts @@ -0,0 +1,9 @@ +import { formatMonetaryValue } from '@/utils/formatter'; + +import { accountBalanceOrZero } from './account-balance-or-zero'; + +describe('accountBalanceOrZero', () => { + it('formats a missing Subsquid balance as zero QTC', () => { + expect(formatMonetaryValue(accountBalanceOrZero(null))).toBe('0 QTC'); + }); +}); diff --git a/src/components/features/account-details/account-information/account-balance-or-zero.ts b/src/components/features/account-details/account-information/account-balance-or-zero.ts new file mode 100644 index 0000000..1fa0716 --- /dev/null +++ b/src/components/features/account-details/account-information/account-balance-or-zero.ts @@ -0,0 +1 @@ +export const accountBalanceOrZero = (value?: string | null) => value ?? '0'; diff --git a/src/components/features/account-details/index.tsx b/src/components/features/account-details/index.tsx index 11b020b..af5b086 100644 --- a/src/components/features/account-details/index.tsx +++ b/src/components/features/account-details/index.tsx @@ -4,7 +4,7 @@ import * as React from 'react'; import useApiClient from '@/api'; import { ContentContainer } from '@/components/ui/content-container'; import { SectionContainer } from '@/components/ui/section-container'; -import { validateAccountId } from '@/utils/validate-account-id'; +import { isUnknownAccountNotFound } from '@/utils/is-unknown-account-not-found'; import { AccountAllTransactions } from './account-all-transactions/AccountAllTransactions'; import { AccountInformation } from './account-information/AccountInformation'; @@ -15,11 +15,18 @@ interface Props { export const AccountDetails: React.FC = ({ id }) => { const api = useApiClient(); - const isAccountValid = validateAccountId(id); const query = api.accounts.getById().useQuery(id); const { loading, data } = query; - if (!loading && !data?.account && !isAccountValid) throw notFound(); + if ( + isUnknownAccountNotFound({ + loading, + account: data?.account, + accountId: id + }) + ) { + throw notFound(); + } return ( diff --git a/src/components/features/block-details/block-information/BlockInformation.test.tsx b/src/components/features/block-details/block-information/BlockInformation.test.tsx new file mode 100644 index 0000000..be9890e --- /dev/null +++ b/src/components/features/block-details/block-information/BlockInformation.test.tsx @@ -0,0 +1,90 @@ +import type { QueryResult } from '@apollo/client'; +import { JSDOM } from 'jsdom'; +import { render } from '@testing-library/react'; + +import type { BlockResponse } from '@/schemas'; + +import { BlockInformation } from './BlockInformation'; + +const dom = new JSDOM(''); +Object.assign(globalThis, { + window: dom.window, + document: dom.window.document, + HTMLElement: dom.window.HTMLElement, + Element: dom.window.Element, + Node: dom.window.Node, + navigator: dom.window.navigator, + IS_REACT_ACT_ENVIRONMENT: true +}); + +function blockQuery( + overrides: Pick, 'loading'> & { + data?: BlockResponse; + } +) { + return overrides as QueryResult; +} + +const block = { + id: '1', + hash: '0xabc', + height: 10, + timestamp: '2026-01-01T00:00:00.000Z', + reward: '0', + mined_by_id: null, + extrinsics: [] +}; + +describe('BlockInformation treasury reward', () => { + it('omits treasury reward while the block is loading', () => { + const view = render( + + ); + + expect(view.queryByText('Treasury reward')).toBeNull(); + expect(view.getByText('Miner reward')).toBeTruthy(); + }); + + it('omits treasury reward when the block has none', () => { + const view = render( + + ); + + expect(view.queryByText('Treasury reward')).toBeNull(); + expect(view.getByText('Miner reward')).toBeTruthy(); + }); + + it('renders treasury reward when the block includes one', () => { + const view = render( + + ); + + expect(view.getByText('Treasury reward')).toBeTruthy(); + expect(view.getByText('1 QTC')).toBeTruthy(); + }); +}); diff --git a/src/components/features/block-details/block-information/BlockInformation.tsx b/src/components/features/block-details/block-information/BlockInformation.tsx index d8c34bf..4d083cf 100644 --- a/src/components/features/block-details/block-information/BlockInformation.tsx +++ b/src/components/features/block-details/block-information/BlockInformation.tsx @@ -2,7 +2,7 @@ import type { QueryResult } from '@apollo/client'; import * as React from 'react'; import { DataList } from '@/components/ui/composites/data-list/DataList'; -import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; import { RESOURCES } from '@/constants/resources'; @@ -60,6 +60,7 @@ export const BlockInformation: React.FC = ({ minerTransfer?.amount ?? (minerRewardFallback != null ? String(minerRewardFallback) : null); const treasuryReward = treasuryTransfer?.amount ?? null; + const showTreasuryReward = !loading && treasuryReward != null; const information: Partial[] = [ { @@ -105,11 +106,10 @@ export const BlockInformation: React.FC = ({ key: 'miner', render: (value) => value ? ( - ) : ( "Miner address isn't registered." @@ -120,11 +120,15 @@ export const BlockInformation: React.FC = ({ key: 'minerReward', render: (value) => formatRewardAmount(value as string | null) }, - { - label: 'Treasury reward', - key: 'treasuryReward', - render: (value) => formatRewardAmount(value as string | null) - }, + ...(showTreasuryReward + ? [ + { + label: 'Treasury reward', + key: 'treasuryReward' as const, + render: (value: string | null) => formatRewardAmount(value) + } + ] + : []), { label: 'Time', key: 'timestamp', diff --git a/src/components/features/cancelled-reversible-transaction-details/cancelled-reversible-transaction-information/CancelledReversibleTransactionInformation.tsx b/src/components/features/cancelled-reversible-transaction-details/cancelled-reversible-transaction-information/CancelledReversibleTransactionInformation.tsx index 6b03305..84d7abe 100644 --- a/src/components/features/cancelled-reversible-transaction-details/cancelled-reversible-transaction-information/CancelledReversibleTransactionInformation.tsx +++ b/src/components/features/cancelled-reversible-transaction-details/cancelled-reversible-transaction-information/CancelledReversibleTransactionInformation.tsx @@ -3,6 +3,7 @@ import * as React from 'react'; import useApiClient from '@/api'; import { DataList } from '@/components/ui/composites/data-list/DataList'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; @@ -81,8 +82,8 @@ export const CancelledReversibleTransactionInformation: React.FC< label: 'Cancelled By', key: 'cancelledBy', render: (value) => ( - @@ -92,8 +93,8 @@ export const CancelledReversibleTransactionInformation: React.FC< label: 'From', key: 'scheduledTransfer', render: (value) => ( - @@ -103,8 +104,8 @@ export const CancelledReversibleTransactionInformation: React.FC< label: 'To', key: 'scheduledTransfer', render: (value) => ( - diff --git a/src/components/features/executed-reversible-transaction-details/executed-reversible-transaction-information/ExecutedReversibleTransactionInformation.tsx b/src/components/features/executed-reversible-transaction-details/executed-reversible-transaction-information/ExecutedReversibleTransactionInformation.tsx index 8a7b4c2..43de001 100644 --- a/src/components/features/executed-reversible-transaction-details/executed-reversible-transaction-information/ExecutedReversibleTransactionInformation.tsx +++ b/src/components/features/executed-reversible-transaction-details/executed-reversible-transaction-information/ExecutedReversibleTransactionInformation.tsx @@ -3,6 +3,7 @@ import * as React from 'react'; import useApiClient from '@/api'; import { DataList } from '@/components/ui/composites/data-list/DataList'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; @@ -72,8 +73,8 @@ export const ExecutedReversibleTransactionInformation: React.FC< label: 'From', key: 'scheduledTransfer', render: (value) => ( - @@ -83,8 +84,8 @@ export const ExecutedReversibleTransactionInformation: React.FC< label: 'To', key: 'scheduledTransfer', render: (value) => ( - diff --git a/src/components/features/high-security-set-details/high-security-set-information/HighSecuritySetInformation.tsx b/src/components/features/high-security-set-details/high-security-set-information/HighSecuritySetInformation.tsx index e8e555e..4eef09b 100644 --- a/src/components/features/high-security-set-details/high-security-set-information/HighSecuritySetInformation.tsx +++ b/src/components/features/high-security-set-details/high-security-set-information/HighSecuritySetInformation.tsx @@ -3,6 +3,7 @@ import * as React from 'react'; import useApiClient from '@/api'; import { DataList } from '@/components/ui/composites/data-list/DataList'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; @@ -89,9 +90,8 @@ export const HighSecuritySetInformation: React.FC< render: (value) => { const whoId = (value as HighSecuritySet['who'])?.id; return whoId ? ( - ) : ( @@ -106,9 +106,8 @@ export const HighSecuritySetInformation: React.FC< render: (value) => { const guardianId = (value as HighSecuritySet['guardian'])?.id; return guardianId ? ( - ) : ( diff --git a/src/components/features/landing/hero/chain-stats/ChainStats.tsx b/src/components/features/landing/hero/chain-stats/ChainStats.tsx index 5d48b84..32a1a8f 100644 --- a/src/components/features/landing/hero/chain-stats/ChainStats.tsx +++ b/src/components/features/landing/hero/chain-stats/ChainStats.tsx @@ -1,16 +1,55 @@ import React from 'react'; -import { CardGroup } from '@/components/ui/card'; +import { + Card, + CardContent, + CardGroup, + CardHeader, + CardTitle +} from '@/components/ui/card'; +import { InlineFetchError } from '@/components/ui/composites/fetch-error/FetchError'; import { StatSparklineCard } from '@/components/ui/composites/stat-sparkline-card'; +import { Skeleton } from '@/components/ui/skeleton'; +import { formatChainSupply } from './format-chain-supply'; import { useChainStats } from './hook'; const STROKE_FLARE = 'var(--flare)'; const STROKE_GLACIER = 'var(--glacier)'; const STROKE_MUTED = 'var(--muted-text)'; +const STROKE_SAGE = 'var(--sage)'; export interface ChainStatsProps {} +const SupplyStatCard = ({ + label, + value, + loading, + error +}: { + label: string; + value?: string; + loading: boolean; + error: string | null; +}) => { + return ( + + + +

{label}

+
+
+ + {loading && } + {!loading && error && } + {!loading && !error && value != null && ( +

{formatChainSupply(value)}

+ )} +
+
+ ); +}; + export const ChainStats: React.FC = () => { const { loading, @@ -21,45 +60,88 @@ export const ChainStats: React.FC = () => { activeAccounts, blocksPoints, transfersPoints, - activeAccountsPoints + activeAccountsPoints, + transferredPoints, + totalTransferred, + last24HourTransferred, + maxSupply, + totalSupply, + circulatingSupply } = useChainStats(); const errorMessage = error?.message ?? null; return ( - - +
+ + + + + + - + + - - + + + + + +
); }; diff --git a/src/components/features/landing/hero/chain-stats/align-daily-stats.test.ts b/src/components/features/landing/hero/chain-stats/align-daily-stats.test.ts new file mode 100644 index 0000000..b0abe1d --- /dev/null +++ b/src/components/features/landing/hero/chain-stats/align-daily-stats.test.ts @@ -0,0 +1,68 @@ +import type { DailyChainStatRow } from '@/schemas'; + +import { alignDailyStats } from './align-daily-stats'; + +const NOW = new Date('2026-09-28T15:30:00.000Z'); + +const row = ( + id: string, + counts: Pick< + DailyChainStatRow, + 'blocks_count' | 'tx_count' | 'active_accounts' | 'transferred_amount' + > +): DailyChainStatRow => ({ + id, + date: `${id}T00:00:00.000Z`, + ...counts +}); + +describe('alignDailyStats', () => { + it('omits the in-progress UTC day so the newest point is a full day', () => { + const aligned = alignDailyStats( + [ + row('2026-09-28', { + blocks_count: 40, + tx_count: 12, + active_accounts: 3, + transferred_amount: '10' + }), + row('2026-09-27', { + blocks_count: 7200, + tx_count: 1400, + active_accounts: 80, + transferred_amount: '1500000000000' + }), + row('2026-09-21', { + blocks_count: 7100, + tx_count: 1300, + active_accounts: 70, + transferred_amount: '20' + }) + ], + NOW + ); + + expect(aligned.map((day) => day.id)).toEqual([ + '2026-09-21', + '2026-09-22', + '2026-09-23', + '2026-09-24', + '2026-09-25', + '2026-09-26', + '2026-09-27' + ]); + expect(aligned.at(-1)).toMatchObject({ + id: '2026-09-27', + tx_count: 1400, + transferred_amount: '1500000000000' + }); + expect(aligned[1]).toEqual({ + id: '2026-09-22', + date: '2026-09-22T00:00:00.000Z', + blocks_count: 0, + tx_count: 0, + active_accounts: 0, + transferred_amount: '0' + }); + }); +}); diff --git a/src/components/features/landing/hero/chain-stats/align-daily-stats.ts b/src/components/features/landing/hero/chain-stats/align-daily-stats.ts new file mode 100644 index 0000000..00b45d8 --- /dev/null +++ b/src/components/features/landing/hero/chain-stats/align-daily-stats.ts @@ -0,0 +1,38 @@ +import type { DailyChainStatRow } from '@/schemas'; +import { HOME_STATS_DAY_COUNT } from '@/utils/get-home-stats-day-windows'; + +const DAY_MS = 24 * 60 * 60 * 1000; + +const emptyDay = (id: string): DailyChainStatRow => ({ + id, + date: `${id}T00:00:00.000Z`, + blocks_count: 0, + tx_count: 0, + active_accounts: 0, + transferred_amount: '0' +}); + +/** + * Oldest → newest completed UTC days. + * The current UTC day is still accumulating, so it is left off the sparkline. + * Missing days in that window are padded with zeros. + */ +export const alignDailyStats = ( + rows: DailyChainStatRow[] | undefined, + now: Date +): DailyChainStatRow[] => { + const byId = new Map((rows ?? []).map((row) => [row.id, row])); + const todayUtc = Date.UTC( + now.getUTCFullYear(), + now.getUTCMonth(), + now.getUTCDate() + ); + + return Array.from({ length: HOME_STATS_DAY_COUNT }, (_, index) => { + const daysBeforeToday = HOME_STATS_DAY_COUNT - index; + const id = new Date(todayUtc - daysBeforeToday * DAY_MS) + .toISOString() + .slice(0, 10); + return byId.get(id) ?? emptyDay(id); + }); +}; diff --git a/src/components/features/landing/hero/chain-stats/format-chain-supply.test.ts b/src/components/features/landing/hero/chain-stats/format-chain-supply.test.ts new file mode 100644 index 0000000..684ba44 --- /dev/null +++ b/src/components/features/landing/hero/chain-stats/format-chain-supply.test.ts @@ -0,0 +1,20 @@ +import { TOKEN_DECIMALS } from '@/constants/token-decimals'; + +import { formatChainSupply } from './format-chain-supply'; + +const plancks = (units: string) => { + const [whole, fraction = ''] = units.split('.'); + const padded = fraction.padEnd(TOKEN_DECIMALS, '0').slice(0, TOKEN_DECIMALS); + + return `${whole}${padded}`; +}; + +describe('formatChainSupply', () => { + it('formats an integer planck amount as QTC with two decimal places', () => { + expect(formatChainSupply(plancks('1234.56'))).toBe('1,234.56 QTC'); + }); + + it('rejects a non-integer supply', () => { + expect(() => formatChainSupply('1234.56')).toThrow(/integer/); + }); +}); diff --git a/src/components/features/landing/hero/chain-stats/format-chain-supply.ts b/src/components/features/landing/hero/chain-stats/format-chain-supply.ts new file mode 100644 index 0000000..07cc479 --- /dev/null +++ b/src/components/features/landing/hero/chain-stats/format-chain-supply.ts @@ -0,0 +1,9 @@ +import { formatMonetaryValue } from '@/utils/formatter'; + +export const formatChainSupply = (value: string) => { + if (!/^\d+$/.test(value)) { + throw new Error('supply is not an integer'); + } + + return formatMonetaryValue(value, 2); +}; diff --git a/src/components/features/landing/hero/chain-stats/hook.tsx b/src/components/features/landing/hero/chain-stats/hook.tsx index 85b6cc8..4151d37 100644 --- a/src/components/features/landing/hero/chain-stats/hook.tsx +++ b/src/components/features/landing/hero/chain-stats/hook.tsx @@ -3,41 +3,13 @@ import { useMemo } from 'react'; import useApiClient from '@/api'; import type { SparklinePoint } from '@/components/ui/composites/stat-sparkline-card'; import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; -import type { DailyChainStatRow, HomeChainStatsResponse } from '@/schemas'; -import { - formatHomeStatsUtcDayLabel, - HOME_STATS_DAY_COUNT -} from '@/utils/get-home-stats-day-windows'; +import type { HomeChainStatsResponse } from '@/schemas'; +import { formatHomeStatsUtcDayLabel } from '@/utils/get-home-stats-day-windows'; import { sumChainTransferTotals } from '@/utils/sum-chain-transfer-totals'; -/** Oldest → newest, pad missing UTC days with zeros so sparklines stay 7 points. */ -const alignDailyStats = ( - rows: DailyChainStatRow[] | undefined -): DailyChainStatRow[] => { - const byId = new Map((rows ?? []).map((row) => [row.id, row])); - const today = new Date(); - const todayUtc = Date.UTC( - today.getUTCFullYear(), - today.getUTCMonth(), - today.getUTCDate() - ); - - return Array.from({ length: HOME_STATS_DAY_COUNT }, (_, index) => { - const dayMs = - todayUtc - (HOME_STATS_DAY_COUNT - 1 - index) * 24 * 60 * 60 * 1000; - const day = new Date(dayMs); - const id = day.toISOString().slice(0, 10); - return ( - byId.get(id) ?? { - id, - date: `${id}T00:00:00.000Z`, - blocks_count: 0, - tx_count: 0, - active_accounts: 0 - } - ); - }); -}; +import { alignDailyStats } from './align-daily-stats'; +import { formatChainSupply } from './format-chain-supply'; +import { transferredAmountToChartValue } from './transferred-amount-chart-value'; const toPoints = ( values: number[], @@ -64,9 +36,11 @@ export const useChainStats = () => { const totalTransactions = sumChainTransferTotals(status); const last24HourTransactions = data?.last24Hour?.aggregate?.count ?? 0; + const last24HourTransferred = + data?.last24HourTransferred?.aggregate?.sum?.amount ?? '0'; const alignedDays = useMemo( - () => alignDailyStats(data?.dailyStats), + () => alignDailyStats(data?.dailyStats, new Date()), [data?.dailyStats] ); @@ -109,6 +83,16 @@ export const useChainStats = () => { [alignedDays, dayLabels] ); + const transferredPoints = useMemo( + () => + alignedDays.map((row, index) => ({ + value: transferredAmountToChartValue(row.transferred_amount), + label: dayLabels[index] ?? '', + displayValue: formatChainSupply(row.transferred_amount) + })), + [alignedDays, dayLabels] + ); + return { loading, error, @@ -119,7 +103,13 @@ export const useChainStats = () => { totalAccounts, blocksPoints, transfersPoints, - activeAccountsPoints + activeAccountsPoints, + transferredPoints, + totalTransferred: status?.total_transferred_amount, + last24HourTransferred, + maxSupply: status?.max_supply, + totalSupply: status?.total_supply, + circulatingSupply: status?.circulating_supply }; }; diff --git a/src/components/features/landing/hero/chain-stats/transferred-amount-chart-value.test.ts b/src/components/features/landing/hero/chain-stats/transferred-amount-chart-value.test.ts new file mode 100644 index 0000000..5d9ce92 --- /dev/null +++ b/src/components/features/landing/hero/chain-stats/transferred-amount-chart-value.test.ts @@ -0,0 +1,28 @@ +import { TOKEN_DECIMALS } from '@/constants/token-decimals'; + +import { transferredAmountToChartValue } from './transferred-amount-chart-value'; + +const plancks = (units: string) => { + const [whole, fraction = ''] = units.split('.'); + const padded = fraction.padEnd(TOKEN_DECIMALS, '0').slice(0, TOKEN_DECIMALS); + + return `${whole}${padded}`; +}; + +describe('transferredAmountToChartValue', () => { + it('converts an integer planck amount into token units', () => { + expect(transferredAmountToChartValue(plancks('0'))).toBe(0); + expect(transferredAmountToChartValue(plancks('1.5'))).toBe(1.5); + expect(transferredAmountToChartValue(plancks('1000'))).toBe(1000); + }); + + it('rejects a non-integer amount', () => { + expect(() => transferredAmountToChartValue('1.5')).toThrow(/integer/); + }); + + it('rejects a whole-token part above Number.MAX_SAFE_INTEGER', () => { + const tooBig = `${BigInt(Number.MAX_SAFE_INTEGER) + BigInt(1)}${'0'.repeat(TOKEN_DECIMALS)}`; + + expect(() => transferredAmountToChartValue(tooBig)).toThrow(/too large/); + }); +}); diff --git a/src/components/features/landing/hero/chain-stats/transferred-amount-chart-value.ts b/src/components/features/landing/hero/chain-stats/transferred-amount-chart-value.ts new file mode 100644 index 0000000..86bb03d --- /dev/null +++ b/src/components/features/landing/hero/chain-stats/transferred-amount-chart-value.ts @@ -0,0 +1,20 @@ +import { TOKEN_DECIMALS } from '@/constants/token-decimals'; + +/** Plot raw token units as whole tokens. Sparkline values are JS numbers. */ +export const transferredAmountToChartValue = (raw: string): number => { + if (!/^\d+$/.test(raw)) { + throw new Error('transferred amount is not an integer'); + } + + const value = BigInt(raw); + const scale = BigInt(10) ** BigInt(TOKEN_DECIMALS); + const whole = value / scale; + + if (whole > BigInt(Number.MAX_SAFE_INTEGER)) { + throw new Error('transferred amount is too large to plot'); + } + + const fraction = value % scale; + + return Number(whole) + Number(fraction) / Number(scale); +}; diff --git a/src/components/features/miner-leaderboard/miner-leaderboard-chart/MinerLeaderboardChart.tsx b/src/components/features/miner-leaderboard/miner-leaderboard-chart/MinerLeaderboardChart.tsx index aaffaa2..8420e9c 100644 --- a/src/components/features/miner-leaderboard/miner-leaderboard-chart/MinerLeaderboardChart.tsx +++ b/src/components/features/miner-leaderboard/miner-leaderboard-chart/MinerLeaderboardChart.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { Card, CardContent } from '@/components/ui/card'; -import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { InlineFetchError } from '@/components/ui/composites/fetch-error/FetchError'; import { Skeleton } from '@/components/ui/skeleton'; import { RESOURCES } from '@/constants/resources'; @@ -55,7 +55,8 @@ export const MinerLeaderboardChart = () => { aria-hidden /> {item.id ? ( - = ({ label: 'Mined by', key: 'miner', render: (value) => ( - diff --git a/src/components/features/multisig-created-details/multisig-created-fields.tsx b/src/components/features/multisig-created-details/multisig-created-fields.tsx index 63aa06c..6c62f2d 100644 --- a/src/components/features/multisig-created-details/multisig-created-fields.tsx +++ b/src/components/features/multisig-created-details/multisig-created-fields.tsx @@ -1,5 +1,6 @@ import * as React from 'react'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; @@ -44,10 +45,9 @@ const getSharedMultisigConfigurationFields = (): MultisigCreatedField[] => [ render: (value) => { const creatorId = (value as MultisigCreated['creator'])?.id; return creatorId ? ( - ) : ( @@ -63,11 +63,10 @@ const getSharedMultisigConfigurationFields = (): MultisigCreatedField[] => [ return (
{signers.map((signer) => ( - ))}
@@ -115,10 +114,9 @@ export const getMultisigCreatedEventFields = (): MultisigCreatedField[] => [ key: 'id', render: (value) => value ? ( - ) : ( @@ -133,7 +131,12 @@ export const getMultisigAccountFields = (): MultisigCreatedField[] => [ key: 'id', render: (value) => value ? ( - + ) : ( ) diff --git a/src/components/features/multisig-deposits-claimed-details/multisig-deposits-claimed-information/MultisigDepositsClaimedInformation.tsx b/src/components/features/multisig-deposits-claimed-details/multisig-deposits-claimed-information/MultisigDepositsClaimedInformation.tsx index 2f4c658..4d99f39 100644 --- a/src/components/features/multisig-deposits-claimed-details/multisig-deposits-claimed-information/MultisigDepositsClaimedInformation.tsx +++ b/src/components/features/multisig-deposits-claimed-details/multisig-deposits-claimed-information/MultisigDepositsClaimedInformation.tsx @@ -3,6 +3,7 @@ import * as React from 'react'; import useApiClient from '@/api'; import { DataList } from '@/components/ui/composites/data-list/DataList'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; @@ -86,9 +87,9 @@ export const MultisigDepositsClaimedInformation: React.FC< const multisigId = (value as MultisigDepositsClaimed['multisig']) ?.id; return multisigId ? ( - ) : ( @@ -102,9 +103,9 @@ export const MultisigDepositsClaimedInformation: React.FC< render: (value) => { const claimerId = (value as MultisigDepositsClaimed['claimer'])?.id; return claimerId ? ( - ) : ( diff --git a/src/components/features/multisig-proposal-cancelled-details/multisig-proposal-cancelled-information/MultisigProposalCancelledInformation.tsx b/src/components/features/multisig-proposal-cancelled-details/multisig-proposal-cancelled-information/MultisigProposalCancelledInformation.tsx index 8bc515b..96891b1 100644 --- a/src/components/features/multisig-proposal-cancelled-details/multisig-proposal-cancelled-information/MultisigProposalCancelledInformation.tsx +++ b/src/components/features/multisig-proposal-cancelled-details/multisig-proposal-cancelled-information/MultisigProposalCancelledInformation.tsx @@ -3,6 +3,7 @@ import * as React from 'react'; import useApiClient from '@/api'; import { DataList } from '@/components/ui/composites/data-list/DataList'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { ProposalIdLink } from '@/components/ui/composites/proposal-id-link/ProposalIdLink'; import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; @@ -103,10 +104,9 @@ export const MultisigProposalCancelledInformation: React.FC< const multisigId = (value as MultisigProposalCancelled['proposal']) ?.multisig?.id; return multisigId ? ( - ) : ( @@ -120,10 +120,9 @@ export const MultisigProposalCancelledInformation: React.FC< const proposerId = (value as MultisigProposalCancelled['proposal']) ?.proposer?.id; return proposerId ? ( - ) : ( @@ -138,10 +137,9 @@ export const MultisigProposalCancelledInformation: React.FC< value as MultisigProposalCancelled['cancelledBy'] )?.id; return cancelledById ? ( - ) : ( diff --git a/src/components/features/multisig-proposal-created-details/multisig-proposal-created-information/MultisigProposalCreatedInformation.tsx b/src/components/features/multisig-proposal-created-details/multisig-proposal-created-information/MultisigProposalCreatedInformation.tsx index b7cb2ad..72a5080 100644 --- a/src/components/features/multisig-proposal-created-details/multisig-proposal-created-information/MultisigProposalCreatedInformation.tsx +++ b/src/components/features/multisig-proposal-created-details/multisig-proposal-created-information/MultisigProposalCreatedInformation.tsx @@ -3,6 +3,7 @@ import * as React from 'react'; import useApiClient from '@/api'; import { DataList } from '@/components/ui/composites/data-list/DataList'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { ProposalIdLink } from '@/components/ui/composites/proposal-id-link/ProposalIdLink'; import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; @@ -99,10 +100,9 @@ export const MultisigProposalCreatedInformation: React.FC< const multisigId = (value as MultisigProposalCreated['proposal']) ?.multisig?.id; return multisigId ? ( - ) : ( @@ -116,10 +116,9 @@ export const MultisigProposalCreatedInformation: React.FC< const proposerId = (value as MultisigProposalCreated['proposal']) ?.proposer?.id; return proposerId ? ( - ) : ( diff --git a/src/components/features/multisig-proposal-details/multisig-proposal-information/MultisigProposalInformation.tsx b/src/components/features/multisig-proposal-details/multisig-proposal-information/MultisigProposalInformation.tsx index c44bbde..190d0b3 100644 --- a/src/components/features/multisig-proposal-details/multisig-proposal-information/MultisigProposalInformation.tsx +++ b/src/components/features/multisig-proposal-details/multisig-proposal-information/MultisigProposalInformation.tsx @@ -5,6 +5,7 @@ import { useMemo } from 'react'; import useApiClient from '@/api'; import { Badge, type BadgeProps } from '@/components/ui/badge'; import { DataList } from '@/components/ui/composites/data-list/DataList'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; import { @@ -78,10 +79,9 @@ const LIFECYCLE_SECTIONS: { const accountLink = (accountId?: string | null) => accountId ? ( - ) : ( @@ -89,10 +89,9 @@ const accountLink = (accountId?: string | null) => const walletLink = (walletId?: string | null) => walletId ? ( - ) : ( @@ -232,11 +231,10 @@ const BASE_PROPOSAL_FIELDS: ProposalField[] = [ return (
{approvals.map((approver) => ( - ))}
diff --git a/src/components/features/multisig-proposal-executed-details/multisig-proposal-executed-information/MultisigProposalExecutedInformation.tsx b/src/components/features/multisig-proposal-executed-details/multisig-proposal-executed-information/MultisigProposalExecutedInformation.tsx index eef5dd2..3b6c17f 100644 --- a/src/components/features/multisig-proposal-executed-details/multisig-proposal-executed-information/MultisigProposalExecutedInformation.tsx +++ b/src/components/features/multisig-proposal-executed-details/multisig-proposal-executed-information/MultisigProposalExecutedInformation.tsx @@ -3,6 +3,7 @@ import * as React from 'react'; import useApiClient from '@/api'; import { DataList } from '@/components/ui/composites/data-list/DataList'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { ProposalIdLink } from '@/components/ui/composites/proposal-id-link/ProposalIdLink'; import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; @@ -103,10 +104,9 @@ export const MultisigProposalExecutedInformation: React.FC< const multisigId = (value as MultisigProposalExecuted['proposal']) ?.multisig?.id; return multisigId ? ( - ) : ( @@ -120,10 +120,9 @@ export const MultisigProposalExecutedInformation: React.FC< const proposerId = (value as MultisigProposalExecuted['proposal']) ?.proposer?.id; return proposerId ? ( - ) : ( @@ -139,11 +138,10 @@ export const MultisigProposalExecutedInformation: React.FC< return (
{approvers.map((approver) => ( - ))}
diff --git a/src/components/features/multisig-proposal-ready-details/multisig-proposal-ready-information/MultisigProposalReadyInformation.tsx b/src/components/features/multisig-proposal-ready-details/multisig-proposal-ready-information/MultisigProposalReadyInformation.tsx index 7f4d1ef..60a2d2c 100644 --- a/src/components/features/multisig-proposal-ready-details/multisig-proposal-ready-information/MultisigProposalReadyInformation.tsx +++ b/src/components/features/multisig-proposal-ready-details/multisig-proposal-ready-information/MultisigProposalReadyInformation.tsx @@ -3,6 +3,7 @@ import * as React from 'react'; import useApiClient from '@/api'; import { DataList } from '@/components/ui/composites/data-list/DataList'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { ProposalIdLink } from '@/components/ui/composites/proposal-id-link/ProposalIdLink'; import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; @@ -110,10 +111,9 @@ export const MultisigProposalReadyInformation: React.FC< const multisigId = (value as MultisigProposalReady['proposal']) ?.multisig?.id; return multisigId ? ( - ) : ( @@ -127,10 +127,9 @@ export const MultisigProposalReadyInformation: React.FC< const proposerId = (value as MultisigProposalReady['proposal']) ?.proposer?.id; return proposerId ? ( - ) : ( diff --git a/src/components/features/multisig-proposal-removed-details/multisig-proposal-removed-information/MultisigProposalRemovedInformation.tsx b/src/components/features/multisig-proposal-removed-details/multisig-proposal-removed-information/MultisigProposalRemovedInformation.tsx index 125c60f..9af5c75 100644 --- a/src/components/features/multisig-proposal-removed-details/multisig-proposal-removed-information/MultisigProposalRemovedInformation.tsx +++ b/src/components/features/multisig-proposal-removed-details/multisig-proposal-removed-information/MultisigProposalRemovedInformation.tsx @@ -3,6 +3,7 @@ import * as React from 'react'; import useApiClient from '@/api'; import { DataList } from '@/components/ui/composites/data-list/DataList'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { ProposalIdLink } from '@/components/ui/composites/proposal-id-link/ProposalIdLink'; import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; @@ -100,10 +101,9 @@ export const MultisigProposalRemovedInformation: React.FC< const multisigId = (value as MultisigProposalRemoved['proposal']) ?.multisig?.id; return multisigId ? ( - ) : ( @@ -117,10 +117,9 @@ export const MultisigProposalRemovedInformation: React.FC< const proposerId = (value as MultisigProposalRemoved['proposal']) ?.proposer?.id; return proposerId ? ( - ) : ( @@ -134,10 +133,9 @@ export const MultisigProposalRemovedInformation: React.FC< const removedById = (value as MultisigProposalRemoved['removedBy']) ?.id; return removedById ? ( - ) : ( diff --git a/src/components/features/multisig-signer-approved-details/multisig-signer-approved-information/MultisigSignerApprovedInformation.tsx b/src/components/features/multisig-signer-approved-details/multisig-signer-approved-information/MultisigSignerApprovedInformation.tsx index 64cb687..9115292 100644 --- a/src/components/features/multisig-signer-approved-details/multisig-signer-approved-information/MultisigSignerApprovedInformation.tsx +++ b/src/components/features/multisig-signer-approved-details/multisig-signer-approved-information/MultisigSignerApprovedInformation.tsx @@ -3,6 +3,7 @@ import * as React from 'react'; import useApiClient from '@/api'; import { DataList } from '@/components/ui/composites/data-list/DataList'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { ProposalIdLink } from '@/components/ui/composites/proposal-id-link/ProposalIdLink'; import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; @@ -92,10 +93,9 @@ export const MultisigSignerApprovedInformation: React.FC< const approverId = (value as MultisigSignerApproved['approver']) ?.id; return approverId ? ( - ) : ( @@ -128,10 +128,9 @@ export const MultisigSignerApprovedInformation: React.FC< const multisigId = (value as MultisigSignerApproved['proposal']) ?.multisig?.id; return multisigId ? ( - ) : ( @@ -145,10 +144,9 @@ export const MultisigSignerApprovedInformation: React.FC< const proposerId = (value as MultisigSignerApproved['proposal']) ?.proposer?.id; return proposerId ? ( - ) : ( diff --git a/src/components/features/scheduled-reversible-transaction-details/scheduled-reversible-transaction-information/ScheduledReversibleTransactionInformation.tsx b/src/components/features/scheduled-reversible-transaction-details/scheduled-reversible-transaction-information/ScheduledReversibleTransactionInformation.tsx index 750c9e2..d96dd87 100644 --- a/src/components/features/scheduled-reversible-transaction-details/scheduled-reversible-transaction-information/ScheduledReversibleTransactionInformation.tsx +++ b/src/components/features/scheduled-reversible-transaction-details/scheduled-reversible-transaction-information/ScheduledReversibleTransactionInformation.tsx @@ -3,6 +3,7 @@ import * as React from 'react'; import useApiClient from '@/api'; import { DataList } from '@/components/ui/composites/data-list/DataList'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; @@ -95,8 +96,8 @@ export const ScheduledReversibleTransactionInformation: React.FC< label: 'From', key: 'from', render: (value) => ( - @@ -106,8 +107,8 @@ export const ScheduledReversibleTransactionInformation: React.FC< label: 'To', key: 'to', render: (value) => ( - diff --git a/src/components/features/transaction-details/transaction-information/TransactionInformation.tsx b/src/components/features/transaction-details/transaction-information/TransactionInformation.tsx index e98fb99..61e6b04 100644 --- a/src/components/features/transaction-details/transaction-information/TransactionInformation.tsx +++ b/src/components/features/transaction-details/transaction-information/TransactionInformation.tsx @@ -7,6 +7,7 @@ import { EXTRINSIC_TRANSACTION_COLUMNS } from '@/components/common/table-columns import { Badge } from '@/components/ui/badge'; import { DataList } from '@/components/ui/composites/data-list/DataList'; import { DataTable } from '@/components/ui/composites/data-table/DataTable'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; @@ -181,10 +182,10 @@ export const TransactionInformation: React.FC = ({ return unsigned; } return ( - ); diff --git a/src/components/features/vesting-schedule-listing/vesting-schedule-chart/VestingScheduleChart.tsx b/src/components/features/vesting-schedule-listing/vesting-schedule-chart/VestingScheduleChart.tsx new file mode 100644 index 0000000..7d4a646 --- /dev/null +++ b/src/components/features/vesting-schedule-listing/vesting-schedule-chart/VestingScheduleChart.tsx @@ -0,0 +1,336 @@ +import { utc } from '@date-fns/utc'; +import { format } from 'date-fns/format'; +import { + type MouseEvent, + useCallback, + useId, + useLayoutEffect, + useMemo, + useRef, + useState +} from 'react'; +import { createPortal } from 'react-dom'; + +import { Card, CardContent } from '@/components/ui/card'; +import { InlineFetchError } from '@/components/ui/composites/fetch-error/FetchError'; +import { Skeleton } from '@/components/ui/skeleton'; +import { formatMonetaryValue } from '@/utils/formatter'; + +import { type VestingScheduleChartState } from './hook'; + +const HIT_PX = 6; +const STROKE = 'var(--flare)'; +const VIEW_WIDTH = 1000; +const VIEW_HEIGHT = 120; +const TOP_PAD = 8; +const BOTTOM_PAD = 8; + +interface PointCoord { + x: number; + y: number; + xPct: number; + yPct: number; +} + +interface HoverState { + index: number; + tipLeft: number; + tipTop: number; + dotX: number; + dotY: number; + hairlineTop: number; + hairlineHeight: number; +} + +const axisAlign = (pct: number) => { + if (pct === 0) return undefined; + if (pct === 1) return 'translateX(-100%)'; + return 'translateX(-50%)'; +}; + +export const VestingScheduleChart = ({ + chart +}: { + chart: VestingScheduleChartState; +}) => { + const { series, amounts, nowMs, unlockedNow, getStatus, error } = chart; + const status = getStatus(); + const gradientId = useId().replace(/:/g, ''); + const svgRef = useRef(null); + const tipRef = useRef(null); + const [hover, setHover] = useState(null); + + const coords = useMemo(() => { + if (series.length === 0) return [] as PointCoord[]; + + const minT = series[0]?.t ?? 0; + const maxT = series[series.length - 1]?.t ?? minT; + const span = maxT - minT || 1; + const maxAmount = Math.max(...amounts, 0); + const usableHeight = VIEW_HEIGHT - TOP_PAD - BOTTOM_PAD; + + return series.map((point, index) => { + const amount = amounts[index] ?? 0; + const x = + series.length === 1 + ? VIEW_WIDTH / 2 + : ((point.t - minT) / span) * VIEW_WIDTH; + const y = + maxAmount === 0 + ? VIEW_HEIGHT / 2 + : TOP_PAD + usableHeight - (amount / maxAmount) * usableHeight; + + return { + x, + y, + xPct: x / VIEW_WIDTH, + yPct: y / VIEW_HEIGHT + }; + }); + }, [amounts, series]); + + const { line, area } = useMemo(() => { + if (coords.length === 0) return { line: '', area: '' }; + + const first = coords[0]; + const last = coords[coords.length - 1]; + if (!first || !last) return { line: '', area: '' }; + + return { + line: coords.map(({ x, y }) => `${x},${y}`).join(' '), + area: [ + `${first.x},${VIEW_HEIGHT}`, + ...coords.map(({ x, y }) => `${x},${y}`), + `${last.x},${VIEW_HEIGHT}` + ].join(' ') + }; + }, [coords]); + + const today = useMemo(() => { + if (nowMs == null) return null; + + let index = -1; + series.forEach((point, pointIndex) => { + if (point.t === nowMs) index = pointIndex; + }); + + return index >= 0 ? coords[index] ?? null : null; + }, [coords, nowMs, series]); + + useLayoutEffect(() => { + if (hover == null || !tipRef.current || !svgRef.current) return; + + const tip = tipRef.current; + const rect = svgRef.current.getBoundingClientRect(); + const coord = coords[hover.index]; + if (!coord) return; + + const tipWidth = tip.offsetWidth || 140; + const tipHeight = tip.offsetHeight || 36; + const dotX = rect.left + coord.xPct * rect.width; + const nextTipLeft = Math.min( + Math.max(8, dotX - tipWidth / 2), + window.innerWidth - tipWidth - 8 + ); + const nextTipTop = rect.top - tipHeight - 8; + + if (nextTipLeft === hover.tipLeft && nextTipTop === hover.tipTop) return; + + setHover((current) => + current + ? { ...current, tipLeft: nextTipLeft, tipTop: nextTipTop } + : current + ); + }, [coords, hover?.index, hover?.tipLeft, hover?.tipTop]); + + const updateHover = useCallback( + (event: MouseEvent) => { + const svg = svgRef.current; + if (!svg || coords.length === 0) return; + + const rect = svg.getBoundingClientRect(); + const pointerX = event.clientX - rect.left; + const todayIndex = + nowMs == null + ? -1 + : series.reduce( + (found, point, index) => (point.t === nowMs ? index : found), + -1 + ); + const todayPx = + todayIndex >= 0 ? (coords[todayIndex]?.xPct ?? 0) * rect.width : null; + const endIndex = coords.length - 1; + const endPx = (coords[endIndex]?.xPct ?? 1) * rect.width; + + let ptIdx = 0; + if (todayPx != null && Math.abs(pointerX - todayPx) <= HIT_PX) { + ptIdx = todayIndex; + } else if (Math.abs(pointerX - endPx) <= HIT_PX) { + ptIdx = endIndex; + } else { + const xPct = pointerX / rect.width; + let minDist = Infinity; + coords.forEach((coord, index) => { + const distance = Math.abs(coord.xPct - xPct); + if (distance <= minDist) { + minDist = distance; + ptIdx = index; + } + }); + } + + const coord = coords[ptIdx]; + if (!coord) return; + + const tipWidth = tipRef.current?.offsetWidth || 140; + const tipHeight = tipRef.current?.offsetHeight || 36; + const dotX = rect.left + coord.xPct * rect.width; + const dotY = rect.top + coord.yPct * rect.height; + + setHover({ + index: ptIdx, + tipLeft: Math.min( + Math.max(8, dotX - tipWidth / 2), + window.innerWidth - tipWidth - 8 + ), + tipTop: rect.top - tipHeight - 8, + dotX, + dotY, + hairlineTop: rect.top, + hairlineHeight: rect.height + }); + }, + [coords, nowMs, series] + ); + + const clearHover = useCallback(() => { + setHover(null); + }, []); + + const active = hover ? series[hover.index] : null; + + return ( +
+

+ Unlock Timeline +

+ + + + {status === 'loading' && } + {status === 'error' && } + {status === 'success' && series.length === 0 && ( +

+ No vesting schedules +

+ )} + {status === 'success' && series.length > 0 && ( +
+ + + + + + + + + + {today && ( + + Today + + )} + + {today && ( + + Today + + )} +
+ )} +
+
+ + {typeof document !== 'undefined' && + createPortal( + <> +
+
+
+ {active && ( + <> + + {format(new Date(active.t), 'MM/dd/yyyy', { in: utc })} + + {formatMonetaryValue( + active.t === nowMs && unlockedNow != null + ? unlockedNow + : active.unlocked, + 2 + )} + + )} +
+ , + document.body + )} +
+ ); +}; diff --git a/src/components/features/vesting-schedule-listing/vesting-schedule-chart/hook.tsx b/src/components/features/vesting-schedule-listing/vesting-schedule-chart/hook.tsx new file mode 100644 index 0000000..4bc0b50 --- /dev/null +++ b/src/components/features/vesting-schedule-listing/vesting-schedule-chart/hook.tsx @@ -0,0 +1,100 @@ +import { useMemo } from 'react'; + +import useApiClient from '@/api'; +import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; +import { TOKEN_DECIMALS } from '@/constants/token-decimals'; +import { + buildUnlockSeries, + InvalidVestingScheduleError, + type UnlockSeriesPoint, + vestedAmount +} from '@/utils/vesting-schedule'; + +const TOKEN_FACTOR = BigInt(10) ** BigInt(TOKEN_DECIMALS); + +export const plancksToChartAmount = (value: bigint) => { + const whole = value / TOKEN_FACTOR; + if (whole > BigInt(Number.MAX_SAFE_INTEGER)) { + throw new InvalidVestingScheduleError( + 'unlocked amount is too large to chart' + ); + } + const fraction = value % TOKEN_FACTOR; + return Number(whole) + Number(fraction) / Number(TOKEN_FACTOR); +}; + +export const useVestingScheduleChart = () => { + const api = useApiClient(); + const { + schedules, + loading, + error: fetchError + } = api.vestingSchedules.useGetChartData({ + pollInterval: DATA_POOL_INTERVAL + }); + + const derived = useMemo(() => { + if (!schedules) { + return { + series: [] as UnlockSeriesPoint[], + amounts: [] as number[], + unlockedNow: null as bigint | null, + nowMs: null as number | null, + error: undefined as Error | undefined + }; + } + + try { + const now = BigInt(Date.now()); + const series = buildUnlockSeries(schedules, now); + return { + series, + amounts: series.map((point) => plancksToChartAmount(point.unlocked)), + unlockedNow: schedules.reduce( + (sum, schedule) => sum + vestedAmount(schedule, now), + BigInt(0) + ), + nowMs: Number(now), + error: undefined + }; + } catch (error) { + return { + series: [] as UnlockSeriesPoint[], + amounts: [] as number[], + unlockedNow: null, + nowMs: null, + error: + error instanceof Error ? error : new Error('Invalid vesting schedule') + }; + } + }, [schedules]); + + const error = !loading ? fetchError ?? derived.error : undefined; + const success = !loading && !error && schedules !== undefined; + + const getStatus = () => { + switch (true) { + case success: + return 'success'; + case !!error: + return 'error'; + case !!loading: + return 'loading'; + default: + return 'idle'; + } + }; + + return { + series: error ? [] : derived.series, + amounts: error ? [] : derived.amounts, + nowMs: error ? null : derived.nowMs, + unlockedNow: error ? null : derived.unlockedNow, + getStatus, + error + }; +}; + +export type VestingScheduleChartState = ReturnType< + typeof useVestingScheduleChart +>; diff --git a/src/components/features/vesting-schedule-listing/vesting-schedule-stats/VestingScheduleStats.tsx b/src/components/features/vesting-schedule-listing/vesting-schedule-stats/VestingScheduleStats.tsx new file mode 100644 index 0000000..d3b8f9c --- /dev/null +++ b/src/components/features/vesting-schedule-listing/vesting-schedule-stats/VestingScheduleStats.tsx @@ -0,0 +1,93 @@ +import React from 'react'; + +import useApiClient from '@/api'; +import { + Card, + CardContent, + CardGroup, + CardHeader, + CardTitle +} from '@/components/ui/card'; +import { InlineFetchError } from '@/components/ui/composites/fetch-error/FetchError'; +import { Skeleton } from '@/components/ui/skeleton'; +import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; +import { formatMonetaryValue } from '@/utils/formatter'; + +import { type VestingScheduleChartState } from '../vesting-schedule-chart/hook'; + +export const VestingScheduleStats: React.FC<{ + chart: VestingScheduleChartState; +}> = ({ chart: unlocked }) => { + const api = useApiClient(); + const { loading, data, error } = api.vestingSchedules.useGetStats({ + pollInterval: DATA_POOL_INTERVAL + }); + + const success = !loading && !error; + const aggregate = data?.meta.aggregate; + const unlockedStatus = unlocked.getStatus(); + + return ( + + + + +

Schedules

+
+
+ + {success &&

{aggregate?.count.toLocaleString() ?? '—'}

} + {loading && } + {error && } +
+
+ + + + +

Total allocated

+
+
+ + {success && ( +

{formatMonetaryValue(aggregate?.sum?.total ?? '0', 2)}

+ )} + {loading && } + {error && } +
+
+ + + + +

Claimed

+
+
+ + {success && ( +

{formatMonetaryValue(aggregate?.sum?.claimed ?? '0', 2)}

+ )} + {loading && } + {error && } +
+
+ + + + +

Unlocked now

+
+
+ + {unlockedStatus === 'success' && unlocked.unlockedNow !== null && ( +

{formatMonetaryValue(unlocked.unlockedNow, 2)}

+ )} + {unlockedStatus === 'loading' && } + {unlockedStatus === 'error' && ( + + )} +
+
+
+ ); +}; diff --git a/src/components/features/vesting-schedule-listing/vesting-schedule-table/VestingScheduleTable.tsx b/src/components/features/vesting-schedule-listing/vesting-schedule-table/VestingScheduleTable.tsx new file mode 100644 index 0000000..74e3e7b --- /dev/null +++ b/src/components/features/vesting-schedule-listing/vesting-schedule-table/VestingScheduleTable.tsx @@ -0,0 +1,19 @@ +import { DataTable } from '@/components/ui/composites/data-table/DataTable'; +import { FetchError } from '@/components/ui/composites/fetch-error/FetchError'; + +import { useVestingScheduleTable } from './hook'; + +export const VestingScheduleTable = () => { + const { getStatus, table, error } = useVestingScheduleTable(); + + return ( + + }} + withControls + /> + ); +}; diff --git a/src/components/features/vesting-schedule-listing/vesting-schedule-table/hook.tsx b/src/components/features/vesting-schedule-listing/vesting-schedule-table/hook.tsx new file mode 100644 index 0000000..55e9e05 --- /dev/null +++ b/src/components/features/vesting-schedule-listing/vesting-schedule-table/hook.tsx @@ -0,0 +1,90 @@ +import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; +import { useEffect, useMemo, useState } from 'react'; + +import useApiClient from '@/api'; +import { VESTING_SCHEDULE_COLUMNS } from '@/components/common/table-columns/VESTING_SCHEDULE_COLUMNS'; +import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; +import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; +import type { VestingScheduleSorts } from '@/constants/query-sorts'; +import { useOrderBy } from '@/hooks/useOrderBy'; +import { useTableState } from '@/hooks/useTableState'; +import type { VestingScheduleListItem } from '@/schemas'; +import { transformSortLiteral } from '@/utils/transform-sort'; + +export const useVestingScheduleTable = () => { + const api = useApiClient(); + const { + orderBy, + limit, + currentPageIndex, + handleChangeSorting, + handleChangePagination, + paginationValue + } = useTableState('cliff:desc', QUERY_DEFAULT_LIMIT); + + const orderByObject = useOrderBy( + orderBy ?? 'cliff:desc' + ); + const sortingValue = transformSortLiteral(orderBy); + + const { + loading, + data, + error: fetchError + } = api.vestingSchedules.useGetAll({ + pollInterval: DATA_POOL_INTERVAL, + variables: { + orderBy: orderByObject, + limit, + offset: currentPageIndex * limit + } + }); + + const columns = useMemo(() => VESTING_SCHEDULE_COLUMNS, []); + const [rowCount, setRowCount] = useState( + data?.meta.aggregate.totalCount ?? 0 + ); + + const table = useReactTable({ + data: data?.schedules ?? [], + columns, + getCoreRowModel: getCoreRowModel(), + state: { + sorting: sortingValue, + pagination: paginationValue + }, + rowCount, + onSortingChange: handleChangeSorting, + onPaginationChange: handleChangePagination, + manualSorting: true, + manualPagination: true + }); + + const success = !loading && !fetchError; + const error = !loading && fetchError; + + const getStatus = () => { + switch (true) { + case success: + return 'success'; + case !!error: + return 'error'; + case !!loading: + return 'loading'; + default: + return 'idle'; + } + }; + + useEffect(() => { + if (!loading && data?.meta.aggregate.totalCount) { + setRowCount(data.meta.aggregate.totalCount); + } + }, [loading, data?.meta.aggregate.totalCount]); + + return { + table, + getStatus, + error + }; +}; diff --git a/src/components/features/wormhole/WormholeOutputDetails.tsx b/src/components/features/wormhole/WormholeOutputDetails.tsx index 0d0970e..f3af70c 100644 --- a/src/components/features/wormhole/WormholeOutputDetails.tsx +++ b/src/components/features/wormhole/WormholeOutputDetails.tsx @@ -2,6 +2,7 @@ import { notFound } from '@tanstack/react-router'; import useApiClient from '@/api'; import { DataList } from '@/components/ui/composites/data-list/DataList'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; @@ -210,9 +211,9 @@ export const WormholeOutputInformation = ({ label: 'Exit Account', key: 'exitAccountId', render: (value) => ( - ) diff --git a/src/components/ui/composites/account-address-cell/AccountAddressCell.test.tsx b/src/components/ui/composites/account-address-cell/AccountAddressCell.test.tsx new file mode 100644 index 0000000..c69d1ec --- /dev/null +++ b/src/components/ui/composites/account-address-cell/AccountAddressCell.test.tsx @@ -0,0 +1,170 @@ +import { render, waitFor } from '@testing-library/react'; +import { JSDOM } from 'jsdom'; + +import { CheckphraseReadyProvider } from '@/components/ui/composites/checkphrase-ready/CheckphraseReady'; +import { getChecksum } from '@/utils/get-checksum'; + +import { AccountAddressCell } from './AccountAddressCell'; + +const dom = new JSDOM(''); +Object.assign(globalThis, { + window: dom.window, + document: dom.window.document, + HTMLElement: dom.window.HTMLElement, + Element: dom.window.Element, + Node: dom.window.Node, + navigator: dom.window.navigator, + IS_REACT_ACT_ENVIRONMENT: true +}); + +jest.mock('@tanstack/react-router', () => ({ + Link: ({ + children, + to, + ...props + }: { + children: React.ReactNode; + to: string; + }) => ( + + {children} + + ) +})); + +jest.mock('@/utils/get-checksum', () => ({ + getChecksum: jest.fn() +})); + +jest.mock('@/components/ui/composites/text-with-copy/TextWithCopy', () => ({ + TextWithCopy: ({ text }: { text: string }) => { + ((globalThis as { __checkPhrases?: string[] }).__checkPhrases ??= []).push( + text + ); + return ( +
+

{text}

+ +
+ ); + } +})); + +const renderedPhrases = () => + ((globalThis as { __checkPhrases?: string[] }).__checkPhrases ??= []); + +const getChecksumMock = getChecksum as jest.Mock; + +const ADDRESS = 'qz1234567890address'; +const CHECK_PHRASE = 'alpha-bravo-charlie'; + +describe('AccountAddressCell', () => { + it('shows the address immediately and skeletons only the check phrase', async () => { + let resolveChecksum: (value: string) => void = () => {}; + getChecksumMock.mockReturnValue( + new Promise((resolve) => { + resolveChecksum = resolve; + }) + ); + + const view = render( + + ); + + expect(view.getByRole('link', { name: 'qz1234....dress' })).toBeTruthy(); + expect( + view.getByRole('status', { name: 'Loading check phrase' }) + ).toBeTruthy(); + expect(view.queryByText(CHECK_PHRASE)).toBeNull(); + + resolveChecksum(CHECK_PHRASE); + + await waitFor(() => { + expect(view.getByText(CHECK_PHRASE)).toBeTruthy(); + }); + + expect( + view.queryByRole('status', { name: 'Loading check phrase' }) + ).toBeNull(); + expect(view.getByRole('link', { name: 'qz1234....dress' })).toBeTruthy(); + expect( + view.getAllByRole('button', { name: 'Copy to clipboard' }) + ).toHaveLength(2); + }); + + it('does not start the check phrase until table data is ready', async () => { + getChecksumMock.mockClear(); + getChecksumMock.mockReturnValue(Promise.resolve(CHECK_PHRASE)); + + const view = render( + + + + ); + + await waitFor(() => { + expect( + view.getByRole('status', { name: 'Loading check phrase' }) + ).toBeTruthy(); + }); + expect(getChecksumMock).not.toHaveBeenCalled(); + + view.rerender( + + + + ); + + await waitFor(() => { + expect(getChecksumMock).toHaveBeenCalledWith(ADDRESS); + }); + }); + + it('does not offer the previous check phrase after the address changes', async () => { + const nextAddress = 'qz0987654321address'; + const nextPhrase = 'delta-echo-foxtrot'; + let resolveNext: (value: string) => void = () => {}; + + getChecksumMock.mockImplementation((id: string) => { + if (id === ADDRESS) return Promise.resolve(CHECK_PHRASE); + return new Promise((resolve) => { + resolveNext = resolve; + }); + }); + + const view = render( + + ); + + await waitFor(() => { + expect(view.getByText(CHECK_PHRASE)).toBeTruthy(); + }); + + renderedPhrases().length = 0; + + view.rerender( + + ); + + expect(renderedPhrases()).not.toContain(CHECK_PHRASE); + expect(view.queryByText(CHECK_PHRASE)).toBeNull(); + expect(view.getByRole('link', { name: nextAddress })).toBeTruthy(); + expect( + view.getByRole('status', { name: 'Loading check phrase' }) + ).toBeTruthy(); + + resolveNext(nextPhrase); + + await waitFor(() => { + expect(view.getByText(nextPhrase)).toBeTruthy(); + }); + expect(view.queryByText(CHECK_PHRASE)).toBeNull(); + }); +}); diff --git a/src/components/ui/composites/account-address-cell/AccountAddressCell.tsx b/src/components/ui/composites/account-address-cell/AccountAddressCell.tsx new file mode 100644 index 0000000..e87e92e --- /dev/null +++ b/src/components/ui/composites/account-address-cell/AccountAddressCell.tsx @@ -0,0 +1,55 @@ +import * as React from 'react'; + +import { useCheckphraseReady } from '@/components/ui/composites/checkphrase-ready/CheckphraseReady'; +import { InlineFetchError } from '@/components/ui/composites/fetch-error/FetchError'; +import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; +import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; +import { Skeleton } from '@/components/ui/skeleton'; +import { useChecksum } from '@/hooks/useChecksum'; + +export interface AccountAddressCellProps { + address: string; + href: string; + text?: string; + truncate?: boolean; + className?: string; +} + +export const AccountAddressCell: React.FC = ({ + address, + href, + text = address, + truncate = true, + className +}) => { + const dataReady = useCheckphraseReady(); + const { checksum, loading, error } = useChecksum(!dataReady, address); + + return ( +
+ + {loading ? ( + + ) : null} + {!loading && error ? ( + + ) : null} + {!loading && !error && checksum ? ( + + ) : null} +
+ ); +}; diff --git a/src/components/ui/composites/account-address-label/AccountAddressLabel.tsx b/src/components/ui/composites/account-address-label/AccountAddressLabel.tsx new file mode 100644 index 0000000..49fcc34 --- /dev/null +++ b/src/components/ui/composites/account-address-label/AccountAddressLabel.tsx @@ -0,0 +1,12 @@ +import { + type AccountAddressClassification, + classifyAccountAddress +} from '@/utils/classify-account-address'; + +export function AccountAddressLabel(props: AccountAddressClassification) { + return ( + + {classifyAccountAddress(props)} + + ); +} diff --git a/src/components/ui/composites/checkphrase-ready/CheckphraseReady.tsx b/src/components/ui/composites/checkphrase-ready/CheckphraseReady.tsx new file mode 100644 index 0000000..eb1847a --- /dev/null +++ b/src/components/ui/composites/checkphrase-ready/CheckphraseReady.tsx @@ -0,0 +1,18 @@ +import * as React from 'react'; + +const CheckphraseReadyContext = React.createContext(true); + +export const CheckphraseReadyProvider = ({ + ready, + children +}: { + ready: boolean; + children: React.ReactNode; +}) => ( + + {children} + +); + +export const useCheckphraseReady = () => + React.useContext(CheckphraseReadyContext); diff --git a/src/components/ui/composites/data-table/DataTable.tsx b/src/components/ui/composites/data-table/DataTable.tsx index d93bcd3..195ca32 100644 --- a/src/components/ui/composites/data-table/DataTable.tsx +++ b/src/components/ui/composites/data-table/DataTable.tsx @@ -17,6 +17,7 @@ import { TableHeader, TableRow } from '../../table'; +import { CheckphraseReadyProvider } from '../checkphrase-ready/CheckphraseReady'; import { EmptyState } from '../empty-state/EmptyState'; import { CardSkeleton } from './CardSkeleton'; import { DataTableCards } from './DataTableCards'; @@ -172,6 +173,8 @@ export const DataTable = ({ if (status === 'success' && isEmptyData) return ; + const checkphraseReady = status !== 'loading'; + if (!isDesktop) { const showInitialLoading = status === 'loading' && @@ -181,100 +184,107 @@ export const DataTable = ({ const cardsTable = withControls ? mobileTable : table; return ( -
- {showInitialLoading ? ( - - ) : ( - - )} - - {showLoadMoreSkeleton && ( - - )} - - {withControls && table.getCanNextPage() && ( -
- )} -
+ +
+ {showInitialLoading ? ( + + ) : ( + + )} + + {showLoadMoreSkeleton && ( + + )} + + {withControls && table.getCanNextPage() && ( +
+ )} +
+ ); } return ( -
-
- - - {table.getHeaderGroups().map((headerGroup) => ( - - {headerGroup.headers.map((header) => ( - -
+
+
+
+ + {table.getHeaderGroups().map((headerGroup) => ( + + {headerGroup.headers.map((header) => ( + - {header.isPlaceholder - ? null - : flexRender( - header.column.columnDef.header, - header.getContext() - )} - - {header.column.getCanSort() && ( - - )} - - - ))} - - ))} - - - - {status === 'loading' && ( - - )} - - {table.getRowModel().rows.map((row) => { - return ( - - {row.getVisibleCells().map((cell) => { - return ( - - {flexRender(cell.column.columnDef.cell, { - ...cell.getContext(), - ...customCellProps - })} - - ); - })} + {header.isPlaceholder + ? null + : flexRender( + header.column.columnDef.header, + header.getContext() + )} + + {header.column.getCanSort() && ( + + )} + + + ))} - ); - })} - -
+ ))} + + + + {status === 'loading' && ( + + )} + + {table.getRowModel().rows.map((row) => { + return ( + + {row.getVisibleCells().map((cell) => { + return ( + + {flexRender(cell.column.columnDef.cell, { + ...cell.getContext(), + ...customCellProps + })} + + ); + })} + + ); + })} + + +
+ + {withControls && }
- - {withControls && } -
+
); }; diff --git a/src/components/ui/composites/search-preview/SearchPreview.tsx b/src/components/ui/composites/search-preview/SearchPreview.tsx index 980f283..53f969e 100644 --- a/src/components/ui/composites/search-preview/SearchPreview.tsx +++ b/src/components/ui/composites/search-preview/SearchPreview.tsx @@ -2,6 +2,7 @@ import { Link } from '@tanstack/react-router'; import type { HTMLAttributes } from 'react'; import React, { forwardRef } from 'react'; +import { AccountAddressCell } from '@/components/ui/composites/account-address-cell/AccountAddressCell'; import { InlineFetchError } from '@/components/ui/composites/fetch-error/FetchError'; import { Skeleton } from '@/components/ui/skeleton'; import type { SearchAllResponse } from '@/schemas/searchs'; @@ -146,11 +147,21 @@ export const SearchPreview = forwardRef( emptyMsg: 'No accounts found.', items: accounts, renderItem: (acc: any) => ( - +
{ + if ((event.target as HTMLElement).closest('a')) { + handleClosePreview(); + } + }} + > + +
) }, { diff --git a/src/components/ui/copyable-text.test.tsx b/src/components/ui/copyable-text.test.tsx new file mode 100644 index 0000000..871918c --- /dev/null +++ b/src/components/ui/copyable-text.test.tsx @@ -0,0 +1,39 @@ +import { JSDOM } from 'jsdom'; +import { render } from '@testing-library/react'; + +import { CopyableText } from './copyable-text'; + +const dom = new JSDOM(''); +Object.assign(globalThis, { + window: dom.window, + document: dom.window.document, + HTMLElement: dom.window.HTMLElement, + Element: dom.window.Element, + Node: dom.window.Node, + navigator: dom.window.navigator, + IS_REACT_ACT_ENVIRONMENT: true +}); + +const HOVER_FINE = '[@media(hover:hover)_and_(pointer:fine)]'; + +describe('CopyableText', () => { + it('stays visible on touch and only hides on devices that can hover', () => { + const { getByRole } = render(); + + const classes = getByRole('button', { + name: 'Copy to clipboard' + }).className.split(/\s+/); + + expect(classes).toContain('opacity-100'); + expect(classes).not.toContain('opacity-0'); + expect(classes).not.toContain('group-hover:opacity-100'); + expect(classes).toContain(`${HOVER_FINE}:opacity-0`); + expect(classes).toContain(`${HOVER_FINE}:pointer-events-none`); + expect(classes).toContain(`${HOVER_FINE}:group-hover:opacity-100`); + expect(classes).toContain(`${HOVER_FINE}:group-hover:pointer-events-auto`); + expect(classes).toContain(`${HOVER_FINE}:focus-visible:opacity-100`); + expect(classes).toContain( + `${HOVER_FINE}:focus-visible:pointer-events-auto` + ); + }); +}); diff --git a/src/components/ui/copyable-text.tsx b/src/components/ui/copyable-text.tsx index 6262c04..e6c963d 100644 --- a/src/components/ui/copyable-text.tsx +++ b/src/components/ui/copyable-text.tsx @@ -31,7 +31,7 @@ export const CopyableText: React.FC = ({ onClick={copyText} aria-label="Copy to clipboard" className={cn( - 'inline-flex size-5 shrink-0 cursor-pointer items-center justify-center border-0 bg-transparent p-0 text-muted-text opacity-0 transition-opacity hover:text-content group-hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring', + 'inline-flex size-5 shrink-0 cursor-pointer items-center justify-center border-0 bg-transparent p-0 text-muted-text opacity-100 transition-opacity hover:text-content focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring [@media(hover:hover)_and_(pointer:fine)]:pointer-events-none [@media(hover:hover)_and_(pointer:fine)]:opacity-0 [@media(hover:hover)_and_(pointer:fine)]:group-hover:pointer-events-auto [@media(hover:hover)_and_(pointer:fine)]:group-hover:opacity-100 [@media(hover:hover)_and_(pointer:fine)]:focus-visible:pointer-events-auto [@media(hover:hover)_and_(pointer:fine)]:focus-visible:opacity-100', className )} > diff --git a/src/components/ui/timestamp-display.tsx b/src/components/ui/timestamp-display.tsx index 25ac7f4..2d0307d 100644 --- a/src/components/ui/timestamp-display.tsx +++ b/src/components/ui/timestamp-display.tsx @@ -1,3 +1,5 @@ +import { utc } from '@date-fns/utc'; +import { format as formatDate } from 'date-fns/format'; import * as React from 'react'; import { formatDistanceTimestamp, formatTimestamp } from '@/utils/formatter'; @@ -6,13 +8,17 @@ import { Popover, PopoverContent, PopoverTrigger } from './popover'; export interface TimestampDisplayProps { timestamp: string; + format?: string; } export const TimestampDisplay: React.FC = ({ - timestamp + timestamp, + format: formatPattern }) => { const [isOpen, setIsOpen] = React.useState(false); - const timeinUtc = formatTimestamp(timestamp); + const timeinUtc = formatPattern + ? formatDate(new Date(timestamp), formatPattern, { in: utc }) + : formatTimestamp(timestamp); const timeDistance = formatDistanceTimestamp(timestamp); return ( diff --git a/src/config/site-navigations.ts b/src/config/site-navigations.ts index 7559bb5..dfd16dc 100644 --- a/src/config/site-navigations.ts +++ b/src/config/site-navigations.ts @@ -47,5 +47,6 @@ export const SITE_NAVIGATIONS: (SiteNavigation | ParentNavigation)[] = [ } ] }, - { label: 'Miners', path: '/miner-leaderboard' } + { label: 'Miners', path: '/miner-leaderboard' }, + { label: 'Vesting', path: '/vesting' } ]; diff --git a/src/constants/query-sorts/index.ts b/src/constants/query-sorts/index.ts index d0b13f0..10039a7 100644 --- a/src/constants/query-sorts/index.ts +++ b/src/constants/query-sorts/index.ts @@ -13,3 +13,4 @@ export * from './multisig-proposal-ready'; export * from './multisig-proposal-removed'; export * from './multisig-signer-approved'; export * from './unified-list-transactions'; +export * from './vesting-schedules'; diff --git a/src/constants/query-sorts/vesting-schedules.ts b/src/constants/query-sorts/vesting-schedules.ts new file mode 100644 index 0000000..2de864a --- /dev/null +++ b/src/constants/query-sorts/vesting-schedules.ts @@ -0,0 +1,11 @@ +import type { SortDirection } from '@/types/query'; + +export interface VestingScheduleSorts { + beneficiary?: SortDirection; + total?: SortDirection; + claimed?: SortDirection; + start?: SortDirection; + cliff?: SortDirection; + end?: SortDirection; + last_claim_at?: SortDirection; +} diff --git a/src/constants/resources.ts b/src/constants/resources.ts index 4542817..743bb59 100644 --- a/src/constants/resources.ts +++ b/src/constants/resources.ts @@ -6,6 +6,7 @@ export const RESOURCES = { accounts: '/accounts', blocks: '/blocks', minerRewards: '/miner-rewards', + vesting: '/vesting', highSecuritySets: '/high-security-sets', errors: '/errors', wormhole: '/transactions/wormhole', diff --git a/src/hooks/useChecksum.tsx b/src/hooks/useChecksum.tsx index a5fd35b..a9a58b6 100644 --- a/src/hooks/useChecksum.tsx +++ b/src/hooks/useChecksum.tsx @@ -1,28 +1,56 @@ import { useEffect, useState } from 'react'; -import { toast } from 'sonner'; import { getChecksum } from '@/utils/get-checksum'; +type ResolvedChecksum = { + id: string; + checksum: string | null; + error: Error | null; +}; + export const useChecksum = (wait: boolean, id?: string) => { - const [checksum, setChecksum] = useState(null); + const [resolved, setResolved] = useState(null); const [loading, setLoading] = useState(true); useEffect(() => { + if (!id || wait) return; + + let cancelled = false; + const fetchChecksum = async () => { + setLoading(true); + try { - setLoading(true); const response = await getChecksum(id); - setChecksum(response); + if (cancelled) return; + setResolved({ id, checksum: response, error: null }); + setLoading(false); + } catch (caught) { + if (cancelled) return; + setResolved({ + id, + checksum: null, + error: + caught instanceof Error + ? caught + : new Error('Failed to load check phrase') + }); setLoading(false); - } catch (error: any) { - toast.error('Error fetching checksum:', error.message); } }; - if (id && !wait) { - fetchChecksum(); - } + fetchChecksum(); + + return () => { + cancelled = true; + }; }, [id, wait]); - return { checksum, loading }; + const current = resolved?.id === id ? resolved : null; + + return { + checksum: current?.checksum ?? null, + loading: current ? loading : true, + error: current?.error ?? null + }; }; diff --git a/src/routeTree.gen.ts b/src/routeTree.gen.ts index f54436e..f155ffc 100644 --- a/src/routeTree.gen.ts +++ b/src/routeTree.gen.ts @@ -10,6 +10,7 @@ import { Route as rootRouteImport } from './routes/__root' import { Route as IndexRouteImport } from './routes/index' +import { Route as VestingIndexRouteImport } from './routes/vesting/index' import { Route as TransactionsIndexRouteImport } from './routes/transactions/index' import { Route as MultisigIndexRouteImport } from './routes/multisig/index' import { Route as MultisigSignerApprovedIndexRouteImport } from './routes/multisig-signer-approved/index' @@ -52,6 +53,11 @@ const IndexRoute = IndexRouteImport.update({ path: '/', getParentRoute: () => rootRouteImport, } as any) +const VestingIndexRoute = VestingIndexRouteImport.update({ + id: '/vesting/', + path: '/vesting/', + getParentRoute: () => rootRouteImport, +} as any) const TransactionsIndexRoute = TransactionsIndexRouteImport.update({ id: '/transactions/', path: '/transactions/', @@ -284,6 +290,7 @@ export interface FileRoutesByFullPath { '/multisig-signer-approved': typeof MultisigSignerApprovedIndexRoute '/multisig': typeof MultisigIndexRoute '/transactions': typeof TransactionsIndexRoute + '/vesting': typeof VestingIndexRoute '/transactions/cancelled-reversible/$txId': typeof TransactionsCancelledReversibleTxIdRoute '/transactions/executed-reversible/$txId': typeof TransactionsExecutedReversibleTxIdRoute '/transactions/scheduled-reversible/$txId': typeof TransactionsScheduledReversibleTxIdRoute @@ -323,6 +330,7 @@ export interface FileRoutesByTo { '/multisig-signer-approved': typeof MultisigSignerApprovedIndexRoute '/multisig': typeof MultisigIndexRoute '/transactions': typeof TransactionsIndexRoute + '/vesting': typeof VestingIndexRoute '/transactions/cancelled-reversible/$txId': typeof TransactionsCancelledReversibleTxIdRoute '/transactions/executed-reversible/$txId': typeof TransactionsExecutedReversibleTxIdRoute '/transactions/scheduled-reversible/$txId': typeof TransactionsScheduledReversibleTxIdRoute @@ -363,6 +371,7 @@ export interface FileRoutesById { '/multisig-signer-approved/': typeof MultisigSignerApprovedIndexRoute '/multisig/': typeof MultisigIndexRoute '/transactions/': typeof TransactionsIndexRoute + '/vesting/': typeof VestingIndexRoute '/transactions/cancelled-reversible/$txId': typeof TransactionsCancelledReversibleTxIdRoute '/transactions/executed-reversible/$txId': typeof TransactionsExecutedReversibleTxIdRoute '/transactions/scheduled-reversible/$txId': typeof TransactionsScheduledReversibleTxIdRoute @@ -404,6 +413,7 @@ export interface FileRouteTypes { | '/multisig-signer-approved' | '/multisig' | '/transactions' + | '/vesting' | '/transactions/cancelled-reversible/$txId' | '/transactions/executed-reversible/$txId' | '/transactions/scheduled-reversible/$txId' @@ -443,6 +453,7 @@ export interface FileRouteTypes { | '/multisig-signer-approved' | '/multisig' | '/transactions' + | '/vesting' | '/transactions/cancelled-reversible/$txId' | '/transactions/executed-reversible/$txId' | '/transactions/scheduled-reversible/$txId' @@ -482,6 +493,7 @@ export interface FileRouteTypes { | '/multisig-signer-approved/' | '/multisig/' | '/transactions/' + | '/vesting/' | '/transactions/cancelled-reversible/$txId' | '/transactions/executed-reversible/$txId' | '/transactions/scheduled-reversible/$txId' @@ -522,6 +534,7 @@ export interface RootRouteChildren { MultisigSignerApprovedIndexRoute: typeof MultisigSignerApprovedIndexRoute MultisigIndexRoute: typeof MultisigIndexRoute TransactionsIndexRoute: typeof TransactionsIndexRoute + VestingIndexRoute: typeof VestingIndexRoute TransactionsCancelledReversibleTxIdRoute: typeof TransactionsCancelledReversibleTxIdRoute TransactionsExecutedReversibleTxIdRoute: typeof TransactionsExecutedReversibleTxIdRoute TransactionsScheduledReversibleTxIdRoute: typeof TransactionsScheduledReversibleTxIdRoute @@ -538,6 +551,13 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof IndexRouteImport parentRoute: typeof rootRouteImport } + '/vesting/': { + id: '/vesting/' + path: '/vesting' + fullPath: '/vesting' + preLoaderRoute: typeof VestingIndexRouteImport + parentRoute: typeof rootRouteImport + } '/transactions/': { id: '/transactions/' path: '/transactions' @@ -826,6 +846,7 @@ const rootRouteChildren: RootRouteChildren = { MultisigSignerApprovedIndexRoute: MultisigSignerApprovedIndexRoute, MultisigIndexRoute: MultisigIndexRoute, TransactionsIndexRoute: TransactionsIndexRoute, + VestingIndexRoute: VestingIndexRoute, TransactionsCancelledReversibleTxIdRoute: TransactionsCancelledReversibleTxIdRoute, TransactionsExecutedReversibleTxIdRoute: diff --git a/src/routes/vesting/index.tsx b/src/routes/vesting/index.tsx new file mode 100644 index 0000000..eaffab2 --- /dev/null +++ b/src/routes/vesting/index.tsx @@ -0,0 +1,32 @@ +import { createFileRoute } from '@tanstack/react-router'; + +import { useVestingScheduleChart } from '@/components/features/vesting-schedule-listing/vesting-schedule-chart/hook'; +import { VestingScheduleChart } from '@/components/features/vesting-schedule-listing/vesting-schedule-chart/VestingScheduleChart'; +import { VestingScheduleStats } from '@/components/features/vesting-schedule-listing/vesting-schedule-stats/VestingScheduleStats'; +import { VestingScheduleTable } from '@/components/features/vesting-schedule-listing/vesting-schedule-table/VestingScheduleTable'; +import { ContentContainer } from '@/components/ui/content-container'; +import { SectionContainer } from '@/components/ui/section-container'; + +export const Route = createFileRoute('/vesting/')({ + component: Vesting +}); + +function Vesting() { + const chart = useVestingScheduleChart(); + + return ( + + +

Vesting

+ + + + + + +
+
+ ); +} + +export default Vesting; diff --git a/src/schemas/account.ts b/src/schemas/account.ts index 9733d25..ba69773 100644 --- a/src/schemas/account.ts +++ b/src/schemas/account.ts @@ -1,6 +1,9 @@ import type * as gql from '../__generated__/graphql'; -export type Account = Pick; +export type Account = Pick< + gql.Account, + 'id' | 'free' | 'frozen' | 'reserved' | 'is_deposit_only' +>; /** Listing row: flags are denormalized onto `account` by the indexer (no nested event lookups). */ export interface AccountListItem extends Account { diff --git a/src/schemas/chain-status.ts b/src/schemas/chain-status.ts index 9e34ef2..fc1949c 100644 --- a/src/schemas/chain-status.ts +++ b/src/schemas/chain-status.ts @@ -20,6 +20,14 @@ export interface AggregateCount { } | null; } +export interface AggregateAmountSum { + aggregate?: { + sum?: { + amount?: string | null; + } | null; + } | null; +} + export interface HomeChainStatsStatus { block_height: number; total_accounts: number; @@ -28,6 +36,10 @@ export interface HomeChainStatsStatus { total_scheduled_transfers: number; total_executed_transfers: number; total_cancelled_transfers: number; + circulating_supply: string; + max_supply: string; + total_supply: string; + total_transferred_amount: string; } export interface DailyChainStatRow { @@ -36,15 +48,18 @@ export interface DailyChainStatRow { blocks_count: number; tx_count: number; active_accounts: number; + transferred_amount: string; } export interface HomeChainStatsResponse { status: HomeChainStatsStatus | null; last24Hour: AggregateCount; + last24HourTransferred: AggregateAmountSum; dailyStats: DailyChainStatRow[]; } export interface HomeChainStatsVariables { last24HourWhere: Unified_Transaction_Bool_Exp; + last24HourTransferredWhere: Unified_Transaction_Bool_Exp; dayLimit: number; } diff --git a/src/schemas/index.ts b/src/schemas/index.ts index 9c9176e..5393c11 100644 --- a/src/schemas/index.ts +++ b/src/schemas/index.ts @@ -21,4 +21,5 @@ export * from './searchs'; export * from './transcation'; export * from './unified-list-transaction'; export * from './unified-transaction'; +export * from './vesting-schedule'; export * from './wormhole'; diff --git a/src/schemas/vesting-schedule.ts b/src/schemas/vesting-schedule.ts new file mode 100644 index 0000000..13ad67f --- /dev/null +++ b/src/schemas/vesting-schedule.ts @@ -0,0 +1,38 @@ +export interface VestingScheduleListItem { + id: string; + beneficiary: string; + total: string; + claimed: string; + start: string; + cliff: string; + end: string; + last_claim_at?: string | null; +} + +export interface VestingScheduleListResponse { + schedules: VestingScheduleListItem[]; + meta: { + aggregate: { + totalCount: number; + }; + }; +} + +export interface VestingScheduleStatsResponse { + meta: { + aggregate?: { + count: number; + sum?: { + total?: string | null; + claimed?: string | null; + } | null; + } | null; + }; +} + +export interface VestingScheduleChartResponse { + schedules: Pick< + VestingScheduleListItem, + 'id' | 'start' | 'cliff' | 'end' | 'total' + >[]; +} diff --git a/src/utils/classify-account-address.test.ts b/src/utils/classify-account-address.test.ts new file mode 100644 index 0000000..2a710b4 --- /dev/null +++ b/src/utils/classify-account-address.test.ts @@ -0,0 +1,40 @@ +import { classifyAccountAddress } from './classify-account-address'; + +const standard = { + isHighSecurity: false, + isGuardian: false, + isMultisig: false +}; + +describe('classifyAccountAddress', () => { + it('classifies a standard deposit-only account as a potential encrypted address', () => { + expect(classifyAccountAddress({ ...standard, isDepositOnly: true })).toBe( + 'Potential Encrypted Address' + ); + }); + + it('classifies a standard account that is not deposit-only as a transparent address', () => { + expect(classifyAccountAddress({ ...standard, isDepositOnly: false })).toBe( + 'Transparent Address' + ); + }); + + it('classifies a missing account row as a transparent address', () => { + expect(classifyAccountAddress({ ...standard, isDepositOnly: null })).toBe( + 'Transparent Address' + ); + }); + + it.each([ + { isHighSecurity: true, isGuardian: false, isMultisig: false }, + { isHighSecurity: false, isGuardian: true, isMultisig: false }, + { isHighSecurity: false, isGuardian: false, isMultisig: true } + ])( + 'classifies a flagged account as a transparent address even when it is deposit-only', + (flags) => { + expect(classifyAccountAddress({ ...flags, isDepositOnly: true })).toBe( + 'Transparent Address' + ); + } + ); +}); diff --git a/src/utils/classify-account-address.ts b/src/utils/classify-account-address.ts new file mode 100644 index 0000000..a2f4597 --- /dev/null +++ b/src/utils/classify-account-address.ts @@ -0,0 +1,25 @@ +export const TRANSPARENT_ADDRESS_LABEL = 'Transparent Address'; +export const POTENTIAL_ENCRYPTED_ADDRESS_LABEL = 'Potential Encrypted Address'; + +export interface AccountAddressClassification { + isHighSecurity: boolean; + isGuardian: boolean; + isMultisig: boolean; + /** Null when the indexer has no account row yet. */ + isDepositOnly: boolean | null; +} + +export function classifyAccountAddress({ + isHighSecurity, + isGuardian, + isMultisig, + isDepositOnly +}: AccountAddressClassification): string { + const isStandard = !isHighSecurity && !isGuardian && !isMultisig; + + if (isStandard && isDepositOnly === true) { + return POTENTIAL_ENCRYPTED_ADDRESS_LABEL; + } + + return TRANSPARENT_ADDRESS_LABEL; +} diff --git a/src/utils/formatter.test.ts b/src/utils/formatter.test.ts new file mode 100644 index 0000000..b22463d --- /dev/null +++ b/src/utils/formatter.test.ts @@ -0,0 +1,37 @@ +import { TOKEN_DECIMALS } from '@/constants/token-decimals'; + +import { formatMonetaryValue } from './formatter'; + +const plancks = (units: string) => { + const [whole, fraction = ''] = units.split('.'); + const padded = fraction.padEnd(TOKEN_DECIMALS, '0').slice(0, TOKEN_DECIMALS); + + return `${whole}${padded}`; +}; + +describe('formatMonetaryValue', () => { + it('keeps a zero balance as zero', () => { + expect(formatMonetaryValue('0')).toBe('0 QTC'); + }); + + it('keeps amounts below one thousand without grouping', () => { + expect(formatMonetaryValue(plancks('123.45'), 2)).toBe('123.45 QTC'); + }); + + it('groups thousands and larger amounts so they stay readable', () => { + expect(formatMonetaryValue(plancks('1234.56'), 2)).toBe('1,234.56 QTC'); + expect(formatMonetaryValue(plancks('12345.67'), 2)).toBe('12,345.67 QTC'); + expect(formatMonetaryValue(plancks('123456.78'), 2)).toBe('123,456.78 QTC'); + expect(formatMonetaryValue(plancks('1234567.89'), 2)).toBe( + '1,234,567.89 QTC' + ); + }); + + it('strips trailing fractional zeros after grouping', () => { + expect(formatMonetaryValue(plancks('1000'), 5)).toBe('1,000 QTC'); + }); + + it('keeps a leading zero for fractional amounts', () => { + expect(formatMonetaryValue(plancks('0.5'), 5)).toBe('0.5 QTC'); + }); +}); diff --git a/src/utils/formatter.ts b/src/utils/formatter.ts index 60a963c..8f1e773 100644 --- a/src/utils/formatter.ts +++ b/src/utils/formatter.ts @@ -37,6 +37,11 @@ export const formatDistanceTimestamp = (timestamp?: string | Date) => { return distance; }; +const groupIntegerDigits = (integer: bigint) => { + const digits = integer.toString(); + return digits.replace(/\B(?=(\d{3})+(?!\d))/g, ','); +}; + export const formatMonetaryValue = ( value: bigint | string, digits?: number @@ -48,8 +53,15 @@ export const formatMonetaryValue = ( const integerPart = result / factor; const fractionalPart = result % factor; - const combinedPart = `${integerPart}.${fractionalPart.toString().padStart(decimals, '0')}`; - const formatted = combinedPart.replace(/\.?(0+)$/, ''); + const integerText = groupIntegerDigits(integerPart); + const fractionalText = fractionalPart + .toString() + .padStart(decimals, '0') + .replace(/0+$/, ''); + const formatted = + fractionalText.length > 0 + ? `${integerText}.${fractionalText}` + : integerText; return `${formatted} ${env.COIN_SYMBOL}`; }; diff --git a/src/utils/get-checksum.test.ts b/src/utils/get-checksum.test.ts new file mode 100644 index 0000000..e49767c --- /dev/null +++ b/src/utils/get-checksum.test.ts @@ -0,0 +1,79 @@ +import { addressToChecksum } from 'human-readable-checksum'; + +import { getChecksum } from './get-checksum'; + +const store = new Map(); +Object.assign(globalThis, { + localStorage: { + getItem: (key: string) => store.get(key) ?? null, + setItem: (key: string, value: string) => { + store.set(key, value); + }, + removeItem: (key: string) => { + store.delete(key); + }, + clear: () => { + store.clear(); + } + } +}); + +jest.mock('human-readable-checksum', () => ({ + loadWordList: () => ['word'], + addressToChecksum: jest.fn(() => [ + 'alpha', + 'bravo', + 'charlie', + 'delta', + 'echo' + ]) +})); + +const addressToChecksumMock = addressToChecksum as jest.Mock; + +describe('getChecksum', () => { + it('does not compute the check phrase in the turn that starts loading', async () => { + addressToChecksumMock.mockClear(); + + const pending = getChecksum('qz-defer-1'); + + expect(addressToChecksumMock).not.toHaveBeenCalled(); + + await expect(pending).resolves.toBe('alpha-bravo-charlie-delta-echo'); + expect(addressToChecksumMock).toHaveBeenCalledTimes(1); + }); + + it('computes a repeated address once', async () => { + addressToChecksumMock.mockClear(); + + const [first, second] = await Promise.all([ + getChecksum('qz-shared'), + getChecksum('qz-shared') + ]); + + expect(first).toBe('alpha-bravo-charlie-delta-echo'); + expect(second).toBe(first); + expect(addressToChecksumMock).toHaveBeenCalledTimes(1); + }); + + it('reuses a check phrase saved in localStorage without computing', async () => { + localStorage.setItem( + 'quantus:checkphrase:qz-stored', + 'alpha-bravo-charlie-delta-echo' + ); + addressToChecksumMock.mockClear(); + + await expect(getChecksum('qz-stored')).resolves.toBe( + 'alpha-bravo-charlie-delta-echo' + ); + expect(addressToChecksumMock).not.toHaveBeenCalled(); + }); + + it('saves a newly computed check phrase in localStorage', async () => { + await getChecksum('qz-new-store'); + + expect(localStorage.getItem('quantus:checkphrase:qz-new-store')).toBe( + 'alpha-bravo-charlie-delta-echo' + ); + }); +}); diff --git a/src/utils/get-checksum.ts b/src/utils/get-checksum.ts index 472e007..da7687d 100644 --- a/src/utils/get-checksum.ts +++ b/src/utils/get-checksum.ts @@ -1,14 +1,100 @@ import { addressToChecksum, loadWordList } from 'human-readable-checksum'; +const STORAGE_PREFIX = 'quantus:checkphrase:'; + let wordList: string[] = []; +const cache = new Map(); +const inflight = new Map>(); + +const storageKey = (address: string) => `${STORAGE_PREFIX}${address}`; + +const readStored = (address: string) => { + try { + return localStorage.getItem(storageKey(address)); + } catch { + return null; + } +}; + +const writeStored = (address: string, checksum: string) => { + try { + localStorage.setItem(storageKey(address), checksum); + } catch { + // The phrase is already computed. A storage failure only means the next visit recomputes it. + } +}; -export const getChecksum = async (address?: string): Promise => { - if (!address) return null; +type Job = { + address: string; + resolve: (value: string | null) => void; + reject: (error: unknown) => void; +}; + +const queue: Job[] = []; +let scheduled = false; + +const compute = (address: string) => { + const cached = cache.get(address); + if (cached) return cached; - /** Load the bip39 word list, will be cached so only need to load once. */ if (wordList.length === 0) wordList = loadWordList(); const checksum = addressToChecksum(address, wordList).join('-'); - + cache.set(address, checksum); + writeStored(address, checksum); return checksum; }; + +const drainOne = () => { + scheduled = false; + const job = queue.shift(); + if (!job) return; + + try { + job.resolve(compute(job.address)); + } catch (error) { + job.reject(error); + } + + if (queue.length > 0) scheduleDrain(); +}; + +const scheduleDrain = () => { + if (scheduled) return; + scheduled = true; + setTimeout(drainOne, 0); +}; + +export const getChecksum = (address?: string): Promise => { + if (!address) return Promise.resolve(null); + + const cached = cache.get(address); + if (cached) return Promise.resolve(cached); + + const stored = readStored(address); + if (stored) { + cache.set(address, stored); + return Promise.resolve(stored); + } + + const existing = inflight.get(address); + if (existing) return existing; + + const promise = new Promise((resolve, reject) => { + queue.push({ + address, + resolve: (value) => { + inflight.delete(address); + resolve(value); + }, + reject: (error) => { + inflight.delete(address); + reject(error); + } + }); + scheduleDrain(); + }); + + inflight.set(address, promise); + return promise; +}; diff --git a/src/utils/get-home-stats-day-windows.ts b/src/utils/get-home-stats-day-windows.ts index f9fc381..363c0a6 100644 --- a/src/utils/get-home-stats-day-windows.ts +++ b/src/utils/get-home-stats-day-windows.ts @@ -5,7 +5,7 @@ import { startOfToday } from 'date-fns/startOfToday'; import { subDays } from 'date-fns/subDays'; import { useMemo } from 'react'; -/** Number of daily sparkline points (inclusive of today). */ +/** Number of completed UTC days shown on homepage sparklines. */ export const HOME_STATS_DAY_COUNT = 7; export interface DayWindow { diff --git a/src/utils/is-unknown-account-not-found.test.ts b/src/utils/is-unknown-account-not-found.test.ts new file mode 100644 index 0000000..faf4b8d --- /dev/null +++ b/src/utils/is-unknown-account-not-found.test.ts @@ -0,0 +1,30 @@ +import * as ss58 from '@subsquid/ss58-codec'; + +import { isUnknownAccountNotFound } from './is-unknown-account-not-found'; + +const unusedAddress = ss58.encode({ + prefix: 189, + bytes: new Uint8Array(32).fill(1) +}); + +describe('isUnknownAccountNotFound', () => { + it('does not 404 a valid SS58 id when Subsquid has no account row', () => { + expect( + isUnknownAccountNotFound({ + loading: false, + account: null, + accountId: unusedAddress + }) + ).toBe(false); + }); + + it('404s an invalid id when Subsquid has no account row', () => { + expect( + isUnknownAccountNotFound({ + loading: false, + account: null, + accountId: 'not-an-address' + }) + ).toBe(true); + }); +}); diff --git a/src/utils/is-unknown-account-not-found.ts b/src/utils/is-unknown-account-not-found.ts new file mode 100644 index 0000000..bc13141 --- /dev/null +++ b/src/utils/is-unknown-account-not-found.ts @@ -0,0 +1,11 @@ +import { validateAccountId } from './validate-account-id'; + +export const isUnknownAccountNotFound = ({ + loading, + account, + accountId +}: { + loading: boolean; + account: unknown; + accountId: string; +}) => !loading && !account && !validateAccountId(accountId); diff --git a/src/utils/unified-transaction-filters.test.ts b/src/utils/unified-transaction-filters.test.ts index e16272f..c229d8c 100644 --- a/src/utils/unified-transaction-filters.test.ts +++ b/src/utils/unified-transaction-filters.test.ts @@ -2,9 +2,35 @@ import { EXCLUDE_REWARD_TRANSFERS, extractAccountPartyId, isUnfilteredExcludeRewards, + last24HourTransferredWhere, withExcludedRewardTransfers } from './unified-transaction-filters'; +describe('last24HourTransferredWhere', () => { + it('includes signed immediate, wormhole, and executed reversible amounts only', () => { + const where = last24HourTransferredWhere( + '2026-09-27T15:30:00.000Z', + '2026-09-28T15:30:00.000Z' + ); + + expect(where).toEqual({ + timestamp: { + _gte: '2026-09-27T15:30:00.000Z', + _lte: '2026-09-28T15:30:00.000Z' + }, + _or: [ + { + _and: [{ type: { _eq: 'IMMEDIATE' } }, { hash: { _is_null: false } }] + }, + { type: { _eq: 'WORMHOLE' } }, + { type: { _eq: 'EXECUTED_REVERSIBLE' } } + ] + }); + expect(JSON.stringify(where)).not.toContain('SCHEDULED_REVERSIBLE'); + expect(JSON.stringify(where)).not.toContain('CANCELLED_REVERSIBLE'); + }); +}); + describe('isUnfilteredExcludeRewards', () => { it('treats undefined as unfiltered', () => { expect(isUnfilteredExcludeRewards(undefined)).toBe(true); diff --git a/src/utils/unified-transaction-filters.ts b/src/utils/unified-transaction-filters.ts index e9421e4..92c7986 100644 --- a/src/utils/unified-transaction-filters.ts +++ b/src/utils/unified-transaction-filters.ts @@ -14,6 +14,27 @@ export function withExcludedRewardTransfers( return { _and: [EXCLUDE_REWARD_TRANSFERS, where] }; } +/** + * Rolling-window sum for Total Transferred. + * Counts signed immediate amounts, wormhole outputs, and executed reversible amounts. + * Scheduled and cancelled rows are excluded: a reversible amount counts once, when it executes. + */ +export function last24HourTransferredWhere( + startDate: string, + endDate: string +): Unified_Transaction_Bool_Exp { + return { + timestamp: { _gte: startDate, _lte: endDate }, + _or: [ + { + _and: [{ type: { _eq: 'IMMEDIATE' } }, { hash: { _is_null: false } }] + }, + { type: { _eq: 'WORMHOLE' } }, + { type: { _eq: 'EXECUTED_REVERSIBLE' } } + ] + }; +} + /** True when where is exactly the global exclude-rewards filter (no extra predicates). */ export function isUnfilteredExcludeRewards( where?: Unified_Transaction_Bool_Exp diff --git a/src/utils/vesting-schedule.test.ts b/src/utils/vesting-schedule.test.ts new file mode 100644 index 0000000..ce9b015 --- /dev/null +++ b/src/utils/vesting-schedule.test.ts @@ -0,0 +1,140 @@ +import { + buildUnlockSeries, + InvalidVestingScheduleError, + vestedAmount +} from './vesting-schedule'; + +const b = (value: number) => BigInt(value); + +/** pallet_vesting test schedule: start 100_000, cliff 200_000, end 500_000, total 10_000_000. */ +const chain = { + start: '100000', + cliff: '200000', + end: '500000', + total: '10000000' +}; + +describe('vestedAmount', () => { + it('is 0 before the cliff, including at start', () => { + expect(vestedAmount(chain, b(0))).toBe(b(0)); + expect(vestedAmount(chain, b(100000))).toBe(b(0)); + expect(vestedAmount(chain, b(199999))).toBe(b(0)); + }); + + it('jumps to the amount accrued since start at the cliff', () => { + expect(vestedAmount(chain, b(200000))).toBe(b(2500000)); + }); + + it('vests linearly from start to end after the cliff', () => { + expect(vestedAmount(chain, b(300000))).toBe(b(5000000)); + expect(vestedAmount(chain, b(400000))).toBe(b(7500000)); + expect(vestedAmount(chain, b(499999))).toBe(b(9999975)); + }); + + it('is the full total at and after the end', () => { + expect(vestedAmount(chain, b(500000))).toBe(b(10000000)); + expect(vestedAmount(chain, b(900000))).toBe(b(10000000)); + }); + + it('floors partial quanta', () => { + const partial = { start: '0', cliff: '0', end: '3', total: '100' }; + expect(vestedAmount(partial, b(1))).toBe(b(33)); + expect(vestedAmount(partial, b(2))).toBe(b(66)); + expect(vestedAmount(partial, b(3))).toBe(b(100)); + }); + + it('is pure linear when start and cliff are the same', () => { + const linear = { + start: '100000', + cliff: '100000', + end: '500000', + total: '10000000' + }; + expect(vestedAmount(linear, b(100000))).toBe(b(0)); + expect(vestedAmount(linear, b(100001))).toBe(b(25)); + }); + + it('unlocks the full total when cliff and end are the same instant', () => { + const instant = { + start: '100000', + cliff: '500000', + end: '500000', + total: '10000000' + }; + expect(vestedAmount(instant, b(499999))).toBe(b(0)); + expect(vestedAmount(instant, b(500000))).toBe(b(10000000)); + }); + + it('rejects a schedule the pallet would reject', () => { + expect(() => + vestedAmount( + { start: '300000', cliff: '200000', end: '500000', total: '100' }, + b(0) + ) + ).toThrow(InvalidVestingScheduleError); + expect(() => + vestedAmount( + { start: '100000', cliff: '100000', end: '100000', total: '100' }, + b(0) + ) + ).toThrow(InvalidVestingScheduleError); + }); +}); + +describe('buildUnlockSeries', () => { + const early = { + start: '0', + cliff: '1000', + end: '3000', + total: '3000' + }; + const late = { + start: '1000', + cliff: '2000', + end: '4000', + total: '3000' + }; + + it('jumps at each cliff to the accrued total, then finishes at each end', () => { + expect(buildUnlockSeries([early, late], b(2500))).toEqual([ + { t: 0, unlocked: b(0) }, + { t: 1000, unlocked: b(0) }, + { t: 1000, unlocked: b(1000) }, + { t: 2000, unlocked: b(2000) }, + { t: 2000, unlocked: b(3000) }, + { t: 2500, unlocked: b(4000) }, + { t: 3000, unlocked: b(5000) }, + { t: 4000, unlocked: b(6000) } + ]); + }); + + it('samples one point per day across the vest', () => { + const day = 86_400_000; + const schedule = { + start: '0', + cliff: '0', + end: String(day * 3), + total: '3000' + }; + + expect(buildUnlockSeries([schedule], b(day))).toEqual([ + { t: 0, unlocked: b(0) }, + { t: day, unlocked: b(1000) }, + { t: day * 2, unlocked: b(2000) }, + { t: day * 3, unlocked: b(3000) } + ]); + }); + + it('returns an empty series when there are no schedules', () => { + expect(buildUnlockSeries([], b(1000))).toEqual([]); + }); + + it('rejects the series when any schedule is invalid', () => { + expect(() => + buildUnlockSeries( + [early, { start: '5000', cliff: '1000', end: '1000', total: '1' }], + b(1000) + ) + ).toThrow(InvalidVestingScheduleError); + }); +}); diff --git a/src/utils/vesting-schedule.ts b/src/utils/vesting-schedule.ts new file mode 100644 index 0000000..af71b91 --- /dev/null +++ b/src/utils/vesting-schedule.ts @@ -0,0 +1,137 @@ +export class InvalidVestingScheduleError extends Error { + constructor(message: string) { + super(message); + this.name = 'InvalidVestingScheduleError'; + } +} + +export interface VestingUnlockSchedule { + start: string; + cliff: string; + end: string; + total: string; +} + +export interface UnlockSeriesPoint { + t: number; + unlocked: bigint; +} + +const parseAmount = (value: string, field: string) => { + if (!/^\d+$/.test(value)) { + throw new InvalidVestingScheduleError(`${field} is not an integer`); + } + return BigInt(value); +}; + +const parseMs = (value: string, field: string) => { + if (!/^-?\d+$/.test(value)) { + throw new InvalidVestingScheduleError( + `${field} is not an integer timestamp` + ); + } + return BigInt(value); +}; + +const byTime = (left: bigint, right: bigint) => { + if (left < right) return -1; + if (left > right) return 1; + return 0; +}; + +const toChartTime = (ms: bigint) => { + const asNumber = Number(ms); + if (!Number.isSafeInteger(asNumber)) { + throw new InvalidVestingScheduleError( + 'timestamp is outside the safe chart range' + ); + } + return asNumber; +}; + +export const vestingMsToDate = (value: string): Date => + new Date(toChartTime(parseMs(value, 'timestamp'))); + +export const vestedAmount = ( + schedule: VestingUnlockSchedule, + atMs: bigint +): bigint => { + const start = parseMs(schedule.start, 'start'); + const cliff = parseMs(schedule.cliff, 'cliff'); + const end = parseMs(schedule.end, 'end'); + const total = parseAmount(schedule.total, 'total'); + + if (start > cliff || cliff > end || start >= end) { + throw new InvalidVestingScheduleError( + 'schedule must have start <= cliff <= end and start < end' + ); + } + if (atMs < cliff) return BigInt(0); + if (atMs >= end) return total; + + return (total * (atMs - start)) / (end - start); +}; + +const sumVested = ( + schedules: VestingUnlockSchedule[], + atMs: bigint, + holdCliffAt?: bigint +) => + schedules.reduce((sum, schedule) => { + if ( + holdCliffAt !== undefined && + parseMs(schedule.cliff, 'cliff') === holdCliffAt + ) { + return sum; + } + return sum + vestedAmount(schedule, atMs); + }, BigInt(0)); + +export const buildUnlockSeries = ( + schedules: VestingUnlockSchedule[], + nowMs: bigint +): UnlockSeriesPoint[] => { + if (schedules.length === 0) return []; + + schedules.forEach((schedule) => { + vestedAmount(schedule, nowMs); + }); + + const times = new Set([nowMs]); + schedules.forEach((schedule) => { + times.add(parseMs(schedule.start, 'start')); + times.add(parseMs(schedule.cliff, 'cliff')); + times.add(parseMs(schedule.end, 'end')); + }); + + const events = [...times].sort(byTime); + const first = events[0]; + const last = events[events.length - 1]; + const day = BigInt(24 * 60 * 60 * 1000); + if (first !== undefined && last !== undefined && last > first) { + const spanDays = (last - first) / day; + if (spanDays > BigInt(200 * 366)) { + throw new InvalidVestingScheduleError( + 'vesting span is too long to chart' + ); + } + for (let time = first + day; time < last; time += day) { + times.add(time); + } + } + + return [...times].sort(byTime).flatMap((time) => { + const t = toChartTime(time); + const before = sumVested(schedules, time, time); + const after = sumVested(schedules, time); + + if (before === after) { + return [{ t, unlocked: after }]; + } + + return [ + { t, unlocked: before }, + { t, unlocked: after } + ]; + }); +};