diff --git a/packages/ui/src/components/DeepTxAlert.tsx b/packages/ui/src/components/DeepTxAlert.tsx index 6282d32d..0668a222 100644 --- a/packages/ui/src/components/DeepTxAlert.tsx +++ b/packages/ui/src/components/DeepTxAlert.tsx @@ -1,297 +1,297 @@ -import { Alert, Grid2 as Grid } from '@mui/material' -import { styled } from '@mui/material/styles' -import { useCallback, useEffect, useMemo, useState } from 'react' -import { useMultisigsByMultisigOrPureSignatoriesQuery } from '../../types-and-hooks' -import { MultisigAggregated, useMultiProxy } from '../contexts/MultiProxyContext' -import { useAccountId } from '../hooks/useAccountId' -import { CallDataInfoFromChain, usePendingTx } from '../hooks/usePendingTx' -import { getIntersection } from '../utils/arrayUtils' -import { useModals } from '../contexts/ModalsContext' -import { Button } from './library' -import { useAccounts } from '../contexts/AccountsContext' -import AccountDisplay from './AccountDisplay/AccountDisplay' - -export interface ParentMultisigInfo { - parentSignatoryAddress: string - parentMultisigAddress: string - involvedMultisigProxyAddress?: string - involvedMultisigAddress: string - isSignatoryProxy: boolean - threshold: number - signatories: string[] -} - -interface Props { - pendingTxCallData: string[] -} - -export const DeepTxAlert = ({ pendingTxCallData }: Props) => { - const { selectedMultiProxy, selectedIsWatched } = useMultiProxy() - const { onOpenDeepTxModal } = useModals() - const { ownAddressList } = useAccounts() - const proxyAndMultisigsIds = useMemo( - () => - [ - selectedMultiProxy?.proxy || '', - ...(selectedMultiProxy?.multisigs.map(({ address }) => address) || []) - ].filter((a) => !!a), - [selectedMultiProxy] - ) - const idsToQuery = useAccountId(proxyAndMultisigsIds) - const { data } = useMultisigsByMultisigOrPureSignatoriesQuery({ - accountIds: idsToQuery - }) - const [parentMultisigs, setParenMultisigs] = useState>({}) - const parentMultisigAddresses = useMemo(() => Object.keys(parentMultisigs), [parentMultisigs]) - - useEffect(() => { - if (!data || data?.accountMultisigs.length === 0) { - setParenMultisigs({}) - return - } - - // the data is the list of multisig with our current - // multisig/pure being a signatory - if (data && data.accountMultisigs.length > 0) { - // Create a map with the parent multisig - // that is involved in a Tx with the current pure/multisig as signatory - const parentInfoMap = data.accountMultisigs.reduce( - (acc: Record, currParentMultisig) => { - const parentMultisigSignatories = currParentMultisig.multisig.signatories.map( - ({ signatory }) => signatory.address - ) - - let signatoryOfParent = { address: '', isSignatoryProxy: false } - let relevantMultisigAddress = '' - - // See if the parent signatories is one of our pure or our current multisig - if ( - selectedMultiProxy?.proxy && - parentMultisigSignatories.includes(selectedMultiProxy?.proxy) - ) { - signatoryOfParent = { address: selectedMultiProxy?.proxy, isSignatoryProxy: true } - } else { - // it must be one of our multisig then - const relevantMultisig = getIntersection( - selectedMultiProxy?.multisigs.map(({ address }) => address), - parentMultisigSignatories - ) - - if (!relevantMultisig.length) { - console.error( - 'Unexpected error: No multisig or proxy found as signatory', - data, - selectedMultiProxy - ) - } - - relevantMultisigAddress = relevantMultisig[0] - - signatoryOfParent = { - // here, we may have several of our current multisigs - // being a signatory of the parent. We go for the first - address: relevantMultisig[0], - isSignatoryProxy: false - } - } - - return { - ...acc, - [currParentMultisig.multisig.address]: { - parentSignatoryAddress: signatoryOfParent.address, - involvedMultisigAddress: relevantMultisigAddress, - involvedMultisigProxyAddress: selectedMultiProxy?.proxy, - isSignatoryProxy: signatoryOfParent.isSignatoryProxy, - threshold: currParentMultisig.multisig.threshold || 0, - signatories: currParentMultisig.multisig.signatories.map( - ({ signatory }) => signatory.address - ) - } as ParentMultisigInfo - } - }, - {} as Record - ) - setParenMultisigs(parentInfoMap) - } - }, [data, selectedMultiProxy]) - - const onClickCreate = useCallback( - (aggregatedData: CallDataInfoFromChain) => { - if (!aggregatedData) return - - let possibleSigners: string[] = [] - let currentMultisigInvolved: MultisigAggregated | undefined - - // if the signatory is the pure we select - // the first multisig as the possible signatory - if (parentMultisigs[aggregatedData.from].isSignatoryProxy) { - currentMultisigInvolved = selectedMultiProxy?.multisigs[0] - possibleSigners = getIntersection(ownAddressList, currentMultisigInvolved?.signatories) - } else { - /// otherwise if it's a specific multisig we should find it - currentMultisigInvolved = selectedMultiProxy?.multisigs.find((add) => { - return add.address === parentMultisigs[aggregatedData.from].parentSignatoryAddress - }) - possibleSigners = getIntersection(ownAddressList, currentMultisigInvolved?.signatories) - } - - if (!possibleSigners.length) { - console.error( - 'Unexpected error: Could not find the possible signatories', - aggregatedData.from, - parentMultisigs, - selectedMultiProxy - ) - } - - if (!currentMultisigInvolved) { - console.error( - 'Unexpected error: Could not find the current multisig involved', - aggregatedData.from, - parentMultisigs, - selectedMultiProxy - ) - - return - } - - onOpenDeepTxModal({ - possibleSigners, - proposalData: aggregatedData, - parentMultisigInfo: parentMultisigs[aggregatedData.from], - currentMultisigInvolved - }) - }, - [onOpenDeepTxModal, ownAddressList, parentMultisigs, selectedMultiProxy] - ) - - const { txWithCallDataByDate } = usePendingTx(parentMultisigAddresses, true) - - if (!parentMultisigAddresses.length || Object.values(txWithCallDataByDate).length === 0) - return null - - return Object.values(txWithCallDataByDate).map((data) => { - const filteredMap = data.filter((call) => { - // filter the tx that are potentially already created and are pending - // when we have the calldata in both (in case it's an as multi) - if ( - call?.callData && - pendingTxCallData.some((pendingCallData) => - pendingCallData.includes(call.callData?.slice(2) as string) - ) - ) { - console.info('filtering call, currently signing (with asMulti)', call) - return false - } - - // filter the tx that are potentially already created and are pending - // when we have the hash of the parent in the current calldata (in case it's an approveAsMulti) - if ( - pendingTxCallData.some((pendingCallData) => { - const isIncluded = pendingCallData.includes(call.hash?.slice(2) as string) - return isIncluded - }) - ) { - console.info('filtering call, currently signing (with approveAsMult)', call) - return false - } - - // filter the tx where we've already signed - if (call.info?.approvals.includes(parentMultisigs[call.from].parentSignatoryAddress)) { - console.info('filtering call, already signed', call) - return false - } - - return true - }) - - return filteredMap.map((data1) => ( - - - - - Pending tx {data1.name} - - - from: - - - - - {!selectedIsWatched && } - - - - )) - }) -} - -const FunctionNameStyled = styled('span')` - padding: 0.5rem; - margin: 0 0.5rem 0 0.5rem; - background-color: ${(props) => props.theme.custom.proxyBadge.multi}; - text-overflow: ellipsis; - overflow: hidden; -` - -const InfoTextStyled = styled(Grid)` - /* flex: 1; - display: flex;*/ - align-items: center; - margin: 0; - - button { - margin-left: auto; - margin-right: 2px; - } - - .gridItem { - padding: 0; - } -` - -const AlertStyled = styled(Alert)` - width: 100%; - margin-top: 0.5rem; - margin-bottom: 0.5rem; - - .MuiAlert-message { - display: flex; - align-items: center; - width: 100%; - } - - .MuiAlert-icon { - align-items: center; - } -` +// import { Alert, Grid2 as Grid } from '@mui/material' +// import { styled } from '@mui/material/styles' +// import { useCallback, useEffect, useMemo, useState } from 'react' +// import { useMultisigsByMultisigOrPureSignatoriesQuery } from '../../types-and-hooks' +// import { MultisigAggregated, useMultiProxy } from '../contexts/MultiProxyContext' +// import { useAccountId } from '../hooks/useAccountId' +// import { CallDataInfoFromChain, usePendingTx } from '../hooks/usePendingTx' +// import { getIntersection } from '../utils/arrayUtils' +// import { useModals } from '../contexts/ModalsContext' +// import { Button } from './library' +// import { useAccounts } from '../contexts/AccountsContext' +// import AccountDisplay from './AccountDisplay/AccountDisplay' + +// export interface ParentMultisigInfo { +// parentSignatoryAddress: string +// parentMultisigAddress: string +// involvedMultisigProxyAddress?: string +// involvedMultisigAddress: string +// isSignatoryProxy: boolean +// threshold: number +// signatories: string[] +// } + +// interface Props { +// pendingTxCallData: string[] +// } + +// export const DeepTxAlert = ({ pendingTxCallData }: Props) => { +// const { selectedMultiProxy, selectedIsWatched } = useMultiProxy() +// const { onOpenDeepTxModal } = useModals() +// const { ownAddressList } = useAccounts() +// const proxyAndMultisigsIds = useMemo( +// () => +// [ +// selectedMultiProxy?.proxy || '', +// ...(selectedMultiProxy?.multisigs.map(({ address }) => address) || []) +// ].filter((a) => !!a), +// [selectedMultiProxy] +// ) +// const idsToQuery = useAccountId(proxyAndMultisigsIds) +// const { data } = useMultisigsByMultisigOrPureSignatoriesQuery({ +// accountIds: idsToQuery +// }) +// const [parentMultisigs, setParenMultisigs] = useState>({}) +// const parentMultisigAddresses = useMemo(() => Object.keys(parentMultisigs), [parentMultisigs]) + +// useEffect(() => { +// if (!data || data?.accountMultisigs.length === 0) { +// setParenMultisigs({}) +// return +// } + +// // the data is the list of multisig with our current +// // multisig/pure being a signatory +// if (data && data.accountMultisigs.length > 0) { +// // Create a map with the parent multisig +// // that is involved in a Tx with the current pure/multisig as signatory +// const parentInfoMap = data.accountMultisigs.reduce( +// (acc: Record, currParentMultisig) => { +// const parentMultisigSignatories = currParentMultisig.multisig.signatories.map( +// ({ signatory }) => signatory.address +// ) + +// let signatoryOfParent = { address: '', isSignatoryProxy: false } +// let relevantMultisigAddress = '' + +// // See if the parent signatories is one of our pure or our current multisig +// if ( +// selectedMultiProxy?.proxy && +// parentMultisigSignatories.includes(selectedMultiProxy?.proxy) +// ) { +// signatoryOfParent = { address: selectedMultiProxy?.proxy, isSignatoryProxy: true } +// } else { +// // it must be one of our multisig then +// const relevantMultisig = getIntersection( +// selectedMultiProxy?.multisigs.map(({ address }) => address), +// parentMultisigSignatories +// ) + +// if (!relevantMultisig.length) { +// console.error( +// 'Unexpected error: No multisig or proxy found as signatory', +// data, +// selectedMultiProxy +// ) +// } + +// relevantMultisigAddress = relevantMultisig[0] + +// signatoryOfParent = { +// // here, we may have several of our current multisigs +// // being a signatory of the parent. We go for the first +// address: relevantMultisig[0], +// isSignatoryProxy: false +// } +// } + +// return { +// ...acc, +// [currParentMultisig.multisig.address]: { +// parentSignatoryAddress: signatoryOfParent.address, +// involvedMultisigAddress: relevantMultisigAddress, +// involvedMultisigProxyAddress: selectedMultiProxy?.proxy, +// isSignatoryProxy: signatoryOfParent.isSignatoryProxy, +// threshold: currParentMultisig.multisig.threshold || 0, +// signatories: currParentMultisig.multisig.signatories.map( +// ({ signatory }) => signatory.address +// ) +// } as ParentMultisigInfo +// } +// }, +// {} as Record +// ) +// setParenMultisigs(parentInfoMap) +// } +// }, [data, selectedMultiProxy]) + +// const onClickCreate = useCallback( +// (aggregatedData: CallDataInfoFromChain) => { +// if (!aggregatedData) return + +// let possibleSigners: string[] = [] +// let currentMultisigInvolved: MultisigAggregated | undefined + +// // if the signatory is the pure we select +// // the first multisig as the possible signatory +// if (parentMultisigs[aggregatedData.from].isSignatoryProxy) { +// currentMultisigInvolved = selectedMultiProxy?.multisigs[0] +// possibleSigners = getIntersection(ownAddressList, currentMultisigInvolved?.signatories) +// } else { +// /// otherwise if it's a specific multisig we should find it +// currentMultisigInvolved = selectedMultiProxy?.multisigs.find((add) => { +// return add.address === parentMultisigs[aggregatedData.from].parentSignatoryAddress +// }) +// possibleSigners = getIntersection(ownAddressList, currentMultisigInvolved?.signatories) +// } + +// if (!possibleSigners.length) { +// console.error( +// 'Unexpected error: Could not find the possible signatories', +// aggregatedData.from, +// parentMultisigs, +// selectedMultiProxy +// ) +// } + +// if (!currentMultisigInvolved) { +// console.error( +// 'Unexpected error: Could not find the current multisig involved', +// aggregatedData.from, +// parentMultisigs, +// selectedMultiProxy +// ) + +// return +// } + +// onOpenDeepTxModal({ +// possibleSigners, +// proposalData: aggregatedData, +// parentMultisigInfo: parentMultisigs[aggregatedData.from], +// currentMultisigInvolved +// }) +// }, +// [onOpenDeepTxModal, ownAddressList, parentMultisigs, selectedMultiProxy] +// ) + +// const { txWithCallDataByDate } = usePendingTx(parentMultisigAddresses, true) + +// if (!parentMultisigAddresses.length || Object.values(txWithCallDataByDate).length === 0) +// return null + +// return Object.values(txWithCallDataByDate).map((data) => { +// const filteredMap = data.filter((call) => { +// // filter the tx that are potentially already created and are pending +// // when we have the calldata in both (in case it's an as multi) +// if ( +// call?.callData && +// pendingTxCallData.some((pendingCallData) => +// pendingCallData.includes(call.callData?.slice(2) as string) +// ) +// ) { +// console.info('filtering call, currently signing (with asMulti)', call) +// return false +// } + +// // filter the tx that are potentially already created and are pending +// // when we have the hash of the parent in the current calldata (in case it's an approveAsMulti) +// if ( +// pendingTxCallData.some((pendingCallData) => { +// const isIncluded = pendingCallData.includes(call.hash?.slice(2) as string) +// return isIncluded +// }) +// ) { +// console.info('filtering call, currently signing (with approveAsMult)', call) +// return false +// } + +// // filter the tx where we've already signed +// if (call.info?.approvals.includes(parentMultisigs[call.from].parentSignatoryAddress)) { +// console.info('filtering call, already signed', call) +// return false +// } + +// return true +// }) + +// return filteredMap.map((data1) => ( +// +// +// +// +// Pending tx {data1.name} +// +// +// from: +// +// +// +// +// {!selectedIsWatched && } +// +// +// +// )) +// }) +// } + +// const FunctionNameStyled = styled('span')` +// padding: 0.5rem; +// margin: 0 0.5rem 0 0.5rem; +// background-color: ${(props) => props.theme.custom.proxyBadge.multi}; +// text-overflow: ellipsis; +// overflow: hidden; +// ` + +// const InfoTextStyled = styled(Grid)` +// /* flex: 1; +// display: flex;*/ +// align-items: center; +// margin: 0; + +// button { +// margin-left: auto; +// margin-right: 2px; +// } + +// .gridItem { +// padding: 0; +// } +// ` + +// const AlertStyled = styled(Alert)` +// width: 100%; +// margin-top: 0.5rem; +// margin-bottom: 0.5rem; + +// .MuiAlert-message { +// display: flex; +// align-items: center; +// width: 100%; +// } + +// .MuiAlert-icon { +// align-items: center; +// } +// ` diff --git a/packages/ui/src/components/Transactions/TransactionList.tsx b/packages/ui/src/components/Transactions/TransactionList.tsx index 91dc1adf..94131601 100644 --- a/packages/ui/src/components/Transactions/TransactionList.tsx +++ b/packages/ui/src/components/Transactions/TransactionList.tsx @@ -7,7 +7,7 @@ import { useAccounts } from '../../contexts/AccountsContext' import { MdOutlineFlare as FlareIcon } from 'react-icons/md' import Transaction from './Transaction' import { useMemo } from 'react' -import { DeepTxAlert } from '../DeepTxAlert' +// import { DeepTxAlert } from '../DeepTxAlert' interface Props { className?: string @@ -25,18 +25,18 @@ const TransactionList = ({ className }: Props) => { refresh } = usePendingTx(multisigAddresses) const { ownAddressList } = useAccounts() - const pendingTxCallData = useMemo(() => { - return Object.values(txWithCallDataByDate) - .reduce((acc, curr) => { - return [...acc, ...curr] - }, []) - .map(({ callData }) => callData) - .filter((a) => !!a) as string[] - }, [txWithCallDataByDate]) + // const pendingTxCallData = useMemo(() => { + // return Object.values(txWithCallDataByDate) + // .reduce((acc, curr) => { + // return [...acc, ...curr] + // }, []) + // .map(({ callData }) => callData) + // .filter((a) => !!a) as string[] + // }, [txWithCallDataByDate]) return ( - + {/* */}

Transactions

{isLoadingPendingTxs && ( diff --git a/packages/ui/src/contexts/ModalsContext.tsx b/packages/ui/src/contexts/ModalsContext.tsx index c8eb1130..deafc6de 100644 --- a/packages/ui/src/contexts/ModalsContext.tsx +++ b/packages/ui/src/contexts/ModalsContext.tsx @@ -8,7 +8,7 @@ import WCSessionProposal from '../components/modals/WalletConnectSessionProposal import ProposalSigningModal, { SigningModalProps } from '../components/modals/ProposalSigning' import WalletConnectSigning from '../components/modals/WalletConnectSigning' import { useMultiProxy } from './MultiProxyContext' -import DeepTxCreationModal, { DeepTxCreationProps } from '../components/modals/DeepTxCreation' +// import DeepTxCreationModal, { DeepTxCreationProps } from '../components/modals/DeepTxCreation' interface ModalsContextProps { setIsEditModalOpen: (isOpen: boolean) => void @@ -17,8 +17,8 @@ interface ModalsContextProps { onCloseSendModal: () => void openWalletConnectSessionModal: ({ sessionProposal }: OpenWCModalParams) => void onOpenSigningModal: (info: SigningInfo) => void - onOpenDeepTxModal: (info: DeepTxModalInfo) => void - onCloseDeepTxModal: () => void + // onOpenDeepTxModal: (info: DeepTxModalInfo) => void + // onCloseDeepTxModal: () => void onOpenWalletConnectSigning: (request: SignClientTypes.EventArguments['session_request']) => void } @@ -27,7 +27,7 @@ interface OpenWCModalParams { } type SigningInfo = Omit -type DeepTxModalInfo = Omit +// type DeepTxModalInfo = Omit const ModalsContext = createContext(undefined) @@ -37,8 +37,8 @@ const ModalsContextProvider = ({ children }: React.PropsWithChildren) => { const [isSendModalOpen, setIsSendModalOpen] = useState(false) const [isWCModalOpen, setIsWCModalOpen] = useState(false) const [isSigningModalOpen, setIsSigningModalOpen] = useState(false) - const [isDeepTxModalOpen, setIsDeepTxModalOpen] = useState(false) - const [deepTxModalInfo, setDeepTxModalInfo] = useState() + // const [isDeepTxModalOpen, setIsDeepTxModalOpen] = useState(false) + // const [deepTxModalInfo, setDeepTxModalInfo] = useState() const [signingModalInfo, setSigningModalInfo] = useState() const [isOpenWalletConnectSigning, setIsOpenWalletConnectSigning] = useState(false) const [sendModalPreselection, setSendModalPreselection] = useState( @@ -100,15 +100,15 @@ const ModalsContextProvider = ({ children }: React.PropsWithChildren) => { setIsSigningModalOpen(true) }, []) - const onOpenDeepTxModal = useCallback((info: DeepTxModalInfo) => { - setDeepTxModalInfo(info) - setIsDeepTxModalOpen(true) - }, []) + // const onOpenDeepTxModal = useCallback((info: DeepTxModalInfo) => { + // setDeepTxModalInfo(info) + // setIsDeepTxModalOpen(true) + // }, []) - const onCloseDeepTxModal = useCallback(() => { - setDeepTxModalInfo(undefined) - setIsDeepTxModalOpen(false) - }, []) + // const onCloseDeepTxModal = useCallback(() => { + // setDeepTxModalInfo(undefined) + // setIsDeepTxModalOpen(false) + // }, []) const onOpenWalletConnectSigning = useCallback( (request: SignClientTypes.EventArguments['session_request']) => { @@ -132,9 +132,9 @@ const ModalsContextProvider = ({ children }: React.PropsWithChildren) => { onCloseSendModal, openWalletConnectSessionModal, onOpenSigningModal, - onOpenWalletConnectSigning, - onOpenDeepTxModal, - onCloseDeepTxModal + onOpenWalletConnectSigning + // onOpenDeepTxModal, + // onCloseDeepTxModal }} > {children} @@ -162,7 +162,7 @@ const ModalsContextProvider = ({ children }: React.PropsWithChildren) => { onSuccess={signingModalInfo.onSuccess} /> )} - {isDeepTxModalOpen && deepTxModalInfo && ( + {/* {isDeepTxModalOpen && deepTxModalInfo && ( { parentMultisigInfo={deepTxModalInfo.parentMultisigInfo} currentMultisigInvolved={deepTxModalInfo.currentMultisigInvolved} /> - )} + )} */} {isOpenWalletConnectSigning && !!walletConnectRequest && ( , delegateeFor: Array<{ __typename?: 'ProxyAccount', id: string, type: ProxyType, delegator: { __typename?: 'Account', id: string, address: string, isPureProxy?: boolean | null }, delegatee: { __typename?: 'Account', id: string, address: string, isPureProxy?: boolean | null } }>, delegatorFor: Array<{ __typename?: 'ProxyAccount', id: string, type: ProxyType, delegatee: { __typename?: 'Account', id: string, address: string, isMultisig?: boolean | null, threshold?: number | null, signatories: Array<{ __typename?: 'AccountMultisig', id: string, signatory: { __typename?: 'Account', id: string, address: string } }> } }> }> }; -export type MultisigsByMultisigOrPureSignatoriesQueryVariables = Exact<{ - accountIds?: InputMaybe | Scalars['String']['input']>; -}>; - - -export type MultisigsByMultisigOrPureSignatoriesQuery = { __typename?: 'Query', accountMultisigs: Array<{ __typename?: 'AccountMultisig', id: string, multisig: { __typename?: 'Account', id: string, address: string, threshold?: number | null, signatories: Array<{ __typename?: 'AccountMultisig', id: string, signatory: { __typename?: 'Account', id: string, address: string } }> } }> }; - -export type MultisigsBySignatoriesOrWatchedQueryVariables = Exact<{ - accountIds?: InputMaybe | Scalars['String']['input']>; - watchedAccountIds?: InputMaybe | Scalars['String']['input']>; -}>; - - -export type MultisigsBySignatoriesOrWatchedQuery = { __typename?: 'Query', accountMultisigs: Array<{ __typename?: 'AccountMultisig', id: string, multisig: { __typename?: 'Account', id: string, address: string, threshold?: number | null, signatories: Array<{ __typename?: 'AccountMultisig', id: string, signatory: { __typename?: 'Account', id: string, address: string } }>, delegateeFor: Array<{ __typename?: 'ProxyAccount', id: string, type: ProxyType, delegator: { __typename?: 'Account', id: string, address: string, isPureProxy?: boolean | null } }> } }> }; - -export type PureByIdsQueryVariables = Exact<{ - pureIds?: InputMaybe | Scalars['String']['input']>; -}>; - - -export type PureByIdsQuery = { __typename?: 'Query', accounts: Array<{ __typename?: 'Account', id: string, address: string, delegatorFor: Array<{ __typename?: 'ProxyAccount', id: string, type: ProxyType, delegatee: { __typename?: 'Account', id: string, address: string, isMultisig?: boolean | null, threshold?: number | null, signatories: Array<{ __typename?: 'AccountMultisig', id: string, signatory: { __typename?: 'Account', id: string, address: string } }> } }> }> }; - export const MultisigByIdDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MultisigById"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accounts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id_eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"isMultisig_eq"},"value":{"kind":"BooleanValue","value":true}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threshold"}},{"kind":"Field","name":{"kind":"Name","value":"signatories"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"50"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"signatory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const MultisigCallsByMultisigIdDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MultisigCallsByMultisigId"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"multisigs"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"multisigCalls"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"10"}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"EnumValue","value":"timestamp_DESC"}},{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"multisig"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id_in"},"value":{"kind":"Variable","name":{"kind":"Name","value":"multisigs"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"blockHash"}},{"kind":"Field","name":{"kind":"Name","value":"callIndex"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}}]}}]}}]} as unknown as DocumentNode; -export const MultisigsAndPureByAccountDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MultisigsAndPureByAccount"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"accountIds"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"watchedAccountIds"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accounts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"AND"},"value":{"kind":"ListValue","values":[{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"OR"},"value":{"kind":"ListValue","values":[{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id_in"},"value":{"kind":"Variable","name":{"kind":"Name","value":"watchedAccountIds"}}}]},{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"signatories_some"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"signatory"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id_in"},"value":{"kind":"Variable","name":{"kind":"Name","value":"accountIds"}}}]}}]}}]},{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"signatories_some"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"signatory"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id_in"},"value":{"kind":"Variable","name":{"kind":"Name","value":"watchedAccountIds"}}}]}}]}}]}]}}]},{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"OR"},"value":{"kind":"ListValue","values":[{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"isMultisig_eq"},"value":{"kind":"BooleanValue","value":true}}]},{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"isPureProxy_eq"},"value":{"kind":"BooleanValue","value":true}}]}]}}]}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"isMultisig"}},{"kind":"Field","name":{"kind":"Name","value":"isPureProxy"}},{"kind":"Field","name":{"kind":"Name","value":"threshold"}},{"kind":"Field","name":{"kind":"Name","value":"signatories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"signatory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"delegateeFor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"delegator"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"isPureProxy"}}]}},{"kind":"Field","name":{"kind":"Name","value":"delegatee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"isPureProxy"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"delegatorFor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"delegatee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"isMultisig"}},{"kind":"Field","name":{"kind":"Name","value":"threshold"}},{"kind":"Field","name":{"kind":"Name","value":"signatories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"signatory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; -export const MultisigsByMultisigOrPureSignatoriesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MultisigsByMultisigOrPureSignatories"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"accountIds"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accountMultisigs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"signatory"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id_in"},"value":{"kind":"Variable","name":{"kind":"Name","value":"accountIds"}}}]}}]}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"10"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"threshold"}},{"kind":"Field","name":{"kind":"Name","value":"signatories"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"10"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"signatory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; -export const MultisigsBySignatoriesOrWatchedDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MultisigsBySignatoriesOrWatched"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"accountIds"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"watchedAccountIds"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accountMultisigs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"OR"},"value":{"kind":"ListValue","values":[{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"multisig"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id_in"},"value":{"kind":"Variable","name":{"kind":"Name","value":"watchedAccountIds"}}}]}}]},{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"signatory"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id_in"},"value":{"kind":"Variable","name":{"kind":"Name","value":"accountIds"}}}]}}]},{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"signatory"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id_in"},"value":{"kind":"Variable","name":{"kind":"Name","value":"watchedAccountIds"}}}]}}]}]}}]}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"500"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"multisig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"threshold"}},{"kind":"Field","name":{"kind":"Name","value":"signatories"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"100"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"signatory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"delegateeFor"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"100"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"delegator"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"isPureProxy"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; -export const PureByIdsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PureByIds"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pureIds"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accounts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"AND"},"value":{"kind":"ListValue","values":[{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id_in"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pureIds"}}}]},{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"isPureProxy_eq"},"value":{"kind":"BooleanValue","value":true}}]}]}}]}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"50"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"delegatorFor"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"50"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"delegatee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"isMultisig"}},{"kind":"Field","name":{"kind":"Name","value":"threshold"}},{"kind":"Field","name":{"kind":"Name","value":"signatories"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"50"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"signatory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file +export const MultisigsAndPureByAccountDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MultisigsAndPureByAccount"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"accountIds"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"watchedAccountIds"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accounts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"AND"},"value":{"kind":"ListValue","values":[{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"OR"},"value":{"kind":"ListValue","values":[{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id_in"},"value":{"kind":"Variable","name":{"kind":"Name","value":"watchedAccountIds"}}}]},{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"signatories_some"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"signatory"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id_in"},"value":{"kind":"Variable","name":{"kind":"Name","value":"accountIds"}}}]}}]}}]},{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"signatories_some"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"signatory"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id_in"},"value":{"kind":"Variable","name":{"kind":"Name","value":"watchedAccountIds"}}}]}}]}}]}]}}]},{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"OR"},"value":{"kind":"ListValue","values":[{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"isMultisig_eq"},"value":{"kind":"BooleanValue","value":true}}]},{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"isPureProxy_eq"},"value":{"kind":"BooleanValue","value":true}}]}]}}]}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"isMultisig"}},{"kind":"Field","name":{"kind":"Name","value":"isPureProxy"}},{"kind":"Field","name":{"kind":"Name","value":"threshold"}},{"kind":"Field","name":{"kind":"Name","value":"signatories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"signatory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"delegateeFor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"delegator"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"isPureProxy"}}]}},{"kind":"Field","name":{"kind":"Name","value":"delegatee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"isPureProxy"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"delegatorFor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"delegatee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"isMultisig"}},{"kind":"Field","name":{"kind":"Name","value":"threshold"}},{"kind":"Field","name":{"kind":"Name","value":"signatories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"signatory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"address"}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/ui/src/queries/multisigsByMultisigOrPureSignatories.graphql b/packages/ui/src/queries/multisigsByMultisigOrPureSignatories.graphql index 1216454e..b1f0bee7 100644 --- a/packages/ui/src/queries/multisigsByMultisigOrPureSignatories.graphql +++ b/packages/ui/src/queries/multisigsByMultisigOrPureSignatories.graphql @@ -1,17 +1,17 @@ -query MultisigsByMultisigOrPureSignatories($accountIds: [String!]) { - accountMultisigs(where: { signatory: { id_in: $accountIds } }, limit: 10) { - id - multisig { - id - address - threshold - signatories(limit: 10) { - id - signatory { - id - address - } - } - } - } -} +# query MultisigsByMultisigOrPureSignatories($accountIds: [String!]) { +# accountMultisigs(where: { signatory: { id_in: $accountIds } }, limit: 10) { +# id +# multisig { +# id +# address +# threshold +# signatories(limit: 10) { +# id +# signatory { +# id +# address +# } +# } +# } +# } +# } diff --git a/packages/ui/src/queries/multisigsBySignatoriesOrWatched.graphql b/packages/ui/src/queries/multisigsBySignatoriesOrWatched.graphql index d945aadb..abb85998 100644 --- a/packages/ui/src/queries/multisigsBySignatoriesOrWatched.graphql +++ b/packages/ui/src/queries/multisigsBySignatoriesOrWatched.graphql @@ -1,35 +1,35 @@ -query MultisigsBySignatoriesOrWatched($accountIds: [String!], $watchedAccountIds: [String!]) { - accountMultisigs( - where: { - OR: [ - { multisig: { id_in: $watchedAccountIds } } - { signatory: { id_in: $accountIds } } - { signatory: { id_in: $watchedAccountIds } } - ] - } - limit: 500 - ) { - id - multisig { - id - address - threshold - signatories(limit: 100) { - id - signatory { - id - address - } - } - delegateeFor(limit: 100) { - id - type - delegator { - id - address - isPureProxy - } - } - } - } -} +# query MultisigsBySignatoriesOrWatched($accountIds: [String!], $watchedAccountIds: [String!]) { +# accountMultisigs( +# where: { +# OR: [ +# { multisig: { id_in: $watchedAccountIds } } +# { signatory: { id_in: $accountIds } } +# { signatory: { id_in: $watchedAccountIds } } +# ] +# } +# limit: 500 +# ) { +# id +# multisig { +# id +# address +# threshold +# signatories(limit: 100) { +# id +# signatory { +# id +# address +# } +# } +# delegateeFor(limit: 100) { +# id +# type +# delegator { +# id +# address +# isPureProxy +# } +# } +# } +# } +# } diff --git a/packages/ui/src/queries/pureByIds.graphql b/packages/ui/src/queries/pureByIds.graphql index 21dbc63a..a5f72912 100644 --- a/packages/ui/src/queries/pureByIds.graphql +++ b/packages/ui/src/queries/pureByIds.graphql @@ -1,23 +1,23 @@ -query PureByIds($pureIds: [String!]) { - accounts(where: { AND: [{ id_in: $pureIds }, { isPureProxy_eq: true }] }, limit: 50) { - id - address - delegatorFor(limit: 50) { - id - type - delegatee { - id - address - isMultisig - threshold - signatories(limit: 50) { - id - signatory { - id - address - } - } - } - } - } -} +# query PureByIds($pureIds: [String!]) { +# accounts(where: { AND: [{ id_in: $pureIds }, { isPureProxy_eq: true }] }, limit: 50) { +# id +# address +# delegatorFor(limit: 50) { +# id +# type +# delegatee { +# id +# address +# isMultisig +# threshold +# signatories(limit: 50) { +# id +# signatory { +# id +# address +# } +# } +# } +# } +# } +# } diff --git a/packages/ui/types-and-hooks.tsx b/packages/ui/types-and-hooks.tsx index ff3ab871..6b750d5a 100644 --- a/packages/ui/types-and-hooks.tsx +++ b/packages/ui/types-and-hooks.tsx @@ -787,28 +787,6 @@ export type MultisigsAndPureByAccountQueryVariables = Exact<{ export type MultisigsAndPureByAccountQuery = { __typename?: 'Query', accounts: Array<{ __typename?: 'Account', id: string, address: string, isMultisig?: boolean | null, isPureProxy?: boolean | null, threshold?: number | null, signatories: Array<{ __typename?: 'AccountMultisig', id: string, signatory: { __typename?: 'Account', id: string, address: string } }>, delegateeFor: Array<{ __typename?: 'ProxyAccount', id: string, type: ProxyType, delegator: { __typename?: 'Account', id: string, address: string, isPureProxy?: boolean | null }, delegatee: { __typename?: 'Account', id: string, address: string, isPureProxy?: boolean | null } }>, delegatorFor: Array<{ __typename?: 'ProxyAccount', id: string, type: ProxyType, delegatee: { __typename?: 'Account', id: string, address: string, isMultisig?: boolean | null, threshold?: number | null, signatories: Array<{ __typename?: 'AccountMultisig', id: string, signatory: { __typename?: 'Account', id: string, address: string } }> } }> }> }; -export type MultisigsByMultisigOrPureSignatoriesQueryVariables = Exact<{ - accountIds?: InputMaybe | Scalars['String']['input']>; -}>; - - -export type MultisigsByMultisigOrPureSignatoriesQuery = { __typename?: 'Query', accountMultisigs: Array<{ __typename?: 'AccountMultisig', id: string, multisig: { __typename?: 'Account', id: string, address: string, threshold?: number | null, signatories: Array<{ __typename?: 'AccountMultisig', id: string, signatory: { __typename?: 'Account', id: string, address: string } }> } }> }; - -export type MultisigsBySignatoriesOrWatchedQueryVariables = Exact<{ - accountIds?: InputMaybe | Scalars['String']['input']>; - watchedAccountIds?: InputMaybe | Scalars['String']['input']>; -}>; - - -export type MultisigsBySignatoriesOrWatchedQuery = { __typename?: 'Query', accountMultisigs: Array<{ __typename?: 'AccountMultisig', id: string, multisig: { __typename?: 'Account', id: string, address: string, threshold?: number | null, signatories: Array<{ __typename?: 'AccountMultisig', id: string, signatory: { __typename?: 'Account', id: string, address: string } }>, delegateeFor: Array<{ __typename?: 'ProxyAccount', id: string, type: ProxyType, delegator: { __typename?: 'Account', id: string, address: string, isPureProxy?: boolean | null } }> } }> }; - -export type PureByIdsQueryVariables = Exact<{ - pureIds?: InputMaybe | Scalars['String']['input']>; -}>; - - -export type PureByIdsQuery = { __typename?: 'Query', accounts: Array<{ __typename?: 'Account', id: string, address: string, delegatorFor: Array<{ __typename?: 'ProxyAccount', id: string, type: ProxyType, delegatee: { __typename?: 'Account', id: string, address: string, isMultisig?: boolean | null, threshold?: number | null, signatories: Array<{ __typename?: 'AccountMultisig', id: string, signatory: { __typename?: 'Account', id: string, address: string } }> } }> }> }; - export const MultisigByIdDocument = ` @@ -941,129 +919,3 @@ export const useMultisigsAndPureByAccountQuery = < ...options } )}; - -export const MultisigsByMultisigOrPureSignatoriesDocument = ` - query MultisigsByMultisigOrPureSignatories($accountIds: [String!]) { - accountMultisigs(where: {signatory: {id_in: $accountIds}}, limit: 10) { - id - multisig { - id - address - threshold - signatories(limit: 10) { - id - signatory { - id - address - } - } - } - } -} - `; - -export const useMultisigsByMultisigOrPureSignatoriesQuery = < - TData = MultisigsByMultisigOrPureSignatoriesQuery, - TError = unknown - >( - variables?: MultisigsByMultisigOrPureSignatoriesQueryVariables, - options?: Omit, 'queryKey'> & { queryKey?: UseQueryOptions['queryKey'] } - ) => { - - return useQuery( - { - queryKey: variables === undefined ? ['MultisigsByMultisigOrPureSignatories'] : ['MultisigsByMultisigOrPureSignatories', variables], - queryFn: useFetchData(MultisigsByMultisigOrPureSignatoriesDocument).bind(null, variables), - ...options - } - )}; - -export const MultisigsBySignatoriesOrWatchedDocument = ` - query MultisigsBySignatoriesOrWatched($accountIds: [String!], $watchedAccountIds: [String!]) { - accountMultisigs( - where: {OR: [{multisig: {id_in: $watchedAccountIds}}, {signatory: {id_in: $accountIds}}, {signatory: {id_in: $watchedAccountIds}}]} - limit: 500 - ) { - id - multisig { - id - address - threshold - signatories(limit: 100) { - id - signatory { - id - address - } - } - delegateeFor(limit: 100) { - id - type - delegator { - id - address - isPureProxy - } - } - } - } -} - `; - -export const useMultisigsBySignatoriesOrWatchedQuery = < - TData = MultisigsBySignatoriesOrWatchedQuery, - TError = unknown - >( - variables?: MultisigsBySignatoriesOrWatchedQueryVariables, - options?: Omit, 'queryKey'> & { queryKey?: UseQueryOptions['queryKey'] } - ) => { - - return useQuery( - { - queryKey: variables === undefined ? ['MultisigsBySignatoriesOrWatched'] : ['MultisigsBySignatoriesOrWatched', variables], - queryFn: useFetchData(MultisigsBySignatoriesOrWatchedDocument).bind(null, variables), - ...options - } - )}; - -export const PureByIdsDocument = ` - query PureByIds($pureIds: [String!]) { - accounts(where: {AND: [{id_in: $pureIds}, {isPureProxy_eq: true}]}, limit: 50) { - id - address - delegatorFor(limit: 50) { - id - type - delegatee { - id - address - isMultisig - threshold - signatories(limit: 50) { - id - signatory { - id - address - } - } - } - } - } -} - `; - -export const usePureByIdsQuery = < - TData = PureByIdsQuery, - TError = unknown - >( - variables?: PureByIdsQueryVariables, - options?: Omit, 'queryKey'> & { queryKey?: UseQueryOptions['queryKey'] } - ) => { - - return useQuery( - { - queryKey: variables === undefined ? ['PureByIds'] : ['PureByIds', variables], - queryFn: useFetchData(PureByIdsDocument).bind(null, variables), - ...options - } - )};