From 9cf81538df14170db9f0a25db5f2bdcb76f6ac12 Mon Sep 17 00:00:00 2001 From: Beast Date: Fri, 10 Jul 2026 00:03:15 +0800 Subject: [PATCH 01/36] feat: extract design system from new file --- .cursor/rules/use-bun.mdc | 14 ++ bun.lock | 6 + index.html | 4 +- package.json | 2 + .../common/theme-provider/theme-provider.tsx | 83 ----------- src/components/layout/header/MobileMenu.tsx | 2 - src/components/layout/header/Topbar.tsx | 2 - .../composites/theme-toggle/ThemeToggle.tsx | 31 ---- src/components/ui/sonner.tsx | 6 +- src/globals.css | 133 +++++++++--------- src/main.tsx | 6 + src/providers.tsx | 7 +- src/tailwind/colors.ts | 25 ++++ src/tailwind/index.ts | 21 ++- 14 files changed, 144 insertions(+), 198 deletions(-) create mode 100644 .cursor/rules/use-bun.mdc delete mode 100644 src/components/common/theme-provider/theme-provider.tsx delete mode 100644 src/components/ui/composites/theme-toggle/ThemeToggle.tsx diff --git a/.cursor/rules/use-bun.mdc b/.cursor/rules/use-bun.mdc new file mode 100644 index 0000000..53d87bd --- /dev/null +++ b/.cursor/rules/use-bun.mdc @@ -0,0 +1,14 @@ +--- +description: Use Bun as the package manager and script runner +alwaysApply: true +--- + +# Use Bun, not npm + +This project uses **Bun** (`bun.lock` / `bun.lockb`). Prefer Bun for all package and script work. + +- Install deps: `bun add ` / `bun add -d ` / `bun install` +- Run scripts: `bun run From 1328913973374789767304ad354d7c62b3b7cd10 Mon Sep 17 00:00:00 2001 From: Beast Date: Tue, 14 Jul 2026 17:11:39 +0800 Subject: [PATCH 31/36] feat: finish updating multisig created details --- .../multisig-created-fields.tsx | 100 ++++++++++++------ src/routes/multisig-created/$hash.tsx | 8 +- 2 files changed, 70 insertions(+), 38 deletions(-) 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 7b9810e..237dd58 100644 --- a/src/components/features/multisig-created-details/multisig-created-fields.tsx +++ b/src/components/features/multisig-created-details/multisig-created-fields.tsx @@ -6,6 +6,7 @@ import { TimestampDisplay } from '@/components/ui/timestamp-display'; import { RESOURCES } from '@/constants/resources'; import type { MultisigCreated } from '@/schemas'; import { formatBlockHeight } from '@/utils/formatter'; +import { getMultisigWalletHref } from '@/utils/get-multisig-wallet-href'; type MultisigCreatedField = { label: string; @@ -14,16 +15,28 @@ type MultisigCreatedField = { render?: (value: unknown, item: Partial) => React.ReactNode; }; +const EmptyValue = () => ; + const getSharedMultisigConfigurationFields = (): MultisigCreatedField[] => [ { label: 'Threshold', key: 'threshold', - render: (value) => (value != null ? String(value) : '-') + render: (value) => + value != null ? ( + {String(value)} + ) : ( + + ) }, { label: 'Nonce', key: 'nonce', - render: (value) => (value != null ? String(value) : '-') + render: (value) => + value != null ? ( + {String(value)} + ) : ( + + ) }, { label: 'Creator', @@ -35,10 +48,9 @@ const getSharedMultisigConfigurationFields = (): MultisigCreatedField[] => [ href={`${RESOURCES.accounts}/${creatorId}`} text={creatorId} textCopy={creatorId} - className="break-all" /> ) : ( - '-' + ); } }, @@ -47,7 +59,7 @@ const getSharedMultisigConfigurationFields = (): MultisigCreatedField[] => [ key: 'signers', render: (value) => { const signers = value as string[] | undefined; - if (!signers?.length) return '-'; + if (!signers?.length) return ; return (
{signers.map((signer) => ( @@ -56,7 +68,6 @@ const getSharedMultisigConfigurationFields = (): MultisigCreatedField[] => [ href={`${RESOURCES.accounts}/${signer}`} text={signer} textCopy={signer} - className="break-all" /> ))}
@@ -69,31 +80,48 @@ export const getMultisigCreatedEventFields = (): MultisigCreatedField[] => [ { label: 'Extrinsic Hash', key: 'extrinsic', - render: (value) => - (value as MultisigCreated['extrinsic'])?.id ? ( - + render: (value) => { + const extrinsicId = (value as MultisigCreated['extrinsic'])?.id; + return extrinsicId ? ( + ) : ( - '-' - ) + + ); + } }, { label: 'Timestamp', key: 'timestamp', - render: (value) => + render: (value) => + value ? : }, { label: 'Block', key: 'block', - render: (value) => ( - - ) + render: (value) => { + const block = value as MultisigCreated['block'] | undefined; + if (!block) return ; + return ( + + ); + } + }, + { + label: 'Multisig', + key: 'id', + render: (value) => + value ? ( + + ) : ( + + ) }, ...getSharedMultisigConfigurationFields() ]; @@ -103,24 +131,32 @@ export const getMultisigAccountFields = (): MultisigCreatedField[] => [ label: 'Address', key: 'id', render: (value) => - value ? : '-' + value ? ( + + ) : ( + + ) }, ...getSharedMultisigConfigurationFields(), { label: 'Created At', key: 'timestamp', - render: (value) => + render: (value) => + value ? : }, { label: 'Block', key: 'block', - render: (value) => ( - - ) + render: (value) => { + const block = value as MultisigCreated['block'] | undefined; + if (!block) return ; + return ( + + ); + } }, { label: 'Creation Event', @@ -132,7 +168,7 @@ export const getMultisigAccountFields = (): MultisigCreatedField[] => [ text="View creation event" /> ) : ( - '-' + ) } ]; diff --git a/src/routes/multisig-created/$hash.tsx b/src/routes/multisig-created/$hash.tsx index 4e803bc..fb0f88d 100644 --- a/src/routes/multisig-created/$hash.tsx +++ b/src/routes/multisig-created/$hash.tsx @@ -14,12 +14,8 @@ function MultisigCreatedDetails() { return ( -
-

Multisig Created

-

- Detailed information about a multisig creation event. -

-
+

Multisig Created

+
From 50be4927d2ab4e5f6a6c5c09da49d0ef8d826618 Mon Sep 17 00:00:00 2001 From: Beast Date: Tue, 14 Jul 2026 17:23:50 +0800 Subject: [PATCH 32/36] feat: finish proposals related update --- index.html | 2 +- .../MULTISIG_PROPOSAL_REMOVED_COLUMNS.tsx | 4 +- .../MULTISIG_SIGNER_APPROVED_COLUMNS.tsx | 4 +- .../MultisigProposalCancelledInformation.tsx | 61 ++-- .../MultisigProposalCreatedInformation.tsx | 54 ++-- .../MultisigProposalInformation.tsx | 271 ++++++++++++------ .../MultisigProposalExecutedInformation.tsx | 67 +++-- .../MultisigProposalReadyInformation.tsx | 59 ++-- .../MultisigProposalRemovedInformation.tsx | 58 ++-- .../MultisigSignerApprovedInformation.tsx | 63 ++-- .../proposal-id-link/ProposalIdLink.tsx | 17 +- .../multisig-proposal-cancelled/$hash.tsx | 8 +- .../multisig-proposal-created/$hash.tsx | 8 +- .../multisig-proposal-executed/$hash.tsx | 8 +- src/routes/multisig-proposal-ready/$hash.tsx | 8 +- .../multisig-proposal-removed/$hash.tsx | 8 +- src/routes/multisig-proposals/$id.tsx | 6 +- src/routes/multisig-signer-approved/$hash.tsx | 8 +- 18 files changed, 434 insertions(+), 280 deletions(-) diff --git a/index.html b/index.html index b007929..cd1b074 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ -
+
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 c776e21..918a9cd 100644 --- a/src/components/common/table-columns/MULTISIG_PROPOSAL_REMOVED_COLUMNS.tsx +++ b/src/components/common/table-columns/MULTISIG_PROPOSAL_REMOVED_COLUMNS.tsx @@ -41,7 +41,9 @@ export const MULTISIG_PROPOSAL_REMOVED_COLUMNS = [ columnHelper.accessor('proposal.id', { id: 'proposal', header: 'Proposal', - cell: (props) => , + cell: (props) => ( + + ), enableSorting: false }), columnHelper.accessor('removedBy.id', { 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 45229ab..eeabe41 100644 --- a/src/components/common/table-columns/MULTISIG_SIGNER_APPROVED_COLUMNS.tsx +++ b/src/components/common/table-columns/MULTISIG_SIGNER_APPROVED_COLUMNS.tsx @@ -62,7 +62,9 @@ export const MULTISIG_SIGNER_APPROVED_COLUMNS = [ columnHelper.accessor('proposal.id', { id: 'proposal', header: 'Proposal', - cell: (props) => , + cell: (props) => ( + + ), enableSorting: false }), columnHelper.accessor('timestamp', { 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 32b9a18..0743930 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 @@ -16,6 +16,8 @@ export interface MultisigProposalCancelledInformationProps { hash: string; } +const EmptyValue = () => ; + export const MultisigProposalCancelledInformation: React.FC< MultisigProposalCancelledInformationProps > = ({ hash }) => { @@ -47,35 +49,42 @@ export const MultisigProposalCancelledInformation: React.FC< { label: 'Extrinsic Hash', key: 'extrinsic', - render: (value) => - (value as MultisigProposalCancelled['extrinsic'])?.id ? ( - + render: (value) => { + const extrinsicId = ( + value as MultisigProposalCancelled['extrinsic'] + )?.id; + return extrinsicId ? ( + ) : ( - '-' - ) + + ); + } }, { label: 'Timestamp', key: 'timestamp', - render: (value) => + render: (value) => + value ? ( + + ) : ( + + ) }, { label: 'Block', key: 'block', - render: (value) => ( - - ) + render: (value) => { + const block = value as + | MultisigProposalCancelled['block'] + | undefined; + if (!block) return ; + return ( + + ); + } }, { label: 'Proposal', @@ -96,10 +105,10 @@ export const MultisigProposalCancelledInformation: React.FC< ) : ( - '-' + ); } }, @@ -113,10 +122,10 @@ export const MultisigProposalCancelledInformation: React.FC< ) : ( - '-' + ); } }, @@ -131,10 +140,10 @@ export const MultisigProposalCancelledInformation: React.FC< ) : ( - '-' + ); } } 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 b7d637f..c36e3c8 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 @@ -16,6 +16,8 @@ export interface MultisigProposalCreatedInformationProps { hash: string; } +const EmptyValue = () => ; + export const MultisigProposalCreatedInformation: React.FC< MultisigProposalCreatedInformationProps > = ({ hash }) => { @@ -46,35 +48,39 @@ export const MultisigProposalCreatedInformation: React.FC< { label: 'Extrinsic Hash', key: 'extrinsic', - render: (value) => - (value as MultisigProposalCreated['extrinsic'])?.id ? ( - + render: (value) => { + const extrinsicId = (value as MultisigProposalCreated['extrinsic']) + ?.id; + return extrinsicId ? ( + ) : ( - '-' - ) + + ); + } }, { label: 'Timestamp', key: 'timestamp', - render: (value) => + render: (value) => + value ? ( + + ) : ( + + ) }, { label: 'Block', key: 'block', - render: (value) => ( - - ) + render: (value) => { + const block = value as MultisigProposalCreated['block'] | undefined; + if (!block) return ; + return ( + + ); + } }, { label: 'Proposal', @@ -95,10 +101,10 @@ export const MultisigProposalCreatedInformation: React.FC< ) : ( - '-' + ); } }, @@ -112,10 +118,10 @@ export const MultisigProposalCreatedInformation: React.FC< ) : ( - '-' + ); } } 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 c8e1d99..9598880 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 @@ -3,9 +3,18 @@ import * as React from 'react'; 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 { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; import { TextWithCopy } from '@/components/ui/composites/text-with-copy/TextWithCopy'; +import { + Table, + TableBody, + TableCell, + TableHead, + TableHeader, + TableRow +} from '@/components/ui/table'; import { TimestampDisplay } from '@/components/ui/timestamp-display'; import { RESOURCES } from '@/constants/resources'; import { TRANSACTION_TYPE_CONFIG } from '@/constants/transaction-types'; @@ -28,6 +37,27 @@ type LifecycleRow = MultisigProposalLifecycleEvent & { type: UnifiedTransactionType; }; +const EmptyValue = () => ; + +const statusBadgeVariant = ( + status: string | null | undefined +): BadgeProps['variant'] => { + switch (status?.toUpperCase()) { + case 'SCHEDULED': + return 'reversible'; + case 'APPROVED': + case 'READY': + return 'immediate'; + case 'EXECUTED': + return 'success'; + case 'CANCELLED': + case 'REMOVED': + return 'error'; + default: + return 'miner'; + } +}; + const LIFECYCLE_SECTIONS: { type: UnifiedTransactionType; key: @@ -51,10 +81,10 @@ const accountLink = (accountId?: string | null) => ) : ( - '-' + ); const walletLink = (walletId?: string | null) => @@ -62,10 +92,10 @@ const walletLink = (walletId?: string | null) => ) : ( - '-' + ); type ProposalField = { @@ -79,18 +109,35 @@ const BASE_PROPOSAL_FIELDS: ProposalField[] = [ label: 'ID', key: 'id', render: (value) => - value ? : '-' + value ? ( + + ) : ( + + ) }, { label: 'Status', key: 'status', - render: (value) => (value != null ? String(value) : '-') + render: (value) => + value != null ? ( + + {String(value)} + + ) : ( + + ) }, { label: 'Deposit', key: 'deposit', render: (value) => - value != null ? formatMonetaryValue(String(value), 5) : '-' + value != null ? ( + + {formatMonetaryValue(String(value), 5)} + + ) : ( + + ) }, { label: 'Expiry Block', @@ -102,32 +149,39 @@ const BASE_PROPOSAL_FIELDS: ProposalField[] = [ text={String(value)} /> ) : ( - '-' + ) }, { label: 'Pallet / Call', key: 'pallet', render: (_value, item) => - item.pallet && item.call ? `${item.pallet}.${item.call}` : '-' + item.pallet && item.call ? ( + + {item.pallet}.{item.call} + + ) : ( + + ) }, { label: 'Created At', key: 'created_at', - render: (value) => + render: (value) => + value ? : }, { label: 'Creation Block', key: 'createdAtBlock', render: (value) => { - const block = value as MultisigProposal['createdAtBlock']; + const block = value as MultisigProposal['createdAtBlock'] | undefined; return block?.height != null ? ( ) : ( - '-' + ); } }, @@ -135,8 +189,10 @@ const BASE_PROPOSAL_FIELDS: ProposalField[] = [ label: 'Creation Extrinsic', key: 'createdExtrinsic', render: (value) => { - const extrinsic = value as MultisigProposal['createdExtrinsic']; - if (!extrinsic?.id) return '-'; + const extrinsic = value as + | MultisigProposal['createdExtrinsic'] + | undefined; + if (!extrinsic?.id) return ; const href = extrinsic.pallet && extrinsic.call ? getExtrinsicDetailPath({ @@ -146,7 +202,12 @@ const BASE_PROPOSAL_FIELDS: ProposalField[] = [ }) : undefined; return href ? ( - + ) : ( ); @@ -167,7 +228,7 @@ const BASE_PROPOSAL_FIELDS: ProposalField[] = [ key: 'approvals', render: (value) => { const approvals = value as string[] | undefined; - if (!approvals?.length) return '-'; + if (!approvals?.length) return ; return (
{approvals.map((approver) => ( @@ -175,7 +236,7 @@ const BASE_PROPOSAL_FIELDS: ProposalField[] = [ key={approver} href={`${RESOURCES.accounts}/${approver}`} text={approver} - className="break-all" + textCopy={approver} /> ))}
@@ -195,7 +256,13 @@ const BALANCE_TRANSFER_FIELDS: ProposalField[] = [ label: 'Transfer Amount', key: 'transfer_amount', render: (value) => - value != null ? formatMonetaryValue(String(value), 5) : '-' + value != null ? ( + + {formatMonetaryValue(String(value), 5)} + + ) : ( + + ) } ]; @@ -210,34 +277,56 @@ const SCHEDULED_TRANSFER_FIELDS: ProposalField[] = [ label: 'Schedule Amount', key: 'schedule_amount', render: (value) => - value != null ? formatMonetaryValue(String(value), 5) : '-' + value != null ? ( + + {formatMonetaryValue(String(value), 5)} + + ) : ( + + ) }, { label: 'Delay Kind', key: 'delay_kind', - render: (value) => (value != null ? String(value) : '-') + render: (value) => + value != null ? ( + {String(value)} + ) : ( + + ) }, { label: 'Delay Value', key: 'delay_value', - render: (value) => (value != null ? String(value) : '-') + render: (value) => + value != null ? ( + {String(value)} + ) : ( + + ) }, { label: 'Schedule Asset ID', key: 'schedule_asset_id', - render: (value) => (value != null ? String(value) : '-') + render: (value) => + value != null ? ( + {String(value)} + ) : ( + + ) }, { label: 'Tx ID', key: 'tx_id', render: (value) => { - if (!value) return '-'; + if (!value) return ; const txId = String(value); return ( ); @@ -249,12 +338,22 @@ const SET_HIGH_SECURITY_FIELDS: ProposalField[] = [ { label: 'Delay Value', key: 'delay_value', - render: (value) => (value != null ? String(value) : '-') + render: (value) => + value != null ? ( + {String(value)} + ) : ( + + ) }, { label: 'Delay Kind', key: 'delay_kind', - render: (value) => (value != null ? String(value) : '-') + render: (value) => + value != null ? ( + {String(value)} + ) : ( + + ) }, { label: 'Guardian', @@ -276,7 +375,12 @@ const TAIL_PROPOSAL_FIELDS: ProposalField[] = [ { label: 'Decode Error', key: 'decode_error', - render: (value) => (value != null ? String(value) : '-') + render: (value) => + value != null ? ( + + ) : ( + + ) } ]; @@ -320,7 +424,7 @@ export const MultisigProposalInformation: React.FC< if (!loading && !data?.multisigProposal) throw notFound(); - const information: Partial[] = proposal ? [proposal] : []; + const information: Partial[] = [proposal ?? { id }]; const lifecycleRows: LifecycleRow[] = LIFECYCLE_SECTIONS.flatMap( ({ type, key }) => @@ -333,66 +437,69 @@ export const MultisigProposalInformation: React.FC< ); return ( - <> +
> loading={loading} data={information} fields={fields} /> -

Lifecycle Events

- {loading &&

Loading...

} - {!loading && lifecycleRows.length === 0 && ( -

- No lifecycle events found. -

- )} - {!loading && lifecycleRows.length > 0 && ( -
- - - - - - - - - - {lifecycleRows.map((row) => { - const config = TRANSACTION_TYPE_CONFIG[row.type]; - const eventHref = getMultisigProposalEventHref( - row.type, - row.extrinsic?.id - ); - return ( - - - - - - ); - })} - -
EventBlockTimestamp
- {eventHref ? ( - - ) : ( - config.label - )} - - {row.block?.height != null ? ( - - ) : ( - '-' - )} - - -
-
- )} - +
+

Lifecycle Events

+ + {loading &&

Loading...

} + {!loading && lifecycleRows.length === 0 && ( +

+ No lifecycle events found. +

+ )} + {!loading && lifecycleRows.length > 0 && ( +
+ + + + Event + Block + Timestamp + + + + {lifecycleRows.map((row) => { + const config = TRANSACTION_TYPE_CONFIG[row.type]; + const eventHref = getMultisigProposalEventHref( + row.type, + row.extrinsic?.id + ); + return ( + + + {eventHref ? ( + + ) : ( + config.label + )} + + + {row.block?.height != null ? ( + + ) : ( + + )} + + + + + + ); + })} + +
+
+ )} +
+
); }; 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 08774a7..ad8454c 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 @@ -16,6 +16,8 @@ export interface MultisigProposalExecutedInformationProps { hash: string; } +const EmptyValue = () => ; + export const MultisigProposalExecutedInformation: React.FC< MultisigProposalExecutedInformationProps > = ({ hash }) => { @@ -48,35 +50,41 @@ export const MultisigProposalExecutedInformation: React.FC< { label: 'Extrinsic Hash', key: 'extrinsic', - render: (value) => - (value as MultisigProposalExecuted['extrinsic'])?.id ? ( - + render: (value) => { + const extrinsicId = (value as MultisigProposalExecuted['extrinsic']) + ?.id; + return extrinsicId ? ( + ) : ( - '-' - ) + + ); + } }, { label: 'Timestamp', key: 'timestamp', - render: (value) => + render: (value) => + value ? ( + + ) : ( + + ) }, { label: 'Block', key: 'block', - render: (value) => ( - - ) + render: (value) => { + const block = value as + | MultisigProposalExecuted['block'] + | undefined; + if (!block) return ; + return ( + + ); + } }, { label: 'Proposal', @@ -97,10 +105,10 @@ export const MultisigProposalExecutedInformation: React.FC< ) : ( - '-' + ); } }, @@ -114,10 +122,10 @@ export const MultisigProposalExecutedInformation: React.FC< ) : ( - '-' + ); } }, @@ -126,7 +134,7 @@ export const MultisigProposalExecutedInformation: React.FC< key: 'approvers', render: (value) => { const approvers = value as string[] | undefined; - if (!approvers?.length) return '-'; + if (!approvers?.length) return ; return (
{approvers.map((approver) => ( @@ -134,7 +142,7 @@ export const MultisigProposalExecutedInformation: React.FC< key={approver} href={`${RESOURCES.accounts}/${approver}`} text={approver} - className="break-all" + textCopy={approver} /> ))}
@@ -144,7 +152,12 @@ export const MultisigProposalExecutedInformation: React.FC< { label: 'Result', key: 'result', - render: (value) => (value != null ? String(value) : '-') + render: (value) => + value != null ? ( + {String(value)} + ) : ( + + ) } ]} /> 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 a2b63aa..73ed4f7 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 @@ -16,6 +16,8 @@ export interface MultisigProposalReadyInformationProps { hash: string; } +const EmptyValue = () => ; + export const MultisigProposalReadyInformation: React.FC< MultisigProposalReadyInformationProps > = ({ hash }) => { @@ -47,33 +49,39 @@ export const MultisigProposalReadyInformation: React.FC< { label: 'Extrinsic Hash', key: 'extrinsic', - render: (value) => - (value as MultisigProposalReady['extrinsic'])?.id ? ( - + render: (value) => { + const extrinsicId = (value as MultisigProposalReady['extrinsic']) + ?.id; + return extrinsicId ? ( + ) : ( - '-' - ) + + ); + } }, { label: 'Timestamp', key: 'timestamp', - render: (value) => + render: (value) => + value ? ( + + ) : ( + + ) }, { label: 'Block', key: 'block', - render: (value) => ( - - ) + render: (value) => { + const block = value as MultisigProposalReady['block'] | undefined; + if (!block) return ; + return ( + + ); + } }, { label: 'Proposal', @@ -87,7 +95,12 @@ export const MultisigProposalReadyInformation: React.FC< { label: 'Approvals Count', key: 'approvals_count', - render: (value) => (value != null ? String(value) : '-') + render: (value) => + value != null ? ( + {String(value)} + ) : ( + + ) }, { label: 'Multisig', @@ -99,10 +112,10 @@ export const MultisigProposalReadyInformation: React.FC< ) : ( - '-' + ); } }, @@ -116,10 +129,10 @@ export const MultisigProposalReadyInformation: React.FC< ) : ( - '-' + ); } } 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 d316a01..724cff5 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 @@ -16,6 +16,8 @@ export interface MultisigProposalRemovedInformationProps { hash: string; } +const EmptyValue = () => ; + export const MultisigProposalRemovedInformation: React.FC< MultisigProposalRemovedInformationProps > = ({ hash }) => { @@ -47,35 +49,39 @@ export const MultisigProposalRemovedInformation: React.FC< { label: 'Extrinsic Hash', key: 'extrinsic', - render: (value) => - (value as MultisigProposalRemoved['extrinsic'])?.id ? ( - + render: (value) => { + const extrinsicId = (value as MultisigProposalRemoved['extrinsic']) + ?.id; + return extrinsicId ? ( + ) : ( - '-' - ) + + ); + } }, { label: 'Timestamp', key: 'timestamp', - render: (value) => + render: (value) => + value ? ( + + ) : ( + + ) }, { label: 'Block', key: 'block', - render: (value) => ( - - ) + render: (value) => { + const block = value as MultisigProposalRemoved['block'] | undefined; + if (!block) return ; + return ( + + ); + } }, { label: 'Proposal', @@ -96,10 +102,10 @@ export const MultisigProposalRemovedInformation: React.FC< ) : ( - '-' + ); } }, @@ -113,10 +119,10 @@ export const MultisigProposalRemovedInformation: React.FC< ) : ( - '-' + ); } }, @@ -130,10 +136,10 @@ export const MultisigProposalRemovedInformation: React.FC< ) : ( - '-' + ); } } 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 451ac42..b75a2e2 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 @@ -16,6 +16,8 @@ export interface MultisigSignerApprovedInformationProps { hash: string; } +const EmptyValue = () => ; + export const MultisigSignerApprovedInformation: React.FC< MultisigSignerApprovedInformationProps > = ({ hash }) => { @@ -48,33 +50,39 @@ export const MultisigSignerApprovedInformation: React.FC< { label: 'Extrinsic Hash', key: 'extrinsic', - render: (value) => - (value as MultisigSignerApproved['extrinsic'])?.id ? ( - + render: (value) => { + const extrinsicId = (value as MultisigSignerApproved['extrinsic']) + ?.id; + return extrinsicId ? ( + ) : ( - '-' - ) + + ); + } }, { label: 'Timestamp', key: 'timestamp', - render: (value) => + render: (value) => + value ? ( + + ) : ( + + ) }, { label: 'Block', key: 'block', - render: (value) => ( - - ) + render: (value) => { + const block = value as MultisigSignerApproved['block'] | undefined; + if (!block) return ; + return ( + + ); + } }, { label: 'Approver', @@ -86,17 +94,22 @@ export const MultisigSignerApprovedInformation: React.FC< ) : ( - '-' + ); } }, { label: 'Approvals Count', key: 'approvals_count', - render: (value) => (value != null ? String(value) : '-') + render: (value) => + value != null ? ( + {String(value)} + ) : ( + + ) }, { label: 'Proposal', @@ -117,10 +130,10 @@ export const MultisigSignerApprovedInformation: React.FC< ) : ( - '-' + ); } }, @@ -134,10 +147,10 @@ export const MultisigSignerApprovedInformation: React.FC< ) : ( - '-' + ); } } diff --git a/src/components/ui/composites/proposal-id-link/ProposalIdLink.tsx b/src/components/ui/composites/proposal-id-link/ProposalIdLink.tsx index 1dc9198..775990f 100644 --- a/src/components/ui/composites/proposal-id-link/ProposalIdLink.tsx +++ b/src/components/ui/composites/proposal-id-link/ProposalIdLink.tsx @@ -6,18 +6,27 @@ import { getMultisigProposalHref } from '@/utils/get-multisig-proposal-href'; export interface ProposalIdLinkProps { proposal?: { id?: string } | null; + truncate?: boolean; } -export const ProposalIdLink: React.FC = ({ proposal }) => { +export const ProposalIdLink: React.FC = ({ + proposal, + truncate = false +}) => { const id = proposal?.id; - if (!id) return <>-; + if (!id) return ; const href = getMultisigProposalHref(proposal); const text = formatTxAddress(id); - if (!href) return <>{text}; + if (!href) return text; return ( - + ); }; diff --git a/src/routes/multisig-proposal-cancelled/$hash.tsx b/src/routes/multisig-proposal-cancelled/$hash.tsx index aa9b8b1..20d1323 100644 --- a/src/routes/multisig-proposal-cancelled/$hash.tsx +++ b/src/routes/multisig-proposal-cancelled/$hash.tsx @@ -14,12 +14,8 @@ function MultisigProposalCancelledDetails() { return ( -
-

Proposal Cancelled

-

- Detailed information about a multisig proposal cancellation event. -

-
+

Proposal Cancelled

+
diff --git a/src/routes/multisig-proposal-created/$hash.tsx b/src/routes/multisig-proposal-created/$hash.tsx index 14e5834..df3e057 100644 --- a/src/routes/multisig-proposal-created/$hash.tsx +++ b/src/routes/multisig-proposal-created/$hash.tsx @@ -14,12 +14,8 @@ function MultisigProposalCreatedDetails() { return ( -
-

Proposal Created

-

- Detailed information about a multisig proposal creation event. -

-
+

Proposal Created

+
diff --git a/src/routes/multisig-proposal-executed/$hash.tsx b/src/routes/multisig-proposal-executed/$hash.tsx index 79113ba..93f2627 100644 --- a/src/routes/multisig-proposal-executed/$hash.tsx +++ b/src/routes/multisig-proposal-executed/$hash.tsx @@ -14,12 +14,8 @@ function MultisigProposalExecutedDetails() { return ( -
-

Proposal Executed

-

- Detailed information about a multisig proposal execution event. -

-
+

Proposal Executed

+
diff --git a/src/routes/multisig-proposal-ready/$hash.tsx b/src/routes/multisig-proposal-ready/$hash.tsx index fd302fb..b6f9fe5 100644 --- a/src/routes/multisig-proposal-ready/$hash.tsx +++ b/src/routes/multisig-proposal-ready/$hash.tsx @@ -14,12 +14,8 @@ function MultisigProposalReadyDetails() { return ( -
-

Proposal Ready

-

- Detailed information about a multisig proposal ready event. -

-
+

Proposal Ready

+
diff --git a/src/routes/multisig-proposal-removed/$hash.tsx b/src/routes/multisig-proposal-removed/$hash.tsx index 6396cd9..4ab4590 100644 --- a/src/routes/multisig-proposal-removed/$hash.tsx +++ b/src/routes/multisig-proposal-removed/$hash.tsx @@ -14,12 +14,8 @@ function MultisigProposalRemovedDetails() { return ( -
-

Proposal Removed

-

- Detailed information about a multisig proposal removal event. -

-
+

Proposal Removed

+
diff --git a/src/routes/multisig-proposals/$id.tsx b/src/routes/multisig-proposals/$id.tsx index c8afde0..a0d8cef 100644 --- a/src/routes/multisig-proposals/$id.tsx +++ b/src/routes/multisig-proposals/$id.tsx @@ -14,10 +14,8 @@ function MultisigProposalDetailsPage() { return ( -

Multisig Proposal

-

- Proposal state and related lifecycle events. -

+

Multisig Proposal

+
diff --git a/src/routes/multisig-signer-approved/$hash.tsx b/src/routes/multisig-signer-approved/$hash.tsx index 4a6254b..62e005e 100644 --- a/src/routes/multisig-signer-approved/$hash.tsx +++ b/src/routes/multisig-signer-approved/$hash.tsx @@ -14,12 +14,8 @@ function MultisigSignerApprovedDetails() { return ( -
-

Signer Approved

-

- Detailed information about a multisig signer approval event. -

-
+

Signer Approved

+
From dca5cda0bbc57c75ce5ac56c4593e7e3b3119b72 Mon Sep 17 00:00:00 2001 From: Beast Date: Tue, 14 Jul 2026 17:33:43 +0800 Subject: [PATCH 33/36] feat: updated high sec module --- .../HIGH_SECURITY_SET_COLUMNS.tsx | 2 +- .../HighSecuritySetInformation.tsx | 95 +++++++++++-------- .../HighSecuritySetsHeading.tsx | 20 ++-- .../HighSecuritySetsStats.tsx | 20 ++-- src/routes/high-security-sets/$hash.tsx | 2 +- 5 files changed, 88 insertions(+), 51 deletions(-) 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 bd77317..93b1222 100644 --- a/src/components/common/table-columns/HIGH_SECURITY_SET_COLUMNS.tsx +++ b/src/components/common/table-columns/HIGH_SECURITY_SET_COLUMNS.tsx @@ -24,7 +24,7 @@ export const HIGH_SECURITY_SET_COLUMNS = [ textCopy={props.getValue() ?? ''} /> ) : ( - 'Is not available' + ), enableSorting: false }), 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 2d708d9..6560c28 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 @@ -16,6 +16,8 @@ export interface HighSecuritySetInformationProps { type HighSecuritySet = HighSecuritySetResponse['highSecuritySets'][0]; +const EmptyValue = () => ; + export const HighSecuritySetInformation: React.FC< HighSecuritySetInformationProps > = ({ hash }) => { @@ -46,67 +48,86 @@ export const HighSecuritySetInformation: React.FC< { label: 'Extrinsic', key: 'extrinsic', - render: (value) => ( - - ) + render: (value) => { + const extrinsicId = (value as HighSecuritySet['extrinsic'])?.id; + return extrinsicId ? ( + + ) : ( + + ); + } }, { label: 'Block', key: 'block', - render: (value) => ( - - ) + render: (value) => { + const block = value as HighSecuritySet['block'] | undefined; + if (!block) return ; + return ( + + ); + } }, { label: 'Timestamp', key: 'timestamp', - render: (value) => + render: (value) => + value ? ( + + ) : ( + + ) }, { label: 'Beneficiary', tooltip: 'The account that set the high security feature', key: 'who', - render: (value) => ( - - ) + render: (value) => { + const whoId = (value as HighSecuritySet['who'])?.id; + return whoId ? ( + + ) : ( + + ); + } }, { label: 'Guardian', tooltip: 'The entrustee who can intercept the reversible transaction', key: 'guardian', - render: (value) => ( - - ) + render: (value) => { + const guardianId = (value as HighSecuritySet['guardian'])?.id; + return guardianId ? ( + + ) : ( + + ); + } }, { label: 'Reversible Time', tooltip: 'The enforced time period to confirm the reversible transaction', key: 'delay', - render: (value) => formatDuration(value as string | number | bigint) + render: (value) => + value != null ? ( + + {formatDuration(value as string | number | bigint)} + + ) : ( + + ) } ]} /> diff --git a/src/components/features/high-security-sets-listing/high-security-sets-heading/HighSecuritySetsHeading.tsx b/src/components/features/high-security-sets-listing/high-security-sets-heading/HighSecuritySetsHeading.tsx index 5a7303a..0b6a70c 100644 --- a/src/components/features/high-security-sets-listing/high-security-sets-heading/HighSecuritySetsHeading.tsx +++ b/src/components/features/high-security-sets-listing/high-security-sets-heading/HighSecuritySetsHeading.tsx @@ -8,25 +8,33 @@ export const HighSecuritySetsHeading: React.FC< > = () => { const { accountId, block } = useSearch({ strict: false - }) as any; + }) as { accountId?: string; block?: string }; return (
-

High Security Sets

+

High Security Sets

{block && ( -
+
In block - + {block}
)} {accountId && ( -
+
By - + {accountId}
diff --git a/src/components/features/high-security-sets-listing/high-security-sets-stats/HighSecuritySetsStats.tsx b/src/components/features/high-security-sets-listing/high-security-sets-stats/HighSecuritySetsStats.tsx index 6efddc0..19e4438 100644 --- a/src/components/features/high-security-sets-listing/high-security-sets-stats/HighSecuritySetsStats.tsx +++ b/src/components/features/high-security-sets-listing/high-security-sets-stats/HighSecuritySetsStats.tsx @@ -21,7 +21,7 @@ export const HighSecuritySetsStats: React.FC< const api = useApiClient(); const { accountId, block } = useSearch({ strict: false - }) as any; + }) as { accountId?: string; block?: string }; const shouldHide = !!(accountId || block); @@ -35,15 +35,19 @@ export const HighSecuritySetsStats: React.FC< const success = !loading && !error; return ( - + -

Total High Security Sets

+

Total

- {success &&

{data?.allTime.total_high_security_sets}

} + {success && ( +

+ {data?.allTime.total_high_security_sets.toLocaleString()} +

+ )} {loading && } {error && }
@@ -52,11 +56,15 @@ export const HighSecuritySetsStats: React.FC< -

Recent High Security Sets (24H)

+

Last 24h

- {success &&

{data?.last24Hour.aggregate.totalCount}

} + {success && ( +

+ {data?.last24Hour.aggregate.totalCount.toLocaleString()} +

+ )} {loading && } {error && }
diff --git a/src/routes/high-security-sets/$hash.tsx b/src/routes/high-security-sets/$hash.tsx index 75fdd49..64c1cc2 100644 --- a/src/routes/high-security-sets/$hash.tsx +++ b/src/routes/high-security-sets/$hash.tsx @@ -14,7 +14,7 @@ function HighSecuritySetDetails() { return ( -

High Security Set Details

+

High Security Set

From 288056e46946c5695465b22835aac5921918e882 Mon Sep 17 00:00:00 2001 From: Beast Date: Tue, 14 Jul 2026 17:42:02 +0800 Subject: [PATCH 34/36] feat: finish updating search behavior --- src/__generated__/gql.ts | 25 +- src/__generated__/graphql.ts | 486 +++++++----------- src/api/search.tsx | 56 +- .../search-preview/SearchPreview.tsx | 83 +-- src/schemas/searchs.ts | 22 +- 5 files changed, 243 insertions(+), 429 deletions(-) diff --git a/src/__generated__/gql.ts b/src/__generated__/gql.ts index b0d87d7..47c6b86 100644 --- a/src/__generated__/gql.ts +++ b/src/__generated__/gql.ts @@ -51,6 +51,7 @@ type Documents = { '\n \n query GetRecentMultisigCreated(\n $limit: Int\n $orderBy: [multisig_order_by!]\n ) {\n multisigCreatedEvents: multisig(limit: $limit, order_by: $orderBy) {\n ...MultisigCreatedFields\n }\n }\n ': typeof types.GetRecentMultisigCreatedDocument; '\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 \n query GetRecentMultisigDepositsClaimed(\n $limit: Int\n $orderBy: [multisig_deposits_claimed_order_by!]\n ) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigDepositsClaimedFields\n }\n }\n ': typeof types.GetRecentMultisigDepositsClaimedDocument; @@ -82,7 +83,7 @@ type Documents = { '\n \n query GetRecentMultisigProposalRemoved(\n $limit: Int\n $orderBy: [removed_multisig_proposal_order_by!]\n ) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigProposalRemovedFields\n }\n }\n ': typeof types.GetRecentMultisigProposalRemovedDocument; '\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 created_at\n multisig {\n id\n }\n proposer {\n id\n }\n }\n': typeof types.MultisigProposalListFieldsFragmentDoc; + '\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; @@ -97,7 +98,7 @@ type Documents = { '\n query GetRecentScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\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.GetRecentScheduledReversibleTransactionsDocument; '\n query GetScheduledReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: scheduled_reversible_transfer_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_scheduled_transfers\n }\n }\n ': typeof types.GetScheduledReversibleTransactionsStatsDocument; '\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 SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: transfer(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n tx_id\n }\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n tx_id\n }\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n tx_id\n }\n accounts: account(limit: $limit, where: { id: { _ilike: $keyword } }) {\n id\n }\n blocks: block(\n limit: $limit\n where: {\n _or: [\n { hash: { _ilike: $keyword } }\n { height: { _eq: $keyword_number } }\n ]\n }\n ) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n minerRewards: miner_reward(\n limit: $limit\n where: { block: { hash: { _ilike: $keyword } } }\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\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.SearchAllDocument; + '\n query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: {\n _or: [\n { hash: { _ilike: $keyword } }\n { detail_id: { _ilike: $keyword } }\n { id: { _ilike: $keyword } }\n ]\n }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n accounts: account(limit: $limit, where: { id: { _ilike: $keyword } }) {\n id\n }\n blocks: block(\n limit: $limit\n where: {\n _or: [\n { hash: { _ilike: $keyword } }\n { height: { _eq: $keyword_number } }\n ]\n }\n ) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\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.SearchAllDocument; '\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 fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n meta: transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetTransactionsDocument; '\n query GetRecentTransactions(\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 fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetRecentTransactionsDocument; '\n query GetTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: transfer_aggregate(\n where: {\n timestamp: { _gte: $startDate, _lte: $endDate }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_immediate_transfers\n }\n }\n ': typeof types.GetTransactionsStatsDocument; @@ -184,6 +185,8 @@ const documents: Documents = { 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 ': @@ -246,7 +249,7 @@ const documents: Documents = { 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 created_at\n multisig {\n id\n }\n proposer {\n id\n }\n }\n': + '\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, @@ -276,7 +279,7 @@ const documents: Documents = { types.GetScheduledReversibleTransactionsStatsDocument, '\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 SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: transfer(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n tx_id\n }\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n tx_id\n }\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n tx_id\n }\n accounts: account(limit: $limit, where: { id: { _ilike: $keyword } }) {\n id\n }\n blocks: block(\n limit: $limit\n where: {\n _or: [\n { hash: { _ilike: $keyword } }\n { height: { _eq: $keyword_number } }\n ]\n }\n ) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n minerRewards: miner_reward(\n limit: $limit\n where: { block: { hash: { _ilike: $keyword } } }\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\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 ': + '\n query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: {\n _or: [\n { hash: { _ilike: $keyword } }\n { detail_id: { _ilike: $keyword } }\n { id: { _ilike: $keyword } }\n ]\n }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n accounts: account(limit: $limit, where: { id: { _ilike: $keyword } }) {\n id\n }\n blocks: block(\n limit: $limit\n where: {\n _or: [\n { hash: { _ilike: $keyword } }\n { height: { _eq: $keyword_number } }\n ]\n }\n ) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\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.SearchAllDocument, '\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 fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n meta: transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': types.GetTransactionsDocument, @@ -536,6 +539,12 @@ export function gql( 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 ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ @@ -726,8 +735,8 @@ export function gql( * 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 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 created_at\n multisig {\n id\n }\n proposer {\n id\n }\n }\n']; + 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. */ @@ -816,8 +825,8 @@ export function gql( * 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 SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: transfer(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n tx_id\n }\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n tx_id\n }\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n tx_id\n }\n accounts: account(limit: $limit, where: { id: { _ilike: $keyword } }) {\n id\n }\n blocks: block(\n limit: $limit\n where: {\n _or: [\n { hash: { _ilike: $keyword } }\n { height: { _eq: $keyword_number } }\n ]\n }\n ) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n minerRewards: miner_reward(\n limit: $limit\n where: { block: { hash: { _ilike: $keyword } } }\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\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 SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: transfer(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n tx_id\n }\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n tx_id\n }\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n where: { tx_id: { _ilike: $keyword } }\n ) {\n tx_id\n }\n accounts: account(limit: $limit, where: { id: { _ilike: $keyword } }) {\n id\n }\n blocks: block(\n limit: $limit\n where: {\n _or: [\n { hash: { _ilike: $keyword } }\n { height: { _eq: $keyword_number } }\n ]\n }\n ) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\n }\n minerRewards: miner_reward(\n limit: $limit\n where: { block: { hash: { _ilike: $keyword } } }\n ) {\n block {\n height\n hash\n }\n reward\n miner {\n id\n }\n timestamp\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 ']; + source: '\n query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: {\n _or: [\n { hash: { _ilike: $keyword } }\n { detail_id: { _ilike: $keyword } }\n { id: { _ilike: $keyword } }\n ]\n }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n accounts: account(limit: $limit, where: { id: { _ilike: $keyword } }) {\n id\n }\n blocks: block(\n limit: $limit\n where: {\n _or: [\n { hash: { _ilike: $keyword } }\n { height: { _eq: $keyword_number } }\n ]\n }\n ) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\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 SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: {\n _or: [\n { hash: { _ilike: $keyword } }\n { detail_id: { _ilike: $keyword } }\n { id: { _ilike: $keyword } }\n ]\n }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n accounts: account(limit: $limit, where: { id: { _ilike: $keyword } }) {\n id\n }\n blocks: block(\n limit: $limit\n where: {\n _or: [\n { hash: { _ilike: $keyword } }\n { height: { _eq: $keyword_number } }\n ]\n }\n ) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\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. */ diff --git a/src/__generated__/graphql.ts b/src/__generated__/graphql.ts index 36c42da..81b3263 100644 --- a/src/__generated__/graphql.ts +++ b/src/__generated__/graphql.ts @@ -10492,6 +10492,21 @@ export type GetMultisigCreatedByHashQuery = { >; }; +export type GetMultisigByIdQueryVariables = Exact<{ + id: Scalars['String']['input']; +}>; + +export type GetMultisigByIdQuery = { + __typename?: 'query_root'; + multisig?: + | ({ __typename?: 'multisig' } & { + ' $fragmentRefs'?: { + MultisigCreatedFieldsFragment: MultisigCreatedFieldsFragment; + }; + }) + | null; +}; + export type MultisigDepositsClaimedFieldsFragment = { __typename?: 'multisig_deposits_claimed'; id: string; @@ -11113,6 +11128,7 @@ export type MultisigProposalListFieldsFragment = { status: string; deposit: any; expiry_block: number; + approvals: Array; created_at: any; multisig?: { __typename?: 'multisig'; id: string } | null; proposer?: { __typename?: 'account'; id: string } | null; @@ -11486,31 +11502,12 @@ export type SearchAllQueryVariables = Exact<{ export type SearchAllQuery = { __typename?: 'query_root'; transactions: Array<{ - __typename?: 'transfer'; - extrinsic?: { - __typename?: 'extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - }>; - scheduledReversibleTransactions: Array<{ - __typename?: 'scheduled_reversible_transfer'; - tx_id: string; - extrinsic?: { - __typename?: 'extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - }>; - executedReversibleTransactions: Array<{ - __typename?: 'executed_reversible_transfer'; - tx_id: string; - }>; - cancelledReversibleTransactions: Array<{ - __typename?: 'cancelled_reversible_transfer'; - tx_id: string; + __typename?: 'unified_transaction'; + id: string; + type: string; + hash?: string | null; + detail_id: string; + block?: { __typename?: 'block'; height: number; hash: string } | null; }>; accounts: Array<{ __typename?: 'account'; id: string }>; blocks: Array<{ __typename?: 'block'; height: number }>; @@ -11523,13 +11520,6 @@ export type SearchAllQuery = { call: string; } | null; }>; - minerRewards: Array<{ - __typename?: 'miner_reward'; - reward: any; - timestamp: any; - block?: { __typename?: 'block'; height: number; hash: string } | null; - miner?: { __typename?: 'account'; id: string } | null; - }>; errorEvents: Array<{ __typename?: 'error_event'; extrinsic?: { @@ -12430,6 +12420,7 @@ export const MultisigProposalListFieldsFragmentDoc = { { 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', @@ -20062,6 +20053,105 @@ export const GetMultisigCreatedByHashDocument = { 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: [ @@ -24204,6 +24294,7 @@ export const GetMultisigProposalsDocument = { { 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', @@ -26302,7 +26393,7 @@ export const SearchAllDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'transactions' }, - name: { kind: 'Name', value: 'transfer' }, + name: { kind: 'Name', value: 'unified_transaction' }, arguments: [ { kind: 'Argument', @@ -26320,87 +26411,75 @@ export const SearchAllDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsic' }, + name: { kind: 'Name', value: '_or' }, value: { - kind: 'ObjectValue', - fields: [ + kind: 'ListValue', + values: [ { - kind: 'ObjectField', - name: { kind: 'Name', value: 'id' }, - 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: 'hash' }, + 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' } } - ] - } - } - ] - } - }, - { - 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: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'tx_id' }, - 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: 'detail_id' }, + 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: 'id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_ilike' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'keyword' } + } + } + ] + } + } + ] } ] } @@ -26412,116 +26491,24 @@ export const SearchAllDocument = { 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: 'extrinsic' }, + name: { kind: 'Name', value: 'block' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'pallet' } + name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'call' } } + { kind: 'Field', name: { kind: 'Name', value: 'hash' } } ] } - }, - { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } } - ] - } - }, - { - 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: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'tx_id' }, - 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: 'tx_id' } } - ] - } - }, - { - 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: 'where' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'tx_id' }, - 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: 'tx_id' } } ] } }, @@ -26728,87 +26715,6 @@ export const SearchAllDocument = { ] } }, - { - 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: '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: '_ilike' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'keyword' } - } - } - ] - } - } - ] - } - } - ] - } - } - ], - 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: 'errorEvents' }, diff --git a/src/api/search.tsx b/src/api/search.tsx index 50ab27d..3d1f47d 100644 --- a/src/api/search.tsx +++ b/src/api/search.tsx @@ -28,38 +28,24 @@ export const search = (fetcher: DataFetcher) => ({ all: () => { const SEARCH_ALL = gql` query SearchAll($keyword: String, $keyword_number: Int, $limit: Int) { - transactions: transfer( + transactions: unified_transaction( limit: $limit - where: { extrinsic: { id: { _ilike: $keyword } } } - ) { - extrinsic { - id - pallet - call + where: { + _or: [ + { hash: { _ilike: $keyword } } + { detail_id: { _ilike: $keyword } } + { id: { _ilike: $keyword } } + ] } - } - scheduledReversibleTransactions: scheduled_reversible_transfer( - limit: $limit - where: { tx_id: { _ilike: $keyword } } ) { - extrinsic { - id - pallet - call + id + type + hash + detail_id + block { + height + hash } - tx_id - } - executedReversibleTransactions: executed_reversible_transfer( - limit: $limit - where: { tx_id: { _ilike: $keyword } } - ) { - tx_id - } - cancelledReversibleTransactions: cancelled_reversible_transfer( - limit: $limit - where: { tx_id: { _ilike: $keyword } } - ) { - tx_id } accounts: account(limit: $limit, where: { id: { _ilike: $keyword } }) { id @@ -85,20 +71,6 @@ export const search = (fetcher: DataFetcher) => ({ call } } - minerRewards: miner_reward( - limit: $limit - where: { block: { hash: { _ilike: $keyword } } } - ) { - block { - height - hash - } - reward - miner { - id - } - timestamp - } errorEvents: error_event( limit: $limit where: { diff --git a/src/components/ui/composites/search-preview/SearchPreview.tsx b/src/components/ui/composites/search-preview/SearchPreview.tsx index 7dbd26d..58b66d9 100644 --- a/src/components/ui/composites/search-preview/SearchPreview.tsx +++ b/src/components/ui/composites/search-preview/SearchPreview.tsx @@ -6,8 +6,8 @@ import { InlineFetchError } from '@/components/ui/composites/fetch-error/FetchEr import { Skeleton } from '@/components/ui/skeleton'; import { RESOURCES } from '@/constants/resources'; import type { SearchAllResponse } from '@/schemas/searchs'; -import { getExtrinsicDetailPath } from '@/utils/get-extrinsic-detail-path'; import { formatBlockHeight } from '@/utils/formatter'; +import { getUnifiedTransactionDetailPath } from '@/utils/get-unified-transaction-detail-path'; // Helper: Preview link function PreviewLink({ @@ -103,27 +103,14 @@ interface SearchPreviewProps export const SearchPreview = forwardRef( ({ isLoading, error, searchResult, onKeyDown, handleClosePreview }, ref) => { - const { - accounts, - transactions, - blocks, - scheduledReversibleTransactions, - executedReversibleTransactions, - cancelledReversibleTransactions, - minerRewards, - highSecuritySets, - errorEvents - } = searchResult || {}; + const { accounts, transactions, blocks, highSecuritySets, errorEvents } = + searchResult || {}; if ( !isLoading && !transactions && !blocks && - !minerRewards && !accounts && - !scheduledReversibleTransactions && - !executedReversibleTransactions && - !cancelledReversibleTransactions && !highSecuritySets && !errorEvents ) { @@ -136,58 +123,24 @@ export const SearchPreview = forwardRef( title: 'Transactions', emptyMsg: 'No transactions found.', items: transactions, - renderItem: (tx: any) => { - const { id, pallet, call } = tx.extrinsic ?? {}; - const href = - id && pallet && call - ? getExtrinsicDetailPath({ id, pallet, call }) - : `${RESOURCES.transactions}/${id}`; + renderItem: (tx: SearchAllResponse['transactions'][number]) => { + const href = getUnifiedTransactionDetailPath({ + type: tx.type, + hash: tx.hash, + detailId: tx.detail_id, + block: tx.block + }); + const label = tx.hash ?? tx.detail_id ?? tx.id; return ( ); } }, - { - title: 'Scheduled Reversible Transactions', - emptyMsg: 'No scheduled reversible transactions found.', - items: scheduledReversibleTransactions, - renderItem: (tx: any) => ( - - ) - }, - { - title: 'Executed Reversible Transactions', - emptyMsg: 'No executed reversible transactions found.', - items: executedReversibleTransactions, - renderItem: (tx: any) => ( - - ) - }, - { - title: 'Cancelled Reversible Transactions', - emptyMsg: 'No cancelled reversible transactions found.', - items: cancelledReversibleTransactions, - renderItem: (tx: any) => ( - - ) - }, { title: 'Accounts', emptyMsg: 'No accounts found.', @@ -212,18 +165,6 @@ export const SearchPreview = forwardRef( /> ) }, - { - title: 'Miner Rewards', - emptyMsg: 'No miner rewards found.', - items: minerRewards, - renderItem: (minerReward: any) => ( - - ) - }, { title: 'High Security Sets', emptyMsg: 'No high security sets found.', diff --git a/src/schemas/searchs.ts b/src/schemas/searchs.ts index d290338..11bacf7 100644 --- a/src/schemas/searchs.ts +++ b/src/schemas/searchs.ts @@ -1,30 +1,16 @@ import type { Account } from './account'; import type { Block } from './blocks'; -import type { CancelledReversibleTransaction } from './cancelled-reversible-transaction'; import type { ErrorEvent } from './errors'; -import type { ExecutedReversibleTransaction } from './executed-reversible-transaction'; import type { HighSecuritySet } from './high-security-set'; -import type { MinerReward } from './miner-reward'; -import type { ScheduledReversibleTransaction } from './scheduled-reversible-transaction'; -import type { Transaction } from './transcation'; +import type { UnifiedListTransaction } from './unified-list-transaction'; export interface SearchAllResponse { - transactions: Pick[]; - scheduledReversibleTransactions: Pick< - ScheduledReversibleTransaction, - 'extrinsic' | 'tx_id' - >[]; - executedReversibleTransactions: Pick< - ExecutedReversibleTransaction, - 'tx_id' - >[]; - cancelledReversibleTransactions: Pick< - CancelledReversibleTransaction, - 'tx_id' + transactions: Pick< + UnifiedListTransaction, + 'id' | 'type' | 'hash' | 'detail_id' | 'block' >[]; accounts: Pick[]; blocks: Pick[]; highSecuritySets: Pick[]; - minerRewards: Pick[]; errorEvents: Pick[]; } From 593ff41e06a6384c2b0233b7bf988cc888190287 Mon Sep 17 00:00:00 2001 From: Beast Date: Tue, 14 Jul 2026 17:58:13 +0800 Subject: [PATCH 35/36] chore: remove unused files --- bun.lock | 97 +--- package.json | 4 - .../ACCOUNT_BENEFICIARIES_COLUMNS.tsx | 40 -- .../ACCOUNT_GUARDIAN_COLUMNS.tsx | 40 -- ...NCELLED_REVERSIBLE_TRANSACTION_COLUMNS.tsx | 87 ---- ...XECUTED_REVERSIBLE_TRANSACTION_COLUMNS.tsx | 75 --- ...HEDULED_REVERSIBLE_TRANSACTION_COLUMNS.tsx | 81 --- .../UNIFIED_TRANSACTION_COLUMNS.tsx | 487 ------------------ .../table-columns/WORMHOLE_OUTPUT_COLUMNS.tsx | 74 --- .../CancelledReversibleTransactionHeading.tsx | 36 -- .../CancelledReversibleTransactionsStats.tsx | 67 --- .../CancelledReversibleTransactionsTable.tsx | 21 - .../hook.tsx | 108 ---- .../ExecutedReversibleTransactionHeading.tsx | 36 -- .../ExecutedReversibleTransactionsStats.tsx | 67 --- .../ExecutedReversibleTransactionsTable.tsx | 21 - .../hook.tsx | 107 ---- .../CancelledReversibleTransactionsTable.tsx | 18 - .../hook.tsx | 51 -- .../error-events-table/ErrorEventsTable.tsx | 18 - .../landing/error-events-table/hook.tsx | 53 -- .../ExecutedReversibleTransactionsTable.tsx | 18 - .../hook.tsx | 51 -- .../HighSecuritySetsTable.tsx | 18 - .../landing/high-security-sets-table/hook.tsx | 51 -- .../miner-rewards-table/MinerRewardsTable.tsx | 18 - .../landing/miner-rewards-table/hook.tsx | 51 -- .../RecentCancelledReversibleTransactions.tsx | 21 - .../recent-error-events/RecentErrorEvents.tsx | 21 - .../RecentTransactions.tsx | 21 - .../RecentExecutedReversibleTransactions.tsx | 21 - .../RecentHighSecuritySets.tsx | 21 - .../RecentMinerRewards.tsx | 21 - .../RecentScheduledReversibleTransactions.tsx | 21 - .../ScheduledReversibleTransactionsTable.tsx | 18 - .../hook.tsx | 51 -- .../MultisigCreatedHeading.tsx | 30 -- .../MultisigCreatedStats.tsx | 66 --- .../MultisigProposalHeading.tsx | 10 - .../MultisigProposalStats.tsx | 66 --- .../ScheduledReversibleTransactionHeading.tsx | 36 -- .../ScheduledReversibleTransactionsStats.tsx | 67 --- .../ScheduledReversibleTransactionsTable.tsx | 21 - .../hook.tsx | 104 ---- .../features/wormhole/DepositPoolStats.tsx | 81 --- .../wormhole/WormholeOutputsTable.tsx | 81 --- src/components/ui/separator.tsx | 29 -- src/constants/query-unified-limit.ts | 3 - src/decorators/WithProviders.tsx | 10 - src/utils/alphanumeric-cheker.ts | 19 - src/utils/extract-error-msg.ts | 20 - svgr-index-template.cjs | 13 - svgr-template.cjs | 26 - 53 files changed, 17 insertions(+), 2676 deletions(-) delete mode 100644 src/components/common/table-columns/ACCOUNT_BENEFICIARIES_COLUMNS.tsx delete mode 100644 src/components/common/table-columns/ACCOUNT_GUARDIAN_COLUMNS.tsx delete mode 100644 src/components/common/table-columns/CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS.tsx delete mode 100644 src/components/common/table-columns/EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS.tsx delete mode 100644 src/components/common/table-columns/SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS.tsx delete mode 100644 src/components/common/table-columns/UNIFIED_TRANSACTION_COLUMNS.tsx delete mode 100644 src/components/common/table-columns/WORMHOLE_OUTPUT_COLUMNS.tsx delete mode 100644 src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transaction-heading/CancelledReversibleTransactionHeading.tsx delete mode 100644 src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transactions-stats/CancelledReversibleTransactionsStats.tsx delete mode 100644 src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transactions-table/CancelledReversibleTransactionsTable.tsx delete mode 100644 src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transactions-table/hook.tsx delete mode 100644 src/components/features/executed-reversible-transaction-listing/executed-reversible-transaction-heading/ExecutedReversibleTransactionHeading.tsx delete mode 100644 src/components/features/executed-reversible-transaction-listing/executed-reversible-transactions-stats/ExecutedReversibleTransactionsStats.tsx delete mode 100644 src/components/features/executed-reversible-transaction-listing/executed-reversible-transactions-table/ExecutedReversibleTransactionsTable.tsx delete mode 100644 src/components/features/executed-reversible-transaction-listing/executed-reversible-transactions-table/hook.tsx delete mode 100644 src/components/features/landing/cancelled-reversible-transactions-table/CancelledReversibleTransactionsTable.tsx delete mode 100644 src/components/features/landing/cancelled-reversible-transactions-table/hook.tsx delete mode 100644 src/components/features/landing/error-events-table/ErrorEventsTable.tsx delete mode 100644 src/components/features/landing/error-events-table/hook.tsx delete mode 100644 src/components/features/landing/executed-reversible-transactions-table/ExecutedReversibleTransactionsTable.tsx delete mode 100644 src/components/features/landing/executed-reversible-transactions-table/hook.tsx delete mode 100644 src/components/features/landing/high-security-sets-table/HighSecuritySetsTable.tsx delete mode 100644 src/components/features/landing/high-security-sets-table/hook.tsx delete mode 100644 src/components/features/landing/miner-rewards-table/MinerRewardsTable.tsx delete mode 100644 src/components/features/landing/miner-rewards-table/hook.tsx delete mode 100644 src/components/features/landing/recent-cancelled-reversible-transactions/RecentCancelledReversibleTransactions.tsx delete mode 100644 src/components/features/landing/recent-error-events/RecentErrorEvents.tsx delete mode 100644 src/components/features/landing/recent-error-events/RecentTransactions.tsx delete mode 100644 src/components/features/landing/recent-executed-reversible-transactions/RecentExecutedReversibleTransactions.tsx delete mode 100644 src/components/features/landing/recent-high-security-sets/RecentHighSecuritySets.tsx delete mode 100644 src/components/features/landing/recent-miner-rewards/RecentMinerRewards.tsx delete mode 100644 src/components/features/landing/recent-scheduled-reversible-transactions/RecentScheduledReversibleTransactions.tsx delete mode 100644 src/components/features/landing/scheduled-reversible-transactions-table/ScheduledReversibleTransactionsTable.tsx delete mode 100644 src/components/features/landing/scheduled-reversible-transactions-table/hook.tsx delete mode 100644 src/components/features/multisig-created-listing/multisig-created-heading/MultisigCreatedHeading.tsx delete mode 100644 src/components/features/multisig-created-listing/multisig-created-stats/MultisigCreatedStats.tsx delete mode 100644 src/components/features/multisig-proposal-listing/multisig-proposal-heading/MultisigProposalHeading.tsx delete mode 100644 src/components/features/multisig-proposal-listing/multisig-proposal-stats/MultisigProposalStats.tsx delete mode 100644 src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transaction-heading/ScheduledReversibleTransactionHeading.tsx delete mode 100644 src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transactions-stats/ScheduledReversibleTransactionsStats.tsx delete mode 100644 src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transactions-table/ScheduledReversibleTransactionsTable.tsx delete mode 100644 src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transactions-table/hook.tsx delete mode 100644 src/components/features/wormhole/DepositPoolStats.tsx delete mode 100644 src/components/features/wormhole/WormholeOutputsTable.tsx delete mode 100644 src/components/ui/separator.tsx delete mode 100644 src/constants/query-unified-limit.ts delete mode 100644 src/decorators/WithProviders.tsx delete mode 100644 src/utils/alphanumeric-cheker.ts delete mode 100644 src/utils/extract-error-msg.ts delete mode 100644 svgr-index-template.cjs delete mode 100644 svgr-template.cjs diff --git a/bun.lock b/bun.lock index 8d7b7b9..8042060 100644 --- a/bun.lock +++ b/bun.lock @@ -12,9 +12,7 @@ "@radix-ui/react-navigation-menu": "^1.2.13", "@radix-ui/react-popover": "^1.1.14", "@radix-ui/react-select": "^2.2.5", - "@radix-ui/react-separator": "^1.1.7", "@radix-ui/react-slot": "^1.2.3", - "@radix-ui/react-switch": "^1.2.5", "@radix-ui/react-tabs": "^1.1.12", "@subsquid/ss58-codec": "^1.2.3", "@tanstack/react-router": "1.130.12", @@ -46,7 +44,6 @@ "@storybook/addon-onboarding": "^9.0.6", "@storybook/react-vite": "^9.0.6", "@storybook/test-runner": "^0.22.1", - "@svgr/cli": "^8.1.0", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.3.0", "@types/jest": "^29.5.11", @@ -510,12 +507,8 @@ "@radix-ui/react-select": ["@radix-ui/react-select@2.2.6", "", { "dependencies": { "@radix-ui/number": "1.1.1", "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-focus-guards": "1.1.3", "@radix-ui/react-focus-scope": "1.1.7", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-popper": "1.2.8", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-layout-effect": "1.1.1", "@radix-ui/react-use-previous": "1.1.1", "@radix-ui/react-visually-hidden": "1.2.3", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.6.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-I30RydO+bnn2PQztvo25tswPH+wFBjehVGtmagkU78yMdwTwVf12wnAOF+AeP8S2N8xD+5UPbGhkUfPyvT+mwQ=="], - "@radix-ui/react-separator": ["@radix-ui/react-separator@1.1.8", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-sDvqVY4itsKwwSMEe0jtKgfTh+72Sy3gPmQpjqcQneqQ4PFmr/1I0YA+2/puilhggCe2gJcx5EBAYFkWkdpa5g=="], - "@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.4", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Jl+bCv8HxKnlTLVrcDE8zTMJ09R9/ukw4qBs/oZClOfoQk/cOTbDn+NceXfV7j09YPVQUryJPHurafcSg6EVKA=="], - "@radix-ui/react-switch": ["@radix-ui/react-switch@1.2.6", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-previous": "1.1.1", "@radix-ui/react-use-size": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-bByzr1+ep1zk4VubeEVViV592vu2lHE2BZY5OnzehZqOOgogN80+mNtCqPkhn2gklJqOpxWgPoYTSnhBCqpOXQ=="], - "@radix-ui/react-tabs": ["@radix-ui/react-tabs@1.1.13", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-7xdcatg7/U+7+Udyoj2zodtI9H/IIopqo+YOIcZOq1nJwXWBZ9p8xiu5llXlekDbZkca79a/fozEYQXIA4sW6A=="], "@radix-ui/react-use-callback-ref": ["@radix-ui/react-use-callback-ref@1.1.1", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg=="], @@ -636,36 +629,6 @@ "@subsquid/ss58-codec": ["@subsquid/ss58-codec@1.2.3", "", { "dependencies": { "base-x": "^4.0.0", "blake2b": "^2.1.4" } }, "sha512-PFWGOYDVEa1F+u5NoH4pJcBRCe4vv6B0U4nvgmwTA+PShhVB8aC6TjZZmMOE8/BLEDjRIpT7avpz7VR7zI6H0A=="], - "@svgr/babel-plugin-add-jsx-attribute": ["@svgr/babel-plugin-add-jsx-attribute@8.0.0", "", { "peerDependencies": { "@babel/core": "^7.0.0-0" } }, "sha512-b9MIk7yhdS1pMCZM8VeNfUlSKVRhsHZNMl5O9SfaX0l0t5wjdgu4IDzGB8bpnGBBOjGST3rRFVsaaEtI4W6f7g=="], - - "@svgr/babel-plugin-remove-jsx-attribute": ["@svgr/babel-plugin-remove-jsx-attribute@8.0.0", "", { "peerDependencies": { "@babel/core": "^7.0.0-0" } }, "sha512-BcCkm/STipKvbCl6b7QFrMh/vx00vIP63k2eM66MfHJzPr6O2U0jYEViXkHJWqXqQYjdeA9cuCl5KWmlwjDvbA=="], - - "@svgr/babel-plugin-remove-jsx-empty-expression": ["@svgr/babel-plugin-remove-jsx-empty-expression@8.0.0", "", { "peerDependencies": { "@babel/core": "^7.0.0-0" } }, "sha512-5BcGCBfBxB5+XSDSWnhTThfI9jcO5f0Ai2V24gZpG+wXF14BzwxxdDb4g6trdOux0rhibGs385BeFMSmxtS3uA=="], - - "@svgr/babel-plugin-replace-jsx-attribute-value": ["@svgr/babel-plugin-replace-jsx-attribute-value@8.0.0", "", { "peerDependencies": { "@babel/core": "^7.0.0-0" } }, "sha512-KVQ+PtIjb1BuYT3ht8M5KbzWBhdAjjUPdlMtpuw/VjT8coTrItWX6Qafl9+ji831JaJcu6PJNKCV0bp01lBNzQ=="], - - "@svgr/babel-plugin-svg-dynamic-title": ["@svgr/babel-plugin-svg-dynamic-title@8.0.0", "", { "peerDependencies": { "@babel/core": "^7.0.0-0" } }, "sha512-omNiKqwjNmOQJ2v6ge4SErBbkooV2aAWwaPFs2vUY7p7GhVkzRkJ00kILXQvRhA6miHnNpXv7MRnnSjdRjK8og=="], - - "@svgr/babel-plugin-svg-em-dimensions": ["@svgr/babel-plugin-svg-em-dimensions@8.0.0", "", { "peerDependencies": { "@babel/core": "^7.0.0-0" } }, "sha512-mURHYnu6Iw3UBTbhGwE/vsngtCIbHE43xCRK7kCw4t01xyGqb2Pd+WXekRRoFOBIY29ZoOhUCTEweDMdrjfi9g=="], - - "@svgr/babel-plugin-transform-react-native-svg": ["@svgr/babel-plugin-transform-react-native-svg@8.1.0", "", { "peerDependencies": { "@babel/core": "^7.0.0-0" } }, "sha512-Tx8T58CHo+7nwJ+EhUwx3LfdNSG9R2OKfaIXXs5soiy5HtgoAEkDay9LIimLOcG8dJQH1wPZp/cnAv6S9CrR1Q=="], - - "@svgr/babel-plugin-transform-svg-component": ["@svgr/babel-plugin-transform-svg-component@8.0.0", "", { "peerDependencies": { "@babel/core": "^7.0.0-0" } }, "sha512-DFx8xa3cZXTdb/k3kfPeaixecQLgKh5NVBMwD0AQxOzcZawK4oo1Jh9LbrcACUivsCA7TLG8eeWgrDXjTMhRmw=="], - - "@svgr/babel-preset": ["@svgr/babel-preset@8.1.0", "", { "dependencies": { "@svgr/babel-plugin-add-jsx-attribute": "8.0.0", "@svgr/babel-plugin-remove-jsx-attribute": "8.0.0", "@svgr/babel-plugin-remove-jsx-empty-expression": "8.0.0", "@svgr/babel-plugin-replace-jsx-attribute-value": "8.0.0", "@svgr/babel-plugin-svg-dynamic-title": "8.0.0", "@svgr/babel-plugin-svg-em-dimensions": "8.0.0", "@svgr/babel-plugin-transform-react-native-svg": "8.1.0", "@svgr/babel-plugin-transform-svg-component": "8.0.0" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, "sha512-7EYDbHE7MxHpv4sxvnVPngw5fuR6pw79SkcrILHJ/iMpuKySNCl5W1qcwPEpU+LgyRXOaAFgH0KhwD18wwg6ug=="], - - "@svgr/cli": ["@svgr/cli@8.1.0", "", { "dependencies": { "@svgr/core": "8.1.0", "@svgr/plugin-jsx": "8.1.0", "@svgr/plugin-prettier": "8.1.0", "@svgr/plugin-svgo": "8.1.0", "camelcase": "^6.2.0", "chalk": "^4.1.2", "commander": "^9.4.1", "dashify": "^2.0.0", "glob": "^8.0.3", "snake-case": "^3.0.4" }, "bin": { "svgr": "bin/svgr" } }, "sha512-SnlaLspB610XFXvs3PmhzViHErsXp0yIy4ERyZlHDlO1ro2iYtHMWYk2mztdLD/lBjiA4ZXe4RePON3qU/Tc4A=="], - - "@svgr/core": ["@svgr/core@8.1.0", "", { "dependencies": { "@babel/core": "^7.21.3", "@svgr/babel-preset": "8.1.0", "camelcase": "^6.2.0", "cosmiconfig": "^8.1.3", "snake-case": "^3.0.4" } }, "sha512-8QqtOQT5ACVlmsvKOJNEaWmRPmcojMOzCz4Hs2BGG/toAp/K38LcsMRyLp349glq5AzJbCEeimEoxaX6v/fLrA=="], - - "@svgr/hast-util-to-babel-ast": ["@svgr/hast-util-to-babel-ast@8.0.0", "", { "dependencies": { "@babel/types": "^7.21.3", "entities": "^4.4.0" } }, "sha512-EbDKwO9GpfWP4jN9sGdYwPBU0kdomaPIL2Eu4YwmgP+sJeXT+L7bMwJUBnhzfH8Q2qMBqZ4fJwpCyYsAN3mt2Q=="], - - "@svgr/plugin-jsx": ["@svgr/plugin-jsx@8.1.0", "", { "dependencies": { "@babel/core": "^7.21.3", "@svgr/babel-preset": "8.1.0", "@svgr/hast-util-to-babel-ast": "8.0.0", "svg-parser": "^2.0.4" }, "peerDependencies": { "@svgr/core": "*" } }, "sha512-0xiIyBsLlr8quN+WyuxooNW9RJ0Dpr8uOnH/xrCVO8GLUcwHISwj1AG0k+LFzteTkAA0GbX0kj9q6Dk70PTiPA=="], - - "@svgr/plugin-prettier": ["@svgr/plugin-prettier@8.1.0", "", { "dependencies": { "deepmerge": "^4.3.1", "prettier": "^2.8.7" }, "peerDependencies": { "@svgr/core": "*" } }, "sha512-o4/uFI8G64tAjBZ4E7gJfH+VP7Qi3T0+M4WnIsP91iFnGPqs5WvPDkpZALXPiyWEtzfYs1Rmwy1Zdfu8qoZuKw=="], - - "@svgr/plugin-svgo": ["@svgr/plugin-svgo@8.1.0", "", { "dependencies": { "cosmiconfig": "^8.1.3", "deepmerge": "^4.3.1", "svgo": "^3.0.2" }, "peerDependencies": { "@svgr/core": "*" } }, "sha512-Ywtl837OGO9pTLIN/onoWLmDQ4zFUycI1g76vuKGEz6evR/ZTJlJuz3G/fIkb6OVBJ2g0o6CGJzaEjfmEo3AHA=="], - "@swc/core": ["@swc/core@1.15.40", "", { "dependencies": { "@swc/counter": "^0.1.3", "@swc/types": "^0.1.26" }, "optionalDependencies": { "@swc/core-darwin-arm64": "1.15.40", "@swc/core-darwin-x64": "1.15.40", "@swc/core-linux-arm-gnueabihf": "1.15.40", "@swc/core-linux-arm64-gnu": "1.15.40", "@swc/core-linux-arm64-musl": "1.15.40", "@swc/core-linux-ppc64-gnu": "1.15.40", "@swc/core-linux-s390x-gnu": "1.15.40", "@swc/core-linux-x64-gnu": "1.15.40", "@swc/core-linux-x64-musl": "1.15.40", "@swc/core-win32-arm64-msvc": "1.15.40", "@swc/core-win32-ia32-msvc": "1.15.40", "@swc/core-win32-x64-msvc": "1.15.40" }, "peerDependencies": { "@swc/helpers": ">=0.5.17" }, "optionalPeers": ["@swc/helpers"] }, "sha512-2kwzJikRvgtNAG7MwVZY2vEzZjTxKIq5jXOihuSV/8U+Hej8Va22t65aKnJZs3P+NwojZvR8Mf8kyM7O+V8sQg=="], "@swc/core-darwin-arm64": ["@swc/core-darwin-arm64@1.15.40", "", { "os": "darwin", "cpu": "arm64" }, "sha512-PaYyclfmQ++77D8ityYvmmVzHv9aG8ROwt2GfG6/ccloy4Hgf80qtOnzb9VYvPsUT7Ty1uhuDRhv3XYpf62qhQ=="], @@ -1018,7 +981,7 @@ "camel-case": ["camel-case@4.1.2", "", { "dependencies": { "pascal-case": "^3.1.2", "tslib": "^2.0.3" } }, "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw=="], - "camelcase": ["camelcase@6.3.0", "", {}, "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA=="], + "camelcase": ["camelcase@5.3.1", "", {}, "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg=="], "camelcase-css": ["camelcase-css@2.0.1", "", {}, "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA=="], @@ -1084,7 +1047,7 @@ "combined-stream": ["combined-stream@1.0.8", "", { "dependencies": { "delayed-stream": "~1.0.0" } }, "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg=="], - "commander": ["commander@9.5.0", "", {}, "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ=="], + "commander": ["commander@13.1.0", "", {}, "sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw=="], "common-tags": ["common-tags@1.8.2", "", {}, "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA=="], @@ -1136,7 +1099,7 @@ "css-select": ["css-select@5.2.2", "", { "dependencies": { "boolbase": "^1.0.0", "css-what": "^6.1.0", "domhandler": "^5.0.2", "domutils": "^3.0.1", "nth-check": "^2.0.1" } }, "sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw=="], - "css-tree": ["css-tree@2.3.1", "", { "dependencies": { "mdn-data": "2.0.30", "source-map-js": "^1.0.1" } }, "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw=="], + "css-tree": ["css-tree@3.2.1", "", { "dependencies": { "mdn-data": "2.27.1", "source-map-js": "^1.2.1" } }, "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA=="], "css-what": ["css-what@6.2.2", "", {}, "sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA=="], @@ -1162,8 +1125,6 @@ "damerau-levenshtein": ["damerau-levenshtein@1.0.8", "", {}, "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA=="], - "dashify": ["dashify@2.0.0", "", {}, "sha512-hpA5C/YrPjucXypHPPc0oJ1l9Hf6wWbiOL7Ik42cxnsUOhWiCB/fylKbKqqJalW9FgkNQCw16YO8uW9Hs0Iy1A=="], - "data-uri-to-buffer": ["data-uri-to-buffer@4.0.1", "", {}, "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A=="], "data-urls": ["data-urls@3.0.2", "", { "dependencies": { "abab": "^2.0.6", "whatwg-mimetype": "^3.0.0", "whatwg-url": "^11.0.0" } }, "sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ=="], @@ -1270,7 +1231,7 @@ "enhanced-resolve": ["enhanced-resolve@5.22.1", "", { "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.3.3" } }, "sha512-6QEuw3zoX1SJQc7b87aBXke/no+mG2bTBgw29gWMQonLmpEkWoCAVkl+M49e48AZlWzxiDzDZzYdp6kobcyLww=="], - "entities": ["entities@4.5.0", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="], + "entities": ["entities@6.0.1", "", {}, "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g=="], "environment": ["environment@1.1.0", "", {}, "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q=="], @@ -1472,7 +1433,7 @@ "get-symbol-description": ["get-symbol-description@1.1.0", "", { "dependencies": { "call-bound": "^1.0.3", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.6" } }, "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg=="], - "glob": ["glob@8.1.0", "", { "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^5.0.1", "once": "^1.3.0" } }, "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ=="], + "glob": ["glob@10.5.0", "", { "dependencies": { "foreground-child": "^3.1.0", "jackspeak": "^3.1.2", "minimatch": "^9.0.4", "minipass": "^7.1.2", "package-json-from-dist": "^1.0.0", "path-scurry": "^1.11.1" }, "bin": { "glob": "dist/esm/bin.mjs" } }, "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg=="], "glob-parent": ["glob-parent@6.0.2", "", { "dependencies": { "is-glob": "^4.0.3" } }, "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A=="], @@ -1884,7 +1845,7 @@ "md5.js": ["md5.js@1.3.5", "", { "dependencies": { "hash-base": "^3.0.0", "inherits": "^2.0.1", "safe-buffer": "^5.1.2" } }, "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg=="], - "mdn-data": ["mdn-data@2.0.30", "", {}, "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA=="], + "mdn-data": ["mdn-data@2.27.1", "", {}, "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ=="], "memorystream": ["memorystream@0.3.1", "", {}, "sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw=="], @@ -2450,9 +2411,7 @@ "supports-preserve-symlinks-flag": ["supports-preserve-symlinks-flag@1.0.0", "", {}, "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="], - "svg-parser": ["svg-parser@2.0.4", "", {}, "sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ=="], - - "svgo": ["svgo@3.3.3", "", { "dependencies": { "commander": "^7.2.0", "css-select": "^5.1.0", "css-tree": "^2.3.1", "css-what": "^6.1.0", "csso": "^5.0.5", "picocolors": "^1.0.0", "sax": "^1.5.0" }, "bin": "./bin/svgo" }, "sha512-+wn7I4p7YgJhHs38k2TNjy1vCfPIfLIJWR5MnCStsN8WuuTcBnRKcMHQLMM2ijxGZmDoZwNv8ipl5aTTen62ng=="], + "svgo": ["svgo@4.0.1", "", { "dependencies": { "commander": "^11.1.0", "css-select": "^5.1.0", "css-tree": "^3.0.1", "css-what": "^6.1.0", "csso": "^5.0.5", "picocolors": "^1.1.1", "sax": "^1.5.0" }, "bin": "./bin/svgo.js" }, "sha512-XDpWUOPC6FEibaLzjfe0ucaV0YrOjYotGJO1WpF0Zd+n6ZGEQUsSugaoLq9QkEZtAfQIxT42UChcssDVPP3+/w=="], "swap-case": ["swap-case@2.0.2", "", { "dependencies": { "tslib": "^2.0.3" } }, "sha512-kc6S2YS/2yXbtkSMunBtKdah4VFETZ8Oh6ONSmSd9bRxhqTrtARUCBUiWXH3xVPpvR7tz2CSnkuXVE42EcGnMw=="], @@ -2756,8 +2715,6 @@ "@isaacs/cliui/wrap-ansi": ["wrap-ansi@8.1.0", "", { "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", "strip-ansi": "^7.0.1" } }, "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ=="], - "@istanbuljs/load-nyc-config/camelcase": ["camelcase@5.3.1", "", {}, "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg=="], - "@istanbuljs/load-nyc-config/find-up": ["find-up@4.1.0", "", { "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" } }, "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw=="], "@istanbuljs/load-nyc-config/js-yaml": ["js-yaml@3.14.2", "", { "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg=="], @@ -2772,8 +2729,6 @@ "@jest/reporters/string-length": ["string-length@4.0.2", "", { "dependencies": { "char-regex": "^1.0.2", "strip-ansi": "^6.0.0" } }, "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ=="], - "@joshwooding/vite-plugin-react-docgen-typescript/glob": ["glob@10.5.0", "", { "dependencies": { "foreground-child": "^3.1.0", "jackspeak": "^3.1.2", "minimatch": "^9.0.4", "minipass": "^7.1.2", "package-json-from-dist": "^1.0.0", "path-scurry": "^1.11.1" }, "bin": { "glob": "dist/esm/bin.mjs" } }, "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg=="], - "@radix-ui/react-collection/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="], "@radix-ui/react-popover/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="], @@ -2782,16 +2737,12 @@ "@radix-ui/react-select/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="], - "@radix-ui/react-separator/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.4", "", { "dependencies": { "@radix-ui/react-slot": "1.2.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg=="], - "@sideway/address/@hapi/hoek": ["@hapi/hoek@9.3.0", "", {}, "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ=="], "@storybook/csf/type-fest": ["type-fest@2.19.0", "", {}, "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA=="], "@storybook/csf-plugin/unplugin": ["unplugin@1.16.1", "", { "dependencies": { "acorn": "^8.14.0", "webpack-virtual-modules": "^0.6.2" } }, "sha512-4/u/j4FrCKdi17jaxuJA0jClGxB1AvU2hw/IuayPc4ay1XGaJs/rbb4v5WKwAjNifjmXK9PIFyuPiaK8azyR9w=="], - "@svgr/plugin-prettier/prettier": ["prettier@2.8.8", "", { "bin": { "prettier": "bin-prettier.js" } }, "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q=="], - "@tanstack/router-generator/prettier": ["prettier@3.8.3", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-7igPTM53cGHMW8xWuVTydi2KO233VFiTNyF5hLJqpilHfmn8C8gPf+PS7dUT64YcXFbiMGZxS9pCSxL/Dxm/Jw=="], "@tanstack/router-generator/source-map": ["source-map@0.7.6", "", {}, "sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ=="], @@ -2902,7 +2853,9 @@ "find-process/commander": ["commander@12.1.0", "", {}, "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA=="], - "glob/minimatch": ["minimatch@5.1.9", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw=="], + "glob/foreground-child": ["foreground-child@3.3.1", "", { "dependencies": { "cross-spawn": "^7.0.6", "signal-exit": "^4.0.1" } }, "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw=="], + + "glob/minimatch": ["minimatch@9.0.9", "", { "dependencies": { "brace-expansion": "^2.0.2" } }, "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg=="], "global-modules/is-windows": ["is-windows@0.2.0", "", {}, "sha512-n67eJYmXbniZB7RF4I/FTjK1s6RPOCTxhYrVYLRaCt3lF0mpWZPKr3T2LSZAqyjQsxR2qMmGYXXzK0YWwcPM1Q=="], @@ -2952,6 +2905,8 @@ "jest-util/picomatch": ["picomatch@2.3.2", "", {}, "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA=="], + "jest-validate/camelcase": ["camelcase@6.3.0", "", {}, "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA=="], + "jest-watch-typeahead/ansi-escapes": ["ansi-escapes@6.2.1", "", {}, "sha512-4nJ3yixlEthEJ9Rk4vPcdBRkZvQZlYyu8j4/Mqz5sgIkddmEnH2Yj2ZrnP9S3tQOvSNRUIgVNF/1yPpRAGNRig=="], "jest-watch-typeahead/chalk": ["chalk@5.6.2", "", {}, "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA=="], @@ -2970,8 +2925,6 @@ "lint-staged/chalk": ["chalk@5.6.2", "", {}, "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA=="], - "lint-staged/commander": ["commander@13.1.0", "", {}, "sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw=="], - "lint-staged/listr2": ["listr2@8.3.3", "", { "dependencies": { "cli-truncate": "^4.0.0", "colorette": "^2.0.20", "eventemitter3": "^5.0.1", "log-update": "^6.1.0", "rfdc": "^1.4.1", "wrap-ansi": "^9.0.0" } }, "sha512-LWzX2KsqcB1wqQ4AHgYb4RsDXauQiqhjLk+6hjbaeHG4zpjjVAB6wC/gz6X0l+Du1cN3pUB5ZlrvTbhGSNnUQQ=="], "listr2/wrap-ansi": ["wrap-ansi@7.0.0", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="], @@ -3022,8 +2975,6 @@ "parse-asn1/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="], - "parse5/entities": ["entities@6.0.1", "", {}, "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g=="], - "path-scurry/lru-cache": ["lru-cache@10.4.3", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="], "pbkdf2/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="], @@ -3040,8 +2991,6 @@ "postcss-minify-selectors/postcss-selector-parser": ["postcss-selector-parser@7.1.1", "", { "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" } }, "sha512-orRsuYpJVw8LdAwqqLykBj9ecS5/cRHlI5+nvTo8LcCKmzDmqVORXtOIYEEQuL9D4BxtA1lm5isAqzQZCoQ6Eg=="], - "postcss-svgo/svgo": ["svgo@4.0.1", "", { "dependencies": { "commander": "^11.1.0", "css-select": "^5.1.0", "css-tree": "^3.0.1", "css-what": "^6.1.0", "csso": "^5.0.5", "picocolors": "^1.1.1", "sax": "^1.5.0" }, "bin": "./bin/svgo.js" }, "sha512-XDpWUOPC6FEibaLzjfe0ucaV0YrOjYotGJO1WpF0Zd+n6ZGEQUsSugaoLq9QkEZtAfQIxT42UChcssDVPP3+/w=="], - "postcss-unique-selectors/postcss-selector-parser": ["postcss-selector-parser@7.1.1", "", { "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" } }, "sha512-orRsuYpJVw8LdAwqqLykBj9ecS5/cRHlI5+nvTo8LcCKmzDmqVORXtOIYEEQuL9D4BxtA1lm5isAqzQZCoQ6Eg=="], "pretty-format/ansi-styles": ["ansi-styles@5.2.0", "", {}, "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA=="], @@ -3090,7 +3039,7 @@ "sucrase/commander": ["commander@4.1.1", "", {}, "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA=="], - "svgo/commander": ["commander@7.2.0", "", {}, "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw=="], + "svgo/commander": ["commander@11.1.0", "", {}, "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ=="], "sync-fetch/whatwg-mimetype": ["whatwg-mimetype@4.0.0", "", {}, "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg=="], @@ -3144,10 +3093,6 @@ "@jest/reporters/string-length/char-regex": ["char-regex@1.0.2", "", {}, "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw=="], - "@joshwooding/vite-plugin-react-docgen-typescript/glob/foreground-child": ["foreground-child@3.3.1", "", { "dependencies": { "cross-spawn": "^7.0.6", "signal-exit": "^4.0.1" } }, "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw=="], - - "@joshwooding/vite-plugin-react-docgen-typescript/glob/minimatch": ["minimatch@9.0.9", "", { "dependencies": { "brace-expansion": "^2.0.2" } }, "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg=="], - "@testing-library/dom/pretty-format/ansi-styles": ["ansi-styles@5.2.0", "", {}, "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA=="], "@testing-library/dom/pretty-format/react-is": ["react-is@17.0.2", "", {}, "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w=="], @@ -3206,6 +3151,8 @@ "eslint/find-up/path-exists": ["path-exists@4.0.0", "", {}, "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="], + "glob/foreground-child/signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="], + "glob/minimatch/brace-expansion": ["brace-expansion@2.1.1", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA=="], "graphql-config/@graphql-tools/url-loader/@graphql-tools/executor-graphql-ws": ["@graphql-tools/executor-graphql-ws@3.1.5", "", { "dependencies": { "@graphql-tools/executor-common": "^1.0.6", "@graphql-tools/utils": "^11.0.0", "@whatwg-node/disposablestack": "^0.0.6", "graphql-ws": "^6.0.6", "isows": "^1.0.7", "tslib": "^2.8.1", "ws": "^8.18.3" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "sha512-WXRsfwu9AkrORD9nShrd61OwwxeQ5+eXYcABRR3XPONFIS8pWQfDJGGqxql9/227o/s0DV5SIfkBURb5Knzv+A=="], @@ -3286,10 +3233,6 @@ "pkg-dir/find-up/path-exists": ["path-exists@4.0.0", "", {}, "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="], - "postcss-svgo/svgo/commander": ["commander@11.1.0", "", {}, "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ=="], - - "postcss-svgo/svgo/css-tree": ["css-tree@3.2.1", "", { "dependencies": { "mdn-data": "2.27.1", "source-map-js": "^1.2.1" } }, "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA=="], - "read-pkg/path-type/pify": ["pify@3.0.0", "", {}, "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg=="], "restore-cursor/onetime/mimic-fn": ["mimic-fn@2.1.0", "", {}, "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg=="], @@ -3378,10 +3321,6 @@ "@jest/create-cache-key-function/@jest/types/@jest/schemas/@sinclair/typebox": ["@sinclair/typebox@0.34.49", "", {}, "sha512-brySQQs7Jtn0joV8Xh9ZV/hZb9Ozb0pmazDIASBkYKCjXrXU3mpcFahmK/z4YDhGkQvP9mWJbVyahdtU5wQA+A=="], - "@joshwooding/vite-plugin-react-docgen-typescript/glob/foreground-child/signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="], - - "@joshwooding/vite-plugin-react-docgen-typescript/glob/minimatch/brace-expansion": ["brace-expansion@2.1.1", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA=="], - "chalk/ansi-styles/color-convert/color-name": ["color-name@1.1.4", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="], "cliui/wrap-ansi/ansi-styles/color-convert": ["color-convert@2.0.1", "", { "dependencies": { "color-name": "~1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="], @@ -3390,6 +3329,8 @@ "cross-fetch/node-fetch/whatwg-url/webidl-conversions": ["webidl-conversions@3.0.1", "", {}, "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="], + "css-select/domutils/dom-serializer/entities": ["entities@4.5.0", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="], + "eslint-plugin-jest/@typescript-eslint/utils/@typescript-eslint/scope-manager/@typescript-eslint/visitor-keys": ["@typescript-eslint/visitor-keys@5.62.0", "", { "dependencies": { "@typescript-eslint/types": "5.62.0", "eslint-visitor-keys": "^3.3.0" } }, "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw=="], "eslint-plugin-jest/@typescript-eslint/utils/@typescript-eslint/typescript-estree/@typescript-eslint/visitor-keys": ["@typescript-eslint/visitor-keys@5.62.0", "", { "dependencies": { "@typescript-eslint/types": "5.62.0", "eslint-visitor-keys": "^3.3.0" } }, "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw=="], @@ -3466,12 +3407,8 @@ "nyc/find-up/locate-path/p-locate": ["p-locate@4.1.0", "", { "dependencies": { "p-limit": "^2.2.0" } }, "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A=="], - "nyc/yargs/yargs-parser/camelcase": ["camelcase@5.3.1", "", {}, "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg=="], - "pkg-dir/find-up/locate-path/p-locate": ["p-locate@4.1.0", "", { "dependencies": { "p-limit": "^2.2.0" } }, "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A=="], - "postcss-svgo/svgo/css-tree/mdn-data": ["mdn-data@2.27.1", "", {}, "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ=="], - "ripemd160/hash-base/readable-stream/isarray": ["isarray@1.0.0", "", {}, "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ=="], "ripemd160/hash-base/readable-stream/safe-buffer": ["safe-buffer@5.1.2", "", {}, "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="], diff --git a/package.json b/package.json index a6ef85d..e3aac11 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,6 @@ "test-storybook:ci": "start-server-and-test serve-storybook http://127.0.0.1:6006 test-storybook", "format": "prettier . --write", "prepare": "husky", - "gen-assets": "svgr --template svgr-template.cjs --index-template svgr-index-template.cjs --icon --title-prop --typescript --jsx-runtime automatic --replace-attr-values currentColor=currentColor,#FFEF00=currentColor --filename-case pascal -d src/assets assets", "gql:compile": "graphql-codegen", "bench:graphql": "bun scripts/graphql-bench.ts" }, @@ -29,9 +28,7 @@ "@radix-ui/react-navigation-menu": "^1.2.13", "@radix-ui/react-popover": "^1.1.14", "@radix-ui/react-select": "^2.2.5", - "@radix-ui/react-separator": "^1.1.7", "@radix-ui/react-slot": "^1.2.3", - "@radix-ui/react-switch": "^1.2.5", "@radix-ui/react-tabs": "^1.1.12", "@subsquid/ss58-codec": "^1.2.3", "@tanstack/react-router": "1.130.12", @@ -63,7 +60,6 @@ "@storybook/addon-onboarding": "^9.0.6", "@storybook/react-vite": "^9.0.6", "@storybook/test-runner": "^0.22.1", - "@svgr/cli": "^8.1.0", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.3.0", "@types/jest": "^29.5.11", diff --git a/src/components/common/table-columns/ACCOUNT_BENEFICIARIES_COLUMNS.tsx b/src/components/common/table-columns/ACCOUNT_BENEFICIARIES_COLUMNS.tsx deleted file mode 100644 index 94676ec..0000000 --- a/src/components/common/table-columns/ACCOUNT_BENEFICIARIES_COLUMNS.tsx +++ /dev/null @@ -1,40 +0,0 @@ -import { createColumnHelper } from '@tanstack/react-table'; - -import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; -import { RESOURCES } from '@/constants/resources'; -import type { AccountBeneficiary } from '@/schemas'; -import { formatMonetaryValue } from '@/utils/formatter'; - -const columnHelper = createColumnHelper(); - -export const ACCOUNT_BENEFICIARIES_COLUMNS = [ - columnHelper.accessor('who.id', { - id: 'id', - header: 'Identity', - cell: (props) => ( - - ), - enableSorting: false - }), - columnHelper.accessor('who.free', { - id: 'free', - header: 'Free', - cell: (props) => formatMonetaryValue(props.getValue(), 5), - enableSorting: true - }), - columnHelper.accessor('who.frozen', { - id: 'frozen', - header: 'Frozen', - cell: (props) => formatMonetaryValue(props.getValue(), 5), - enableSorting: true - }), - columnHelper.accessor('who.reserved', { - id: 'reserved', - header: 'Reserved', - cell: (props) => formatMonetaryValue(props.getValue(), 5), - enableSorting: true - }) -]; diff --git a/src/components/common/table-columns/ACCOUNT_GUARDIAN_COLUMNS.tsx b/src/components/common/table-columns/ACCOUNT_GUARDIAN_COLUMNS.tsx deleted file mode 100644 index 454c0f6..0000000 --- a/src/components/common/table-columns/ACCOUNT_GUARDIAN_COLUMNS.tsx +++ /dev/null @@ -1,40 +0,0 @@ -import { createColumnHelper } from '@tanstack/react-table'; - -import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; -import { RESOURCES } from '@/constants/resources'; -import type { AccountGuardian } from '@/schemas'; -import { formatMonetaryValue } from '@/utils/formatter'; - -const columnHelper = createColumnHelper(); - -export const ACCOUNT_GUARDIAN_COLUMNS = [ - columnHelper.accessor('guardian.id', { - id: 'id', - header: 'Identity', - cell: (props) => ( - - ), - enableSorting: false - }), - columnHelper.accessor('guardian.free', { - id: 'free', - header: 'Free', - cell: (props) => formatMonetaryValue(props.getValue(), 5), - enableSorting: true - }), - columnHelper.accessor('guardian.frozen', { - id: 'frozen', - header: 'Frozen', - cell: (props) => formatMonetaryValue(props.getValue(), 5), - enableSorting: true - }), - columnHelper.accessor('guardian.reserved', { - id: 'reserved', - header: 'Reserved', - cell: (props) => formatMonetaryValue(props.getValue(), 5), - enableSorting: true - }) -]; diff --git a/src/components/common/table-columns/CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS.tsx b/src/components/common/table-columns/CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS.tsx deleted file mode 100644 index e78f3fd..0000000 --- a/src/components/common/table-columns/CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS.tsx +++ /dev/null @@ -1,87 +0,0 @@ -import { createColumnHelper } from '@tanstack/react-table'; - -import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; -import { TimestampDisplay } from '@/components/ui/timestamp-display'; -import { RESOURCES } from '@/constants/resources'; -import type { CancelledReversibleTransaction } from '@/schemas'; -import { - formatBlockHeight, - formatMonetaryValue, - formatTxAddress -} from '@/utils/formatter'; - -const columnHelper = createColumnHelper(); - -export const CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS = [ - columnHelper.accessor('tx_id', { - id: 'tx-id', - header: 'Tx ID', - cell: (props) => ( - - ), - enableSorting: false - }), - columnHelper.accessor('block.height', { - id: 'block_height', - header: 'Block', - cell: (props) => ( - - ), - enableSorting: true - }), - columnHelper.accessor('timestamp', { - id: 'timestamp', - header: 'Timestamp', - cell: (props) => , - enableSorting: true - }), - columnHelper.accessor('cancelledBy.id', { - id: 'cancelledBy', - header: 'Cancelled By', - cell: (props) => ( - - ), - enableSorting: false - }), - columnHelper.accessor('scheduledTransfer.from.id', { - id: 'from', - header: 'From', - cell: (props) => ( - - ), - enableSorting: false - }), - columnHelper.accessor('scheduledTransfer.to.id', { - id: 'to', - header: 'To', - cell: (props) => ( - - ), - enableSorting: false - }), - columnHelper.accessor('scheduledTransfer.amount', { - id: 'amount', - header: 'Amount', - cell: (props) => formatMonetaryValue(props.getValue(), 5), - enableSorting: true - }) -]; diff --git a/src/components/common/table-columns/EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS.tsx b/src/components/common/table-columns/EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS.tsx deleted file mode 100644 index 516ab39..0000000 --- a/src/components/common/table-columns/EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS.tsx +++ /dev/null @@ -1,75 +0,0 @@ -import { createColumnHelper } from '@tanstack/react-table'; - -import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; -import { TimestampDisplay } from '@/components/ui/timestamp-display'; -import { RESOURCES } from '@/constants/resources'; -import type { ExecutedReversibleTransaction } from '@/schemas'; -import { - formatBlockHeight, - formatMonetaryValue, - formatTxAddress -} from '@/utils/formatter'; - -const columnHelper = createColumnHelper(); - -export const EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS = [ - columnHelper.accessor('tx_id', { - id: 'tx-id', - header: 'Tx ID', - cell: (props) => ( - - ), - enableSorting: false - }), - columnHelper.accessor('block.height', { - id: 'block_height', - header: 'Block', - cell: (props) => ( - - ), - enableSorting: true - }), - columnHelper.accessor('timestamp', { - id: 'timestamp', - header: 'Timestamp', - cell: (props) => , - enableSorting: true - }), - columnHelper.accessor('scheduledTransfer.from.id', { - id: 'from', - header: 'From', - cell: (props) => ( - - ), - enableSorting: false - }), - columnHelper.accessor('scheduledTransfer.to.id', { - id: 'to', - header: 'To', - cell: (props) => ( - - ), - enableSorting: false - }), - columnHelper.accessor('scheduledTransfer.amount', { - id: 'amount', - header: 'Amount', - cell: (props) => formatMonetaryValue(props.getValue(), 5), - enableSorting: true - }) -]; diff --git a/src/components/common/table-columns/SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS.tsx b/src/components/common/table-columns/SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS.tsx deleted file mode 100644 index 3e751fd..0000000 --- a/src/components/common/table-columns/SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS.tsx +++ /dev/null @@ -1,81 +0,0 @@ -import { createColumnHelper } from '@tanstack/react-table'; - -import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; -import { TimestampDisplay } from '@/components/ui/timestamp-display'; -import { RESOURCES } from '@/constants/resources'; -import type { ScheduledReversibleTransaction } from '@/schemas'; -import { - formatBlockHeight, - formatMonetaryValue, - formatTxAddress -} from '@/utils/formatter'; - -const columnHelper = createColumnHelper(); - -export const SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS = [ - columnHelper.accessor('tx_id', { - id: 'tx-id', - header: 'Tx ID', - cell: (props) => ( - - ), - enableSorting: false - }), - columnHelper.accessor('block.height', { - id: 'block_height', - header: 'Block', - cell: (props) => ( - - ), - enableSorting: true - }), - columnHelper.accessor('timestamp', { - id: 'timestamp', - header: 'Timestamp', - cell: (props) => , - enableSorting: true - }), - columnHelper.accessor('scheduled_at', { - id: 'scheduled_at', - header: 'Scheduled At', - cell: (props) => , - enableSorting: true - }), - columnHelper.accessor('from.id', { - id: 'from', - header: 'From', - cell: (props) => ( - - ), - enableSorting: false - }), - columnHelper.accessor('to.id', { - id: 'to', - header: 'To', - cell: (props) => ( - - ), - enableSorting: false - }), - columnHelper.accessor('amount', { - id: 'amount', - header: 'Amount', - cell: (props) => formatMonetaryValue(props.getValue(), 5), - enableSorting: true - }) -]; diff --git a/src/components/common/table-columns/UNIFIED_TRANSACTION_COLUMNS.tsx b/src/components/common/table-columns/UNIFIED_TRANSACTION_COLUMNS.tsx deleted file mode 100644 index 0b7b3ab..0000000 --- a/src/components/common/table-columns/UNIFIED_TRANSACTION_COLUMNS.tsx +++ /dev/null @@ -1,487 +0,0 @@ -import { createColumnHelper } from '@tanstack/react-table'; - -import { Badge } from '@/components/ui/badge'; -import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; -import { TimestampDisplay } from '@/components/ui/timestamp-display'; -import { RESOURCES } from '@/constants/resources'; -import { TRANSACTION_TYPE_CONFIG } from '@/constants/transaction-types'; -import type { UnifiedTransaction } from '@/schemas/unified-transaction'; -import { - formatBlockHeight, - formatDuration, - formatMonetaryValue, - formatTxAddress -} from '@/utils/formatter'; -import { getMultisigProposalHref } from '@/utils/get-multisig-proposal-href'; -import { getMultisigWalletHref } from '@/utils/get-multisig-wallet-href'; - -const columnHelper = createColumnHelper(); - -export interface UnifiedTransactionColumnsOptions { - showBlockColumn?: boolean; -} - -export const createUnifiedTransactionColumns = ( - options: UnifiedTransactionColumnsOptions = {} -) => { - const { showBlockColumn = true } = options; - - const columns = [ - // Type column - columnHelper.accessor('type', { - id: 'type', - header: 'Type', - cell: (props) => { - const type = props.getValue(); - const config = TRANSACTION_TYPE_CONFIG[type] ?? { - label: type, - variant: 'miner' as const - }; - return {config.label}; - }, - enableSorting: false - }), - - // Extrinsic column - columnHelper.accessor('extrinsic', { - id: 'extrinsic', - header: 'Extrinsic', - cell: (props) => { - const extrinsic = props.getValue(); - const row = props.row.original; - - // Determine link target and display text based on type - let href = ''; - let displayText = '-'; - const extrinsicId = extrinsic?.id; - - if (row.type === 'immediate' && extrinsicId) { - href = `${RESOURCES.transactions}/${extrinsicId}`; - displayText = formatTxAddress(extrinsicId); - } else if (row.type === 'scheduled-reversible' && row.id) { - href = `${RESOURCES.scheduledReversibleTransactions}/${row.id}`; - displayText = formatTxAddress(row.id); - } else if (row.type === 'executed-reversible' && row.id) { - href = `${RESOURCES.executedReversibleTransactions}/${row.id}`; - displayText = formatTxAddress(row.id); - } else if (row.type === 'cancelled-reversible' && row.id) { - href = `${RESOURCES.cancelledReversibleTransactions}/${row.id}`; - displayText = formatTxAddress(row.id); - } else if (row.type === 'miner-reward' && row.block) { - href = `${RESOURCES.blocks}/${row.block.height}`; - displayText = `Block #${formatBlockHeight(row.block.height)}`; - } else if (row.type === 'high-security') { - if (extrinsicId) { - href = `${RESOURCES.highSecuritySets}/${extrinsicId}`; - displayText = formatTxAddress(extrinsicId); - } else if (row.block) { - href = `${RESOURCES.highSecuritySets}`; - displayText = `Block #${formatBlockHeight(row.block.height)}`; - } - } else if (row.type === 'wormhole') { - href = `${RESOURCES.wormhole}/${row.id}`; - displayText = extrinsicId - ? formatTxAddress(extrinsicId) - : formatTxAddress(row.id); - } else if (row.type === 'error' && extrinsicId) { - href = `${RESOURCES.errors}/${extrinsicId}`; - displayText = formatTxAddress(extrinsicId); - } else if (row.type === 'multisig-created' && extrinsicId) { - href = `${RESOURCES.multisigCreated}/${extrinsicId}`; - displayText = formatTxAddress(extrinsicId); - } else if (row.type === 'multisig-proposal-created' && extrinsicId) { - href = `${RESOURCES.multisigProposalCreated}/${extrinsicId}`; - displayText = formatTxAddress(extrinsicId); - } else if (row.type === 'multisig-signer-approved' && extrinsicId) { - href = `${RESOURCES.multisigSignerApproved}/${extrinsicId}`; - displayText = formatTxAddress(extrinsicId); - } else if (row.type === 'multisig-proposal-ready' && extrinsicId) { - href = `${RESOURCES.multisigProposalReady}/${extrinsicId}`; - displayText = formatTxAddress(extrinsicId); - } else if (row.type === 'multisig-proposal-executed' && extrinsicId) { - href = `${RESOURCES.multisigProposalExecuted}/${extrinsicId}`; - displayText = formatTxAddress(extrinsicId); - } else if (row.type === 'multisig-proposal-cancelled' && extrinsicId) { - href = `${RESOURCES.multisigProposalCancelled}/${extrinsicId}`; - displayText = formatTxAddress(extrinsicId); - } else if (row.type === 'multisig-proposal-removed' && extrinsicId) { - href = `${RESOURCES.multisigProposalRemoved}/${extrinsicId}`; - displayText = formatTxAddress(extrinsicId); - } else if (row.type === 'multisig-deposits-claimed' && extrinsicId) { - href = `${RESOURCES.multisigDepositsClaimed}/${extrinsicId}`; - displayText = formatTxAddress(extrinsicId); - } - - if (!href) { - return -; - } - - return ( - - ); - }, - enableSorting: false - }), - - // Timestamp column - columnHelper.accessor('timestamp', { - id: 'timestamp', - header: 'Timestamp', - cell: (props) => { - const timestamp = props.getValue(); - if (!timestamp) return -; - return ; - }, - enableSorting: true - }), - - // Details column (parties, error info, etc.) - columnHelper.display({ - id: 'details', - header: 'Details', - cell: (props) => { - const row = props.row.original; - - // For transfers (immediate/reversible) - if ( - [ - 'immediate', - 'scheduled-reversible', - 'executed-reversible', - 'cancelled-reversible' - ].includes(row.type) - ) { - return ( -
- {row.from && ( -
- From: - -
- )} - {row.to && ( -
- To: - -
- )} -
- ); - } - - // For miner rewards - if (row.type === 'miner-reward' && row.miner) { - return ( -
- Miner: - -
- ); - } - - // For high security sets - if (row.type === 'high-security') { - return ( -
- {row.who && ( -
- Beneficiary: - -
- )} - {row.guardian && ( -
- Guardian: - -
- )} -
- ); - } - - // For wormhole - show outputs - if (row.type === 'wormhole' && row.outputs && row.outputs.length > 0) { - return ( -
- {row.outputs.slice(0, 2).map((output, idx) => ( -
- Exit: - -
- ))} - {row.outputs.length > 2 && ( - - +{row.outputs.length - 2} more - - )} -
- ); - } - - // For error events - if (row.type === 'error') { - return ( -
- {row.errorType && ( -
- Type: - {row.errorType} -
- )} - {row.errorName && ( -
- Name: - {row.errorName} -
- )} -
- ); - } - - if (row.type === 'multisig-created') { - return ( -
- {row.creator && ( -
- Creator: - -
- )} - {row.threshold != null && ( -
- Threshold: - {row.threshold} -
- )} -
- ); - } - - if ( - [ - 'multisig-proposal-created', - 'multisig-signer-approved', - 'multisig-proposal-ready', - 'multisig-proposal-executed', - 'multisig-proposal-cancelled', - 'multisig-proposal-removed' - ].includes(row.type) - ) { - return ( -
- {row.proposalId && ( -
- Proposal: - {(() => { - const href = getMultisigProposalHref({ - id: row.proposalId - }); - const text = formatTxAddress(row.proposalId); - return href ? ( - - ) : ( - {text} - ); - })()} -
- )} - {row.multisig && ( -
- Multisig: - -
- )} - {row.approver && ( -
- Approver: - -
- )} - {row.cancelledBy && ( -
- Cancelled by: - -
- )} - {row.removedBy && ( -
- Removed by: - -
- )} - {row.approvalsCount != null && ( -
- Approvals: - {row.approvalsCount} -
- )} - {row.result && ( -
- Result: - {row.result} -
- )} -
- ); - } - - if (row.type === 'multisig-deposits-claimed') { - return ( -
- {row.claimer && ( -
- Claimer: - -
- )} - {row.multisig && ( -
- Multisig: - -
- )} -
- ); - } - - return -; - } - }), - - // Amount column - columnHelper.display({ - id: 'amount', - header: 'Amount', - cell: (props) => { - const row = props.row.original; - - // For transfers - if ( - [ - 'immediate', - 'scheduled-reversible', - 'executed-reversible', - 'cancelled-reversible' - ].includes(row.type) && - row.amount !== undefined - ) { - return formatMonetaryValue(BigInt(row.amount), 5); - } - - // For miner rewards - if (row.type === 'miner-reward' && row.reward !== undefined) { - return formatMonetaryValue(row.reward, 5); - } - - // For wormhole - if (row.type === 'wormhole' && row.totalAmount !== undefined) { - return formatMonetaryValue(row.totalAmount, 5); - } - - // For high security sets - show delay - if (row.type === 'high-security' && row.delay !== undefined) { - return ( - - {formatDuration(row.delay)} - - ); - } - - if ( - row.type === 'multisig-deposits-claimed' && - row.totalReturned != null - ) { - return formatMonetaryValue(String(row.totalReturned), 5); - } - - return -; - } - }) - ]; - - // Optionally add block column after timestamp - if (showBlockColumn) { - const blockColumn = columnHelper.display({ - id: 'block', - header: 'Block', - cell: (props) => { - const height = props.row.original.block?.height; - if (!height) return -; - return ( - - ); - } - }); - - // Insert block column after timestamp (index 2) - columns.splice(3, 0, blockColumn); - } - - return columns; -}; - -// Default export for backward compatibility -export const UNIFIED_TRANSACTION_COLUMNS = createUnifiedTransactionColumns(); diff --git a/src/components/common/table-columns/WORMHOLE_OUTPUT_COLUMNS.tsx b/src/components/common/table-columns/WORMHOLE_OUTPUT_COLUMNS.tsx deleted file mode 100644 index 0c18883..0000000 --- a/src/components/common/table-columns/WORMHOLE_OUTPUT_COLUMNS.tsx +++ /dev/null @@ -1,74 +0,0 @@ -import { createColumnHelper } from '@tanstack/react-table'; - -import { PrivacyScoreBadge } from '@/components/features/wormhole/PrivacyScoreBadge'; -import { LinkWithCopy } from '@/components/ui/composites/link-with-copy/LinkWithCopy'; -import { TimestampDisplay } from '@/components/ui/timestamp-display'; -import { RESOURCES } from '@/constants/resources'; -import type { WormholeExtrinsic } from '@/schemas/wormhole'; -import { - formatBlockHeight, - formatMonetaryValue, - formatTxAddress -} from '@/utils/formatter'; - -export type WormholeExtrinsicRow = WormholeExtrinsic; - -const columnHelper = createColumnHelper(); - -export const WORMHOLE_EXTRINSIC_COLUMNS = [ - columnHelper.accessor('extrinsic.id', { - id: 'extrinsic_hash', - header: 'Extrinsic', - cell: (props) => { - const hash = props.getValue(); - const { id } = props.row.original; - return ( - - ); - }, - enableSorting: false - }), - columnHelper.accessor('total_amount', { - id: 'total_amount', - header: 'Total Amount', - cell: (props) => formatMonetaryValue(props.getValue()), - enableSorting: true - }), - columnHelper.accessor('output_count', { - id: 'output_count', - header: 'Outputs', - cell: (props) => props.getValue(), - enableSorting: false - }), - columnHelper.accessor('privacy_score', { - id: 'privacy_score', - header: 'Privacy', - cell: (props) => ( - - ), - enableSorting: true - }), - columnHelper.accessor('block.height', { - id: 'block_height', - header: 'Block', - cell: (props) => ( - - ), - enableSorting: true - }), - columnHelper.accessor('timestamp', { - id: 'timestamp', - header: 'Timestamp', - cell: (props) => , - enableSorting: true - }) -]; diff --git a/src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transaction-heading/CancelledReversibleTransactionHeading.tsx b/src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transaction-heading/CancelledReversibleTransactionHeading.tsx deleted file mode 100644 index 6627813..0000000 --- a/src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transaction-heading/CancelledReversibleTransactionHeading.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import { Link, useSearch } from '@tanstack/react-router'; -import * as React from 'react'; - -export interface CancelledReversibleTransactionHeadingProps {} - -export const CancelledReversibleTransactionHeading: React.FC< - CancelledReversibleTransactionHeadingProps -> = () => { - const { accountId, block } = useSearch({ - strict: false - }) as any; - - return ( -
-

Cancelled Reversible Transactions

- - {block && ( -
- In block - - {block} - -
- )} - - {accountId && ( -
- By - - {accountId} - -
- )} -
- ); -}; diff --git a/src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transactions-stats/CancelledReversibleTransactionsStats.tsx b/src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transactions-stats/CancelledReversibleTransactionsStats.tsx deleted file mode 100644 index c9b59bd..0000000 --- a/src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transactions-stats/CancelledReversibleTransactionsStats.tsx +++ /dev/null @@ -1,67 +0,0 @@ -import { useSearch } from '@tanstack/react-router'; -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'; - -export interface CancelledReversibleTransactionsStatsProps {} - -export const CancelledReversibleTransactionsStats: React.FC< - CancelledReversibleTransactionsStatsProps -> = () => { - const api = useApiClient(); - const { accountId, block } = useSearch({ - strict: false - }) as any; - - const shouldHide = !!(accountId || block); - - const { loading, data, error } = - api.cancelledReversibleTransactions.useGetStats({ - pollInterval: DATA_POOL_INTERVAL, - skip: shouldHide - }); - - if (shouldHide) return null; - - const success = !loading && !error; - - return ( - - - - -

Total Cancelled Transactions

-
-
- - {success &&

{data?.allTime.total_cancelled_transfers}

} - {loading && } - {error && } -
-
- - - - -

Recent Cancelled Transactions (24H)

-
-
- - {success &&

{data?.last24Hour.aggregate.totalCount}

} - {loading && } - {error && } -
-
-
- ); -}; diff --git a/src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transactions-table/CancelledReversibleTransactionsTable.tsx b/src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transactions-table/CancelledReversibleTransactionsTable.tsx deleted file mode 100644 index 5f2276c..0000000 --- a/src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transactions-table/CancelledReversibleTransactionsTable.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import React from 'react'; - -import { DataTable } from '@/components/ui/composites/data-table/DataTable'; -import { FetchError } from '@/components/ui/composites/fetch-error/FetchError'; - -import { useCancelledReversibleTransactionsTable } from './hook'; - -export const CancelledReversibleTransactionsTable = () => { - const { getStatus, table, error } = useCancelledReversibleTransactionsTable(); - - return ( - - }} - withControls - /> - ); -}; diff --git a/src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transactions-table/hook.tsx b/src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transactions-table/hook.tsx deleted file mode 100644 index d8d0061..0000000 --- a/src/components/features/cancelled-reversible-transaction-listing/cancelled-reversible-transactions-table/hook.tsx +++ /dev/null @@ -1,108 +0,0 @@ -import { useSearch } from '@tanstack/react-router'; -import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { useEffect, useMemo, useState } from 'react'; - -import useApiClient from '@/api'; -import { CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS } from '@/components/common/table-columns/CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS'; -import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; -import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import type { CancelledReversibleTransactionSorts } from '@/constants/query-sorts'; -import { useOrderBy } from '@/hooks/useOrderBy'; -import { useTableState } from '@/hooks/useTableState'; -import type { CancelledReversibleTransaction } from '@/schemas'; -import { transformSortLiteral } from '@/utils/transform-sort'; - -export const useCancelledReversibleTransactionsTable = () => { - const api = useApiClient(); - const { accountId, block } = useSearch({ - strict: false - }) as any; - - const { - orderBy, - limit, - currentPageIndex, - handleChangeSorting, - handleChangePagination, - paginationValue - } = useTableState(null, QUERY_DEFAULT_LIMIT); - - const orderByObject = useOrderBy( - orderBy ?? '' - ); - const sortingValue = transformSortLiteral(orderBy); - - const { - loading, - data, - error: fetchError - } = api.cancelledReversibleTransactions.useGetAll({ - pollInterval: DATA_POOL_INTERVAL, - variables: { - orderBy: orderByObject, - limit, - offset: currentPageIndex * limit, - ...(accountId && { - where: { - OR: [ - { scheduledTransfer: { from: { id_eq: accountId } } }, - { scheduledTransfer: { to: { id_eq: accountId } } }, - { cancelledBy: { id_eq: accountId } } - ] - } - }), - ...(block && { - where: { - block: { height_eq: Number(block) } - } - }) - } - }); - - const columns = useMemo(() => CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS, []); - const [rowCount, setRowCount] = useState( - data?.meta.aggregate.totalCount ?? 0 - ); - - const table = useReactTable({ - data: data?.cancelledReversibleTransactions ?? [], - 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: fetchError - }; -}; diff --git a/src/components/features/executed-reversible-transaction-listing/executed-reversible-transaction-heading/ExecutedReversibleTransactionHeading.tsx b/src/components/features/executed-reversible-transaction-listing/executed-reversible-transaction-heading/ExecutedReversibleTransactionHeading.tsx deleted file mode 100644 index ae880e5..0000000 --- a/src/components/features/executed-reversible-transaction-listing/executed-reversible-transaction-heading/ExecutedReversibleTransactionHeading.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import { Link, useSearch } from '@tanstack/react-router'; -import * as React from 'react'; - -export interface ExecutedReversibleTransactionHeadingProps {} - -export const ExecutedReversibleTransactionHeading: React.FC< - ExecutedReversibleTransactionHeadingProps -> = () => { - const { accountId, block } = useSearch({ - strict: false - }) as any; - - return ( -
-

Executed Reversible Transactions

- - {block && ( -
- In block - - {block} - -
- )} - - {accountId && ( -
- By - - {accountId} - -
- )} -
- ); -}; diff --git a/src/components/features/executed-reversible-transaction-listing/executed-reversible-transactions-stats/ExecutedReversibleTransactionsStats.tsx b/src/components/features/executed-reversible-transaction-listing/executed-reversible-transactions-stats/ExecutedReversibleTransactionsStats.tsx deleted file mode 100644 index bd3ce91..0000000 --- a/src/components/features/executed-reversible-transaction-listing/executed-reversible-transactions-stats/ExecutedReversibleTransactionsStats.tsx +++ /dev/null @@ -1,67 +0,0 @@ -import { useSearch } from '@tanstack/react-router'; -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'; - -export interface ExecutedReversibleTransactionsStatsProps {} - -export const ExecutedReversibleTransactionsStats: React.FC< - ExecutedReversibleTransactionsStatsProps -> = () => { - const api = useApiClient(); - const { accountId, block } = useSearch({ - strict: false - }) as any; - - const shouldHide = !!(accountId || block); - - const { loading, data, error } = - api.executedReversibleTransactions.useGetStats({ - pollInterval: DATA_POOL_INTERVAL, - skip: shouldHide - }); - - if (shouldHide) return null; - - const success = !loading && !error; - - return ( - - - - -

Total Executed Transactions

-
-
- - {success &&

{data?.allTime.total_executed_transfers}

} - {loading && } - {error && } -
-
- - - - -

Recent Executed Transactions (24H)

-
-
- - {success &&

{data?.last24Hour.aggregate.totalCount}

} - {loading && } - {error && } -
-
-
- ); -}; diff --git a/src/components/features/executed-reversible-transaction-listing/executed-reversible-transactions-table/ExecutedReversibleTransactionsTable.tsx b/src/components/features/executed-reversible-transaction-listing/executed-reversible-transactions-table/ExecutedReversibleTransactionsTable.tsx deleted file mode 100644 index 6f75c55..0000000 --- a/src/components/features/executed-reversible-transaction-listing/executed-reversible-transactions-table/ExecutedReversibleTransactionsTable.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import React from 'react'; - -import { DataTable } from '@/components/ui/composites/data-table/DataTable'; -import { FetchError } from '@/components/ui/composites/fetch-error/FetchError'; - -import { useExecutedReversibleTransactionsTable } from './hook'; - -export const ExecutedReversibleTransactionsTable = () => { - const { getStatus, table, error } = useExecutedReversibleTransactionsTable(); - - return ( - - }} - withControls - /> - ); -}; diff --git a/src/components/features/executed-reversible-transaction-listing/executed-reversible-transactions-table/hook.tsx b/src/components/features/executed-reversible-transaction-listing/executed-reversible-transactions-table/hook.tsx deleted file mode 100644 index c51788c..0000000 --- a/src/components/features/executed-reversible-transaction-listing/executed-reversible-transactions-table/hook.tsx +++ /dev/null @@ -1,107 +0,0 @@ -import { useSearch } from '@tanstack/react-router'; -import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { useEffect, useMemo, useState } from 'react'; - -import useApiClient from '@/api'; -import { EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS } from '@/components/common/table-columns/EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS'; -import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; -import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import type { ExecutedReversibleTransactionSorts } from '@/constants/query-sorts'; -import { useOrderBy } from '@/hooks/useOrderBy'; -import { useTableState } from '@/hooks/useTableState'; -import type { ExecutedReversibleTransaction } from '@/schemas'; -import { transformSortLiteral } from '@/utils/transform-sort'; - -export const useExecutedReversibleTransactionsTable = () => { - const api = useApiClient(); - const { accountId, block } = useSearch({ - strict: false - }) as any; - - const { - orderBy, - limit, - currentPageIndex, - handleChangeSorting, - handleChangePagination, - paginationValue - } = useTableState(null, QUERY_DEFAULT_LIMIT); - - const orderByObject = useOrderBy( - orderBy ?? '' - ); - const sortingValue = transformSortLiteral(orderBy); - - const { - loading, - data, - error: fetchError - } = api.executedReversibleTransactions.useGetAll({ - pollInterval: DATA_POOL_INTERVAL, - variables: { - orderBy: orderByObject, - limit, - offset: currentPageIndex * limit, - ...(accountId && { - where: { - OR: [ - { scheduledTransfer: { from: { id_eq: accountId } } }, - { scheduledTransfer: { to: { id_eq: accountId } } } - ] - } - }), - ...(block && { - where: { - block: { height_eq: Number(block) } - } - }) - } - }); - - const columns = useMemo(() => EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS, []); - const [rowCount, setRowCount] = useState( - data?.meta.aggregate.totalCount ?? 0 - ); - - const table = useReactTable({ - data: data?.executedReversibleTransactions ?? [], - 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: fetchError - }; -}; diff --git a/src/components/features/landing/cancelled-reversible-transactions-table/CancelledReversibleTransactionsTable.tsx b/src/components/features/landing/cancelled-reversible-transactions-table/CancelledReversibleTransactionsTable.tsx deleted file mode 100644 index 14ae0a5..0000000 --- a/src/components/features/landing/cancelled-reversible-transactions-table/CancelledReversibleTransactionsTable.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import { DataTable } from '@/components/ui/composites/data-table/DataTable'; -import { FetchError } from '@/components/ui/composites/fetch-error/FetchError'; - -import { useCancelledReversibleTransactionsTable } from './hook'; - -export const CancelledReversibleTransactionsTable = () => { - const { getStatus, table, error } = useCancelledReversibleTransactionsTable(); - - return ( - - }} - /> - ); -}; diff --git a/src/components/features/landing/cancelled-reversible-transactions-table/hook.tsx b/src/components/features/landing/cancelled-reversible-transactions-table/hook.tsx deleted file mode 100644 index 44864f9..0000000 --- a/src/components/features/landing/cancelled-reversible-transactions-table/hook.tsx +++ /dev/null @@ -1,51 +0,0 @@ -import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { useMemo } from 'react'; - -import useApiClient from '@/api'; -import { CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS } from '@/components/common/table-columns/CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS'; -import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; -import type { CancelledReversibleTransaction } from '@/schemas'; - -export const useCancelledReversibleTransactionsTable = () => { - const api = useApiClient(); - const { - loading, - data, - error: fetchError - } = api.cancelledReversibleTransactions.useGetRecent({ - pollInterval: DATA_POOL_INTERVAL - }); - const columns = useMemo(() => CANCELLED_REVERSIBLE_TRANSACTION_COLUMNS, []); - - const table = useReactTable({ - data: data?.cancelledReversibleTransactions ?? [], - columns, - getCoreRowModel: getCoreRowModel(), - enableSorting: false, - rowCount: data?.cancelledReversibleTransactions?.length ?? 0, - manualPagination: true, - manualSorting: 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'; - } - }; - - return { - table, - getStatus, - error - }; -}; diff --git a/src/components/features/landing/error-events-table/ErrorEventsTable.tsx b/src/components/features/landing/error-events-table/ErrorEventsTable.tsx deleted file mode 100644 index e2227d0..0000000 --- a/src/components/features/landing/error-events-table/ErrorEventsTable.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import { DataTable } from '@/components/ui/composites/data-table/DataTable'; -import { FetchError } from '@/components/ui/composites/fetch-error/FetchError'; - -import { useErrorEventsTable } from './hook'; - -export const ErrorEventsTable = () => { - const { getStatus, table, error } = useErrorEventsTable(); - - return ( - - }} - /> - ); -}; diff --git a/src/components/features/landing/error-events-table/hook.tsx b/src/components/features/landing/error-events-table/hook.tsx deleted file mode 100644 index 76e6cf3..0000000 --- a/src/components/features/landing/error-events-table/hook.tsx +++ /dev/null @@ -1,53 +0,0 @@ -import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { useMemo } from 'react'; - -import useApiClient from '@/api'; -import { ERROR_EVENT_COLUMNS } from '@/components/common/table-columns/ERROR_EVENT_COLUMNS'; -import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; -import type { ErrorEvent } from '@/schemas'; - -export const useErrorEventsTable = () => { - const api = useApiClient(); - - const { - loading, - data, - error: fetchError - } = api.errors.useGetRecent({ - pollInterval: DATA_POOL_INTERVAL - }); - - const errorEventColumns = useMemo(() => ERROR_EVENT_COLUMNS, []); - - const table = useReactTable({ - data: data?.errorEvents ?? [], - columns: errorEventColumns, - getCoreRowModel: getCoreRowModel(), - enableSorting: false, - rowCount: data?.errorEvents?.length ?? 0, - manualPagination: true, - manualSorting: 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'; - } - }; - - return { - table, - getStatus, - error - }; -}; diff --git a/src/components/features/landing/executed-reversible-transactions-table/ExecutedReversibleTransactionsTable.tsx b/src/components/features/landing/executed-reversible-transactions-table/ExecutedReversibleTransactionsTable.tsx deleted file mode 100644 index 3556f4a..0000000 --- a/src/components/features/landing/executed-reversible-transactions-table/ExecutedReversibleTransactionsTable.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import { DataTable } from '@/components/ui/composites/data-table/DataTable'; -import { FetchError } from '@/components/ui/composites/fetch-error/FetchError'; - -import { useExecutedReversibleTransactionsTable } from './hook'; - -export const ExecutedReversibleTransactionsTable = () => { - const { getStatus, table, error } = useExecutedReversibleTransactionsTable(); - - return ( - - }} - /> - ); -}; diff --git a/src/components/features/landing/executed-reversible-transactions-table/hook.tsx b/src/components/features/landing/executed-reversible-transactions-table/hook.tsx deleted file mode 100644 index 09f1cf9..0000000 --- a/src/components/features/landing/executed-reversible-transactions-table/hook.tsx +++ /dev/null @@ -1,51 +0,0 @@ -import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { useMemo } from 'react'; - -import useApiClient from '@/api'; -import { EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS } from '@/components/common/table-columns/EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS'; -import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; -import type { ExecutedReversibleTransaction } from '@/schemas'; - -export const useExecutedReversibleTransactionsTable = () => { - const api = useApiClient(); - const { - loading, - data, - error: fetchError - } = api.executedReversibleTransactions.useGetRecent({ - pollInterval: DATA_POOL_INTERVAL - }); - const columns = useMemo(() => EXECUTED_REVERSIBLE_TRANSACTION_COLUMNS, []); - - const table = useReactTable({ - data: data?.executedReversibleTransactions ?? [], - columns, - getCoreRowModel: getCoreRowModel(), - enableSorting: false, - rowCount: data?.executedReversibleTransactions?.length ?? 0, - manualPagination: true, - manualSorting: 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'; - } - }; - - return { - table, - getStatus, - error - }; -}; diff --git a/src/components/features/landing/high-security-sets-table/HighSecuritySetsTable.tsx b/src/components/features/landing/high-security-sets-table/HighSecuritySetsTable.tsx deleted file mode 100644 index 68a474e..0000000 --- a/src/components/features/landing/high-security-sets-table/HighSecuritySetsTable.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import { DataTable } from '@/components/ui/composites/data-table/DataTable'; -import { FetchError } from '@/components/ui/composites/fetch-error/FetchError'; - -import { useHighSecuritySetsTable } from './hook'; - -export const HighSecuritySetsTable = () => { - const { getStatus, table, error } = useHighSecuritySetsTable(); - - return ( - - }} - /> - ); -}; diff --git a/src/components/features/landing/high-security-sets-table/hook.tsx b/src/components/features/landing/high-security-sets-table/hook.tsx deleted file mode 100644 index c63cc09..0000000 --- a/src/components/features/landing/high-security-sets-table/hook.tsx +++ /dev/null @@ -1,51 +0,0 @@ -import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { useMemo } from 'react'; - -import useApiClient from '@/api'; -import { HIGH_SECURITY_SET_COLUMNS } from '@/components/common/table-columns/HIGH_SECURITY_SET_COLUMNS'; -import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; -import type { HighSecuritySet } from '@/schemas'; - -export const useHighSecuritySetsTable = () => { - const api = useApiClient(); - const { - loading, - data, - error: fetchError - } = api.highSecuritySets.useGetRecent({ - pollInterval: DATA_POOL_INTERVAL - }); - const highSecuritySetColumns = useMemo(() => HIGH_SECURITY_SET_COLUMNS, []); - - const table = useReactTable({ - data: data?.highSecuritySets ?? [], - columns: highSecuritySetColumns, - getCoreRowModel: getCoreRowModel(), - enableSorting: false, - rowCount: data?.highSecuritySets?.length ?? 0, - manualPagination: true, - manualSorting: 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'; - } - }; - - return { - table, - getStatus, - error - }; -}; diff --git a/src/components/features/landing/miner-rewards-table/MinerRewardsTable.tsx b/src/components/features/landing/miner-rewards-table/MinerRewardsTable.tsx deleted file mode 100644 index 4ee9a0b..0000000 --- a/src/components/features/landing/miner-rewards-table/MinerRewardsTable.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import { DataTable } from '@/components/ui/composites/data-table/DataTable'; -import { FetchError } from '@/components/ui/composites/fetch-error/FetchError'; - -import { useMinerRewardsTable } from './hook'; - -export const MinerRewardsTable = () => { - const { getStatus, table, error } = useMinerRewardsTable(); - - return ( - - }} - /> - ); -}; diff --git a/src/components/features/landing/miner-rewards-table/hook.tsx b/src/components/features/landing/miner-rewards-table/hook.tsx deleted file mode 100644 index a588ee0..0000000 --- a/src/components/features/landing/miner-rewards-table/hook.tsx +++ /dev/null @@ -1,51 +0,0 @@ -import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { useMemo } from 'react'; - -import useApiClient from '@/api'; -import { MINER_REWARD_COLUMNS } from '@/components/common/table-columns/MINER_REWARD_COLUMNS'; -import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; -import type { MinerReward } from '@/schemas'; - -export const useMinerRewardsTable = () => { - const api = useApiClient(); - const { - loading, - data, - error: fetchError - } = api.minerRewards.useGetRecent({ - pollInterval: DATA_POOL_INTERVAL - }); - const minerRewardColumns = useMemo(() => MINER_REWARD_COLUMNS, []); - - const table = useReactTable({ - data: data?.minerRewards ?? [], - columns: minerRewardColumns, - getCoreRowModel: getCoreRowModel(), - enableSorting: false, - rowCount: data?.minerRewards?.length ?? 0, - manualPagination: true, - manualSorting: 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'; - } - }; - - return { - table, - getStatus, - error - }; -}; diff --git a/src/components/features/landing/recent-cancelled-reversible-transactions/RecentCancelledReversibleTransactions.tsx b/src/components/features/landing/recent-cancelled-reversible-transactions/RecentCancelledReversibleTransactions.tsx deleted file mode 100644 index b0a8dcb..0000000 --- a/src/components/features/landing/recent-cancelled-reversible-transactions/RecentCancelledReversibleTransactions.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { Link } from '@tanstack/react-router'; - -import { Button } from '@/components/ui/button'; -import { ContentContainer } from '@/components/ui/content-container'; -import { RESOURCES } from '@/constants/resources'; - -import { CancelledReversibleTransactionsTable } from '../cancelled-reversible-transactions-table/CancelledReversibleTransactionsTable'; - -export const RecentCancelledReversibleTransactions = () => { - return ( - -

Recent Cancelled Reversible Transactions

- - - - -
- ); -}; diff --git a/src/components/features/landing/recent-error-events/RecentErrorEvents.tsx b/src/components/features/landing/recent-error-events/RecentErrorEvents.tsx deleted file mode 100644 index 703618f..0000000 --- a/src/components/features/landing/recent-error-events/RecentErrorEvents.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { Link } from '@tanstack/react-router'; - -import { Button } from '@/components/ui/button'; -import { ContentContainer } from '@/components/ui/content-container'; -import { RESOURCES } from '@/constants/resources'; - -import { ErrorEventsTable } from '../error-events-table/ErrorEventsTable'; - -export const RecentErrorEvents = () => { - return ( - -

Recent Error Events

- - - - -
- ); -}; diff --git a/src/components/features/landing/recent-error-events/RecentTransactions.tsx b/src/components/features/landing/recent-error-events/RecentTransactions.tsx deleted file mode 100644 index 4958237..0000000 --- a/src/components/features/landing/recent-error-events/RecentTransactions.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { Link } from '@tanstack/react-router'; - -import { Button } from '@/components/ui/button'; -import { ContentContainer } from '@/components/ui/content-container'; -import { RESOURCES } from '@/constants/resources'; - -import { TransactionsTable } from '../transactions-table/TransactionsTable'; - -export const RecentTransactions = () => { - return ( - -

Recent Immediate Transactions

- - - - -
- ); -}; diff --git a/src/components/features/landing/recent-executed-reversible-transactions/RecentExecutedReversibleTransactions.tsx b/src/components/features/landing/recent-executed-reversible-transactions/RecentExecutedReversibleTransactions.tsx deleted file mode 100644 index bd5d874..0000000 --- a/src/components/features/landing/recent-executed-reversible-transactions/RecentExecutedReversibleTransactions.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { Link } from '@tanstack/react-router'; - -import { Button } from '@/components/ui/button'; -import { ContentContainer } from '@/components/ui/content-container'; -import { RESOURCES } from '@/constants/resources'; - -import { ExecutedReversibleTransactionsTable } from '../executed-reversible-transactions-table/ExecutedReversibleTransactionsTable'; - -export const RecentExecutedReversibleTransactions = () => { - return ( - -

Recent Executed Reversible Transactions

- - - - -
- ); -}; diff --git a/src/components/features/landing/recent-high-security-sets/RecentHighSecuritySets.tsx b/src/components/features/landing/recent-high-security-sets/RecentHighSecuritySets.tsx deleted file mode 100644 index d38e4d5..0000000 --- a/src/components/features/landing/recent-high-security-sets/RecentHighSecuritySets.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { Link } from '@tanstack/react-router'; - -import { Button } from '@/components/ui/button'; -import { ContentContainer } from '@/components/ui/content-container'; -import { RESOURCES } from '@/constants/resources'; - -import { HighSecuritySetsTable } from '../high-security-sets-table/HighSecuritySetsTable'; - -export const RecentHighSecuritySets = () => { - return ( - -

Recent High Security Sets

- - - - -
- ); -}; diff --git a/src/components/features/landing/recent-miner-rewards/RecentMinerRewards.tsx b/src/components/features/landing/recent-miner-rewards/RecentMinerRewards.tsx deleted file mode 100644 index 4965f92..0000000 --- a/src/components/features/landing/recent-miner-rewards/RecentMinerRewards.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { Link } from '@tanstack/react-router'; - -import { Button } from '@/components/ui/button'; -import { ContentContainer } from '@/components/ui/content-container'; -import { RESOURCES } from '@/constants/resources'; - -import { MinerRewardsTable } from '../miner-rewards-table/MinerRewardsTable'; - -export const RecentMinerRewards = () => { - return ( - -

Recent Miner Rewards

- - - - -
- ); -}; diff --git a/src/components/features/landing/recent-scheduled-reversible-transactions/RecentScheduledReversibleTransactions.tsx b/src/components/features/landing/recent-scheduled-reversible-transactions/RecentScheduledReversibleTransactions.tsx deleted file mode 100644 index e99db81..0000000 --- a/src/components/features/landing/recent-scheduled-reversible-transactions/RecentScheduledReversibleTransactions.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { Link } from '@tanstack/react-router'; - -import { Button } from '@/components/ui/button'; -import { ContentContainer } from '@/components/ui/content-container'; -import { RESOURCES } from '@/constants/resources'; - -import { ScheduledReversibleTransactionsTable } from '../scheduled-reversible-transactions-table/ScheduledReversibleTransactionsTable'; - -export const RecentScheduledReversibleTransactions = () => { - return ( - -

Recent Scheduled Reversible Transactions

- - - - -
- ); -}; diff --git a/src/components/features/landing/scheduled-reversible-transactions-table/ScheduledReversibleTransactionsTable.tsx b/src/components/features/landing/scheduled-reversible-transactions-table/ScheduledReversibleTransactionsTable.tsx deleted file mode 100644 index e96da1b..0000000 --- a/src/components/features/landing/scheduled-reversible-transactions-table/ScheduledReversibleTransactionsTable.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import { DataTable } from '@/components/ui/composites/data-table/DataTable'; -import { FetchError } from '@/components/ui/composites/fetch-error/FetchError'; - -import { useScheduledReversibleTransactionsTable } from './hook'; - -export const ScheduledReversibleTransactionsTable = () => { - const { getStatus, table, error } = useScheduledReversibleTransactionsTable(); - - return ( - - }} - /> - ); -}; diff --git a/src/components/features/landing/scheduled-reversible-transactions-table/hook.tsx b/src/components/features/landing/scheduled-reversible-transactions-table/hook.tsx deleted file mode 100644 index d7cfdaf..0000000 --- a/src/components/features/landing/scheduled-reversible-transactions-table/hook.tsx +++ /dev/null @@ -1,51 +0,0 @@ -import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { useMemo } from 'react'; - -import useApiClient from '@/api'; -import { SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS } from '@/components/common/table-columns/SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS'; -import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; -import type { ScheduledReversibleTransaction } from '@/schemas'; - -export const useScheduledReversibleTransactionsTable = () => { - const api = useApiClient(); - const { - loading, - data, - error: fetchError - } = api.scheduledReversibleTransactions.useGetRecent({ - pollInterval: DATA_POOL_INTERVAL - }); - const columns = useMemo(() => SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS, []); - - const table = useReactTable({ - data: data?.scheduledReversibleTransactions ?? [], - columns, - getCoreRowModel: getCoreRowModel(), - enableSorting: false, - rowCount: data?.scheduledReversibleTransactions?.length ?? 0, - manualPagination: true, - manualSorting: 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'; - } - }; - - return { - table, - getStatus, - error - }; -}; diff --git a/src/components/features/multisig-created-listing/multisig-created-heading/MultisigCreatedHeading.tsx b/src/components/features/multisig-created-listing/multisig-created-heading/MultisigCreatedHeading.tsx deleted file mode 100644 index f0fda1f..0000000 --- a/src/components/features/multisig-created-listing/multisig-created-heading/MultisigCreatedHeading.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { Link, useSearch } from '@tanstack/react-router'; -import * as React from 'react'; - -export const MultisigCreatedHeading: React.FC = () => { - const { block } = useSearch({ - strict: false - }) as { block?: string }; - - return ( -
-

Multisig Created

- {block ? ( -
- In block - - {block} - -
- ) : ( -

- A list of all multisig wallets created on the network. -

- )} -
- ); -}; diff --git a/src/components/features/multisig-created-listing/multisig-created-stats/MultisigCreatedStats.tsx b/src/components/features/multisig-created-listing/multisig-created-stats/MultisigCreatedStats.tsx deleted file mode 100644 index fb39901..0000000 --- a/src/components/features/multisig-created-listing/multisig-created-stats/MultisigCreatedStats.tsx +++ /dev/null @@ -1,66 +0,0 @@ -import { useSearch } from '@tanstack/react-router'; -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'; - -export const MultisigCreatedStats: React.FC = () => { - const api = useApiClient(); - const { block } = useSearch({ - strict: false - }) as { block?: string }; - - const shouldHide = !!block; - - const { loading, data, error } = api.multisigCreated.useGetStats({ - pollInterval: DATA_POOL_INTERVAL, - skip: shouldHide - }); - - if (shouldHide) return null; - - const success = !loading && !error; - - return ( - - - - Total Multisigs Created - - - {success && ( -

- {data?.allTime.total_multisigs_created.toLocaleString()} -

- )} - {loading && } - {error && } -
-
- - - - Recent Multisigs Created (24H) - - - {success && ( -

- {data?.last24Hour.aggregate.totalCount.toLocaleString()} -

- )} - {loading && } - {error && } -
-
-
- ); -}; diff --git a/src/components/features/multisig-proposal-listing/multisig-proposal-heading/MultisigProposalHeading.tsx b/src/components/features/multisig-proposal-listing/multisig-proposal-heading/MultisigProposalHeading.tsx deleted file mode 100644 index a831e44..0000000 --- a/src/components/features/multisig-proposal-listing/multisig-proposal-heading/MultisigProposalHeading.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import * as React from 'react'; - -export const MultisigProposalHeading: React.FC = () => ( -
-

Multisig Proposals

-

- Browse on-chain multisig proposals and their current state. -

-
-); diff --git a/src/components/features/multisig-proposal-listing/multisig-proposal-stats/MultisigProposalStats.tsx b/src/components/features/multisig-proposal-listing/multisig-proposal-stats/MultisigProposalStats.tsx deleted file mode 100644 index 8c3e6ae..0000000 --- a/src/components/features/multisig-proposal-listing/multisig-proposal-stats/MultisigProposalStats.tsx +++ /dev/null @@ -1,66 +0,0 @@ -import { useSearch } from '@tanstack/react-router'; -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'; - -export const MultisigProposalStats: React.FC = () => { - const api = useApiClient(); - const { block } = useSearch({ - strict: false - }) as { block?: string }; - - const shouldHide = !!block; - - const { loading, data, error } = api.multisigProposals.useGetStats({ - pollInterval: DATA_POOL_INTERVAL, - skip: shouldHide - }); - - if (shouldHide) return null; - - const success = !loading && !error; - - return ( - - - - Total Multisig Proposals - - - {success && ( -

- {data?.allTime.total_multisig_proposals.toLocaleString()} -

- )} - {loading && } - {error && } -
-
- - - - Recent Proposals (24H) - - - {success && ( -

- {data?.last24Hour.aggregate.totalCount.toLocaleString()} -

- )} - {loading && } - {error && } -
-
-
- ); -}; diff --git a/src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transaction-heading/ScheduledReversibleTransactionHeading.tsx b/src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transaction-heading/ScheduledReversibleTransactionHeading.tsx deleted file mode 100644 index 12b4e20..0000000 --- a/src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transaction-heading/ScheduledReversibleTransactionHeading.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import { Link, useSearch } from '@tanstack/react-router'; -import * as React from 'react'; - -export interface ScheduledReversibleTransactionHeadingProps {} - -export const ScheduledReversibleTransactionHeading: React.FC< - ScheduledReversibleTransactionHeadingProps -> = () => { - const { accountId, block } = useSearch({ - strict: false - }) as any; - - return ( -
-

Scheduled Reversible Transactions

- - {block && ( -
- In block - - {block} - -
- )} - - {accountId && ( -
- By - - {accountId} - -
- )} -
- ); -}; diff --git a/src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transactions-stats/ScheduledReversibleTransactionsStats.tsx b/src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transactions-stats/ScheduledReversibleTransactionsStats.tsx deleted file mode 100644 index ebfa73a..0000000 --- a/src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transactions-stats/ScheduledReversibleTransactionsStats.tsx +++ /dev/null @@ -1,67 +0,0 @@ -import { useSearch } from '@tanstack/react-router'; -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'; - -export interface ScheduledReversibleTransactionsStatsProps {} - -export const ScheduledReversibleTransactionsStats: React.FC< - ScheduledReversibleTransactionsStatsProps -> = () => { - const api = useApiClient(); - const { accountId, block } = useSearch({ - strict: false - }) as any; - - const shouldHide = !!(accountId || block); - - const { loading, data, error } = - api.scheduledReversibleTransactions.useGetStats({ - pollInterval: DATA_POOL_INTERVAL, - skip: shouldHide - }); - - if (shouldHide) return null; - - const success = !loading && !error; - - return ( - - - - -

Total Scheduled Transactions

-
-
- - {success &&

{data?.allTime.total_scheduled_transfers}

} - {loading && } - {error && } -
-
- - - - -

Recent Scheduled Transactions (24H)

-
-
- - {success &&

{data?.last24Hour.aggregate.totalCount}

} - {loading && } - {error && } -
-
-
- ); -}; diff --git a/src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transactions-table/ScheduledReversibleTransactionsTable.tsx b/src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transactions-table/ScheduledReversibleTransactionsTable.tsx deleted file mode 100644 index 2f27084..0000000 --- a/src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transactions-table/ScheduledReversibleTransactionsTable.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import React from 'react'; - -import { DataTable } from '@/components/ui/composites/data-table/DataTable'; -import { FetchError } from '@/components/ui/composites/fetch-error/FetchError'; - -import { useScheduledReversibleTransactionsTable } from './hook'; - -export const ScheduledReversibleTransactionsTable = () => { - const { getStatus, table, error } = useScheduledReversibleTransactionsTable(); - - return ( - - }} - withControls - /> - ); -}; diff --git a/src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transactions-table/hook.tsx b/src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transactions-table/hook.tsx deleted file mode 100644 index 2dd39b0..0000000 --- a/src/components/features/scheduled-reversible-transaction-listing/scheduled-reversible-transactions-table/hook.tsx +++ /dev/null @@ -1,104 +0,0 @@ -import { useSearch } from '@tanstack/react-router'; -import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { useEffect, useMemo, useState } from 'react'; - -import useApiClient from '@/api'; -import { SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS } from '@/components/common/table-columns/SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS'; -import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; -import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import type { ScheduledReversibleTransactionSorts } from '@/constants/query-sorts'; -import { useOrderBy } from '@/hooks/useOrderBy'; -import { useTableState } from '@/hooks/useTableState'; -import type { ScheduledReversibleTransaction } from '@/schemas'; -import { transformSortLiteral } from '@/utils/transform-sort'; - -export const useScheduledReversibleTransactionsTable = () => { - const api = useApiClient(); - const { accountId, block } = useSearch({ - strict: false - }) as any; - - const { - orderBy, - limit, - currentPageIndex, - handleChangeSorting, - handleChangePagination, - paginationValue - } = useTableState(null, QUERY_DEFAULT_LIMIT); - - const orderByObject = useOrderBy( - orderBy ?? '' - ); - const sortingValue = transformSortLiteral(orderBy); - - const { - loading, - data, - error: fetchError - } = api.scheduledReversibleTransactions.useGetAll({ - pollInterval: DATA_POOL_INTERVAL, - variables: { - orderBy: orderByObject, - limit, - offset: currentPageIndex * limit, - ...(accountId && { - where: { - OR: [{ from: { id_eq: accountId } }, { to: { id_eq: accountId } }] - } - }), - ...(block && { - where: { - block: { height_eq: Number(block) } - } - }) - } - }); - - const columns = useMemo(() => SCHEDULED_REVERSIBLE_TRANSACTION_COLUMNS, []); - const [rowCount, setRowCount] = useState( - data?.meta.aggregate.totalCount ?? 0 - ); - - const table = useReactTable({ - data: data?.scheduledReversibleTransactions ?? [], - 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: fetchError - }; -}; diff --git a/src/components/features/wormhole/DepositPoolStats.tsx b/src/components/features/wormhole/DepositPoolStats.tsx deleted file mode 100644 index c12e29e..0000000 --- a/src/components/features/wormhole/DepositPoolStats.tsx +++ /dev/null @@ -1,81 +0,0 @@ -import useApiClient from '@/api'; -import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; -import { Skeleton } from '@/components/ui/skeleton'; - -export const DepositPoolStatsCard = () => { - const api = useApiClient(); - const { data, loading } = api.wormhole.useGetDepositPoolStats(); - - const stats = data?.depositPoolStatsById; - - if (loading) { - return ( - - - Deposit Pool - - -
- - -
-
-
- ); - } - - if (!stats) return null; - - // Parse buckets JSON and compute totals - let totalDeposits = 0; - let totalValue = 0; - try { - const buckets = JSON.parse(stats.buckets); - // Use bucket 0 [0, 1 DEV) as it contains all sub-DEV deposits without overlap - // Sum all buckets but avoid double-counting from overlaps by just using count from non-overlapping ranges - // Simplest: just show the raw bucket data - for (const b of buckets) { - // Only count non-overlapping contributions (first bucket that contains each deposit) - // For display purposes, sum the largest bucket's count as a rough total - if (b.count > totalDeposits) totalDeposits = b.count; - totalValue += Number(b.sumAmounts); - } - // Actually, deposits appear in multiple overlapping buckets, so just sum unique ones - // The [0, 1 DEV) bucket is non-overlapping with others for sub-DEV deposits - // For a rough total, use the sum across all non-overlapping base buckets - totalDeposits = buckets.reduce( - (sum: number, b: { count: number }) => sum + b.count, - 0 - ); - } catch { - // fallback - } - - return ( - - - Wormhole Deposit Pool - - -
-
-

- Deposits Tracked -

-

- {totalDeposits.toLocaleString()} -

-
-
-

- Last Updated -

-

- Block {stats.last_updated_block} -

-
-
-
-
- ); -}; diff --git a/src/components/features/wormhole/WormholeOutputsTable.tsx b/src/components/features/wormhole/WormholeOutputsTable.tsx deleted file mode 100644 index d5f15f2..0000000 --- a/src/components/features/wormhole/WormholeOutputsTable.tsx +++ /dev/null @@ -1,81 +0,0 @@ -import { getCoreRowModel, useReactTable } from '@tanstack/react-table'; -import { useMemo } from 'react'; - -import useApiClient from '@/api'; -import { - WORMHOLE_EXTRINSIC_COLUMNS, - type WormholeExtrinsicRow -} from '@/components/common/table-columns/WORMHOLE_OUTPUT_COLUMNS'; -import { DataTable } from '@/components/ui/composites/data-table/DataTable'; -import { FetchError } from '@/components/ui/composites/fetch-error/FetchError'; -import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; -import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import { type WormholeExtrinsicSorts } from '@/constants/query-sorts'; -import { useOrderBy } from '@/hooks/useOrderBy'; -import { useTableState } from '@/hooks/useTableState'; -import { transformSortLiteral } from '@/utils/transform-sort'; - -export const WormholeOutputsTable = () => { - const api = useApiClient(); - const { - orderBy, - limit, - currentPageIndex, - handleChangeSorting, - handleChangePagination, - paginationValue - } = useTableState('timestamp:desc', QUERY_DEFAULT_LIMIT); - - const orderByObject = useOrderBy( - orderBy ?? 'timestamp:desc' - ); - const sortingValue = transformSortLiteral(orderBy); - - const { data, loading, error } = api.wormhole.useGetAll({ - pollInterval: DATA_POOL_INTERVAL, - variables: { - orderBy: orderByObject, - limit, - offset: currentPageIndex * limit, - where: { extrinsic: { id: { _is_null: false } } } - } - }); - - const rows: WormholeExtrinsicRow[] = useMemo( - () => data?.wormholeExtrinsics ?? [], - [data] - ); - const totalCount = data?.meta?.aggregate?.totalCount ?? 0; - - const table = useReactTable({ - data: rows, - columns: WORMHOLE_EXTRINSIC_COLUMNS, - getCoreRowModel: getCoreRowModel(), - manualSorting: true, - manualPagination: true, - rowCount: totalCount, - state: { - pagination: paginationValue, - sorting: sortingValue - }, - onPaginationChange: handleChangePagination, - onSortingChange: handleChangeSorting - }); - - const getStatus = () => { - if (loading) return 'loading' as const; - if (error) return 'error' as const; - return 'success' as const; - }; - - return ( - - }} - withControls - /> - ); -}; diff --git a/src/components/ui/separator.tsx b/src/components/ui/separator.tsx deleted file mode 100644 index ab8ebf1..0000000 --- a/src/components/ui/separator.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import * as SeparatorPrimitive from '@radix-ui/react-separator'; -import * as React from 'react'; - -import { cn } from '@/lib/utils'; - -const Separator = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->( - ( - { className, orientation = 'horizontal', decorative = true, ...props }, - ref - ) => ( - - ) -); -Separator.displayName = SeparatorPrimitive.Root.displayName; - -export { Separator }; diff --git a/src/constants/query-unified-limit.ts b/src/constants/query-unified-limit.ts deleted file mode 100644 index be977fe..0000000 --- a/src/constants/query-unified-limit.ts +++ /dev/null @@ -1,3 +0,0 @@ -// Higher limit for unified transaction views that merge multiple data sources -// This allows for better client-side pagination across combined data -export const QUERY_UNIFIED_LIMIT = 100; diff --git a/src/decorators/WithProviders.tsx b/src/decorators/WithProviders.tsx deleted file mode 100644 index 4e1ac4d..0000000 --- a/src/decorators/WithProviders.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import type { Decorator, StoryContext } from '@storybook/react-vite'; -import { NuqsAdapter } from 'nuqs/adapters/react'; - -export const WithProviders: Decorator = (Story, context: StoryContext) => { - return ( - - - - ); -}; diff --git a/src/utils/alphanumeric-cheker.ts b/src/utils/alphanumeric-cheker.ts deleted file mode 100644 index d12dc1b..0000000 --- a/src/utils/alphanumeric-cheker.ts +++ /dev/null @@ -1,19 +0,0 @@ -export const isAlphaNumeric = (str: string) => { - let code; - let i; - let len; - - for (i = 0, len = str.length; i < len; i++) { - code = str.charCodeAt(i); - if ( - !(code > 47 && code < 58) && // numeric (0-9) - !(code > 64 && code < 91) && // upper alpha (A-Z) - !(code > 96 && code < 123) - ) { - // lower alpha (a-z) - return false; - } - } - - return true; -}; diff --git a/src/utils/extract-error-msg.ts b/src/utils/extract-error-msg.ts deleted file mode 100644 index 30df55a..0000000 --- a/src/utils/extract-error-msg.ts +++ /dev/null @@ -1,20 +0,0 @@ -const extractErrMsg = ( - error: any, - query?: { meta?: { errorMessage?: string } } -): string => { - if (error.response?.data.error) { - return error.response.data.error; - } - - if (error.response?.data.errors?.[0]) { - return error.response.data.errors[0].message; - } - - if (query && query.meta?.errorMessage) { - return query.meta.errorMessage; - } - - return error.message; -}; - -export default extractErrMsg; diff --git a/svgr-index-template.cjs b/svgr-index-template.cjs deleted file mode 100644 index f3dec24..0000000 --- a/svgr-index-template.cjs +++ /dev/null @@ -1,13 +0,0 @@ -/* eslint-disable @typescript-eslint/no-require-imports */ -const path = require('path'); - -function defaultIndexTemplate(filePaths) { - const exportEntries = filePaths.map(({ path: filePath }) => { - const basename = path.basename(filePath, path.extname(filePath)); - const exportName = /^\d/.test(basename) ? `Svg${basename}` : basename; - return `export { ${exportName} } from './${basename}'`; - }); - return exportEntries.join('\n'); -} - -module.exports = defaultIndexTemplate; diff --git a/svgr-template.cjs b/svgr-template.cjs deleted file mode 100644 index dc60ed4..0000000 --- a/svgr-template.cjs +++ /dev/null @@ -1,26 +0,0 @@ -const template = (variables, { tpl }) => { - // eslint-disable-next-line no-param-reassign - variables = { - ...variables, - componentName: variables.componentName.replace('Svg', ''), - exports: variables.exports.map((ex) => ({ - ...ex, - declaration: { - ...ex.declaration, - name: ex.declaration.name.replace('Svg', '') - } - })) - }; - - return tpl` -${variables.imports}; - -${variables.interfaces}; - -export const ${variables.componentName} = (${variables.props}) => ( - ${variables.jsx} -); -`; -}; - -module.exports = template; From 1a22df948ddddc322492293c1b9942d750559490 Mon Sep 17 00:00:00 2001 From: Beast Date: Wed, 15 Jul 2026 11:07:52 +0800 Subject: [PATCH 36/36] chore: second pass clean up --- .storybook/decorators/WrapTheme.tsx | 16 +- .storybook/preview.ts | 21 +- index.html | 2 +- src/__generated__/gql.ts | 259 +- src/__generated__/graphql.ts | 13540 ++++++---------- src/api/blocks.tsx | 38 +- src/api/cancelled-reversible-transactions.tsx | 187 +- src/api/errors.tsx | 49 +- src/api/executed-reversible-transactions.tsx | 181 +- src/api/high-security-sets.tsx | 53 +- src/api/miner-rewards.tsx | 44 +- src/api/multisig-created.tsx | 30 +- src/api/multisig-deposits-claimed.tsx | 30 +- src/api/multisig-proposal-cancelled.tsx | 30 +- src/api/multisig-proposal-created.tsx | 30 +- src/api/multisig-proposal-executed.tsx | 30 +- src/api/multisig-proposal-ready.tsx | 30 +- src/api/multisig-proposal-removed.tsx | 30 +- src/api/multisig-signer-approved.tsx | 30 +- src/api/scheduled-reversible-transactions.tsx | 167 +- src/api/transactions.tsx | 159 +- src/api/wormhole.tsx | 86 +- .../search-preview/SearchPreview.tsx | 2 +- src/constants/query-sorts/index.ts | 3 - .../query-sorts/reversible-transactions.ts | 64 - src/constants/query-sorts/transactions.ts | 31 - src/constants/query-sorts/wormhole.ts | 25 - src/lib/graphql-benchmark/bootstrap.ts | 29 +- src/lib/graphql-benchmark/registry.ts | 105 - src/lib/graphql-benchmark/seed-queries.ts | 95 + src/schemas/blocks.ts | 4 - .../cancelled-reversible-transaction.ts | 24 - src/schemas/errors.ts | 4 - .../executed-reversible-transaction.ts | 24 - src/schemas/high-security-set.ts | 4 - src/schemas/miner-reward.ts | 4 - src/schemas/multisig-created.ts | 4 - src/schemas/multisig-deposits-claimed.ts | 4 - src/schemas/multisig-proposal-cancelled.ts | 4 - src/schemas/multisig-proposal-created.ts | 4 - src/schemas/multisig-proposal-executed.ts | 4 - src/schemas/multisig-proposal-ready.ts | 4 - src/schemas/multisig-proposal-removed.ts | 4 - src/schemas/multisig-signer-approved.ts | 4 - .../scheduled-reversible-transaction.ts | 24 - src/schemas/transcation.ts | 28 - src/schemas/wormhole.ts | 32 - 47 files changed, 4895 insertions(+), 10681 deletions(-) delete mode 100644 src/constants/query-sorts/reversible-transactions.ts delete mode 100644 src/constants/query-sorts/transactions.ts delete mode 100644 src/constants/query-sorts/wormhole.ts create mode 100644 src/lib/graphql-benchmark/seed-queries.ts diff --git a/.storybook/decorators/WrapTheme.tsx b/.storybook/decorators/WrapTheme.tsx index 226e9ec..241d539 100644 --- a/.storybook/decorators/WrapTheme.tsx +++ b/.storybook/decorators/WrapTheme.tsx @@ -1,16 +1,12 @@ -import type { Decorator, StoryContext } from '@storybook/react-vite'; +import type { Decorator } from '@storybook/react-vite'; import * as React from 'react'; -export const WrapTheme: Decorator = (Story, context: StoryContext) => { - const { theme } = context.globals as { theme: 'light' | 'dark' }; - +/** App is dark-only; keep Storybook in sync with `index.html` (`class="dark"`). */ +export const WrapTheme: Decorator = (Story) => { React.useEffect(() => { - if (theme === 'dark') { - document.body.classList.add('dark'); - } else { - document.body.classList.remove('dark'); - } - }, [theme]); + document.documentElement.classList.add('dark'); + document.body.classList.add('dark'); + }, []); return ; }; diff --git a/.storybook/preview.ts b/.storybook/preview.ts index fb4fd92..06847ee 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -56,27 +56,12 @@ const preview: Preview = { } }, backgrounds: { - default: 'light', - values: [ - { name: 'light', value: '#fef2f2' }, - { name: 'dark', value: '#171717' } - ] + default: 'dark', + values: [{ name: 'dark', value: '#0E0E0E' }] } }, loaders: [mswLoader], - decorators: [WrapTheme], - globalTypes: { - theme: { - name: 'theme', - description: 'Select light or dark theme', - defaultValue: 'light', - toolbar: { - icon: 'mirror', - items: ['light', 'dark'], - showName: true - } - } - } + decorators: [WrapTheme] }; export default preview; diff --git a/index.html b/index.html index cd1b074..c2aa2b9 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + diff --git a/src/__generated__/gql.ts b/src/__generated__/gql.ts index 47c6b86..088ebaa 100644 --- a/src/__generated__/gql.ts +++ b/src/__generated__/gql.ts @@ -18,69 +18,52 @@ type 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 ': 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: account_aggregate(\n where: {\n transfersFrom: { timestamp: { _gte: $startDate, _lte: $endDate } }\n }\n ) {\n aggregate {\n count\n }\n }\n\n recentlyDeposited: account_aggregate(\n where: {\n transfersTo: { timestamp: { _gte: $startDate, _lte: $endDate } }\n }\n ) {\n aggregate {\n count\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 GetRecentBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [block_order_by!]\n ) {\n blocks: block(limit: $limit, offset: $offset, order_by: $orderBy) {\n id\n hash\n height\n reward\n timestamp\n mined_by_id\n extrinsics {\n id\n }\n }\n }\n ': typeof types.GetRecentBlocksDocument; '\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 }\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 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 timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\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 meta: cancelled_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetCancelledReversibleTransactionsDocument; - '\n query GetRecentCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_reversible_transfer_order_by!]\n ) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\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 }\n ': typeof types.GetRecentCancelledReversibleTransactionsDocument; - '\n query GetCancelledReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: cancelled_reversible_transfer_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_cancelled_transfers\n }\n }\n ': typeof types.GetCancelledReversibleTransactionsStatsDocument; '\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 $startDate: timestamptz!\n $endDate: timestamptz!\n $day0Start: timestamptz!\n $day0End: timestamptz!\n $day1Start: timestamptz!\n $day1End: timestamptz!\n $day2Start: timestamptz!\n $day2End: timestamptz!\n $day3Start: timestamptz!\n $day3End: timestamptz!\n $day4Start: timestamptz!\n $day4End: timestamptz!\n $day5Start: timestamptz!\n $day5End: timestamptz!\n $day6Start: timestamptz!\n $day6End: timestamptz!\n ) {\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 last24Hour: transfer_aggregate(\n where: {\n timestamp: { _gte: $startDate, _lte: $endDate }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n count\n }\n }\n blocksDay0: block_aggregate(\n where: { timestamp: { _gte: $day0Start, _lte: $day0End } }\n ) {\n aggregate {\n count\n }\n }\n transfersDay0: transfer_aggregate(\n where: {\n timestamp: { _gte: $day0Start, _lte: $day0End }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n count\n }\n }\n activeAccountsDay0: transfer_aggregate(\n where: {\n timestamp: { _gte: $day0Start, _lte: $day0End }\n from_id: { _is_null: false }\n }\n ) {\n aggregate {\n count(columns: [from_id], distinct: true)\n }\n }\n blocksDay1: block_aggregate(\n where: { timestamp: { _gte: $day1Start, _lte: $day1End } }\n ) {\n aggregate {\n count\n }\n }\n transfersDay1: transfer_aggregate(\n where: {\n timestamp: { _gte: $day1Start, _lte: $day1End }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n count\n }\n }\n activeAccountsDay1: transfer_aggregate(\n where: {\n timestamp: { _gte: $day1Start, _lte: $day1End }\n from_id: { _is_null: false }\n }\n ) {\n aggregate {\n count(columns: [from_id], distinct: true)\n }\n }\n blocksDay2: block_aggregate(\n where: { timestamp: { _gte: $day2Start, _lte: $day2End } }\n ) {\n aggregate {\n count\n }\n }\n transfersDay2: transfer_aggregate(\n where: {\n timestamp: { _gte: $day2Start, _lte: $day2End }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n count\n }\n }\n activeAccountsDay2: transfer_aggregate(\n where: {\n timestamp: { _gte: $day2Start, _lte: $day2End }\n from_id: { _is_null: false }\n }\n ) {\n aggregate {\n count(columns: [from_id], distinct: true)\n }\n }\n blocksDay3: block_aggregate(\n where: { timestamp: { _gte: $day3Start, _lte: $day3End } }\n ) {\n aggregate {\n count\n }\n }\n transfersDay3: transfer_aggregate(\n where: {\n timestamp: { _gte: $day3Start, _lte: $day3End }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n count\n }\n }\n activeAccountsDay3: transfer_aggregate(\n where: {\n timestamp: { _gte: $day3Start, _lte: $day3End }\n from_id: { _is_null: false }\n }\n ) {\n aggregate {\n count(columns: [from_id], distinct: true)\n }\n }\n blocksDay4: block_aggregate(\n where: { timestamp: { _gte: $day4Start, _lte: $day4End } }\n ) {\n aggregate {\n count\n }\n }\n transfersDay4: transfer_aggregate(\n where: {\n timestamp: { _gte: $day4Start, _lte: $day4End }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n count\n }\n }\n activeAccountsDay4: transfer_aggregate(\n where: {\n timestamp: { _gte: $day4Start, _lte: $day4End }\n from_id: { _is_null: false }\n }\n ) {\n aggregate {\n count(columns: [from_id], distinct: true)\n }\n }\n blocksDay5: block_aggregate(\n where: { timestamp: { _gte: $day5Start, _lte: $day5End } }\n ) {\n aggregate {\n count\n }\n }\n transfersDay5: transfer_aggregate(\n where: {\n timestamp: { _gte: $day5Start, _lte: $day5End }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n count\n }\n }\n activeAccountsDay5: transfer_aggregate(\n where: {\n timestamp: { _gte: $day5Start, _lte: $day5End }\n from_id: { _is_null: false }\n }\n ) {\n aggregate {\n count(columns: [from_id], distinct: true)\n }\n }\n blocksDay6: block_aggregate(\n where: { timestamp: { _gte: $day6Start, _lte: $day6End } }\n ) {\n aggregate {\n count\n }\n }\n transfersDay6: transfer_aggregate(\n where: {\n timestamp: { _gte: $day6Start, _lte: $day6End }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n count\n }\n }\n activeAccountsDay6: transfer_aggregate(\n where: {\n timestamp: { _gte: $day6Start, _lte: $day6End }\n from_id: { _is_null: false }\n }\n ) {\n aggregate {\n count(columns: [from_id], distinct: true)\n }\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 GetRecentErrorEvents(\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 }\n ': typeof types.GetRecentErrorEventsDocument; '\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 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 timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\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 meta: executed_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetExecutedReversibleTransactionsDocument; - '\n query GetRecentExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [executed_reversible_transfer_order_by!]\n ) {\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\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 }\n ': typeof types.GetRecentExecutedReversibleTransactionsDocument; - '\n query GetExecutedReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: executed_reversible_transfer_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_executed_transfers\n }\n }\n ': typeof types.GetExecutedReversibleTransactionsStatsDocument; '\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 GetRecentHighSecuritySets(\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 }\n ': typeof types.GetRecentHighSecuritySetsDocument; '\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 GetRecentMinerRewards(\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 }\n ': typeof types.GetRecentMinerRewardsDocument; '\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 \n query GetRecentMultisigCreated(\n $limit: Int\n $orderBy: [multisig_order_by!]\n ) {\n multisigCreatedEvents: multisig(limit: $limit, order_by: $orderBy) {\n ...MultisigCreatedFields\n }\n }\n ': typeof types.GetRecentMultisigCreatedDocument; '\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 \n query GetRecentMultisigDepositsClaimed(\n $limit: Int\n $orderBy: [multisig_deposits_claimed_order_by!]\n ) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigDepositsClaimedFields\n }\n }\n ': typeof types.GetRecentMultisigDepositsClaimedDocument; '\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 \n query GetRecentMultisigProposalCancelled(\n $limit: Int\n $orderBy: [cancelled_multisig_proposal_order_by!]\n ) {\n multisigProposalCancelledEvents: cancelled_multisig_proposal(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigProposalCancelledFields\n }\n }\n ': typeof types.GetRecentMultisigProposalCancelledDocument; '\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 \n query GetRecentMultisigProposalCreated(\n $limit: Int\n $orderBy: [multisig_proposal_created_order_by!]\n ) {\n multisigProposalCreatedEvents: multisig_proposal_created(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigProposalCreatedFields\n }\n }\n ': typeof types.GetRecentMultisigProposalCreatedDocument; '\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 \n query GetRecentMultisigProposalExecuted(\n $limit: Int\n $orderBy: [executed_multisig_proposal_order_by!]\n ) {\n multisigProposalExecutedEvents: executed_multisig_proposal(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigProposalExecutedFields\n }\n }\n ': typeof types.GetRecentMultisigProposalExecutedDocument; '\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 \n query GetRecentMultisigProposalReady(\n $limit: Int\n $orderBy: [multisig_proposal_ready_order_by!]\n ) {\n multisigProposalReadyEvents: multisig_proposal_ready(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigProposalReadyFields\n }\n }\n ': typeof types.GetRecentMultisigProposalReadyDocument; '\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 \n query GetRecentMultisigProposalRemoved(\n $limit: Int\n $orderBy: [removed_multisig_proposal_order_by!]\n ) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigProposalRemovedFields\n }\n }\n ': typeof types.GetRecentMultisigProposalRemovedDocument; '\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; @@ -91,24 +74,20 @@ type 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 ': 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 \n query GetRecentMultisigSignerApproved(\n $limit: Int\n $orderBy: [multisig_signer_approved_order_by!]\n ) {\n multisigSignerApprovedEvents: multisig_signer_approved(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigSignerApprovedFields\n }\n }\n ': typeof types.GetRecentMultisigSignerApprovedDocument; '\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 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 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 meta: scheduled_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetScheduledReversibleTransactionsDocument; - '\n query GetRecentScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\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.GetRecentScheduledReversibleTransactionsDocument; - '\n query GetScheduledReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: scheduled_reversible_transfer_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_scheduled_transfers\n }\n }\n ': typeof types.GetScheduledReversibleTransactionsStatsDocument; '\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 SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: {\n _or: [\n { hash: { _ilike: $keyword } }\n { detail_id: { _ilike: $keyword } }\n { id: { _ilike: $keyword } }\n ]\n }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n accounts: account(limit: $limit, where: { id: { _ilike: $keyword } }) {\n id\n }\n blocks: block(\n limit: $limit\n where: {\n _or: [\n { hash: { _ilike: $keyword } }\n { height: { _eq: $keyword_number } }\n ]\n }\n ) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\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.SearchAllDocument; - '\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 fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n meta: transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetTransactionsDocument; - '\n query GetRecentTransactions(\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 fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetRecentTransactionsDocument; - '\n query GetTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: transfer_aggregate(\n where: {\n timestamp: { _gte: $startDate, _lte: $endDate }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_immediate_transfers\n }\n }\n ': typeof types.GetTransactionsStatsDocument; '\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 GetUnifiedTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [unified_transaction_order_by!]\n $where: unified_transaction_bool_exp\n ) {\n transactions: unified_transaction(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n type\n hash\n block {\n height\n hash\n }\n timestamp\n amount\n fee\n status\n detail_id\n from {\n id\n }\n to {\n id\n }\n }\n meta: unified_transaction_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetUnifiedTransactionsDocument; '\n query GetRecentUnifiedTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [unified_transaction_order_by!]\n ) {\n transactions: unified_transaction(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n id\n type\n hash\n block {\n height\n hash\n }\n timestamp\n amount\n fee\n status\n detail_id\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': typeof types.GetRecentUnifiedTransactionsDocument; '\n query GetUnifiedTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: unified_transaction_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: unified_transaction_aggregate {\n aggregate {\n totalCount: count\n }\n }\n }\n ': typeof types.GetUnifiedTransactionsStatsDocument; - '\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 extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n privacy_score\n privacy_label\n block {\n height\n }\n }\n meta: wormhole_extrinsic_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n': typeof types.GetWormholeExtrinsicsDocument; '\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 GetDepositPoolStats {\n depositPoolStatsById: deposit_pool_stats_by_pk(id: "global") {\n last_updated_block\n buckets\n }\n }\n': typeof types.GetDepositPoolStatsDocument; + '\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 flagEvents: accountEvents(\n where: {\n _or: [\n { high_security_set_id: { _is_null: false } }\n { multisig_id: { _is_null: false } }\n ]\n }\n limit: 20\n ) {\n highSecuritySet {\n who_id\n guardian_id\n }\n multisig_id\n }\n }\n meta: chain_stats_by_pk(id: "global") {\n totalCount: total_accounts\n }\n }\n ': @@ -119,18 +98,10 @@ const documents: Documents = { 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 GetRecentBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [block_order_by!]\n ) {\n blocks: block(limit: $limit, offset: $offset, order_by: $orderBy) {\n id\n hash\n height\n reward\n timestamp\n mined_by_id\n extrinsics {\n id\n }\n }\n }\n ': - types.GetRecentBlocksDocument, '\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 }\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 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 timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\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 meta: cancelled_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': - types.GetCancelledReversibleTransactionsDocument, - '\n query GetRecentCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_reversible_transfer_order_by!]\n ) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\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 }\n ': - types.GetRecentCancelledReversibleTransactionsDocument, - '\n query GetCancelledReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: cancelled_reversible_transfer_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_cancelled_transfers\n }\n }\n ': - types.GetCancelledReversibleTransactionsStatsDocument, '\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 $startDate: timestamptz!\n $endDate: timestamptz!\n $day0Start: timestamptz!\n $day0End: timestamptz!\n $day1Start: timestamptz!\n $day1End: timestamptz!\n $day2Start: timestamptz!\n $day2End: timestamptz!\n $day3Start: timestamptz!\n $day3End: timestamptz!\n $day4Start: timestamptz!\n $day4End: timestamptz!\n $day5Start: timestamptz!\n $day5End: timestamptz!\n $day6Start: timestamptz!\n $day6End: timestamptz!\n ) {\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 last24Hour: transfer_aggregate(\n where: {\n timestamp: { _gte: $startDate, _lte: $endDate }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n count\n }\n }\n blocksDay0: block_aggregate(\n where: { timestamp: { _gte: $day0Start, _lte: $day0End } }\n ) {\n aggregate {\n count\n }\n }\n transfersDay0: transfer_aggregate(\n where: {\n timestamp: { _gte: $day0Start, _lte: $day0End }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n count\n }\n }\n activeAccountsDay0: transfer_aggregate(\n where: {\n timestamp: { _gte: $day0Start, _lte: $day0End }\n from_id: { _is_null: false }\n }\n ) {\n aggregate {\n count(columns: [from_id], distinct: true)\n }\n }\n blocksDay1: block_aggregate(\n where: { timestamp: { _gte: $day1Start, _lte: $day1End } }\n ) {\n aggregate {\n count\n }\n }\n transfersDay1: transfer_aggregate(\n where: {\n timestamp: { _gte: $day1Start, _lte: $day1End }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n count\n }\n }\n activeAccountsDay1: transfer_aggregate(\n where: {\n timestamp: { _gte: $day1Start, _lte: $day1End }\n from_id: { _is_null: false }\n }\n ) {\n aggregate {\n count(columns: [from_id], distinct: true)\n }\n }\n blocksDay2: block_aggregate(\n where: { timestamp: { _gte: $day2Start, _lte: $day2End } }\n ) {\n aggregate {\n count\n }\n }\n transfersDay2: transfer_aggregate(\n where: {\n timestamp: { _gte: $day2Start, _lte: $day2End }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n count\n }\n }\n activeAccountsDay2: transfer_aggregate(\n where: {\n timestamp: { _gte: $day2Start, _lte: $day2End }\n from_id: { _is_null: false }\n }\n ) {\n aggregate {\n count(columns: [from_id], distinct: true)\n }\n }\n blocksDay3: block_aggregate(\n where: { timestamp: { _gte: $day3Start, _lte: $day3End } }\n ) {\n aggregate {\n count\n }\n }\n transfersDay3: transfer_aggregate(\n where: {\n timestamp: { _gte: $day3Start, _lte: $day3End }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n count\n }\n }\n activeAccountsDay3: transfer_aggregate(\n where: {\n timestamp: { _gte: $day3Start, _lte: $day3End }\n from_id: { _is_null: false }\n }\n ) {\n aggregate {\n count(columns: [from_id], distinct: true)\n }\n }\n blocksDay4: block_aggregate(\n where: { timestamp: { _gte: $day4Start, _lte: $day4End } }\n ) {\n aggregate {\n count\n }\n }\n transfersDay4: transfer_aggregate(\n where: {\n timestamp: { _gte: $day4Start, _lte: $day4End }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n count\n }\n }\n activeAccountsDay4: transfer_aggregate(\n where: {\n timestamp: { _gte: $day4Start, _lte: $day4End }\n from_id: { _is_null: false }\n }\n ) {\n aggregate {\n count(columns: [from_id], distinct: true)\n }\n }\n blocksDay5: block_aggregate(\n where: { timestamp: { _gte: $day5Start, _lte: $day5End } }\n ) {\n aggregate {\n count\n }\n }\n transfersDay5: transfer_aggregate(\n where: {\n timestamp: { _gte: $day5Start, _lte: $day5End }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n count\n }\n }\n activeAccountsDay5: transfer_aggregate(\n where: {\n timestamp: { _gte: $day5Start, _lte: $day5End }\n from_id: { _is_null: false }\n }\n ) {\n aggregate {\n count(columns: [from_id], distinct: true)\n }\n }\n blocksDay6: block_aggregate(\n where: { timestamp: { _gte: $day6Start, _lte: $day6End } }\n ) {\n aggregate {\n count\n }\n }\n transfersDay6: transfer_aggregate(\n where: {\n timestamp: { _gte: $day6Start, _lte: $day6End }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n count\n }\n }\n activeAccountsDay6: transfer_aggregate(\n where: {\n timestamp: { _gte: $day6Start, _lte: $day6End }\n from_id: { _is_null: false }\n }\n ) {\n aggregate {\n count(columns: [from_id], distinct: true)\n }\n }\n }\n': @@ -139,24 +110,14 @@ const documents: Documents = { 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 GetRecentErrorEvents(\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 }\n ': - types.GetRecentErrorEventsDocument, '\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 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 timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\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 meta: executed_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': - types.GetExecutedReversibleTransactionsDocument, - '\n query GetRecentExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [executed_reversible_transfer_order_by!]\n ) {\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\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 }\n ': - types.GetRecentExecutedReversibleTransactionsDocument, - '\n query GetExecutedReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: executed_reversible_transfer_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_executed_transfers\n }\n }\n ': - types.GetExecutedReversibleTransactionsStatsDocument, '\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 GetRecentHighSecuritySets(\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 }\n ': - types.GetRecentHighSecuritySetsDocument, '\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 ': @@ -169,8 +130,6 @@ const documents: Documents = { 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 GetRecentMinerRewards(\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 }\n ': - types.GetRecentMinerRewardsDocument, '\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 ': @@ -179,8 +138,6 @@ const documents: Documents = { 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 \n query GetRecentMultisigCreated(\n $limit: Int\n $orderBy: [multisig_order_by!]\n ) {\n multisigCreatedEvents: multisig(limit: $limit, order_by: $orderBy) {\n ...MultisigCreatedFields\n }\n }\n ': - types.GetRecentMultisigCreatedDocument, '\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 ': @@ -191,8 +148,6 @@ const documents: Documents = { 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 \n query GetRecentMultisigDepositsClaimed(\n $limit: Int\n $orderBy: [multisig_deposits_claimed_order_by!]\n ) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigDepositsClaimedFields\n }\n }\n ': - types.GetRecentMultisigDepositsClaimedDocument, '\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 ': @@ -201,8 +156,6 @@ const documents: Documents = { 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 \n query GetRecentMultisigProposalCancelled(\n $limit: Int\n $orderBy: [cancelled_multisig_proposal_order_by!]\n ) {\n multisigProposalCancelledEvents: cancelled_multisig_proposal(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigProposalCancelledFields\n }\n }\n ': - types.GetRecentMultisigProposalCancelledDocument, '\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 ': @@ -213,8 +166,6 @@ const documents: Documents = { 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 \n query GetRecentMultisigProposalCreated(\n $limit: Int\n $orderBy: [multisig_proposal_created_order_by!]\n ) {\n multisigProposalCreatedEvents: multisig_proposal_created(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigProposalCreatedFields\n }\n }\n ': - types.GetRecentMultisigProposalCreatedDocument, '\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 ': @@ -223,8 +174,6 @@ const documents: Documents = { 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 \n query GetRecentMultisigProposalExecuted(\n $limit: Int\n $orderBy: [executed_multisig_proposal_order_by!]\n ) {\n multisigProposalExecutedEvents: executed_multisig_proposal(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigProposalExecutedFields\n }\n }\n ': - types.GetRecentMultisigProposalExecutedDocument, '\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 ': @@ -233,8 +182,6 @@ const documents: Documents = { 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 \n query GetRecentMultisigProposalReady(\n $limit: Int\n $orderBy: [multisig_proposal_ready_order_by!]\n ) {\n multisigProposalReadyEvents: multisig_proposal_ready(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigProposalReadyFields\n }\n }\n ': - types.GetRecentMultisigProposalReadyDocument, '\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 ': @@ -243,8 +190,6 @@ const documents: Documents = { 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 \n query GetRecentMultisigProposalRemoved(\n $limit: Int\n $orderBy: [removed_multisig_proposal_order_by!]\n ) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigProposalRemovedFields\n }\n }\n ': - types.GetRecentMultisigProposalRemovedDocument, '\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 ': @@ -265,28 +210,14 @@ const documents: Documents = { 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 \n query GetRecentMultisigSignerApproved(\n $limit: Int\n $orderBy: [multisig_signer_approved_order_by!]\n ) {\n multisigSignerApprovedEvents: multisig_signer_approved(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigSignerApprovedFields\n }\n }\n ': - types.GetRecentMultisigSignerApprovedDocument, '\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 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 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 meta: scheduled_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': - types.GetScheduledReversibleTransactionsDocument, - '\n query GetRecentScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\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.GetRecentScheduledReversibleTransactionsDocument, - '\n query GetScheduledReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: scheduled_reversible_transfer_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_scheduled_transfers\n }\n }\n ': - types.GetScheduledReversibleTransactionsStatsDocument, '\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 SearchAll($keyword: String, $keyword_number: Int, $limit: Int) {\n transactions: unified_transaction(\n limit: $limit\n where: {\n _or: [\n { hash: { _ilike: $keyword } }\n { detail_id: { _ilike: $keyword } }\n { id: { _ilike: $keyword } }\n ]\n }\n ) {\n id\n type\n hash\n detail_id\n block {\n height\n hash\n }\n }\n accounts: account(limit: $limit, where: { id: { _ilike: $keyword } }) {\n id\n }\n blocks: block(\n limit: $limit\n where: {\n _or: [\n { hash: { _ilike: $keyword } }\n { height: { _eq: $keyword_number } }\n ]\n }\n ) {\n height\n }\n highSecuritySets: high_security_set(\n limit: $limit\n where: { extrinsic: { id: { _ilike: $keyword } } }\n ) {\n extrinsic {\n id\n pallet\n call\n }\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.SearchAllDocument, - '\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 fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n meta: transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': - types.GetTransactionsDocument, - '\n query GetRecentTransactions(\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 fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ': - types.GetRecentTransactionsDocument, - '\n query GetTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: transfer_aggregate(\n where: {\n timestamp: { _gte: $startDate, _lte: $endDate }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_immediate_transfers\n }\n }\n ': - types.GetTransactionsStatsDocument, '\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 GetUnifiedTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [unified_transaction_order_by!]\n $where: unified_transaction_bool_exp\n ) {\n transactions: unified_transaction(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n type\n hash\n block {\n height\n hash\n }\n timestamp\n amount\n fee\n status\n detail_id\n from {\n id\n }\n to {\n id\n }\n }\n meta: unified_transaction_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ': @@ -295,12 +226,18 @@ const documents: Documents = { types.GetRecentUnifiedTransactionsDocument, '\n query GetUnifiedTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: unified_transaction_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: unified_transaction_aggregate {\n aggregate {\n totalCount: count\n }\n }\n }\n ': types.GetUnifiedTransactionsStatsDocument, - '\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 extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n privacy_score\n privacy_label\n block {\n height\n }\n }\n meta: wormhole_extrinsic_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n': - types.GetWormholeExtrinsicsDocument, '\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 GetDepositPoolStats {\n depositPoolStatsById: deposit_pool_stats_by_pk(id: "global") {\n last_updated_block\n buckets\n }\n }\n': - types.GetDepositPoolStatsDocument + '\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 }; /** @@ -341,12 +278,6 @@ export function gql( 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 GetRecentBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [block_order_by!]\n ) {\n blocks: block(limit: $limit, offset: $offset, order_by: $orderBy) {\n id\n hash\n height\n reward\n timestamp\n mined_by_id\n extrinsics {\n id\n }\n }\n }\n ' -): (typeof documents)['\n query GetRecentBlocks(\n $limit: Int\n $offset: Int\n $orderBy: [block_order_by!]\n ) {\n blocks: block(limit: $limit, offset: $offset, order_by: $orderBy) {\n id\n hash\n height\n reward\n timestamp\n mined_by_id\n extrinsics {\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. */ @@ -359,24 +290,6 @@ export function gql( 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 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 timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\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 meta: cancelled_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\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 timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\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 meta: cancelled_reversible_transfer_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 GetRecentCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_reversible_transfer_order_by!]\n ) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\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 }\n ' -): (typeof documents)['\n query GetRecentCancelledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [cancelled_reversible_transfer_order_by!]\n ) {\n cancelledReversibleTransactions: cancelled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n timestamp\n tx_id\n block {\n height\n }\n cancelledBy {\n id\n }\n scheduledTransfer {\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 }\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 GetCancelledReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: cancelled_reversible_transfer_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_cancelled_transfers\n }\n }\n ' -): (typeof documents)['\n query GetCancelledReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: cancelled_reversible_transfer_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_cancelled_transfers\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ @@ -401,12 +314,6 @@ export function gql( 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 GetRecentErrorEvents(\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 }\n ' -): (typeof documents)['\n query GetRecentErrorEvents(\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 }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ @@ -419,24 +326,6 @@ export function gql( 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 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 timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\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 meta: executed_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\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 timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\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 meta: executed_reversible_transfer_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 GetRecentExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [executed_reversible_transfer_order_by!]\n ) {\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\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 }\n ' -): (typeof documents)['\n query GetRecentExecutedReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [executed_reversible_transfer_order_by!]\n ) {\n executedReversibleTransactions: executed_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n timestamp\n tx_id\n block {\n height\n }\n scheduledTransfer {\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 }\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 GetExecutedReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: executed_reversible_transfer_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_executed_transfers\n }\n }\n ' -): (typeof documents)['\n query GetExecutedReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: executed_reversible_transfer_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_executed_transfers\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ @@ -449,12 +338,6 @@ export function gql( 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 GetRecentHighSecuritySets(\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 }\n ' -): (typeof documents)['\n query GetRecentHighSecuritySets(\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 }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ @@ -491,12 +374,6 @@ export function gql( 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 GetRecentMinerRewards(\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 }\n ' -): (typeof documents)['\n query GetRecentMinerRewards(\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 }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ @@ -521,12 +398,6 @@ export function gql( 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 \n query GetRecentMultisigCreated(\n $limit: Int\n $orderBy: [multisig_order_by!]\n ) {\n multisigCreatedEvents: multisig(limit: $limit, order_by: $orderBy) {\n ...MultisigCreatedFields\n }\n }\n ' -): (typeof documents)['\n \n query GetRecentMultisigCreated(\n $limit: Int\n $orderBy: [multisig_order_by!]\n ) {\n multisigCreatedEvents: multisig(limit: $limit, order_by: $orderBy) {\n ...MultisigCreatedFields\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ @@ -557,12 +428,6 @@ export function gql( 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 \n query GetRecentMultisigDepositsClaimed(\n $limit: Int\n $orderBy: [multisig_deposits_claimed_order_by!]\n ) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigDepositsClaimedFields\n }\n }\n ' -): (typeof documents)['\n \n query GetRecentMultisigDepositsClaimed(\n $limit: Int\n $orderBy: [multisig_deposits_claimed_order_by!]\n ) {\n multisigDepositsClaimedEvents: multisig_deposits_claimed(\n limit: $limit\n order_by: $orderBy\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. */ @@ -587,12 +452,6 @@ export function gql( 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 \n query GetRecentMultisigProposalCancelled(\n $limit: Int\n $orderBy: [cancelled_multisig_proposal_order_by!]\n ) {\n multisigProposalCancelledEvents: cancelled_multisig_proposal(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigProposalCancelledFields\n }\n }\n ' -): (typeof documents)['\n \n query GetRecentMultisigProposalCancelled(\n $limit: Int\n $orderBy: [cancelled_multisig_proposal_order_by!]\n ) {\n multisigProposalCancelledEvents: cancelled_multisig_proposal(\n limit: $limit\n order_by: $orderBy\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. */ @@ -623,12 +482,6 @@ export function gql( 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 \n query GetRecentMultisigProposalCreated(\n $limit: Int\n $orderBy: [multisig_proposal_created_order_by!]\n ) {\n multisigProposalCreatedEvents: multisig_proposal_created(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigProposalCreatedFields\n }\n }\n ' -): (typeof documents)['\n \n query GetRecentMultisigProposalCreated(\n $limit: Int\n $orderBy: [multisig_proposal_created_order_by!]\n ) {\n multisigProposalCreatedEvents: multisig_proposal_created(\n limit: $limit\n order_by: $orderBy\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. */ @@ -653,12 +506,6 @@ export function gql( 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 \n query GetRecentMultisigProposalExecuted(\n $limit: Int\n $orderBy: [executed_multisig_proposal_order_by!]\n ) {\n multisigProposalExecutedEvents: executed_multisig_proposal(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigProposalExecutedFields\n }\n }\n ' -): (typeof documents)['\n \n query GetRecentMultisigProposalExecuted(\n $limit: Int\n $orderBy: [executed_multisig_proposal_order_by!]\n ) {\n multisigProposalExecutedEvents: executed_multisig_proposal(\n limit: $limit\n order_by: $orderBy\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. */ @@ -683,12 +530,6 @@ export function gql( 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 \n query GetRecentMultisigProposalReady(\n $limit: Int\n $orderBy: [multisig_proposal_ready_order_by!]\n ) {\n multisigProposalReadyEvents: multisig_proposal_ready(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigProposalReadyFields\n }\n }\n ' -): (typeof documents)['\n \n query GetRecentMultisigProposalReady(\n $limit: Int\n $orderBy: [multisig_proposal_ready_order_by!]\n ) {\n multisigProposalReadyEvents: multisig_proposal_ready(\n limit: $limit\n order_by: $orderBy\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. */ @@ -713,12 +554,6 @@ export function gql( 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 \n query GetRecentMultisigProposalRemoved(\n $limit: Int\n $orderBy: [removed_multisig_proposal_order_by!]\n ) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigProposalRemovedFields\n }\n }\n ' -): (typeof documents)['\n \n query GetRecentMultisigProposalRemoved(\n $limit: Int\n $orderBy: [removed_multisig_proposal_order_by!]\n ) {\n multisigProposalRemovedEvents: removed_multisig_proposal(\n limit: $limit\n order_by: $orderBy\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. */ @@ -779,12 +614,6 @@ export function gql( 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 \n query GetRecentMultisigSignerApproved(\n $limit: Int\n $orderBy: [multisig_signer_approved_order_by!]\n ) {\n multisigSignerApprovedEvents: multisig_signer_approved(\n limit: $limit\n order_by: $orderBy\n ) {\n ...MultisigSignerApprovedFields\n }\n }\n ' -): (typeof documents)['\n \n query GetRecentMultisigSignerApproved(\n $limit: Int\n $orderBy: [multisig_signer_approved_order_by!]\n ) {\n multisigSignerApprovedEvents: multisig_signer_approved(\n limit: $limit\n order_by: $orderBy\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. */ @@ -797,24 +626,6 @@ export function gql( 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 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 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 meta: scheduled_reversible_transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\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 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 meta: scheduled_reversible_transfer_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 GetRecentScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\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 GetRecentScheduledReversibleTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [scheduled_reversible_transfer_order_by!]\n ) {\n scheduledReversibleTransactions: scheduled_reversible_transfer(\n limit: $limit\n offset: $offset\n order_by: $orderBy\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 GetScheduledReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: scheduled_reversible_transfer_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_scheduled_transfers\n }\n }\n ' -): (typeof documents)['\n query GetScheduledReversibleTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: scheduled_reversible_transfer_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_scheduled_transfers\n }\n }\n ']; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ @@ -831,62 +642,62 @@ export function gql( * 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 fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n meta: transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\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 fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n meta: transfer_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; + 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 GetRecentTransactions(\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 fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' -): (typeof documents)['\n query GetRecentTransactions(\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 fee\n extrinsic {\n id\n pallet\n call\n }\n block {\n height\n }\n amount\n timestamp\n from {\n id\n }\n to {\n id\n }\n }\n }\n ']; + source: '\n query GetUnifiedTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [unified_transaction_order_by!]\n $where: unified_transaction_bool_exp\n ) {\n transactions: unified_transaction(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n type\n hash\n block {\n height\n hash\n }\n timestamp\n amount\n fee\n status\n detail_id\n from {\n id\n }\n to {\n id\n }\n }\n meta: unified_transaction_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n query GetUnifiedTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [unified_transaction_order_by!]\n $where: unified_transaction_bool_exp\n ) {\n transactions: unified_transaction(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n type\n hash\n block {\n height\n hash\n }\n timestamp\n amount\n fee\n status\n detail_id\n from {\n id\n }\n to {\n id\n }\n }\n meta: unified_transaction_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 GetTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: transfer_aggregate(\n where: {\n timestamp: { _gte: $startDate, _lte: $endDate }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_immediate_transfers\n }\n }\n ' -): (typeof documents)['\n query GetTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: transfer_aggregate(\n where: {\n timestamp: { _gte: $startDate, _lte: $endDate }\n extrinsic_id: { _is_null: false }\n }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: chain_stats_by_pk(id: "global") {\n total_immediate_transfers\n }\n }\n ']; + source: '\n query GetRecentUnifiedTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [unified_transaction_order_by!]\n ) {\n transactions: unified_transaction(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n id\n type\n hash\n block {\n height\n hash\n }\n timestamp\n amount\n fee\n status\n detail_id\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' +): (typeof documents)['\n query GetRecentUnifiedTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [unified_transaction_order_by!]\n ) {\n transactions: unified_transaction(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n id\n type\n hash\n block {\n height\n hash\n }\n timestamp\n amount\n fee\n status\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 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 ']; + source: '\n query GetUnifiedTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: unified_transaction_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: unified_transaction_aggregate {\n aggregate {\n totalCount: count\n }\n }\n }\n ' +): (typeof documents)['\n query GetUnifiedTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: unified_transaction_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: unified_transaction_aggregate {\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 GetUnifiedTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [unified_transaction_order_by!]\n $where: unified_transaction_bool_exp\n ) {\n transactions: unified_transaction(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n type\n hash\n block {\n height\n hash\n }\n timestamp\n amount\n fee\n status\n detail_id\n from {\n id\n }\n to {\n id\n }\n }\n meta: unified_transaction_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ' -): (typeof documents)['\n query GetUnifiedTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [unified_transaction_order_by!]\n $where: unified_transaction_bool_exp\n ) {\n transactions: unified_transaction(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n where: $where\n ) {\n id\n type\n hash\n block {\n height\n hash\n }\n timestamp\n amount\n fee\n status\n detail_id\n from {\n id\n }\n to {\n id\n }\n }\n meta: unified_transaction_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; + 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 GetRecentUnifiedTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [unified_transaction_order_by!]\n ) {\n transactions: unified_transaction(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n id\n type\n hash\n block {\n height\n hash\n }\n timestamp\n amount\n fee\n status\n detail_id\n from {\n id\n }\n to {\n id\n }\n }\n }\n ' -): (typeof documents)['\n query GetRecentUnifiedTransactions(\n $limit: Int\n $offset: Int\n $orderBy: [unified_transaction_order_by!]\n ) {\n transactions: unified_transaction(\n limit: $limit\n offset: $offset\n order_by: $orderBy\n ) {\n id\n type\n hash\n block {\n height\n hash\n }\n timestamp\n amount\n fee\n status\n detail_id\n from {\n id\n }\n to {\n id\n }\n }\n }\n ']; + 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 GetUnifiedTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: unified_transaction_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: unified_transaction_aggregate {\n aggregate {\n totalCount: count\n }\n }\n }\n ' -): (typeof documents)['\n query GetUnifiedTransactionsStats(\n $startDate: timestamptz!\n $endDate: timestamptz!\n ) {\n last24Hour: unified_transaction_aggregate(\n where: { timestamp: { _gte: $startDate, _lte: $endDate } }\n ) {\n aggregate {\n totalCount: count\n }\n }\n allTime: unified_transaction_aggregate {\n aggregate {\n totalCount: count\n }\n }\n }\n ']; + 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 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 extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n privacy_score\n privacy_label\n block {\n height\n }\n }\n meta: wormhole_extrinsic_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\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 extrinsic {\n id\n pallet\n call\n }\n total_amount\n output_count\n timestamp\n privacy_score\n privacy_label\n block {\n height\n }\n }\n meta: wormhole_extrinsic_aggregate(where: $where) {\n aggregate {\n totalCount: count\n }\n }\n }\n']; + 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 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']; + 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 GetDepositPoolStats {\n depositPoolStatsById: deposit_pool_stats_by_pk(id: "global") {\n last_updated_block\n buckets\n }\n }\n' -): (typeof documents)['\n query GetDepositPoolStats {\n depositPoolStatsById: deposit_pool_stats_by_pk(id: "global") {\n last_updated_block\n buckets\n }\n }\n']; + 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] ?? {}; diff --git a/src/__generated__/graphql.ts b/src/__generated__/graphql.ts index 81b3263..387ac04 100644 --- a/src/__generated__/graphql.ts +++ b/src/__generated__/graphql.ts @@ -9549,26 +9549,6 @@ export type GetBlocksQuery = { meta?: { __typename?: 'chain_stats'; totalCount: number } | null; }; -export type GetRecentBlocksQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe | Block_Order_By>; -}>; - -export type GetRecentBlocksQuery = { - __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 }>; - }>; -}; - export type GetBlockByIdQueryVariables = Exact<{ height: Scalars['Int']['input']; hash: Scalars['String']['input']; @@ -9625,108 +9605,6 @@ export type GetBlockStatsQuery = { }; }; -export type GetCancelledReversibleTransactionsQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe< - | Array - | Cancelled_Reversible_Transfer_Order_By - >; - where?: InputMaybe; -}>; - -export type GetCancelledReversibleTransactionsQuery = { - __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; - scheduledTransfer?: { - __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; - } | null; - }>; - meta: { - __typename?: 'cancelled_reversible_transfer_aggregate'; - aggregate?: { - __typename?: 'cancelled_reversible_transfer_aggregate_fields'; - totalCount: number; - } | null; - }; -}; - -export type GetRecentCancelledReversibleTransactionsQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe< - | Array - | Cancelled_Reversible_Transfer_Order_By - >; -}>; - -export type GetRecentCancelledReversibleTransactionsQuery = { - __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; - scheduledTransfer?: { - __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; - } | null; - }>; -}; - -export type GetCancelledReversibleTransactionsStatsQueryVariables = Exact<{ - startDate: Scalars['timestamptz']['input']; - endDate: Scalars['timestamptz']['input']; -}>; - -export type GetCancelledReversibleTransactionsStatsQuery = { - __typename?: 'query_root'; - last24Hour: { - __typename?: 'cancelled_reversible_transfer_aggregate'; - aggregate?: { - __typename?: 'cancelled_reversible_transfer_aggregate_fields'; - totalCount: number; - } | null; - }; - allTime?: { - __typename?: 'chain_stats'; - total_cancelled_transfers: number; - } | null; -}; - export type GetCancelledReversibleTransactionByTxIdQueryVariables = Exact<{ tx_id: Scalars['String']['input']; }>; @@ -9972,33 +9850,6 @@ export type GetErrorEventsQuery = { }; }; -export type GetRecentErrorEventsQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe | Error_Event_Order_By>; - where?: InputMaybe; -}>; - -export type GetRecentErrorEventsQuery = { - __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 GetErrorEventsStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; @@ -10040,106 +9891,6 @@ export type GetErrorEventByHashQuery = { }>; }; -export type GetExecutedReversibleTransactionsQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe< - | Array - | Executed_Reversible_Transfer_Order_By - >; - where?: InputMaybe; -}>; - -export type GetExecutedReversibleTransactionsQuery = { - __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; - 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; - } | null; - }>; - meta: { - __typename?: 'executed_reversible_transfer_aggregate'; - aggregate?: { - __typename?: 'executed_reversible_transfer_aggregate_fields'; - totalCount: number; - } | null; - }; -}; - -export type GetRecentExecutedReversibleTransactionsQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe< - | Array - | Executed_Reversible_Transfer_Order_By - >; -}>; - -export type GetRecentExecutedReversibleTransactionsQuery = { - __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; - 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; - } | null; - }>; -}; - -export type GetExecutedReversibleTransactionsStatsQueryVariables = Exact<{ - startDate: Scalars['timestamptz']['input']; - endDate: Scalars['timestamptz']['input']; -}>; - -export type GetExecutedReversibleTransactionsStatsQuery = { - __typename?: 'query_root'; - last24Hour: { - __typename?: 'executed_reversible_transfer_aggregate'; - aggregate?: { - __typename?: 'executed_reversible_transfer_aggregate_fields'; - totalCount: number; - } | null; - }; - allTime?: { - __typename?: 'chain_stats'; - total_executed_transfers: number; - } | null; -}; - export type GetExecutedReversibleTransactionByTxIdQueryVariables = Exact<{ tx_id: Scalars['String']['input']; }>; @@ -10197,34 +9948,6 @@ export type GetHighSecuritySetsQuery = { }; }; -export type GetRecentHighSecuritySetsQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe< - Array | High_Security_Set_Order_By - >; - where?: InputMaybe; -}>; - -export type GetRecentHighSecuritySetsQuery = { - __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 GetHighSecuritySetsStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; @@ -10349,24 +10072,6 @@ export type GetMinerRewardsQuery = { }; }; -export type GetRecentMinerRewardsQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe | Miner_Reward_Order_By>; - where?: InputMaybe; -}>; - -export type GetRecentMinerRewardsQuery = { - __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 GetMinerRewardsStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; @@ -10441,28 +10146,12 @@ export type GetMultisigCreatedQuery = { }; }; -export type GetRecentMultisigCreatedQueryVariables = Exact<{ - limit?: InputMaybe; - orderBy?: InputMaybe | Multisig_Order_By>; +export type GetMultisigCreatedStatsQueryVariables = Exact<{ + startDate: Scalars['timestamptz']['input']; + endDate: Scalars['timestamptz']['input']; }>; -export type GetRecentMultisigCreatedQuery = { - __typename?: 'query_root'; - multisigCreatedEvents: Array< - { __typename?: 'multisig' } & { - ' $fragmentRefs'?: { - MultisigCreatedFieldsFragment: MultisigCreatedFieldsFragment; - }; - } - >; -}; - -export type GetMultisigCreatedStatsQueryVariables = Exact<{ - startDate: Scalars['timestamptz']['input']; - endDate: Scalars['timestamptz']['input']; -}>; - -export type GetMultisigCreatedStatsQuery = { +export type GetMultisigCreatedStatsQuery = { __typename?: 'query_root'; last24Hour: { __typename?: 'multisig_aggregate'; @@ -10552,25 +10241,6 @@ export type GetMultisigDepositsClaimedQuery = { }; }; -export type GetRecentMultisigDepositsClaimedQueryVariables = Exact<{ - limit?: InputMaybe; - orderBy?: InputMaybe< - | Array - | Multisig_Deposits_Claimed_Order_By - >; -}>; - -export type GetRecentMultisigDepositsClaimedQuery = { - __typename?: 'query_root'; - multisigDepositsClaimedEvents: Array< - { __typename?: 'multisig_deposits_claimed' } & { - ' $fragmentRefs'?: { - MultisigDepositsClaimedFieldsFragment: MultisigDepositsClaimedFieldsFragment; - }; - } - >; -}; - export type GetMultisigDepositsClaimedStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; @@ -10654,25 +10324,6 @@ export type GetMultisigProposalCancelledQuery = { }; }; -export type GetRecentMultisigProposalCancelledQueryVariables = Exact<{ - limit?: InputMaybe; - orderBy?: InputMaybe< - | Array - | Cancelled_Multisig_Proposal_Order_By - >; -}>; - -export type GetRecentMultisigProposalCancelledQuery = { - __typename?: 'query_root'; - multisigProposalCancelledEvents: Array< - { __typename?: 'cancelled_multisig_proposal' } & { - ' $fragmentRefs'?: { - MultisigProposalCancelledFieldsFragment: MultisigProposalCancelledFieldsFragment; - }; - } - >; -}; - export type GetMultisigProposalCancelledStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; @@ -10763,25 +10414,6 @@ export type GetMultisigProposalCreatedQuery = { }; }; -export type GetRecentMultisigProposalCreatedQueryVariables = Exact<{ - limit?: InputMaybe; - orderBy?: InputMaybe< - | Array - | Multisig_Proposal_Created_Order_By - >; -}>; - -export type GetRecentMultisigProposalCreatedQuery = { - __typename?: 'query_root'; - multisigProposalCreatedEvents: Array< - { __typename?: 'multisig_proposal_created' } & { - ' $fragmentRefs'?: { - MultisigProposalCreatedFieldsFragment: MultisigProposalCreatedFieldsFragment; - }; - } - >; -}; - export type GetMultisigProposalCreatedStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; @@ -10866,25 +10498,6 @@ export type GetMultisigProposalExecutedQuery = { }; }; -export type GetRecentMultisigProposalExecutedQueryVariables = Exact<{ - limit?: InputMaybe; - orderBy?: InputMaybe< - | Array - | Executed_Multisig_Proposal_Order_By - >; -}>; - -export type GetRecentMultisigProposalExecutedQuery = { - __typename?: 'query_root'; - multisigProposalExecutedEvents: Array< - { __typename?: 'executed_multisig_proposal' } & { - ' $fragmentRefs'?: { - MultisigProposalExecutedFieldsFragment: MultisigProposalExecutedFieldsFragment; - }; - } - >; -}; - export type GetMultisigProposalExecutedStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; @@ -10967,24 +10580,6 @@ export type GetMultisigProposalReadyQuery = { }; }; -export type GetRecentMultisigProposalReadyQueryVariables = Exact<{ - limit?: InputMaybe; - orderBy?: InputMaybe< - Array | Multisig_Proposal_Ready_Order_By - >; -}>; - -export type GetRecentMultisigProposalReadyQuery = { - __typename?: 'query_root'; - multisigProposalReadyEvents: Array< - { __typename?: 'multisig_proposal_ready' } & { - ' $fragmentRefs'?: { - MultisigProposalReadyFieldsFragment: MultisigProposalReadyFieldsFragment; - }; - } - >; -}; - export type GetMultisigProposalReadyStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; @@ -11068,25 +10663,6 @@ export type GetMultisigProposalRemovedQuery = { }; }; -export type GetRecentMultisigProposalRemovedQueryVariables = Exact<{ - limit?: InputMaybe; - orderBy?: InputMaybe< - | Array - | Removed_Multisig_Proposal_Order_By - >; -}>; - -export type GetRecentMultisigProposalRemovedQuery = { - __typename?: 'query_root'; - multisigProposalRemovedEvents: Array< - { __typename?: 'removed_multisig_proposal' } & { - ' $fragmentRefs'?: { - MultisigProposalRemovedFieldsFragment: MultisigProposalRemovedFieldsFragment; - }; - } - >; -}; - export type GetMultisigProposalRemovedStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; @@ -11327,24 +10903,6 @@ export type GetMultisigSignerApprovedQuery = { }; }; -export type GetRecentMultisigSignerApprovedQueryVariables = Exact<{ - limit?: InputMaybe; - orderBy?: InputMaybe< - Array | Multisig_Signer_Approved_Order_By - >; -}>; - -export type GetRecentMultisigSignerApprovedQuery = { - __typename?: 'query_root'; - multisigSignerApprovedEvents: Array< - { __typename?: 'multisig_signer_approved' } & { - ' $fragmentRefs'?: { - MultisigSignerApprovedFieldsFragment: MultisigSignerApprovedFieldsFragment; - }; - } - >; -}; - export type GetMultisigSignerApprovedStatsQueryVariables = Exact<{ startDate: Scalars['timestamptz']['input']; endDate: Scalars['timestamptz']['input']; @@ -11380,94 +10938,6 @@ export type GetMultisigSignerApprovedByHashQuery = { >; }; -export type GetScheduledReversibleTransactionsQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe< - | Array - | Scheduled_Reversible_Transfer_Order_By - >; - where?: InputMaybe; -}>; - -export type GetScheduledReversibleTransactionsQuery = { - __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; - }>; - meta: { - __typename?: 'scheduled_reversible_transfer_aggregate'; - aggregate?: { - __typename?: 'scheduled_reversible_transfer_aggregate_fields'; - totalCount: number; - } | null; - }; -}; - -export type GetRecentScheduledReversibleTransactionsQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe< - | Array - | Scheduled_Reversible_Transfer_Order_By - >; -}>; - -export type GetRecentScheduledReversibleTransactionsQuery = { - __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 GetScheduledReversibleTransactionsStatsQueryVariables = Exact<{ - startDate: Scalars['timestamptz']['input']; - endDate: Scalars['timestamptz']['input']; -}>; - -export type GetScheduledReversibleTransactionsStatsQuery = { - __typename?: 'query_root'; - last24Hour: { - __typename?: 'scheduled_reversible_transfer_aggregate'; - aggregate?: { - __typename?: 'scheduled_reversible_transfer_aggregate_fields'; - totalCount: number; - } | null; - }; - allTime?: { - __typename?: 'chain_stats'; - total_scheduled_transfers: number; - } | null; -}; - export type GetScheduledReversibleTransactionByTxIdQueryVariables = Exact<{ tx_id: Scalars['String']['input']; }>; @@ -11531,129 +11001,50 @@ export type SearchAllQuery = { }>; }; -export type GetTransactionsQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe | Transfer_Order_By>; - where?: InputMaybe; +export type GetExtrinsicByHashQueryVariables = Exact<{ + hash: Scalars['String']['input']; }>; -export type GetTransactionsQuery = { +export type GetExtrinsicByHashQuery = { __typename?: 'query_root'; - transactions: Array<{ - __typename?: 'transfer'; + 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; - block?: { __typename?: 'block'; height: number } | null; - from?: { __typename?: 'account'; id: string } | null; - to?: { __typename?: 'account'; id: string } | null; - }>; - meta: { - __typename?: 'transfer_aggregate'; - aggregate?: { - __typename?: 'transfer_aggregate_fields'; - totalCount: number; - } | null; - }; -}; - -export type GetRecentTransactionsQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe | Transfer_Order_By>; - where?: InputMaybe; -}>; - -export type GetRecentTransactionsQuery = { - __typename?: 'query_root'; - transactions: Array<{ - __typename?: 'transfer'; - fee: any; - amount: any; - timestamp: 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 GetTransactionsStatsQueryVariables = Exact<{ - startDate: Scalars['timestamptz']['input']; - endDate: Scalars['timestamptz']['input']; -}>; - -export type GetTransactionsStatsQuery = { - __typename?: 'query_root'; - last24Hour: { - __typename?: 'transfer_aggregate'; - aggregate?: { - __typename?: 'transfer_aggregate_fields'; - totalCount: number; - } | null; - }; - allTime?: { - __typename?: 'chain_stats'; - total_immediate_transfers: number; - } | 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; + }>; + 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; @@ -11755,40 +11146,6 @@ export type GetUnifiedTransactionsStatsQuery = { }; }; -export type GetWormholeExtrinsicsQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; - orderBy: Array | Wormhole_Extrinsic_Order_By; - where?: InputMaybe; -}>; - -export type GetWormholeExtrinsicsQuery = { - __typename?: 'query_root'; - wormholeExtrinsics: Array<{ - __typename?: 'wormhole_extrinsic'; - id: string; - total_amount: any; - output_count: number; - timestamp: any; - privacy_score: any; - privacy_label: string; - extrinsic?: { - __typename?: 'extrinsic'; - id: string; - pallet: string; - call: string; - } | null; - block?: { __typename?: 'block'; height: number } | null; - }>; - meta: { - __typename?: 'wormhole_extrinsic_aggregate'; - aggregate?: { - __typename?: 'wormhole_extrinsic_aggregate_fields'; - totalCount: number; - } | null; - }; -}; - export type GetWormholeExtrinsicByIdQueryVariables = Exact<{ id: Scalars['String']['input']; }>; @@ -11834,15 +11191,85 @@ export type GetWormholeExtrinsicByIdQuery = { }>; }; -export type GetDepositPoolStatsQueryVariables = Exact<{ [key: string]: never }>; +export type GetTransactionsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe | Transfer_Order_By>; + where?: InputMaybe; +}>; + +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< + | Array + | Cancelled_Reversible_Transfer_Order_By + >; + where?: InputMaybe; +}>; -export type GetDepositPoolStatsQuery = { +export type GetCancelledReversibleTransactionsQuery = { __typename?: 'query_root'; - depositPoolStatsById?: { - __typename?: 'deposit_pool_stats'; - last_updated_block: number; - buckets: string; - } | null; + cancelledReversibleTransactions: Array<{ + __typename?: 'cancelled_reversible_transfer'; + tx_id: string; + }>; +}; + +export type GetExecutedReversibleTransactionsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + 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 GetScheduledReversibleTransactionsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + 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 GetWormholeExtrinsicsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy: Array | Wormhole_Extrinsic_Order_By; + where?: InputMaybe; +}>; + +export type GetWormholeExtrinsicsQuery = { + __typename?: 'query_root'; + wormholeExtrinsics: Array<{ __typename?: 'wormhole_extrinsic'; id: string }>; }; export const MultisigCreatedFieldsFragmentDoc = { @@ -13485,45 +12912,31 @@ export const GetBlocksDocument = { } ] } as unknown as DocumentNode; -export const GetRecentBlocksDocument = { +export const GetBlockByIdDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetRecentBlocks' }, + name: { kind: 'Name', value: 'GetBlockById' }, 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' } + name: { kind: 'Name', value: 'height' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + type: { + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + } }, { kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } - }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'block_order_by' } - } - } + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } } } ], @@ -13537,98 +12950,7 @@ export const GetRecentBlocksDocument = { 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: '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' } } - ] - } - } - ] - } - } - ] - } - } - ] -} as unknown as DocumentNode< - GetRecentBlocksQuery, - GetRecentBlocksQueryVariables ->; -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' }, + name: { kind: 'Name', value: 'where' }, value: { kind: 'ObjectValue', fields: [ @@ -14014,62 +13336,23 @@ export const GetBlockStatsDocument = { } ] } as unknown as DocumentNode; -export const GetCancelledReversibleTransactionsDocument = { +export const GetCancelledReversibleTransactionByTxIdDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetCancelledReversibleTransactions' }, + name: { kind: 'Name', value: 'GetCancelledReversibleTransactionByTxId' }, 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' } + name: { kind: 'Name', value: 'tx_id' } }, type: { - kind: 'NamedType', - name: { - kind: 'Name', - value: 'cancelled_reversible_transfer_bool_exp' - } + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } } } ], @@ -14081,36 +13364,30 @@ export const GetCancelledReversibleTransactionsDocument = { 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' } + 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' } + } + } + ] + } + } + ] } } ], @@ -14141,58 +13418,34 @@ export const GetCancelledReversibleTransactionsDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'scheduledTransfer' }, + name: { kind: 'Name', value: 'extrinsic' }, 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' } - } - ] - } + 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: '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' }, @@ -14224,262 +13477,84 @@ export const GetCancelledReversibleTransactionsDocument = { } ] } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'meta' }, - name: { - kind: 'Name', - value: 'cancelled_reversible_transfer_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< - GetCancelledReversibleTransactionsQuery, - GetCancelledReversibleTransactionsQueryVariables + GetCancelledReversibleTransactionByTxIdQuery, + GetCancelledReversibleTransactionByTxIdQueryVariables >; -export const GetRecentCancelledReversibleTransactionsDocument = { +export const GetHomeChainStatsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetRecentCancelledReversibleTransactions' }, + name: { kind: 'Name', value: 'GetHomeChainStats' }, variableDefinitions: [ { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'limit' } + name: { kind: 'Name', value: 'startDate' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } - }, - { - kind: 'VariableDefinition', - variable: { + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } + }, + { + kind: 'VariableDefinition', + variable: { kind: 'Variable', - name: { kind: 'Name', value: 'offset' } + name: { kind: 'Name', value: 'endDate' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } }, { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } + name: { kind: 'Name', value: 'day0Start' } }, type: { - kind: 'ListType', + kind: 'NonNullType', type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { - kind: 'Name', - value: 'cancelled_reversible_transfer_order_by' - } - } + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } } } - } - ], - 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' } - } - } - ], - 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: 'scheduledTransfer' }, - 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' } - } - ] - } - } - ] - } - } - ] + }, + { + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'day0End' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } } } - ] - } - } - ] -} as unknown as DocumentNode< - GetRecentCancelledReversibleTransactionsQuery, - GetRecentCancelledReversibleTransactionsQueryVariables ->; -export const GetCancelledReversibleTransactionsStatsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetCancelledReversibleTransactionsStats' }, - variableDefinitions: [ + }, { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'startDate' } + name: { kind: 'Name', value: 'day1Start' } }, type: { kind: 'NonNullType', @@ -14493,303 +13568,7 @@ export const GetCancelledReversibleTransactionsStatsDocument = { 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_reversible_transfer_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_cancelled_transfers' } - } - ] - } - } - ] - } - } - ] -} as unknown as DocumentNode< - GetCancelledReversibleTransactionsStatsQuery, - GetCancelledReversibleTransactionsStatsQueryVariables ->; -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: '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' } - } - } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'day0Start' } + name: { kind: 'Name', value: 'day1End' } }, type: { kind: 'NonNullType', @@ -14803,7 +13582,7 @@ export const GetHomeChainStatsDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'day0End' } + name: { kind: 'Name', value: 'day2Start' } }, type: { kind: 'NonNullType', @@ -14817,7 +13596,7 @@ export const GetHomeChainStatsDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'day1Start' } + name: { kind: 'Name', value: 'day2End' } }, type: { kind: 'NonNullType', @@ -14831,7 +13610,7 @@ export const GetHomeChainStatsDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'day1End' } + name: { kind: 'Name', value: 'day3Start' } }, type: { kind: 'NonNullType', @@ -14845,7 +13624,7 @@ export const GetHomeChainStatsDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'day2Start' } + name: { kind: 'Name', value: 'day3End' } }, type: { kind: 'NonNullType', @@ -14859,7 +13638,7 @@ export const GetHomeChainStatsDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'day2End' } + name: { kind: 'Name', value: 'day4Start' } }, type: { kind: 'NonNullType', @@ -14870,2396 +13649,58 @@ export const GetHomeChainStatsDocument = { } }, { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'day3Start' } - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'timestamptz' } - } - } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'day3End' } - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'timestamptz' } - } - } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'day4Start' } - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'timestamptz' } - } - } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'day4End' } - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'timestamptz' } - } - } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'day5Start' } - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'timestamptz' } - } - } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'day5End' } - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'timestamptz' } - } - } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'day6Start' } - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'timestamptz' } - } - } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'day6End' } - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'timestamptz' } - } - } - } - ], - 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' } - } - ] - } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'last24Hour' }, - name: { kind: 'Name', value: 'transfer_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' } - } - } - ] - } - }, - { - 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 } - } - ] - } - } - ] - } - } - ], - 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: 'blocksDay0' }, - 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: 'day0Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day0End' } - } - } - ] - } - } - ] - } - } - ], - 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: 'transfersDay0' }, - name: { kind: 'Name', value: 'transfer_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: 'day0Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day0End' } - } - } - ] - } - }, - { - 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 } - } - ] - } - } - ] - } - } - ], - 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: 'activeAccountsDay0' }, - name: { kind: 'Name', value: 'transfer_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: 'day0Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day0End' } - } - } - ] - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'from_id' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_is_null' }, - value: { kind: 'BooleanValue', value: false } - } - ] - } - } - ] - } - } - ], - 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: 'ListValue', - values: [{ kind: 'EnumValue', value: 'from_id' }] - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'distinct' }, - value: { kind: 'BooleanValue', value: true } - } - ] - } - ] - } - } - ] - } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'blocksDay1' }, - 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: 'day1Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day1End' } - } - } - ] - } - } - ] - } - } - ], - 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: 'transfersDay1' }, - name: { kind: 'Name', value: 'transfer_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: 'day1Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day1End' } - } - } - ] - } - }, - { - 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 } - } - ] - } - } - ] - } - } - ], - 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: 'activeAccountsDay1' }, - name: { kind: 'Name', value: 'transfer_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: 'day1Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day1End' } - } - } - ] - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'from_id' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_is_null' }, - value: { kind: 'BooleanValue', value: false } - } - ] - } - } - ] - } - } - ], - 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: 'ListValue', - values: [{ kind: 'EnumValue', value: 'from_id' }] - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'distinct' }, - value: { kind: 'BooleanValue', value: true } - } - ] - } - ] - } - } - ] - } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'blocksDay2' }, - 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: 'day2Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day2End' } - } - } - ] - } - } - ] - } - } - ], - 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: 'transfersDay2' }, - name: { kind: 'Name', value: 'transfer_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: 'day2Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day2End' } - } - } - ] - } - }, - { - 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 } - } - ] - } - } - ] - } - } - ], - 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: 'activeAccountsDay2' }, - name: { kind: 'Name', value: 'transfer_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: 'day2Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day2End' } - } - } - ] - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'from_id' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_is_null' }, - value: { kind: 'BooleanValue', value: false } - } - ] - } - } - ] - } - } - ], - 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: 'ListValue', - values: [{ kind: 'EnumValue', value: 'from_id' }] - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'distinct' }, - value: { kind: 'BooleanValue', value: true } - } - ] - } - ] - } - } - ] - } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'blocksDay3' }, - 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: 'day3Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day3End' } - } - } - ] - } - } - ] - } - } - ], - 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: 'transfersDay3' }, - name: { kind: 'Name', value: 'transfer_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: 'day3Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day3End' } - } - } - ] - } - }, - { - 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 } - } - ] - } - } - ] - } - } - ], - 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: 'activeAccountsDay3' }, - name: { kind: 'Name', value: 'transfer_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: 'day3Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day3End' } - } - } - ] - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'from_id' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_is_null' }, - value: { kind: 'BooleanValue', value: false } - } - ] - } - } - ] - } - } - ], - 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: 'ListValue', - values: [{ kind: 'EnumValue', value: 'from_id' }] - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'distinct' }, - value: { kind: 'BooleanValue', value: true } - } - ] - } - ] - } - } - ] - } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'blocksDay4' }, - 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: 'day4Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day4End' } - } - } - ] - } - } - ] - } - } - ], - 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: 'transfersDay4' }, - name: { kind: 'Name', value: 'transfer_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: 'day4Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day4End' } - } - } - ] - } - }, - { - 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 } - } - ] - } - } - ] - } - } - ], - 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: 'activeAccountsDay4' }, - name: { kind: 'Name', value: 'transfer_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: 'day4Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day4End' } - } - } - ] - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'from_id' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_is_null' }, - value: { kind: 'BooleanValue', value: false } - } - ] - } - } - ] - } - } - ], - 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: 'ListValue', - values: [{ kind: 'EnumValue', value: 'from_id' }] - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'distinct' }, - value: { kind: 'BooleanValue', value: true } - } - ] - } - ] - } - } - ] - } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'blocksDay5' }, - 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: 'day5Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day5End' } - } - } - ] - } - } - ] - } - } - ], - 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: 'transfersDay5' }, - name: { kind: 'Name', value: 'transfer_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: 'day5Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day5End' } - } - } - ] - } - }, - { - 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 } - } - ] - } - } - ] - } - } - ], - 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: 'activeAccountsDay5' }, - name: { kind: 'Name', value: 'transfer_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: 'day5Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day5End' } - } - } - ] - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'from_id' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_is_null' }, - value: { kind: 'BooleanValue', value: false } - } - ] - } - } - ] - } - } - ], - 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: 'ListValue', - values: [{ kind: 'EnumValue', value: 'from_id' }] - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'distinct' }, - value: { kind: 'BooleanValue', value: true } - } - ] - } - ] - } - } - ] - } - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'blocksDay6' }, - 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: 'day6Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day6End' } - } - } - ] - } - } - ] - } - } - ], - 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: 'transfersDay6' }, - name: { kind: 'Name', value: 'transfer_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: 'day6Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day6End' } - } - } - ] - } - }, - { - 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 } - } - ] - } - } - ] - } - } - ], - 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: 'activeAccountsDay6' }, - name: { kind: 'Name', value: 'transfer_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: 'day6Start' } - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_lte' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'day6End' } - } - } - ] - } - }, - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'from_id' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_is_null' }, - value: { kind: 'BooleanValue', value: false } - } - ] - } - } - ] - } - } - ], - 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: 'ListValue', - values: [{ kind: 'EnumValue', value: 'from_id' }] - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'distinct' }, - value: { kind: 'BooleanValue', value: true } - } - ] - } - ] - } - } - ] - } - } - ] - } - } - ] -} 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 GetRecentErrorEventsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetRecentErrorEvents' }, - 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' } } - ] - } - } - ] - } - } - ] - } - } - ] -} as unknown as DocumentNode< - GetRecentErrorEventsQuery, - GetRecentErrorEventsQueryVariables ->; -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' } } - ] - } - } - ] + kind: 'VariableDefinition', + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'day4End' } + }, + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } } } - ] - } - } - ] -} as unknown as DocumentNode< - GetErrorEventByHashQuery, - GetErrorEventByHashQueryVariables ->; -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' } + name: { kind: 'Name', value: 'day5Start' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } }, { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'offset' } + name: { kind: 'Name', value: 'day5End' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } }, { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } + name: { kind: 'Name', value: 'day6Start' } }, type: { - kind: 'ListType', + kind: 'NonNullType', type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { - kind: 'Name', - value: 'executed_reversible_transfer_order_by' - } - } + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } } } }, @@ -17267,13 +13708,13 @@ export const GetExecutedReversibleTransactionsDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'where' } + name: { kind: 'Name', value: 'day6End' } }, type: { - kind: 'NamedType', - name: { - kind: 'Name', - value: 'executed_reversible_transfer_bool_exp' + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } } } } @@ -17283,137 +13724,113 @@ export const GetExecutedReversibleTransactionsDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'executedReversibleTransactions' }, - name: { kind: 'Name', value: 'executed_reversible_transfer' }, + alias: { kind: 'Name', value: 'status' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, 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' } - } + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } } ], 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' } } - ] - } + name: { kind: 'Name', value: 'block_height' } }, { kind: 'Field', - name: { kind: 'Name', value: 'scheduledTransfer' }, - 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' } + 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' } + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'last24Hour' }, + name: { kind: 'Name', value: 'transfer_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: 'Field', - name: { kind: 'Name', value: 'to' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } } - ] - } + } + ] + } + }, + { + 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 } + } + ] } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } } ] } } @@ -17422,18 +13839,41 @@ export const GetExecutedReversibleTransactionsDocument = { }, { kind: 'Field', - alias: { kind: 'Name', value: 'meta' }, - name: { - kind: 'Name', - value: 'executed_reversible_transfer_aggregate' - }, + alias: { kind: 'Name', value: 'blocksDay0' }, + name: { kind: 'Name', value: 'block_aggregate' }, arguments: [ { kind: 'Argument', name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } + 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: 'day0Start' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day0End' } + } + } + ] + } + } + ] } } ], @@ -17446,259 +13886,301 @@ export const GetExecutedReversibleTransactionsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'Field', - alias: { kind: 'Name', value: 'totalCount' }, - name: { kind: 'Name', value: 'count' } - } + { kind: 'Field', name: { kind: 'Name', value: 'count' } } ] } } ] } - } - ] - } - } - ] -} as unknown as DocumentNode< - GetExecutedReversibleTransactionsQuery, - GetExecutedReversibleTransactionsQueryVariables ->; -export const GetRecentExecutedReversibleTransactionsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetRecentExecutedReversibleTransactions' }, - 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' - } - } - } - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'executedReversibleTransactions' }, - name: { kind: 'Name', value: 'executed_reversible_transfer' }, + alias: { kind: 'Name', value: 'transfersDay0' }, + name: { kind: 'Name', value: 'transfer_aggregate' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, + name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } + 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: 'day0Start' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day0End' } + } + } + ] + } + }, + { + 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 } + } + ] + } + } + ] } - }, + } + ], + 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: 'activeAccountsDay0' }, + name: { kind: 'Name', value: 'transfer_aggregate' }, + arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, + name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' } + 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: 'day0Start' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day0End' } + } + } + ] + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'from_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_is_null' }, + value: { kind: 'BooleanValue', value: false } + } + ] + } + } + ] + } + } + ], + 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: 'ListValue', + values: [{ kind: 'EnumValue', value: 'from_id' }] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'distinct' }, + value: { kind: 'BooleanValue', value: true } + } + ] + } + ] + } } - }, + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'blocksDay1' }, + name: { kind: 'Name', value: 'block_aggregate' }, + arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, + name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } + 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: 'day1Start' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day1End' } + } + } + ] + } + } + ] } } ], 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' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } } + { kind: 'Field', name: { kind: 'Name', value: 'count' } } ] } - }, + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'transfersDay1' }, + name: { kind: 'Name', value: 'transfer_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: 'day1Start' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day1End' } + } + } + ] + } + }, + { + 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 } + } + ] + } + } + ] + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'scheduledTransfer' }, + name: { kind: 'Name', value: 'aggregate' }, 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' } - } - ] - } - } + { kind: 'Field', name: { kind: 'Name', value: 'count' } } ] } } ] } - } - ] - } - } - ] -} as unknown as DocumentNode< - GetRecentExecutedReversibleTransactionsQuery, - GetRecentExecutedReversibleTransactionsQueryVariables ->; -export const GetExecutedReversibleTransactionsStatsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetExecutedReversibleTransactionsStats' }, - 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_reversible_transfer_aggregate' - }, + alias: { kind: 'Name', value: 'activeAccountsDay1' }, + name: { kind: 'Name', value: 'transfer_aggregate' }, arguments: [ { kind: 'Argument', @@ -17717,7 +14199,7 @@ export const GetExecutedReversibleTransactionsStatsDocument = { name: { kind: 'Name', value: '_gte' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'startDate' } + name: { kind: 'Name', value: 'day1Start' } } }, { @@ -17725,11 +14207,25 @@ export const GetExecutedReversibleTransactionsStatsDocument = { name: { kind: 'Name', value: '_lte' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'endDate' } + name: { kind: 'Name', value: 'day1End' } } } ] } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'from_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_is_null' }, + value: { kind: 'BooleanValue', value: false } + } + ] + } } ] } @@ -17746,8 +14242,22 @@ export const GetExecutedReversibleTransactionsStatsDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'totalCount' }, - name: { kind: 'Name', value: 'count' } + name: { kind: 'Name', value: 'count' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'columns' }, + value: { + kind: 'ListValue', + values: [{ kind: 'EnumValue', value: 'from_id' }] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'distinct' }, + value: { kind: 'BooleanValue', value: true } + } + ] } ] } @@ -17757,60 +14267,8 @@ export const GetExecutedReversibleTransactionsStatsDocument = { }, { 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_executed_transfers' } - } - ] - } - } - ] - } - } - ] -} as unknown as DocumentNode< - GetExecutedReversibleTransactionsStatsQuery, - GetExecutedReversibleTransactionsStatsQueryVariables ->; -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' }, + alias: { kind: 'Name', value: 'blocksDay2' }, + name: { kind: 'Name', value: 'block_aggregate' }, arguments: [ { kind: 'Argument', @@ -17820,16 +14278,24 @@ export const GetExecutedReversibleTransactionByTxIdDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'tx_id' }, + name: { kind: 'Name', value: 'timestamp' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: '_eq' }, + name: { kind: 'Name', value: '_gte' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'tx_id' } + name: { kind: 'Name', value: 'day2Start' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day2End' } } } ] @@ -17842,215 +14308,83 @@ export const GetExecutedReversibleTransactionByTxIdDocument = { 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' }, + name: { kind: 'Name', value: 'aggregate' }, 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' } - } - ] - } - } + { kind: 'Field', name: { kind: 'Name', value: 'count' } } ] } } ] } - } - ] - } - } - ] -} 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' }, + alias: { kind: 'Name', value: 'transfersDay2' }, + name: { kind: 'Name', value: 'transfer_aggregate' }, 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' } + 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: 'day2Start' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day2End' } + } + } + ] + } + }, + { + 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 } + } + ] + } + } + ] } } ], 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' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } } + { kind: 'Field', name: { kind: 'Name', value: 'count' } } ] } } @@ -18059,15 +14393,55 @@ export const GetHighSecuritySetsDocument = { }, { kind: 'Field', - alias: { kind: 'Name', value: 'meta' }, - name: { kind: 'Name', value: 'high_security_set_aggregate' }, + alias: { kind: 'Name', value: 'activeAccountsDay2' }, + name: { kind: 'Name', value: 'transfer_aggregate' }, arguments: [ { kind: 'Argument', name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } + 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: 'day2Start' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day2End' } + } + } + ] + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'from_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_is_null' }, + value: { kind: 'BooleanValue', value: false } + } + ] + } + } + ] } } ], @@ -18082,223 +14456,159 @@ export const GetHighSecuritySetsDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'totalCount' }, - name: { kind: 'Name', value: 'count' } + name: { kind: 'Name', value: 'count' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'columns' }, + value: { + kind: 'ListValue', + values: [{ kind: 'EnumValue', value: 'from_id' }] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'distinct' }, + value: { kind: 'BooleanValue', value: true } + } + ] } ] } } ] } - } - ] - } - } - ] -} as unknown as DocumentNode< - GetHighSecuritySetsQuery, - GetHighSecuritySetsQueryVariables ->; -export const GetRecentHighSecuritySetsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetRecentHighSecuritySets' }, - 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' }, + alias: { kind: 'Name', value: 'blocksDay3' }, + name: { kind: 'Name', value: 'block_aggregate' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'offset' }, + name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' } + 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: 'day3Start' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day3End' } + } + } + ] + } + } + ] } - }, - { - 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: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } } + ] + } } - }, + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'transfersDay3' }, + name: { kind: 'Name', value: 'transfer_aggregate' }, + arguments: [ { kind: 'Argument', name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } + 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: 'day3Start' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day3End' } + } + } + ] + } + }, + { + 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 } + } + ] + } + } + ] } } ], 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' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } } + { kind: 'Field', name: { kind: 'Name', value: 'count' } } ] } } ] } - } - ] - } - } - ] -} as unknown as DocumentNode< - GetRecentHighSecuritySetsQuery, - GetRecentHighSecuritySetsQueryVariables ->; -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' }, + alias: { kind: 'Name', value: 'activeAccountsDay3' }, + name: { kind: 'Name', value: 'transfer_aggregate' }, arguments: [ { kind: 'Argument', @@ -18317,7 +14627,7 @@ export const GetHighSecuritySetsStatsDocument = { name: { kind: 'Name', value: '_gte' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'startDate' } + name: { kind: 'Name', value: 'day3Start' } } }, { @@ -18325,11 +14635,25 @@ export const GetHighSecuritySetsStatsDocument = { name: { kind: 'Name', value: '_lte' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'endDate' } + name: { kind: 'Name', value: 'day3End' } } } ] } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'from_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_is_null' }, + value: { kind: 'BooleanValue', value: false } + } + ] + } } ] } @@ -18346,8 +14670,22 @@ export const GetHighSecuritySetsStatsDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'totalCount' }, - name: { kind: 'Name', value: 'count' } + name: { kind: 'Name', value: 'count' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'columns' }, + value: { + kind: 'ListValue', + values: [{ kind: 'EnumValue', value: 'from_id' }] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'distinct' }, + value: { kind: 'BooleanValue', value: true } + } + ] } ] } @@ -18357,13 +14695,42 @@ export const GetHighSecuritySetsStatsDocument = { }, { kind: 'Field', - alias: { kind: 'Name', value: 'allTime' }, - name: { kind: 'Name', value: 'chain_stats_by_pk' }, + alias: { kind: 'Name', value: 'blocksDay4' }, + name: { kind: 'Name', value: 'block_aggregate' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'id' }, - value: { kind: 'StringValue', value: 'global', block: false } + 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: 'day4Start' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day4End' } + } + } + ] + } + } + ] + } } ], selectionSet: { @@ -18371,43 +14738,21 @@ export const GetHighSecuritySetsStatsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'total_high_security_sets' } + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } } + ] + } } - ] - } - } - ] - } - } - ] -} 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' }, + alias: { kind: 'Name', value: 'transfersDay4' }, + name: { kind: 'Name', value: 'transfer_aggregate' }, arguments: [ { kind: 'Argument', @@ -18417,29 +14762,42 @@ export const GetHighSecuritySetByHashDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsic' }, + name: { kind: 'Name', value: 'timestamp' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'id' }, + name: { kind: 'Name', value: '_gte' }, value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } - } - } - ] + kind: 'Variable', + name: { kind: 'Name', value: 'day4Start' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day4End' } } } ] } + }, + { + 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 } + } + ] + } } ] } @@ -18448,131 +14806,23 @@ export const GetHighSecuritySetByHashDocument = { 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' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } } + { kind: 'Field', name: { kind: 'Name', value: 'count' } } ] } } ] } - } - ] - } - } - ] -} 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' }, + alias: { kind: 'Name', value: 'activeAccountsDay4' }, + name: { kind: 'Name', value: 'transfer_aggregate' }, arguments: [ { kind: 'Argument', @@ -18591,7 +14841,7 @@ export const GetMinerLeaderboardStatsDocument = { name: { kind: 'Name', value: '_gte' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'startDate' } + name: { kind: 'Name', value: 'day4Start' } } }, { @@ -18599,11 +14849,25 @@ export const GetMinerLeaderboardStatsDocument = { name: { kind: 'Name', value: '_lte' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'endDate' } + name: { kind: 'Name', value: 'day4End' } } } ] } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'from_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_is_null' }, + value: { kind: 'BooleanValue', value: false } + } + ] + } } ] } @@ -18620,70 +14884,34 @@ export const GetMinerLeaderboardStatsDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'totalCount' }, - name: { kind: 'Name', value: 'count' } + name: { kind: 'Name', value: 'count' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'columns' }, + value: { + kind: 'ListValue', + values: [{ kind: 'EnumValue', value: 'from_id' }] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'distinct' }, + value: { kind: 'BooleanValue', value: true } + } + ] } ] } } - ] - } - } - ] - } - } - ] -} 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: 'Field', + alias: { kind: 'Name', value: 'blocksDay5' }, + name: { kind: 'Name', value: 'block_aggregate' }, + arguments: [ { kind: 'Argument', name: { kind: 'Name', value: 'where' }, @@ -18692,14 +14920,25 @@ export const GetMinerLeaderboardChartDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'total_mined_blocks' }, + name: { kind: 'Name', value: 'timestamp' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: '_gt' }, - value: { kind: 'IntValue', value: '0' } + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day5Start' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day5End' } + } } ] } @@ -18711,23 +14950,71 @@ export const GetMinerLeaderboardChartDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'total_mined_blocks' } + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } } + ] + } } ] } }, { kind: 'Field', - alias: { kind: 'Name', value: 'blocks' }, - name: { kind: 'Name', value: 'chain_stats_by_pk' }, + alias: { kind: 'Name', value: 'transfersDay5' }, + name: { kind: 'Name', value: 'transfer_aggregate' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'id' }, - value: { kind: 'StringValue', value: 'global', block: false } + 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: 'day5Start' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day5End' } + } + } + ] + } + }, + { + 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 } + } + ] + } + } + ] + } } ], selectionSet: { @@ -18735,99 +15022,63 @@ export const GetMinerLeaderboardChartDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'totalCount' }, - name: { kind: 'Name', value: 'block_height' } + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } } + ] + } } ] } - } - ] - } - } - ] -} 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' }, + alias: { kind: 'Name', value: 'activeAccountsDay5' }, + name: { kind: 'Name', value: 'transfer_aggregate' }, 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' }, + name: { kind: 'Name', value: 'where' }, 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: [ + name: { kind: 'Name', value: 'timestamp' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day5Start' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day5End' } + } + } + ] + } + }, { kind: 'ObjectField', - name: { kind: 'Name', value: 'total_mined_blocks' }, + name: { kind: 'Name', value: 'from_id' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: '_gt' }, - value: { kind: 'IntValue', value: '0' } + name: { kind: 'Name', value: '_is_null' }, + value: { kind: 'BooleanValue', value: false } } ] } @@ -18839,27 +15090,75 @@ export const GetMinerLeaderboardDocument = { 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' } + 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: 'ListValue', + values: [{ kind: 'EnumValue', value: 'from_id' }] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'distinct' }, + value: { kind: 'BooleanValue', value: true } + } + ] + } + ] + } } ] } }, { kind: 'Field', - alias: { kind: 'Name', value: 'meta' }, - name: { kind: 'Name', value: 'chain_stats_by_pk' }, + alias: { kind: 'Name', value: 'blocksDay6' }, + name: { kind: 'Name', value: 'block_aggregate' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'id' }, - value: { kind: 'StringValue', value: 'global', block: false } + 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: 'day6Start' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day6End' } + } + } + ] + } + } + ] + } } ], selectionSet: { @@ -18867,53 +15166,63 @@ export const GetMinerLeaderboardDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'totalCount' }, - name: { kind: 'Name', value: 'total_miners' } - }, - { kind: 'Field', name: { kind: 'Name', value: 'block_height' } } + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } } + ] + } + } ] } }, { kind: 'Field', - alias: { kind: 'Name', value: 'topMiner' }, - name: { kind: 'Name', value: 'account_stats' }, + alias: { kind: 'Name', value: 'transfersDay6' }, + name: { kind: 'Name', value: 'transfer_aggregate' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { kind: 'IntValue', value: '1' } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, + name: { kind: 'Name', value: 'where' }, 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: [ + name: { kind: 'Name', value: 'timestamp' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_gte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day6Start' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day6End' } + } + } + ] + } + }, { kind: 'ObjectField', - name: { kind: 'Name', value: 'total_mined_blocks' }, + name: { kind: 'Name', value: 'extrinsic_id' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: '_gt' }, - value: { kind: 'IntValue', value: '0' } + name: { kind: 'Name', value: '_is_null' }, + value: { kind: 'BooleanValue', value: false } } ] } @@ -18927,110 +15236,68 @@ export const GetMinerLeaderboardDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'total_mined_blocks' } + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'count' } } + ] + } } ] } - } - ] - } - } - ] -} 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' }, + alias: { kind: 'Name', value: 'activeAccountsDay6' }, + name: { kind: 'Name', value: 'transfer_aggregate' }, 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' } + 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: 'day6Start' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'day6End' } + } + } + ] + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'from_id' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_is_null' }, + value: { kind: 'BooleanValue', value: false } + } + ] + } + } + ] } } ], @@ -19039,45 +15306,62 @@ export const GetMinerRewardsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: 'aggregate' }, 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' } } + name: { kind: 'Name', value: 'count' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'columns' }, + value: { + kind: 'ListValue', + values: [{ kind: 'EnumValue', value: 'from_id' }] + } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'distinct' }, + value: { kind: 'BooleanValue', value: true } + } + ] + } ] } - }, - { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } } + } ] } - }, + } + ] + } + } + ] +} 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: 'meta' }, - name: { kind: 'Name', value: 'miner_reward_aggregate' }, + alias: { kind: 'Name', value: 'status' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } - } + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } } ], selectionSet: { @@ -19085,17 +15369,31 @@ export const GetMinerRewardsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - alias: { kind: 'Name', value: 'totalCount' }, - name: { kind: 'Name', value: 'count' } - } - ] - } + 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' } } ] } @@ -19104,17 +15402,14 @@ export const GetMinerRewardsDocument = { } } ] -} as unknown as DocumentNode< - GetMinerRewardsQuery, - GetMinerRewardsQueryVariables ->; -export const GetRecentMinerRewardsDocument = { +} as unknown as DocumentNode; +export const GetErrorEventsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetRecentMinerRewards' }, + name: { kind: 'Name', value: 'GetErrorEvents' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -19144,7 +15439,7 @@ export const GetRecentMinerRewardsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'miner_reward_order_by' } + name: { kind: 'Name', value: 'error_event_order_by' } } } } @@ -19157,7 +15452,7 @@ export const GetRecentMinerRewardsDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'miner_reward_bool_exp' } + name: { kind: 'Name', value: 'error_event_bool_exp' } } } ], @@ -19166,8 +15461,8 @@ export const GetRecentMinerRewardsDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'minerRewards' }, - name: { kind: 'Name', value: 'miner_reward' }, + alias: { kind: 'Name', value: 'errorEvents' }, + name: { kind: 'Name', value: 'error_event' }, arguments: [ { kind: 'Argument', @@ -19205,32 +15500,74 @@ export const GetRecentMinerRewardsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'error_docs' } }, { kind: 'Field', - name: { kind: 'Name', value: 'block' }, + 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: 'height' } + name: { kind: 'Name', value: 'pallet' } }, - { kind: 'Field', name: { kind: 'Name', value: 'hash' } } + { kind: 'Field', name: { kind: 'Name', value: 'call' } } ] } }, - { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, { kind: 'Field', - name: { kind: 'Name', value: 'miner' }, + 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: 'timestamp' } } + } + ] + } + }, + { + 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' } + } + ] + } + } ] } } @@ -19238,17 +15575,14 @@ export const GetRecentMinerRewardsDocument = { } } ] -} as unknown as DocumentNode< - GetRecentMinerRewardsQuery, - GetRecentMinerRewardsQueryVariables ->; -export const GetMinerRewardsStatsDocument = { +} as unknown as DocumentNode; +export const GetErrorEventsStatsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMinerRewardsStats' }, + name: { kind: 'Name', value: 'GetErrorEventsStats' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -19285,7 +15619,7 @@ export const GetMinerRewardsStatsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'last24Hour' }, - name: { kind: 'Name', value: 'miner_reward_aggregate' }, + name: { kind: 'Name', value: 'error_event_aggregate' }, arguments: [ { kind: 'Argument', @@ -19358,7 +15692,7 @@ export const GetMinerRewardsStatsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'total_miner_rewards' } + name: { kind: 'Name', value: 'total_error_events' } } ] } @@ -19368,20 +15702,132 @@ export const GetMinerRewardsStatsDocument = { } ] } as unknown as DocumentNode< - GetMinerRewardsStatsQuery, - GetMinerRewardsStatsQueryVariables + 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 GetMinerRewardByHashDocument = { +export const GetExecutedReversibleTransactionByTxIdDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMinerRewardByHash' }, + name: { kind: 'Name', value: 'GetExecutedReversibleTransactionByTxId' }, variableDefinitions: [ { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, + variable: { + kind: 'Variable', + name: { kind: 'Name', value: 'tx_id' } + }, type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } @@ -19393,8 +15839,8 @@ export const GetMinerRewardByHashDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'minerRewards' }, - name: { kind: 'Name', value: 'miner_reward' }, + alias: { kind: 'Name', value: 'executedReversibleTransactions' }, + name: { kind: 'Name', value: 'executed_reversible_transfer' }, arguments: [ { kind: 'Argument', @@ -19404,25 +15850,16 @@ export const GetMinerRewardByHashDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: 'tx_id' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'hash' }, + name: { kind: 'Name', value: '_eq' }, value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } - } - } - ] + kind: 'Variable', + name: { kind: 'Name', value: 'tx_id' } } } ] @@ -19435,32 +15872,62 @@ export const GetMinerRewardByHashDocument = { 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: 'hash' } } + { kind: 'Field', name: { kind: 'Name', value: 'height' } } ] } }, - { kind: 'Field', name: { kind: 'Name', value: 'reward' } }, { kind: 'Field', - name: { kind: 'Name', value: 'miner' }, + name: { kind: 'Name', value: 'scheduledTransfer' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } + { + 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' } + } + ] + } + } ] } - }, - { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } } + } ] } } @@ -19469,16 +15936,16 @@ export const GetMinerRewardByHashDocument = { } ] } as unknown as DocumentNode< - GetMinerRewardByHashQuery, - GetMinerRewardByHashQueryVariables + GetExecutedReversibleTransactionByTxIdQuery, + GetExecutedReversibleTransactionByTxIdQueryVariables >; -export const GetMultisigCreatedDocument = { +export const GetHighSecuritySetsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigCreated' }, + name: { kind: 'Name', value: 'GetHighSecuritySets' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -19508,7 +15975,7 @@ export const GetMultisigCreatedDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'multisig_order_by' } + name: { kind: 'Name', value: 'high_security_set_order_by' } } } } @@ -19521,7 +15988,7 @@ export const GetMultisigCreatedDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'multisig_bool_exp' } + name: { kind: 'Name', value: 'high_security_set_bool_exp' } } } ], @@ -19530,8 +15997,8 @@ export const GetMultisigCreatedDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'multisigCreatedEvents' }, - name: { kind: 'Name', value: 'multisig' }, + alias: { kind: 'Name', value: 'highSecuritySets' }, + name: { kind: 'Name', value: 'high_security_set' }, arguments: [ { kind: 'Argument', @@ -19569,161 +16036,68 @@ export const GetMultisigCreatedDocument = { 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: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'extrinsic' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - alias: { kind: 'Name', value: 'totalCount' }, - name: { kind: 'Name', value: 'count' } - } + 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: '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 GetRecentMultisigCreatedDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetRecentMultisigCreated' }, - 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: 'orderBy' } }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'multisig_order_by' } - } - } - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'multisigCreatedEvents' }, - name: { kind: 'Name', value: 'multisig' }, + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'high_security_set_aggregate' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'limit' } - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, + name: { kind: 'Name', value: 'where' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } + name: { kind: 'Name', value: 'where' } } } ], @@ -19731,77 +16105,37 @@ export const GetRecentMultisigCreatedDocument = { kind: 'SelectionSet', selections: [ { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'MultisigCreatedFields' } + 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< - GetRecentMultisigCreatedQuery, - GetRecentMultisigCreatedQueryVariables + GetHighSecuritySetsQuery, + GetHighSecuritySetsQueryVariables >; -export const GetMultisigCreatedStatsDocument = { +export const GetHighSecuritySetsStatsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigCreatedStats' }, + name: { kind: 'Name', value: 'GetHighSecuritySetsStats' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -19838,7 +16172,7 @@ export const GetMultisigCreatedStatsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'last24Hour' }, - name: { kind: 'Name', value: 'multisig_aggregate' }, + name: { kind: 'Name', value: 'high_security_set_aggregate' }, arguments: [ { kind: 'Argument', @@ -19911,7 +16245,7 @@ export const GetMultisigCreatedStatsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'total_multisigs_created' } + name: { kind: 'Name', value: 'total_high_security_sets' } } ] } @@ -19921,16 +16255,16 @@ export const GetMultisigCreatedStatsDocument = { } ] } as unknown as DocumentNode< - GetMultisigCreatedStatsQuery, - GetMultisigCreatedStatsQueryVariables + GetHighSecuritySetsStatsQuery, + GetHighSecuritySetsStatsQueryVariables >; -export const GetMultisigCreatedByHashDocument = { +export const GetHighSecuritySetByHashDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigCreatedByHash' }, + name: { kind: 'Name', value: 'GetHighSecuritySetByHash' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -19946,8 +16280,8 @@ export const GetMultisigCreatedByHashDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'multisigCreatedEvents' }, - name: { kind: 'Name', value: 'multisig' }, + alias: { kind: 'Name', value: 'highSecuritySets' }, + name: { kind: 'Name', value: 'high_security_set' }, arguments: [ { kind: 'Argument', @@ -19985,162 +16319,57 @@ export const GetMultisigCreatedByHashDocument = { } } ], - 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' } } + 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' } } + ] + } + } ] } } @@ -20149,50 +16378,28 @@ export const GetMultisigByIdDocument = { } ] } as unknown as DocumentNode< - GetMultisigByIdQuery, - GetMultisigByIdQueryVariables + GetHighSecuritySetByHashQuery, + GetHighSecuritySetByHashQueryVariables >; -export const GetMultisigDepositsClaimedDocument = { +export const GetMinerLeaderboardStatsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigDepositsClaimed' }, + name: { kind: 'Name', value: 'GetMinerLeaderboardStats' }, 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' } + name: { kind: 'Name', value: 'startDate' } }, type: { - kind: 'ListType', + kind: 'NonNullType', type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { - kind: 'Name', - value: 'multisig_deposits_claimed_order_by' - } - } + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } } } }, @@ -20200,11 +16407,14 @@ export const GetMultisigDepositsClaimedDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'where' } + name: { kind: 'Name', value: 'endDate' } }, type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'multisig_deposits_claimed_bool_exp' } + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } } } ], @@ -20213,66 +16423,63 @@ export const GetMultisigDepositsClaimedDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'multisigDepositsClaimedEvents' }, - name: { kind: 'Name', value: 'multisig_deposits_claimed' }, + alias: { kind: 'Name', value: 'chain' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, 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' } - } + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } } ], selectionSet: { kind: 'SelectionSet', selections: [ { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'MultisigDepositsClaimedFields' } - } + kind: 'Field', + name: { kind: 'Name', value: 'block_height' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'total_miners' } } ] } }, { kind: 'Field', - alias: { kind: 'Name', value: 'meta' }, - name: { - kind: 'Name', - value: 'multisig_deposits_claimed_aggregate' - }, + alias: { kind: 'Name', value: 'last24Hour' }, + name: { kind: 'Name', value: 'miner_reward_aggregate' }, arguments: [ { kind: 'Argument', name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } + 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' } + } + } + ] + } + } + ] } } ], @@ -20298,60 +16505,113 @@ export const GetMultisigDepositsClaimedDocument = { } ] } - }, + } + ] +} as unknown as DocumentNode< + GetMinerLeaderboardStatsQuery, + GetMinerLeaderboardStatsQueryVariables +>; +export const GetMinerLeaderboardChartDocument = { + kind: 'Document', + definitions: [ { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MultisigDepositsClaimedFields' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'multisig_deposits_claimed' } - }, + 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', 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' }, + 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: 'height' } } + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_mined_blocks' } + } ] } }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsic' }, + 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', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, - { kind: 'Field', name: { kind: 'Name', value: 'call' } } + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'block_height' } + } ] } } @@ -20360,16 +16620,16 @@ export const GetMultisigDepositsClaimedDocument = { } ] } as unknown as DocumentNode< - GetMultisigDepositsClaimedQuery, - GetMultisigDepositsClaimedQueryVariables + GetMinerLeaderboardChartQuery, + GetMinerLeaderboardChartQueryVariables >; -export const GetRecentMultisigDepositsClaimedDocument = { +export const GetMinerLeaderboardDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetRecentMultisigDepositsClaimed' }, + name: { kind: 'Name', value: 'GetMinerLeaderboard' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -20383,21 +16643,9 @@ export const GetRecentMultisigDepositsClaimedDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } + name: { kind: 'Name', value: 'offset' } }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { - kind: 'Name', - value: 'multisig_deposits_claimed_order_by' - } - } - } - } + type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } } ], selectionSet: { @@ -20405,8 +16653,8 @@ export const GetRecentMultisigDepositsClaimedDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'multisigDepositsClaimedEvents' }, - name: { kind: 'Name', value: 'multisig_deposits_claimed' }, + alias: { kind: 'Name', value: 'leaderboardEntries' }, + name: { kind: 'Name', value: 'account_stats' }, arguments: [ { kind: 'Argument', @@ -20418,79 +16666,143 @@ export const GetRecentMultisigDepositsClaimedDocument = { }, { kind: 'Argument', - name: { kind: 'Name', value: 'order_by' }, + name: { kind: 'Name', value: 'offset' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } + 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: 'FragmentSpread', - name: { kind: 'Name', value: 'MultisigDepositsClaimedFields' } + kind: 'Field', + name: { kind: 'Name', value: 'total_mined_blocks' } + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'total_rewards' } } ] } - } - ] - } - }, - { - 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' }, + 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', name: { kind: 'Name', value: 'height' } } + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'total_miners' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'block_height' } } ] } }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsic' }, + 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: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, - { kind: 'Field', name: { kind: 'Name', value: 'call' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'total_mined_blocks' } + } ] } } @@ -20499,28 +16811,47 @@ export const GetRecentMultisigDepositsClaimedDocument = { } ] } as unknown as DocumentNode< - GetRecentMultisigDepositsClaimedQuery, - GetRecentMultisigDepositsClaimedQueryVariables + GetMinerLeaderboardQuery, + GetMinerLeaderboardQueryVariables >; -export const GetMultisigDepositsClaimedStatsDocument = { +export const GetMinerRewardsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigDepositsClaimedStats' }, + name: { kind: 'Name', value: 'GetMinerRewards' }, variableDefinitions: [ { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'startDate' } + 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', + kind: 'ListType', type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'timestamptz' } + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'miner_reward_order_by' } + } } } }, @@ -20528,14 +16859,11 @@ export const GetMultisigDepositsClaimedStatsDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'endDate' } + name: { kind: 'Name', value: 'where' } }, type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'timestamptz' } - } + kind: 'NamedType', + name: { kind: 'Name', value: 'miner_reward_bool_exp' } } } ], @@ -20544,44 +16872,39 @@ export const GetMultisigDepositsClaimedStatsDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'last24Hour' }, - name: { - kind: 'Name', - value: 'multisig_deposits_claimed_aggregate' - }, + 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: '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' } - } - } - ] - } - } - ] + kind: 'Variable', + name: { kind: 'Name', value: 'where' } } } ], @@ -20590,111 +16913,44 @@ export const GetMultisigDepositsClaimedStatsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'block' }, selectionSet: { kind: 'SelectionSet', selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'totalCount' }, - name: { kind: 'Name', value: 'count' } - } + name: { kind: 'Name', value: 'height' } + }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } } ] } - } - ] - } - }, - { - 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: 'reward' } }, { kind: 'Field', - name: { - kind: 'Name', - value: 'total_multisig_deposits_claimed' + 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< - 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' }, + alias: { kind: 'Name', value: 'meta' }, + 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: '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: 'Variable', + name: { kind: 'Name', value: 'where' } } } ], @@ -20702,120 +16958,49 @@ export const GetMultisigDepositsClaimedByHashDocument = { kind: 'SelectionSet', selections: [ { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'MultisigDepositsClaimedFields' } + 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< - GetMultisigDepositsClaimedByHashQuery, - GetMultisigDepositsClaimedByHashQueryVariables + GetMinerRewardsQuery, + GetMinerRewardsQueryVariables >; -export const GetMultisigProposalCancelledDocument = { +export const GetMinerRewardsStatsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigProposalCancelled' }, + name: { kind: 'Name', value: 'GetMinerRewardsStats' }, 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' } + name: { kind: 'Name', value: 'startDate' } }, type: { - kind: 'ListType', + kind: 'NonNullType', type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { - kind: 'Name', - value: 'cancelled_multisig_proposal_order_by' - } - } + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } } } }, @@ -20823,13 +17008,13 @@ export const GetMultisigProposalCancelledDocument = { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'where' } + name: { kind: 'Name', value: 'endDate' } }, type: { - kind: 'NamedType', - name: { - kind: 'Name', - value: 'cancelled_multisig_proposal_bool_exp' + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } } } } @@ -20839,39 +17024,41 @@ export const GetMultisigProposalCancelledDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'multisigProposalCancelledEvents' }, - name: { kind: 'Name', value: 'cancelled_multisig_proposal' }, + alias: { kind: 'Name', value: 'last24Hour' }, + name: { kind: 'Name', value: 'miner_reward_aggregate' }, 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' } + 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' } + } + } + ] + } + } + ] } } ], @@ -20879,10 +17066,17 @@ export const GetMultisigProposalCancelledDocument = { kind: 'SelectionSet', selections: [ { - kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'MultisigProposalCancelledFields' + kind: 'Field', + name: { kind: 'Name', value: 'aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } + ] } } ] @@ -20890,19 +17084,13 @@ export const GetMultisigProposalCancelledDocument = { }, { kind: 'Field', - alias: { kind: 'Name', value: 'meta' }, - name: { - kind: 'Name', - value: 'cancelled_multisig_proposal_aggregate' - }, + alias: { kind: 'Name', value: 'allTime' }, + name: { kind: 'Name', value: 'chain_stats_by_pk' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } - } + name: { kind: 'Name', value: 'id' }, + value: { kind: 'StringValue', value: 'global', block: false } } ], selectionSet: { @@ -20910,95 +17098,109 @@ export const GetMultisigProposalCancelledDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - alias: { kind: 'Name', value: 'totalCount' }, - name: { kind: 'Name', value: 'count' } - } - ] - } + name: { kind: 'Name', value: 'total_miner_rewards' } } ] } } ] } - }, + } + ] +} as unknown as DocumentNode< + GetMinerRewardsStatsQuery, + GetMinerRewardsStatsQueryVariables +>; +export const GetMinerRewardByHashDocument = { + kind: 'Document', + definitions: [ { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MultisigProposalCancelledFields' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'cancelled_multisig_proposal' } - }, + 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', 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' }, + 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: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'multisig' }, + 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: 'reward' } }, { kind: 'Field', - name: { kind: 'Name', value: 'proposer' }, + 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: '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: 'timestamp' } } ] } } @@ -21007,16 +17209,16 @@ export const GetMultisigProposalCancelledDocument = { } ] } as unknown as DocumentNode< - GetMultisigProposalCancelledQuery, - GetMultisigProposalCancelledQueryVariables + GetMinerRewardByHashQuery, + GetMinerRewardByHashQueryVariables >; -export const GetRecentMultisigProposalCancelledDocument = { +export const GetMultisigCreatedDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetRecentMultisigProposalCancelled' }, + name: { kind: 'Name', value: 'GetMultisigCreated' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -21026,6 +17228,14 @@ export const GetRecentMultisigProposalCancelledDocument = { }, 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: { @@ -21038,13 +17248,21 @@ export const GetRecentMultisigProposalCancelledDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { - kind: 'Name', - value: 'cancelled_multisig_proposal_order_by' - } + 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: { @@ -21052,8 +17270,8 @@ export const GetRecentMultisigProposalCancelledDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'multisigProposalCancelledEvents' }, - name: { kind: 'Name', value: 'cancelled_multisig_proposal' }, + alias: { kind: 'Name', value: 'multisigCreatedEvents' }, + name: { kind: 'Name', value: 'multisig' }, arguments: [ { kind: 'Argument', @@ -21063,6 +17281,14 @@ export const GetRecentMultisigProposalCancelledDocument = { 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' }, @@ -21070,6 +17296,14 @@ export const GetRecentMultisigProposalCancelledDocument = { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } } + }, + { + kind: 'Argument', + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } } ], selectionSet: { @@ -21077,9 +17311,40 @@ export const GetRecentMultisigProposalCancelledDocument = { selections: [ { kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'MultisigProposalCancelledFields' + 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' } + } + ] } } ] @@ -21090,19 +17355,22 @@ export const GetRecentMultisigProposalCancelledDocument = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MultisigProposalCancelledFields' }, + name: { kind: 'Name', value: 'MultisigCreatedFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'cancelled_multisig_proposal' } + 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: 'cancelledBy' }, + name: { kind: 'Name', value: 'creator' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -21110,36 +17378,6 @@ export const GetRecentMultisigProposalCancelledDocument = { ] } }, - { - 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' }, @@ -21167,16 +17405,16 @@ export const GetRecentMultisigProposalCancelledDocument = { } ] } as unknown as DocumentNode< - GetRecentMultisigProposalCancelledQuery, - GetRecentMultisigProposalCancelledQueryVariables + GetMultisigCreatedQuery, + GetMultisigCreatedQueryVariables >; -export const GetMultisigProposalCancelledStatsDocument = { +export const GetMultisigCreatedStatsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigProposalCancelledStats' }, + name: { kind: 'Name', value: 'GetMultisigCreatedStats' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -21213,10 +17451,7 @@ export const GetMultisigProposalCancelledStatsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'last24Hour' }, - name: { - kind: 'Name', - value: 'cancelled_multisig_proposal_aggregate' - }, + name: { kind: 'Name', value: 'multisig_aggregate' }, arguments: [ { kind: 'Argument', @@ -21289,10 +17524,7 @@ export const GetMultisigProposalCancelledStatsDocument = { selections: [ { kind: 'Field', - name: { - kind: 'Name', - value: 'total_multisig_proposals_cancelled' - } + name: { kind: 'Name', value: 'total_multisigs_created' } } ] } @@ -21302,16 +17534,16 @@ export const GetMultisigProposalCancelledStatsDocument = { } ] } as unknown as DocumentNode< - GetMultisigProposalCancelledStatsQuery, - GetMultisigProposalCancelledStatsQueryVariables + GetMultisigCreatedStatsQuery, + GetMultisigCreatedStatsQueryVariables >; -export const GetMultisigProposalCancelledByHashDocument = { +export const GetMultisigCreatedByHashDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigProposalCancelledByHash' }, + name: { kind: 'Name', value: 'GetMultisigCreatedByHash' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -21327,8 +17559,8 @@ export const GetMultisigProposalCancelledByHashDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'multisigProposalCancelledEvents' }, - name: { kind: 'Name', value: 'cancelled_multisig_proposal' }, + alias: { kind: 'Name', value: 'multisigCreatedEvents' }, + name: { kind: 'Name', value: 'multisig' }, arguments: [ { kind: 'Argument', @@ -21371,10 +17603,7 @@ export const GetMultisigProposalCancelledByHashDocument = { selections: [ { kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'MultisigProposalCancelledFields' - } + name: { kind: 'Name', value: 'MultisigCreatedFields' } } ] } @@ -21384,19 +17613,22 @@ export const GetMultisigProposalCancelledByHashDocument = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MultisigProposalCancelledFields' }, + name: { kind: 'Name', value: 'MultisigCreatedFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'cancelled_multisig_proposal' } + 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: 'cancelledBy' }, + name: { kind: 'Name', value: 'creator' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -21406,33 +17638,102 @@ export const GetMultisigProposalCancelledByHashDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'proposal' }, + 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: '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: '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', @@ -21461,16 +17762,16 @@ export const GetMultisigProposalCancelledByHashDocument = { } ] } as unknown as DocumentNode< - GetMultisigProposalCancelledByHashQuery, - GetMultisigProposalCancelledByHashQueryVariables + GetMultisigByIdQuery, + GetMultisigByIdQueryVariables >; -export const GetMultisigProposalCreatedDocument = { +export const GetMultisigDepositsClaimedDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigProposalCreated' }, + name: { kind: 'Name', value: 'GetMultisigDepositsClaimed' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -21502,7 +17803,7 @@ export const GetMultisigProposalCreatedDocument = { kind: 'NamedType', name: { kind: 'Name', - value: 'multisig_proposal_created_order_by' + value: 'multisig_deposits_claimed_order_by' } } } @@ -21516,7 +17817,7 @@ export const GetMultisigProposalCreatedDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'multisig_proposal_created_bool_exp' } + name: { kind: 'Name', value: 'multisig_deposits_claimed_bool_exp' } } } ], @@ -21525,8 +17826,8 @@ export const GetMultisigProposalCreatedDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'multisigProposalCreatedEvents' }, - name: { kind: 'Name', value: 'multisig_proposal_created' }, + alias: { kind: 'Name', value: 'multisigDepositsClaimedEvents' }, + name: { kind: 'Name', value: 'multisig_deposits_claimed' }, arguments: [ { kind: 'Argument', @@ -21566,7 +17867,7 @@ export const GetMultisigProposalCreatedDocument = { selections: [ { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'MultisigProposalCreatedFields' } + name: { kind: 'Name', value: 'MultisigDepositsClaimedFields' } } ] } @@ -21576,7 +17877,7 @@ export const GetMultisigProposalCreatedDocument = { alias: { kind: 'Name', value: 'meta' }, name: { kind: 'Name', - value: 'multisig_proposal_created_aggregate' + value: 'multisig_deposits_claimed_aggregate' }, arguments: [ { @@ -21613,182 +17914,21 @@ export const GetMultisigProposalCreatedDocument = { }, { 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' }, + name: { kind: 'Name', value: 'MultisigDepositsClaimedFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'multisig_proposal_created' } + 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: '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 GetRecentMultisigProposalCreatedDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetRecentMultisigProposalCreated' }, - 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: 'orderBy' } - }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { - kind: 'Name', - value: 'multisig_proposal_created_order_by' - } - } - } - } - } - ], - 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: 'order_by' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } - } - } - ], - 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' }, + name: { kind: 'Name', value: 'claimer' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -21798,41 +17938,13 @@ export const GetRecentMultisigProposalCreatedDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'proposer' }, + name: { kind: 'Name', value: 'multisig' }, 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', @@ -21861,16 +17973,16 @@ export const GetRecentMultisigProposalCreatedDocument = { } ] } as unknown as DocumentNode< - GetRecentMultisigProposalCreatedQuery, - GetRecentMultisigProposalCreatedQueryVariables + GetMultisigDepositsClaimedQuery, + GetMultisigDepositsClaimedQueryVariables >; -export const GetMultisigProposalCreatedStatsDocument = { +export const GetMultisigDepositsClaimedStatsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigProposalCreatedStats' }, + name: { kind: 'Name', value: 'GetMultisigDepositsClaimedStats' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -21909,7 +18021,7 @@ export const GetMultisigProposalCreatedStatsDocument = { alias: { kind: 'Name', value: 'last24Hour' }, name: { kind: 'Name', - value: 'multisig_proposal_created_aggregate' + value: 'multisig_deposits_claimed_aggregate' }, arguments: [ { @@ -21983,7 +18095,10 @@ export const GetMultisigProposalCreatedStatsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'total_multisig_proposals' } + name: { + kind: 'Name', + value: 'total_multisig_deposits_claimed' + } } ] } @@ -21992,17 +18107,17 @@ export const GetMultisigProposalCreatedStatsDocument = { } } ] -} as unknown as DocumentNode< - GetMultisigProposalCreatedStatsQuery, - GetMultisigProposalCreatedStatsQueryVariables +} as unknown as DocumentNode< + GetMultisigDepositsClaimedStatsQuery, + GetMultisigDepositsClaimedStatsQueryVariables >; -export const GetMultisigProposalCreatedByHashDocument = { +export const GetMultisigDepositsClaimedByHashDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigProposalCreatedByHash' }, + name: { kind: 'Name', value: 'GetMultisigDepositsClaimedByHash' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -22018,8 +18133,8 @@ export const GetMultisigProposalCreatedByHashDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'multisigProposalCreatedEvents' }, - name: { kind: 'Name', value: 'multisig_proposal_created' }, + alias: { kind: 'Name', value: 'multisigDepositsClaimedEvents' }, + name: { kind: 'Name', value: 'multisig_deposits_claimed' }, arguments: [ { kind: 'Argument', @@ -22062,7 +18177,7 @@ export const GetMultisigProposalCreatedByHashDocument = { selections: [ { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'MultisigProposalCreatedFields' } + name: { kind: 'Name', value: 'MultisigDepositsClaimedFields' } } ] } @@ -22072,18 +18187,21 @@ export const GetMultisigProposalCreatedByHashDocument = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MultisigProposalRefFields' }, + name: { kind: 'Name', value: 'MultisigDepositsClaimedFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'multisig_proposal' } + 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: 'multisig' }, + name: { kind: 'Name', value: 'claimer' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -22093,41 +18211,13 @@ export const GetMultisigProposalCreatedByHashDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'proposer' }, + name: { kind: 'Name', value: 'multisig' }, 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', @@ -22156,16 +18246,16 @@ export const GetMultisigProposalCreatedByHashDocument = { } ] } as unknown as DocumentNode< - GetMultisigProposalCreatedByHashQuery, - GetMultisigProposalCreatedByHashQueryVariables + GetMultisigDepositsClaimedByHashQuery, + GetMultisigDepositsClaimedByHashQueryVariables >; -export const GetMultisigProposalExecutedDocument = { +export const GetMultisigProposalCancelledDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigProposalExecuted' }, + name: { kind: 'Name', value: 'GetMultisigProposalCancelled' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -22197,7 +18287,7 @@ export const GetMultisigProposalExecutedDocument = { kind: 'NamedType', name: { kind: 'Name', - value: 'executed_multisig_proposal_order_by' + value: 'cancelled_multisig_proposal_order_by' } } } @@ -22211,7 +18301,10 @@ export const GetMultisigProposalExecutedDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'executed_multisig_proposal_bool_exp' } + name: { + kind: 'Name', + value: 'cancelled_multisig_proposal_bool_exp' + } } } ], @@ -22220,8 +18313,8 @@ export const GetMultisigProposalExecutedDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'multisigProposalExecutedEvents' }, - name: { kind: 'Name', value: 'executed_multisig_proposal' }, + alias: { kind: 'Name', value: 'multisigProposalCancelledEvents' }, + name: { kind: 'Name', value: 'cancelled_multisig_proposal' }, arguments: [ { kind: 'Argument', @@ -22263,7 +18356,7 @@ export const GetMultisigProposalExecutedDocument = { kind: 'FragmentSpread', name: { kind: 'Name', - value: 'MultisigProposalExecutedFields' + value: 'MultisigProposalCancelledFields' } } ] @@ -22274,7 +18367,7 @@ export const GetMultisigProposalExecutedDocument = { alias: { kind: 'Name', value: 'meta' }, name: { kind: 'Name', - value: 'executed_multisig_proposal_aggregate' + value: 'cancelled_multisig_proposal_aggregate' }, arguments: [ { @@ -22311,170 +18404,26 @@ export const GetMultisigProposalExecutedDocument = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MultisigProposalExecutedFields' }, + name: { kind: 'Name', value: 'MultisigProposalCancelledFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'executed_multisig_proposal' } + 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: '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' }, + name: { kind: 'Name', value: 'cancelledBy' }, 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' } } ] } - } - ] - } - } - ] -} as unknown as DocumentNode< - GetMultisigProposalExecutedQuery, - GetMultisigProposalExecutedQueryVariables ->; -export const GetRecentMultisigProposalExecutedDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetRecentMultisigProposalExecuted' }, - 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: 'orderBy' } }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { - kind: 'Name', - value: 'executed_multisig_proposal_order_by' - } - } - } - } - } - ], - 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: 'order_by' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } - } - } - ], - 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' }, @@ -22532,16 +18481,16 @@ export const GetRecentMultisigProposalExecutedDocument = { } ] } as unknown as DocumentNode< - GetRecentMultisigProposalExecutedQuery, - GetRecentMultisigProposalExecutedQueryVariables + GetMultisigProposalCancelledQuery, + GetMultisigProposalCancelledQueryVariables >; -export const GetMultisigProposalExecutedStatsDocument = { +export const GetMultisigProposalCancelledStatsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigProposalExecutedStats' }, + name: { kind: 'Name', value: 'GetMultisigProposalCancelledStats' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -22580,7 +18529,7 @@ export const GetMultisigProposalExecutedStatsDocument = { alias: { kind: 'Name', value: 'last24Hour' }, name: { kind: 'Name', - value: 'executed_multisig_proposal_aggregate' + value: 'cancelled_multisig_proposal_aggregate' }, arguments: [ { @@ -22656,7 +18605,7 @@ export const GetMultisigProposalExecutedStatsDocument = { kind: 'Field', name: { kind: 'Name', - value: 'total_multisig_proposals_executed' + value: 'total_multisig_proposals_cancelled' } } ] @@ -22667,16 +18616,16 @@ export const GetMultisigProposalExecutedStatsDocument = { } ] } as unknown as DocumentNode< - GetMultisigProposalExecutedStatsQuery, - GetMultisigProposalExecutedStatsQueryVariables + GetMultisigProposalCancelledStatsQuery, + GetMultisigProposalCancelledStatsQueryVariables >; -export const GetMultisigProposalExecutedByHashDocument = { +export const GetMultisigProposalCancelledByHashDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigProposalExecutedByHash' }, + name: { kind: 'Name', value: 'GetMultisigProposalCancelledByHash' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -22692,8 +18641,8 @@ export const GetMultisigProposalExecutedByHashDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'multisigProposalExecutedEvents' }, - name: { kind: 'Name', value: 'executed_multisig_proposal' }, + alias: { kind: 'Name', value: 'multisigProposalCancelledEvents' }, + name: { kind: 'Name', value: 'cancelled_multisig_proposal' }, arguments: [ { kind: 'Argument', @@ -22738,7 +18687,7 @@ export const GetMultisigProposalExecutedByHashDocument = { kind: 'FragmentSpread', name: { kind: 'Name', - value: 'MultisigProposalExecutedFields' + value: 'MultisigProposalCancelledFields' } } ] @@ -22749,18 +18698,26 @@ export const GetMultisigProposalExecutedByHashDocument = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MultisigProposalExecutedFields' }, + name: { kind: 'Name', value: 'MultisigProposalCancelledFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'executed_multisig_proposal' } + 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: 'approvers' } }, - { kind: 'Field', name: { kind: 'Name', value: 'result' } }, + { + 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' }, @@ -22818,16 +18775,16 @@ export const GetMultisigProposalExecutedByHashDocument = { } ] } as unknown as DocumentNode< - GetMultisigProposalExecutedByHashQuery, - GetMultisigProposalExecutedByHashQueryVariables + GetMultisigProposalCancelledByHashQuery, + GetMultisigProposalCancelledByHashQueryVariables >; -export const GetMultisigProposalReadyDocument = { +export const GetMultisigProposalCreatedDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigProposalReady' }, + name: { kind: 'Name', value: 'GetMultisigProposalCreated' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -22859,7 +18816,7 @@ export const GetMultisigProposalReadyDocument = { kind: 'NamedType', name: { kind: 'Name', - value: 'multisig_proposal_ready_order_by' + value: 'multisig_proposal_created_order_by' } } } @@ -22873,7 +18830,7 @@ export const GetMultisigProposalReadyDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'multisig_proposal_ready_bool_exp' } + name: { kind: 'Name', value: 'multisig_proposal_created_bool_exp' } } } ], @@ -22882,8 +18839,8 @@ export const GetMultisigProposalReadyDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'multisigProposalReadyEvents' }, - name: { kind: 'Name', value: 'multisig_proposal_ready' }, + alias: { kind: 'Name', value: 'multisigProposalCreatedEvents' }, + name: { kind: 'Name', value: 'multisig_proposal_created' }, arguments: [ { kind: 'Argument', @@ -22923,7 +18880,7 @@ export const GetMultisigProposalReadyDocument = { selections: [ { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'MultisigProposalReadyFields' } + name: { kind: 'Name', value: 'MultisigProposalCreatedFields' } } ] } @@ -22931,7 +18888,10 @@ export const GetMultisigProposalReadyDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'meta' }, - name: { kind: 'Name', value: 'multisig_proposal_ready_aggregate' }, + name: { + kind: 'Name', + value: 'multisig_proposal_created_aggregate' + }, arguments: [ { kind: 'Argument', @@ -22967,146 +18927,32 @@ export const GetMultisigProposalReadyDocument = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MultisigProposalReadyFields' }, + name: { kind: 'Name', value: 'MultisigProposalRefFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'multisig_proposal_ready' } + name: { kind: 'Name', value: '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: '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' }, + name: { kind: 'Name', value: 'multisig' }, 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' } } ] } - } - ] - } - } - ] -} as unknown as DocumentNode< - GetMultisigProposalReadyQuery, - GetMultisigProposalReadyQueryVariables ->; -export const GetRecentMultisigProposalReadyDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetRecentMultisigProposalReady' }, - 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: 'orderBy' } }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { - kind: 'Name', - value: 'multisig_proposal_ready_order_by' - } - } - } - } - } - ], - 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: 'order_by' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } - } - } - ], + name: { kind: 'Name', value: 'proposer' }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'MultisigProposalReadyFields' } - } + { kind: 'Field', name: { kind: 'Name', value: 'id' } } ] } } @@ -23115,43 +18961,25 @@ export const GetRecentMultisigProposalReadyDocument = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MultisigProposalReadyFields' }, + name: { kind: 'Name', value: 'MultisigProposalCreatedFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'multisig_proposal_ready' } + 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: '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: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigProposalRefFields' } } ] } @@ -23183,16 +19011,16 @@ export const GetRecentMultisigProposalReadyDocument = { } ] } as unknown as DocumentNode< - GetRecentMultisigProposalReadyQuery, - GetRecentMultisigProposalReadyQueryVariables + GetMultisigProposalCreatedQuery, + GetMultisigProposalCreatedQueryVariables >; -export const GetMultisigProposalReadyStatsDocument = { +export const GetMultisigProposalCreatedStatsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigProposalReadyStats' }, + name: { kind: 'Name', value: 'GetMultisigProposalCreatedStats' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -23229,7 +19057,10 @@ export const GetMultisigProposalReadyStatsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'last24Hour' }, - name: { kind: 'Name', value: 'multisig_proposal_ready_aggregate' }, + name: { + kind: 'Name', + value: 'multisig_proposal_created_aggregate' + }, arguments: [ { kind: 'Argument', @@ -23302,7 +19133,7 @@ export const GetMultisigProposalReadyStatsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'total_multisig_proposal_ready' } + name: { kind: 'Name', value: 'total_multisig_proposals' } } ] } @@ -23312,16 +19143,16 @@ export const GetMultisigProposalReadyStatsDocument = { } ] } as unknown as DocumentNode< - GetMultisigProposalReadyStatsQuery, - GetMultisigProposalReadyStatsQueryVariables + GetMultisigProposalCreatedStatsQuery, + GetMultisigProposalCreatedStatsQueryVariables >; -export const GetMultisigProposalReadyByHashDocument = { +export const GetMultisigProposalCreatedByHashDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigProposalReadyByHash' }, + name: { kind: 'Name', value: 'GetMultisigProposalCreatedByHash' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -23337,8 +19168,8 @@ export const GetMultisigProposalReadyByHashDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'multisigProposalReadyEvents' }, - name: { kind: 'Name', value: 'multisig_proposal_ready' }, + alias: { kind: 'Name', value: 'multisigProposalCreatedEvents' }, + name: { kind: 'Name', value: 'multisig_proposal_created' }, arguments: [ { kind: 'Argument', @@ -23381,7 +19212,7 @@ export const GetMultisigProposalReadyByHashDocument = { selections: [ { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'MultisigProposalReadyFields' } + name: { kind: 'Name', value: 'MultisigProposalCreatedFields' } } ] } @@ -23391,43 +19222,59 @@ export const GetMultisigProposalReadyByHashDocument = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MultisigProposalReadyFields' }, + name: { kind: 'Name', value: 'MultisigProposalRefFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'multisig_proposal_ready' } + name: { kind: 'Name', value: '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: 'approvals_count' } }, { kind: 'Field', - name: { kind: 'Name', value: 'proposal' }, + 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: '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: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigProposalRefFields' } } ] } @@ -23459,16 +19306,16 @@ export const GetMultisigProposalReadyByHashDocument = { } ] } as unknown as DocumentNode< - GetMultisigProposalReadyByHashQuery, - GetMultisigProposalReadyByHashQueryVariables + GetMultisigProposalCreatedByHashQuery, + GetMultisigProposalCreatedByHashQueryVariables >; -export const GetMultisigProposalRemovedDocument = { +export const GetMultisigProposalExecutedDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigProposalRemoved' }, + name: { kind: 'Name', value: 'GetMultisigProposalExecuted' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -23500,7 +19347,7 @@ export const GetMultisigProposalRemovedDocument = { kind: 'NamedType', name: { kind: 'Name', - value: 'removed_multisig_proposal_order_by' + value: 'executed_multisig_proposal_order_by' } } } @@ -23514,7 +19361,7 @@ export const GetMultisigProposalRemovedDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'removed_multisig_proposal_bool_exp' } + name: { kind: 'Name', value: 'executed_multisig_proposal_bool_exp' } } } ], @@ -23523,8 +19370,8 @@ export const GetMultisigProposalRemovedDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'multisigProposalRemovedEvents' }, - name: { kind: 'Name', value: 'removed_multisig_proposal' }, + alias: { kind: 'Name', value: 'multisigProposalExecutedEvents' }, + name: { kind: 'Name', value: 'executed_multisig_proposal' }, arguments: [ { kind: 'Argument', @@ -23564,7 +19411,10 @@ export const GetMultisigProposalRemovedDocument = { selections: [ { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'MultisigProposalRemovedFields' } + name: { + kind: 'Name', + value: 'MultisigProposalExecutedFields' + } } ] } @@ -23574,7 +19424,7 @@ export const GetMultisigProposalRemovedDocument = { alias: { kind: 'Name', value: 'meta' }, name: { kind: 'Name', - value: 'removed_multisig_proposal_aggregate' + value: 'executed_multisig_proposal_aggregate' }, arguments: [ { @@ -23611,183 +19461,18 @@ export const GetMultisigProposalRemovedDocument = { }, { 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 GetRecentMultisigProposalRemovedDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetRecentMultisigProposalRemoved' }, - 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: 'orderBy' } - }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { - kind: 'Name', - value: 'removed_multisig_proposal_order_by' - } - } - } - } - } - ], - 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: 'order_by' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } - } - } - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'MultisigProposalRemovedFields' } - } - ] - } - } - ] - } - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MultisigProposalRemovedFields' }, + name: { kind: 'Name', value: 'MultisigProposalExecutedFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'removed_multisig_proposal' } + 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: 'removedBy' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } - ] - } - }, + { kind: 'Field', name: { kind: 'Name', value: 'approvers' } }, + { kind: 'Field', name: { kind: 'Name', value: 'result' } }, { kind: 'Field', name: { kind: 'Name', value: 'proposal' }, @@ -23845,16 +19530,16 @@ export const GetRecentMultisigProposalRemovedDocument = { } ] } as unknown as DocumentNode< - GetRecentMultisigProposalRemovedQuery, - GetRecentMultisigProposalRemovedQueryVariables + GetMultisigProposalExecutedQuery, + GetMultisigProposalExecutedQueryVariables >; -export const GetMultisigProposalRemovedStatsDocument = { +export const GetMultisigProposalExecutedStatsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigProposalRemovedStats' }, + name: { kind: 'Name', value: 'GetMultisigProposalExecutedStats' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -23893,7 +19578,7 @@ export const GetMultisigProposalRemovedStatsDocument = { alias: { kind: 'Name', value: 'last24Hour' }, name: { kind: 'Name', - value: 'removed_multisig_proposal_aggregate' + value: 'executed_multisig_proposal_aggregate' }, arguments: [ { @@ -23969,7 +19654,7 @@ export const GetMultisigProposalRemovedStatsDocument = { kind: 'Field', name: { kind: 'Name', - value: 'total_multisig_proposals_removed' + value: 'total_multisig_proposals_executed' } } ] @@ -23980,16 +19665,16 @@ export const GetMultisigProposalRemovedStatsDocument = { } ] } as unknown as DocumentNode< - GetMultisigProposalRemovedStatsQuery, - GetMultisigProposalRemovedStatsQueryVariables + GetMultisigProposalExecutedStatsQuery, + GetMultisigProposalExecutedStatsQueryVariables >; -export const GetMultisigProposalRemovedByHashDocument = { +export const GetMultisigProposalExecutedByHashDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigProposalRemovedByHash' }, + name: { kind: 'Name', value: 'GetMultisigProposalExecutedByHash' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -24005,8 +19690,8 @@ export const GetMultisigProposalRemovedByHashDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'multisigProposalRemovedEvents' }, - name: { kind: 'Name', value: 'removed_multisig_proposal' }, + alias: { kind: 'Name', value: 'multisigProposalExecutedEvents' }, + name: { kind: 'Name', value: 'executed_multisig_proposal' }, arguments: [ { kind: 'Argument', @@ -24049,7 +19734,10 @@ export const GetMultisigProposalRemovedByHashDocument = { selections: [ { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'MultisigProposalRemovedFields' } + name: { + kind: 'Name', + value: 'MultisigProposalExecutedFields' + } } ] } @@ -24059,26 +19747,18 @@ export const GetMultisigProposalRemovedByHashDocument = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MultisigProposalRemovedFields' }, + name: { kind: 'Name', value: 'MultisigProposalExecutedFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'removed_multisig_proposal' } + 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: 'removedBy' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } - ] - } - }, + { kind: 'Field', name: { kind: 'Name', value: 'approvers' } }, + { kind: 'Field', name: { kind: 'Name', value: 'result' } }, { kind: 'Field', name: { kind: 'Name', value: 'proposal' }, @@ -24136,16 +19816,16 @@ export const GetMultisigProposalRemovedByHashDocument = { } ] } as unknown as DocumentNode< - GetMultisigProposalRemovedByHashQuery, - GetMultisigProposalRemovedByHashQueryVariables + GetMultisigProposalExecutedByHashQuery, + GetMultisigProposalExecutedByHashQueryVariables >; -export const GetMultisigProposalsDocument = { +export const GetMultisigProposalReadyDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigProposals' }, + name: { kind: 'Name', value: 'GetMultisigProposalReady' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -24175,7 +19855,10 @@ export const GetMultisigProposalsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'multisig_proposal_order_by' } + name: { + kind: 'Name', + value: 'multisig_proposal_ready_order_by' + } } } } @@ -24188,7 +19871,7 @@ export const GetMultisigProposalsDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'multisig_proposal_bool_exp' } + name: { kind: 'Name', value: 'multisig_proposal_ready_bool_exp' } } } ], @@ -24197,8 +19880,8 @@ export const GetMultisigProposalsDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'multisigProposals' }, - name: { kind: 'Name', value: 'multisig_proposal' }, + alias: { kind: 'Name', value: 'multisigProposalReadyEvents' }, + name: { kind: 'Name', value: 'multisig_proposal_ready' }, arguments: [ { kind: 'Argument', @@ -24238,7 +19921,7 @@ export const GetMultisigProposalsDocument = { selections: [ { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'MultisigProposalListFields' } + name: { kind: 'Name', value: 'MultisigProposalReadyFields' } } ] } @@ -24246,7 +19929,7 @@ export const GetMultisigProposalsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'meta' }, - name: { kind: 'Name', value: 'multisig_proposal_aggregate' }, + name: { kind: 'Name', value: 'multisig_proposal_ready_aggregate' }, arguments: [ { kind: 'Argument', @@ -24282,37 +19965,66 @@ export const GetMultisigProposalsDocument = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MultisigProposalListFields' }, + name: { kind: 'Name', value: 'MultisigProposalReadyFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'multisig_proposal' } + name: { kind: 'Name', value: 'multisig_proposal_ready' } }, 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: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'approvals_count' } }, { kind: 'Field', - name: { kind: 'Name', value: 'multisig' }, + name: { kind: 'Name', value: 'proposal' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } + { 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: 'proposer' }, + 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: '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' } } ] } } @@ -24321,16 +20033,16 @@ export const GetMultisigProposalsDocument = { } ] } as unknown as DocumentNode< - GetMultisigProposalsQuery, - GetMultisigProposalsQueryVariables + GetMultisigProposalReadyQuery, + GetMultisigProposalReadyQueryVariables >; -export const GetMultisigProposalStatsDocument = { +export const GetMultisigProposalReadyStatsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigProposalStats' }, + name: { kind: 'Name', value: 'GetMultisigProposalReadyStats' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -24367,7 +20079,7 @@ export const GetMultisigProposalStatsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'last24Hour' }, - name: { kind: 'Name', value: 'multisig_proposal_aggregate' }, + name: { kind: 'Name', value: 'multisig_proposal_ready_aggregate' }, arguments: [ { kind: 'Argument', @@ -24377,7 +20089,7 @@ export const GetMultisigProposalStatsDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'created_at' }, + name: { kind: 'Name', value: 'timestamp' }, value: { kind: 'ObjectValue', fields: [ @@ -24440,7 +20152,7 @@ export const GetMultisigProposalStatsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'total_multisig_proposals' } + name: { kind: 'Name', value: 'total_multisig_proposal_ready' } } ] } @@ -24450,186 +20162,32 @@ export const GetMultisigProposalStatsDocument = { } ] } as unknown as DocumentNode< - GetMultisigProposalStatsQuery, - GetMultisigProposalStatsQueryVariables + GetMultisigProposalReadyStatsQuery, + GetMultisigProposalReadyStatsQueryVariables >; -export const GetMultisigProposalByIdDocument = { +export const GetMultisigProposalReadyByHashDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigProposalById' }, + name: { kind: 'Name', value: 'GetMultisigProposalReadyByHash' }, variableDefinitions: [ { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, + 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: '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' } } - ] - } - } - ] - } - }, + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'readyEvents' }, + alias: { kind: 'Name', value: 'multisigProposalReadyEvents' }, name: { kind: 'Name', value: 'multisig_proposal_ready' }, arguments: [ { @@ -24640,16 +20198,25 @@ export const GetMultisigProposalByIdDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'proposal_id' }, + name: { kind: 'Name', value: 'extrinsic' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: '_eq' }, + name: { kind: 'Name', value: 'id' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'id' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] } } ] @@ -24657,30 +20224,44 @@ export const GetMultisigProposalByIdDocument = { } ] } - }, - { - 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: '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: 'timestamp' } }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsic' }, + name: { kind: 'Name', value: 'multisig' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -24690,11 +20271,11 @@ export const GetMultisigProposalByIdDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: 'proposer' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } } + { kind: 'Field', name: { kind: 'Name', value: 'id' } } ] } } @@ -24703,58 +20284,213 @@ export const GetMultisigProposalByIdDocument = { }, { kind: 'Field', - alias: { kind: 'Name', value: 'executedEvents' }, - name: { kind: 'Name', value: 'executed_multisig_proposal' }, + 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: 'where' }, + name: { kind: 'Name', value: 'limit' }, 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: '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: 'timestamp' }, - value: { kind: 'EnumValue', value: 'asc' } - } - ] + 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: 'timestamp' } }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsic' }, + name: { kind: 'Name', value: 'multisig' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -24764,11 +20500,11 @@ export const GetMultisigProposalByIdDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: 'proposer' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } } + { kind: 'Field', name: { kind: 'Name', value: 'id' } } ] } } @@ -24777,8 +20513,81 @@ export const GetMultisigProposalByIdDocument = { }, { kind: 'Field', - alias: { kind: 'Name', value: 'cancelledEvents' }, - name: { kind: 'Name', value: 'cancelled_multisig_proposal' }, + 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', @@ -24788,16 +20597,24 @@ export const GetMultisigProposalByIdDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'proposal_id' }, + name: { kind: 'Name', value: 'timestamp' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: '_eq' }, + name: { kind: 'Name', value: '_gte' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'id' } + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } } } ] @@ -24805,53 +20622,83 @@ export const GetMultisigProposalByIdDocument = { } ] } - }, - { - 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' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } + { + 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: 'block' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } } - ] + 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: 'removedEvents' }, + alias: { kind: 'Name', value: 'multisigProposalRemovedEvents' }, name: { kind: 'Name', value: 'removed_multisig_proposal' }, arguments: [ { @@ -24862,34 +20709,29 @@ export const GetMultisigProposalByIdDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'proposal_id' }, + name: { kind: 'Name', value: 'extrinsic' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: '_eq' }, + name: { kind: 'Name', value: 'id' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'id' } + 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' } + ] + } } ] } @@ -24898,27 +20740,9 @@ export const GetMultisigProposalByIdDocument = { 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: 'FragmentSpread', + name: { kind: 'Name', value: 'MultisigProposalRemovedFields' } } ] } @@ -24928,63 +20752,19 @@ export const GetMultisigProposalByIdDocument = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MultisigProposalDetailFields' }, + name: { kind: 'Name', value: 'MultisigProposalRemovedFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'multisig_proposal' } + name: { kind: 'Name', value: 'removed_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: 'timestamp' } }, { kind: 'Field', - name: { kind: 'Name', value: 'transferTo' }, + name: { kind: 'Name', value: 'removedBy' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -24994,27 +20774,47 @@ export const GetMultisigProposalByIdDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'scheduleTo' }, + name: { kind: 'Name', value: 'proposal' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } + { 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: 'recoverAccount' }, + 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: 'createdExtrinsic' }, + name: { kind: 'Name', value: 'extrinsic' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -25023,67 +20823,22 @@ export const GetMultisigProposalByIdDocument = { { 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 + GetMultisigProposalRemovedByHashQuery, + GetMultisigProposalRemovedByHashQueryVariables >; -export const GetMultisigSignerApprovedDocument = { +export const GetMultisigProposalsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetMultisigSignerApproved' }, + name: { kind: 'Name', value: 'GetMultisigProposals' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -25113,10 +20868,7 @@ export const GetMultisigSignerApprovedDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { - kind: 'Name', - value: 'multisig_signer_approved_order_by' - } + name: { kind: 'Name', value: 'multisig_proposal_order_by' } } } } @@ -25129,7 +20881,7 @@ export const GetMultisigSignerApprovedDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'multisig_signer_approved_bool_exp' } + name: { kind: 'Name', value: 'multisig_proposal_bool_exp' } } } ], @@ -25138,8 +20890,8 @@ export const GetMultisigSignerApprovedDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'multisigSignerApprovedEvents' }, - name: { kind: 'Name', value: 'multisig_signer_approved' }, + alias: { kind: 'Name', value: 'multisigProposals' }, + name: { kind: 'Name', value: 'multisig_proposal' }, arguments: [ { kind: 'Argument', @@ -25179,7 +20931,7 @@ export const GetMultisigSignerApprovedDocument = { selections: [ { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'MultisigSignerApprovedFields' } + name: { kind: 'Name', value: 'MultisigProposalListFields' } } ] } @@ -25187,7 +20939,7 @@ export const GetMultisigSignerApprovedDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'meta' }, - name: { kind: 'Name', value: 'multisig_signer_approved_aggregate' }, + name: { kind: 'Name', value: 'multisig_proposal_aggregate' }, arguments: [ { kind: 'Argument', @@ -25223,20 +20975,23 @@ export const GetMultisigSignerApprovedDocument = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MultisigSignerApprovedFields' }, + name: { kind: 'Name', value: 'MultisigProposalListFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'multisig_signer_approved' } + name: { kind: 'Name', value: '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: 'approvals_count' } }, + { 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: 'approver' }, + name: { kind: 'Name', value: 'multisig' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -25246,28 +21001,116 @@ export const GetMultisigSignerApprovedDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'proposal' }, + 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: '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' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } ] } } @@ -25276,23 +21119,22 @@ export const GetMultisigSignerApprovedDocument = { }, { 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' }, + 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: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'pallet' } }, - { kind: 'Field', name: { kind: 'Name', value: 'call' } } + { + kind: 'Field', + name: { kind: 'Name', value: 'total_multisig_proposals' } + } ] } } @@ -25301,43 +21143,23 @@ export const GetMultisigSignerApprovedDocument = { } ] } as unknown as DocumentNode< - GetMultisigSignerApprovedQuery, - GetMultisigSignerApprovedQueryVariables + GetMultisigProposalStatsQuery, + GetMultisigProposalStatsQueryVariables >; -export const GetRecentMultisigSignerApprovedDocument = { +export const GetMultisigProposalByIdDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetRecentMultisigSignerApproved' }, + name: { kind: 'Name', value: 'GetMultisigProposalById' }, 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: 'orderBy' } - }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { - kind: 'Name', - value: 'multisig_signer_approved_order_by' - } - } - } + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } } } ], @@ -25346,23 +21168,68 @@ export const GetRecentMultisigSignerApprovedDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'multisigSignerApprovedEvents' }, - name: { kind: 'Name', value: 'multisig_signer_approved' }, + alias: { kind: 'Name', value: 'multisigProposal' }, + name: { kind: 'Name', value: 'multisig_proposal_by_pk' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'limit' }, + 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: 'Variable', - name: { kind: 'Name', value: 'limit' } + 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: 'Variable', - name: { kind: 'Name', value: 'orderBy' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'timestamp' }, + value: { kind: 'EnumValue', value: 'asc' } + } + ] } } ], @@ -25371,47 +21238,142 @@ export const GetRecentMultisigSignerApprovedDocument = { selections: [ { kind: 'FragmentSpread', - name: { kind: 'Name', value: 'MultisigSignerApprovedFields' } + name: { + kind: 'Name', + value: 'MultisigProposalLifecycleEventFields' + } } ] } - } - ] - } - }, - { - 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' }, + 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: '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', - name: { kind: 'Name', value: 'proposal' }, + 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: 'multisig' }, + name: { kind: 'Name', value: 'extrinsic' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -25421,11 +21383,11 @@ export const GetRecentMultisigSignerApprovedDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'proposer' }, + name: { kind: 'Name', value: 'block' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } + { kind: 'Field', name: { kind: 'Name', value: 'height' } } ] } } @@ -25434,78 +21396,8 @@ export const GetRecentMultisigSignerApprovedDocument = { }, { 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< - GetRecentMultisigSignerApprovedQuery, - GetRecentMultisigSignerApprovedQueryVariables ->; -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' }, + alias: { kind: 'Name', value: 'executedEvents' }, + name: { kind: 'Name', value: 'executed_multisig_proposal' }, arguments: [ { kind: 'Argument', @@ -25515,24 +21407,16 @@ export const GetMultisigSignerApprovedStatsDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp' }, + name: { kind: 'Name', value: 'proposal_id' }, 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' }, + name: { kind: 'Name', value: '_eq' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'endDate' } + name: { kind: 'Name', value: 'id' } } } ] @@ -25540,22 +21424,44 @@ export const GetMultisigSignerApprovedStatsDocument = { } ] } + }, + { + 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: 'aggregate' }, + name: { kind: 'Name', value: 'extrinsic' }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'Field', - alias: { kind: 'Name', value: 'totalCount' }, - name: { kind: 'Name', value: 'count' } - } + { 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' } } ] } } @@ -25564,60 +21470,82 @@ export const GetMultisigSignerApprovedStatsDocument = { }, { kind: 'Field', - alias: { kind: 'Name', value: 'allTime' }, - name: { kind: 'Name', value: 'chain_stats_by_pk' }, + alias: { kind: 'Name', value: 'cancelledEvents' }, + name: { kind: 'Name', value: 'cancelled_multisig_proposal' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'id' }, - value: { kind: 'StringValue', value: 'global', block: false } + 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: '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: [ + 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: 'multisigSignerApprovedEvents' }, - name: { kind: 'Name', value: 'multisig_signer_approved' }, + alias: { kind: 'Name', value: 'removedEvents' }, + name: { kind: 'Name', value: 'removed_multisig_proposal' }, arguments: [ { kind: 'Argument', @@ -25627,25 +21555,16 @@ export const GetMultisigSignerApprovedByHashDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'extrinsic' }, + name: { kind: 'Name', value: 'proposal_id' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'id' }, + name: { kind: 'Name', value: '_eq' }, value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: '_eq' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hash' } - } - } - ] + kind: 'Variable', + name: { kind: 'Name', value: 'id' } } } ] @@ -25653,14 +21572,46 @@ export const GetMultisigSignerApprovedByHashDocument = { } ] } + }, + { + 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: 'FragmentSpread', - name: { kind: 'Name', value: 'MultisigSignerApprovedFields' } + 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' } } + ] + } } ] } @@ -25670,20 +21621,33 @@ export const GetMultisigSignerApprovedByHashDocument = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MultisigSignerApprovedFields' }, + name: { kind: 'Name', value: 'MultisigProposalDetailFields' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'multisig_signer_approved' } + name: { kind: 'Name', value: '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: 'approvals_count' } }, + { 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: 'approver' }, + name: { kind: 'Name', value: 'multisig' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -25693,47 +21657,57 @@ export const GetMultisigSignerApprovedByHashDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'proposal' }, + name: { kind: 'Name', value: 'proposer' }, 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: 'id' } } ] } }, { kind: 'Field', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: 'guardian' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } } + { kind: 'Field', name: { kind: 'Name', value: 'id' } } ] } }, { kind: 'Field', - name: { kind: 'Name', value: 'extrinsic' }, + 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: [ @@ -25742,22 +21716,67 @@ export const GetMultisigSignerApprovedByHashDocument = { { 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< - GetMultisigSignerApprovedByHashQuery, - GetMultisigSignerApprovedByHashQueryVariables + GetMultisigProposalByIdQuery, + GetMultisigProposalByIdQueryVariables >; -export const GetScheduledReversibleTransactionsDocument = { +export const GetMultisigSignerApprovedDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetScheduledReversibleTransactions' }, + name: { kind: 'Name', value: 'GetMultisigSignerApproved' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -25789,7 +21808,7 @@ export const GetScheduledReversibleTransactionsDocument = { kind: 'NamedType', name: { kind: 'Name', - value: 'scheduled_reversible_transfer_order_by' + value: 'multisig_signer_approved_order_by' } } } @@ -25803,10 +21822,7 @@ export const GetScheduledReversibleTransactionsDocument = { }, type: { kind: 'NamedType', - name: { - kind: 'Name', - value: 'scheduled_reversible_transfer_bool_exp' - } + name: { kind: 'Name', value: 'multisig_signer_approved_bool_exp' } } } ], @@ -25815,8 +21831,8 @@ export const GetScheduledReversibleTransactionsDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'scheduledReversibleTransactions' }, - name: { kind: 'Name', value: 'scheduled_reversible_transfer' }, + alias: { kind: 'Name', value: 'multisigSignerApprovedEvents' }, + name: { kind: 'Name', value: 'multisig_signer_approved' }, arguments: [ { kind: 'Argument', @@ -25851,45 +21867,86 @@ export const GetScheduledReversibleTransactionsDocument = { } } ], + 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: 'extrinsic' }, + name: { kind: 'Name', value: 'aggregate' }, 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' } } + 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: 'from' }, + name: { kind: 'Name', value: 'multisig' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -25899,7 +21956,7 @@ export const GetScheduledReversibleTransactionsDocument = { }, { kind: 'Field', - name: { kind: 'Name', value: 'to' }, + name: { kind: 'Name', value: 'proposer' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -25912,38 +21969,23 @@ export const GetScheduledReversibleTransactionsDocument = { }, { kind: 'Field', - alias: { kind: 'Name', value: 'meta' }, - name: { - kind: 'Name', - value: 'scheduled_reversible_transfer_aggregate' - }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } - } - } - ], + name: { kind: 'Name', value: 'block' }, 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', 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' } } ] } } @@ -25952,50 +21994,42 @@ export const GetScheduledReversibleTransactionsDocument = { } ] } as unknown as DocumentNode< - GetScheduledReversibleTransactionsQuery, - GetScheduledReversibleTransactionsQueryVariables + GetMultisigSignerApprovedQuery, + GetMultisigSignerApprovedQueryVariables >; -export const GetRecentScheduledReversibleTransactionsDocument = { +export const GetMultisigSignerApprovedStatsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetRecentScheduledReversibleTransactions' }, + name: { kind: 'Name', value: 'GetMultisigSignerApprovedStats' }, 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' } + name: { kind: 'Name', value: 'startDate' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } } + type: { + kind: 'NonNullType', + type: { + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } + } + } }, { kind: 'VariableDefinition', variable: { kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } + name: { kind: 'Name', value: 'endDate' } }, type: { - kind: 'ListType', + kind: 'NonNullType', type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { - kind: 'Name', - value: 'scheduled_reversible_transfer_order_by' - } - } + kind: 'NamedType', + name: { kind: 'Name', value: 'timestamptz' } } } } @@ -26005,31 +22039,41 @@ export const GetRecentScheduledReversibleTransactionsDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'scheduledReversibleTransactions' }, - name: { kind: 'Name', value: 'scheduled_reversible_transfer' }, + alias: { kind: 'Name', value: 'last24Hour' }, + name: { kind: 'Name', value: 'multisig_signer_approved_aggregate' }, 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' }, + name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'orderBy' } + 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' } + } + } + ] + } + } + ] } } ], @@ -26038,55 +22082,40 @@ export const GetRecentScheduledReversibleTransactionsDocument = { selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'extrinsic' }, + name: { kind: 'Name', value: 'aggregate' }, 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' } } + 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: 'to' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } - ] + name: { + kind: 'Name', + value: 'total_multisig_signer_approved' } } ] @@ -26097,43 +22126,23 @@ export const GetRecentScheduledReversibleTransactionsDocument = { } ] } as unknown as DocumentNode< - GetRecentScheduledReversibleTransactionsQuery, - GetRecentScheduledReversibleTransactionsQueryVariables + GetMultisigSignerApprovedStatsQuery, + GetMultisigSignerApprovedStatsQueryVariables >; -export const GetScheduledReversibleTransactionsStatsDocument = { +export const GetMultisigSignerApprovedByHashDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetScheduledReversibleTransactionsStats' }, + name: { kind: 'Name', value: 'GetMultisigSignerApprovedByHash' }, 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' } - }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, type: { kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'timestamptz' } - } + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } } } ], @@ -26142,11 +22151,8 @@ export const GetScheduledReversibleTransactionsStatsDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'last24Hour' }, - name: { - kind: 'Name', - value: 'scheduled_reversible_transfer_aggregate' - }, + alias: { kind: 'Name', value: 'multisigSignerApprovedEvents' }, + name: { kind: 'Name', value: 'multisig_signer_approved' }, arguments: [ { kind: 'Argument', @@ -26156,24 +22162,25 @@ export const GetScheduledReversibleTransactionsStatsDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'timestamp' }, + name: { kind: 'Name', value: 'extrinsic' }, 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' }, + name: { kind: 'Name', value: 'id' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'endDate' } + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_eq' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'hash' } + } + } + ] } } ] @@ -26186,17 +22193,63 @@ export const GetScheduledReversibleTransactionsStatsDocument = { 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: 'aggregate' }, + name: { kind: 'Name', value: 'multisig' }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'Field', - alias: { kind: 'Name', value: 'totalCount' }, - name: { kind: 'Name', value: 'count' } - } + { 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' } } ] } } @@ -26205,22 +22258,23 @@ export const GetScheduledReversibleTransactionsStatsDocument = { }, { 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 } - } - ], + name: { kind: 'Name', value: 'block' }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'total_scheduled_transfers' } - } + { 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' } } ] } } @@ -26229,8 +22283,8 @@ export const GetScheduledReversibleTransactionsStatsDocument = { } ] } as unknown as DocumentNode< - GetScheduledReversibleTransactionsStatsQuery, - GetScheduledReversibleTransactionsStatsQueryVariables + GetMultisigSignerApprovedByHashQuery, + GetMultisigSignerApprovedByHashQueryVariables >; export const GetScheduledReversibleTransactionByTxIdDocument = { kind: 'Document', @@ -26817,148 +22871,236 @@ export const SearchAllDocument = { } ] } as unknown as DocumentNode; -export const GetTransactionsDocument = { +export const GetExtrinsicByHashDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetTransactions' }, + name: { kind: 'Name', value: 'GetExtrinsicByHash' }, 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' } - }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'hash' } }, type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'transfer_order_by' } + 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: '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' }, + alias: { kind: 'Name', value: 'transfersByExtrinsic' }, 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' }, + name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'offset' } + 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: 'Variable', - name: { kind: 'Name', value: 'orderBy' } - } - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'where' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } + 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: 'fee' } }, + { 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: 'extrinsic' }, + name: { kind: 'Name', value: 'from' }, 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: 'block' }, + name: { kind: 'Name', value: 'to' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } } + { 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' }, + 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: 'to' }, + name: { kind: 'Name', value: 'extrinsic' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } + { 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' } + } + ] + } + } ] } } @@ -26967,31 +23109,122 @@ export const GetTransactionsDocument = { }, { kind: 'Field', - alias: { kind: 'Name', value: 'meta' }, - name: { kind: 'Name', value: 'transfer_aggregate' }, + alias: { kind: 'Name', value: 'transfersById' }, + name: { kind: 'Name', value: 'transfer' }, arguments: [ { kind: 'Argument', name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } + 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: 'aggregate' }, + 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', - alias: { kind: 'Name', value: 'totalCount' }, - name: { kind: 'Name', value: 'count' } + 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' } + } + ] + } } ] } @@ -27004,16 +23237,16 @@ export const GetTransactionsDocument = { } ] } as unknown as DocumentNode< - GetTransactionsQuery, - GetTransactionsQueryVariables + GetExtrinsicByHashQuery, + GetExtrinsicByHashQueryVariables >; -export const GetRecentTransactionsDocument = { +export const GetUnifiedTransactionsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetRecentTransactions' }, + name: { kind: 'Name', value: 'GetUnifiedTransactions' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -27043,7 +23276,7 @@ export const GetRecentTransactionsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'transfer_order_by' } + name: { kind: 'Name', value: 'unified_transaction_order_by' } } } } @@ -27056,7 +23289,7 @@ export const GetRecentTransactionsDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'transfer_bool_exp' } + name: { kind: 'Name', value: 'unified_transaction_bool_exp' } } } ], @@ -27066,7 +23299,7 @@ export const GetRecentTransactionsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'transactions' }, - name: { kind: 'Name', value: 'transfer' }, + name: { kind: 'Name', value: 'unified_transaction' }, arguments: [ { kind: 'Argument', @@ -27104,34 +23337,28 @@ export const GetRecentTransactionsDocument = { selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { 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: 'extrinsic' }, + name: { kind: 'Name', value: 'block' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'pallet' } + name: { kind: 'Name', value: 'height' } }, - { kind: 'Field', name: { kind: 'Name', value: 'call' } } - ] - } - }, - { - 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: 'amount' } }, { kind: 'Field', name: { kind: 'Name', value: 'timestamp' } }, + { kind: 'Field', name: { kind: 'Name', value: 'amount' } }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'status' } }, + { kind: 'Field', name: { kind: 'Name', value: 'detail_id' } }, { kind: 'Field', name: { kind: 'Name', value: 'from' }, @@ -27154,298 +23381,121 @@ export const GetRecentTransactionsDocument = { } ] } - } - ] - } - } - ] -} as unknown as DocumentNode< - GetRecentTransactionsQuery, - GetRecentTransactionsQueryVariables ->; -export const GetTransactionsStatsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetTransactionsStats' }, - 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: 'transfer_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' } - } - } - ] - } - }, - { - 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 } - } - ] - } - } - ] - } - } - ], - 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_immediate_transfers' } - } - ] - } - } - ] - } - } - ] -} as unknown as DocumentNode< - GetTransactionsStatsQuery, - GetTransactionsStatsQueryVariables ->; -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' }, + alias: { kind: 'Name', value: 'meta' }, + name: { kind: 'Name', value: 'unified_transaction_aggregate' }, 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' } } - ] - } - }, + name: { kind: 'Name', value: 'where' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'where' } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } } + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } ] } } ] } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetUnifiedTransactionsQuery, + GetUnifiedTransactionsQueryVariables +>; +export const GetRecentUnifiedTransactionsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetRecentUnifiedTransactions' }, + 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: 'unified_transaction_order_by' } + } + } + } + } + ], + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'transfersByExtrinsic' }, - name: { kind: 'Name', value: 'transfer' }, + alias: { kind: 'Name', value: 'transactions' }, + name: { kind: 'Name', value: 'unified_transaction' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'where' }, + name: { kind: 'Name', value: 'limit' }, 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: '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: 'timestamp' }, - value: { kind: 'EnumValue', value: 'asc' } - } - ] + kind: 'Variable', + name: { kind: 'Name', value: 'orderBy' } } } ], @@ -27453,21 +23503,30 @@ export const GetExtrinsicByHashDocument = { 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: 'type' } }, + { kind: 'Field', name: { kind: 'Name', value: 'hash' } }, { kind: 'Field', - name: { kind: 'Name', value: 'from' }, + 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: 'amount' } }, + { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'status' } }, + { kind: 'Field', name: { kind: 'Name', value: 'detail_id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'to' }, + name: { kind: 'Name', value: 'from' }, selectionSet: { kind: 'SelectionSet', selections: [ @@ -27477,75 +23536,69 @@ export const GetExtrinsicByHashDocument = { }, { 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' }, + name: { kind: 'Name', value: 'to' }, 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', name: { kind: 'Name', value: 'id' } } ] } } ] } + } + ] + } + } + ] +} as unknown as DocumentNode< + GetRecentUnifiedTransactionsQuery, + GetRecentUnifiedTransactionsQueryVariables +>; +export const GetUnifiedTransactionsStatsDocument = { + kind: 'Document', + definitions: [ + { + kind: 'OperationDefinition', + operation: 'query', + name: { kind: 'Name', value: 'GetUnifiedTransactionsStats' }, + 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: 'transfersById' }, - name: { kind: 'Name', value: 'transfer' }, + alias: { kind: 'Name', value: 'last24Hour' }, + name: { kind: 'Name', value: 'unified_transaction_aggregate' }, arguments: [ { kind: 'Argument', @@ -27555,16 +23608,24 @@ export const GetExtrinsicByHashDocument = { fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: 'id' }, + name: { kind: 'Name', value: 'timestamp' }, value: { kind: 'ObjectValue', fields: [ { kind: 'ObjectField', - name: { kind: 'Name', value: '_eq' }, + name: { kind: 'Name', value: '_gte' }, value: { kind: 'Variable', - name: { kind: 'Name', value: 'hash' } + name: { kind: 'Name', value: 'startDate' } + } + }, + { + kind: 'ObjectField', + name: { kind: 'Name', value: '_lte' }, + value: { + kind: 'Variable', + name: { kind: 'Name', value: 'endDate' } } } ] @@ -27577,89 +23638,40 @@ export const GetExtrinsicByHashDocument = { 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' }, + name: { kind: 'Name', value: 'aggregate' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'height' } } + { + kind: 'Field', + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } + } ] } - }, + } + ] + } + }, + { + kind: 'Field', + alias: { kind: 'Name', value: 'allTime' }, + name: { kind: 'Name', value: 'unified_transaction_aggregate' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ { kind: 'Field', - name: { kind: 'Name', value: 'extrinsic' }, + name: { kind: 'Name', value: 'aggregate' }, 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' } - } - ] - } + alias: { kind: 'Name', value: 'totalCount' }, + name: { kind: 'Name', value: 'count' } } ] } @@ -27672,59 +23684,23 @@ export const GetExtrinsicByHashDocument = { } ] } as unknown as DocumentNode< - GetExtrinsicByHashQuery, - GetExtrinsicByHashQueryVariables + GetUnifiedTransactionsStatsQuery, + GetUnifiedTransactionsStatsQueryVariables >; -export const GetUnifiedTransactionsDocument = { +export const GetWormholeExtrinsicByIdDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetUnifiedTransactions' }, + name: { kind: 'Name', value: 'GetWormholeExtrinsicById' }, 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: 'unified_transaction_order_by' } - } - } - } - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } - }, + variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'unified_transaction_bool_exp' } + kind: 'NonNullType', + type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } } } ], @@ -27733,84 +23709,107 @@ export const GetUnifiedTransactionsDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'transactions' }, - name: { kind: 'Name', value: 'unified_transaction' }, + alias: { kind: 'Name', value: 'wormholeExtrinsicById' }, + name: { kind: 'Name', value: 'wormhole_extrinsic_by_pk' }, 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' } - } + 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: 'type' } }, - { kind: 'Field', name: { kind: 'Name', value: 'hash' } }, { kind: 'Field', - name: { kind: 'Name', value: 'block' }, + name: { kind: 'Name', value: 'extrinsic' }, selectionSet: { kind: 'SelectionSet', selections: [ + { kind: 'Field', name: { kind: 'Name', value: 'id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'height' } + name: { kind: 'Name', value: 'pallet' } }, - { kind: 'Field', name: { kind: 'Name', value: 'hash' } } + { 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: 'amount' } }, - { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, - { kind: 'Field', name: { kind: 'Name', value: 'status' } }, - { kind: 'Field', name: { kind: 'Name', value: 'detail_id' } }, { kind: 'Field', - name: { kind: 'Name', value: 'from' }, + 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: '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: 'to' }, + name: { kind: 'Name', value: 'outputs' }, selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } } + { 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' } } ] } } @@ -27819,34 +23818,52 @@ export const GetUnifiedTransactionsDocument = { }, { kind: 'Field', - alias: { kind: 'Name', value: 'meta' }, - name: { kind: 'Name', value: 'unified_transaction_aggregate' }, + alias: { kind: 'Name', value: 'wormholeNullifiers' }, + name: { kind: 'Name', value: 'wormhole_nullifier' }, arguments: [ { kind: 'Argument', name: { kind: 'Name', value: 'where' }, value: { - kind: 'Variable', - name: { kind: 'Name', value: 'where' } + 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: 'aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - alias: { kind: 'Name', value: 'totalCount' }, - name: { kind: 'Name', value: 'count' } - } - ] - } + name: { kind: 'Name', value: 'nullifier_hash' } } ] } @@ -27856,16 +23873,16 @@ export const GetUnifiedTransactionsDocument = { } ] } as unknown as DocumentNode< - GetUnifiedTransactionsQuery, - GetUnifiedTransactionsQueryVariables + GetWormholeExtrinsicByIdQuery, + GetWormholeExtrinsicByIdQueryVariables >; -export const GetRecentUnifiedTransactionsDocument = { +export const GetTransactionsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetRecentUnifiedTransactions' }, + name: { kind: 'Name', value: 'GetTransactions' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -27895,10 +23912,21 @@ export const GetRecentUnifiedTransactionsDocument = { kind: 'NonNullType', type: { kind: 'NamedType', - name: { kind: 'Name', value: 'unified_transaction_order_by' } + 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: { @@ -27907,7 +23935,7 @@ export const GetRecentUnifiedTransactionsDocument = { { kind: 'Field', alias: { kind: 'Name', value: 'transactions' }, - name: { kind: 'Name', value: 'unified_transaction' }, + name: { kind: 'Name', value: 'transfer' }, arguments: [ { kind: 'Argument', @@ -27932,141 +23960,13 @@ export const GetRecentUnifiedTransactionsDocument = { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } } - } - ], - 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: '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: 'timestamp' } }, - { kind: 'Field', name: { kind: 'Name', value: 'amount' } }, - { kind: 'Field', name: { kind: 'Name', value: 'fee' } }, - { kind: 'Field', name: { kind: 'Name', value: 'status' } }, - { 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< - GetRecentUnifiedTransactionsQuery, - GetRecentUnifiedTransactionsQueryVariables ->; -export const GetUnifiedTransactionsStatsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetUnifiedTransactionsStats' }, - 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: 'unified_transaction_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' } - } - } - ] - } - } - ] + kind: 'Variable', + name: { kind: 'Name', value: 'where' } } } ], @@ -28075,39 +23975,11 @@ export const GetUnifiedTransactionsStatsDocument = { 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: 'unified_transaction_aggregate' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'aggregate' }, + name: { kind: 'Name', value: 'extrinsic' }, selectionSet: { kind: 'SelectionSet', selections: [ - { - kind: 'Field', - alias: { kind: 'Name', value: 'totalCount' }, - name: { kind: 'Name', value: 'count' } - } + { kind: 'Field', name: { kind: 'Name', value: 'id' } } ] } } @@ -28119,16 +23991,16 @@ export const GetUnifiedTransactionsStatsDocument = { } ] } as unknown as DocumentNode< - GetUnifiedTransactionsStatsQuery, - GetUnifiedTransactionsStatsQueryVariables + GetTransactionsQuery, + GetTransactionsQueryVariables >; -export const GetWormholeExtrinsicsDocument = { +export const GetCancelledReversibleTransactionsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetWormholeExtrinsics' }, + name: { kind: 'Name', value: 'GetCancelledReversibleTransactions' }, variableDefinitions: [ { kind: 'VariableDefinition', @@ -28153,14 +24025,14 @@ export const GetWormholeExtrinsicsDocument = { name: { kind: 'Name', value: 'orderBy' } }, type: { - kind: 'NonNullType', + kind: 'ListType', type: { - kind: 'ListType', + kind: 'NonNullType', type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'wormhole_extrinsic_order_by' } + kind: 'NamedType', + name: { + kind: 'Name', + value: 'cancelled_reversible_transfer_order_by' } } } @@ -28174,7 +24046,10 @@ export const GetWormholeExtrinsicsDocument = { }, type: { kind: 'NamedType', - name: { kind: 'Name', value: 'wormhole_extrinsic_bool_exp' } + name: { + kind: 'Name', + value: 'cancelled_reversible_transfer_bool_exp' + } } } ], @@ -28183,8 +24058,8 @@ export const GetWormholeExtrinsicsDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'wormholeExtrinsics' }, - name: { kind: 'Name', value: 'wormhole_extrinsic' }, + alias: { kind: 'Name', value: 'cancelledReversibleTransactions' }, + name: { kind: 'Name', value: 'cancelled_reversible_transfer' }, arguments: [ { kind: 'Argument', @@ -28222,83 +24097,7 @@ export const GetWormholeExtrinsicsDocument = { 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_label' } - }, - { - 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: 'wormhole_extrinsic_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: 'Field', name: { kind: 'Name', value: 'tx_id' } } ] } } @@ -28307,23 +24106,65 @@ export const GetWormholeExtrinsicsDocument = { } ] } as unknown as DocumentNode< - GetWormholeExtrinsicsQuery, - GetWormholeExtrinsicsQueryVariables + GetCancelledReversibleTransactionsQuery, + GetCancelledReversibleTransactionsQueryVariables >; -export const GetWormholeExtrinsicByIdDocument = { +export const GetExecutedReversibleTransactionsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetWormholeExtrinsicById' }, + name: { kind: 'Name', value: 'GetExecutedReversibleTransactions' }, variableDefinitions: [ { kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, + 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: 'NamedType', name: { kind: 'Name', value: 'String' } } + 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' + } } } ], @@ -28332,162 +24173,161 @@ export const GetWormholeExtrinsicByIdDocument = { selections: [ { kind: 'Field', - alias: { kind: 'Name', value: 'wormholeExtrinsicById' }, - name: { kind: 'Name', value: 'wormhole_extrinsic_by_pk' }, + alias: { kind: 'Name', value: 'executedReversibleTransactions' }, + name: { kind: 'Name', value: 'executed_reversible_transfer' }, 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' } } - ] - } + 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: 'wormholeNullifiers' }, - name: { kind: 'Name', value: 'wormhole_nullifier' }, + 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: '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' } - } - } - ] - } - } - ] - } - } - ] + kind: 'Variable', + name: { kind: 'Name', value: 'where' } } } ], selectionSet: { kind: 'SelectionSet', selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'nullifier' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'nullifier_hash' } - } + { kind: 'Field', name: { kind: 'Name', value: 'tx_id' } } ] } } @@ -28496,38 +24336,110 @@ export const GetWormholeExtrinsicByIdDocument = { } ] } as unknown as DocumentNode< - GetWormholeExtrinsicByIdQuery, - GetWormholeExtrinsicByIdQueryVariables + GetScheduledReversibleTransactionsQuery, + GetScheduledReversibleTransactionsQueryVariables >; -export const GetDepositPoolStatsDocument = { +export const GetWormholeExtrinsicsDocument = { kind: 'Document', definitions: [ { kind: 'OperationDefinition', operation: 'query', - name: { kind: 'Name', value: 'GetDepositPoolStats' }, + 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: 'depositPoolStatsById' }, - name: { kind: 'Name', value: 'deposit_pool_stats_by_pk' }, + alias: { kind: 'Name', value: 'wormholeExtrinsics' }, + name: { kind: 'Name', value: 'wormhole_extrinsic' }, arguments: [ { kind: 'Argument', - name: { kind: 'Name', value: 'id' }, - value: { kind: 'StringValue', value: 'global', block: false } + 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: 'last_updated_block' } - }, - { kind: 'Field', name: { kind: 'Name', value: 'buckets' } } + { kind: 'Field', name: { kind: 'Name', value: 'id' } } ] } } @@ -28536,6 +24448,6 @@ export const GetDepositPoolStatsDocument = { } ] } as unknown as DocumentNode< - GetDepositPoolStatsQuery, - GetDepositPoolStatsQueryVariables + GetWormholeExtrinsicsQuery, + GetWormholeExtrinsicsQueryVariables >; diff --git a/src/api/blocks.tsx b/src/api/blocks.tsx index 8d915a5..5a40bc9 100644 --- a/src/api/blocks.tsx +++ b/src/api/blocks.tsx @@ -3,13 +3,11 @@ import { gql, useQuery } from '@apollo/client'; import type { Block_Bool_Exp } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { BlockSorts } from '@/constants/query-sorts'; import type { BlockListResponse, BlockResponse, - BlockStatsResponse, - RecentBlocksResponse + BlockStatsResponse } from '@/schemas'; import type { PaginatedQueryVariables } from '@/types/query'; import { useGetRecentDateRange } from '@/utils/get-recent-date-range'; @@ -63,40 +61,6 @@ export const blocks = { } }); }, - useGetRecent: ( - config?: Omit, 'variables'> - ) => { - const GET_RECENT_BLOCKS = gql` - query GetRecentBlocks( - $limit: Int - $offset: Int - $orderBy: [block_order_by!] - ) { - blocks: block(limit: $limit, offset: $offset, order_by: $orderBy) { - id - hash - height - reward - timestamp - mined_by_id - extrinsics { - id - } - } - } - `; - - return useQuery>( - GET_RECENT_BLOCKS, - { - ...config, - variables: { - orderBy: { timestamp: 'desc' }, - limit: QUERY_RECENT_LIMIT - } - } - ); - }, getById: () => { const GET_BLOCK_BY_ID = gql` query GetBlockById($height: Int!, $hash: String!) { diff --git a/src/api/cancelled-reversible-transactions.tsx b/src/api/cancelled-reversible-transactions.tsx index 4c6af79..09a1a63 100644 --- a/src/api/cancelled-reversible-transactions.tsx +++ b/src/api/cancelled-reversible-transactions.tsx @@ -1,194 +1,9 @@ import type { QueryHookOptions } from '@apollo/client'; import { gql, useQuery } from '@apollo/client'; -import type { Cancelled_Reversible_Transfer_Bool_Exp } from '@/__generated__/graphql'; -import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; -import type { CancelledReversibleTransactionSorts } from '@/constants/query-sorts'; -import type { - CancelledReversibleTransactionListResponse, - CancelledReversibleTransactionResponse, - CancelledReversibleTransactionsStatsResponse, - RecentCancelledReversibleTransactionsResponse -} from '@/schemas'; -import type { PaginatedQueryVariables } from '@/types/query'; -import { useGetRecentDateRange } from '@/utils/get-recent-date-range'; +import type { CancelledReversibleTransactionResponse } from '@/schemas'; export const cancelledReversibleTransactions = { - useGetAll: ( - config?: QueryHookOptions< - CancelledReversibleTransactionListResponse, - PaginatedQueryVariables< - CancelledReversibleTransactionSorts, - Cancelled_Reversible_Transfer_Bool_Exp - > - > - ) => { - const GET_CANCELLED_REVERSIBLE_TRANSACTIONS = gql` - query GetCancelledReversibleTransactions( - $limit: Int - $offset: Int - $orderBy: [cancelled_reversible_transfer_order_by!] - $where: cancelled_reversible_transfer_bool_exp - ) { - cancelledReversibleTransactions: cancelled_reversible_transfer( - limit: $limit - offset: $offset - order_by: $orderBy - where: $where - ) { - timestamp - tx_id - block { - height - } - cancelledBy { - id - } - scheduledTransfer { - extrinsic { - id - pallet - call - } - amount - timestamp - scheduled_at - tx_id - fee - block { - height - } - from { - id - } - to { - id - } - } - } - meta: cancelled_reversible_transfer_aggregate(where: $where) { - aggregate { - totalCount: count - } - } - } - `; - - return useQuery< - CancelledReversibleTransactionListResponse, - PaginatedQueryVariables< - CancelledReversibleTransactionSorts, - Cancelled_Reversible_Transfer_Bool_Exp - > - >(GET_CANCELLED_REVERSIBLE_TRANSACTIONS, { - ...config, - variables: { - orderBy: config?.variables?.orderBy ?? { timestamp: 'desc' }, - limit: config?.variables?.limit ?? QUERY_DEFAULT_LIMIT, - offset: config?.variables?.offset ?? 0, - where: config?.variables?.where - } - }); - }, - useGetRecent: ( - config?: Omit< - QueryHookOptions, - 'variables' - > - ) => { - const GET_RECENT_CANCELLED_REVERSIBLE_TRANSACTIONS = gql` - query GetRecentCancelledReversibleTransactions( - $limit: Int - $offset: Int - $orderBy: [cancelled_reversible_transfer_order_by!] - ) { - cancelledReversibleTransactions: cancelled_reversible_transfer( - limit: $limit - offset: $offset - order_by: $orderBy - ) { - timestamp - tx_id - block { - height - } - cancelledBy { - id - } - scheduledTransfer { - extrinsic { - id - pallet - call - } - amount - timestamp - scheduled_at - tx_id - fee - block { - height - } - from { - id - } - to { - id - } - } - } - } - `; - - return useQuery< - RecentCancelledReversibleTransactionsResponse, - PaginatedQueryVariables - >(GET_RECENT_CANCELLED_REVERSIBLE_TRANSACTIONS, { - ...config, - variables: { - orderBy: { timestamp: 'desc' }, - limit: QUERY_RECENT_LIMIT - } - }); - }, - useGetStats: ( - config?: Omit< - QueryHookOptions, - 'variables' - > - ) => { - const { startDate, endDate } = useGetRecentDateRange(); - - const GET_CANCELLED_REVERSIBLE_TRANSACTIONS_STATS = gql` - query GetCancelledReversibleTransactionsStats( - $startDate: timestamptz! - $endDate: timestamptz! - ) { - last24Hour: cancelled_reversible_transfer_aggregate( - where: { timestamp: { _gte: $startDate, _lte: $endDate } } - ) { - aggregate { - totalCount: count - } - } - allTime: chain_stats_by_pk(id: "global") { - total_cancelled_transfers - } - } - `; - - return useQuery( - GET_CANCELLED_REVERSIBLE_TRANSACTIONS_STATS, - { - ...config, - variables: { - startDate, - endDate - } - } - ); - }, getByTxId: () => { const QUERY = gql` query GetCancelledReversibleTransactionByTxId($tx_id: String!) { diff --git a/src/api/errors.tsx b/src/api/errors.tsx index a07deac..295f596 100644 --- a/src/api/errors.tsx +++ b/src/api/errors.tsx @@ -3,13 +3,11 @@ import { gql, useQuery } from '@apollo/client'; import type { Error_Event_Bool_Exp } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { ErrorEventSorts } from '@/constants/query-sorts'; import type { ErrorEventListResponse, ErrorEventResponse, - ErrorEventsStatsResponse, - RecentErrorEventsResponse + ErrorEventsStatsResponse } from '@/schemas'; import type { PaginatedQueryVariables } from '@/types/query'; import { useGetRecentDateRange } from '@/utils/get-recent-date-range'; @@ -70,51 +68,6 @@ export const errors = { } }); }, - useGetRecent: ( - config?: Omit, 'variables'> - ) => { - const GET_RECENT_ERROR_EVENTS = gql` - query GetRecentErrorEvents( - $limit: Int - $offset: Int - $orderBy: [error_event_order_by!] - $where: error_event_bool_exp - ) { - errorEvents: error_event( - limit: $limit - offset: $offset - order_by: $orderBy - where: $where - ) { - error_docs - error_module - error_name - error_type - extrinsic { - id - pallet - call - } - id - timestamp - block { - height - } - } - } - `; - - return useQuery< - RecentErrorEventsResponse, - PaginatedQueryVariables - >(GET_RECENT_ERROR_EVENTS, { - ...config, - variables: { - orderBy: { timestamp: 'desc' }, - limit: QUERY_RECENT_LIMIT - } - }); - }, useGetStats: ( config?: Omit, 'variables'> ) => { diff --git a/src/api/executed-reversible-transactions.tsx b/src/api/executed-reversible-transactions.tsx index 66c28b1..98f06b0 100644 --- a/src/api/executed-reversible-transactions.tsx +++ b/src/api/executed-reversible-transactions.tsx @@ -1,188 +1,9 @@ import type { QueryHookOptions } from '@apollo/client'; import { gql, useQuery } from '@apollo/client'; -import type { Executed_Reversible_Transfer_Bool_Exp } from '@/__generated__/graphql'; -import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; -import type { ExecutedReversibleTransactionSorts } from '@/constants/query-sorts'; -import type { - ExecutedReversibleTransactionListResponse, - ExecutedReversibleTransactionResponse, - ExecutedReversibleTransactionsStatsResponse, - RecentExecutedReversibleTransactionsResponse -} from '@/schemas'; -import type { PaginatedQueryVariables } from '@/types/query'; -import { useGetRecentDateRange } from '@/utils/get-recent-date-range'; +import type { ExecutedReversibleTransactionResponse } from '@/schemas'; export const executedReversibleTransactions = { - useGetAll: ( - config?: QueryHookOptions< - ExecutedReversibleTransactionListResponse, - PaginatedQueryVariables< - ExecutedReversibleTransactionSorts, - Executed_Reversible_Transfer_Bool_Exp - > - > - ) => { - const GET_EXECUTED_REVERSIBLE_TRANSACTIONS = gql` - query GetExecutedReversibleTransactions( - $limit: Int - $offset: Int - $orderBy: [executed_reversible_transfer_order_by!] - $where: executed_reversible_transfer_bool_exp - ) { - executedReversibleTransactions: executed_reversible_transfer( - limit: $limit - offset: $offset - order_by: $orderBy - where: $where - ) { - timestamp - tx_id - block { - height - } - scheduledTransfer { - extrinsic { - id - pallet - call - } - amount - timestamp - scheduled_at - tx_id - fee - block { - height - } - from { - id - } - to { - id - } - } - } - meta: executed_reversible_transfer_aggregate(where: $where) { - aggregate { - totalCount: count - } - } - } - `; - - return useQuery< - ExecutedReversibleTransactionListResponse, - PaginatedQueryVariables< - ExecutedReversibleTransactionSorts, - Executed_Reversible_Transfer_Bool_Exp - > - >(GET_EXECUTED_REVERSIBLE_TRANSACTIONS, { - ...config, - variables: { - orderBy: config?.variables?.orderBy ?? { timestamp: 'desc' }, - limit: config?.variables?.limit ?? QUERY_DEFAULT_LIMIT, - offset: config?.variables?.offset ?? 0, - where: config?.variables?.where - } - }); - }, - useGetRecent: ( - config?: Omit< - QueryHookOptions, - 'variables' - > - ) => { - const GET_RECENT_EXECUTED_REVERSIBLE_TRANSACTIONS = gql` - query GetRecentExecutedReversibleTransactions( - $limit: Int - $offset: Int - $orderBy: [executed_reversible_transfer_order_by!] - ) { - executedReversibleTransactions: executed_reversible_transfer( - limit: $limit - offset: $offset - order_by: $orderBy - ) { - timestamp - tx_id - block { - height - } - scheduledTransfer { - extrinsic { - id - pallet - call - } - amount - timestamp - scheduled_at - tx_id - fee - block { - height - } - from { - id - } - to { - id - } - } - } - } - `; - - return useQuery< - RecentExecutedReversibleTransactionsResponse, - PaginatedQueryVariables - >(GET_RECENT_EXECUTED_REVERSIBLE_TRANSACTIONS, { - ...config, - variables: { - orderBy: { timestamp: 'desc' }, - limit: QUERY_RECENT_LIMIT - } - }); - }, - useGetStats: ( - config?: Omit< - QueryHookOptions, - 'variables' - > - ) => { - const { startDate, endDate } = useGetRecentDateRange(); - - const GET_EXECUTED_REVERSIBLE_TRANSACTIONS_STATS = gql` - query GetExecutedReversibleTransactionsStats( - $startDate: timestamptz! - $endDate: timestamptz! - ) { - last24Hour: executed_reversible_transfer_aggregate( - where: { timestamp: { _gte: $startDate, _lte: $endDate } } - ) { - aggregate { - totalCount: count - } - } - allTime: chain_stats_by_pk(id: "global") { - total_executed_transfers - } - } - `; - - return useQuery( - GET_EXECUTED_REVERSIBLE_TRANSACTIONS_STATS, - { - ...config, - variables: { - startDate, - endDate - } - } - ); - }, getByTxId: () => { const QUERY = gql` query GetExecutedReversibleTransactionByTxId($tx_id: String!) { diff --git a/src/api/high-security-sets.tsx b/src/api/high-security-sets.tsx index 5b790e4..84c2f79 100644 --- a/src/api/high-security-sets.tsx +++ b/src/api/high-security-sets.tsx @@ -3,13 +3,11 @@ import { gql, useQuery } from '@apollo/client'; import type { High_Security_Set_Bool_Exp } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { HighSecuritySetSorts } from '@/constants/query-sorts'; import type { HighSecuritySetListResponse, HighSecuritySetResponse, - HighSecuritySetsStatsResponse, - RecentHighSecuritySetsResponse + HighSecuritySetsStatsResponse } from '@/schemas'; import type { PaginatedQueryVariables } from '@/types/query'; import { useGetRecentDateRange } from '@/utils/get-recent-date-range'; @@ -73,55 +71,6 @@ export const highSecuritySets = { } }); }, - useGetRecent: ( - config?: Omit, 'variables'> - ) => { - const GET_RECENT_HIGH_SECURITY_SETS = gql` - query GetRecentHighSecuritySets( - $limit: Int - $offset: Int - $orderBy: [high_security_set_order_by!] - $where: high_security_set_bool_exp - ) { - highSecuritySets: high_security_set( - limit: $limit - offset: $offset - order_by: $orderBy - where: $where - ) { - id - extrinsic { - id - pallet - call - } - who { - id - } - guardian { - id - } - timestamp - delay - block { - height - } - } - } - `; - - return useQuery< - RecentHighSecuritySetsResponse, - PaginatedQueryVariables - >(GET_RECENT_HIGH_SECURITY_SETS, { - ...config, - variables: { - orderBy: { timestamp: 'desc' }, - limit: QUERY_RECENT_LIMIT, - where: {} - } - }); - }, useGetStats: ( config?: Omit, 'variables'> ) => { diff --git a/src/api/miner-rewards.tsx b/src/api/miner-rewards.tsx index 294e8a5..897005d 100644 --- a/src/api/miner-rewards.tsx +++ b/src/api/miner-rewards.tsx @@ -3,13 +3,11 @@ import { gql, useQuery } from '@apollo/client'; import type { Miner_Reward_Bool_Exp } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { MinerRewardSorts } from '@/constants/query-sorts'; import type { MinerRewardListResponse, MinerRewardResponse, - MinerRewardsStatsResponse, - RecentMinerRewardsResponse + MinerRewardsStatsResponse } from '@/schemas'; import type { PaginatedQueryVariables } from '@/types/query'; import { useGetRecentDateRange } from '@/utils/get-recent-date-range'; @@ -65,46 +63,6 @@ export const minerRewards = { } }); }, - useGetRecent: ( - config?: Omit, 'variables'> - ) => { - const GET_RECENT_MINER_REWARDS = gql` - query GetRecentMinerRewards( - $limit: Int - $offset: Int - $orderBy: [miner_reward_order_by!] - $where: miner_reward_bool_exp - ) { - minerRewards: miner_reward( - limit: $limit - offset: $offset - order_by: $orderBy - where: $where - ) { - block { - height - hash - } - reward - miner { - id - } - timestamp - } - } - `; - - return useQuery< - RecentMinerRewardsResponse, - PaginatedQueryVariables - >(GET_RECENT_MINER_REWARDS, { - ...config, - variables: { - orderBy: { timestamp: 'desc' }, - limit: QUERY_RECENT_LIMIT - } - }); - }, useGetStats: ( config?: Omit, 'variables'> ) => { diff --git a/src/api/multisig-created.tsx b/src/api/multisig-created.tsx index b0e7400..c3321f3 100644 --- a/src/api/multisig-created.tsx +++ b/src/api/multisig-created.tsx @@ -3,14 +3,12 @@ import { gql, useQuery } from '@apollo/client'; import type { Multisig_Bool_Exp } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { MultisigCreatedSorts } from '@/constants/query-sorts'; import type { MultisigByIdResponse, MultisigCreatedListResponse, MultisigCreatedResponse, - MultisigCreatedStatsResponse, - RecentMultisigCreatedResponse + MultisigCreatedStatsResponse } from '@/schemas'; import type { PaginatedQueryVariables } from '@/types/query'; import { useGetRecentDateRange } from '@/utils/get-recent-date-range'; @@ -80,32 +78,6 @@ export const multisigCreated = { } }); }, - useGetRecent: ( - config?: Omit, 'variables'> - ) => { - const GET_RECENT_MULTISIG_CREATED = gql` - ${MULTISIG_CREATED_FIELDS} - query GetRecentMultisigCreated( - $limit: Int - $orderBy: [multisig_order_by!] - ) { - multisigCreatedEvents: multisig(limit: $limit, order_by: $orderBy) { - ...MultisigCreatedFields - } - } - `; - - return useQuery( - GET_RECENT_MULTISIG_CREATED, - { - ...config, - variables: { - orderBy: { timestamp: 'desc' }, - limit: QUERY_RECENT_LIMIT - } - } - ); - }, useGetStats: ( config?: Omit, 'variables'> ) => { diff --git a/src/api/multisig-deposits-claimed.tsx b/src/api/multisig-deposits-claimed.tsx index 9ea9905..c5982f3 100644 --- a/src/api/multisig-deposits-claimed.tsx +++ b/src/api/multisig-deposits-claimed.tsx @@ -3,13 +3,11 @@ import { gql, useQuery } from '@apollo/client'; import type { Multisig_Deposits_Claimed_Bool_Exp } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { MultisigDepositsClaimedSorts } from '@/constants/query-sorts'; import type { MultisigDepositsClaimedListResponse, MultisigDepositsClaimedResponse, - MultisigDepositsClaimedStatsResponse, - RecentMultisigDepositsClaimedResponse + MultisigDepositsClaimedStatsResponse } from '@/schemas'; import type { PaginatedQueryVariables } from '@/types/query'; import { useGetRecentDateRange } from '@/utils/get-recent-date-range'; @@ -81,32 +79,6 @@ export const multisigDepositsClaimed = { } }); }, - useGetRecent: ( - config?: Omit< - QueryHookOptions, - 'variables' - > - ) => { - const QUERY = gql` - ${MULTISIG_DEPOSITS_CLAIMED_FIELDS} - query GetRecentMultisigDepositsClaimed( - $limit: Int - $orderBy: [multisig_deposits_claimed_order_by!] - ) { - multisigDepositsClaimedEvents: multisig_deposits_claimed( - limit: $limit - order_by: $orderBy - ) { - ...MultisigDepositsClaimedFields - } - } - `; - - return useQuery(QUERY, { - ...config, - variables: { orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT } - }); - }, useGetStats: ( config?: Omit< QueryHookOptions, diff --git a/src/api/multisig-proposal-cancelled.tsx b/src/api/multisig-proposal-cancelled.tsx index a616b71..a1732d0 100644 --- a/src/api/multisig-proposal-cancelled.tsx +++ b/src/api/multisig-proposal-cancelled.tsx @@ -3,13 +3,11 @@ import { gql, useQuery } from '@apollo/client'; import type { Cancelled_Multisig_Proposal_Bool_Exp } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { MultisigProposalCancelledSorts } from '@/constants/query-sorts'; import type { MultisigProposalCancelledListResponse, MultisigProposalCancelledResponse, - MultisigProposalCancelledStatsResponse, - RecentMultisigProposalCancelledResponse + MultisigProposalCancelledStatsResponse } from '@/schemas'; import type { PaginatedQueryVariables } from '@/types/query'; import { useGetRecentDateRange } from '@/utils/get-recent-date-range'; @@ -85,32 +83,6 @@ export const multisigProposalCancelled = { } }); }, - useGetRecent: ( - config?: Omit< - QueryHookOptions, - 'variables' - > - ) => { - const QUERY = gql` - ${MULTISIG_PROPOSAL_CANCELLED_FIELDS} - query GetRecentMultisigProposalCancelled( - $limit: Int - $orderBy: [cancelled_multisig_proposal_order_by!] - ) { - multisigProposalCancelledEvents: cancelled_multisig_proposal( - limit: $limit - order_by: $orderBy - ) { - ...MultisigProposalCancelledFields - } - } - `; - - return useQuery(QUERY, { - ...config, - variables: { orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT } - }); - }, useGetStats: ( config?: Omit< QueryHookOptions, diff --git a/src/api/multisig-proposal-created.tsx b/src/api/multisig-proposal-created.tsx index 8f66f9c..ea4544f 100644 --- a/src/api/multisig-proposal-created.tsx +++ b/src/api/multisig-proposal-created.tsx @@ -3,13 +3,11 @@ import { gql, useQuery } from '@apollo/client'; import type { Multisig_Proposal_Created_Bool_Exp } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { MultisigProposalCreatedSorts } from '@/constants/query-sorts'; import type { MultisigProposalCreatedListResponse, MultisigProposalCreatedResponse, - MultisigProposalCreatedStatsResponse, - RecentMultisigProposalCreatedResponse + MultisigProposalCreatedStatsResponse } from '@/schemas'; import type { PaginatedQueryVariables } from '@/types/query'; import { useGetRecentDateRange } from '@/utils/get-recent-date-range'; @@ -89,32 +87,6 @@ export const multisigProposalCreated = { } }); }, - useGetRecent: ( - config?: Omit< - QueryHookOptions, - 'variables' - > - ) => { - const QUERY = gql` - ${MULTISIG_PROPOSAL_CREATED_FIELDS} - query GetRecentMultisigProposalCreated( - $limit: Int - $orderBy: [multisig_proposal_created_order_by!] - ) { - multisigProposalCreatedEvents: multisig_proposal_created( - limit: $limit - order_by: $orderBy - ) { - ...MultisigProposalCreatedFields - } - } - `; - - return useQuery(QUERY, { - ...config, - variables: { orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT } - }); - }, useGetStats: ( config?: Omit< QueryHookOptions, diff --git a/src/api/multisig-proposal-executed.tsx b/src/api/multisig-proposal-executed.tsx index 6577e1b..05c5087 100644 --- a/src/api/multisig-proposal-executed.tsx +++ b/src/api/multisig-proposal-executed.tsx @@ -3,13 +3,11 @@ import { gql, useQuery } from '@apollo/client'; import type { Executed_Multisig_Proposal_Bool_Exp } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { MultisigProposalExecutedSorts } from '@/constants/query-sorts'; import type { MultisigProposalExecutedListResponse, MultisigProposalExecutedResponse, - MultisigProposalExecutedStatsResponse, - RecentMultisigProposalExecutedResponse + MultisigProposalExecutedStatsResponse } from '@/schemas'; import type { PaginatedQueryVariables } from '@/types/query'; import { useGetRecentDateRange } from '@/utils/get-recent-date-range'; @@ -84,32 +82,6 @@ export const multisigProposalExecuted = { } }); }, - useGetRecent: ( - config?: Omit< - QueryHookOptions, - 'variables' - > - ) => { - const QUERY = gql` - ${MULTISIG_PROPOSAL_EXECUTED_FIELDS} - query GetRecentMultisigProposalExecuted( - $limit: Int - $orderBy: [executed_multisig_proposal_order_by!] - ) { - multisigProposalExecutedEvents: executed_multisig_proposal( - limit: $limit - order_by: $orderBy - ) { - ...MultisigProposalExecutedFields - } - } - `; - - return useQuery(QUERY, { - ...config, - variables: { orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT } - }); - }, useGetStats: ( config?: Omit< QueryHookOptions, diff --git a/src/api/multisig-proposal-ready.tsx b/src/api/multisig-proposal-ready.tsx index 0155be9..ba6a2f9 100644 --- a/src/api/multisig-proposal-ready.tsx +++ b/src/api/multisig-proposal-ready.tsx @@ -3,13 +3,11 @@ import { gql, useQuery } from '@apollo/client'; import type { Multisig_Proposal_Ready_Bool_Exp } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { MultisigProposalReadySorts } from '@/constants/query-sorts'; import type { MultisigProposalReadyListResponse, MultisigProposalReadyResponse, - MultisigProposalReadyStatsResponse, - RecentMultisigProposalReadyResponse + MultisigProposalReadyStatsResponse } from '@/schemas'; import type { PaginatedQueryVariables } from '@/types/query'; import { useGetRecentDateRange } from '@/utils/get-recent-date-range'; @@ -83,32 +81,6 @@ export const multisigProposalReady = { } }); }, - useGetRecent: ( - config?: Omit< - QueryHookOptions, - 'variables' - > - ) => { - const QUERY = gql` - ${MULTISIG_PROPOSAL_READY_FIELDS} - query GetRecentMultisigProposalReady( - $limit: Int - $orderBy: [multisig_proposal_ready_order_by!] - ) { - multisigProposalReadyEvents: multisig_proposal_ready( - limit: $limit - order_by: $orderBy - ) { - ...MultisigProposalReadyFields - } - } - `; - - return useQuery(QUERY, { - ...config, - variables: { orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT } - }); - }, useGetStats: ( config?: Omit< QueryHookOptions, diff --git a/src/api/multisig-proposal-removed.tsx b/src/api/multisig-proposal-removed.tsx index 59b43a3..b6a74ad 100644 --- a/src/api/multisig-proposal-removed.tsx +++ b/src/api/multisig-proposal-removed.tsx @@ -3,13 +3,11 @@ import { gql, useQuery } from '@apollo/client'; import type { Removed_Multisig_Proposal_Bool_Exp } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { MultisigProposalRemovedSorts } from '@/constants/query-sorts'; import type { MultisigProposalRemovedListResponse, MultisigProposalRemovedResponse, - MultisigProposalRemovedStatsResponse, - RecentMultisigProposalRemovedResponse + MultisigProposalRemovedStatsResponse } from '@/schemas'; import type { PaginatedQueryVariables } from '@/types/query'; import { useGetRecentDateRange } from '@/utils/get-recent-date-range'; @@ -85,32 +83,6 @@ export const multisigProposalRemoved = { } }); }, - useGetRecent: ( - config?: Omit< - QueryHookOptions, - 'variables' - > - ) => { - const QUERY = gql` - ${MULTISIG_PROPOSAL_REMOVED_FIELDS} - query GetRecentMultisigProposalRemoved( - $limit: Int - $orderBy: [removed_multisig_proposal_order_by!] - ) { - multisigProposalRemovedEvents: removed_multisig_proposal( - limit: $limit - order_by: $orderBy - ) { - ...MultisigProposalRemovedFields - } - } - `; - - return useQuery(QUERY, { - ...config, - variables: { orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT } - }); - }, useGetStats: ( config?: Omit< QueryHookOptions, diff --git a/src/api/multisig-signer-approved.tsx b/src/api/multisig-signer-approved.tsx index 7407d80..103c95e 100644 --- a/src/api/multisig-signer-approved.tsx +++ b/src/api/multisig-signer-approved.tsx @@ -3,13 +3,11 @@ import { gql, useQuery } from '@apollo/client'; import type { Multisig_Signer_Approved_Bool_Exp } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import type { MultisigSignerApprovedSorts } from '@/constants/query-sorts'; import type { MultisigSignerApprovedListResponse, MultisigSignerApprovedResponse, - MultisigSignerApprovedStatsResponse, - RecentMultisigSignerApprovedResponse + MultisigSignerApprovedStatsResponse } from '@/schemas'; import type { PaginatedQueryVariables } from '@/types/query'; import { useGetRecentDateRange } from '@/utils/get-recent-date-range'; @@ -86,32 +84,6 @@ export const multisigSignerApproved = { } }); }, - useGetRecent: ( - config?: Omit< - QueryHookOptions, - 'variables' - > - ) => { - const QUERY = gql` - ${MULTISIG_SIGNER_APPROVED_FIELDS} - query GetRecentMultisigSignerApproved( - $limit: Int - $orderBy: [multisig_signer_approved_order_by!] - ) { - multisigSignerApprovedEvents: multisig_signer_approved( - limit: $limit - order_by: $orderBy - ) { - ...MultisigSignerApprovedFields - } - } - `; - - return useQuery(QUERY, { - ...config, - variables: { orderBy: { timestamp: 'desc' }, limit: QUERY_RECENT_LIMIT } - }); - }, useGetStats: ( config?: Omit< QueryHookOptions, diff --git a/src/api/scheduled-reversible-transactions.tsx b/src/api/scheduled-reversible-transactions.tsx index 02f19ba..0ebdb8c 100644 --- a/src/api/scheduled-reversible-transactions.tsx +++ b/src/api/scheduled-reversible-transactions.tsx @@ -1,174 +1,9 @@ import type { QueryHookOptions } from '@apollo/client'; import { gql, useQuery } from '@apollo/client'; -import type { Scheduled_Reversible_Transfer_Bool_Exp } from '@/__generated__/graphql'; -import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; -import type { ScheduledReversibleTransactionSorts } from '@/constants/query-sorts'; -import type { - RecentScheduledReversibleTransactionsResponse, - ScheduledReversibleTransactionListResponse, - ScheduledReversibleTransactionResponse, - ScheduledReversibleTransactionsStatsResponse -} from '@/schemas'; -import type { PaginatedQueryVariables } from '@/types/query'; -import { useGetRecentDateRange } from '@/utils/get-recent-date-range'; +import type { ScheduledReversibleTransactionResponse } from '@/schemas'; export const scheduledReversibleTransactions = { - useGetAll: ( - config?: QueryHookOptions< - ScheduledReversibleTransactionListResponse, - PaginatedQueryVariables< - ScheduledReversibleTransactionSorts, - Scheduled_Reversible_Transfer_Bool_Exp - > - > - ) => { - const GET_SCHEDULED_REVERSIBLE_TRANSACTIONS = gql` - query GetScheduledReversibleTransactions( - $limit: Int - $offset: Int - $orderBy: [scheduled_reversible_transfer_order_by!] - $where: scheduled_reversible_transfer_bool_exp - ) { - scheduledReversibleTransactions: scheduled_reversible_transfer( - limit: $limit - offset: $offset - order_by: $orderBy - where: $where - ) { - extrinsic { - id - pallet - call - } - amount - timestamp - scheduled_at - tx_id - fee - block { - height - } - from { - id - } - to { - id - } - } - meta: scheduled_reversible_transfer_aggregate(where: $where) { - aggregate { - totalCount: count - } - } - } - `; - - return useQuery< - ScheduledReversibleTransactionListResponse, - PaginatedQueryVariables< - ScheduledReversibleTransactionSorts, - Scheduled_Reversible_Transfer_Bool_Exp - > - >(GET_SCHEDULED_REVERSIBLE_TRANSACTIONS, { - ...config, - variables: { - orderBy: config?.variables?.orderBy ?? { timestamp: 'desc' }, - limit: config?.variables?.limit ?? QUERY_DEFAULT_LIMIT, - offset: config?.variables?.offset ?? 0, - where: config?.variables?.where - } - }); - }, - useGetRecent: ( - config?: Omit< - QueryHookOptions, - 'variables' - > - ) => { - const GET_RECENT_SCHEDULED_REVERSIBLE_TRANSACTIONS = gql` - query GetRecentScheduledReversibleTransactions( - $limit: Int - $offset: Int - $orderBy: [scheduled_reversible_transfer_order_by!] - ) { - scheduledReversibleTransactions: scheduled_reversible_transfer( - limit: $limit - offset: $offset - order_by: $orderBy - ) { - extrinsic { - id - pallet - call - } - amount - timestamp - scheduled_at - tx_id - fee - block { - height - } - from { - id - } - to { - id - } - } - } - `; - - return useQuery< - RecentScheduledReversibleTransactionsResponse, - PaginatedQueryVariables - >(GET_RECENT_SCHEDULED_REVERSIBLE_TRANSACTIONS, { - ...config, - variables: { - orderBy: { timestamp: 'desc' }, - limit: QUERY_RECENT_LIMIT - } - }); - }, - useGetStats: ( - config?: Omit< - QueryHookOptions, - 'variables' - > - ) => { - const { startDate, endDate } = useGetRecentDateRange(); - - const GET_SCHEDULED_REVERSIBLE_TRANSACTIONS_STATS = gql` - query GetScheduledReversibleTransactionsStats( - $startDate: timestamptz! - $endDate: timestamptz! - ) { - last24Hour: scheduled_reversible_transfer_aggregate( - where: { timestamp: { _gte: $startDate, _lte: $endDate } } - ) { - aggregate { - totalCount: count - } - } - allTime: chain_stats_by_pk(id: "global") { - total_scheduled_transfers - } - } - `; - - return useQuery( - GET_SCHEDULED_REVERSIBLE_TRANSACTIONS_STATS, - { - ...config, - variables: { - startDate, - endDate - } - } - ); - }, getByTxId: () => { const QUERY = gql` query GetScheduledReversibleTransactionByTxId($tx_id: String!) { diff --git a/src/api/transactions.tsx b/src/api/transactions.tsx index f7b545a..57e457c 100644 --- a/src/api/transactions.tsx +++ b/src/api/transactions.tsx @@ -1,166 +1,9 @@ import type { QueryHookOptions } from '@apollo/client'; import { gql, useQuery } from '@apollo/client'; -import type { Transfer_Bool_Exp } from '@/__generated__/graphql'; -import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; -import type { TransactionSorts } from '@/constants/query-sorts'; -import type { - ExtrinsicDetailResponse, - RecentTransactionsResponse, - TransactionListResponse, - TransactionsStatsResponse -} from '@/schemas'; -import type { PaginatedQueryVariables } from '@/types/query'; -import { useGetRecentDateRange } from '@/utils/get-recent-date-range'; +import type { ExtrinsicDetailResponse } from '@/schemas'; export const transactions = { - useGetAll: ( - config?: QueryHookOptions< - TransactionListResponse, - PaginatedQueryVariables - > - ) => { - const GET_TRANSACTIONS = gql` - query GetTransactions( - $limit: Int - $offset: Int - $orderBy: [transfer_order_by!] - $where: transfer_bool_exp - ) { - transactions: transfer( - limit: $limit - offset: $offset - order_by: $orderBy - where: $where - ) { - fee - extrinsic { - id - pallet - call - } - block { - height - } - amount - timestamp - from { - id - } - to { - id - } - } - meta: transfer_aggregate(where: $where) { - aggregate { - totalCount: count - } - } - } - `; - - return useQuery< - TransactionListResponse, - PaginatedQueryVariables - >(GET_TRANSACTIONS, { - ...config, - variables: { - orderBy: config?.variables?.orderBy ?? { timestamp: 'desc' }, - limit: config?.variables?.limit ?? QUERY_DEFAULT_LIMIT, - offset: config?.variables?.offset ?? 0, - where: { - _and: [ - { extrinsic_id: { _is_null: false } }, - { ...config?.variables?.where } - ] - } - } - }); - }, - useGetRecent: ( - config?: Omit, 'variables'> - ) => { - const GET_RECENT_TRANSACTIONS = gql` - query GetRecentTransactions( - $limit: Int - $offset: Int - $orderBy: [transfer_order_by!] - $where: transfer_bool_exp - ) { - transactions: transfer( - limit: $limit - offset: $offset - order_by: $orderBy - where: $where - ) { - fee - extrinsic { - id - pallet - call - } - block { - height - } - amount - timestamp - from { - id - } - to { - id - } - } - } - `; - - return useQuery< - RecentTransactionsResponse, - PaginatedQueryVariables - >(GET_RECENT_TRANSACTIONS, { - ...config, - variables: { - orderBy: { timestamp: 'desc' }, - limit: QUERY_RECENT_LIMIT, - where: { extrinsic_id: { _is_null: false } } - } - }); - }, - useGetStats: ( - config?: Omit, 'variables'> - ) => { - const { startDate, endDate } = useGetRecentDateRange(); - - const GET_TRANSACTIONS_STATS = gql` - query GetTransactionsStats( - $startDate: timestamptz! - $endDate: timestamptz! - ) { - last24Hour: transfer_aggregate( - where: { - timestamp: { _gte: $startDate, _lte: $endDate } - extrinsic_id: { _is_null: false } - } - ) { - aggregate { - totalCount: count - } - } - allTime: chain_stats_by_pk(id: "global") { - total_immediate_transfers - } - } - `; - - return useQuery(GET_TRANSACTIONS_STATS, { - ...config, - variables: { - startDate, - endDate - } - }); - }, getByHash: () => { const QUERY = gql` query GetExtrinsicByHash($hash: String!) { diff --git a/src/api/wormhole.tsx b/src/api/wormhole.tsx index f02f19a..a4b1a05 100644 --- a/src/api/wormhole.tsx +++ b/src/api/wormhole.tsx @@ -1,50 +1,6 @@ import { gql, useQuery } from '@apollo/client'; -import type { Wormhole_Extrinsic_Bool_Exp } from '@/__generated__/graphql'; -import { DATA_POOL_INTERVAL } from '@/constants/data-pool-interval'; -import { type WormholeExtrinsicSorts } from '@/constants/query-sorts'; -import type { - DepositPoolStatsResponse, - WormholeExtrinsicListResponse, - WormholeExtrinsicResponse -} from '@/schemas/wormhole'; -import type { PaginatedQueryVariables } from '@/types/query'; - -const GET_WORMHOLE_EXTRINSICS = gql` - query GetWormholeExtrinsics( - $limit: Int - $offset: Int - $orderBy: [wormhole_extrinsic_order_by!]! - $where: wormhole_extrinsic_bool_exp - ) { - wormholeExtrinsics: wormhole_extrinsic( - limit: $limit - offset: $offset - order_by: $orderBy - where: $where - ) { - id - extrinsic { - id - pallet - call - } - total_amount - output_count - timestamp - privacy_score - privacy_label - block { - height - } - } - meta: wormhole_extrinsic_aggregate(where: $where) { - aggregate { - totalCount: count - } - } - } -`; +import type { WormholeExtrinsicResponse } from '@/schemas/wormhole'; const GET_WORMHOLE_EXTRINSIC_BY_ID = gql` query GetWormholeExtrinsicById($id: String!) { @@ -87,40 +43,7 @@ const GET_WORMHOLE_EXTRINSIC_BY_ID = gql` } `; -const GET_DEPOSIT_POOL_STATS = gql` - query GetDepositPoolStats { - depositPoolStatsById: deposit_pool_stats_by_pk(id: "global") { - last_updated_block - buckets - } - } -`; - export const wormhole = { - useGetAll: (config?: { - pollInterval?: number; - variables?: PaginatedQueryVariables< - WormholeExtrinsicSorts, - Wormhole_Extrinsic_Bool_Exp - >; - }) => { - const { pollInterval = DATA_POOL_INTERVAL, variables = {} } = config ?? {}; - const { - orderBy = { timestamp: 'desc' }, - limit = 25, - offset = 0, - where - } = variables as PaginatedQueryVariables< - WormholeExtrinsicSorts, - Wormhole_Extrinsic_Bool_Exp - >; - - return useQuery(GET_WORMHOLE_EXTRINSICS, { - pollInterval, - variables: { orderBy: [orderBy], limit, offset, where } - }); - }, - getById: () => { return { useQuery: (id: string, config?: { pollInterval?: number }) => { @@ -135,12 +58,5 @@ export const wormhole = { ); } }; - }, - - useGetDepositPoolStats: (config?: { pollInterval?: number }) => { - const { pollInterval = DATA_POOL_INTERVAL } = config ?? {}; - return useQuery(GET_DEPOSIT_POOL_STATS, { - pollInterval - }); } }; diff --git a/src/components/ui/composites/search-preview/SearchPreview.tsx b/src/components/ui/composites/search-preview/SearchPreview.tsx index 58b66d9..5bc874b 100644 --- a/src/components/ui/composites/search-preview/SearchPreview.tsx +++ b/src/components/ui/composites/search-preview/SearchPreview.tsx @@ -42,7 +42,7 @@ interface SectionProps { loading: boolean; error?: string; emptyMsg: string; - items?: T[]; + items?: any[]; renderItem: (item: T) => React.ReactNode; } diff --git a/src/constants/query-sorts/index.ts b/src/constants/query-sorts/index.ts index 46ae71c..d0b13f0 100644 --- a/src/constants/query-sorts/index.ts +++ b/src/constants/query-sorts/index.ts @@ -12,7 +12,4 @@ export * from './multisig-proposal-executed'; export * from './multisig-proposal-ready'; export * from './multisig-proposal-removed'; export * from './multisig-signer-approved'; -export * from './reversible-transactions'; -export * from './transactions'; export * from './unified-list-transactions'; -export * from './wormhole'; diff --git a/src/constants/query-sorts/reversible-transactions.ts b/src/constants/query-sorts/reversible-transactions.ts deleted file mode 100644 index 6680758..0000000 --- a/src/constants/query-sorts/reversible-transactions.ts +++ /dev/null @@ -1,64 +0,0 @@ -import type { SortDirection } from '@/types/query'; - -export interface ReversibleTransactionSorts { - id?: SortDirection; - timestamp?: SortDirection; - scheduled_at?: SortDirection; - status?: SortDirection; - extrinsic_id?: SortDirection; - tx_id?: SortDirection; - block_height?: SortDirection; - who_id?: SortDirection; -} - -export const REVERSIBLE_TRANSACTION_SORTS_LITERALS = [ - 'id:desc', - 'timestamp:desc', - 'scheduled_at:desc', - 'status:desc', - 'extrinsic_id:desc', - 'tx_id:desc', - 'block_height:desc', - 'who_id:desc', - 'id:asc', - 'timestamp:asc', - 'scheduled_at:asc', - 'status:asc', - 'extrinsic_id:asc', - 'tx_id:asc', - 'block_height:asc', - 'who_id:asc' -]; - -export interface ScheduledReversibleTransactionSorts { - timestamp?: SortDirection; - scheduled_at?: SortDirection; - amount?: SortDirection; -} - -export const SCHEDULED_REVERSIBLE_TRANSACTION_SORTS_LITERALS = [ - 'timestamp:desc', - 'scheduled_at:desc', - 'amount:desc', - 'timestamp:asc', - 'scheduled_at:asc', - 'amount:asc' -]; - -export interface ExecutedReversibleTransactionSorts { - timestamp?: SortDirection; -} - -export const EXECUTED_REVERSIBLE_TRANSACTION_SORTS_LITERALS = [ - 'timestamp:desc', - 'timestamp:asc' -]; - -export interface CancelledReversibleTransactionSorts { - timestamp?: SortDirection; -} - -export const CANCELLED_REVERSIBLE_TRANSACTION_SORTS_LITERALS = [ - 'timestamp:desc', - 'timestamp:asc' -]; diff --git a/src/constants/query-sorts/transactions.ts b/src/constants/query-sorts/transactions.ts deleted file mode 100644 index 69027c6..0000000 --- a/src/constants/query-sorts/transactions.ts +++ /dev/null @@ -1,31 +0,0 @@ -import type { SortDirection } from '@/types/query'; - -export interface TransactionSorts { - id?: SortDirection; - timestamp?: SortDirection; - fee?: SortDirection; - extrinsic_id?: SortDirection; - block_height?: SortDirection; - amount?: SortDirection; - from_id?: SortDirection; - to_id?: SortDirection; -} - -export const TRANSACTION_SORTS_LITERALS = [ - 'id:desc', - 'timestamp:desc', - 'fee:desc', - 'extrinsic_id:desc', - 'block_height:desc', - 'amount:desc', - 'from_id:desc', - 'to_id:desc', - 'id:asc', - 'timestamp:asc', - 'fee:asc', - 'extrinsic_id:asc', - 'block_height:asc', - 'amount:asc', - 'from_id:asc', - 'to_id:asc' -]; diff --git a/src/constants/query-sorts/wormhole.ts b/src/constants/query-sorts/wormhole.ts deleted file mode 100644 index 3ed7a8f..0000000 --- a/src/constants/query-sorts/wormhole.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type { SortDirection } from '@/types/query'; - -export interface WormholeExtrinsicSorts { - id?: SortDirection; - privacy_score?: SortDirection; - total_amount?: SortDirection; - output_count?: SortDirection; - timestamp?: SortDirection; - privacy_label?: SortDirection; -} - -export const WORMHOLE_EXTRINSIC_SORTS_LITERALS = [ - 'id:desc', - 'privacy_score:desc', - 'total_amount:desc', - 'output_count:desc', - 'timestamp:desc', - 'privacy_label:desc', - 'id:asc', - 'privacy_score:asc', - 'total_amount:asc', - 'output_count:asc', - 'timestamp:asc', - 'privacy_label:asc' -]; diff --git a/src/lib/graphql-benchmark/bootstrap.ts b/src/lib/graphql-benchmark/bootstrap.ts index c9a4a2d..cf8e87e 100644 --- a/src/lib/graphql-benchmark/bootstrap.ts +++ b/src/lib/graphql-benchmark/bootstrap.ts @@ -3,14 +3,14 @@ import type { ApolloClient, NormalizedCacheObject } from '@apollo/client'; import { GetAccountsDocument, GetBlockByIdDocument, + GetBlocksDocument, GetCancelledReversibleTransactionsDocument, GetErrorEventsDocument, GetExecutedReversibleTransactionsDocument, GetHighSecuritySetsDocument, - GetRecentBlocksDocument, - GetRecentMinerRewardsDocument, - GetRecentTransactionsDocument, + GetMinerRewardsDocument, GetScheduledReversibleTransactionsDocument, + GetTransactionsDocument, GetWormholeExtrinsicsDocument, Order_By } from '@/__generated__/graphql'; @@ -33,9 +33,9 @@ export async function loadGraphqlBenchmarkContext( const blocks = await safeQuery(() => client.query({ - query: GetRecentBlocksDocument, + query: GetBlocksDocument, variables: { - orderBy: { timestamp: Order_By.Desc }, + orderBy: [{ timestamp: Order_By.Desc }], limit: 1, offset: 0 } @@ -64,7 +64,7 @@ export async function loadGraphqlBenchmarkContext( const transfers = await safeQuery(() => client.query({ - query: GetRecentTransactionsDocument, + query: GetTransactionsDocument, variables: { orderBy: { timestamp: Order_By.Desc }, limit: 1, @@ -170,10 +170,11 @@ export async function loadGraphqlBenchmarkContext( const miners = await safeQuery(() => client.query({ - query: GetRecentMinerRewardsDocument, + query: GetMinerRewardsDocument, variables: { orderBy: { timestamp: Order_By.Desc }, - limit: 1 + limit: 1, + offset: 0 } }) ); @@ -185,23 +186,15 @@ export async function loadGraphqlBenchmarkContext( const sampleHeight = ctx.blockHeight; const sampleHash = ctx.blockHash; if (sampleHeight != null && sampleHash != null) { - const blockDetail = await safeQuery(() => + await safeQuery(() => client.query({ query: GetBlockByIdDocument, variables: { height: sampleHeight, - hash: sampleHash, - limit: QUERY_DEFAULT_LIMIT + hash: sampleHash } }) ); - const r = blockDetail?.data; - if (r) { - const b = r.blocks?.[0]; - if (b) { - // We need to find sample IDs from the block details if not already found - } - } } return ctx; diff --git a/src/lib/graphql-benchmark/registry.ts b/src/lib/graphql-benchmark/registry.ts index 5ef9e5f..a018814 100644 --- a/src/lib/graphql-benchmark/registry.ts +++ b/src/lib/graphql-benchmark/registry.ts @@ -10,14 +10,11 @@ import { GetBlocksDocument, GetCancelledReversibleTransactionByTxIdDocument, GetCancelledReversibleTransactionsDocument, - GetCancelledReversibleTransactionsStatsDocument, - GetDepositPoolStatsDocument, GetErrorEventByHashDocument, GetErrorEventsDocument, GetErrorEventsStatsDocument, GetExecutedReversibleTransactionByTxIdDocument, GetExecutedReversibleTransactionsDocument, - GetExecutedReversibleTransactionsStatsDocument, GetExtrinsicByHashDocument, GetHighSecuritySetByHashDocument, GetHighSecuritySetsDocument, @@ -26,26 +23,15 @@ import { GetMinerRewardByHashDocument, GetMinerRewardsDocument, GetMinerRewardsStatsDocument, - GetRecentBlocksDocument, - GetRecentCancelledReversibleTransactionsDocument, - GetRecentErrorEventsDocument, - GetRecentExecutedReversibleTransactionsDocument, - GetRecentHighSecuritySetsDocument, - GetRecentMinerRewardsDocument, - GetRecentScheduledReversibleTransactionsDocument, - GetRecentTransactionsDocument, GetScheduledReversibleTransactionByTxIdDocument, GetScheduledReversibleTransactionsDocument, - GetScheduledReversibleTransactionsStatsDocument, GetStatusDocument, GetTransactionsDocument, - GetTransactionsStatsDocument, GetWormholeExtrinsicByIdDocument, GetWormholeExtrinsicsDocument, SearchAllDocument } from '@/__generated__/graphql'; import { QUERY_DEFAULT_LIMIT } from '@/constants/query-default-limit'; -import { QUERY_RECENT_LIMIT } from '@/constants/query-recent-limit'; import { SEARCH_PREVIEW_RESULTS_LIMIT } from '@/constants/search-preview-results-limit'; import type { GraphqlBenchmarkRegistryEntry } from './types'; @@ -92,14 +78,6 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ offset: 0 }) }, - { - name: 'GetRecentBlocks', - document: GetRecentBlocksDocument, - getVariables: () => ({ - orderBy: { timestamp: 'desc' }, - limit: QUERY_RECENT_LIMIT - }) - }, { name: 'GetBlockById', document: GetBlockByIdDocument, @@ -120,19 +98,6 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ offset: 0 }) }, - { - name: 'GetRecentCancelledReversibleTransactions', - document: GetRecentCancelledReversibleTransactionsDocument, - getVariables: () => ({ - orderBy: { timestamp: 'desc' }, - limit: QUERY_RECENT_LIMIT - }) - }, - { - name: 'GetCancelledReversibleTransactionsStats', - document: GetCancelledReversibleTransactionsStatsDocument, - getVariables: () => statsDay() - }, { name: 'GetCancelledReversibleTransactionByTxId', document: GetCancelledReversibleTransactionByTxIdDocument, @@ -153,14 +118,6 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ offset: 0 }) }, - { - name: 'GetRecentErrorEvents', - document: GetRecentErrorEventsDocument, - getVariables: () => ({ - orderBy: { timestamp: 'desc' }, - limit: QUERY_RECENT_LIMIT - }) - }, { name: 'GetErrorEventsStats', document: GetErrorEventsStatsDocument, @@ -183,19 +140,6 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ offset: 0 }) }, - { - name: 'GetRecentExecutedReversibleTransactions', - document: GetRecentExecutedReversibleTransactionsDocument, - getVariables: () => ({ - orderBy: { timestamp: 'desc' }, - limit: QUERY_RECENT_LIMIT - }) - }, - { - name: 'GetExecutedReversibleTransactionsStats', - document: GetExecutedReversibleTransactionsStatsDocument, - getVariables: () => statsDay() - }, { name: 'GetExecutedReversibleTransactionByTxId', document: GetExecutedReversibleTransactionByTxIdDocument, @@ -211,15 +155,6 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ offset: 0 }) }, - { - name: 'GetRecentHighSecuritySets', - document: GetRecentHighSecuritySetsDocument, - getVariables: () => ({ - orderBy: { timestamp: 'desc' }, - limit: QUERY_RECENT_LIMIT, - where: {} - }) - }, { name: 'GetHighSecuritySetsStats', document: GetHighSecuritySetsStatsDocument, @@ -250,14 +185,6 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ offset: 0 }) }, - { - name: 'GetRecentMinerRewards', - document: GetRecentMinerRewardsDocument, - getVariables: () => ({ - orderBy: { timestamp: 'desc' }, - limit: QUERY_RECENT_LIMIT - }) - }, { name: 'GetMinerRewardsStats', document: GetMinerRewardsStatsDocument, @@ -278,19 +205,6 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ offset: 0 }) }, - { - name: 'GetRecentScheduledReversibleTransactions', - document: GetRecentScheduledReversibleTransactionsDocument, - getVariables: () => ({ - orderBy: { timestamp: 'desc' }, - limit: QUERY_RECENT_LIMIT - }) - }, - { - name: 'GetScheduledReversibleTransactionsStats', - document: GetScheduledReversibleTransactionsStatsDocument, - getVariables: () => statsDay() - }, { name: 'GetScheduledReversibleTransactionByTxId', document: GetScheduledReversibleTransactionByTxIdDocument, @@ -316,20 +230,6 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ where: { extrinsic_id: { _is_null: false } } }) }, - { - name: 'GetRecentTransactions', - document: GetRecentTransactionsDocument, - getVariables: () => ({ - orderBy: { timestamp: 'desc' }, - limit: QUERY_RECENT_LIMIT, - where: { extrinsic_id: { _is_null: false } } - }) - }, - { - name: 'GetTransactionsStats', - document: GetTransactionsStatsDocument, - getVariables: () => statsDay() - }, { name: 'GetExtrinsicByHash', document: GetExtrinsicByHashDocument, @@ -350,10 +250,5 @@ export const graphqlBenchmarkRegistry: GraphqlBenchmarkRegistryEntry[] = [ document: GetWormholeExtrinsicByIdDocument, getVariables: (ctx) => ctx.wormholeExtrinsicId ? { id: ctx.wormholeExtrinsicId } : null - }, - { - name: 'GetDepositPoolStats', - document: GetDepositPoolStatsDocument, - getVariables: () => ({}) } ]; diff --git a/src/lib/graphql-benchmark/seed-queries.ts b/src/lib/graphql-benchmark/seed-queries.ts new file mode 100644 index 0000000..a87ff78 --- /dev/null +++ b/src/lib/graphql-benchmark/seed-queries.ts @@ -0,0 +1,95 @@ +import { gql } from '@apollo/client'; + +/** Minimal list queries for benchmark bootstrap (and registry seeding ops). */ + +export const GET_TRANSACTIONS = gql` + query GetTransactions( + $limit: Int + $offset: Int + $orderBy: [transfer_order_by!] + $where: transfer_bool_exp + ) { + transactions: transfer( + limit: $limit + offset: $offset + order_by: $orderBy + where: $where + ) { + extrinsic { + id + } + } + } +`; + +export const GET_CANCELLED_REVERSIBLE_TRANSACTIONS = gql` + query GetCancelledReversibleTransactions( + $limit: Int + $offset: Int + $orderBy: [cancelled_reversible_transfer_order_by!] + $where: cancelled_reversible_transfer_bool_exp + ) { + cancelledReversibleTransactions: cancelled_reversible_transfer( + limit: $limit + offset: $offset + order_by: $orderBy + where: $where + ) { + tx_id + } + } +`; + +export const GET_EXECUTED_REVERSIBLE_TRANSACTIONS = gql` + query GetExecutedReversibleTransactions( + $limit: Int + $offset: Int + $orderBy: [executed_reversible_transfer_order_by!] + $where: executed_reversible_transfer_bool_exp + ) { + executedReversibleTransactions: executed_reversible_transfer( + limit: $limit + offset: $offset + order_by: $orderBy + where: $where + ) { + tx_id + } + } +`; + +export const GET_SCHEDULED_REVERSIBLE_TRANSACTIONS = gql` + query GetScheduledReversibleTransactions( + $limit: Int + $offset: Int + $orderBy: [scheduled_reversible_transfer_order_by!] + $where: scheduled_reversible_transfer_bool_exp + ) { + scheduledReversibleTransactions: scheduled_reversible_transfer( + limit: $limit + offset: $offset + order_by: $orderBy + where: $where + ) { + tx_id + } + } +`; + +export const GET_WORMHOLE_EXTRINSICS = gql` + query GetWormholeExtrinsics( + $limit: Int + $offset: Int + $orderBy: [wormhole_extrinsic_order_by!]! + $where: wormhole_extrinsic_bool_exp + ) { + wormholeExtrinsics: wormhole_extrinsic( + limit: $limit + offset: $offset + order_by: $orderBy + where: $where + ) { + id + } + } +`; diff --git a/src/schemas/blocks.ts b/src/schemas/blocks.ts index e5c33af..d5184f7 100644 --- a/src/schemas/blocks.ts +++ b/src/schemas/blocks.ts @@ -67,10 +67,6 @@ export interface BlockListResponse { }; } -export interface RecentBlocksResponse { - blocks: Block[]; -} - export interface BlockTransaction { node: Transaction; } diff --git a/src/schemas/cancelled-reversible-transaction.ts b/src/schemas/cancelled-reversible-transaction.ts index 667d8ab..38a237c 100644 --- a/src/schemas/cancelled-reversible-transaction.ts +++ b/src/schemas/cancelled-reversible-transaction.ts @@ -14,27 +14,3 @@ export interface CancelledReversibleTransaction export interface CancelledReversibleTransactionResponse { cancelledReversibleTransactions: [CancelledReversibleTransaction]; } - -export interface CancelledReversibleTransactionListResponse { - cancelledReversibleTransactions: CancelledReversibleTransaction[]; - meta: { - aggregate: { - totalCount: number; - }; - }; -} - -export interface RecentCancelledReversibleTransactionsResponse { - cancelledReversibleTransactions: CancelledReversibleTransaction[]; -} - -export interface CancelledReversibleTransactionsStatsResponse { - allTime: { - total_cancelled_transfers: number; - }; - last24Hour: { - aggregate: { - totalCount: number; - }; - }; -} diff --git a/src/schemas/errors.ts b/src/schemas/errors.ts index 12427af..6d67441 100644 --- a/src/schemas/errors.ts +++ b/src/schemas/errors.ts @@ -17,10 +17,6 @@ export interface ErrorEventListResponse { }; } -export interface RecentErrorEventsResponse { - errorEvents: ErrorEvent[]; -} - export interface ErrorEventsStatsResponse { allTime: { total_error_events: number; diff --git a/src/schemas/executed-reversible-transaction.ts b/src/schemas/executed-reversible-transaction.ts index 13225bf..aeab967 100644 --- a/src/schemas/executed-reversible-transaction.ts +++ b/src/schemas/executed-reversible-transaction.ts @@ -13,27 +13,3 @@ export interface ExecutedReversibleTransaction export interface ExecutedReversibleTransactionResponse { executedReversibleTransactions: [ExecutedReversibleTransaction]; } - -export interface ExecutedReversibleTransactionListResponse { - executedReversibleTransactions: ExecutedReversibleTransaction[]; - meta: { - aggregate: { - totalCount: number; - }; - }; -} - -export interface RecentExecutedReversibleTransactionsResponse { - executedReversibleTransactions: ExecutedReversibleTransaction[]; -} - -export interface ExecutedReversibleTransactionsStatsResponse { - allTime: { - total_executed_transfers: number; - }; - last24Hour: { - aggregate: { - totalCount: number; - }; - }; -} diff --git a/src/schemas/high-security-set.ts b/src/schemas/high-security-set.ts index 5f06339..1fc180b 100644 --- a/src/schemas/high-security-set.ts +++ b/src/schemas/high-security-set.ts @@ -23,10 +23,6 @@ export interface HighSecuritySetListResponse { }; } -export interface RecentHighSecuritySetsResponse { - highSecuritySets: HighSecuritySet[]; -} - export interface HighSecuritySetsStatsResponse { allTime: { total_high_security_sets: number; diff --git a/src/schemas/miner-reward.ts b/src/schemas/miner-reward.ts index c35b820..1b5abae 100644 --- a/src/schemas/miner-reward.ts +++ b/src/schemas/miner-reward.ts @@ -19,10 +19,6 @@ export interface MinerRewardListResponse { }; } -export interface RecentMinerRewardsResponse { - minerRewards: MinerReward[]; -} - export interface MinerRewardsStatsResponse { allTime: { total_miner_rewards: number; diff --git a/src/schemas/multisig-created.ts b/src/schemas/multisig-created.ts index 0bb135f..00a30f0 100644 --- a/src/schemas/multisig-created.ts +++ b/src/schemas/multisig-created.ts @@ -24,10 +24,6 @@ export interface MultisigCreatedListResponse { }; } -export interface RecentMultisigCreatedResponse { - multisigCreatedEvents: MultisigCreated[]; -} - export interface MultisigCreatedStatsResponse { allTime: { total_multisigs_created: number; diff --git a/src/schemas/multisig-deposits-claimed.ts b/src/schemas/multisig-deposits-claimed.ts index 2445e36..481147a 100644 --- a/src/schemas/multisig-deposits-claimed.ts +++ b/src/schemas/multisig-deposits-claimed.ts @@ -24,10 +24,6 @@ export interface MultisigDepositsClaimedListResponse { }; } -export interface RecentMultisigDepositsClaimedResponse { - multisigDepositsClaimedEvents: MultisigDepositsClaimed[]; -} - export interface MultisigDepositsClaimedStatsResponse { allTime: { total_multisig_deposits_claimed: number; diff --git a/src/schemas/multisig-proposal-cancelled.ts b/src/schemas/multisig-proposal-cancelled.ts index f71ae27..6900075 100644 --- a/src/schemas/multisig-proposal-cancelled.ts +++ b/src/schemas/multisig-proposal-cancelled.ts @@ -25,10 +25,6 @@ export interface MultisigProposalCancelledListResponse { }; } -export interface RecentMultisigProposalCancelledResponse { - multisigProposalCancelledEvents: MultisigProposalCancelled[]; -} - export interface MultisigProposalCancelledStatsResponse { allTime: { total_multisig_proposals_cancelled: number; diff --git a/src/schemas/multisig-proposal-created.ts b/src/schemas/multisig-proposal-created.ts index a8db936..0886d63 100644 --- a/src/schemas/multisig-proposal-created.ts +++ b/src/schemas/multisig-proposal-created.ts @@ -29,10 +29,6 @@ export interface MultisigProposalCreatedListResponse { }; } -export interface RecentMultisigProposalCreatedResponse { - multisigProposalCreatedEvents: MultisigProposalCreated[]; -} - export interface MultisigProposalCreatedStatsResponse { allTime: { total_multisig_proposals: number; diff --git a/src/schemas/multisig-proposal-executed.ts b/src/schemas/multisig-proposal-executed.ts index 77b1b0b..81a8009 100644 --- a/src/schemas/multisig-proposal-executed.ts +++ b/src/schemas/multisig-proposal-executed.ts @@ -24,10 +24,6 @@ export interface MultisigProposalExecutedListResponse { }; } -export interface RecentMultisigProposalExecutedResponse { - multisigProposalExecutedEvents: MultisigProposalExecuted[]; -} - export interface MultisigProposalExecutedStatsResponse { allTime: { total_multisig_proposals_executed: number; diff --git a/src/schemas/multisig-proposal-ready.ts b/src/schemas/multisig-proposal-ready.ts index 496f928..d5d2b3a 100644 --- a/src/schemas/multisig-proposal-ready.ts +++ b/src/schemas/multisig-proposal-ready.ts @@ -24,10 +24,6 @@ export interface MultisigProposalReadyListResponse { }; } -export interface RecentMultisigProposalReadyResponse { - multisigProposalReadyEvents: MultisigProposalReady[]; -} - export interface MultisigProposalReadyStatsResponse { allTime: { total_multisig_proposal_ready: number; diff --git a/src/schemas/multisig-proposal-removed.ts b/src/schemas/multisig-proposal-removed.ts index 219f147..dff467b 100644 --- a/src/schemas/multisig-proposal-removed.ts +++ b/src/schemas/multisig-proposal-removed.ts @@ -25,10 +25,6 @@ export interface MultisigProposalRemovedListResponse { }; } -export interface RecentMultisigProposalRemovedResponse { - multisigProposalRemovedEvents: MultisigProposalRemoved[]; -} - export interface MultisigProposalRemovedStatsResponse { allTime: { total_multisig_proposals_removed: number; diff --git a/src/schemas/multisig-signer-approved.ts b/src/schemas/multisig-signer-approved.ts index b079610..468788f 100644 --- a/src/schemas/multisig-signer-approved.ts +++ b/src/schemas/multisig-signer-approved.ts @@ -26,10 +26,6 @@ export interface MultisigSignerApprovedListResponse { }; } -export interface RecentMultisigSignerApprovedResponse { - multisigSignerApprovedEvents: MultisigSignerApproved[]; -} - export interface MultisigSignerApprovedStatsResponse { allTime: { total_multisig_signer_approved: number; diff --git a/src/schemas/scheduled-reversible-transaction.ts b/src/schemas/scheduled-reversible-transaction.ts index 8ef5738..029bd8a 100644 --- a/src/schemas/scheduled-reversible-transaction.ts +++ b/src/schemas/scheduled-reversible-transaction.ts @@ -13,27 +13,3 @@ export interface ScheduledReversibleTransaction export interface ScheduledReversibleTransactionResponse { scheduledReversibleTransactions: [ScheduledReversibleTransaction]; } - -export interface ScheduledReversibleTransactionListResponse { - scheduledReversibleTransactions: ScheduledReversibleTransaction[]; - meta: { - aggregate: { - totalCount: number; - }; - }; -} - -export interface RecentScheduledReversibleTransactionsResponse { - scheduledReversibleTransactions: ScheduledReversibleTransaction[]; -} - -export interface ScheduledReversibleTransactionsStatsResponse { - allTime: { - total_scheduled_transfers: number; - }; - last24Hour: { - aggregate: { - totalCount: number; - }; - }; -} diff --git a/src/schemas/transcation.ts b/src/schemas/transcation.ts index 6d32689..555693b 100644 --- a/src/schemas/transcation.ts +++ b/src/schemas/transcation.ts @@ -7,34 +7,6 @@ export interface Transaction block: Pick; } -export interface TransactionResponse { - transactions: [Transaction]; -} - -export interface TransactionListResponse { - transactions: Transaction[]; - meta: { - aggregate: { - totalCount: number; - }; - }; -} - -export interface RecentTransactionsResponse { - transactions: Transaction[]; -} - -export interface TransactionsStatsResponse { - allTime: { - total_immediate_transfers: number; - }; - last24Hour: { - aggregate: { - totalCount: number; - }; - }; -} - // Extrinsic detail response (for /transactions/{hash} page) export interface ExtrinsicDetail { id: string; diff --git a/src/schemas/wormhole.ts b/src/schemas/wormhole.ts index b162573..347dd79 100644 --- a/src/schemas/wormhole.ts +++ b/src/schemas/wormhole.ts @@ -1,20 +1,5 @@ import type * as gql from '../__generated__/graphql'; -// Core wormhole extrinsic for list views -export interface WormholeExtrinsic - extends Pick< - gql.Wormhole_Extrinsic, - | 'id' - | 'total_amount' - | 'output_count' - | 'timestamp' - | 'privacy_score' - | 'privacy_label' - > { - extrinsic: Pick | null; - block: Pick; -} - // Full wormhole extrinsic for detail view export interface WormholeExtrinsicDetail extends Pick< @@ -44,24 +29,7 @@ export interface WormholeOutput { export interface WormholeNullifier extends Pick {} -export interface DepositPoolStats - extends Pick {} - -// API Response types -export interface WormholeExtrinsicListResponse { - wormholeExtrinsics: WormholeExtrinsic[]; - meta: { - aggregate: { - totalCount: number; - }; - }; -} - export interface WormholeExtrinsicResponse { wormholeExtrinsicById: WormholeExtrinsicDetail; wormholeNullifiers: WormholeNullifier[]; } - -export interface DepositPoolStatsResponse { - depositPoolStatsById: DepositPoolStats; -}