diff --git a/packages/app-explorer/src/systems/Asset/components/AssetItem/AssetItem.tsx b/packages/app-explorer/src/systems/Asset/components/AssetItem/AssetItem.tsx
index cec8da882..9e613bfa9 100644
--- a/packages/app-explorer/src/systems/Asset/components/AssetItem/AssetItem.tsx
+++ b/packages/app-explorer/src/systems/Asset/components/AssetItem/AssetItem.tsx
@@ -1,5 +1,6 @@
import type { HStackProps } from '@fuels/ui';
import {
+ Address,
Box,
Copyable,
Flex,
@@ -8,11 +9,12 @@ import {
LoadingWrapper,
Text,
Tooltip,
- shortAddress,
+ useBreakpoints,
} from '@fuels/ui';
import Image from 'next/image';
import { TxIcon } from '~/systems/Transaction/component/TxIcon/TxIcon';
+import type { TxIconType } from '~/systems/Transaction/types';
import { useAsset } from '../../hooks/useAsset';
const ICON_SIZE = 38;
@@ -21,6 +23,7 @@ type AssetItemProps = HStackProps & {
assetId: string;
prefix?: string;
isLoading?: boolean;
+ txIconTypeFallback?: TxIconType;
};
export function AssetItem({
@@ -28,9 +31,11 @@ export function AssetItem({
assetId,
children,
isLoading,
+ txIconTypeFallback,
...props
}: AssetItemProps) {
const asset = useAsset(assetId);
+ const { isMobile } = useBreakpoints();
return (
) : (
-
+
)
}
/>
-
+
}
regularEl={
-
- {prefix && {prefix}}
+
+ {prefix && (
+
+ {prefix}
+
+ )}
{asset?.symbol ? (
@@ -69,9 +78,13 @@ export function AssetItem({
) : (
-
- {shortAddress(assetId)}
-
+
)}
diff --git a/packages/app-explorer/src/systems/Core/components/Amount/Amount.tsx b/packages/app-explorer/src/systems/Core/components/Amount/Amount.tsx
index 1b8ea76b9..8088b4d09 100644
--- a/packages/app-explorer/src/systems/Core/components/Amount/Amount.tsx
+++ b/packages/app-explorer/src/systems/Core/components/Amount/Amount.tsx
@@ -10,13 +10,21 @@ import { useFuelAsset } from '~/systems/Asset/hooks/useFuelAsset';
import { cx } from '../../utils/cx';
import { formatZeroUnits } from '../../utils/format';
-type AmountProps = BaseProps<{
- value?: BN | null;
- assetId?: string | null;
- hideIcon?: boolean;
- hideSymbol?: boolean;
- iconSize?: number;
-}>;
+type AmountProps =
+ | BaseProps<{
+ value?: BN | null;
+ assetId?: string | null;
+ hideIcon?: boolean;
+ hideSymbol?: boolean;
+ iconSize?: number;
+ }>
+ | BaseProps<{
+ value?: BN | null;
+ assetId?: never | null;
+ hideIcon?: never | true;
+ hideSymbol?: never | true;
+ iconSize?: never;
+ }>;
export function Amount({
value,
diff --git a/packages/app-explorer/src/systems/Transaction/component/TxIcon/TxIcon.tsx b/packages/app-explorer/src/systems/Transaction/component/TxIcon/TxIcon.tsx
index 9905924ba..d7d8dfa19 100644
--- a/packages/app-explorer/src/systems/Transaction/component/TxIcon/TxIcon.tsx
+++ b/packages/app-explorer/src/systems/Transaction/component/TxIcon/TxIcon.tsx
@@ -46,7 +46,7 @@ export const TX_STATUS_MAP: Record = {
type TxIconProps = VariantProps &
BaseProps<{
- type: string;
+ type: TxIconType;
status?: TxStatus;
color?: BadgeProps['color'];
label?: string;
diff --git a/packages/app-explorer/src/systems/Transaction/component/TxInput/TxInputCoin/TxInputCoin.tsx b/packages/app-explorer/src/systems/Transaction/component/TxInput/TxInputCoin/TxInputCoin.tsx
index fcfe7b1a1..d3c1e0e13 100644
--- a/packages/app-explorer/src/systems/Transaction/component/TxInput/TxInputCoin/TxInputCoin.tsx
+++ b/packages/app-explorer/src/systems/Transaction/component/TxInput/TxInputCoin/TxInputCoin.tsx
@@ -35,14 +35,18 @@ export const TxInputCoin = createComponent<
COIN
-
+
{amount && (
-
- COIN
-
-
+
-
- Contract
-
+
diff --git a/packages/app-explorer/src/systems/Transaction/component/TxInput/TxInputMessage/TxInputMessage.tsx b/packages/app-explorer/src/systems/Transaction/component/TxInput/TxInputMessage/TxInputMessage.tsx
index 2de5c924e..d06719f3b 100644
--- a/packages/app-explorer/src/systems/Transaction/component/TxInput/TxInputMessage/TxInputMessage.tsx
+++ b/packages/app-explorer/src/systems/Transaction/component/TxInput/TxInputMessage/TxInputMessage.tsx
@@ -1,16 +1,18 @@
import {
Address,
Badge,
+ Box,
Collapsible,
Flex,
HStack,
- Text,
VStack,
createComponent,
} from '@fuels/ui';
import NextLink from 'next/link';
+import { bn } from 'fuels';
import { Routes } from '~/routes';
+import { Amount } from '~/systems/Core/components/Amount/Amount';
import { TxIcon } from '~/systems/Transaction/component/TxIcon/TxIcon';
import type { TxInputMessageProps } from './types';
@@ -22,6 +24,7 @@ export const TxInputMessage = createComponent<
render: (_, { input, ...props }) => {
const { sender, recipient, data } = input;
+ const amount = input.amount;
if (!sender || !recipient) return null;
return (
@@ -30,18 +33,17 @@ export const TxInputMessage = createComponent<
MESSAGE
-
+
- Message
-
-
+
+
-
- MESSAGE
-
-
+ {!!amount && (
+
+
+
+ )}
+
diff --git a/packages/app-explorer/src/systems/Transaction/component/TxOutput/TxOutput.tsx b/packages/app-explorer/src/systems/Transaction/component/TxOutput/TxOutput.tsx
index 4a9b0ef1c..d5b715035 100644
--- a/packages/app-explorer/src/systems/Transaction/component/TxOutput/TxOutput.tsx
+++ b/packages/app-explorer/src/systems/Transaction/component/TxOutput/TxOutput.tsx
@@ -2,108 +2,19 @@ import type {
GQLChangeOutput,
GQLCoinOutput,
GQLContractCreated,
- GQLTransactionOutputFragment,
+ GQLContractOutput,
+ GQLVariableOutput,
} from '@fuel-explorer/graphql';
-import {
- Address,
- Card,
- HStack,
- Icon,
- Text,
- VStack,
- createComponent,
- cx,
-} from '@fuels/ui';
-import type { CardProps } from '@fuels/ui';
-import { IconArrowUp } from '@tabler/icons-react';
-import { bn } from 'fuels';
-import NextLink from 'next/link';
-import { tv } from 'tailwind-variants';
-import { Routes } from '~/routes';
-import { AssetItem } from '~/systems/Asset/components/AssetItem/AssetItem';
-import { Amount } from '~/systems/Core/components/Amount/Amount';
-import { TxIcon } from '../TxIcon/TxIcon';
+import { memo } from 'react';
import { isOutput } from './TxOutput.utils';
+import { TxOutputCoin } from './TxOutputCoin';
+import { TxOutputContractCreated } from './TxOutputContractCreated';
+import { TxOutputContractOutput } from './TxOutputContractOutput';
+import type { TxOutputProps } from './types';
-type TxOutputProps = CardProps & {
- output: T;
-};
-
-const TxOutputCoin = createComponent<
- TxOutputProps,
- typeof Card
->({
- id: 'TxOutputCoin',
- render: (_, { output, ...props }) => {
- const classes = styles();
- if (!output.assetId) return null;
- const assetId = output.assetId;
- const amount = output.amount;
-
- return (
-
-
-
-
-
-
-
- {amount && (
-
- )}
-
-
-
- );
- },
-});
-
-const TxOutputContractCreated = createComponent<
- TxOutputProps,
- typeof Card
->({
- id: 'TxOutputContractCreated',
- render: (_, { output, ...props }) => {
- const classes = styles();
- const contractId = output.contract;
-
- return (
-
-
-
-
-
- Contract Created
-
-
-
-
-
- );
- },
-});
-
-export function TxOutput({ output, ...props }: TxOutputProps) {
+function _TxOutput({ output, ...props }: TxOutputProps) {
if (
+ isOutput(output, 'VariableOutput') ||
isOutput(output, 'ChangeOutput') ||
isOutput(output, 'CoinOutput')
) {
@@ -112,14 +23,11 @@ export function TxOutput({ output, ...props }: TxOutputProps) {
if (isOutput(output, 'ContractCreated')) {
return ;
}
+ if (isOutput(output, 'ContractOutput')) {
+ return ;
+ }
return null;
}
-const styles = tv({
- slots: {
- header: 'group flex flex-row gap-4 justify-between items-center',
- icon: 'transition-transform group-data-[state=closed]:hover:rotate-180 group-data-[state=open]:rotate-180',
- utxos: 'bg-gray-2 mx-4 py-3 px-4 rounded',
- },
-});
+export const TxOutput = memo(_TxOutput);
diff --git a/packages/app-explorer/src/systems/Transaction/component/TxOutput/TxOutputCoin.tsx b/packages/app-explorer/src/systems/Transaction/component/TxOutput/TxOutputCoin.tsx
new file mode 100644
index 000000000..cdf021ed0
--- /dev/null
+++ b/packages/app-explorer/src/systems/Transaction/component/TxOutput/TxOutputCoin.tsx
@@ -0,0 +1,80 @@
+import type {
+ GQLChangeOutput,
+ GQLCoinOutput,
+ GQLVariableOutput,
+} from '@fuel-explorer/graphql';
+import {
+ Address,
+ Badge,
+ Card,
+ Flex,
+ HStack,
+ Icon,
+ createComponent,
+ cx,
+} from '@fuels/ui';
+import { IconArrowUp } from '@tabler/icons-react';
+import { bn } from 'fuels';
+import NextLink from 'next/link';
+import { Routes } from '~/routes';
+import { AssetItem } from '~/systems/Asset/components/AssetItem/AssetItem';
+import { Amount } from '~/systems/Core/components/Amount/Amount';
+import { txIconTypeMap, typeNameMap } from './constants';
+import { styles } from './styles';
+import type { TxOutputProps } from './types';
+
+export const TxOutputCoin = createComponent<
+ TxOutputProps,
+ typeof Card
+>({
+ id: 'TxOutputCoin',
+ render: (_, { output, ...props }) => {
+ const classes = styles();
+ if (!output.assetId) return null;
+ const assetId = output.assetId;
+ const amount = output.amount;
+ const badgeLabel = typeNameMap?.[output?.__typename] ?? 'UNKNOWN';
+ const txIconType = txIconTypeMap?.[output?.__typename] ?? 'Mint';
+
+ return (
+
+
+
+ {badgeLabel}
+
+
+
+
+
+
+
+
+ {!!amount && (
+
+ )}
+
+
+
+ );
+ },
+});
diff --git a/packages/app-explorer/src/systems/Transaction/component/TxOutput/TxOutputContractCreated.tsx b/packages/app-explorer/src/systems/Transaction/component/TxOutput/TxOutputContractCreated.tsx
new file mode 100644
index 000000000..86ce1811b
--- /dev/null
+++ b/packages/app-explorer/src/systems/Transaction/component/TxOutput/TxOutputContractCreated.tsx
@@ -0,0 +1,63 @@
+import type { GQLContractCreated } from '@fuel-explorer/graphql';
+import {
+ Address,
+ Badge,
+ Card,
+ Flex,
+ HStack,
+ Text,
+ VStack,
+ createComponent,
+ cx,
+} from '@fuels/ui';
+
+import NextLink from 'next/link';
+import { Routes } from '~/routes';
+
+import { TxIcon } from '../TxIcon/TxIcon';
+import { txIconTypeMap, typeNameMap } from './constants';
+import { styles } from './styles';
+import type { TxOutputProps } from './types';
+
+export const TxOutputContractCreated = createComponent<
+ TxOutputProps,
+ typeof Card
+>({
+ id: 'TxOutputContractCreated',
+ render: (_, { output, ...props }) => {
+ const classes = styles();
+ const contractId = output.contract;
+ const badgeLabel = typeNameMap?.[output?.__typename] ?? 'UNKNOWN';
+ const txIconType = txIconTypeMap?.[output?.__typename] ?? 'Unknown';
+
+ return (
+
+
+
+
+ {badgeLabel}
+
+
+
+
+ Contract Created
+
+
+
+
+
+
+ );
+ },
+});
diff --git a/packages/app-explorer/src/systems/Transaction/component/TxOutput/TxOutputContractOutput.tsx b/packages/app-explorer/src/systems/Transaction/component/TxOutput/TxOutputContractOutput.tsx
new file mode 100644
index 000000000..547d835a2
--- /dev/null
+++ b/packages/app-explorer/src/systems/Transaction/component/TxOutput/TxOutputContractOutput.tsx
@@ -0,0 +1,49 @@
+import type { GQLContractOutput } from '@fuel-explorer/graphql';
+import { Badge, Collapsible, Flex, Text, createComponent, cx } from '@fuels/ui';
+
+import { TxIcon } from '../TxIcon/TxIcon';
+import { txIconTypeMap, typeNameMap } from './constants';
+import { styles } from './styles';
+import type { TxOutputProps } from './types';
+
+import { IconInputSearch } from '@tabler/icons-react';
+
+export const TxOutputContractOutput = createComponent<
+ TxOutputProps,
+ typeof Collapsible
+>({
+ id: 'TxOutputContractOutput',
+ render: (_, { output, ...props }) => {
+ const classes = styles();
+ const badgeLabel = typeNameMap?.[output?.__typename] ?? 'UNKNOWN';
+ const txIconType = txIconTypeMap?.[output?.__typename] ?? 'Unknown';
+ return (
+
+
+
+
+ {badgeLabel}
+
+
+
+
+
+
+
+ Input
+
+
+ Index:
+
+ {output.inputIndex}
+
+
+
+
+ );
+ },
+});
diff --git a/packages/app-explorer/src/systems/Transaction/component/TxOutput/constants.ts b/packages/app-explorer/src/systems/Transaction/component/TxOutput/constants.ts
new file mode 100644
index 000000000..e4db4df7a
--- /dev/null
+++ b/packages/app-explorer/src/systems/Transaction/component/TxOutput/constants.ts
@@ -0,0 +1,24 @@
+import type { GQLTransactionOutputFragment } from '@fuel-explorer/graphql';
+import type { TxIconType } from '~/systems/Transaction/types';
+
+export const typeNameMap: Record<
+ GQLTransactionOutputFragment['__typename'],
+ string
+> = {
+ ContractOutput: 'OUTPUT',
+ ContractCreated: 'CREATED',
+ VariableOutput: 'VARIABLE',
+ ChangeOutput: 'CHANGE',
+ CoinOutput: 'COIN',
+};
+
+export const txIconTypeMap: Record<
+ GQLTransactionOutputFragment['__typename'],
+ TxIconType
+> = {
+ ContractOutput: 'Contract',
+ ContractCreated: 'Contract Created',
+ VariableOutput: 'Mint',
+ ChangeOutput: 'Wallet',
+ CoinOutput: 'Wallet',
+};
diff --git a/packages/app-explorer/src/systems/Transaction/component/TxOutput/styles.ts b/packages/app-explorer/src/systems/Transaction/component/TxOutput/styles.ts
new file mode 100644
index 000000000..6ccd3d65b
--- /dev/null
+++ b/packages/app-explorer/src/systems/Transaction/component/TxOutput/styles.ts
@@ -0,0 +1,24 @@
+import { tv } from 'tailwind-variants';
+
+export const styles = tv({
+ slots: {
+ header:
+ 'group gap-2 flex flex-col tablet:flex-row items-start tablet:items-center',
+ amount: 'flex items-center gap-2 ml-14 tablet:ml-0',
+ content: 'gap-4 justify-between items-center flex-1',
+ icon: 'transition-transform group-data-[state=closed]:hover:rotate-180 group-data-[state=open]:rotate-180',
+ utxos: 'bg-gray-2 mx-4 py-3 px-4 rounded',
+ contractOutputContent: [
+ 'flex flex-row flex-1 p-0 py-2 px-4 gap-2',
+ 'last:rounded-b-sm',
+ ],
+ contractOutputText: 'text-[0.86em] text-secondary font-mono leading-none',
+ },
+ variants: {
+ reversed: {
+ true: {
+ content: 'flex-row-reverse tablet:flex-row',
+ },
+ },
+ },
+});
diff --git a/packages/app-explorer/src/systems/Transaction/component/TxOutput/types.ts b/packages/app-explorer/src/systems/Transaction/component/TxOutput/types.ts
new file mode 100644
index 000000000..831aec4b6
--- /dev/null
+++ b/packages/app-explorer/src/systems/Transaction/component/TxOutput/types.ts
@@ -0,0 +1,6 @@
+import type { GQLTransactionOutputFragment } from '@fuel-explorer/graphql';
+import type { CardProps } from '@fuels/ui';
+
+export type TxOutputProps = CardProps & {
+ output: T;
+};
diff --git a/packages/app-explorer/src/systems/Transaction/component/TxScreen/TxScreenSimple.tsx b/packages/app-explorer/src/systems/Transaction/component/TxScreen/TxScreenSimple.tsx
index efc0b226a..5a5f3c8b7 100644
--- a/packages/app-explorer/src/systems/Transaction/component/TxScreen/TxScreenSimple.tsx
+++ b/packages/app-explorer/src/systems/Transaction/component/TxScreen/TxScreenSimple.tsx
@@ -32,7 +32,7 @@ import { AssetItem } from '~/systems/Asset/components/AssetItem/AssetItem';
import { CardInfo } from '../../../Core/components/CardInfo/CardInfo';
import { TxInput } from '../../component/TxInput/TxInput';
import { TxOutput } from '../../component/TxOutput/TxOutput';
-import type { TransactionNode, TxStatus } from '../../types';
+import type { TransactionNode, TxIconType, TxStatus } from '../../types';
import { TX_INTENT_MAP, TxIcon } from '../TxIcon/TxIcon';
import { TxScripts } from '../TxScripts/TxScripts';
@@ -60,7 +60,7 @@ export function TxScreenSimple({ transaction: tx, isLoading }: TxScreenProps) {
loadingEl={}
regularEl={
{tx.mintAssetId && (
-
+
-
+
+
+ {!singleMode && !!contract && !!assetId && (
-
- )
+ )}
+
);
}
diff --git a/packages/app-explorer/src/systems/Transaction/component/TxScripts/TxReceiptBadge/TxReceiptBadge.tsx b/packages/app-explorer/src/systems/Transaction/component/TxScripts/TxReceiptBadge/TxReceiptBadge.tsx
index 0634676f3..163aee946 100644
--- a/packages/app-explorer/src/systems/Transaction/component/TxScripts/TxReceiptBadge/TxReceiptBadge.tsx
+++ b/packages/app-explorer/src/systems/Transaction/component/TxScripts/TxReceiptBadge/TxReceiptBadge.tsx
@@ -9,10 +9,13 @@ export function TxReceiptBadge() {
const type = receipt?.item?.receiptType ?? 'UNKNOWN';
const color = getBadgeColor(Boolean(hasPanic), receipt?.item);
return (
-
-
- {type}
-
-
+
+ {type}
+
);
}
diff --git a/packages/app-explorer/src/systems/Transaction/component/TxScripts/TxReceiptHeader/TxReceiptHeader.tsx b/packages/app-explorer/src/systems/Transaction/component/TxScripts/TxReceiptHeader/TxReceiptHeader.tsx
index b88d8d370..5f0c85dcc 100644
--- a/packages/app-explorer/src/systems/Transaction/component/TxScripts/TxReceiptHeader/TxReceiptHeader.tsx
+++ b/packages/app-explorer/src/systems/Transaction/component/TxScripts/TxReceiptHeader/TxReceiptHeader.tsx
@@ -1,39 +1,101 @@
import { GQLReceiptType } from '@fuel-explorer/graphql/sdk';
-import { Collapsible, VStack } from '@fuels/ui';
-import { useContext } from 'react';
+import { Collapsible, Flex, HStack, VStack } from '@fuels/ui';
+import { useContext, useMemo } from 'react';
import { TxOperationHeader } from '~/systems/Transaction/component/TxScripts/TxOperationHeader';
import { TxReceiptAmount } from '~/systems/Transaction/component/TxScripts/TxReceiptAmount';
import { TxReceiptBadge } from '~/systems/Transaction/component/TxScripts/TxReceiptBadge/TxReceiptBadge';
import { ReceiptContext } from '~/systems/Transaction/component/TxScripts/context';
+import { TxIcon } from '~/systems/Transaction/component/TxIcon/TxIcon';
+import {
+ ReceiptHeaderOperation,
+ ReceiptHeaderOperationAmount,
+ ReceiptHeaderOperationDataType,
+} from '~/systems/Transaction/component/TxScripts/TxReceiptHeader/types';
+import { TxIconType } from '~/systems/Transaction/types';
import { RECEIPT_FIELDS_MAP } from './constants';
import { styles } from './styles';
+const TX_ICON_MAP: Record = {
+ TRANSFER_OUT: 'Transfer',
+ TRANSFER: 'Transfer',
+ SCRIPT_RESULT: 'Script',
+ REVERT: 'ContractCall',
+ RETURN_DATA: 'Message',
+ RETURN: 'Message',
+ PANIC: 'Message',
+ MINT: 'Mint',
+ MESSAGE_OUT: 'Message',
+ LOG_DATA: 'Message',
+ LOG: 'Message',
+ CALL: 'ContractCall',
+ BURN: 'Burn',
+};
+
export function TxReceiptHeader() {
const { receipt: item } = useContext(ReceiptContext);
const receipt = item?.item;
const classes = styles();
const type = (receipt?.receiptType ?? 'UNKNOWN') as GQLReceiptType;
+ const txIcon: TxIconType = TX_ICON_MAP?.[type] ?? 'Message';
const fields = RECEIPT_FIELDS_MAP[type] || [];
+ const filteredFields = useMemo(
+ () =>
+ fields.reduce(
+ (acc, field) => {
+ if (
+ field &&
+ field.type === ReceiptHeaderOperationDataType.AMOUNT &&
+ !acc.amount
+ ) {
+ acc.amount = field as ReceiptHeaderOperationAmount;
+ } else {
+ acc.rest.push(field);
+ }
+
+ return acc;
+ },
+ {
+ rest: [] as Array,
+ amount: undefined as ReceiptHeaderOperationAmount | undefined,
+ },
+ ),
+ [fields],
+ );
return (
-
-
- {!fields?.length && }
+
+
+
+
- {fields?.map((field, index) => (
-
+ {filteredFields?.rest?.map((field, index) => (
+
+ ))}
+
+
- ))}
-
-
+
+
+
);
}
diff --git a/packages/app-explorer/src/systems/Transaction/component/TxScripts/TxReceiptHeader/constants.ts b/packages/app-explorer/src/systems/Transaction/component/TxScripts/TxReceiptHeader/constants.ts
index 864a4aaac..13e14bbfd 100644
--- a/packages/app-explorer/src/systems/Transaction/component/TxScripts/TxReceiptHeader/constants.ts
+++ b/packages/app-explorer/src/systems/Transaction/component/TxScripts/TxReceiptHeader/constants.ts
@@ -10,7 +10,6 @@ export const RECEIPT_FIELDS_MAP: Record<
Array
> = {
[GQLReceiptType.Call]: [
- { label: 'Method', field: 'param1' },
{
label: 'Contract:',
type: ReceiptHeaderOperationDataType.HEX_ADDRESS,
@@ -18,6 +17,7 @@ export const RECEIPT_FIELDS_MAP: Record<
fieldFallback: 'contractId',
hrefFactory: Routes.contractAssets,
},
+ { label: 'Method', field: 'param1' },
],
[GQLReceiptType.Mint]: [
{
@@ -27,10 +27,14 @@ export const RECEIPT_FIELDS_MAP: Record<
requiredField: 'subId',
},
{
- label: 'Asset:',
+ label: 'Id:',
type: ReceiptHeaderOperationDataType.HEX_ADDRESS,
- field: 'contractId',
- hrefFactory: Routes.contractAssets,
+ field: 'id',
+ },
+ {
+ label: 'SubId:',
+ type: ReceiptHeaderOperationDataType.HEX_ADDRESS,
+ field: 'subId',
},
],
[GQLReceiptType.Burn]: [
@@ -41,15 +45,19 @@ export const RECEIPT_FIELDS_MAP: Record<
requiredField: 'subId',
},
{
- label: 'Asset:',
+ label: 'Id:',
type: ReceiptHeaderOperationDataType.HEX_ADDRESS,
- field: 'contractId',
- hrefFactory: Routes.contractAssets,
+ field: 'id',
+ },
+ {
+ label: 'Sub Id:',
+ type: ReceiptHeaderOperationDataType.HEX_ADDRESS,
+ field: 'subId',
},
],
[GQLReceiptType.TransferOut]: [
{
- label: 'ID:',
+ label: 'Id:',
type: ReceiptHeaderOperationDataType.HEX_ADDRESS,
field: 'id',
},
@@ -63,7 +71,7 @@ export const RECEIPT_FIELDS_MAP: Record<
],
[GQLReceiptType.Transfer]: [
{
- label: 'ID:',
+ label: 'Id:',
type: ReceiptHeaderOperationDataType.HEX_ADDRESS,
field: 'id',
},
@@ -102,7 +110,7 @@ export const RECEIPT_FIELDS_MAP: Record<
[GQLReceiptType.Panic]: [
{ label: 'Reason:', field: 'reason' },
{
- label: 'Contract ID:',
+ label: 'Contract Id:',
type: ReceiptHeaderOperationDataType.HEX_ADDRESS,
field: 'contractId',
hrefFactory: Routes.contractAssets,
@@ -111,7 +119,7 @@ export const RECEIPT_FIELDS_MAP: Record<
[GQLReceiptType.Revert]: [
{ label: 'Reason:', field: 'reason' },
{
- label: 'Contract ID:',
+ label: 'Contract Id:',
type: ReceiptHeaderOperationDataType.HEX_ADDRESS,
field: 'contractId',
hrefFactory: Routes.contractAssets,
@@ -121,10 +129,7 @@ export const RECEIPT_FIELDS_MAP: Record<
{ label: 'PC', field: 'pc' },
{ label: 'Data:', field: 'data' },
],
- [GQLReceiptType.Return]: [
- { label: 'Value:', field: 'val' },
- { label: 'PC', field: 'pc' },
- ],
+ [GQLReceiptType.Return]: [{ label: 'Value:', field: 'val' }],
[GQLReceiptType.ScriptResult]: [
{ label: 'Gas Used:', field: 'gasUsed' },
{ label: 'Result:', field: 'result' },
diff --git a/packages/app-explorer/src/systems/Transaction/component/TxScripts/TxReceiptHeader/types.ts b/packages/app-explorer/src/systems/Transaction/component/TxScripts/TxReceiptHeader/types.ts
index 24e918f67..5622fe9b6 100644
--- a/packages/app-explorer/src/systems/Transaction/component/TxScripts/TxReceiptHeader/types.ts
+++ b/packages/app-explorer/src/systems/Transaction/component/TxScripts/TxReceiptHeader/types.ts
@@ -1,4 +1,4 @@
-import type { GQLReceipt } from '@fuel-explorer/graphql';
+import type { GQLReceipt } from '@fuel-explorer/graphql/sdk';
export enum ReceiptHeaderOperationDataType {
DEFAULT = 'DEFAULT',
@@ -17,7 +17,8 @@ interface ReceiptHeaderOperationBase {
hrefFactory?: (value: string) => string;
}
-interface ReceiptHeaderOperationAmount extends ReceiptHeaderOperationBase {
+export interface ReceiptHeaderOperationAmount
+ extends ReceiptHeaderOperationBase {
label?: never;
type: ReceiptHeaderOperationDataType.AMOUNT;
field?: keyof GQLReceipt;
diff --git a/packages/app-explorer/src/systems/Transaction/types.ts b/packages/app-explorer/src/systems/Transaction/types.ts
index 4085c2dac..138b6188f 100644
--- a/packages/app-explorer/src/systems/Transaction/types.ts
+++ b/packages/app-explorer/src/systems/Transaction/types.ts
@@ -1,4 +1,4 @@
-import type { GQLTransactionItemFragment } from '@fuel-explorer/graphql';
+import type { GQLTransactionItemFragment } from '@fuel-explorer/graphql/sdk';
import type { ViewModes } from '../Core/components/ViewMode/constants';
export type TxRouteParams = {
diff --git a/packages/graphql/src/domain/Transaction/ReceiptsParserAdapter.ts b/packages/graphql/src/domain/Transaction/ReceiptsParserAdapter.ts
index e0401d965..5402ce861 100644
--- a/packages/graphql/src/domain/Transaction/ReceiptsParserAdapter.ts
+++ b/packages/graphql/src/domain/Transaction/ReceiptsParserAdapter.ts
@@ -1,3 +1,4 @@
+import { GroupedReceiptsFactory } from '~/domain/Transaction/factories/GroupedReceiptsFactory';
import ReceiptsParser from './ReceiptsParser';
export default class ReceiptsParserAdapter {
@@ -26,36 +27,12 @@ export default class ReceiptsParserAdapter {
pointer = lastPointer[next.indent];
}
}
+
const groups = [];
+
for (const group of data) {
- if (group.type === 'CALL') {
- const top = {
- type: 'FROM_CONTRACT',
- receipts: [] as any,
- };
- top.receipts.push({ item: group.item });
- top.receipts.push(...group.receipts);
- groups.push(top);
- }
- if (group.type === 'RETURN') {
- const top = {
- type: 'FINAL_RESULT',
- receipts: [] as any,
- };
- top.receipts.push({ item: group.item });
- top.receipts.push(...group.receipts);
- groups.push(top);
- } else {
- if (group.type === 'SCRIPT_RESULT') {
- const top = {
- type: 'FINAL_RESULT',
- receipts: [] as any,
- };
- top.receipts.push({ item: group.item });
- if (group.receipts) top.receipts.push(...group.receipts);
- groups.push(top);
- }
- }
+ const groupedData = GroupedReceiptsFactory(group);
+ groupedData && groups.push(groupedData);
}
return groups;
}
diff --git a/packages/graphql/src/domain/Transaction/TransactionEntity.ts b/packages/graphql/src/domain/Transaction/TransactionEntity.ts
index 81cf30327..731b62f07 100644
--- a/packages/graphql/src/domain/Transaction/TransactionEntity.ts
+++ b/packages/graphql/src/domain/Transaction/TransactionEntity.ts
@@ -55,12 +55,12 @@ export class TransactionEntity extends Entity<
// Should show for other status like FailureStatus?
// @ts-ignore
if (item.status?.receipts) {
- // @ts-ignore
- const receipts = item.status?.receipts || [];
- operations = parser.parse(receipts) as any;
- operations = operations.map((operation: any) =>
- OperationEntity.create(operation, item._id || '', item.id),
- );
+ operations = parser
+ // @ts-ignore
+ .parse(item.status?.receipts ?? [])
+ .map((operation: any) =>
+ OperationEntity.create(operation, item._id || '', item.id),
+ );
}
const props = {
id,
diff --git a/packages/graphql/src/domain/Transaction/factories/GroupedReceiptsFactory.ts b/packages/graphql/src/domain/Transaction/factories/GroupedReceiptsFactory.ts
new file mode 100644
index 000000000..3cf39a644
--- /dev/null
+++ b/packages/graphql/src/domain/Transaction/factories/GroupedReceiptsFactory.ts
@@ -0,0 +1,35 @@
+import {
+ GQLOperationReceipt,
+ GQLOperationType,
+ GQLReceiptType,
+} from '~/graphql/generated/sdk-provider';
+
+type AcceptedReceiptType =
+ | GQLReceiptType.Call
+ | GQLReceiptType.Return
+ | GQLReceiptType.ScriptResult;
+
+const GroupTypeMap: Record<
+ AcceptedReceiptType,
+ Omit
+> = {
+ CALL: 'FROM_CONTRACT',
+ RETURN: 'FINAL_RESULT',
+ SCRIPT_RESULT: 'FINAL_RESULT',
+};
+
+interface Group extends GQLOperationReceipt {
+ type: AcceptedReceiptType;
+}
+
+export function GroupedReceiptsFactory(group: Group) {
+ const type =
+ (group.type && GroupTypeMap?.[group.type]) || GQLOperationType.Rootless;
+ const top = {
+ type,
+ receipts: [] as Array,
+ };
+ top.receipts.push({ item: group.item } as GQLOperationReceipt);
+ group.receipts && top.receipts.push(...group.receipts);
+ return top;
+}
diff --git a/packages/graphql/src/graphql/generated/sdk-provider.ts b/packages/graphql/src/graphql/generated/sdk-provider.ts
index b5ffb496a..a5d752acd 100644
--- a/packages/graphql/src/graphql/generated/sdk-provider.ts
+++ b/packages/graphql/src/graphql/generated/sdk-provider.ts
@@ -825,7 +825,8 @@ export type GQLOperationReceipt = {
export enum GQLOperationType {
FinalResult = 'FINAL_RESULT',
FromAccount = 'FROM_ACCOUNT',
- FromContract = 'FROM_CONTRACT'
+ FromContract = 'FROM_CONTRACT',
+ Rootless = 'ROOTLESS'
}
export type GQLOperationsFilterInput = {
diff --git a/packages/graphql/src/graphql/generated/sdk.ts b/packages/graphql/src/graphql/generated/sdk.ts
index ababc3bab..007072263 100644
--- a/packages/graphql/src/graphql/generated/sdk.ts
+++ b/packages/graphql/src/graphql/generated/sdk.ts
@@ -1,51 +1,38 @@
-import { GraphQLError, print } from 'graphql';
import type { GraphQLClient, RequestOptions } from 'graphql-request';
+import { GraphQLError, print } from 'graphql'
import gql from 'graphql-tag';
export type Maybe = T | null;
export type InputMaybe = Maybe;
-export type Exact = {
- [K in keyof T]: T[K];
-};
-export type MakeOptional = Omit & {
- [SubKey in K]?: Maybe;
-};
-export type MakeMaybe = Omit & {
- [SubKey in K]: Maybe;
-};
-export type MakeEmpty<
- T extends { [key: string]: unknown },
- K extends keyof T,
-> = { [_ in K]?: never };
-export type Incremental =
- | T
- | {
- [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
- };
+export type Exact = { [K in keyof T]: T[K] };
+export type MakeOptional = Omit & { [SubKey in K]?: Maybe };
+export type MakeMaybe = Omit & { [SubKey in K]: Maybe };
+export type MakeEmpty = { [_ in K]?: never };
+export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
- ID: { input: string; output: string };
- String: { input: string; output: string };
- Boolean: { input: boolean; output: boolean };
- Int: { input: number; output: number };
- Float: { input: number; output: number };
- Address: { input: string; output: string };
- AssetId: { input: string; output: string };
- BlockId: { input: string; output: string };
- Bytes32: { input: string; output: string };
- ContractId: { input: string; output: string };
- HexString: { input: string; output: string };
- Nonce: { input: string; output: string };
- RelayedTransactionId: { input: string; output: string };
- Salt: { input: string; output: string };
- Signature: { input: string; output: string };
- Tai64Timestamp: { input: string; output: string };
- TransactionId: { input: string; output: string };
- TxPointer: { input: string; output: string };
- U16: { input: string; output: string };
- U32: { input: string; output: string };
- U64: { input: string; output: string };
- UtxoId: { input: string; output: string };
+ ID: { input: string; output: string; }
+ String: { input: string; output: string; }
+ Boolean: { input: boolean; output: boolean; }
+ Int: { input: number; output: number; }
+ Float: { input: number; output: number; }
+ Address: { input: string; output: string; }
+ AssetId: { input: string; output: string; }
+ BlockId: { input: string; output: string; }
+ Bytes32: { input: string; output: string; }
+ ContractId: { input: string; output: string; }
+ HexString: { input: string; output: string; }
+ Nonce: { input: string; output: string; }
+ RelayedTransactionId: { input: string; output: string; }
+ Salt: { input: string; output: string; }
+ Signature: { input: string; output: string; }
+ Tai64Timestamp: { input: string; output: string; }
+ TransactionId: { input: string; output: string; }
+ TxPointer: { input: string; output: string; }
+ U16: { input: string; output: string; }
+ U32: { input: string; output: string; }
+ U64: { input: string; output: string; }
+ UtxoId: { input: string; output: string; }
};
export type GQLBalance = {
@@ -114,7 +101,7 @@ export type GQLBlockEdge = {
};
export enum GQLBlockVersion {
- V1 = 'V1',
+ V1 = 'V1'
}
/** Breakpoint, defined as a tuple of contract ID and relative PC offset inside it */
@@ -211,7 +198,7 @@ export type GQLConsensusParametersPurpose = {
};
export enum GQLConsensusParametersVersion {
- V1 = 'V1',
+ V1 = 'V1'
}
export type GQLContract = {
@@ -280,7 +267,7 @@ export type GQLContractParameters = {
};
export enum GQLContractParametersVersion {
- V1 = 'V1',
+ V1 = 'V1'
}
export type GQLDependentCost = GQLHeavyOperation | GQLLightOperation;
@@ -309,9 +296,7 @@ export type GQLDryRunTransactionExecutionStatus = {
status: GQLDryRunTransactionStatus;
};
-export type GQLDryRunTransactionStatus =
- | GQLDryRunFailureStatus
- | GQLDryRunSuccessStatus;
+export type GQLDryRunTransactionStatus = GQLDryRunFailureStatus | GQLDryRunSuccessStatus;
export type GQLEstimateGasPrice = {
__typename: 'EstimateGasPrice';
@@ -345,7 +330,7 @@ export type GQLFeeParameters = {
};
export enum GQLFeeParametersVersion {
- V1 = 'V1',
+ V1 = 'V1'
}
export type GQLGasCosts = {
@@ -465,7 +450,7 @@ export type GQLGasCosts = {
};
export enum GQLGasCostsVersion {
- V1 = 'V1',
+ V1 = 'V1'
}
export type GQLGenesis = {
@@ -485,10 +470,7 @@ export type GQLGenesis = {
transactionsRoot: Scalars['Bytes32']['output'];
};
-export type GQLGroupedInput =
- | GQLGroupedInputCoin
- | GQLGroupedInputContract
- | GQLGroupedInputMessage;
+export type GQLGroupedInput = GQLGroupedInputCoin | GQLGroupedInputContract | GQLGroupedInputMessage;
export type GQLGroupedInputCoin = {
__typename: 'GroupedInputCoin';
@@ -518,13 +500,10 @@ export type GQLGroupedInputMessage = {
export enum GQLGroupedInputType {
InputCoin = 'InputCoin',
InputContract = 'InputContract',
- InputMessage = 'InputMessage',
+ InputMessage = 'InputMessage'
}
-export type GQLGroupedOutput =
- | GQLGroupedOutputChanged
- | GQLGroupedOutputCoin
- | GQLGroupedOutputContractCreated;
+export type GQLGroupedOutput = GQLGroupedOutputChanged | GQLGroupedOutputCoin | GQLGroupedOutputContractCreated;
export type GQLGroupedOutputChanged = {
__typename: 'GroupedOutputChanged';
@@ -554,7 +533,7 @@ export type GQLGroupedOutputContractCreated = {
export enum GQLGroupedOutputType {
OutputChanged = 'OutputChanged',
OutputCoin = 'OutputCoin',
- OutputContractCreated = 'OutputContractCreated',
+ OutputContractCreated = 'OutputContractCreated'
}
export type GQLHeader = {
@@ -590,7 +569,7 @@ export type GQLHeader = {
};
export enum GQLHeaderVersion {
- V1 = 'V1',
+ V1 = 'V1'
}
export type GQLHeavyOperation = {
@@ -709,7 +688,7 @@ export type GQLMessageProof = {
export enum GQLMessageState {
NotFound = 'NOT_FOUND',
Spent = 'SPENT',
- Unspent = 'UNSPENT',
+ Unspent = 'UNSPENT'
}
export type GQLMessageStatus = {
@@ -763,49 +742,59 @@ export type GQLMutation = {
submit: GQLTransaction;
};
+
export type GQLMutationContinueTxArgs = {
id: Scalars['ID']['input'];
};
+
export type GQLMutationDryRunArgs = {
gasPrice?: InputMaybe;
txs: Array;
utxoValidation?: InputMaybe;
};
+
export type GQLMutationEndSessionArgs = {
id: Scalars['ID']['input'];
};
+
export type GQLMutationExecuteArgs = {
id: Scalars['ID']['input'];
op: Scalars['String']['input'];
};
+
export type GQLMutationProduceBlocksArgs = {
blocksToProduce: Scalars['U32']['input'];
startTimestamp?: InputMaybe;
};
+
export type GQLMutationResetArgs = {
id: Scalars['ID']['input'];
};
+
export type GQLMutationSetBreakpointArgs = {
breakpoint: GQLBreakpoint;
id: Scalars['ID']['input'];
};
+
export type GQLMutationSetSingleSteppingArgs = {
enable: Scalars['Boolean']['input'];
id: Scalars['ID']['input'];
};
+
export type GQLMutationStartTxArgs = {
id: Scalars['ID']['input'];
txJson: Scalars['String']['input'];
};
+
export type GQLMutationSubmitArgs = {
tx: Scalars['HexString']['input'];
};
@@ -837,18 +826,14 @@ export enum GQLOperationType {
FinalResult = 'FINAL_RESULT',
FromAccount = 'FROM_ACCOUNT',
FromContract = 'FROM_CONTRACT',
+ Rootless = 'ROOTLESS'
}
export type GQLOperationsFilterInput = {
transactionHash: Scalars['String']['input'];
};
-export type GQLOutput =
- | GQLChangeOutput
- | GQLCoinOutput
- | GQLContractCreated
- | GQLContractOutput
- | GQLVariableOutput;
+export type GQLOutput = GQLChangeOutput | GQLCoinOutput | GQLContractCreated | GQLContractOutput | GQLVariableOutput;
/**
* A separate `Breakpoint` type to be used as an output, as a single
@@ -927,7 +912,7 @@ export type GQLPredicateParameters = {
};
export enum GQLPredicateParametersVersion {
- V1 = 'V1',
+ V1 = 'V1'
}
export type GQLProgramState = {
@@ -988,11 +973,13 @@ export type GQLQuery = {
transactionsByOwner: GQLTransactionConnection;
};
+
export type GQLQueryBalanceArgs = {
assetId: Scalars['AssetId']['input'];
owner: Scalars['Address']['input'];
};
+
export type GQLQueryBalancesArgs = {
after?: InputMaybe;
before?: InputMaybe;
@@ -1001,11 +988,13 @@ export type GQLQueryBalancesArgs = {
last?: InputMaybe;
};
+
export type GQLQueryBlockArgs = {
height?: InputMaybe;
id?: InputMaybe;
};
+
export type GQLQueryBlocksArgs = {
after?: InputMaybe;
before?: InputMaybe;
@@ -1013,10 +1002,12 @@ export type GQLQueryBlocksArgs = {
last?: InputMaybe;
};
+
export type GQLQueryCoinArgs = {
utxoId: Scalars['UtxoId']['input'];
};
+
export type GQLQueryCoinsArgs = {
after?: InputMaybe;
before?: InputMaybe;
@@ -1025,21 +1016,25 @@ export type GQLQueryCoinsArgs = {
last?: InputMaybe;
};
+
export type GQLQueryCoinsToSpendArgs = {
excludedIds?: InputMaybe;
owner: Scalars['Address']['input'];
queryPerAsset: Array;
};
+
export type GQLQueryContractArgs = {
id: Scalars['ContractId']['input'];
};
+
export type GQLQueryContractBalanceArgs = {
asset: Scalars['AssetId']['input'];
contract: Scalars['ContractId']['input'];
};
+
export type GQLQueryContractBalancesArgs = {
after?: InputMaybe;
before?: InputMaybe;
@@ -1048,6 +1043,7 @@ export type GQLQueryContractBalancesArgs = {
last?: InputMaybe;
};
+
export type GQLQueryContractsArgs = {
after?: InputMaybe;
before?: InputMaybe;
@@ -1055,24 +1051,29 @@ export type GQLQueryContractsArgs = {
last?: InputMaybe;
};
+
export type GQLQueryEstimateGasPriceArgs = {
blockHorizon?: InputMaybe;
};
+
export type GQLQueryEstimatePredicatesArgs = {
tx: Scalars['HexString']['input'];
};
+
export type GQLQueryMemoryArgs = {
id: Scalars['ID']['input'];
size: Scalars['U32']['input'];
start: Scalars['U32']['input'];
};
+
export type GQLQueryMessageArgs = {
nonce: Scalars['Nonce']['input'];
};
+
export type GQLQueryMessageProofArgs = {
commitBlockHeight?: InputMaybe;
commitBlockId?: InputMaybe;
@@ -1080,10 +1081,12 @@ export type GQLQueryMessageProofArgs = {
transactionId: Scalars['TransactionId']['input'];
};
+
export type GQLQueryMessageStatusArgs = {
nonce: Scalars['Nonce']['input'];
};
+
export type GQLQueryMessagesArgs = {
after?: InputMaybe;
before?: InputMaybe;
@@ -1092,27 +1095,33 @@ export type GQLQueryMessagesArgs = {
owner?: InputMaybe;
};
+
export type GQLQueryPredicateArgs = {
address: Scalars['String']['input'];
};
+
export type GQLQueryRegisterArgs = {
id: Scalars['ID']['input'];
register: Scalars['U32']['input'];
};
+
export type GQLQueryRelayedTransactionStatusArgs = {
id: Scalars['RelayedTransactionId']['input'];
};
+
export type GQLQuerySearchArgs = {
query: Scalars['String']['input'];
};
+
export type GQLQueryTransactionArgs = {
id: Scalars['TransactionId']['input'];
};
+
export type GQLQueryTransactionsArgs = {
after?: InputMaybe;
before?: InputMaybe;
@@ -1120,6 +1129,7 @@ export type GQLQueryTransactionsArgs = {
last?: InputMaybe;
};
+
export type GQLQueryTransactionsByBlockIdArgs = {
after?: InputMaybe;
before?: InputMaybe;
@@ -1128,6 +1138,7 @@ export type GQLQueryTransactionsByBlockIdArgs = {
last?: InputMaybe;
};
+
export type GQLQueryTransactionsByOwnerArgs = {
after?: InputMaybe;
before?: InputMaybe;
@@ -1182,7 +1193,7 @@ export enum GQLReceiptType {
Revert = 'REVERT',
ScriptResult = 'SCRIPT_RESULT',
Transfer = 'TRANSFER',
- TransferOut = 'TRANSFER_OUT',
+ TransferOut = 'TRANSFER_OUT'
}
export type GQLRelayedTransactionFailed = {
@@ -1196,7 +1207,7 @@ export type GQLRelayedTransactionStatus = GQLRelayedTransactionFailed;
export enum GQLReturnType {
Return = 'RETURN',
ReturnData = 'RETURN_DATA',
- Revert = 'REVERT',
+ Revert = 'REVERT'
}
export type GQLRunResult = {
@@ -1210,7 +1221,7 @@ export enum GQLRunState {
/** Stopped on a breakpoint */
Breakpoint = 'BREAKPOINT',
/** All breakpoints have been processed, and the program has terminated */
- Completed = 'COMPLETED',
+ Completed = 'COMPLETED'
}
export type GQLScriptParameters = {
@@ -1221,7 +1232,7 @@ export type GQLScriptParameters = {
};
export enum GQLScriptParametersVersion {
- V1 = 'V1',
+ V1 = 'V1'
}
export type GQLSearchAccount = {
@@ -1299,10 +1310,12 @@ export type GQLSubscription = {
submitAndAwait: GQLTransactionStatus;
};
+
export type GQLSubscriptionStatusChangeArgs = {
id: Scalars['TransactionId']['input'];
};
+
export type GQLSubscriptionSubmitAndAwaitArgs = {
tx: Scalars['HexString']['input'];
};
@@ -1392,11 +1405,7 @@ export type GQLTransactionGasCosts = {
gasUsed?: Maybe;
};
-export type GQLTransactionStatus =
- | GQLFailureStatus
- | GQLSqueezedOutStatus
- | GQLSubmittedStatus
- | GQLSuccessStatus;
+export type GQLTransactionStatus = GQLFailureStatus | GQLSqueezedOutStatus | GQLSubmittedStatus | GQLSuccessStatus;
export type GQLTxParameters = {
__typename: 'TxParameters';
@@ -1410,12 +1419,10 @@ export type GQLTxParameters = {
};
export enum GQLTxParametersVersion {
- V1 = 'V1',
+ V1 = 'V1'
}
-export type GQLUpgradePurpose =
- | GQLConsensusParametersPurpose
- | GQLStateTransitionPurpose;
+export type GQLUpgradePurpose = GQLConsensusParametersPurpose | GQLStateTransitionPurpose;
export type GQLUtxoItem = {
__typename: 'UtxoItem';
@@ -1432,19 +1439,7 @@ export type GQLVariableOutput = {
to: Scalars['Address']['output'];
};
-export type GQLBalanceItemFragment = {
- __typename: 'Balance';
- amount: string;
- assetId: string;
- owner: string;
- utxos?: Array<{
- __typename: 'UtxoItem';
- amount: string;
- blockCreated?: string | null;
- txCreatedIdx?: string | null;
- utxoId: string;
- } | null> | null;
-};
+export type GQLBalanceItemFragment = { __typename: 'Balance', amount: string, assetId: string, owner: string, utxos?: Array<{ __typename: 'UtxoItem', amount: string, blockCreated?: string | null, txCreatedIdx?: string | null, utxoId: string } | null> | null };
export type GQLBalancesQueryVariables = Exact<{
after?: InputMaybe;
@@ -1454,133 +1449,20 @@ export type GQLBalancesQueryVariables = Exact<{
last?: InputMaybe;
}>;
-export type GQLBalancesQuery = {
- __typename: 'Query';
- balances: {
- __typename: 'BalanceConnection';
- nodes: Array<{
- __typename: 'Balance';
- amount: string;
- assetId: string;
- owner: string;
- utxos?: Array<{
- __typename: 'UtxoItem';
- amount: string;
- blockCreated?: string | null;
- txCreatedIdx?: string | null;
- utxoId: string;
- } | null> | null;
- }>;
- pageInfo: {
- __typename: 'PageInfo';
- endCursor?: string | null;
- hasNextPage: boolean;
- hasPreviousPage: boolean;
- startCursor?: string | null;
- };
- };
-};
-export type GQLBlockFragment = {
- __typename: 'Block';
- id: string;
- producer?: string | null;
- consensus:
- | { __typename: 'Genesis' }
- | { __typename: 'PoAConsensus'; signature: string };
- header: { __typename: 'Header'; transactionsCount: string };
- time?: {
- __typename: 'ParsedTime';
- full?: string | null;
- fromNow?: string | null;
- rawUnix?: string | null;
- } | null;
- transactions: Array<{
- __typename: 'Transaction';
- _id?: string | null;
- id: string;
- title: string;
- statusType?: string | null;
- time: {
- __typename: 'ParsedTime';
- fromNow?: string | null;
- rawUnix?: string | null;
- };
- gasCosts?: {
- __typename: 'TransactionGasCosts';
- fee?: string | null;
- } | null;
- }>;
-};
+export type GQLBalancesQuery = { __typename: 'Query', balances: { __typename: 'BalanceConnection', nodes: Array<{ __typename: 'Balance', amount: string, assetId: string, owner: string, utxos?: Array<{ __typename: 'UtxoItem', amount: string, blockCreated?: string | null, txCreatedIdx?: string | null, utxoId: string } | null> | null }>, pageInfo: { __typename: 'PageInfo', endCursor?: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | null } } };
+
+export type GQLBlockFragment = { __typename: 'Block', id: string, producer?: string | null, consensus: { __typename: 'Genesis' } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', transactionsCount: string }, time?: { __typename: 'ParsedTime', full?: string | null, fromNow?: string | null, rawUnix?: string | null } | null, transactions: Array<{ __typename: 'Transaction', _id?: string | null, id: string, title: string, statusType?: string | null, time: { __typename: 'ParsedTime', fromNow?: string | null, rawUnix?: string | null }, gasCosts?: { __typename: 'TransactionGasCosts', fee?: string | null } | null }> };
export type GQLBlockQueryVariables = Exact<{
height?: InputMaybe;
id?: InputMaybe;
}>;
-export type GQLBlockQuery = {
- __typename: 'Query';
- block?: {
- __typename: 'Block';
- id: string;
- producer?: string | null;
- consensus:
- | { __typename: 'Genesis' }
- | { __typename: 'PoAConsensus'; signature: string };
- header: { __typename: 'Header'; transactionsCount: string };
- time?: {
- __typename: 'ParsedTime';
- full?: string | null;
- fromNow?: string | null;
- rawUnix?: string | null;
- } | null;
- transactions: Array<{
- __typename: 'Transaction';
- _id?: string | null;
- id: string;
- title: string;
- statusType?: string | null;
- time: {
- __typename: 'ParsedTime';
- fromNow?: string | null;
- rawUnix?: string | null;
- };
- gasCosts?: {
- __typename: 'TransactionGasCosts';
- fee?: string | null;
- } | null;
- }>;
- } | null;
-};
-
-export type GQLBlockItemFragment = {
- __typename: 'Block';
- totalGasUsed?: string | null;
- producer?: string | null;
- id: string;
- time?: {
- __typename: 'ParsedTime';
- fromNow?: string | null;
- full?: string | null;
- rawTai64?: string | null;
- rawUnix?: string | null;
- } | null;
- consensus:
- | { __typename: 'Genesis' }
- | { __typename: 'PoAConsensus'; signature: string };
- header: {
- __typename: 'Header';
- id: string;
- height: string;
- time: string;
- transactionsCount: string;
- };
- transactions: Array<{
- __typename: 'Transaction';
- isMint: boolean;
- mintAmount?: string | null;
- }>;
-};
+
+export type GQLBlockQuery = { __typename: 'Query', block?: { __typename: 'Block', id: string, producer?: string | null, consensus: { __typename: 'Genesis' } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', transactionsCount: string }, time?: { __typename: 'ParsedTime', full?: string | null, fromNow?: string | null, rawUnix?: string | null } | null, transactions: Array<{ __typename: 'Transaction', _id?: string | null, id: string, title: string, statusType?: string | null, time: { __typename: 'ParsedTime', fromNow?: string | null, rawUnix?: string | null }, gasCosts?: { __typename: 'TransactionGasCosts', fee?: string | null } | null }> } | null };
+
+export type GQLBlockItemFragment = { __typename: 'Block', totalGasUsed?: string | null, producer?: string | null, id: string, time?: { __typename: 'ParsedTime', fromNow?: string | null, full?: string | null, rawTai64?: string | null, rawUnix?: string | null } | null, consensus: { __typename: 'Genesis' } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', id: string, height: string, time: string, transactionsCount: string }, transactions: Array<{ __typename: 'Transaction', isMint: boolean, mintAmount?: string | null }> };
export type GQLBlocksQueryVariables = Exact<{
after?: InputMaybe;
@@ -1589,1000 +1471,13 @@ export type GQLBlocksQueryVariables = Exact<{
last?: InputMaybe;
}>;
-export type GQLBlocksQuery = {
- __typename: 'Query';
- blocks: {
- __typename: 'BlockConnection';
- pageInfo: {
- __typename: 'PageInfo';
- startCursor?: string | null;
- endCursor?: string | null;
- hasPreviousPage: boolean;
- hasNextPage: boolean;
- };
- edges: Array<{
- __typename: 'BlockEdge';
- node: {
- __typename: 'Block';
- totalGasUsed?: string | null;
- producer?: string | null;
- id: string;
- time?: {
- __typename: 'ParsedTime';
- fromNow?: string | null;
- full?: string | null;
- rawTai64?: string | null;
- rawUnix?: string | null;
- } | null;
- consensus:
- | { __typename: 'Genesis' }
- | { __typename: 'PoAConsensus'; signature: string };
- header: {
- __typename: 'Header';
- id: string;
- height: string;
- time: string;
- transactionsCount: string;
- };
- transactions: Array<{
- __typename: 'Transaction';
- isMint: boolean;
- mintAmount?: string | null;
- }>;
- };
- }>;
- };
-};
-export type GQLChainQueryVariables = Exact<{ [key: string]: never }>;
+export type GQLBlocksQuery = { __typename: 'Query', blocks: { __typename: 'BlockConnection', pageInfo: { __typename: 'PageInfo', startCursor?: string | null, endCursor?: string | null, hasPreviousPage: boolean, hasNextPage: boolean }, edges: Array<{ __typename: 'BlockEdge', node: { __typename: 'Block', totalGasUsed?: string | null, producer?: string | null, id: string, time?: { __typename: 'ParsedTime', fromNow?: string | null, full?: string | null, rawTai64?: string | null, rawUnix?: string | null } | null, consensus: { __typename: 'Genesis' } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', id: string, height: string, time: string, transactionsCount: string }, transactions: Array<{ __typename: 'Transaction', isMint: boolean, mintAmount?: string | null }> } }> } };
-export type GQLChainQuery = {
- __typename: 'Query';
- chain: {
- __typename: 'ChainInfo';
- daHeight: string;
- name: string;
- consensusParameters: {
- __typename: 'ConsensusParameters';
- baseAssetId: string;
- blockGasLimit: string;
- chainId: string;
- privilegedAddress: string;
- contractParams: {
- __typename: 'ContractParameters';
- contractMaxSize: string;
- maxStorageSlots: string;
- };
- feeParams: {
- __typename: 'FeeParameters';
- gasPerByte: string;
- gasPriceFactor: string;
- };
- gasCosts: {
- __typename: 'GasCosts';
- add: string;
- addi: string;
- aloc: string;
- and: string;
- andi: string;
- bal: string;
- bhei: string;
- bhsh: string;
- burn: string;
- cb: string;
- cfei: string;
- cfsi: string;
- div: string;
- divi: string;
- eck1: string;
- ecr1: string;
- ed19: string;
- eq: string;
- exp: string;
- expi: string;
- flag: string;
- gm: string;
- gt: string;
- gtf: string;
- ji: string;
- jmp: string;
- jmpb: string;
- jmpf: string;
- jne: string;
- jneb: string;
- jnef: string;
- jnei: string;
- jnzb: string;
- jnzf: string;
- jnzi: string;
- lb: string;
- log: string;
- lt: string;
- lw: string;
- mint: string;
- mldv: string;
- mlog: string;
- modOp: string;
- modi: string;
- moveOp: string;
- movi: string;
- mroo: string;
- mul: string;
- muli: string;
- newStoragePerByte: string;
- noop: string;
- not: string;
- or: string;
- ori: string;
- poph: string;
- popl: string;
- pshh: string;
- pshl: string;
- ret: string;
- rvrt: string;
- sb: string;
- sll: string;
- slli: string;
- srl: string;
- srli: string;
- srw: string;
- sub: string;
- subi: string;
- sw: string;
- sww: string;
- time: string;
- tr: string;
- tro: string;
- wdam: string;
- wdcm: string;
- wddv: string;
- wdmd: string;
- wdml: string;
- wdmm: string;
- wdop: string;
- wqam: string;
- wqcm: string;
- wqdv: string;
- wqmd: string;
- wqml: string;
- wqmm: string;
- wqop: string;
- xor: string;
- xori: string;
- call:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- ccp:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- contractRoot:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- croo:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- csiz:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- k256:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- ldc:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- logd:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- mcl:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- mcli:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- mcp:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- mcpi:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- meq:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- retd:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- s256:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- scwq:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- smo:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- srwq:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- stateRoot:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- swwq:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- vmInitialization:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- };
- predicateParams: {
- __typename: 'PredicateParameters';
- maxGasPerPredicate: string;
- maxMessageDataLength: string;
- maxPredicateDataLength: string;
- maxPredicateLength: string;
- };
- scriptParams: {
- __typename: 'ScriptParameters';
- maxScriptDataLength: string;
- maxScriptLength: string;
- };
- txParams: {
- __typename: 'TxParameters';
- maxBytecodeSubsections: string;
- maxGasPerTx: string;
- maxInputs: string;
- maxOutputs: string;
- maxSize: string;
- maxWitnesses: string;
- };
- };
- gasCosts: {
- __typename: 'GasCosts';
- add: string;
- addi: string;
- aloc: string;
- and: string;
- andi: string;
- bal: string;
- bhei: string;
- bhsh: string;
- burn: string;
- cb: string;
- cfei: string;
- cfsi: string;
- div: string;
- divi: string;
- eck1: string;
- ecr1: string;
- ed19: string;
- eq: string;
- exp: string;
- expi: string;
- flag: string;
- gm: string;
- gt: string;
- gtf: string;
- ji: string;
- jmp: string;
- jmpb: string;
- jmpf: string;
- jne: string;
- jneb: string;
- jnef: string;
- jnei: string;
- jnzb: string;
- jnzf: string;
- jnzi: string;
- lb: string;
- log: string;
- lt: string;
- lw: string;
- mint: string;
- mldv: string;
- mlog: string;
- modOp: string;
- modi: string;
- moveOp: string;
- movi: string;
- mroo: string;
- mul: string;
- muli: string;
- newStoragePerByte: string;
- noop: string;
- not: string;
- or: string;
- ori: string;
- poph: string;
- popl: string;
- pshh: string;
- pshl: string;
- ret: string;
- rvrt: string;
- sb: string;
- sll: string;
- slli: string;
- srl: string;
- srli: string;
- srw: string;
- sub: string;
- subi: string;
- sw: string;
- sww: string;
- time: string;
- tr: string;
- tro: string;
- wdam: string;
- wdcm: string;
- wddv: string;
- wdmd: string;
- wdml: string;
- wdmm: string;
- wdop: string;
- wqam: string;
- wqcm: string;
- wqdv: string;
- wqmd: string;
- wqml: string;
- wqmm: string;
- wqop: string;
- xor: string;
- xori: string;
- call:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- ccp:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- contractRoot:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- croo:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- csiz:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- k256:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- ldc:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- logd:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- mcl:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- mcli:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- mcp:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- mcpi:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- meq:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- retd:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- s256:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- scwq:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- smo:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- srwq:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- stateRoot:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- swwq:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- vmInitialization:
- | { __typename: 'HeavyOperation'; base: string; gasPerUnit: string }
- | { __typename: 'LightOperation'; base: string; unitsPerGas: string };
- };
- latestBlock: {
- __typename: 'Block';
- height: string;
- id: string;
- consensus:
- | {
- __typename: 'Genesis';
- chainConfigHash: string;
- coinsRoot: string;
- contractsRoot: string;
- messagesRoot: string;
- transactionsRoot: string;
- }
- | { __typename: 'PoAConsensus'; signature: string };
- header: {
- __typename: 'Header';
- applicationHash: string;
- consensusParametersVersion: string;
- daHeight: string;
- eventInboxRoot: string;
- height: string;
- id: string;
- messageOutboxRoot: string;
- messageReceiptCount: string;
- prevRoot: string;
- stateTransitionBytecodeVersion: string;
- time: string;
- transactionsCount: string;
- transactionsRoot: string;
- };
- transactions: Array<{
- __typename: 'Transaction';
- bytecodeRoot?: string | null;
- bytecodeWitnessIndex?: string | null;
- id: string;
- inputAssetIds?: Array | null;
- inputContracts?: Array | null;
- isCreate: boolean;
- isMint: boolean;
- isScript: boolean;
- isUpgrade: boolean;
- isUpload: boolean;
- maturity?: string | null;
- mintAmount?: string | null;
- mintAssetId?: string | null;
- mintGasPrice?: string | null;
- proofSet?: Array | null;
- rawPayload: string;
- receiptsRoot?: string | null;
- salt?: string | null;
- script?: string | null;
- scriptData?: string | null;
- scriptGasLimit?: string | null;
- storageSlots?: Array | null;
- subsectionIndex?: string | null;
- subsectionsNumber?: string | null;
- txPointer?: string | null;
- witnesses?: Array | null;
- inputContract?: {
- __typename: 'InputContract';
- balanceRoot: string;
- contractId: string;
- stateRoot: string;
- txPointer: string;
- utxoId: string;
- } | null;
- inputs?: Array<
- | {
- __typename: 'InputCoin';
- amount: string;
- assetId: string;
- owner: string;
- predicate: string;
- predicateData: string;
- predicateGasUsed: string;
- txPointer: string;
- utxoId: string;
- witnessIndex: string;
- }
- | {
- __typename: 'InputContract';
- balanceRoot: string;
- contractId: string;
- stateRoot: string;
- txPointer: string;
- utxoId: string;
- }
- | {
- __typename: 'InputMessage';
- amount: string;
- data: string;
- nonce: string;
- predicate: string;
- predicateData: string;
- predicateGasUsed: string;
- recipient: string;
- sender: string;
- witnessIndex: string;
- }
- > | null;
- outputContract?: {
- __typename: 'ContractOutput';
- balanceRoot: string;
- inputIndex: string;
- stateRoot: string;
- } | null;
- outputs: Array<
- | {
- __typename: 'ChangeOutput';
- amount: string;
- assetId: string;
- to: string;
- }
- | {
- __typename: 'CoinOutput';
- amount: string;
- assetId: string;
- to: string;
- }
- | {
- __typename: 'ContractCreated';
- contract: string;
- stateRoot: string;
- }
- | {
- __typename: 'ContractOutput';
- balanceRoot: string;
- inputIndex: string;
- stateRoot: string;
- }
- | {
- __typename: 'VariableOutput';
- amount: string;
- assetId: string;
- to: string;
- }
- >;
- policies?: {
- __typename: 'Policies';
- maturity?: string | null;
- maxFee?: string | null;
- tip?: string | null;
- witnessLimit?: string | null;
- } | null;
- status?:
- | {
- __typename: 'FailureStatus';
- reason: string;
- time: string;
- totalFee: string;
- totalGas: string;
- transactionId: string;
- block: {
- __typename: 'Block';
- height: string;
- id: string;
- consensus:
- | {
- __typename: 'Genesis';
- chainConfigHash: string;
- coinsRoot: string;
- contractsRoot: string;
- messagesRoot: string;
- transactionsRoot: string;
- }
- | { __typename: 'PoAConsensus'; signature: string };
- header: {
- __typename: 'Header';
- applicationHash: string;
- consensusParametersVersion: string;
- daHeight: string;
- eventInboxRoot: string;
- height: string;
- id: string;
- messageOutboxRoot: string;
- messageReceiptCount: string;
- prevRoot: string;
- stateTransitionBytecodeVersion: string;
- time: string;
- transactionsCount: string;
- transactionsRoot: string;
- };
- transactions: Array<{
- __typename: 'Transaction';
- bytecodeRoot?: string | null;
- bytecodeWitnessIndex?: string | null;
- id: string;
- inputAssetIds?: Array | null;
- inputContracts?: Array | null;
- isCreate: boolean;
- isMint: boolean;
- isScript: boolean;
- isUpgrade: boolean;
- isUpload: boolean;
- maturity?: string | null;
- mintAmount?: string | null;
- mintAssetId?: string | null;
- mintGasPrice?: string | null;
- proofSet?: Array | null;
- rawPayload: string;
- receiptsRoot?: string | null;
- salt?: string | null;
- script?: string | null;
- scriptData?: string | null;
- scriptGasLimit?: string | null;
- storageSlots?: Array | null;
- subsectionIndex?: string | null;
- subsectionsNumber?: string | null;
- txPointer?: string | null;
- witnesses?: Array | null;
- inputContract?: {
- __typename: 'InputContract';
- balanceRoot: string;
- contractId: string;
- stateRoot: string;
- txPointer: string;
- utxoId: string;
- } | null;
- inputs?: Array<
- | {
- __typename: 'InputCoin';
- amount: string;
- assetId: string;
- owner: string;
- predicate: string;
- predicateData: string;
- predicateGasUsed: string;
- txPointer: string;
- utxoId: string;
- witnessIndex: string;
- }
- | {
- __typename: 'InputContract';
- balanceRoot: string;
- contractId: string;
- stateRoot: string;
- txPointer: string;
- utxoId: string;
- }
- | {
- __typename: 'InputMessage';
- amount: string;
- data: string;
- nonce: string;
- predicate: string;
- predicateData: string;
- predicateGasUsed: string;
- recipient: string;
- sender: string;
- witnessIndex: string;
- }
- > | null;
- outputContract?: {
- __typename: 'ContractOutput';
- balanceRoot: string;
- inputIndex: string;
- stateRoot: string;
- } | null;
- outputs: Array<
- | {
- __typename: 'ChangeOutput';
- amount: string;
- assetId: string;
- to: string;
- }
- | {
- __typename: 'CoinOutput';
- amount: string;
- assetId: string;
- to: string;
- }
- | {
- __typename: 'ContractCreated';
- contract: string;
- stateRoot: string;
- }
- | {
- __typename: 'ContractOutput';
- balanceRoot: string;
- inputIndex: string;
- stateRoot: string;
- }
- | {
- __typename: 'VariableOutput';
- amount: string;
- assetId: string;
- to: string;
- }
- >;
- policies?: {
- __typename: 'Policies';
- maturity?: string | null;
- maxFee?: string | null;
- tip?: string | null;
- witnessLimit?: string | null;
- } | null;
- status?:
- | {
- __typename: 'FailureStatus';
- reason: string;
- time: string;
- totalFee: string;
- totalGas: string;
- transactionId: string;
- }
- | { __typename: 'SqueezedOutStatus'; reason: string }
- | { __typename: 'SubmittedStatus'; time: string }
- | {
- __typename: 'SuccessStatus';
- time: string;
- totalFee: string;
- totalGas: string;
- transactionId: string;
- }
- | null;
- upgradePurpose?:
- | {
- __typename: 'ConsensusParametersPurpose';
- checksum: string;
- witnessIndex: string;
- }
- | { __typename: 'StateTransitionPurpose'; root: string }
- | null;
- }>;
- };
- programState?: {
- __typename: 'ProgramState';
- data: string;
- returnType: GQLReturnType;
- } | null;
- receipts: Array<{
- __typename: 'Receipt';
- amount?: string | null;
- assetId?: string | null;
- contractId?: string | null;
- data?: string | null;
- digest?: string | null;
- gas?: string | null;
- gasUsed?: string | null;
- id?: string | null;
- is?: string | null;
- len?: string | null;
- nonce?: string | null;
- param1?: string | null;
- param2?: string | null;
- pc?: string | null;
- ptr?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- reason?: string | null;
- receiptType: GQLReceiptType;
- recipient?: string | null;
- result?: string | null;
- sender?: string | null;
- subId?: string | null;
- to?: string | null;
- toAddress?: string | null;
- val?: string | null;
- }>;
- }
- | { __typename: 'SqueezedOutStatus'; reason: string }
- | { __typename: 'SubmittedStatus'; time: string }
- | {
- __typename: 'SuccessStatus';
- time: string;
- totalFee: string;
- totalGas: string;
- transactionId: string;
- block: {
- __typename: 'Block';
- height: string;
- id: string;
- consensus:
- | {
- __typename: 'Genesis';
- chainConfigHash: string;
- coinsRoot: string;
- contractsRoot: string;
- messagesRoot: string;
- transactionsRoot: string;
- }
- | { __typename: 'PoAConsensus'; signature: string };
- header: {
- __typename: 'Header';
- applicationHash: string;
- consensusParametersVersion: string;
- daHeight: string;
- eventInboxRoot: string;
- height: string;
- id: string;
- messageOutboxRoot: string;
- messageReceiptCount: string;
- prevRoot: string;
- stateTransitionBytecodeVersion: string;
- time: string;
- transactionsCount: string;
- transactionsRoot: string;
- };
- transactions: Array<{
- __typename: 'Transaction';
- bytecodeRoot?: string | null;
- bytecodeWitnessIndex?: string | null;
- id: string;
- inputAssetIds?: Array | null;
- inputContracts?: Array | null;
- isCreate: boolean;
- isMint: boolean;
- isScript: boolean;
- isUpgrade: boolean;
- isUpload: boolean;
- maturity?: string | null;
- mintAmount?: string | null;
- mintAssetId?: string | null;
- mintGasPrice?: string | null;
- proofSet?: Array | null;
- rawPayload: string;
- receiptsRoot?: string | null;
- salt?: string | null;
- script?: string | null;
- scriptData?: string | null;
- scriptGasLimit?: string | null;
- storageSlots?: Array | null;
- subsectionIndex?: string | null;
- subsectionsNumber?: string | null;
- txPointer?: string | null;
- witnesses?: Array | null;
- inputContract?: {
- __typename: 'InputContract';
- balanceRoot: string;
- contractId: string;
- stateRoot: string;
- txPointer: string;
- utxoId: string;
- } | null;
- inputs?: Array<
- | {
- __typename: 'InputCoin';
- amount: string;
- assetId: string;
- owner: string;
- predicate: string;
- predicateData: string;
- predicateGasUsed: string;
- txPointer: string;
- utxoId: string;
- witnessIndex: string;
- }
- | {
- __typename: 'InputContract';
- balanceRoot: string;
- contractId: string;
- stateRoot: string;
- txPointer: string;
- utxoId: string;
- }
- | {
- __typename: 'InputMessage';
- amount: string;
- data: string;
- nonce: string;
- predicate: string;
- predicateData: string;
- predicateGasUsed: string;
- recipient: string;
- sender: string;
- witnessIndex: string;
- }
- > | null;
- outputContract?: {
- __typename: 'ContractOutput';
- balanceRoot: string;
- inputIndex: string;
- stateRoot: string;
- } | null;
- outputs: Array<
- | {
- __typename: 'ChangeOutput';
- amount: string;
- assetId: string;
- to: string;
- }
- | {
- __typename: 'CoinOutput';
- amount: string;
- assetId: string;
- to: string;
- }
- | {
- __typename: 'ContractCreated';
- contract: string;
- stateRoot: string;
- }
- | {
- __typename: 'ContractOutput';
- balanceRoot: string;
- inputIndex: string;
- stateRoot: string;
- }
- | {
- __typename: 'VariableOutput';
- amount: string;
- assetId: string;
- to: string;
- }
- >;
- policies?: {
- __typename: 'Policies';
- maturity?: string | null;
- maxFee?: string | null;
- tip?: string | null;
- witnessLimit?: string | null;
- } | null;
- status?:
- | {
- __typename: 'FailureStatus';
- reason: string;
- time: string;
- totalFee: string;
- totalGas: string;
- transactionId: string;
- }
- | { __typename: 'SqueezedOutStatus'; reason: string }
- | { __typename: 'SubmittedStatus'; time: string }
- | {
- __typename: 'SuccessStatus';
- time: string;
- totalFee: string;
- totalGas: string;
- transactionId: string;
- }
- | null;
- upgradePurpose?:
- | {
- __typename: 'ConsensusParametersPurpose';
- checksum: string;
- witnessIndex: string;
- }
- | { __typename: 'StateTransitionPurpose'; root: string }
- | null;
- }>;
- };
- programState?: {
- __typename: 'ProgramState';
- data: string;
- returnType: GQLReturnType;
- } | null;
- receipts: Array<{
- __typename: 'Receipt';
- amount?: string | null;
- assetId?: string | null;
- contractId?: string | null;
- data?: string | null;
- digest?: string | null;
- gas?: string | null;
- gasUsed?: string | null;
- id?: string | null;
- is?: string | null;
- len?: string | null;
- nonce?: string | null;
- param1?: string | null;
- param2?: string | null;
- pc?: string | null;
- ptr?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- reason?: string | null;
- receiptType: GQLReceiptType;
- recipient?: string | null;
- result?: string | null;
- sender?: string | null;
- subId?: string | null;
- to?: string | null;
- toAddress?: string | null;
- val?: string | null;
- }>;
- }
- | null;
- upgradePurpose?:
- | {
- __typename: 'ConsensusParametersPurpose';
- checksum: string;
- witnessIndex: string;
- }
- | { __typename: 'StateTransitionPurpose'; root: string }
- | null;
- }>;
- };
- };
-};
+export type GQLChainQueryVariables = Exact<{ [key: string]: never; }>;
+
+
+export type GQLChainQuery = { __typename: 'Query', chain: { __typename: 'ChainInfo', daHeight: string, name: string, consensusParameters: { __typename: 'ConsensusParameters', baseAssetId: string, blockGasLimit: string, chainId: string, privilegedAddress: string, contractParams: { __typename: 'ContractParameters', contractMaxSize: string, maxStorageSlots: string }, feeParams: { __typename: 'FeeParameters', gasPerByte: string, gasPriceFactor: string }, gasCosts: { __typename: 'GasCosts', add: string, addi: string, aloc: string, and: string, andi: string, bal: string, bhei: string, bhsh: string, burn: string, cb: string, cfei: string, cfsi: string, div: string, divi: string, eck1: string, ecr1: string, ed19: string, eq: string, exp: string, expi: string, flag: string, gm: string, gt: string, gtf: string, ji: string, jmp: string, jmpb: string, jmpf: string, jne: string, jneb: string, jnef: string, jnei: string, jnzb: string, jnzf: string, jnzi: string, lb: string, log: string, lt: string, lw: string, mint: string, mldv: string, mlog: string, modOp: string, modi: string, moveOp: string, movi: string, mroo: string, mul: string, muli: string, newStoragePerByte: string, noop: string, not: string, or: string, ori: string, poph: string, popl: string, pshh: string, pshl: string, ret: string, rvrt: string, sb: string, sll: string, slli: string, srl: string, srli: string, srw: string, sub: string, subi: string, sw: string, sww: string, time: string, tr: string, tro: string, wdam: string, wdcm: string, wddv: string, wdmd: string, wdml: string, wdmm: string, wdop: string, wqam: string, wqcm: string, wqdv: string, wqmd: string, wqml: string, wqmm: string, wqop: string, xor: string, xori: string, call: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, ccp: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, contractRoot: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, croo: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, csiz: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, k256: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, ldc: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, logd: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcl: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcli: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcp: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcpi: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, meq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, retd: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, s256: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, scwq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, smo: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, srwq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, stateRoot: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, swwq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, vmInitialization: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string } }, predicateParams: { __typename: 'PredicateParameters', maxGasPerPredicate: string, maxMessageDataLength: string, maxPredicateDataLength: string, maxPredicateLength: string }, scriptParams: { __typename: 'ScriptParameters', maxScriptDataLength: string, maxScriptLength: string }, txParams: { __typename: 'TxParameters', maxBytecodeSubsections: string, maxGasPerTx: string, maxInputs: string, maxOutputs: string, maxSize: string, maxWitnesses: string } }, gasCosts: { __typename: 'GasCosts', add: string, addi: string, aloc: string, and: string, andi: string, bal: string, bhei: string, bhsh: string, burn: string, cb: string, cfei: string, cfsi: string, div: string, divi: string, eck1: string, ecr1: string, ed19: string, eq: string, exp: string, expi: string, flag: string, gm: string, gt: string, gtf: string, ji: string, jmp: string, jmpb: string, jmpf: string, jne: string, jneb: string, jnef: string, jnei: string, jnzb: string, jnzf: string, jnzi: string, lb: string, log: string, lt: string, lw: string, mint: string, mldv: string, mlog: string, modOp: string, modi: string, moveOp: string, movi: string, mroo: string, mul: string, muli: string, newStoragePerByte: string, noop: string, not: string, or: string, ori: string, poph: string, popl: string, pshh: string, pshl: string, ret: string, rvrt: string, sb: string, sll: string, slli: string, srl: string, srli: string, srw: string, sub: string, subi: string, sw: string, sww: string, time: string, tr: string, tro: string, wdam: string, wdcm: string, wddv: string, wdmd: string, wdml: string, wdmm: string, wdop: string, wqam: string, wqcm: string, wqdv: string, wqmd: string, wqml: string, wqmm: string, wqop: string, xor: string, xori: string, call: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, ccp: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, contractRoot: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, croo: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, csiz: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, k256: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, ldc: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, logd: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcl: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcli: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcp: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, mcpi: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, meq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, retd: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, s256: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, scwq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, smo: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, srwq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, stateRoot: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, swwq: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string }, vmInitialization: { __typename: 'HeavyOperation', base: string, gasPerUnit: string } | { __typename: 'LightOperation', base: string, unitsPerGas: string } }, latestBlock: { __typename: 'Block', height: string, id: string, consensus: { __typename: 'Genesis', chainConfigHash: string, coinsRoot: string, contractsRoot: string, messagesRoot: string, transactionsRoot: string } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', applicationHash: string, consensusParametersVersion: string, daHeight: string, eventInboxRoot: string, height: string, id: string, messageOutboxRoot: string, messageReceiptCount: string, prevRoot: string, stateTransitionBytecodeVersion: string, time: string, transactionsCount: string, transactionsRoot: string }, transactions: Array<{ __typename: 'Transaction', bytecodeRoot?: string | null, bytecodeWitnessIndex?: string | null, id: string, inputAssetIds?: Array | null, inputContracts?: Array | null, isCreate: boolean, isMint: boolean, isScript: boolean, isUpgrade: boolean, isUpload: boolean, maturity?: string | null, mintAmount?: string | null, mintAssetId?: string | null, mintGasPrice?: string | null, proofSet?: Array | null, rawPayload: string, receiptsRoot?: string | null, salt?: string | null, script?: string | null, scriptData?: string | null, scriptGasLimit?: string | null, storageSlots?: Array | null, subsectionIndex?: string | null, subsectionsNumber?: string | null, txPointer?: string | null, witnesses?: Array | null, inputContract?: { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, assetId: string, owner: string, predicate: string, predicateData: string, predicateGasUsed: string, txPointer: string, utxoId: string, witnessIndex: string } | { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | { __typename: 'InputMessage', amount: string, data: string, nonce: string, predicate: string, predicateData: string, predicateGasUsed: string, recipient: string, sender: string, witnessIndex: string }> | null, outputContract?: { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | null, outputs: Array<{ __typename: 'ChangeOutput', amount: string, assetId: string, to: string } | { __typename: 'CoinOutput', amount: string, assetId: string, to: string } | { __typename: 'ContractCreated', contract: string, stateRoot: string } | { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | { __typename: 'VariableOutput', amount: string, assetId: string, to: string }>, policies?: { __typename: 'Policies', maturity?: string | null, maxFee?: string | null, tip?: string | null, witnessLimit?: string | null } | null, status?: { __typename: 'FailureStatus', reason: string, time: string, totalFee: string, totalGas: string, transactionId: string, block: { __typename: 'Block', height: string, id: string, consensus: { __typename: 'Genesis', chainConfigHash: string, coinsRoot: string, contractsRoot: string, messagesRoot: string, transactionsRoot: string } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', applicationHash: string, consensusParametersVersion: string, daHeight: string, eventInboxRoot: string, height: string, id: string, messageOutboxRoot: string, messageReceiptCount: string, prevRoot: string, stateTransitionBytecodeVersion: string, time: string, transactionsCount: string, transactionsRoot: string }, transactions: Array<{ __typename: 'Transaction', bytecodeRoot?: string | null, bytecodeWitnessIndex?: string | null, id: string, inputAssetIds?: Array | null, inputContracts?: Array | null, isCreate: boolean, isMint: boolean, isScript: boolean, isUpgrade: boolean, isUpload: boolean, maturity?: string | null, mintAmount?: string | null, mintAssetId?: string | null, mintGasPrice?: string | null, proofSet?: Array | null, rawPayload: string, receiptsRoot?: string | null, salt?: string | null, script?: string | null, scriptData?: string | null, scriptGasLimit?: string | null, storageSlots?: Array | null, subsectionIndex?: string | null, subsectionsNumber?: string | null, txPointer?: string | null, witnesses?: Array | null, inputContract?: { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, assetId: string, owner: string, predicate: string, predicateData: string, predicateGasUsed: string, txPointer: string, utxoId: string, witnessIndex: string } | { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | { __typename: 'InputMessage', amount: string, data: string, nonce: string, predicate: string, predicateData: string, predicateGasUsed: string, recipient: string, sender: string, witnessIndex: string }> | null, outputContract?: { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | null, outputs: Array<{ __typename: 'ChangeOutput', amount: string, assetId: string, to: string } | { __typename: 'CoinOutput', amount: string, assetId: string, to: string } | { __typename: 'ContractCreated', contract: string, stateRoot: string } | { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | { __typename: 'VariableOutput', amount: string, assetId: string, to: string }>, policies?: { __typename: 'Policies', maturity?: string | null, maxFee?: string | null, tip?: string | null, witnessLimit?: string | null } | null, status?: { __typename: 'FailureStatus', reason: string, time: string, totalFee: string, totalGas: string, transactionId: string } | { __typename: 'SqueezedOutStatus', reason: string } | { __typename: 'SubmittedStatus', time: string } | { __typename: 'SuccessStatus', time: string, totalFee: string, totalGas: string, transactionId: string } | null, upgradePurpose?: { __typename: 'ConsensusParametersPurpose', checksum: string, witnessIndex: string } | { __typename: 'StateTransitionPurpose', root: string } | null }> }, programState?: { __typename: 'ProgramState', data: string, returnType: GQLReturnType } | null, receipts: Array<{ __typename: 'Receipt', amount?: string | null, assetId?: string | null, contractId?: string | null, data?: string | null, digest?: string | null, gas?: string | null, gasUsed?: string | null, id?: string | null, is?: string | null, len?: string | null, nonce?: string | null, param1?: string | null, param2?: string | null, pc?: string | null, ptr?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, reason?: string | null, receiptType: GQLReceiptType, recipient?: string | null, result?: string | null, sender?: string | null, subId?: string | null, to?: string | null, toAddress?: string | null, val?: string | null }> } | { __typename: 'SqueezedOutStatus', reason: string } | { __typename: 'SubmittedStatus', time: string } | { __typename: 'SuccessStatus', time: string, totalFee: string, totalGas: string, transactionId: string, block: { __typename: 'Block', height: string, id: string, consensus: { __typename: 'Genesis', chainConfigHash: string, coinsRoot: string, contractsRoot: string, messagesRoot: string, transactionsRoot: string } | { __typename: 'PoAConsensus', signature: string }, header: { __typename: 'Header', applicationHash: string, consensusParametersVersion: string, daHeight: string, eventInboxRoot: string, height: string, id: string, messageOutboxRoot: string, messageReceiptCount: string, prevRoot: string, stateTransitionBytecodeVersion: string, time: string, transactionsCount: string, transactionsRoot: string }, transactions: Array<{ __typename: 'Transaction', bytecodeRoot?: string | null, bytecodeWitnessIndex?: string | null, id: string, inputAssetIds?: Array | null, inputContracts?: Array | null, isCreate: boolean, isMint: boolean, isScript: boolean, isUpgrade: boolean, isUpload: boolean, maturity?: string | null, mintAmount?: string | null, mintAssetId?: string | null, mintGasPrice?: string | null, proofSet?: Array | null, rawPayload: string, receiptsRoot?: string | null, salt?: string | null, script?: string | null, scriptData?: string | null, scriptGasLimit?: string | null, storageSlots?: Array | null, subsectionIndex?: string | null, subsectionsNumber?: string | null, txPointer?: string | null, witnesses?: Array | null, inputContract?: { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, assetId: string, owner: string, predicate: string, predicateData: string, predicateGasUsed: string, txPointer: string, utxoId: string, witnessIndex: string } | { __typename: 'InputContract', balanceRoot: string, contractId: string, stateRoot: string, txPointer: string, utxoId: string } | { __typename: 'InputMessage', amount: string, data: string, nonce: string, predicate: string, predicateData: string, predicateGasUsed: string, recipient: string, sender: string, witnessIndex: string }> | null, outputContract?: { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | null, outputs: Array<{ __typename: 'ChangeOutput', amount: string, assetId: string, to: string } | { __typename: 'CoinOutput', amount: string, assetId: string, to: string } | { __typename: 'ContractCreated', contract: string, stateRoot: string } | { __typename: 'ContractOutput', balanceRoot: string, inputIndex: string, stateRoot: string } | { __typename: 'VariableOutput', amount: string, assetId: string, to: string }>, policies?: { __typename: 'Policies', maturity?: string | null, maxFee?: string | null, tip?: string | null, witnessLimit?: string | null } | null, status?: { __typename: 'FailureStatus', reason: string, time: string, totalFee: string, totalGas: string, transactionId: string } | { __typename: 'SqueezedOutStatus', reason: string } | { __typename: 'SubmittedStatus', time: string } | { __typename: 'SuccessStatus', time: string, totalFee: string, totalGas: string, transactionId: string } | null, upgradePurpose?: { __typename: 'ConsensusParametersPurpose', checksum: string, witnessIndex: string } | { __typename: 'StateTransitionPurpose', root: string } | null }> }, programState?: { __typename: 'ProgramState', data: string, returnType: GQLReturnType } | null, receipts: Array<{ __typename: 'Receipt', amount?: string | null, assetId?: string | null, contractId?: string | null, data?: string | null, digest?: string | null, gas?: string | null, gasUsed?: string | null, id?: string | null, is?: string | null, len?: string | null, nonce?: string | null, param1?: string | null, param2?: string | null, pc?: string | null, ptr?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, reason?: string | null, receiptType: GQLReceiptType, recipient?: string | null, result?: string | null, sender?: string | null, subId?: string | null, to?: string | null, toAddress?: string | null, val?: string | null }> } | null, upgradePurpose?: { __typename: 'ConsensusParametersPurpose', checksum: string, witnessIndex: string } | { __typename: 'StateTransitionPurpose', root: string } | null }> } } };
export type GQLCoinsQueryVariables = Exact<{
after?: InputMaybe;
@@ -2592,72 +1487,19 @@ export type GQLCoinsQueryVariables = Exact<{
last?: InputMaybe;
}>;
-export type GQLCoinsQuery = {
- __typename: 'Query';
- coins: {
- __typename: 'CoinConnection';
- edges: Array<{
- __typename: 'CoinEdge';
- cursor: string;
- node: {
- __typename: 'Coin';
- amount: string;
- assetId: string;
- blockCreated: string;
- owner: string;
- txCreatedIdx: string;
- utxoId: string;
- };
- }>;
- nodes: Array<{
- __typename: 'Coin';
- amount: string;
- assetId: string;
- blockCreated: string;
- owner: string;
- txCreatedIdx: string;
- utxoId: string;
- }>;
- pageInfo: {
- __typename: 'PageInfo';
- endCursor?: string | null;
- hasNextPage: boolean;
- hasPreviousPage: boolean;
- startCursor?: string | null;
- };
- };
-};
+
+export type GQLCoinsQuery = { __typename: 'Query', coins: { __typename: 'CoinConnection', edges: Array<{ __typename: 'CoinEdge', cursor: string, node: { __typename: 'Coin', amount: string, assetId: string, blockCreated: string, owner: string, txCreatedIdx: string, utxoId: string } }>, nodes: Array<{ __typename: 'Coin', amount: string, assetId: string, blockCreated: string, owner: string, txCreatedIdx: string, utxoId: string }>, pageInfo: { __typename: 'PageInfo', endCursor?: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | null } } };
export type GQLContractQueryVariables = Exact<{
id: Scalars['ContractId']['input'];
}>;
-export type GQLContractQuery = {
- __typename: 'Query';
- contract?: { __typename: 'Contract'; bytecode: string } | null;
-};
-export type GQLContractBalanceNodeFragment = {
- __typename: 'ContractBalance';
- amount: string;
- assetId: string;
-};
+export type GQLContractQuery = { __typename: 'Query', contract?: { __typename: 'Contract', bytecode: string } | null };
-export type GQLContractBalanceConnectionNodeFragment = {
- __typename: 'ContractBalanceConnection';
- edges: Array<{
- __typename: 'ContractBalanceEdge';
- cursor: string;
- node: { __typename: 'ContractBalance'; amount: string; assetId: string };
- }>;
- pageInfo: {
- __typename: 'PageInfo';
- hasNextPage: boolean;
- hasPreviousPage: boolean;
- endCursor?: string | null;
- startCursor?: string | null;
- };
-};
+export type GQLContractBalanceNodeFragment = { __typename: 'ContractBalance', amount: string, assetId: string };
+
+export type GQLContractBalanceConnectionNodeFragment = { __typename: 'ContractBalanceConnection', edges: Array<{ __typename: 'ContractBalanceEdge', cursor: string, node: { __typename: 'ContractBalance', amount: string, assetId: string } }>, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, endCursor?: string | null, startCursor?: string | null } };
export type GQLContractBalancesQueryVariables = Exact<{
after?: InputMaybe;
@@ -2667,51 +1509,17 @@ export type GQLContractBalancesQueryVariables = Exact<{
last?: InputMaybe;
}>;
-export type GQLContractBalancesQuery = {
- __typename: 'Query';
- contractBalances: {
- __typename: 'ContractBalanceConnection';
- edges: Array<{
- __typename: 'ContractBalanceEdge';
- cursor: string;
- node: { __typename: 'ContractBalance'; amount: string; assetId: string };
- }>;
- pageInfo: {
- __typename: 'PageInfo';
- hasNextPage: boolean;
- hasPreviousPage: boolean;
- endCursor?: string | null;
- startCursor?: string | null;
- };
- };
-};
+
+export type GQLContractBalancesQuery = { __typename: 'Query', contractBalances: { __typename: 'ContractBalanceConnection', edges: Array<{ __typename: 'ContractBalanceEdge', cursor: string, node: { __typename: 'ContractBalance', amount: string, assetId: string } }>, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, endCursor?: string | null, startCursor?: string | null } } };
export type GQLPredicateQueryVariables = Exact<{
address: Scalars['String']['input'];
}>;
-export type GQLPredicateQuery = {
- __typename: 'Query';
- predicate?: {
- __typename: 'PredicateItem';
- address?: string | null;
- bytecode?: string | null;
- } | null;
-};
-export type GQLRecentTransactionFragment = {
- __typename: 'Transaction';
- _id?: string | null;
- id: string;
- title: string;
- statusType?: string | null;
- time: {
- __typename: 'ParsedTime';
- fromNow?: string | null;
- rawUnix?: string | null;
- };
- gasCosts?: { __typename: 'TransactionGasCosts'; fee?: string | null } | null;
-};
+export type GQLPredicateQuery = { __typename: 'Query', predicate?: { __typename: 'PredicateItem', address?: string | null, bytecode?: string | null } | null };
+
+export type GQLRecentTransactionFragment = { __typename: 'Transaction', _id?: string | null, id: string, title: string, statusType?: string | null, time: { __typename: 'ParsedTime', fromNow?: string | null, rawUnix?: string | null }, gasCosts?: { __typename: 'TransactionGasCosts', fee?: string | null } | null };
export type GQLRecentTransactionsQueryVariables = Exact<{
after?: InputMaybe;
@@ -2720,566 +1528,22 @@ export type GQLRecentTransactionsQueryVariables = Exact<{
last?: InputMaybe;
}>;
-export type GQLRecentTransactionsQuery = {
- __typename: 'Query';
- transactions: {
- __typename: 'TransactionConnection';
- nodes: Array<{
- __typename: 'Transaction';
- _id?: string | null;
- id: string;
- title: string;
- statusType?: string | null;
- time: {
- __typename: 'ParsedTime';
- fromNow?: string | null;
- rawUnix?: string | null;
- };
- gasCosts?: {
- __typename: 'TransactionGasCosts';
- fee?: string | null;
- } | null;
- }>;
- pageInfo: {
- __typename: 'PageInfo';
- endCursor?: string | null;
- hasNextPage: boolean;
- hasPreviousPage: boolean;
- startCursor?: string | null;
- };
- };
-};
+
+export type GQLRecentTransactionsQuery = { __typename: 'Query', transactions: { __typename: 'TransactionConnection', nodes: Array<{ __typename: 'Transaction', _id?: string | null, id: string, title: string, statusType?: string | null, time: { __typename: 'ParsedTime', fromNow?: string | null, rawUnix?: string | null }, gasCosts?: { __typename: 'TransactionGasCosts', fee?: string | null } | null }>, pageInfo: { __typename: 'PageInfo', endCursor?: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | null } } };
export type GQLSearchQueryVariables = Exact<{
query: Scalars['String']['input'];
}>;
-export type GQLSearchQuery = {
- __typename: 'Query';
- search?: {
- __typename: 'SearchResult';
- account?: {
- __typename: 'SearchAccount';
- address?: string | null;
- transactions?: Array<{
- __typename: 'SearchTransaction';
- id?: string | null;
- } | null> | null;
- } | null;
- block?: {
- __typename: 'SearchBlock';
- height?: string | null;
- id?: string | null;
- } | null;
- contract?: { __typename: 'SearchContract'; id?: string | null } | null;
- transaction?: {
- __typename: 'SearchTransaction';
- id?: string | null;
- } | null;
- } | null;
-};
+
+export type GQLSearchQuery = { __typename: 'Query', search?: { __typename: 'SearchResult', account?: { __typename: 'SearchAccount', address?: string | null, transactions?: Array<{ __typename: 'SearchTransaction', id?: string | null } | null> | null } | null, block?: { __typename: 'SearchBlock', height?: string | null, id?: string | null } | null, contract?: { __typename: 'SearchContract', id?: string | null } | null, transaction?: { __typename: 'SearchTransaction', id?: string | null } | null } | null };
export type GQLTransactionDetailsQueryVariables = Exact<{
id: Scalars['TransactionId']['input'];
}>;
-export type GQLTransactionDetailsQuery = {
- __typename: 'Query';
- transaction?: {
- __typename: 'Transaction';
- id: string;
- blockHeight?: string | null;
- hasPredicate?: boolean | null;
- statusType?: string | null;
- title: string;
- maturity?: string | null;
- txPointer?: string | null;
- isScript: boolean;
- isCreate: boolean;
- isMint: boolean;
- witnesses?: Array | null;
- receiptsRoot?: string | null;
- script?: string | null;
- scriptData?: string | null;
- bytecodeWitnessIndex?: string | null;
- salt?: string | null;
- storageSlots?: Array | null;
- rawPayload: string;
- mintAmount?: string | null;
- mintAssetId?: string | null;
- inputAssetIds?: Array | null;
- inputContracts?: Array | null;
- gasCosts?: {
- __typename: 'TransactionGasCosts';
- fee?: string | null;
- gasUsed?: string | null;
- } | null;
- groupedInputs: Array<
- | {
- __typename: 'GroupedInputCoin';
- type?: GQLGroupedInputType | null;
- totalAmount?: string | null;
- owner?: string | null;
- assetId?: string | null;
- inputs?: Array<
- | { __typename: 'InputCoin'; amount: string; utxoId: string }
- | { __typename: 'InputContract' }
- | { __typename: 'InputMessage' }
- > | null;
- }
- | {
- __typename: 'GroupedInputContract';
- type?: GQLGroupedInputType | null;
- contractId?: string | null;
- }
- | {
- __typename: 'GroupedInputMessage';
- type?: GQLGroupedInputType | null;
- sender?: string | null;
- data?: string | null;
- recipient?: string | null;
- }
- >;
- groupedOutputs: Array<
- | {
- __typename: 'GroupedOutputChanged';
- type?: GQLGroupedOutputType | null;
- assetId?: string | null;
- totalAmount?: string | null;
- to?: string | null;
- outputs?: Array<
- | { __typename: 'ChangeOutput' }
- | { __typename: 'CoinOutput' }
- | { __typename: 'ContractCreated' }
- | { __typename: 'ContractOutput' }
- | { __typename: 'VariableOutput' }
- | null
- > | null;
- }
- | {
- __typename: 'GroupedOutputCoin';
- type?: GQLGroupedOutputType | null;
- assetId?: string | null;
- totalAmount?: string | null;
- to?: string | null;
- outputs?: Array<
- | { __typename: 'ChangeOutput' }
- | { __typename: 'CoinOutput' }
- | { __typename: 'ContractCreated' }
- | { __typename: 'ContractOutput' }
- | { __typename: 'VariableOutput' }
- | null
- > | null;
- }
- | {
- __typename: 'GroupedOutputContractCreated';
- type?: GQLGroupedOutputType | null;
- contractId?: string | null;
- }
- >;
- operations?: Array<{
- __typename: 'Operation';
- type?: GQLOperationType | null;
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- }> | null;
- receipts?: Array<{
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- }> | null;
- time: {
- __typename: 'ParsedTime';
- fromNow?: string | null;
- full?: string | null;
- rawUnix?: string | null;
- };
- inputContract?: { __typename: 'InputContract'; contractId: string } | null;
- outputContract?: {
- __typename: 'ContractOutput';
- inputIndex: string;
- } | null;
- status?:
- | {
- __typename: 'FailureStatus';
- time: string;
- programState?: { __typename: 'ProgramState'; data: string } | null;
- }
- | { __typename: 'SqueezedOutStatus'; reason: string }
- | { __typename: 'SubmittedStatus'; time: string }
- | {
- __typename: 'SuccessStatus';
- time: string;
- block: {
- __typename: 'Block';
- id: string;
- header: {
- __typename: 'Header';
- id: string;
- height: string;
- daHeight: string;
- applicationHash: string;
- messageReceiptCount: string;
- time: string;
- };
- };
- programState?: { __typename: 'ProgramState'; data: string } | null;
- }
- | null;
- inputs?: Array<
- | {
- __typename: 'InputCoin';
- amount: string;
- assetId: string;
- owner: string;
- predicate: string;
- predicateData: string;
- txPointer: string;
- utxoId: string;
- witnessIndex: string;
- }
- | {
- __typename: 'InputContract';
- utxoId: string;
- balanceRoot: string;
- txPointer: string;
- contractId: string;
- }
- | {
- __typename: 'InputMessage';
- sender: string;
- recipient: string;
- amount: string;
- nonce: string;
- data: string;
- predicate: string;
- predicateData: string;
- }
- > | null;
- outputs: Array<
- | {
- __typename: 'ChangeOutput';
- to: string;
- amount: string;
- assetId: string;
- }
- | {
- __typename: 'CoinOutput';
- to: string;
- amount: string;
- assetId: string;
- }
- | { __typename: 'ContractCreated'; contract: string }
- | {
- __typename: 'ContractOutput';
- inputIndex: string;
- balanceRoot: string;
- }
- | {
- __typename: 'VariableOutput';
- to: string;
- amount: string;
- assetId: string;
- }
- >;
- } | null;
-};
+
+export type GQLTransactionDetailsQuery = { __typename: 'Query', transaction?: { __typename: 'Transaction', id: string, blockHeight?: string | null, hasPredicate?: boolean | null, statusType?: string | null, title: string, maturity?: string | null, txPointer?: string | null, isScript: boolean, isCreate: boolean, isMint: boolean, witnesses?: Array | null, receiptsRoot?: string | null, script?: string | null, scriptData?: string | null, bytecodeWitnessIndex?: string | null, salt?: string | null, storageSlots?: Array | null, rawPayload: string, mintAmount?: string | null, mintAssetId?: string | null, inputAssetIds?: Array | null, inputContracts?: Array | null, gasCosts?: { __typename: 'TransactionGasCosts', fee?: string | null, gasUsed?: string | null } | null, groupedInputs: Array<{ __typename: 'GroupedInputCoin', type?: GQLGroupedInputType | null, totalAmount?: string | null, owner?: string | null, assetId?: string | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, utxoId: string } | { __typename: 'InputContract' } | { __typename: 'InputMessage' }> | null } | { __typename: 'GroupedInputContract', type?: GQLGroupedInputType | null, contractId?: string | null } | { __typename: 'GroupedInputMessage', type?: GQLGroupedInputType | null, sender?: string | null, data?: string | null, recipient?: string | null }>, groupedOutputs: Array<{ __typename: 'GroupedOutputChanged', type?: GQLGroupedOutputType | null, assetId?: string | null, totalAmount?: string | null, to?: string | null, outputs?: Array<{ __typename: 'ChangeOutput' } | { __typename: 'CoinOutput' } | { __typename: 'ContractCreated' } | { __typename: 'ContractOutput' } | { __typename: 'VariableOutput' } | null> | null } | { __typename: 'GroupedOutputCoin', type?: GQLGroupedOutputType | null, assetId?: string | null, totalAmount?: string | null, to?: string | null, outputs?: Array<{ __typename: 'ChangeOutput' } | { __typename: 'CoinOutput' } | { __typename: 'ContractCreated' } | { __typename: 'ContractOutput' } | { __typename: 'VariableOutput' } | null> | null } | { __typename: 'GroupedOutputContractCreated', type?: GQLGroupedOutputType | null, contractId?: string | null }>, operations?: Array<{ __typename: 'Operation', type?: GQLOperationType | null, receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null }> | null, receipts?: Array<{ __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null }> | null, time: { __typename: 'ParsedTime', fromNow?: string | null, full?: string | null, rawUnix?: string | null }, inputContract?: { __typename: 'InputContract', contractId: string } | null, outputContract?: { __typename: 'ContractOutput', inputIndex: string } | null, status?: { __typename: 'FailureStatus', time: string, programState?: { __typename: 'ProgramState', data: string } | null } | { __typename: 'SqueezedOutStatus', reason: string } | { __typename: 'SubmittedStatus', time: string } | { __typename: 'SuccessStatus', time: string, block: { __typename: 'Block', id: string, header: { __typename: 'Header', id: string, height: string, daHeight: string, applicationHash: string, messageReceiptCount: string, time: string } }, programState?: { __typename: 'ProgramState', data: string } | null } | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, assetId: string, owner: string, predicate: string, predicateData: string, txPointer: string, utxoId: string, witnessIndex: string } | { __typename: 'InputContract', utxoId: string, balanceRoot: string, txPointer: string, contractId: string } | { __typename: 'InputMessage', sender: string, recipient: string, amount: string, nonce: string, data: string, predicate: string, predicateData: string }> | null, outputs: Array<{ __typename: 'ChangeOutput', to: string, amount: string, assetId: string } | { __typename: 'CoinOutput', to: string, amount: string, assetId: string } | { __typename: 'ContractCreated', contract: string } | { __typename: 'ContractOutput', inputIndex: string, balanceRoot: string } | { __typename: 'VariableOutput', to: string, amount: string, assetId: string }> } | null };
export type GQLTransactionsByBlockIdQueryVariables = Exact<{
after?: InputMaybe;
@@ -3289,35 +1553,8 @@ export type GQLTransactionsByBlockIdQueryVariables = Exact<{
blockId: Scalars['String']['input'];
}>;
-export type GQLTransactionsByBlockIdQuery = {
- __typename: 'Query';
- transactionsByBlockId: {
- __typename: 'TransactionConnection';
- nodes: Array<{
- __typename: 'Transaction';
- _id?: string | null;
- id: string;
- title: string;
- statusType?: string | null;
- time: {
- __typename: 'ParsedTime';
- fromNow?: string | null;
- rawUnix?: string | null;
- };
- gasCosts?: {
- __typename: 'TransactionGasCosts';
- fee?: string | null;
- } | null;
- }>;
- pageInfo: {
- __typename: 'PageInfo';
- endCursor?: string | null;
- hasNextPage: boolean;
- hasPreviousPage: boolean;
- startCursor?: string | null;
- };
- };
-};
+
+export type GQLTransactionsByBlockIdQuery = { __typename: 'Query', transactionsByBlockId: { __typename: 'TransactionConnection', nodes: Array<{ __typename: 'Transaction', _id?: string | null, id: string, title: string, statusType?: string | null, time: { __typename: 'ParsedTime', fromNow?: string | null, rawUnix?: string | null }, gasCosts?: { __typename: 'TransactionGasCosts', fee?: string | null } | null }>, pageInfo: { __typename: 'PageInfo', endCursor?: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | null } } };
export type GQLTransactionsByOwnerQueryVariables = Exact<{
after?: InputMaybe;
@@ -3327,1180 +1564,60 @@ export type GQLTransactionsByOwnerQueryVariables = Exact<{
owner: Scalars['Address']['input'];
}>;
-export type GQLTransactionsByOwnerQuery = {
- __typename: 'Query';
- transactionsByOwner: {
- __typename: 'TransactionConnection';
- nodes: Array<{
- __typename: 'Transaction';
- _id?: string | null;
- id: string;
- title: string;
- statusType?: string | null;
- time: {
- __typename: 'ParsedTime';
- fromNow?: string | null;
- rawUnix?: string | null;
- };
- gasCosts?: {
- __typename: 'TransactionGasCosts';
- fee?: string | null;
- } | null;
- }>;
- pageInfo: {
- __typename: 'PageInfo';
- endCursor?: string | null;
- hasNextPage: boolean;
- hasPreviousPage: boolean;
- startCursor?: string | null;
- };
- };
-};
-type GQLTransactionStatus_FailureStatus_Fragment = {
- __typename: 'FailureStatus';
- time: string;
- programState?: { __typename: 'ProgramState'; data: string } | null;
-};
+export type GQLTransactionsByOwnerQuery = { __typename: 'Query', transactionsByOwner: { __typename: 'TransactionConnection', nodes: Array<{ __typename: 'Transaction', _id?: string | null, id: string, title: string, statusType?: string | null, time: { __typename: 'ParsedTime', fromNow?: string | null, rawUnix?: string | null }, gasCosts?: { __typename: 'TransactionGasCosts', fee?: string | null } | null }>, pageInfo: { __typename: 'PageInfo', endCursor?: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | null } } };
-type GQLTransactionStatus_SqueezedOutStatus_Fragment = {
- __typename: 'SqueezedOutStatus';
- reason: string;
-};
+type GQLTransactionStatus_FailureStatus_Fragment = { __typename: 'FailureStatus', time: string, programState?: { __typename: 'ProgramState', data: string } | null };
-type GQLTransactionStatus_SubmittedStatus_Fragment = {
- __typename: 'SubmittedStatus';
- time: string;
-};
+type GQLTransactionStatus_SqueezedOutStatus_Fragment = { __typename: 'SqueezedOutStatus', reason: string };
-type GQLTransactionStatus_SuccessStatus_Fragment = {
- __typename: 'SuccessStatus';
- time: string;
- block: {
- __typename: 'Block';
- id: string;
- header: {
- __typename: 'Header';
- id: string;
- height: string;
- daHeight: string;
- applicationHash: string;
- messageReceiptCount: string;
- time: string;
- };
- };
- programState?: { __typename: 'ProgramState'; data: string } | null;
-};
+type GQLTransactionStatus_SubmittedStatus_Fragment = { __typename: 'SubmittedStatus', time: string };
-export type GQLTransactionStatusFragment =
- | GQLTransactionStatus_FailureStatus_Fragment
- | GQLTransactionStatus_SqueezedOutStatus_Fragment
- | GQLTransactionStatus_SubmittedStatus_Fragment
- | GQLTransactionStatus_SuccessStatus_Fragment;
+type GQLTransactionStatus_SuccessStatus_Fragment = { __typename: 'SuccessStatus', time: string, block: { __typename: 'Block', id: string, header: { __typename: 'Header', id: string, height: string, daHeight: string, applicationHash: string, messageReceiptCount: string, time: string } }, programState?: { __typename: 'ProgramState', data: string } | null };
-type GQLTransactionInput_InputCoin_Fragment = {
- __typename: 'InputCoin';
- amount: string;
- assetId: string;
- owner: string;
- predicate: string;
- predicateData: string;
- txPointer: string;
- utxoId: string;
- witnessIndex: string;
-};
+export type GQLTransactionStatusFragment = GQLTransactionStatus_FailureStatus_Fragment | GQLTransactionStatus_SqueezedOutStatus_Fragment | GQLTransactionStatus_SubmittedStatus_Fragment | GQLTransactionStatus_SuccessStatus_Fragment;
-type GQLTransactionInput_InputContract_Fragment = {
- __typename: 'InputContract';
- utxoId: string;
- balanceRoot: string;
- txPointer: string;
- contractId: string;
-};
+type GQLTransactionInput_InputCoin_Fragment = { __typename: 'InputCoin', amount: string, assetId: string, owner: string, predicate: string, predicateData: string, txPointer: string, utxoId: string, witnessIndex: string };
-type GQLTransactionInput_InputMessage_Fragment = {
- __typename: 'InputMessage';
- sender: string;
- recipient: string;
- amount: string;
- nonce: string;
- data: string;
- predicate: string;
- predicateData: string;
-};
+type GQLTransactionInput_InputContract_Fragment = { __typename: 'InputContract', utxoId: string, balanceRoot: string, txPointer: string, contractId: string };
-export type GQLTransactionInputFragment =
- | GQLTransactionInput_InputCoin_Fragment
- | GQLTransactionInput_InputContract_Fragment
- | GQLTransactionInput_InputMessage_Fragment;
+type GQLTransactionInput_InputMessage_Fragment = { __typename: 'InputMessage', sender: string, recipient: string, amount: string, nonce: string, data: string, predicate: string, predicateData: string };
-type GQLTransactionOutput_ChangeOutput_Fragment = {
- __typename: 'ChangeOutput';
- to: string;
- amount: string;
- assetId: string;
-};
+export type GQLTransactionInputFragment = GQLTransactionInput_InputCoin_Fragment | GQLTransactionInput_InputContract_Fragment | GQLTransactionInput_InputMessage_Fragment;
-type GQLTransactionOutput_CoinOutput_Fragment = {
- __typename: 'CoinOutput';
- to: string;
- amount: string;
- assetId: string;
-};
+type GQLTransactionOutput_ChangeOutput_Fragment = { __typename: 'ChangeOutput', to: string, amount: string, assetId: string };
-type GQLTransactionOutput_ContractCreated_Fragment = {
- __typename: 'ContractCreated';
- contract: string;
-};
+type GQLTransactionOutput_CoinOutput_Fragment = { __typename: 'CoinOutput', to: string, amount: string, assetId: string };
-type GQLTransactionOutput_ContractOutput_Fragment = {
- __typename: 'ContractOutput';
- inputIndex: string;
- balanceRoot: string;
-};
+type GQLTransactionOutput_ContractCreated_Fragment = { __typename: 'ContractCreated', contract: string };
-type GQLTransactionOutput_VariableOutput_Fragment = {
- __typename: 'VariableOutput';
- to: string;
- amount: string;
- assetId: string;
-};
+type GQLTransactionOutput_ContractOutput_Fragment = { __typename: 'ContractOutput', inputIndex: string, balanceRoot: string };
-export type GQLTransactionOutputFragment =
- | GQLTransactionOutput_ChangeOutput_Fragment
- | GQLTransactionOutput_CoinOutput_Fragment
- | GQLTransactionOutput_ContractCreated_Fragment
- | GQLTransactionOutput_ContractOutput_Fragment
- | GQLTransactionOutput_VariableOutput_Fragment;
+type GQLTransactionOutput_VariableOutput_Fragment = { __typename: 'VariableOutput', to: string, amount: string, assetId: string };
-export type GQLTransactionReceiptFragment = {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
-};
+export type GQLTransactionOutputFragment = GQLTransactionOutput_ChangeOutput_Fragment | GQLTransactionOutput_CoinOutput_Fragment | GQLTransactionOutput_ContractCreated_Fragment | GQLTransactionOutput_ContractOutput_Fragment | GQLTransactionOutput_VariableOutput_Fragment;
-export type GQLInnerReceiptItemFragment = {
- __typename: 'OperationReceipt';
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
-};
-
-export type GQLOperationReceiptItemFragment = {
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
-};
-
-export type GQLOperationItemFragment = {
- __typename: 'Operation';
- type?: GQLOperationType | null;
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
-};
-
-export type GQLTxDetailsGroupedInputCoinFragment = {
- __typename: 'GroupedInputCoin';
- type?: GQLGroupedInputType | null;
- totalAmount?: string | null;
- owner?: string | null;
- assetId?: string | null;
- inputs?: Array<
- | { __typename: 'InputCoin'; amount: string; utxoId: string }
- | { __typename: 'InputContract' }
- | { __typename: 'InputMessage' }
- > | null;
-};
-
-export type GQLTxDetailsGroupedInputMessageFragment = {
- __typename: 'GroupedInputMessage';
- type?: GQLGroupedInputType | null;
- sender?: string | null;
- data?: string | null;
- recipient?: string | null;
-};
+export type GQLTransactionReceiptFragment = { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null };
-export type GQLTxDetailsGroupedInputContractFragment = {
- __typename: 'GroupedInputContract';
- type?: GQLGroupedInputType | null;
- contractId?: string | null;
-};
+export type GQLInnerReceiptItemFragment = { __typename: 'OperationReceipt', item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null };
-export type GQLTxDetailsGroupedOutputCoinFragment = {
- __typename: 'GroupedOutputCoin';
- type?: GQLGroupedOutputType | null;
- assetId?: string | null;
- totalAmount?: string | null;
- to?: string | null;
- outputs?: Array<
- | { __typename: 'ChangeOutput' }
- | { __typename: 'CoinOutput' }
- | { __typename: 'ContractCreated' }
- | { __typename: 'ContractOutput' }
- | { __typename: 'VariableOutput' }
- | null
- > | null;
-};
-
-export type GQLTxDetailsGroupedOutputChangedFragment = {
- __typename: 'GroupedOutputChanged';
- type?: GQLGroupedOutputType | null;
- assetId?: string | null;
- totalAmount?: string | null;
- to?: string | null;
- outputs?: Array<
- | { __typename: 'ChangeOutput' }
- | { __typename: 'CoinOutput' }
- | { __typename: 'ContractCreated' }
- | { __typename: 'ContractOutput' }
- | { __typename: 'VariableOutput' }
- | null
- > | null;
-};
-
-export type GQLTxDetailsGroupedOutputContractCreatedFragment = {
- __typename: 'GroupedOutputContractCreated';
- type?: GQLGroupedOutputType | null;
- contractId?: string | null;
-};
+export type GQLOperationReceiptItemFragment = { __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null };
-export type GQLTransactionItemFragment = {
- __typename: 'Transaction';
- id: string;
- blockHeight?: string | null;
- hasPredicate?: boolean | null;
- statusType?: string | null;
- title: string;
- maturity?: string | null;
- txPointer?: string | null;
- isScript: boolean;
- isCreate: boolean;
- isMint: boolean;
- witnesses?: Array | null;
- receiptsRoot?: string | null;
- script?: string | null;
- scriptData?: string | null;
- bytecodeWitnessIndex?: string | null;
- salt?: string | null;
- storageSlots?: Array | null;
- rawPayload: string;
- mintAmount?: string | null;
- mintAssetId?: string | null;
- inputAssetIds?: Array | null;
- inputContracts?: Array | null;
- gasCosts?: {
- __typename: 'TransactionGasCosts';
- fee?: string | null;
- gasUsed?: string | null;
- } | null;
- groupedInputs: Array<
- | {
- __typename: 'GroupedInputCoin';
- type?: GQLGroupedInputType | null;
- totalAmount?: string | null;
- owner?: string | null;
- assetId?: string | null;
- inputs?: Array<
- | { __typename: 'InputCoin'; amount: string; utxoId: string }
- | { __typename: 'InputContract' }
- | { __typename: 'InputMessage' }
- > | null;
- }
- | {
- __typename: 'GroupedInputContract';
- type?: GQLGroupedInputType | null;
- contractId?: string | null;
- }
- | {
- __typename: 'GroupedInputMessage';
- type?: GQLGroupedInputType | null;
- sender?: string | null;
- data?: string | null;
- recipient?: string | null;
- }
- >;
- groupedOutputs: Array<
- | {
- __typename: 'GroupedOutputChanged';
- type?: GQLGroupedOutputType | null;
- assetId?: string | null;
- totalAmount?: string | null;
- to?: string | null;
- outputs?: Array<
- | { __typename: 'ChangeOutput' }
- | { __typename: 'CoinOutput' }
- | { __typename: 'ContractCreated' }
- | { __typename: 'ContractOutput' }
- | { __typename: 'VariableOutput' }
- | null
- > | null;
- }
- | {
- __typename: 'GroupedOutputCoin';
- type?: GQLGroupedOutputType | null;
- assetId?: string | null;
- totalAmount?: string | null;
- to?: string | null;
- outputs?: Array<
- | { __typename: 'ChangeOutput' }
- | { __typename: 'CoinOutput' }
- | { __typename: 'ContractCreated' }
- | { __typename: 'ContractOutput' }
- | { __typename: 'VariableOutput' }
- | null
- > | null;
- }
- | {
- __typename: 'GroupedOutputContractCreated';
- type?: GQLGroupedOutputType | null;
- contractId?: string | null;
- }
- >;
- operations?: Array<{
- __typename: 'Operation';
- type?: GQLOperationType | null;
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- receipts?: Array<{
- __typename: 'OperationReceipt';
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- item?: {
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- } | null;
- }> | null;
- }> | null;
- receipts?: Array<{
- __typename: 'Receipt';
- id?: string | null;
- to?: string | null;
- pc?: string | null;
- is?: string | null;
- toAddress?: string | null;
- amount?: string | null;
- assetId?: string | null;
- gas?: string | null;
- param1?: string | null;
- param2?: string | null;
- val?: string | null;
- ptr?: string | null;
- digest?: string | null;
- reason?: string | null;
- ra?: string | null;
- rb?: string | null;
- rc?: string | null;
- rd?: string | null;
- len?: string | null;
- receiptType: GQLReceiptType;
- result?: string | null;
- gasUsed?: string | null;
- data?: string | null;
- sender?: string | null;
- recipient?: string | null;
- nonce?: string | null;
- contractId?: string | null;
- subId?: string | null;
- }> | null;
- time: {
- __typename: 'ParsedTime';
- fromNow?: string | null;
- full?: string | null;
- rawUnix?: string | null;
- };
- inputContract?: { __typename: 'InputContract'; contractId: string } | null;
- outputContract?: { __typename: 'ContractOutput'; inputIndex: string } | null;
- status?:
- | {
- __typename: 'FailureStatus';
- time: string;
- programState?: { __typename: 'ProgramState'; data: string } | null;
- }
- | { __typename: 'SqueezedOutStatus'; reason: string }
- | { __typename: 'SubmittedStatus'; time: string }
- | {
- __typename: 'SuccessStatus';
- time: string;
- block: {
- __typename: 'Block';
- id: string;
- header: {
- __typename: 'Header';
- id: string;
- height: string;
- daHeight: string;
- applicationHash: string;
- messageReceiptCount: string;
- time: string;
- };
- };
- programState?: { __typename: 'ProgramState'; data: string } | null;
- }
- | null;
- inputs?: Array<
- | {
- __typename: 'InputCoin';
- amount: string;
- assetId: string;
- owner: string;
- predicate: string;
- predicateData: string;
- txPointer: string;
- utxoId: string;
- witnessIndex: string;
- }
- | {
- __typename: 'InputContract';
- utxoId: string;
- balanceRoot: string;
- txPointer: string;
- contractId: string;
- }
- | {
- __typename: 'InputMessage';
- sender: string;
- recipient: string;
- amount: string;
- nonce: string;
- data: string;
- predicate: string;
- predicateData: string;
- }
- > | null;
- outputs: Array<
- | {
- __typename: 'ChangeOutput';
- to: string;
- amount: string;
- assetId: string;
- }
- | { __typename: 'CoinOutput'; to: string; amount: string; assetId: string }
- | { __typename: 'ContractCreated'; contract: string }
- | { __typename: 'ContractOutput'; inputIndex: string; balanceRoot: string }
- | {
- __typename: 'VariableOutput';
- to: string;
- amount: string;
- assetId: string;
- }
- >;
-};
+export type GQLOperationItemFragment = { __typename: 'Operation', type?: GQLOperationType | null, receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null };
+
+export type GQLTxDetailsGroupedInputCoinFragment = { __typename: 'GroupedInputCoin', type?: GQLGroupedInputType | null, totalAmount?: string | null, owner?: string | null, assetId?: string | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, utxoId: string } | { __typename: 'InputContract' } | { __typename: 'InputMessage' }> | null };
+
+export type GQLTxDetailsGroupedInputMessageFragment = { __typename: 'GroupedInputMessage', type?: GQLGroupedInputType | null, sender?: string | null, data?: string | null, recipient?: string | null };
+
+export type GQLTxDetailsGroupedInputContractFragment = { __typename: 'GroupedInputContract', type?: GQLGroupedInputType | null, contractId?: string | null };
+
+export type GQLTxDetailsGroupedOutputCoinFragment = { __typename: 'GroupedOutputCoin', type?: GQLGroupedOutputType | null, assetId?: string | null, totalAmount?: string | null, to?: string | null, outputs?: Array<{ __typename: 'ChangeOutput' } | { __typename: 'CoinOutput' } | { __typename: 'ContractCreated' } | { __typename: 'ContractOutput' } | { __typename: 'VariableOutput' } | null> | null };
+
+export type GQLTxDetailsGroupedOutputChangedFragment = { __typename: 'GroupedOutputChanged', type?: GQLGroupedOutputType | null, assetId?: string | null, totalAmount?: string | null, to?: string | null, outputs?: Array<{ __typename: 'ChangeOutput' } | { __typename: 'CoinOutput' } | { __typename: 'ContractCreated' } | { __typename: 'ContractOutput' } | { __typename: 'VariableOutput' } | null> | null };
+
+export type GQLTxDetailsGroupedOutputContractCreatedFragment = { __typename: 'GroupedOutputContractCreated', type?: GQLGroupedOutputType | null, contractId?: string | null };
+
+export type GQLTransactionItemFragment = { __typename: 'Transaction', id: string, blockHeight?: string | null, hasPredicate?: boolean | null, statusType?: string | null, title: string, maturity?: string | null, txPointer?: string | null, isScript: boolean, isCreate: boolean, isMint: boolean, witnesses?: Array | null, receiptsRoot?: string | null, script?: string | null, scriptData?: string | null, bytecodeWitnessIndex?: string | null, salt?: string | null, storageSlots?: Array | null, rawPayload: string, mintAmount?: string | null, mintAssetId?: string | null, inputAssetIds?: Array | null, inputContracts?: Array | null, gasCosts?: { __typename: 'TransactionGasCosts', fee?: string | null, gasUsed?: string | null } | null, groupedInputs: Array<{ __typename: 'GroupedInputCoin', type?: GQLGroupedInputType | null, totalAmount?: string | null, owner?: string | null, assetId?: string | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, utxoId: string } | { __typename: 'InputContract' } | { __typename: 'InputMessage' }> | null } | { __typename: 'GroupedInputContract', type?: GQLGroupedInputType | null, contractId?: string | null } | { __typename: 'GroupedInputMessage', type?: GQLGroupedInputType | null, sender?: string | null, data?: string | null, recipient?: string | null }>, groupedOutputs: Array<{ __typename: 'GroupedOutputChanged', type?: GQLGroupedOutputType | null, assetId?: string | null, totalAmount?: string | null, to?: string | null, outputs?: Array<{ __typename: 'ChangeOutput' } | { __typename: 'CoinOutput' } | { __typename: 'ContractCreated' } | { __typename: 'ContractOutput' } | { __typename: 'VariableOutput' } | null> | null } | { __typename: 'GroupedOutputCoin', type?: GQLGroupedOutputType | null, assetId?: string | null, totalAmount?: string | null, to?: string | null, outputs?: Array<{ __typename: 'ChangeOutput' } | { __typename: 'CoinOutput' } | { __typename: 'ContractCreated' } | { __typename: 'ContractOutput' } | { __typename: 'VariableOutput' } | null> | null } | { __typename: 'GroupedOutputContractCreated', type?: GQLGroupedOutputType | null, contractId?: string | null }>, operations?: Array<{ __typename: 'Operation', type?: GQLOperationType | null, receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', receipts?: Array<{ __typename: 'OperationReceipt', item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null, item?: { __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null } | null }> | null }> | null, receipts?: Array<{ __typename: 'Receipt', id?: string | null, to?: string | null, pc?: string | null, is?: string | null, toAddress?: string | null, amount?: string | null, assetId?: string | null, gas?: string | null, param1?: string | null, param2?: string | null, val?: string | null, ptr?: string | null, digest?: string | null, reason?: string | null, ra?: string | null, rb?: string | null, rc?: string | null, rd?: string | null, len?: string | null, receiptType: GQLReceiptType, result?: string | null, gasUsed?: string | null, data?: string | null, sender?: string | null, recipient?: string | null, nonce?: string | null, contractId?: string | null, subId?: string | null }> | null, time: { __typename: 'ParsedTime', fromNow?: string | null, full?: string | null, rawUnix?: string | null }, inputContract?: { __typename: 'InputContract', contractId: string } | null, outputContract?: { __typename: 'ContractOutput', inputIndex: string } | null, status?: { __typename: 'FailureStatus', time: string, programState?: { __typename: 'ProgramState', data: string } | null } | { __typename: 'SqueezedOutStatus', reason: string } | { __typename: 'SubmittedStatus', time: string } | { __typename: 'SuccessStatus', time: string, block: { __typename: 'Block', id: string, header: { __typename: 'Header', id: string, height: string, daHeight: string, applicationHash: string, messageReceiptCount: string, time: string } }, programState?: { __typename: 'ProgramState', data: string } | null } | null, inputs?: Array<{ __typename: 'InputCoin', amount: string, assetId: string, owner: string, predicate: string, predicateData: string, txPointer: string, utxoId: string, witnessIndex: string } | { __typename: 'InputContract', utxoId: string, balanceRoot: string, txPointer: string, contractId: string } | { __typename: 'InputMessage', sender: string, recipient: string, amount: string, nonce: string, data: string, predicate: string, predicateData: string }> | null, outputs: Array<{ __typename: 'ChangeOutput', to: string, amount: string, assetId: string } | { __typename: 'CoinOutput', to: string, amount: string, assetId: string } | { __typename: 'ContractCreated', contract: string } | { __typename: 'ContractOutput', inputIndex: string, balanceRoot: string } | { __typename: 'VariableOutput', to: string, amount: string, assetId: string }> };
export const BalanceItemFragmentDoc = gql`
fragment BalanceItem on Balance {
@@ -6361,19 +3478,10 @@ export const TransactionsByOwnerDocument = gql`
}
${RecentTransactionFragmentDoc}`;
-export type SdkFunctionWrapper = (
- action: (requestHeaders?: Record) => Promise,
- operationName: string,
- operationType?: string,
- variables?: any,
-) => Promise;
-
-const defaultWrapper: SdkFunctionWrapper = (
- action,
- _operationName,
- _operationType,
- _variables,
-) => action();
+export type SdkFunctionWrapper = (action: (requestHeaders?:Record) => Promise, operationName: string, operationType?: string, variables?: any) => Promise;
+
+
+const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType, _variables) => action();
const BalancesDocumentString = print(BalancesDocument);
const BlockDocumentString = print(BlockDocument);
const BlocksDocumentString = print(BlocksDocument);
@@ -6385,296 +3493,49 @@ const PredicateDocumentString = print(PredicateDocument);
const RecentTransactionsDocumentString = print(RecentTransactionsDocument);
const SearchDocumentString = print(SearchDocument);
const TransactionDetailsDocumentString = print(TransactionDetailsDocument);
-const TransactionsByBlockIdDocumentString = print(
- TransactionsByBlockIdDocument,
-);
+const TransactionsByBlockIdDocumentString = print(TransactionsByBlockIdDocument);
const TransactionsByOwnerDocumentString = print(TransactionsByOwnerDocument);
-export function getSdk(
- client: GraphQLClient,
- withWrapper: SdkFunctionWrapper = defaultWrapper,
-) {
+export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {
return {
- balances(
- variables: GQLBalancesQueryVariables,
- requestHeaders?: GraphQLClientRequestHeaders,
- ): Promise<{
- data: GQLBalancesQuery;
- errors?: GraphQLError[];
- extensions?: any;
- headers: Headers;
- status: number;
- }> {
- return withWrapper(
- (wrappedRequestHeaders) =>
- client.rawRequest(
- BalancesDocumentString,
- variables,
- { ...requestHeaders, ...wrappedRequestHeaders },
- ),
- 'balances',
- 'query',
- variables,
- );
- },
- block(
- variables?: GQLBlockQueryVariables,
- requestHeaders?: GraphQLClientRequestHeaders,
- ): Promise<{
- data: GQLBlockQuery;
- errors?: GraphQLError[];
- extensions?: any;
- headers: Headers;
- status: number;
- }> {
- return withWrapper(
- (wrappedRequestHeaders) =>
- client.rawRequest(BlockDocumentString, variables, {
- ...requestHeaders,
- ...wrappedRequestHeaders,
- }),
- 'block',
- 'query',
- variables,
- );
+ balances(variables: GQLBalancesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLBalancesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(BalancesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'balances', 'query', variables);
},
- blocks(
- variables?: GQLBlocksQueryVariables,
- requestHeaders?: GraphQLClientRequestHeaders,
- ): Promise<{
- data: GQLBlocksQuery;
- errors?: GraphQLError[];
- extensions?: any;
- headers: Headers;
- status: number;
- }> {
- return withWrapper(
- (wrappedRequestHeaders) =>
- client.rawRequest(BlocksDocumentString, variables, {
- ...requestHeaders,
- ...wrappedRequestHeaders,
- }),
- 'blocks',
- 'query',
- variables,
- );
+ block(variables?: GQLBlockQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLBlockQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(BlockDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'block', 'query', variables);
},
- chain(
- variables?: GQLChainQueryVariables,
- requestHeaders?: GraphQLClientRequestHeaders,
- ): Promise<{
- data: GQLChainQuery;
- errors?: GraphQLError[];
- extensions?: any;
- headers: Headers;
- status: number;
- }> {
- return withWrapper(
- (wrappedRequestHeaders) =>
- client.rawRequest(ChainDocumentString, variables, {
- ...requestHeaders,
- ...wrappedRequestHeaders,
- }),
- 'chain',
- 'query',
- variables,
- );
+ blocks(variables?: GQLBlocksQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLBlocksQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(BlocksDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'blocks', 'query', variables);
},
- coins(
- variables: GQLCoinsQueryVariables,
- requestHeaders?: GraphQLClientRequestHeaders,
- ): Promise<{
- data: GQLCoinsQuery;
- errors?: GraphQLError[];
- extensions?: any;
- headers: Headers;
- status: number;
- }> {
- return withWrapper(
- (wrappedRequestHeaders) =>
- client.rawRequest(CoinsDocumentString, variables, {
- ...requestHeaders,
- ...wrappedRequestHeaders,
- }),
- 'coins',
- 'query',
- variables,
- );
+ chain(variables?: GQLChainQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLChainQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(ChainDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'chain', 'query', variables);
},
- contract(
- variables: GQLContractQueryVariables,
- requestHeaders?: GraphQLClientRequestHeaders,
- ): Promise<{
- data: GQLContractQuery;
- errors?: GraphQLError[];
- extensions?: any;
- headers: Headers;
- status: number;
- }> {
- return withWrapper(
- (wrappedRequestHeaders) =>
- client.rawRequest(
- ContractDocumentString,
- variables,
- { ...requestHeaders, ...wrappedRequestHeaders },
- ),
- 'contract',
- 'query',
- variables,
- );
+ coins(variables: GQLCoinsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLCoinsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(CoinsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'coins', 'query', variables);
},
- contractBalances(
- variables: GQLContractBalancesQueryVariables,
- requestHeaders?: GraphQLClientRequestHeaders,
- ): Promise<{
- data: GQLContractBalancesQuery;
- errors?: GraphQLError[];
- extensions?: any;
- headers: Headers;
- status: number;
- }> {
- return withWrapper(
- (wrappedRequestHeaders) =>
- client.rawRequest(
- ContractBalancesDocumentString,
- variables,
- { ...requestHeaders, ...wrappedRequestHeaders },
- ),
- 'contractBalances',
- 'query',
- variables,
- );
+ contract(variables: GQLContractQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLContractQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(ContractDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'contract', 'query', variables);
},
- predicate(
- variables: GQLPredicateQueryVariables,
- requestHeaders?: GraphQLClientRequestHeaders,
- ): Promise<{
- data: GQLPredicateQuery;
- errors?: GraphQLError[];
- extensions?: any;
- headers: Headers;
- status: number;
- }> {
- return withWrapper(
- (wrappedRequestHeaders) =>
- client.rawRequest(
- PredicateDocumentString,
- variables,
- { ...requestHeaders, ...wrappedRequestHeaders },
- ),
- 'predicate',
- 'query',
- variables,
- );
+ contractBalances(variables: GQLContractBalancesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLContractBalancesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(ContractBalancesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'contractBalances', 'query', variables);
},
- recentTransactions(
- variables?: GQLRecentTransactionsQueryVariables,
- requestHeaders?: GraphQLClientRequestHeaders,
- ): Promise<{
- data: GQLRecentTransactionsQuery;
- errors?: GraphQLError[];
- extensions?: any;
- headers: Headers;
- status: number;
- }> {
- return withWrapper(
- (wrappedRequestHeaders) =>
- client.rawRequest(
- RecentTransactionsDocumentString,
- variables,
- { ...requestHeaders, ...wrappedRequestHeaders },
- ),
- 'recentTransactions',
- 'query',
- variables,
- );
+ predicate(variables: GQLPredicateQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLPredicateQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(PredicateDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'predicate', 'query', variables);
},
- search(
- variables: GQLSearchQueryVariables,
- requestHeaders?: GraphQLClientRequestHeaders,
- ): Promise<{
- data: GQLSearchQuery;
- errors?: GraphQLError[];
- extensions?: any;
- headers: Headers;
- status: number;
- }> {
- return withWrapper(
- (wrappedRequestHeaders) =>
- client.rawRequest(SearchDocumentString, variables, {
- ...requestHeaders,
- ...wrappedRequestHeaders,
- }),
- 'search',
- 'query',
- variables,
- );
+ recentTransactions(variables?: GQLRecentTransactionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLRecentTransactionsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(RecentTransactionsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'recentTransactions', 'query', variables);
},
- transactionDetails(
- variables: GQLTransactionDetailsQueryVariables,
- requestHeaders?: GraphQLClientRequestHeaders,
- ): Promise<{
- data: GQLTransactionDetailsQuery;
- errors?: GraphQLError[];
- extensions?: any;
- headers: Headers;
- status: number;
- }> {
- return withWrapper(
- (wrappedRequestHeaders) =>
- client.rawRequest(
- TransactionDetailsDocumentString,
- variables,
- { ...requestHeaders, ...wrappedRequestHeaders },
- ),
- 'transactionDetails',
- 'query',
- variables,
- );
+ search(variables: GQLSearchQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLSearchQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(SearchDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'search', 'query', variables);
},
- transactionsByBlockId(
- variables: GQLTransactionsByBlockIdQueryVariables,
- requestHeaders?: GraphQLClientRequestHeaders,
- ): Promise<{
- data: GQLTransactionsByBlockIdQuery;
- errors?: GraphQLError[];
- extensions?: any;
- headers: Headers;
- status: number;
- }> {
- return withWrapper(
- (wrappedRequestHeaders) =>
- client.rawRequest(
- TransactionsByBlockIdDocumentString,
- variables,
- { ...requestHeaders, ...wrappedRequestHeaders },
- ),
- 'transactionsByBlockId',
- 'query',
- variables,
- );
+ transactionDetails(variables: GQLTransactionDetailsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLTransactionDetailsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(TransactionDetailsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'transactionDetails', 'query', variables);
},
- transactionsByOwner(
- variables: GQLTransactionsByOwnerQueryVariables,
- requestHeaders?: GraphQLClientRequestHeaders,
- ): Promise<{
- data: GQLTransactionsByOwnerQuery;
- errors?: GraphQLError[];
- extensions?: any;
- headers: Headers;
- status: number;
- }> {
- return withWrapper(
- (wrappedRequestHeaders) =>
- client.rawRequest(
- TransactionsByOwnerDocumentString,
- variables,
- { ...requestHeaders, ...wrappedRequestHeaders },
- ),
- 'transactionsByOwner',
- 'query',
- variables,
- );
+ transactionsByBlockId(variables: GQLTransactionsByBlockIdQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLTransactionsByBlockIdQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(TransactionsByBlockIdDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'transactionsByBlockId', 'query', variables);
},
+ transactionsByOwner(variables: GQLTransactionsByOwnerQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GQLTransactionsByOwnerQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(TransactionsByOwnerDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'transactionsByOwner', 'query', variables);
+ }
};
}
-export type Sdk = ReturnType;
+export type Sdk = ReturnType;
\ No newline at end of file
diff --git a/packages/graphql/src/graphql/schemas/explorer.graphql b/packages/graphql/src/graphql/schemas/explorer.graphql
index b721e5a02..9f1d4bc44 100644
--- a/packages/graphql/src/graphql/schemas/explorer.graphql
+++ b/packages/graphql/src/graphql/schemas/explorer.graphql
@@ -114,6 +114,7 @@ enum OperationType {
FROM_CONTRACT
FROM_ACCOUNT
FINAL_RESULT
+ ROOTLESS
}
type OperationReceipt {
diff --git a/packages/ui/src/components/Address/Address.tsx b/packages/ui/src/components/Address/Address.tsx
index a62729119..439f6d7e0 100644
--- a/packages/ui/src/components/Address/Address.tsx
+++ b/packages/ui/src/components/Address/Address.tsx
@@ -39,7 +39,7 @@ const AddressSpan = ({
short: string;
className?: string;
}) => {
- const baseClass = cx(['text-[1em]', className]);
+ const baseClass = cx(['text-sm', className]);
return (
<>
{full && (
@@ -96,7 +96,7 @@ export const Address = createComponent({
{linkProps ? (
{
e.stopPropagation();
}}
@@ -128,7 +128,7 @@ export const Address = createComponent({
const styles = tv({
slots: {
root: 'flex gap-1 text-sm font-mono',
- prefix: 'mr-px text-[1em] text-secondary',
- address: 'text-[1em] text-muted mt-px gap-3',
+ prefix: 'mr-px text-sm text-secondary',
+ address: 'text-sm text-muted mt-px gap-3',
},
});